/* The Games page. Bright, chunky game pieces: each game has its colour (--c, a lighter --c2, a darker --cd for the
   edge a button presses into, a soft --cs), DM Sans for the interface and Literata for the English being learned.
   While a game is on, the page header steps aside. */
.vocabulary-page.is-playing .vb-head { display:none!important; }
.is-duel { --c:#ff6a2b; --c2:#ffa04d; --cd:#d94c12; --cs:#fff1e8; }
.is-upgrade { --c:#7357ee; --c2:#a48fff; --cd:#5639cf; --cs:#f2eeff; }
.is-gap { --c:#1499e0; --c2:#55c6ff; --cd:#0a72b0; --cs:#e7f5fd; }
.is-mine { --c:#1fae6c; --c2:#5fd99d; --cd:#138552; --cs:#e5f7ee; }

/* Chunky buttons: a darker edge underneath that the button presses into. */
.vg-btn { position:relative; display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:48px; padding:0 22px; overflow:hidden; border:0; border-radius:16px; background:var(--c, #2f6fed); box-shadow:0 5px 0 var(--cd, #1f4fc0); color:#fff; font:800 16px/1 'DM Sans',sans-serif; text-decoration:none; cursor:pointer; transition:transform .08s ease, box-shadow .08s ease, filter .15s ease; }
.vg-btn:hover { filter:brightness(1.06); color:#fff; }
.vg-btn:active { transform:translateY(4px); box-shadow:0 1px 0 var(--cd, #1f4fc0); }
.vg-btn:focus-visible { outline:3px solid rgba(47,111,237,.35); outline-offset:3px; }
.vg-btn .material-symbols-outlined { font-size:21px; }
.vg-btn.is-ghost { border:2px solid #dfe6f1; background:#fff; box-shadow:0 5px 0 #dfe6f1; color:#0b1428; }
.vg-btn.is-ghost:hover { color:#0b1428; }
.vg-btn.is-ghost:active { box-shadow:0 1px 0 #dfe6f1; }

/* Games list: a cover picture on each game's colour, then its name and a Play button */
.vg-intro { display:flex; justify-content:flex-end; margin:0 0 14px; }
.vg-sound { display:inline-flex; align-items:center; gap:6px; flex:none; height:36px; padding:0 12px; border:1px solid #e1e7f0; border-radius:999px; background:#fff; color:#5b6678; font:600 13.5px 'DM Sans',sans-serif; cursor:pointer; }
.vg-sound:hover { color:#0b1428; border-color:#cfd8e4; }
.vg-sound .material-symbols-outlined { font-size:18px; }
.vg-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:18px; padding-bottom:14px; }
@media (max-width:1240px) { .vg-grid { grid-template-columns:repeat(2, 1fr); } }
.vg-card { display:flex; flex-direction:column; overflow:hidden; border:2px solid #e3e9f2; border-radius:26px; background:#fff; box-shadow:0 6px 0 #e3e9f2; transition:transform .2s cubic-bezier(.2,.8,.3,1.2), box-shadow .2s ease; }
.vg-card:hover { transform:translateY(-5px); box-shadow:0 11px 0 #e3e9f2; }
.vg-cover { position:relative; display:grid; place-items:center; height:156px; overflow:hidden; background:linear-gradient(150deg, var(--c2) 0%, var(--c) 100%); }
.vg-cover::before, .vg-cover::after { content:''; position:absolute; border-radius:50%; background:rgba(255,255,255,.16); }
.vg-cover::before { width:190px; height:190px; left:-70px; top:-100px; }
.vg-cover::after { width:130px; height:130px; right:-36px; bottom:-70px; }
.vg-cover > svg { position:relative; z-index:1; width:auto; height:118px; transition:transform .3s cubic-bezier(.2,.8,.3,1.3); }
.vg-cover-duo { position:relative; z-index:1; display:flex; align-items:flex-end; gap:4px; transition:transform .3s cubic-bezier(.2,.8,.3,1.3); }
.vg-cover-duo .vg-art { display:block; width:88px; height:auto; }
.vg-cover-duo b { align-self:center; margin-bottom:12px; color:#fff; font:italic 900 20px 'DM Sans',sans-serif; text-shadow:0 3px 0 var(--cd); }
.vg-card:hover .vg-cover > svg, .vg-card:hover .vg-cover-duo { transform:scale(1.07) rotate(-2deg); }
.vg-card-body { display:flex; flex:1; flex-direction:column; gap:6px; padding:16px 20px 20px; }
.vg-card-meta { margin:0; color:var(--cd); font:800 11.5px/1.3 'DM Sans',sans-serif; letter-spacing:.08em; text-transform:uppercase; }
.vg-card h3 { margin:0; color:#0b1428; font:800 23px/1.15 'DM Sans',sans-serif; letter-spacing:-.02em; }
.vg-card-blurb { margin:0; color:#3a4658; font-size:14.5px; line-height:1.55; }
.vg-card-lock { display:flex; align-items:center; gap:6px; margin:4px 0 0; color:#6b7487; font-size:13px; }
.vg-card-lock .material-symbols-outlined { font-size:16px; }
.vg-card-foot { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:auto; padding-top:14px; }
.vg-card-best { display:inline-flex; align-items:center; gap:4px; color:#6b7487; font-size:13px; font-weight:700; }
.vg-card-best .material-symbols-outlined { font-size:18px; color:#f0a800; font-variation-settings:'FILL' 1; }

/* The pictures of the hero and the bots; the hurt face shows while they are hit or down */
.vg-art { overflow:visible; }
.vg-art-shadow { fill:rgba(28,52,96,.16); }
.vg-face-hurt { display:none; }
.is-hurt .vg-face-calm, .is-down .vg-face-calm { display:none; }
.is-hurt .vg-face-hurt, .is-down .vg-face-hurt { display:inline; }
.vg-art-pen { transform-origin:115px 100px; transform:rotate(12deg); transition:transform .2s ease; }
.is-lunge .vg-art-pen { transform:rotate(42deg); }

/* A game screen: the bar on top */
.vg-screen { max-width:860px; margin:0 auto; }
.vg-hud { display:flex; align-items:center; gap:12px; margin:2px 0 14px; }
.vg-hud-title { flex:1; min-width:0; }
.vg-hud-title strong { display:block; color:#0b1428; font:800 19px/1.2 'DM Sans',sans-serif; }
.vg-hud-title span { color:#6b7487; font-size:13.5px; font-weight:600; }
.vg-rounds { display:flex; flex:1; justify-content:center; gap:5px; }
.vg-rounds i { width:18px; height:8px; border-radius:999px; background:#dfe5ef; transition:width .3s ease, background .3s ease; }
.vg-rounds i.is-done { background:#a9c2f5; }
.vg-rounds i.is-now { width:32px; background:#2f6fed; }
.vg-round-label { color:#0b1428; font:800 15px 'DM Sans',sans-serif; white-space:nowrap; }
.vg-round-label small { color:#8a94a6; font-size:13px; }

/* Word Duel: picking a bot. The duel itself is in english-vocab-duel.css */
.vg-screen.is-wide { max-width:1040px; }
.vg-bots { display:grid; grid-template-columns:repeat(4, 1fr); gap:16px; padding-bottom:10px; }
@media (max-width:1240px) { .vg-bots { grid-template-columns:repeat(2, 1fr); } }
.vg-bot { --c:var(--bot); --cd:var(--bot-dark); display:flex; flex-direction:column; align-items:center; gap:6px; padding:0 18px 20px; overflow:hidden; border:2px solid #e3e9f2; border-radius:26px; background:#fff; box-shadow:0 6px 0 #e3e9f2; color:#0b1428; text-align:center; cursor:pointer; transition:transform .2s cubic-bezier(.2,.8,.3,1.2), box-shadow .2s ease; }
.vg-bot:hover { transform:translateY(-5px); box-shadow:0 11px 0 #e3e9f2; }
.vg-bot:focus-visible { outline:3px solid rgba(47,111,237,.35); outline-offset:3px; }
.vg-bot-stage { display:flex; align-items:flex-end; justify-content:center; width:calc(100% + 36px); height:150px; margin-bottom:8px; background:linear-gradient(180deg, #fff 0%, var(--bot-soft) 100%); }
.vg-bot-stage .vg-art { display:block; width:116px; height:auto; animation:vg-bob 2.6s ease-in-out infinite; }
.vg-bot:hover .vg-bot-stage .vg-art { animation-duration:.9s; }
.vg-bot strong { font:800 22px/1.2 'DM Sans',sans-serif; letter-spacing:-.01em; }
.vg-level { display:inline-flex; align-items:center; }
.vg-level i { display:inline-flex; color:#d6dce6; }
.vg-level i.is-on { color:var(--bot); }
.vg-level .material-symbols-outlined { font-size:20px; font-variation-settings:'FILL' 1; }
.vg-level-name { color:var(--bot-dark); font:800 12px/1.3 'DM Sans',sans-serif; letter-spacing:.06em; text-transform:uppercase; }
.vg-bot-band { color:#6b7487; font:600 12.5px/1.3 'DM Sans',sans-serif; }
.vg-bot-note { color:#5b6678; font-size:13.5px; line-height:1.5; }
.vg-bot .vg-btn { width:100%; margin-top:auto; }
.vg-bot .vg-bot-note { margin-bottom:10px; }
.vg-bot.is-locked { cursor:default; }
.vg-bot.is-locked:hover { transform:none; box-shadow:0 6px 0 #e3e9f2; }
.vg-bot.is-locked .vg-art { filter:grayscale(.7); opacity:.7; animation:none; }
.vg-bot.is-locked .vg-card-lock { margin:0 0 10px; }
.vg-bot-stage { position:relative; }
.vg-bot-badge { position:absolute; top:10px; left:10px; display:inline-flex; align-items:center; gap:3px; padding:3px 9px; border-radius:999px; background:var(--bot); color:#fff; font:800 11.5px/1.4 'DM Sans',sans-serif; }
.vg-bot-badge.is-wins { background:#fff; box-shadow:0 2px 0 #e3e9f2; color:#0b1428; }
.vg-bot-badge .material-symbols-outlined { font-size:15px; color:#f0a800; font-variation-settings:'FILL' 1; }

[data-fighter="foe"] .vg-art { animation-delay:-1.3s; }
[data-fighter="foe"].is-down { transform:rotate(10deg) translateY(12px); }

/* The sentence, the hand of word cards, and the right word after a move */
.vg-spell { display:flex; align-items:center; justify-content:center; max-width:760px; min-height:92px; margin:14px auto 0; padding:12px 22px; border:2px solid #e3e9f2; border-radius:20px; background:#fff; color:#2a3342; font:400 clamp(17px,2vw,20px)/1.6 'Literata',Georgia,serif; text-align:center; }
.vg-hand { display:grid; grid-template-columns:repeat(4, 1fr); gap:14px; margin:18px 0 0; padding-bottom:8px; }
.vg-hand[hidden] { display:none; }
.vg-wcard { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; min-height:142px; padding:20px 12px 16px; border:2px solid #dfe6f1; border-radius:22px; background:linear-gradient(180deg, #fff 0%, #f6f9fe 100%); box-shadow:0 6px 0 #d7dfec; color:#0b1428; text-align:center; cursor:pointer; transform:translateY(var(--y)) rotate(var(--r)); transition:transform .2s cubic-bezier(.2,.8,.3,1.3), box-shadow .2s ease, border-color .2s ease, opacity .25s ease; animation:vg-deal .5s cubic-bezier(.2,.8,.3,1.2) backwards; animation-delay:calc(var(--i) * 70ms); }
.vg-wcard:hover:not([disabled]), .vg-wcard:focus-visible { transform:translateY(-12px) rotate(0) scale(1.03); border-color:#2f6fed; box-shadow:0 10px 0 #c6d6f5, 0 22px 30px -20px rgba(30,70,160,.5); outline:none; }
.vg-wcard:active:not([disabled]) { transform:translateY(-4px); box-shadow:0 3px 0 #c6d6f5; }
.vg-wcard-key { position:absolute; top:10px; left:12px; display:grid; place-items:center; width:22px; height:22px; border-radius:7px; background:#eef2f8; color:#7a8597; font:800 12px 'DM Sans',sans-serif; }
.vg-wcard-gem { display:grid; place-items:center; width:32px; height:32px; margin-bottom:2px; border-radius:50%; background:#eaf1ff; color:#2f6fed; }
.vg-wcard-gem .material-symbols-outlined { font-size:20px; font-variation-settings:'FILL' 1; }
.vg-wcard strong { font:700 clamp(19px,2.1vw,23px)/1.15 'Literata',Georgia,serif; }
.vg-wcard small { color:#6b7487; font:500 12.5px/1.35 'DM Sans',sans-serif; }
.vg-wcard[disabled] { cursor:default; }
.vg-wcard.is-played, .vg-wcard.is-right { border-color:#1fb36f; background:#eafaf2; box-shadow:0 6px 0 #a9e6c7; transform:translateY(-8px) rotate(0); }
.vg-wcard.is-played .vg-wcard-gem, .vg-wcard.is-right .vg-wcard-gem { background:#1fb36f; color:#fff; }
.vg-wcard.is-wrong { border-color:#e5484d; background:#fdeeee; box-shadow:0 6px 0 #f3bcbe; animation:vg-shake .4s ease; }
.vg-wcard.is-wrong .vg-wcard-gem { background:#e5484d; color:#fff; }
.vg-wcard.is-dim { opacity:.35; transform:translateY(calc(var(--y) + 14px)) rotate(var(--r)) scale(.96); }
.vg-after { display:flex; align-items:center; gap:18px; margin:18px 0 0; padding:16px 18px 16px 16px; border:2px solid #b8e9cf; border-radius:24px; background:#ebfaf2; animation:vg-rise .4s cubic-bezier(.2,.8,.3,1.2); }
.vg-after[hidden] { display:none; }
.vg-after.is-bad { border-color:#ffd3bf; background:#fff4ee; }
.vg-after-word { display:flex; flex:1; align-items:center; gap:14px; min-width:0; }
.vg-after-word p { margin:0; }
.vg-after-label { display:block; margin-bottom:2px; color:#12895a; font:800 12px 'DM Sans',sans-serif; letter-spacing:.08em; text-transform:uppercase; }
.vg-after.is-bad .vg-after-label { color:#c2410c; }
.vg-after-word strong { color:#0b1428; font:700 26px/1.2 'Literata',Georgia,serif; }
.vg-after-colloc { color:#3a4658; font:italic 400 16.5px/1.4 'Literata',Georgia,serif; }
.vg-after .vg-say { width:48px; height:48px; background:#fff; box-shadow:0 3px 0 #d3e4dc; }
.vg-after .vg-next { flex:none; min-width:170px; }
.vg-wait { position:absolute; left:0; bottom:0; width:0; height:4px; background:rgba(255,255,255,.6); animation:vg-wait var(--wait) linear forwards; }

/* The other games' screens: top bar, progress, the task, the options */
.vg-top { display:flex; align-items:center; gap:12px; max-width:760px; margin:4px auto 10px; }
.vg-exit { display:grid; place-items:center; flex:none; width:40px; height:40px; border:1px solid #e1e7f0; border-radius:12px; background:#fff; color:#5b6678; cursor:pointer; }
.vg-exit:hover { color:#0b1428; border-color:#cfd8e4; }
.vg-top-title { flex:1; min-width:0; }
.vg-top-title strong { display:block; color:#0b1428; font:700 17px/1.2 'DM Sans',sans-serif; }
.vg-top-title span { color:#6b7487; font-size:13px; font-weight:600; }
.vg-top-stats { display:flex; gap:6px; flex:none; }
.vg-pill { display:inline-flex; align-items:center; gap:4px; height:32px; padding:0 11px; border-radius:999px; background:#f1f4f8; color:#0b1428; font:700 14px 'DM Sans',sans-serif; }
.vg-pill .material-symbols-outlined { font-size:18px; color:#e0a100; }
.vg-streak .material-symbols-outlined { color:#9aa4b4; }
.vg-streak.is-hot { background:#fff1ea; color:#c2410c; }
.vg-streak.is-hot .material-symbols-outlined { color:#e8551f; animation:vg-flame .9s ease-in-out infinite alternate; }
.vg-progress { max-width:760px; height:6px; margin:0 auto 18px; overflow:hidden; border-radius:999px; background:#eef2f7; }
.vg-progress i { display:block; height:100%; border-radius:inherit; background:#245bc7; transition:width .4s ease; }
.vg-task { max-width:760px; margin:0 auto 16px; padding:24px 26px; border:1px solid #e1e7f0; border-radius:20px; background:#fff; }
.vg-kicker { display:flex; align-items:center; gap:6px; margin:0 0 10px; color:#245bc7; font-size:12.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.vg-kicker .material-symbols-outlined { font-size:17px; }
.vg-passage, .vg-sentence { margin:0; color:#2a3342; font:400 clamp(17px,2vw,20px)/1.7 'Literata',Georgia,serif; }
.vg-blank { display:inline-block; min-width:72px; padding:0 10px; border-bottom:3px dashed #245bc7; border-radius:6px 6px 0 0; background:#edf2fb; color:#245bc7; font-weight:600; text-align:center; }
.vg-blank.is-filled { border-bottom-style:solid; border-color:#11975f; background:#e8f7ef; color:#0f6a47; animation:vg-pop .4s ease; }
.vg-options { display:grid; grid-template-columns:1fr 1fr; gap:12px; max-width:760px; margin:0 auto; }
.vg-option { display:flex; align-items:center; gap:14px; min-height:64px; padding:14px 16px; border:2px solid #e1e7f0; border-radius:16px; background:#fff; color:#0b1428; text-align:left; cursor:pointer; transition:transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.vg-option:hover:not([disabled]) { transform:translateY(-2px); border-color:#245bc7; box-shadow:0 12px 26px -18px rgba(36,91,199,.6); }
.vg-option:focus-visible { outline:3px solid rgba(36,91,199,.3); outline-offset:2px; }
.vg-key { display:grid; place-items:center; flex:none; width:28px; height:28px; border-radius:8px; background:#f1f4f8; color:#5b6678; font:700 13px 'DM Sans',sans-serif; }
.vg-option-text { display:flex; flex-direction:column; gap:2px; min-width:0; font:600 16px/1.35 'DM Sans',sans-serif; }
.vg-option-text strong { font:600 19px/1.25 'Literata',Georgia,serif; }
.vg-option-text small { color:#5b6678; font:400 14px/1.4 'DM Sans',sans-serif; }
.vg-options.is-big .vg-option-text { font:600 20px/1.3 'Literata',Georgia,serif; }
.vg-option.is-right { border-color:#11975f; background:#e8f7ef; animation:vg-pop .35s ease; }
.vg-option.is-right .vg-key { background:#11975f; color:#fff; }
.vg-option.is-wrong { border-color:#e5484d; background:#fdecec; animation:vg-shake .35s ease; }
.vg-option.is-wrong .vg-key { background:#e5484d; color:#fff; }
.vg-option.is-dim { opacity:.55; }
.vg-option[disabled] { cursor:default; }
.vg-next-row { display:flex; justify-content:flex-end; max-width:760px; margin:16px auto 6px; }
.vg-next { display:inline-flex; align-items:center; gap:6px; min-width:150px; justify-content:center; }
.vg-learn { display:flex; align-items:center; gap:10px; max-width:760px; margin:14px auto 0; padding:12px 16px; border-radius:14px; background:#f6f8fb; }
.vg-learn p { margin:0; color:#2a3342; font-size:15px; }
.vg-learn strong { font:600 18px 'Literata',Georgia,serif; color:#0b1428; }
.vg-phonetic { color:#6b7487; font-family:'DM Sans',sans-serif; font-size:15px; }
.vg-say { display:grid; place-items:center; flex:none; width:36px; height:36px; border:0; border-radius:50%; background:#e7eefb; color:#245bc7; cursor:pointer; }
.vg-say:hover { background:#d9e4f8; }
.vg-say .material-symbols-outlined { font-size:20px; }
.vg-note { display:flex; gap:12px; max-width:760px; margin:14px auto 0; padding:14px 16px; border:1px solid #e8e2ff; border-radius:14px; background:#faf8ff; }
.vg-note .material-symbols-outlined { flex:none; color:#6d4ae0; font-size:22px; }
.vg-note p { margin:0; color:#2a3342; font-size:15px; line-height:1.6; }

/* Band 6 to Band 9 */
.vg-compare { display:grid; gap:10px; }
.vg-band { padding:12px 16px 14px; border-radius:14px; }
.vg-band > span { display:inline-block; margin-bottom:4px; padding:2px 9px; border-radius:999px; font-size:11.5px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.vg-band p { margin:0; font:400 clamp(16px,1.9vw,19px)/1.65 'Literata',Georgia,serif; color:#2a3342; }
.vg-band.is-six { background:#f6f7f9; } .vg-band.is-six > span { background:#e6e9ee; color:#5b6678; }
.vg-band.is-nine { background:#f3efff; } .vg-band.is-nine > span { background:#6d4ae0; color:#fff; }
.vg-weak { padding:0 3px; border-radius:4px; background:#fde3e3; color:#9b1c1f; text-decoration:line-through; text-decoration-color:rgba(155,28,31,.5); }
.vg-slot { display:inline-block; min-width:64px; margin:0 2px; padding:0 8px; border-bottom:2px dashed #b9a8f5; border-radius:6px 6px 0 0; background:#fff; color:#8b7bd0; font-style:italic; text-align:center; }
.vg-slot.is-filled { border-bottom-style:solid; border-color:#6d4ae0; background:#fff; color:#4c2fbf; font-style:normal; font-weight:600; }
.vg-step { display:flex; align-items:center; gap:8px; max-width:760px; margin:0 auto 12px; color:#0b1428; font:700 16px/1.4 'DM Sans',sans-serif; }
.vg-step .material-symbols-outlined { font-size:22px; color:#6d4ae0; }
.vg-step.is-good .material-symbols-outlined { color:#11975f; }
.vg-step.is-bad .material-symbols-outlined { color:#e0a100; }

/* Fill the Gap and My Words */
.vg-clue { padding:1px 4px; border-radius:4px; background:#fff1c2; color:inherit; }
.vg-clues { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:12px 0 0; color:#5b6678; font-size:14.5px; }
.vg-clues .material-symbols-outlined, .vg-hint .material-symbols-outlined { font-size:18px; color:#e0a100; }
.vg-hint { display:inline-flex; align-items:center; gap:6px; margin-top:14px; padding:7px 12px; border:1px solid #f1e3b0; border-radius:10px; background:#fffaf0; color:#7a5b00; font:600 14px 'DM Sans',sans-serif; cursor:pointer; }
.vg-hint small { color:#9c8536; font-weight:500; }
.vg-hint:hover { background:#fff3d6; }
.vg-listen { display:inline-flex; align-items:center; gap:10px; margin:6px 0 4px; padding:14px 22px 14px 16px; border:0; border-radius:999px; background:#11975f; color:#fff; font:700 17px 'DM Sans',sans-serif; cursor:pointer; box-shadow:0 14px 28px -18px rgba(17,151,95,.8); }
.vg-listen .material-symbols-outlined { font-size:28px; }
.vg-listen:hover { background:#0f8754; }
.vg-listen + .vg-sentence { margin-top:14px; }
.vg-source { margin:12px 0 0; color:#6b7487; font-size:13.5px; }
.vg-source a { color:#245bc7; font-weight:600; }

/* Results: a trophy (or the bot that won) on the game's colour, stars, a few facts, the words practised */
.vg-result { max-width:640px; margin:6px auto 10px; overflow:hidden; border:2px solid #e3e9f2; border-radius:28px; background:#fff; box-shadow:0 6px 0 #e3e9f2; text-align:center; animation:vg-rise .45s cubic-bezier(.2,.8,.3,1.2); }
.vg-result-top { position:relative; padding:26px 24px 24px; overflow:hidden; background:linear-gradient(160deg, var(--c2) 0%, var(--c) 100%); }
.vg-burst { position:absolute; left:50%; top:80px; width:560px; height:560px; margin:-280px 0 0 -280px; border-radius:50%; background:repeating-conic-gradient(rgba(255,255,255,.13) 0 10deg, transparent 10deg 20deg); pointer-events:none; animation:vg-spin 24s linear infinite; }
.vg-medal { position:relative; width:112px; margin:0 auto 2px; animation:vg-stamp .6s cubic-bezier(.2,.9,.3,1.4) backwards; }
.vg-medal svg { display:block; width:100%; height:auto; filter:drop-shadow(0 6px 0 rgba(0,0,0,.12)); }
.vg-medal.is-bot .vg-art { animation:vg-bob 2.6s ease-in-out infinite; }
.vg-stars { position:relative; display:flex; justify-content:center; gap:4px; margin:4px 0 6px; }
.vg-stars > span { color:rgba(255,255,255,.38); }
.vg-stars .material-symbols-outlined { font-size:46px; font-variation-settings:'FILL' 1; }
.vg-stars > span.is-on { color:#ffd23f; filter:drop-shadow(0 3px 0 rgba(0,0,0,.15)); animation:vg-pop .5s ease .35s backwards; }
.vg-stars > span.is-on:nth-child(2) { animation-delay:.5s; } .vg-stars > span.is-on:nth-child(3) { animation-delay:.65s; }
.vg-result h2 { position:relative; margin:0; color:#fff; font:900 clamp(30px,5vw,40px)/1.1 'DM Sans',sans-serif; letter-spacing:-.03em; text-shadow:0 3px 0 var(--cd); }
.vg-result-game { position:relative; margin:6px 0 0; color:rgba(255,255,255,.92); font:800 12.5px 'DM Sans',sans-serif; letter-spacing:.08em; text-transform:uppercase; }
.vg-result-body { padding:22px 24px 26px; }
.vg-facts { display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; }
.vg-facts div { padding:14px 8px; border-radius:16px; background:var(--cs); }
.vg-facts strong { display:block; color:#0b1428; font:900 26px/1.1 'DM Sans',sans-serif; }
.vg-facts span { display:block; margin-top:4px; color:#5b6678; font-size:12.5px; font-weight:700; }
.vg-practised { margin-top:20px; text-align:left; }
.vg-practised p { margin:0 0 8px; color:#6b7487; font-size:12.5px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.vg-practised div { display:flex; flex-wrap:wrap; gap:8px; }
.vg-chip { display:inline-flex; align-items:center; gap:4px; padding:6px 12px; border:2px solid #e3e9f2; border-radius:999px; background:#fff; box-shadow:0 3px 0 #e3e9f2; color:#0b1428; font:600 14.5px 'Literata',Georgia,serif; cursor:pointer; }
.vg-chip .material-symbols-outlined { font-size:16px; color:#2f6fed; }
.vg-chip:hover { border-color:#2f6fed; }
.vg-chip:active { transform:translateY(2px); box-shadow:0 1px 0 #e3e9f2; }
.vg-result-actions { display:flex; justify-content:center; gap:12px; margin-top:24px; }
.vg-result-actions .vg-btn { min-width:160px; }
.vg-confetti { position:absolute; inset:0; overflow:hidden; pointer-events:none; }
.vg-confetti i { position:absolute; top:-14px; left:var(--x); width:9px; height:14px; border-radius:2px; background:var(--h); opacity:0; animation:vg-confetti var(--t) cubic-bezier(.3,.6,.5,1) var(--d) forwards; }
.vg-confetti i:nth-child(3n) { width:8px; height:8px; border-radius:50%; }

@keyframes vg-pop { 0% { transform:scale(.92); } 60% { transform:scale(1.06); } 100% { transform:scale(1); } }
@keyframes vg-shake { 0%,100% { transform:translateX(0); } 20% { transform:translateX(-6px); } 40% { transform:translateX(6px); } 60% { transform:translateX(-4px); } 80% { transform:translateX(3px); } }
@keyframes vg-flame { from { transform:scale(1) rotate(-4deg); } to { transform:scale(1.15) rotate(4deg); } }
@keyframes vg-bob { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-6px); } }
@keyframes vg-shield { 50% { transform:scale(1.04); } }
@keyframes vg-tick { 50% { transform:scale(1.08); } }
@keyframes vg-fade { from { opacity:0; } to { opacity:1; } }
@keyframes vg-stamp { 0% { opacity:0; transform:scale(2.4) rotate(-6deg); } 60% { opacity:1; transform:scale(.92) rotate(1deg); } 100% { transform:scale(1); } }
@keyframes vg-deal { from { opacity:0; transform:translateY(70px) rotate(0) scale(.8); } }
@keyframes vg-rise { from { opacity:0; transform:translateY(16px) scale(.97); } }
@keyframes vg-wait { to { width:100%; } }
@keyframes vg-spin { to { transform:rotate(360deg); } }
@keyframes vg-confetti { 0% { opacity:1; transform:translateY(0) rotate(0); } 85% { opacity:1; } 100% { opacity:0; transform:translateY(340px) rotate(var(--r)); } }

@media (max-width:640px) {
  .vg-grid { grid-template-columns:1fr; }
  .vg-bots { grid-template-columns:1fr; }
  .vg-bot-stage { height:120px; }
  .vg-bot-stage .vg-art { width:94px; }
  .vg-hud .vg-sound { width:36px; justify-content:center; padding:0; }
  .vg-hud .vg-sound span:not(.material-symbols-outlined) { display:none; }
  .vg-rounds i { display:none; }
  .vg-spell { padding:12px 14px; }
  .vg-hand { grid-template-columns:1fr 1fr; gap:10px; }
  .vg-wcard { --r:0deg!important; --y:0px!important; min-height:104px; padding:16px 10px 12px; }
  .vg-wcard-gem, .vg-wcard-key { display:none; }
  .vg-after { flex-direction:column; align-items:stretch; }
  .vg-after .vg-next { width:100%; }
  .vg-options { grid-template-columns:1fr; }
  .vg-task { padding:18px 18px; }
  .vg-facts strong { font-size:21px; }
  .vg-result-actions { flex-direction:column-reverse; }
}

/* Dark theme */
html[data-theme="dark"] .vg-card, html[data-theme="dark"] .vg-bot, html[data-theme="dark"] .vg-result { border-color:#34373d; background:#232425; box-shadow:0 6px 0 #18191b; }
html[data-theme="dark"] .vg-card:hover, html[data-theme="dark"] .vg-bot:hover { box-shadow:0 11px 0 #18191b; }
html[data-theme="dark"] .vg-btn.is-ghost { border-color:#3a3f48; background:#2a2d33; box-shadow:0 5px 0 #17191d; color:#eef0f3; }
html[data-theme="dark"] .vg-task, html[data-theme="dark"] .vg-option, html[data-theme="dark"] .vg-exit, html[data-theme="dark"] .vg-sound, html[data-theme="dark"] .vg-chip, html[data-theme="dark"] .vg-spell { border-color:#3a3b3e; background:#232425; }
html[data-theme="dark"] .vg-chip { box-shadow:0 3px 0 #18191b; }
html[data-theme="dark"] .vg-card h3, html[data-theme="dark"] .vg-bot, html[data-theme="dark"] .vg-hud-title strong, html[data-theme="dark"] .vg-round-label, html[data-theme="dark"] .vg-hp-top strong, html[data-theme="dark"] .vg-wcard, html[data-theme="dark"] .vg-after-word strong, html[data-theme="dark"] .vg-top-title strong, html[data-theme="dark"] .vg-option, html[data-theme="dark"] .vg-facts strong, html[data-theme="dark"] .vg-step, html[data-theme="dark"] .vg-learn strong, html[data-theme="dark"] .vg-chip, html[data-theme="dark"] .vg-pill { color:#eef0f3; }
html[data-theme="dark"] .vg-card-blurb, html[data-theme="dark"] .vg-bot-note, html[data-theme="dark"] .vg-spell, html[data-theme="dark"] .vg-after-colloc, html[data-theme="dark"] .vg-passage, html[data-theme="dark"] .vg-sentence, html[data-theme="dark"] .vg-band p, html[data-theme="dark"] .vg-note p, html[data-theme="dark"] .vg-learn p, html[data-theme="dark"] .vg-hp-num { color:#d0d4da; }
html[data-theme="dark"] .vg-top-title span, html[data-theme="dark"] .vg-hud-title span, html[data-theme="dark"] .vg-option-text small, html[data-theme="dark"] .vg-wcard small, html[data-theme="dark"] .vg-facts span, html[data-theme="dark"] .vg-card-best, html[data-theme="dark"] .vg-card-lock { color:#a6abb3; }
html[data-theme="dark"] .vg-bot-stage { background:linear-gradient(180deg, #232425 0%, #2b2f37 100%); }
html[data-theme="dark"] .vg-level i:not(.is-on) { color:#3f444d; }
html[data-theme="dark"] .vg-level-name { color:var(--bot); }
html[data-theme="dark"] .vg-bot-band { color:#a6abb3; }
html[data-theme="dark"] .vg-bot-badge.is-wins { background:#2a2d33; box-shadow:0 2px 0 #17191d; color:#eef0f3; }
html[data-theme="dark"] .vg-rounds i { background:#3a3f48; }
html[data-theme="dark"] .vg-rounds i.is-done { background:#3d5486; }
html[data-theme="dark"] .vg-rounds i.is-now { background:#5b8ff5; }
html[data-theme="dark"] .vg-art-shadow { fill:rgba(0,0,0,.35); }
html[data-theme="dark"] .vg-wcard { border-color:#3a3f48; background:#262a31; box-shadow:0 6px 0 #17191d; }
html[data-theme="dark"] .vg-wcard-key { background:#33373f; color:#a6abb3; }
html[data-theme="dark"] .vg-wcard-gem { background:#2b3550; color:#8fb0f7; }
html[data-theme="dark"] .vg-wcard.is-played, html[data-theme="dark"] .vg-wcard.is-right { border-color:#4fbf8f; background:#1f2f28; box-shadow:0 6px 0 #173a2a; }
html[data-theme="dark"] .vg-wcard.is-wrong { border-color:#e5484d; background:#3a2324; box-shadow:0 6px 0 #4a2224; }
html[data-theme="dark"] .vg-after { border-color:#2f5c45; background:#1f2f28; }
html[data-theme="dark"] .vg-after.is-bad { border-color:#5c3a2a; background:#352720; }
html[data-theme="dark"] .vg-after .vg-say { background:#2a2d33; box-shadow:0 3px 0 #17191d; }
html[data-theme="dark"] .vg-pill, html[data-theme="dark"] .vg-key, html[data-theme="dark"] .vg-learn, html[data-theme="dark"] .vg-progress, html[data-theme="dark"] .vg-band.is-six { background:#2c2e32; }
html[data-theme="dark"] .vg-band.is-nine, html[data-theme="dark"] .vg-note { border-color:#3f3a5c; background:#27253a; }
html[data-theme="dark"] .vg-slot { background:#232425; }
html[data-theme="dark"] .vg-blank { background:#232a38; color:#9ab4e6; border-color:#5f86cf; }
html[data-theme="dark"] .vg-blank.is-filled { background:#1f2f28; color:#8fd9b8; border-color:#4fbf8f; }
html[data-theme="dark"] .vg-option.is-right { border-color:#4fbf8f; background:#1f2f28; }
html[data-theme="dark"] .vg-option.is-wrong { border-color:#e5484d; background:#3a2324; }
html[data-theme="dark"] .vg-facts div { background:rgba(255,255,255,.06); }
html[data-theme="dark"] .vg-clue { background:rgba(255,214,80,.28); }
html[data-theme="dark"] .vg-weak { background:rgba(229,72,77,.22); color:#f5a3a5; }
