/* Word Duel: a shootout in words. The arena is a night scene whatever the page's theme is, so the shots glow. Chunky
   buttons and the word cards come from english-vocab-games.css; everything for the duel itself is here. */
.vd-match, .vd-lobby { --vd-ink:#0b1428; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.vg-cover-flip { display:block; transform:scaleX(-1); }

/* The menu */
.vd-error { display:flex; align-items:center; gap:8px; margin:0 0 14px; padding:12px 14px; border:2px solid #ffd3bf; border-radius:14px; background:#fff4ee; color:#a33a0b; font:600 14.5px/1.4 'DM Sans',sans-serif; }
.vd-friends { position:relative; display:grid; grid-template-columns:minmax(0, 300px) 1fr; align-items:center; gap:26px; margin:4px 0 22px; padding:24px 30px; overflow:hidden; border-radius:28px; background:radial-gradient(circle at 16% 40%, #ff7a45 0%, rgba(255,122,69,0) 46%), linear-gradient(120deg, #1b1344 0%, #38206f 56%, #c2477f 130%); box-shadow:0 7px 0 #150e36; color:#fff; }
.vd-face-off { display:flex; align-items:flex-end; justify-content:center; gap:6px; }
.vd-mini { width:118px; }
.vd-mini .vg-art { display:block; width:100%; height:auto; animation:vg-bob 2.4s ease-in-out infinite; }
.vd-mini.is-flip { transform:scaleX(-1); }
.vd-mini.is-flip .vg-art { animation-delay:-1.1s; }
.vd-face-off b { align-self:center; margin-bottom:18px; color:#ffd23f; font:italic 900 30px 'DM Sans',sans-serif; text-shadow:0 3px 0 #b53b12; }
.vd-eyebrow { margin:0 0 4px; color:#ffd23f; font:800 12px/1.3 'DM Sans',sans-serif; letter-spacing:.1em; text-transform:uppercase; }
.vd-friends h2 { margin:0 0 6px; color:#fff; font:900 clamp(26px,3.4vw,34px)/1.1 'DM Sans',sans-serif; letter-spacing:-.02em; }
.vd-friends-body > p:not(.vd-eyebrow) { margin:0 0 16px; max-width:52ch; color:#e6e0f7; font:500 15.5px/1.5 'DM Sans',sans-serif; }
.vd-friends-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.vd-friends .vg-btn { --c:#ff6a2b; --cd:#b53b12; }
.vd-friends .vg-btn.is-ghost { border-color:#fff; box-shadow:0 5px 0 #c9c4dd; }
.vd-join { display:flex; gap:8px; }
.vd-join input { width:128px; height:48px; padding:0 12px; border:2px solid rgba(255,255,255,.4); border-radius:14px; background:rgba(255,255,255,.12); color:#fff; font:800 16px 'DM Sans',sans-serif; letter-spacing:.14em; text-transform:uppercase; outline:none; }
.vd-join input::placeholder { color:#cfc9e4; font-weight:600; letter-spacing:0; text-transform:none; }
.vd-join input:focus { border-color:#ffd23f; }
.vd-section { margin:20px 0 10px; color:#0b1428; font:800 17px/1.25 'DM Sans',sans-serif; }
.vd-section small { margin-left:6px; color:#6b7487; font:600 13px 'DM Sans',sans-serif; }
.vd-pick { display:grid; grid-template-columns:repeat(6, 1fr); gap:10px; }
.vd-pick-one { display:flex; flex-direction:column; align-items:center; gap:2px; padding:10px 4px 8px; border:2px solid #e3e9f2; border-radius:18px; background:#fff; box-shadow:0 4px 0 #e3e9f2; color:#3a4658; font:700 13.5px 'DM Sans',sans-serif; cursor:pointer; transition:transform .12s ease, box-shadow .12s ease; }
.vd-pick-one .vg-art { display:block; width:min(68px,100%); height:auto; }
.vd-pick-one:hover { transform:translateY(-3px); box-shadow:0 7px 0 #e3e9f2; }
.vd-pick-one:focus-visible { outline:3px solid rgba(47,111,237,.35); outline-offset:2px; }
.vd-pick-one.is-on { border-color:var(--f); box-shadow:0 4px 0 var(--fd); color:var(--fd); background:color-mix(in srgb, var(--f) 9%, #fff); }
/* The stage that plays a fighter's attack */
.vd-pick-one small { color:#6b7487; font:600 11px/1.2 'DM Sans',sans-serif; text-align:center; }
.vd-preview { height:clamp(210px, 26vw, 250px); margin-top:12px; }
.vd-preview .vd-stand { bottom:12px; width:clamp(84px, 16cqw, 112px); }
.vd-preview .vd-stand.is-you { left:clamp(8px, 12cqw, 130px); }
.vd-preview .vd-stand.is-foe { right:clamp(8px, 12cqw, 130px); }
.vd-preview-note { position:absolute; left:50%; top:10px; z-index:6; display:flex; flex-direction:column; align-items:center; gap:1px; width:min(66%, 300px); padding:7px 12px 9px; border-radius:14px; background:rgba(11,20,40,.72); color:#fff; font-family:'DM Sans',sans-serif; text-align:center; transform:translateX(-50%); }
.vd-preview-note strong { font:900 17px/1.15 'DM Sans',sans-serif; color:#ffd23f; }
.vd-preview-note span { font-size:12.5px; line-height:1.3; color:#e6e0f7; }
.vd-preview-play { display:inline-flex; align-items:center; gap:2px; margin-top:5px; padding:3px 11px 3px 6px; border:0; border-radius:999px; background:#ff6a2b; box-shadow:0 2px 0 #b53b12; color:#fff; font:800 12.5px 'DM Sans',sans-serif; cursor:pointer; }
.vd-preview-play .material-symbols-outlined { font-size:17px; font-variation-settings:'FILL' 1; }
.vd-rules { display:grid; grid-template-columns:repeat(4, 1fr); gap:10px; margin:18px 0 0; padding:0; list-style:none; }
.vd-rules li { display:flex; align-items:flex-start; gap:8px; padding:12px 13px; border-radius:15px; background:#fff2ea; color:#3a2a22; font:500 13.5px/1.4 'DM Sans',sans-serif; }
.vd-rules b { font-weight:800; }
.vd-rules .material-symbols-outlined { flex:none; color:#e8551f; font-size:21px; font-variation-settings:'FILL' 1; }
.vd-wait { display:flex; flex-direction:column; align-items:center; gap:12px; padding:56px 20px; color:#0b1428; font:800 20px 'DM Sans',sans-serif; }
.vd-wait .vg-art { width:130px; height:auto; animation:vg-bob .8s ease-in-out infinite; }

/* The lobby */
.vd-versus { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:14px; padding:16px; border-radius:26px; background:linear-gradient(120deg, #1b1344, #38206f 60%, #7a2f7f); box-shadow:0 6px 0 #150e36; }
.vd-vs { color:#ffd23f; font:italic 900 34px 'DM Sans',sans-serif; text-shadow:0 3px 0 #b53b12; animation:vg-tick 1.4s ease-in-out infinite; }
.vd-seat { display:flex; flex-direction:column; align-items:center; gap:2px; min-width:0; padding:10px 8px; color:#fff; font-family:'DM Sans',sans-serif; text-align:center; }
.vd-seat-art { display:grid; place-items:center; width:112px; height:118px; }
.vd-seat-art .vg-art { display:block; width:108px; height:auto; animation:vg-rise .35s cubic-bezier(.2,.8,.3,1.3); }
.vd-seat.is-foe .vd-seat-art { transform:scaleX(-1); }
.vd-seat strong { max-width:100%; overflow:hidden; font:800 19px/1.25 'DM Sans',sans-serif; text-overflow:ellipsis; white-space:nowrap; }
.vd-seat > span { color:#cfc9e4; font-size:13.5px; font-weight:500; }
.vd-seat em { display:inline-flex; align-items:center; gap:4px; margin-top:6px; padding:3px 11px; border-radius:999px; background:rgba(255,255,255,.14); color:#e6e0f7; font:700 12.5px 'DM Sans',sans-serif; }
.vd-seat em.is-ready { background:#22b573; color:#fff; }
.vd-seat em .material-symbols-outlined { font-size:16px; }
.vd-seat.is-empty .vd-seat-art { border:3px dashed rgba(255,255,255,.3); border-radius:50%; width:104px; height:104px; color:#cfc9e4; animation:vg-tick 1.6s ease-in-out infinite; }
.vd-seat.is-empty .material-symbols-outlined { font-size:40px; }
.vd-seat.is-empty strong { white-space:normal; font-size:15.5px; margin-top:8px; }
.vd-invite { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:10px 22px; margin:16px 0 0; padding:16px 20px; border:2px dashed #d5c9f5; border-radius:22px; background:#f7f4ff; }
.vd-invite p { margin:0; color:#5a3dd0; font:800 12px 'DM Sans',sans-serif; letter-spacing:.09em; text-transform:uppercase; }
.vd-code { color:#0b1428; font:900 34px/1 'DM Sans',sans-serif; letter-spacing:.16em; user-select:all; }
.vd-invite-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; }
.vg-btn.is-tg { --c:#27a7e7; --cd:#1787bf; }
.vd-levels { display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; }
.vd-level { display:flex; flex-direction:column; align-items:center; gap:2px; padding:12px 8px; border:2px solid #e3e9f2; border-radius:16px; background:#fff; box-shadow:0 4px 0 #e3e9f2; color:#0b1428; font:800 14.5px/1.25 'DM Sans',sans-serif; cursor:pointer; }
.vd-level small { color:#6b7487; font:600 12.5px 'DM Sans',sans-serif; }
.vd-level.is-on { border-color:#ff6a2b; box-shadow:0 4px 0 #d94c12; background:#fff2ea; }
.vd-level[disabled] { cursor:default; }
.vd-ready { display:flex; justify-content:center; margin:22px 0 12px; }
.vd-ready .vg-btn { min-width:min(320px,100%); min-height:56px; font-size:18px; --c:#ff6a2b; --cd:#d94c12; }
.vd-ready .vg-btn[disabled] { opacity:.5; cursor:default; }

/* The arena */
.vd-match { max-width:900px; position:relative; }
.vd-arena { container-type:inline-size; position:relative; height:clamp(290px, 40vw, 372px); overflow:hidden; border-radius:26px; background:#141033; box-shadow:0 7px 0 #0e0b26; isolation:isolate; }
.vd-scene { position:absolute; inset:0; z-index:0; }
.vd-scene svg { display:block; width:100%; height:100%; }
.vd-arena::after { content:''; position:absolute; inset:0; z-index:5; border-radius:inherit; box-shadow:inset 0 0 0 0 rgba(229,72,77,0); pointer-events:none; transition:box-shadow .4s ease; }
.vd-arena.is-danger::after { box-shadow:inset 0 0 60px 14px rgba(229,72,77,.6); animation:vd-danger 1.1s ease-in-out infinite; }
.vd-arena.is-event-double::after, .vd-arena.is-event-sudden::after { box-shadow:inset 0 0 50px 8px rgba(255,122,26,.6); }
.vd-arena.is-event-final::after { box-shadow:inset 0 0 50px 8px rgba(255,210,63,.55); }
.vd-arena.is-event-vampire::after { box-shadow:inset 0 0 50px 8px rgba(190,40,90,.6); }
.vd-arena.is-event-blitz::after { box-shadow:inset 0 0 50px 8px rgba(120,220,255,.55); }
.vd-arena.is-shake { animation:vd-shake .38s linear; }
.vd-arena.is-shake-big { animation:vd-shake-big .62s linear; }
.vd-bars { position:absolute; top:12px; left:14px; right:14px; z-index:3; display:grid; grid-template-columns:1fr auto 1fr; align-items:start; gap:12px; }
.vd-hp { min-width:0; font-family:'DM Sans',sans-serif; }
.vd-hp-top { display:flex; align-items:center; gap:7px; margin-bottom:4px; color:#fff; text-shadow:0 2px 0 rgba(0,0,0,.45); }
.vd-hp-top strong { min-width:0; overflow:hidden; font:800 15.5px 'DM Sans',sans-serif; text-overflow:ellipsis; white-space:nowrap; }
.vd-hp-num { margin-left:auto; font:800 13px 'DM Sans',sans-serif; font-variant-numeric:tabular-nums; }
.vd-hp.is-foe .vd-hp-top { flex-direction:row-reverse; }
.vd-hp.is-foe .vd-hp-num { margin:0 auto 0 0; }
.vd-wins { display:inline-flex; align-items:center; gap:1px; padding:1px 7px 1px 4px; border-radius:999px; background:rgba(255,210,63,.2); color:#ffd23f; font:800 12px 'DM Sans',sans-serif; }
.vd-wins .material-symbols-outlined { font-size:14px; font-variation-settings:'FILL' 1; }
.vd-hp-bar { position:relative; height:20px; overflow:hidden; border:3px solid #fff; border-radius:9px; background:#2a2452; box-shadow:0 3px 0 rgba(0,0,0,.4); transform:skewX(-12deg); }
.vd-hp.is-foe .vd-hp-bar { transform:skewX(12deg); }
.vd-hp-bar i { position:absolute; top:0; bottom:0; left:0; }
.vd-hp.is-foe .vd-hp-bar i { left:auto; right:0; }
.vd-hp-lag { background:#ffcf5c; transition:width .7s ease .4s; }
.vd-hp-fill { background:linear-gradient(180deg, #5ce6a7 0%, #1fb36f 100%); box-shadow:inset 0 3px 0 rgba(255,255,255,.35); transition:width .25s ease; }
.vd-hp.is-mid .vd-hp-fill { background:linear-gradient(180deg, #ffd35c 0%, #f0a800 100%); }
.vd-hp.is-low .vd-hp-fill { background:linear-gradient(180deg, #ff8589 0%, #e5484d 100%); animation:vd-low .7s ease-in-out infinite; }
.vd-hp-shield { background:repeating-linear-gradient(135deg, rgba(127,225,255,.95) 0 6px, rgba(255,255,255,.95) 6px 12px); opacity:.9; transition:width .25s ease; }
.vd-clock { --p:1; position:relative; display:grid; place-items:center; width:64px; height:64px; border-radius:50%; background:conic-gradient(var(--ring, #ffd23f) calc(var(--p) * 360deg), rgba(255,255,255,.2) 0); box-shadow:0 4px 0 rgba(0,0,0,.4); }
.vd-clock::before { content:''; position:absolute; inset:7px; border-radius:50%; background:#141033; }
.vd-clock > span { position:relative; display:grid; place-items:center; color:#fff; font:900 24px 'DM Sans',sans-serif; font-variant-numeric:tabular-nums; }
.vd-clock.is-urgent { --ring:#ff4d52; animation:vg-tick .5s ease-in-out infinite; }
.vd-clock.is-urgent > span { color:#ff8589; }
.vd-clock.is-done { background:rgba(255,255,255,.3); }
.vd-clock .material-symbols-outlined { color:#ffd23f; font-size:30px; font-variation-settings:'FILL' 1; }
.vd-phrase { position:absolute; left:50%; top:84px; z-index:3; width:min(58%, 420px); margin:0; padding:8px 14px 10px; border-radius:16px; background:rgba(255,255,255,.96); box-shadow:0 4px 0 rgba(0,0,0,.3); color:#0b1428; font:700 clamp(14.5px,2.2vw,18px)/1.3 'Literata',Georgia,serif; text-align:center; transform:translateX(-50%); }
.vd-phrase[hidden] { display:none; }
.vd-phrase span { display:block; margin-bottom:1px; color:#d94c12; font:800 10.5px 'DM Sans',sans-serif; letter-spacing:.1em; text-transform:uppercase; }
.vd-phrase.is-new { animation:vd-phrase .34s cubic-bezier(.2,.9,.3,1.4); }
.vd-stand { position:absolute; bottom:clamp(10px, 3.4cqw, 28px); z-index:2; width:clamp(92px, 22cqw, 148px); }
.vd-stand.is-you { left:clamp(2px, 5cqw, 56px); }
.vd-stand.is-foe { right:clamp(2px, 5cqw, 56px); }
.vd-arena.is-intro .vd-stand.is-you { animation:vd-in-left .6s cubic-bezier(.2,.9,.3,1.2) backwards; }
.vd-arena.is-intro .vd-stand.is-foe { animation:vd-in-right .6s cubic-bezier(.2,.9,.3,1.2) backwards; }
.vd-fighter { position:relative; }
.vd-body { position:relative; }
.vd-stand.is-foe .vd-body { transform:scaleX(-1); }
.vd-body .vg-art { display:block; width:100%; height:auto; animation:vd-idle 1.8s ease-in-out infinite; }
.vd-stand.is-foe .vd-body .vg-art { animation-delay:-.7s; }
.vd-gun { position:absolute; left:58%; top:51%; width:62%; height:auto; transform-origin:18% 60%; transition:transform .12s ease; }
.vd-gun.is-aim { transform:rotate(-7deg); }
.vd-gun.is-recoil { animation:vd-recoil .3s ease-out; }
.vd-body.is-kick { animation:vd-kick .3s ease-out; }
.vd-stand.is-foe .vd-body.is-kick { animation-name:vd-kick; }
.vd-stand.is-charged .vd-gun { filter:drop-shadow(0 0 6px #ffd23f) drop-shadow(0 0 14px #ff7a1a); animation:vd-charge .6s ease-in-out infinite alternate; }
.vd-stand.is-doubled .vd-gun { filter:drop-shadow(0 0 8px #ff4d52) drop-shadow(0 0 16px #ff4d52); }
.vd-fighter.is-hurt .vd-body { animation:vd-hurt .6s ease; }
.vd-fighter.is-block { animation:vg-pop .4s ease; }
.vd-fighter.is-down .vd-body { animation:vd-fall .9s cubic-bezier(.3,.1,.3,1) forwards; }
.vd-stand.is-foe .vd-fighter.is-down .vd-body { animation-name:vd-fall-foe; }
.vd-fighter.is-down .vd-gun { display:none; }
.vd-fighter.is-win .vd-body .vg-art { animation:vd-win .55s ease-in-out infinite; }
/* What each attack does to the one it hits */
.vd-fighter.is-hit-bolt .vd-body .vg-art { animation:vd-shock .9s steps(2) ; }
.vd-fighter.is-hit-fire .vd-body .vg-art { animation:vd-burn .9s ease; }
.vd-fighter.is-hit-ice .vd-body .vg-art { animation:vd-iced .9s ease; }
.vd-fighter.is-hit-void .vd-body .vg-art { animation:vd-warp .7s ease; }
.vd-fighter.is-hit-leaf .vd-body .vg-art { animation:vd-tangled .9s ease; }
.vd-fighter.is-hit-ink .vd-body .vg-art { animation:vd-inked .9s ease; }
.vd-bubble { position:absolute; inset:-8% -12% -2%; z-index:1; border:3px solid rgba(127,225,255,.9); border-radius:50%; background:radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), rgba(120,220,255,.14) 62%); box-shadow:0 0 20px rgba(127,225,255,.7), inset 0 0 18px rgba(127,225,255,.5); animation:vg-shield 1.3s ease-in-out infinite; }
.vd-bubble[hidden] { display:none; }
.vd-ice { position:absolute; inset:6% 4% 0; z-index:1; border-radius:42% 42% 34% 34%; background:linear-gradient(140deg, rgba(235,252,255,.82), rgba(120,220,255,.55)); box-shadow:0 0 16px rgba(160,235,255,.9), inset 0 0 0 3px rgba(255,255,255,.8); animation:vg-pop .3s ease; }
.vd-ice[hidden] { display:none; }
.vd-lock, .vd-tag { position:absolute; bottom:calc(100% + 4px); left:50%; z-index:4; display:inline-flex; align-items:center; gap:3px; padding:3px 9px; border-radius:999px; background:#22b573; color:#fff; font:800 11.5px 'DM Sans',sans-serif; white-space:nowrap; transform:translateX(-50%); animation:vg-pop .3s ease; }
.vd-lock[hidden], .vd-tag[hidden] { display:none; }
.vd-lock .material-symbols-outlined { font-size:14px; font-variation-settings:'FILL' 1; }
.vd-tag.is-bad { bottom:calc(100% + 28px); background:#e5484d; white-space:normal; width:max-content; max-width:150px; text-align:center; }
.vd-combo { position:absolute; left:50%; bottom:-4px; z-index:3; display:inline-flex; align-items:center; padding:2px 9px 2px 5px; border-radius:999px; background:#ff6a2b; box-shadow:0 3px 0 #b53b12; color:#fff; font:900 14px 'DM Sans',sans-serif; transform:translateX(-50%); }
.vd-combo[hidden] { display:none; }
.vd-combo .material-symbols-outlined { font-size:17px; font-variation-settings:'FILL' 1; animation:vg-flame .4s ease-in-out infinite alternate; }
.vd-say { position:absolute; bottom:calc(100% - 6px); z-index:5; max-width:150px; padding:6px 11px; border-radius:14px; background:#fff; box-shadow:0 4px 0 rgba(0,0,0,.28); color:#0b1428; font:800 15px/1.1 'DM Sans',sans-serif; white-space:nowrap; animation:vd-say 2.4s ease forwards; }
.vd-say.is-emoji { padding:3px 8px; font-size:36px; line-height:1.15; }
.vd-stand:has(.vd-say) { z-index:6; }
.vd-stand.is-you .vd-say { left:50%; border-bottom-left-radius:3px; }
.vd-stand.is-foe .vd-say { right:50%; border-bottom-right-radius:3px; }
.vd-canvas { position:absolute; inset:0; z-index:4; width:100%; height:100%; pointer-events:none; }
.vd-flash { position:absolute; inset:0; z-index:6; background:var(--flash, #fff); opacity:0; pointer-events:none; }
.vd-flash.is-on { animation:vd-flash .24s ease-out; }
.vd-damage { position:absolute; inset:0; z-index:7; pointer-events:none; }
.vd-pop { position:absolute; display:flex; flex-direction:column; align-items:center; color:#fff; font:900 34px/1 'DM Sans',sans-serif; text-shadow:0 3px 0 #b3261e, 0 0 12px rgba(0,0,0,.5); white-space:nowrap; transform:translate(-50%,0); animation:vd-pop-up 1.5s ease forwards; }
.vd-pop small { margin-top:3px; padding:2px 8px; border-radius:999px; background:rgba(11,20,40,.82); color:#fff; font:800 11.5px 'DM Sans',sans-serif; letter-spacing:.02em; text-shadow:none; }
.vd-pop.is-crit { color:#ffd23f; font-size:40px; text-shadow:0 3px 0 #b5560b, 0 0 14px rgba(255,160,40,.8); }
.vd-pop.is-ultra { color:#fff; font-size:50px; text-shadow:0 3px 0 #d11f6a, 0 0 22px #ff5dcb; }
.vd-pop.is-miss { color:#ffb3b5; font-size:26px; }
.vd-pop.is-block { color:#a8f0ff; font-size:26px; text-shadow:0 3px 0 #1a6f8c; }
.vd-pop.is-heal { color:#8ff0bd; font-size:28px; text-shadow:0 3px 0 #0f6e45; }
.vd-pop.is-item { color:#ffd23f; font-size:23px; text-shadow:0 3px 0 #7a4a00; }
.vd-pop.is-none { display:none; }
.vd-crate { position:absolute; left:50%; bottom:clamp(16px, 5cqw, 40px); z-index:2; display:grid; place-items:center; width:64px; height:64px; margin-left:-32px; border:4px solid #7a4a1e; border-radius:12px; background:repeating-linear-gradient(0deg, #d9a14a 0 14px, #c58a35 14px 16px); box-shadow:0 5px 0 #5c3715, 0 0 22px rgba(255,210,63,.75); color:#fff3c4; }
.vd-crate[hidden] { display:none; }
.vd-crate::before { content:''; position:absolute; bottom:100%; left:50%; width:96px; height:44px; margin-left:-48px; border-radius:48px 48px 8px 8px; background:repeating-linear-gradient(90deg, #ff6a2b 0 16px, #fff 16px 32px); opacity:0; }
.vd-crate.is-drop::before { animation:vd-chute 2.2s ease forwards; }
.vd-crate .material-symbols-outlined { font-size:34px; font-variation-settings:'FILL' 1; }
.vd-crate.is-drop { animation:vd-drop 1.5s cubic-bezier(.3,.6,.4,1) backwards; }
.vd-crate.is-grab { animation:vd-grab .5s ease-in forwards; }
.vd-crate.is-gone { opacity:.3; filter:grayscale(1); transition:opacity .3s; }

.vd-call-layer { position:absolute; inset:0; z-index:8; pointer-events:none; }
.vd-call { position:absolute; inset:0; display:grid; place-content:center; justify-items:center; gap:4px; text-align:center; animation:vd-call var(--ms, 1.3s) ease forwards; }
.vd-call span { padding:3px 12px; border-radius:999px; background:rgba(11,20,40,.8); color:#fff; font:700 14.5px 'DM Sans',sans-serif; }
.vd-call strong { color:#fff; font:italic 900 clamp(38px,8cqw,70px)/1 'DM Sans',sans-serif; letter-spacing:-.02em; text-shadow:0 5px 0 #d94c12, 0 0 26px rgba(255,122,26,.8); animation:vg-stamp .42s cubic-bezier(.2,.9,.3,1.4) backwards; }
.vd-call.is-small strong { font-size:clamp(26px,5cqw,40px); text-shadow:0 3px 0 rgba(0,0,0,.45); }
.vd-call.is-count strong { color:#ffd23f; font-size:clamp(70px,16cqw,130px); }
.vd-call.is-event { background:linear-gradient(90deg, rgba(11,20,40,0), rgba(11,20,40,.72) 22%, rgba(11,20,40,.72) 78%, rgba(11,20,40,0)); }
.vd-call.is-ultra strong { color:#fff; text-shadow:0 4px 0 #d11f6a, 0 0 30px #ff5dcb; }
.vd-call.is-clash strong { color:#fff; text-shadow:0 4px 0 #2f6fed, 0 0 30px #7fe1ff; }
.vd-call.is-stay { background:rgba(11,20,40,.5); animation:vg-fade .3s ease forwards; }
.vd-call.is-win strong { color:#5ce6a7; text-shadow:0 5px 0 #0f6e45, 0 0 26px rgba(92,230,167,.7); }
.vd-call.is-lose strong { color:#ff8589; text-shadow:0 5px 0 #8c1d21, 0 0 26px rgba(255,80,80,.6); }
.vd-offline { position:absolute; left:50%; bottom:8px; z-index:9; display:inline-flex; align-items:center; gap:5px; margin:0; padding:4px 11px; border-radius:999px; background:#e5484d; color:#fff; font:700 12.5px 'DM Sans',sans-serif; transform:translateX(-50%); }
.vd-offline[hidden] { display:none; }

/* Items and reactions, under the arena */
.vd-tray { display:flex; align-items:stretch; justify-content:space-between; gap:12px; margin:14px 0 0; }
.vd-items { display:flex; gap:8px; }
.vd-slot { position:relative; display:inline-flex; align-items:center; gap:6px; min-width:132px; min-height:46px; padding:0 12px 0 10px; border:2px solid #d5c9f5; border-radius:14px; background:#fff; box-shadow:0 4px 0 #d5c9f5; color:#3b2a8c; font:800 13.5px 'DM Sans',sans-serif; cursor:pointer; transition:transform .08s ease, box-shadow .08s ease; }
.vd-slot b { font-weight:800; white-space:nowrap; }
.vd-slot .material-symbols-outlined { font-size:21px; font-variation-settings:'FILL' 1; }
.vd-slot:hover:not([disabled]) { transform:translateY(-2px); box-shadow:0 6px 0 #d5c9f5; }
.vd-slot:active:not([disabled]) { transform:translateY(3px); box-shadow:0 1px 0 #d5c9f5; }
.vd-slot:not([disabled]):not(.is-empty) { animation:vd-glow 1.4s ease-in-out infinite; }
.vd-slot[disabled] { opacity:.55; cursor:default; }
.vd-slot-key { position:absolute; top:-7px; left:-5px; display:grid; place-items:center; width:19px; height:19px; border-radius:6px; background:#3b2a8c; color:#fff; font:800 10.5px 'DM Sans',sans-serif; }
.vd-slot.is-empty { display:grid; place-items:center; min-width:46px; padding:0; border-style:dashed; box-shadow:none; background:transparent; color:#c4b9e8; }
.vd-emotes { display:flex; gap:5px; min-width:0; overflow-x:auto; scrollbar-width:none; }
.vd-emotes::-webkit-scrollbar { display:none; }
.vd-emote { flex:none; min-width:40px; height:40px; align-self:center; padding:0 8px; border:1px solid #e1e7f0; border-radius:12px; background:#fff; color:#3a4658; font:700 12.5px 'DM Sans',sans-serif; cursor:pointer; transition:transform .1s ease; }
.vd-emote:nth-child(-n+6) { font-size:21px; }
.vd-emote:hover { transform:translateY(-2px) scale(1.06); }
.vd-spell { min-height:66px; margin-top:12px; }
.vd-spell[hidden] { display:none; }
.vd-hand { margin-top:14px; }
.vd-hand .vg-wcard { min-height:112px; padding:14px 10px 12px; }
.vd-hand .vg-wcard-gem { display:none; }
.vd-back { min-height:112px; border-color:#38206f!important; background:repeating-linear-gradient(135deg, #38206f 0 12px, #2b1b6b 12px 24px)!important; color:#ffd23f; }
.vd-back .material-symbols-outlined { font-size:34px; font-variation-settings:'FILL' 1; }
.vg-wcard.is-locked { border-color:#ff6a2b; background:#fff2ea; box-shadow:0 6px 0 #ffc4a8; transform:translateY(-10px) rotate(0); }
.vg-wcard.is-removed { opacity:.2; filter:grayscale(1); text-decoration:line-through; }
.vd-hand.is-frozen .vg-wcard { border-color:#8fe1f2; background:linear-gradient(140deg, #eafcff, #bdeefa); box-shadow:0 6px 0 #8fe1f2; color:#4f8a9a; }
.vd-hand.is-smoked .vg-wcard strong, .vd-hand.is-smoked .vg-wcard small { filter:blur(6px); transition:filter .4s ease; }
.vd-next { position:relative; flex:none; min-width:130px; overflow:hidden; padding:12px 16px; border-radius:14px; background:#0b1428; color:#fff; font:800 14px 'DM Sans',sans-serif; text-align:center; }
.vd-confirm { position:fixed; inset:0; z-index:60; display:grid; place-items:center; padding:16px; background:rgba(11,20,40,.6); }
.vd-confirm[hidden] { display:none; }
.vd-confirm > div { width:min(380px,100%); padding:24px; border-radius:22px; background:#fff; text-align:center; box-shadow:0 8px 0 rgba(0,0,0,.3); animation:vg-rise .25s ease; }
.vd-confirm strong { color:#0b1428; font:800 21px 'DM Sans',sans-serif; }
.vd-confirm p { margin:6px 0 18px; color:#5b6678; font:500 15px/1.45 'DM Sans',sans-serif; }
.vd-confirm > div > div { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; }
.vg-btn.is-leave { --c:#e5484d; --cd:#a92a2e; }

/* Results */
.vd-score { display:flex; align-items:center; justify-content:center; gap:14px; margin:0 0 14px; color:#3a4658; font:700 15px 'DM Sans',sans-serif; }
.vd-score b { color:#0b1428; font:900 34px 'DM Sans',sans-serif; }
.vd-score i { margin:0 5px; color:#a0a9b8; font-style:normal; }
.vd-facts { grid-template-columns:repeat(4, 1fr); }
.vd-missed ul { display:grid; grid-template-columns:repeat(2, 1fr); gap:8px; margin:8px 0 0; padding:0; list-style:none; }
.vd-missed li { display:flex; align-items:center; gap:10px; padding:8px 12px; border-radius:14px; background:#fff4ee; text-align:left; }
.vd-missed li div { min-width:0; }
.vd-missed strong { display:block; color:#0b1428; font:700 16.5px/1.2 'Literata',Georgia,serif; }
.vd-missed li > div span { color:#5b6678; font:italic 400 13.5px/1.3 'Literata',Georgia,serif; }
.vd-clean { display:flex; align-items:center; justify-content:center; gap:6px; color:#12895a; font:700 15px 'DM Sans',sans-serif; }
.vd-note { align-self:center; color:#6b7487; font:600 14.5px 'DM Sans',sans-serif; }
.vg-btn.is-pulse { animation:vd-glow 1s ease-in-out infinite; }
.vg-btn[disabled] { opacity:.65; cursor:default; }

@keyframes vd-shock { 0%,20%,40%,60%,80% { filter:invert(1) brightness(1.8) saturate(2); } 10%,30%,50%,70%,90% { filter:brightness(2.4) saturate(.2); } 100% { filter:none; } }
@keyframes vd-burn { 0% { filter:brightness(1.6) sepia(1) saturate(6) hue-rotate(-30deg); } 60% { filter:brightness(.7) sepia(.6) saturate(3) hue-rotate(-25deg); } 100% { filter:none; } }
@keyframes vd-iced { 0%,70% { filter:brightness(1.4) saturate(.4) hue-rotate(160deg); transform:scale(1.02,.98); } 100% { filter:none; transform:none; } }
@keyframes vd-warp { 0% { transform:none; filter:none; } 35% { transform:scale(.72,1.25) skewX(10deg); filter:hue-rotate(60deg) brightness(.5); } 70% { transform:scale(1.15,.86) skewX(-6deg); } 100% { transform:none; filter:none; } }
@keyframes vd-tangled { 0%,100% { transform:none; filter:none; } 20%,60% { transform:translateX(-4px) rotate(-3deg); filter:saturate(.5) hue-rotate(50deg); } 40%,80% { transform:translateX(4px) rotate(3deg); filter:saturate(.5) hue-rotate(50deg); } }
@keyframes vd-inked { 0%,55% { filter:brightness(.42) saturate(1.8) hue-rotate(190deg); } 100% { filter:none; } }
@keyframes vd-idle { 0%,100% { transform:translateY(0) scaleY(1); } 50% { transform:translateY(-2px) scaleY(1.02); } }
@keyframes vd-recoil { 0% { transform:none; } 18% { transform:translateX(-14%) rotate(-14deg); } 100% { transform:none; } }
@keyframes vd-kick { 18% { translate:-6px 0; } 100% { translate:0 0; } }
@keyframes vd-charge { to { filter:drop-shadow(0 0 12px #ffd23f) drop-shadow(0 0 24px #ff7a1a); } }
@keyframes vd-hurt { 0% { translate:0 0; filter:none; } 12% { translate:-12px 0; rotate:-6deg; filter:brightness(2.6) saturate(.2); } 30% { translate:9px 0; rotate:4deg; filter:brightness(1.2) sepia(.6) saturate(4) hue-rotate(-35deg); } 55% { translate:-5px 0; rotate:0deg; filter:none; } 100% { translate:0 0; } }
@keyframes vd-fall { 0% { translate:0 0; rotate:0deg; } 30% { translate:-30px -34px; rotate:-40deg; } 100% { translate:-46px 22px; rotate:-92deg; } }
@keyframes vd-fall-foe { 0% { translate:0 0; rotate:0deg; } 30% { translate:30px -34px; rotate:40deg; } 100% { translate:46px 22px; rotate:92deg; } }
@keyframes vd-win { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-16px); } }
@keyframes vd-shake { 0%,100% { transform:translate(0,0); } 15% { transform:translate(-6px,3px); } 35% { transform:translate(5px,-4px); } 55% { transform:translate(-4px,2px); } 75% { transform:translate(3px,-1px); } }
@keyframes vd-shake-big { 0%,100% { transform:translate(0,0) rotate(0); } 10% { transform:translate(-13px,7px) rotate(-.8deg); } 25% { transform:translate(12px,-8px) rotate(.8deg); } 40% { transform:translate(-9px,6px) rotate(-.5deg); } 58% { transform:translate(7px,-4px) rotate(.3deg); } 78% { transform:translate(-3px,2px); } }
@keyframes vd-flash { 0% { opacity:1; } 100% { opacity:0; } }
@keyframes vd-danger { 50% { box-shadow:inset 0 0 90px 22px rgba(229,72,77,.82); } }
@keyframes vd-low { 50% { filter:brightness(1.4); } }
@keyframes vd-phrase { from { opacity:0; transform:translateX(-50%) scale(.7); } }
@keyframes vd-pop-up { 0% { opacity:0; transform:translate(-50%,12px) scale(.4); } 14% { opacity:1; transform:translate(-50%,0) scale(1.25); } 26% { transform:translate(-50%,0) scale(1); } 74% { opacity:1; transform:translate(-50%,-26px); } 100% { opacity:0; transform:translate(-50%,-44px); } }
@keyframes vd-call { 0% { opacity:0; } 8%, 80% { opacity:1; } 100% { opacity:0; } }
@keyframes vd-say { 0% { opacity:0; transform:translateY(8px) scale(.6); } 8% { opacity:1; transform:translateY(0) scale(1.1); } 14% { transform:scale(1); } 86% { opacity:1; } 100% { opacity:0; transform:translateY(-10px); } }
@keyframes vd-drop { from { transform:translateY(-340px) rotate(-6deg); } 70% { transform:translateY(0); } 82% { transform:translateY(-10px) rotate(2deg); } 100% { transform:translateY(0); } }
@keyframes vd-chute { 0%,60% { opacity:1; } 100% { opacity:0; } }
@keyframes vd-grab { to { transform:translateX(var(--to, 0)) scale(.3); opacity:0; } }
@keyframes vd-glow { 50% { box-shadow:0 4px 0 #d5c9f5, 0 0 0 5px rgba(124,92,240,.25); } }
@keyframes vd-in-left { from { opacity:0; transform:translateX(-120px); } }
@keyframes vd-in-right { from { opacity:0; transform:translateX(120px); } }

@media (max-width:760px) {
  .vd-friends { grid-template-columns:1fr; gap:12px; padding:18px; }
  .vd-mini { width:92px; }
  .vd-pick { grid-template-columns:repeat(3, 1fr); }
  .vd-preview { height:216px; }
  .vd-preview .vd-stand { width:82px; }
  .vd-rules { grid-template-columns:repeat(2, 1fr); }
  .vd-join { flex:1; min-width:210px; }
  .vd-join input { flex:1; min-width:0; }
  .vd-versus { padding:10px 6px; gap:4px; }
  .vd-seat-art { width:84px; height:92px; }
  .vd-seat-art .vg-art { width:80px; }
  .vd-seat.is-empty .vd-seat-art { width:76px; height:76px; }
  .vd-vs { font-size:24px; }
  .vd-levels { grid-template-columns:1fr; }
  .vd-arena { height:272px; border-radius:20px; }
  .vd-bars { top:8px; left:8px; right:8px; gap:6px; }
  .vd-hp-top strong { font-size:13px; }
  .vd-hp-num { font-size:12px; }
  .vd-hp-bar { height:15px; border-width:2px; }
  .vd-clock { width:50px; height:50px; }
  .vd-clock::before { inset:6px; }
  .vd-clock > span { font-size:19px; }
  .vd-phrase { top:64px; width:calc(100% - 28px); padding:5px 10px 7px; font-size:14px; }
  .vd-phrase span { font-size:9.5px; }
  .vd-stand { width:96px; }
  .vd-pop { font-size:26px; }
  .vd-pop.is-crit { font-size:30px; }
  .vd-pop.is-ultra { font-size:36px; }
  .vd-tray { flex-direction:column; gap:10px; }
  .vd-slot { flex:1; min-width:0; }
  .vd-items { width:100%; }
  .vd-emote { min-width:38px; height:36px; }
  .vd-hand { grid-template-columns:1fr 1fr; gap:10px; }
  .vd-hand .vg-wcard { --r:0deg!important; --y:0px!important; }
  .vd-hand .vg-wcard, .vd-back { min-height:84px; }
  .vd-hand .vg-wcard small { display:none; }
  .vd-facts { grid-template-columns:repeat(2, 1fr); }
  .vd-missed ul { grid-template-columns:1fr; }
  .vd-next { min-width:0; align-self:stretch; }
}

html[data-theme="dark"] .vd-pick-one small { color:#a6abb3; }
html[data-theme="dark"] .vd-section, html[data-theme="dark"] .vd-wait { color:#eef1f6; }
html[data-theme="dark"] .vd-pick-one, html[data-theme="dark"] .vd-level, html[data-theme="dark"] .vd-slot, html[data-theme="dark"] .vd-emote { border-color:#2e3542; background:#1f2633; box-shadow:0 4px 0 #2e3542; color:#d6d9de; }
html[data-theme="dark"] .vd-pick-one.is-on { border-color:var(--f); box-shadow:0 4px 0 var(--fd); background:#262d3b; color:#fff; }
html[data-theme="dark"] .vd-level.is-on { border-color:#ff6a2b; box-shadow:0 4px 0 #d94c12; background:#2c2320; }
html[data-theme="dark"] .vd-rules li { background:#2c2320; color:#e6dcd6; }
html[data-theme="dark"] .vd-invite { border-color:#4a3f70; background:#231f33; }
html[data-theme="dark"] .vd-code, html[data-theme="dark"] .vd-score b, html[data-theme="dark"] .vd-confirm strong { color:#eef1f6; }
html[data-theme="dark"] .vd-confirm > div { background:#1f2633; }
html[data-theme="dark"] .vd-missed li { background:#2c2320; }
html[data-theme="dark"] .vd-missed strong { color:#eef1f6; }

/* Topic chips: on the duel menu and in a room's lobby */
.vd-topics { display:flex; flex-wrap:wrap; gap:8px; }
.vd-topic { display:inline-flex; align-items:center; gap:6px; min-height:42px; padding:0 14px 0 10px; border:2px solid #e3e9f2; border-radius:14px; background:#fff; box-shadow:0 3px 0 #e3e9f2; color:#0b1428; font:700 14px 'DM Sans',sans-serif; cursor:pointer; }
.vd-topic .material-symbols-outlined { font-size:19px; color:#5b6577; }
.vd-topic.is-on { border-color:#2f6fed; box-shadow:0 3px 0 #1f4fc0; background:#eaf1ff; color:#1d4ed8; }
.vd-topic.is-on .material-symbols-outlined { color:#2f6fed; font-variation-settings:'FILL' 1; }
.vd-topic[disabled] { cursor:default; opacity:.75; }
.vd-topic[disabled].is-on { opacity:1; }
html[data-theme="dark"] .vd-topic { border-color:#2e3542; background:#1f2633; box-shadow:0 3px 0 #2e3542; color:#d6d9de; }
html[data-theme="dark"] .vd-topic.is-on { border-color:#5b8ff5; background:#1f2b45; color:#fff; }

/* Leagues: the player's league card above the leaderboard, small badges in the list, the change after a duel */
.vd-league { --lc:#b26b3a; --ls:#fbeee4; display:flex; align-items:center; gap:14px; margin:0 0 16px; padding:14px 16px; border-radius:18px; background:var(--ls); }
.vd-league.is-silver { --lc:#6b7a90; --ls:#eef2f7; }
.vd-league.is-gold { --lc:#c98e00; --ls:#fff6dc; }
.vd-league.is-diamond { --lc:#1aa3c4; --ls:#e2f7fc; }
.vd-league-badge { display:grid; place-items:center; flex:none; width:54px; height:54px; border-radius:16px; background:var(--lc); color:#fff; box-shadow:0 4px 0 rgba(0,0,0,.18); }
.vd-league-badge .material-symbols-outlined { font-size:32px; font-variation-settings:'FILL' 1; }
.vd-league-body { display:grid; flex:1; gap:2px; min-width:0; }
.vd-league-body strong { color:#0b1428; font:900 18px/1.2 'DM Sans',sans-serif; }
.vd-league-body span { color:#5b6577; font:600 13.5px/1.3 'DM Sans',sans-serif; }
.vd-league-body i { position:relative; height:8px; margin-top:6px; overflow:hidden; border-radius:4px; background:rgba(11,20,40,.1); }
.vd-league-body i::after { content:''; position:absolute; inset:0 auto 0 0; width:var(--w); border-radius:4px; background:var(--lc); }
.vd-lg { display:inline-grid; place-items:center; margin-right:6px; vertical-align:-3px; color:#b26b3a; }
.vd-lg .material-symbols-outlined { font-size:17px; font-variation-settings:'FILL' 1; }
.vd-lg.is-silver { color:#8a97ab; } .vd-lg.is-gold { color:#e0a500; } .vd-lg.is-diamond { color:#1aa3c4; }
.vd-rating-change { display:flex; align-items:center; justify-content:center; gap:6px; margin:0 0 14px; color:#3d4759; font:600 15px 'DM Sans',sans-serif; }
.vd-rating-change[hidden] { display:none; }
.vd-rating-change b { color:#0b1428; font:900 20px 'DM Sans',sans-serif; }
.vd-rating-change em { padding:2px 9px; border-radius:10px; background:#e7ecf4; color:#3d4759; font:800 14px 'DM Sans',sans-serif; font-style:normal; }
.vd-rating-change.is-up em { background:#dcf6e8; color:#0f7a4a; }
.vd-rating-change.is-down em { background:#fde4e4; color:#b42318; }
.vd-promoted { display:flex; align-items:center; justify-content:center; gap:8px; margin:-4px auto 16px; padding:10px 16px; max-width:360px; border-radius:16px; background:linear-gradient(120deg, #ffd23f, #ff9f1a); color:#3a2500; font:900 17px 'DM Sans',sans-serif; animation:vg-stamp .5s cubic-bezier(.2,.9,.3,1.4); }
html[data-theme="dark"] .vd-league { background:#262d3b; }
html[data-theme="dark"] .vd-league-body strong, html[data-theme="dark"] .vd-rating-change b { color:#eef1f6; }
html[data-theme="dark"] .vd-league-body span, html[data-theme="dark"] .vd-rating-change { color:#a6abb3; }

/* Typing the word instead of tapping a card */
.vd-hand.is-typing { display:none; }
.vd-type { margin:10px auto 4px; max-width:560px; text-align:center; }
.vd-type[hidden] { display:none; }
.vd-type-hint { display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:center; gap:6px; margin:0 0 12px; }
.vd-type-hint b { color:#1d4ed8; font:800 30px/1 'Literata',Georgia,serif; text-transform:uppercase; }
.vd-type-hint i { display:inline-block; width:18px; height:3px; margin-bottom:4px; border-radius:2px; background:#b9c4d6; }
.vd-type-hint span { flex-basis:100%; margin-top:6px; color:#6b7487; font:600 13px 'DM Sans',sans-serif; }
.vd-type-row { display:flex; gap:10px; }
.vd-type-row input { flex:1; min-width:0; height:56px; padding:0 18px; border:2px solid #cfd8e6; border-radius:16px; background:#fff; color:#0b1428; font:700 22px 'Literata',Georgia,serif; outline:none; box-shadow:0 4px 0 #e3e9f2; }
.vd-type-row input:focus { border-color:#2f6fed; }
.vd-type-row input:disabled { background:#eef2f8; }
.vd-type .vg-btn { --c:#ff6a2b; --cd:#b53b12; min-height:56px; }
html[data-theme="dark"] .vd-type-row input { border-color:#2e3542; background:#1f2633; color:#eef1f6; box-shadow:0 4px 0 #2e3542; }
html[data-theme="dark"] .vd-type-hint b { color:#8fb0ff; }

/* More action in the fight: a lunge on every shot, knockback on every hit, speed lines, a camera punch, restless cards */
.vd-stand.is-you { --back:-1; }
.vd-stand.is-foe { --back:1; }
.vd-stand.is-lunge { animation:vd-lunge .34s ease-out; }
.vd-stand.is-knock { animation:vd-knock .44s cubic-bezier(.2,.8,.3,1); }
.vd-stand.is-knock-big { animation:vd-knock-big .64s cubic-bezier(.2,.8,.3,1); }
.vd-arena { transition:scale .14s ease-out; }
.vd-arena.is-zoom { scale:1.045; }
.vd-rush { position:absolute; inset:0; z-index:2; pointer-events:none; opacity:0; background:repeating-linear-gradient(0deg, transparent 0 22px, rgba(255,255,255,.2) 22px 24px, transparent 24px 58px, rgba(255,255,255,.12) 58px 59px, transparent 59px 96px); -webkit-mask-image:linear-gradient(90deg, #000, transparent 34%, transparent 66%, #000); mask-image:linear-gradient(90deg, #000, transparent 34%, transparent 66%, #000); }
.vd-rush.is-on { animation:vd-rush .72s ease-out; }
.vd-pop.is-combo { color:#ffd23f; font-size:clamp(18px,3.4cqw,26px); text-shadow:0 3px 0 #b53b12, 0 0 14px rgba(255,122,26,.8); }
.vd-hand.is-hurry .vg-wcard:not(.is-locked):not(.is-dim):not([disabled]) { animation:vd-hurry .26s ease-in-out infinite alternate; }
.vd-hand.is-hurry .vg-wcard:nth-child(even) { animation-delay:-.13s; }
@keyframes vd-lunge { 30% { translate:calc(var(--back) * -18px) 0; } 100% { translate:0 0; } }
@keyframes vd-knock { 22% { translate:calc(var(--back) * 18px) 0; } 100% { translate:0 0; } }
@keyframes vd-knock-big { 18% { translate:calc(var(--back) * 40px) -10px; rotate:calc(var(--back) * 6deg); } 50% { translate:calc(var(--back) * 26px) 0; rotate:0deg; } 100% { translate:0 0; } }
@keyframes vd-rush { 0% { opacity:0; background-position:0 0; } 12% { opacity:1; } 100% { opacity:0; background-position:0 40px; } }
@keyframes vd-hurry { to { translate:0 -4px; rotate:.8deg; } }
@media (prefers-reduced-motion: reduce) {
  .vd-stand.is-lunge, .vd-stand.is-knock, .vd-stand.is-knock-big, .vd-rush.is-on, .vd-hand.is-hurry .vg-wcard { animation:none; }
  .vd-arena.is-zoom { scale:1; }
}

/* The daily challenge and the streak, at the top of the duel menu */
.vd-daily { display:grid; grid-template-columns:minmax(0, 1.15fr) minmax(0, 1fr); gap:22px; align-items:start; margin:4px 0 22px; padding:22px 26px; border:2px solid #ffd98a; border-radius:28px; background:linear-gradient(120deg, #fff8e1 0%, #ffecb8 100%); box-shadow:0 6px 0 #f0c66a; }
.vd-daily .vd-eyebrow { color:#b06a00; }
.vd-daily h2 { margin:0 0 6px; color:#3a2500; font:900 clamp(24px,3vw,30px)/1.1 'DM Sans',sans-serif; letter-spacing:-.02em; }
.vd-daily-body > p:not(.vd-eyebrow):not(.vd-daily-streak):not(.vd-daily-done) { margin:0 0 14px; color:#6b4a12; font:500 15px/1.5 'DM Sans',sans-serif; }
.vd-daily .vg-btn { --c:#ff6a2b; --cd:#b53b12; }
.vd-daily-done { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:0; padding:12px 14px; border-radius:14px; background:#fff; color:#3a2500; font:600 14.5px/1.4 'DM Sans',sans-serif; }
.vd-daily-done .material-symbols-outlined { color:#1fae6c; font-variation-settings:'FILL' 1; }
.vd-daily-streak { display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; margin:14px 0 0; color:#6b4a12; font:600 13.5px/1.4 'DM Sans',sans-serif; }
.vd-streak { display:inline-flex; align-items:center; gap:4px; padding:5px 11px 5px 7px; border-radius:20px; background:#fff; color:#8a6a2a; font:800 13.5px 'DM Sans',sans-serif; white-space:nowrap; }
.vd-streak .material-symbols-outlined { font-size:19px; color:#c9b27c; font-variation-settings:'FILL' 1; }
.vd-streak.is-lit { background:#ff6a2b; color:#fff; }
.vd-streak.is-lit .material-symbols-outlined { color:#ffe08a; }
.vd-daily-top { padding:14px; border-radius:20px; background:rgba(255,255,255,.72); }
.vd-daily-top > p:first-child { margin:0 0 8px 4px; color:#8a5a00; font:800 12px 'DM Sans',sans-serif; letter-spacing:.09em; text-transform:uppercase; }
.vd-daily-top .vd-board-list li { background:#fff; }
.vd-daily-none { margin:0; padding:14px; border-radius:14px; background:#fff; color:#6b4a12; font:600 14px/1.45 'DM Sans',sans-serif; text-align:center; }
.vd-missed p small { display:block; margin-top:3px; color:#6b7487; font:500 12.5px/1.4 'DM Sans',sans-serif; letter-spacing:0; text-transform:none; }
@media (max-width:760px) {
  .vd-daily { grid-template-columns:1fr; gap:14px; padding:18px; }
}
html[data-theme="dark"] .vd-daily { border-color:#6b5320; background:linear-gradient(120deg, #2e2716 0%, #3a2f15 100%); box-shadow:0 6px 0 #1f1a0e; }
html[data-theme="dark"] .vd-daily h2 { color:#fff3d1; }
html[data-theme="dark"] .vd-daily .vd-eyebrow, html[data-theme="dark"] .vd-daily-top > p:first-child { color:#ffd23f; }
html[data-theme="dark"] .vd-daily-body > p:not(.vd-eyebrow):not(.vd-daily-done), html[data-theme="dark"] .vd-daily-streak { color:#d9c9a3; }
html[data-theme="dark"] .vd-daily-top { background:rgba(0,0,0,.22); }
html[data-theme="dark"] .vd-daily-done, html[data-theme="dark"] .vd-daily-none, html[data-theme="dark"] .vd-daily-top .vd-board-list li { background:#262d3b; color:#eef1f6; }
html[data-theme="dark"] .vd-streak:not(.is-lit) { background:#262d3b; color:#d9c9a3; }

/* Join with no code, and the leaderboard on the duel menu */
.vd-friends-body > p.vd-join-hint { display:flex; align-items:center; gap:6px; margin:20px 0 0; max-width:none; color:#ffd23f; font:700 14px/1.4 'DM Sans',sans-serif; }
.vd-join-hint .material-symbols-outlined { flex:none; font-size:18px; }
.vd-seeking { display:flex; align-items:center; justify-content:center; gap:8px; margin:0; padding:14px 18px; border-radius:16px; background:#fff2ea; color:#a33a0b; font:700 15px/1.4 'DM Sans',sans-serif; text-align:center; }
.vd-seeking .material-symbols-outlined { flex:none; animation:vg-tick 1.6s ease-in-out infinite; }
.vd-board { margin:0 0 22px; padding:18px 20px 16px; border:2px solid #e3e9f2; border-radius:22px; background:#fff; box-shadow:0 4px 0 #e3e9f2; }
.vd-board-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin:0 0 12px; }
.vd-board-head h3 { display:flex; align-items:center; gap:8px; margin:0; color:#0b1428; font:900 19px/1.2 'DM Sans',sans-serif; }
.vd-board-head h3 .material-symbols-outlined { color:#f0a500; font-size:24px; font-variation-settings:'FILL' 1; }
.vd-board-tabs { display:flex; gap:4px; padding:4px; border-radius:14px; background:#f1f4fa; }
.vd-board-tab { min-height:36px; padding:0 14px; border:0; border-radius:10px; background:transparent; color:#5b6577; font:800 13.5px 'DM Sans',sans-serif; cursor:pointer; }
.vd-board-tab.is-on { background:#fff; box-shadow:0 1px 3px rgba(11,20,40,.14); color:#0b1428; }
.vd-board-list { display:grid; gap:6px; margin:0; padding:0; list-style:none; }
.vd-board-list.is-own { margin-top:10px; padding-top:10px; border-top:2px dashed #e3e9f2; }
.vd-board-list li { display:grid; grid-template-columns:34px minmax(0, 1fr) auto 72px; align-items:center; gap:10px; min-height:44px; padding:4px 12px 4px 6px; border-radius:14px; background:#f7f9fc; color:#0b1428; font:600 14.5px/1.3 'DM Sans',sans-serif; }
.vd-board-list li.is-you { background:#fff2ea; box-shadow:inset 0 0 0 2px #ffc9ab; }
.vd-board-list strong { overflow:hidden; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }
.vd-board-list strong small { margin-left:6px; padding:2px 7px; border-radius:8px; background:#ff6a2b; color:#fff; font:800 11px 'DM Sans',sans-serif; text-transform:uppercase; letter-spacing:.04em; }
.vd-board-list li > span { color:#5b6577; white-space:nowrap; }
.vd-board-list em { color:#0b1428; font-style:normal; font-weight:900; text-align:right; white-space:nowrap; }
.vd-rank { display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:#e7ecf4; color:#3d4759; font:900 13.5px 'DM Sans',sans-serif; }
.vd-rank.is-1 { background:#ffd23f; color:#6b4a00; }
.vd-rank.is-2 { background:#d5dbe6; color:#3d4759; }
.vd-rank.is-3 { background:#f2b98c; color:#6b3a10; }
.vd-board-empty { margin:6px 0 2px; padding:16px; border-radius:14px; background:#f7f9fc; color:#5b6577; font:600 14.5px/1.45 'DM Sans',sans-serif; text-align:center; }
.vd-board-note { margin:12px 0 0; color:#6b7487; font:500 12.5px/1.45 'DM Sans',sans-serif; }
@media (max-width:640px) {
  .vd-board { padding:14px 12px 12px; }
  .vd-board-list li { grid-template-columns:30px minmax(0, 1fr) auto 58px; gap:8px; padding-right:10px; font-size:13.5px; }
}
html[data-theme="dark"] .vd-board { border-color:#2e3542; background:#1f2633; box-shadow:0 4px 0 #2e3542; }
html[data-theme="dark"] .vd-board-head h3, html[data-theme="dark"] .vd-board-list li, html[data-theme="dark"] .vd-board-list em { color:#eef1f6; }
html[data-theme="dark"] .vd-board-tabs, html[data-theme="dark"] .vd-board-list li, html[data-theme="dark"] .vd-board-empty { background:#262d3b; }
html[data-theme="dark"] .vd-board-tab { color:#a6abb3; }
html[data-theme="dark"] .vd-board-tab.is-on { background:#374052; color:#fff; }
html[data-theme="dark"] .vd-board-list li.is-you { background:#2c2320; box-shadow:inset 0 0 0 2px #7a4a30; }
html[data-theme="dark"] .vd-board-list li > span, html[data-theme="dark"] .vd-board-empty, html[data-theme="dark"] .vd-board-note { color:#a6abb3; }
html[data-theme="dark"] .vd-board-list.is-own { border-top-color:#2e3542; }
html[data-theme="dark"] .vd-rank { background:#374052; color:#d6d9de; }
html[data-theme="dark"] .vd-seeking { background:#2c2320; color:#ffc9ab; }
