/* VNTyping Games (v1.5.0) — hub + nine games. Builds on trainer.css tokens. */
.vnt-g-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.vnt-g-title { margin: 0; font-size: 1.25rem; }
.vnt-g-back { white-space: nowrap; }
.vnt-g-h { margin: 22px 0 10px; font-size: 1.1rem; }
.vnt-g-note { font-weight: 400; font-size: .82rem; opacity: .75; }
.vnt-g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.vnt-g-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid #e5e0d8; border-radius: 12px; background: #fffdf8; }
.vnt-g-card.is-pick { border-color: #f59e0b; box-shadow: 0 2px 10px rgba(245, 158, 11, .25); }
.vnt-g-pick { position: absolute; top: -10px; right: 10px; background: #f59e0b; color: #fff; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.vnt-g-icon { font-size: 1.7rem; line-height: 1; }
.vnt-g-name { font-weight: 700; }
.vnt-g-code { font-weight: 600; font-size: .72rem; background: #f1ead9; border-radius: 6px; padding: 1px 6px; vertical-align: middle; }
.vnt-g-blurb { font-size: .88rem; opacity: .85; flex: 1; }
.vnt-g-meta { font-size: .8rem; opacity: .75; }
.vnt-g-play { align-self: flex-start; }
.vnt-g-board { margin: 0; padding-left: 18px; }
.vnt-g-board li { margin: 3px 0; }
.vnt-g-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0; }
.vnt-g-row select, .vnt-g-row label { font-size: .95rem; }
.vnt-g-final { font-size: 1.15rem; }

/* F7 Memory Match */
.vnt-mm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 520px; margin: 10px auto; }
.vnt-mm-card { position: relative; aspect-ratio: 3 / 3.6; border: 2px solid #d8cfc0; border-radius: 10px; background: #fdf6e3; cursor: pointer; font-size: 1rem; padding: 4px; }
.vnt-mm-card .vnt-mm-face { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; text-align: center; word-break: break-word; }
.vnt-mm-card .vnt-mm-front { display: none; font-weight: 600; }
.vnt-mm-card.is-open, .vnt-mm-card.is-found { background: #fff; border-color: #b91c1c; }
.vnt-mm-card.is-open .vnt-mm-back, .vnt-mm-card.is-found .vnt-mm-back { display: none; }
.vnt-mm-card.is-open .vnt-mm-front, .vnt-mm-card.is-found .vnt-mm-front { display: flex; }
.vnt-mm-card.is-found { border-color: #15803d; background: #f0fdf4; opacity: .92; cursor: default; }

/* F8 Tone Pop */
.vnt-tp-prompt { font-size: 1.05rem; margin: 8px 0; }
.vnt-tp-base { opacity: .7; font-size: .9rem; }
.vnt-tp-stage { position: relative; height: 320px; border: 1px solid #e5e0d8; border-radius: 12px; background: linear-gradient(#eef6ff, #fffdf8); overflow: hidden; margin-bottom: 10px; }
.vnt-tp-bubble { position: absolute; width: 58px; height: 58px; border-radius: 50%; border: 2px solid #7dd3fc; background: radial-gradient(circle at 32% 30%, #e0f2fe, #bae6fd); font-size: 1.05rem; font-weight: 700; cursor: pointer; }
.vnt-tp-bubble.is-popped { background: #bbf7d0; border-color: #15803d; transform: scale(1.25); opacity: .65; }
.vnt-tp-bubble.is-wrong { background: #fecaca; border-color: #b91c1c; }

/* F9 Proverb Puzzle */
.vnt-pv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.vnt-pv-card { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 14px; border: 1px solid #e5e0d8; border-radius: 12px; background: #fffdf8; cursor: pointer; font-size: .95rem; }
.vnt-pv-card.is-got { border-color: #15803d; background: #f0fdf4; }
.vnt-pv-num { font-size: .75rem; font-weight: 700; opacity: .6; }
.vnt-pv-text { flex: 1; line-height: 1.45; }
.vnt-pv-state { font-size: .8rem; font-weight: 700; }
.vnt-pv-big { font-size: 1.3rem; line-height: 1.5; font-weight: 600; margin: 12px 0; }
.vnt-pv-play { display: flex; flex-direction: column; gap: 6px; flex: 1; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.vnt-pv-story { font-size: .85rem; font-weight: 700; color: #b91c1c; text-decoration: none; }
.vnt-pv-story:hover { text-decoration: underline; }

/* F10 Daily Sprint */
.vnt-sp-target { font-size: 1.6rem; margin: 12px 0 4px; min-height: 2.2rem; }
.vnt-sp-cur { font-weight: 800; border-bottom: 3px solid #b91c1c; }
.vnt-sp-next { opacity: .45; margin-left: 14px; }
.vnt-sp-card { max-width: 100%; height: auto; border-radius: 10px; margin: 10px 0; }
.vnt-sp-card-slot { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

/* F11 Tone Rain */
.vnt-tr-stage { position: relative; height: 300px; border: 1px solid #e5e0d8; border-radius: 12px; background: linear-gradient(#f0f9ff, #fffdf8); overflow: hidden; margin-bottom: 10px; }
.vnt-tr-drop { position: absolute; top: -56px; min-width: 104px; padding: 6px 10px; border-radius: 10px; background: #dbeafe; border: 1px solid #93c5fd; text-align: center; }
.vnt-tr-drop.is-caught { background: #bbf7d0; }
.vnt-tr-drop.is-landed { border-color: #f59e0b; box-shadow: 0 0 0 2px #fde68a; }
.vnt-tr-drop.is-wrong { background: #fecaca; }
.vnt-tr-word { display: block; font-weight: 800; font-size: 1.1rem; }
.vnt-tr-en { display: block; font-size: .72rem; opacity: .8; }
.vnt-tr-buckets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.vnt-tr-bucket { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border: 2px solid #d8cfc0; border-radius: 10px; background: #fdf6e3; cursor: pointer; font-size: .8rem; }
.vnt-tr-bucket:active { background: #fde68a; }
.vnt-tr-bmark { font-size: 1.15rem; font-weight: 800; }

/* F12 Type Defense */
.vnt-df-stage { position: relative; height: 260px; border: 1px solid #e5e0d8; border-radius: 12px; background: linear-gradient(90deg, #fef3c7, #fffdf8 30%); overflow: hidden; margin-bottom: 8px; }
.vnt-df-base { position: absolute; left: 6px; top: 38%; font-size: 2rem; }
.vnt-df-enemy { position: absolute; padding: 5px 10px; border-radius: 999px; background: #fee2e2; border: 1px solid #fca5a5; font-weight: 700; white-space: nowrap; }
.vnt-df-enemy.is-target { background: #b91c1c; color: #fff; }
.vnt-df-banner { padding: 8px 12px; border-radius: 8px; background: #fef3c7; font-weight: 700; margin-bottom: 8px; }

/* F13 Café Rush */
.vnt-cf-menu { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.vnt-cf-item { background: #fdf6e3; border: 1px solid #e5e0d8; border-radius: 999px; padding: 3px 10px; font-size: .82rem; }
.vnt-cf-customer { display: flex; align-items: center; gap: 12px; margin: 12px 0 8px; min-height: 56px; }
.vnt-cf-face { font-size: 2.2rem; }
.vnt-cf-bubble { background: #eef6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 10px 14px; font-size: 1.02rem; }
.vnt-cf-mod { opacity: .7; font-size: .88rem; }
.vnt-cf-patience { height: 10px; border-radius: 999px; background: #f1ead9; overflow: hidden; margin-bottom: 10px; }
.vnt-cf-patience span { display: block; height: 100%; width: 100%; background: #22c55e; transition: width .1s linear; }
.vnt-cf-patience span.is-low { background: #ef4444; }

/* F14 Ghost Race */
.vnt-gh-ghost-label { font-weight: 600; margin: 6px 0; }
.vnt-gh-track { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.vnt-gh-lane-label { font-size: 1.2rem; width: 28px; text-align: center; }
.vnt-gh-bar { flex: 1; height: 16px; border-radius: 999px; background: #f1ead9; overflow: hidden; }
.vnt-gh-bar span { display: block; height: 100%; width: 0; background: #9ca3af; transition: width .12s linear; }
.vnt-gh-bar.is-you span { background: #b91c1c; }
.vnt-gh-words { font-size: 1.15rem; line-height: 1.9; margin: 12px 0; }

/* F15 Word Snake */
.vnt-sn-target { font-size: 1.05rem; margin: 8px 0; }
.vnt-sn-en { opacity: .75; }
.vnt-sn-prog-done { color: #15803d; font-weight: 800; letter-spacing: 2px; }
.vnt-sn-prog-rest { opacity: .5; letter-spacing: 2px; }
.vnt-sn-grid { display: grid; gap: 2px; max-width: 560px; margin: 0 auto; background: #f8f5ee; border: 1px solid #e5e0d8; border-radius: 10px; padding: 4px; }
.vnt-sn-cell { aspect-ratio: 1; border-radius: 4px; background: #fffdf8; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .92rem; }
.vnt-sn-cell.is-body { background: #86efac; }
.vnt-sn-cell.is-head { background: #15803d; }
.vnt-sn-cell.is-tile { background: #fde68a; }
.vnt-sn-cell.is-next { background: #f59e0b; color: #fff; }
.vnt-sn-pad { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 10px; }
.vnt-sn-pad button { min-width: 52px; min-height: 42px; font-size: 1.1rem; border: 1px solid #d8cfc0; border-radius: 8px; background: #fdf6e3; cursor: pointer; }
.vnt-sn-pad span { display: flex; gap: 4px; }

@media (max-width: 560px) {
  .vnt-tp-stage { height: 260px; }
  .vnt-tp-bubble { width: 50px; height: 50px; font-size: .95rem; }
  .vnt-tr-buckets { grid-template-columns: repeat(3, 1fr); }
  .vnt-mm-grid { max-width: 100%; }
  .vnt-g-top { flex-wrap: wrap; }
}
