/* yinznation.com: the kubeye.com look (dark cards, Poppins, gradient type, soft glows) in black and gold */
:root {
    --bg: #0f0f0f;
    --bg-dark: #0a0a0a;
    --card: #161616;
    --card-hover: #1c1c1c;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 182, 18, 0.3);
    --gold: #FFB612;
    --gold-light: #FFE08A;
    --gold-dark: #E09A00;
    --gold-glow: rgba(255, 182, 18, 0.15);
    --text: #e0e0e0;
    --muted: #8a8a8a;
    --dim: #555555;
    --white: #ffffff;
    --win: #7bd88f;
    --loss: #ff8a7a;
    --font-display: 'Poppins', 'Segoe UI', Arial, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --opp: #FB4F14;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.6 var(--font-body);
    overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; }
.gold-text {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- background glow ---------- */
.bg-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(255, 182, 18, 0.09) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 18%, rgba(224, 154, 0, 0.06) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 100%, rgba(255, 182, 18, 0.04) 0%, transparent 60%);
}
main, .top, .foot { position: relative; z-index: 1; }

/* ---------- header ---------- */
.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 20px 0;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.brand-mark { width: 36px; height: 36px; display: block; overflow: visible; filter: drop-shadow(0 0 10px rgba(255, 182, 18, 0.25)); }

/* ---------- logo motion on load (data-anim on .yn-logo; ?logo=draw|build|drop|lights previews the others) ----------
   Only runs under html.motion-ok, so with reduced motion the finished logo simply shows. */
.yn-logo path { transform-box: fill-box; transform-origin: center; }
html.motion-ok .yn-logo path { stroke-dasharray: 1; }
@keyframes ynDraw { from { stroke-dashoffset: 1.02; } to { stroke-dashoffset: 0; } }
@keyframes ynGlow { 0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 182, 18, 0.25)); } 40% { filter: drop-shadow(0 0 18px rgba(255, 182, 18, 0.8)); } }
@keyframes ynWord { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
html.motion-ok .yn-logo ~ .brand-text { animation: ynWord 0.7s var(--ease-out-expo) 0.55s both; }
/* Draw: the outline draws itself from the crotch of the Y, the deck stretches out from the center, the cables drop to it, then a glow */
html.motion-ok .yn-logo[data-anim="draw"] .yn-y { animation: ynDraw 0.8s cubic-bezier(0.45, 0, 0.2, 1) 0.1s both; }
html.motion-ok .yn-logo[data-anim="draw"] .yn-deck { animation: ynDraw 0.42s var(--ease-out-expo) 0.58s both; }
html.motion-ok .yn-logo[data-anim="draw"] .yn-c1 { animation: ynDraw 0.32s ease-out 0.82s both; }
html.motion-ok .yn-logo[data-anim="draw"] .yn-c2 { animation: ynDraw 0.32s ease-out 0.9s both; }
html.motion-ok .yn-logo[data-anim="draw"] { animation: ynGlow 0.9s ease-out 1.15s both; }
/* Build: the deck halves slide in and click together, then the Y draws up out of it and the cables finish it */
@keyframes ynSlideL { from { transform: translateX(-26px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ynSlideR { from { transform: translateX(26px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ynClick { 0%, 100% { transform: none; } 45% { transform: scale(1.08); } }
html.motion-ok .yn-logo[data-anim="build"] .yn-deck { stroke-dasharray: none; }
html.motion-ok .yn-logo[data-anim="build"] .yn-deck:nth-of-type(2) { animation: ynSlideL 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s both; }
html.motion-ok .yn-logo[data-anim="build"] .yn-deck:nth-of-type(3) { animation: ynSlideR 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s both; }
html.motion-ok .yn-logo[data-anim="build"] .yn-y { animation: ynDraw 0.6s cubic-bezier(0.45, 0, 0.2, 1) 0.45s both; }
html.motion-ok .yn-logo[data-anim="build"] .yn-cab { animation: ynDraw 0.3s ease-out 0.95s both; }
html.motion-ok .yn-logo[data-anim="build"] { animation: ynClick 0.3s ease-out 0.42s both, ynGlow 0.9s ease-out 1.2s both; }
/* Drop: the Y drops in and bounces, the deck snaps across under it, the cables follow */
@keyframes ynDrop { 0% { transform: translateY(-30px); opacity: 0; } 60% { transform: translateY(2px); opacity: 1; } 80% { transform: translateY(-1px); } 100% { transform: none; opacity: 1; } }
html.motion-ok .yn-logo[data-anim="drop"] .yn-y { stroke-dasharray: none; animation: ynDrop 0.6s cubic-bezier(0.3, 0.9, 0.4, 1) 0.1s both; }
html.motion-ok .yn-logo[data-anim="drop"] .yn-deck { animation: ynDraw 0.3s var(--ease-out-expo) 0.55s both; }
html.motion-ok .yn-logo[data-anim="drop"] .yn-cab { animation: ynDraw 0.3s ease-out 0.78s both; }
html.motion-ok .yn-logo[data-anim="drop"] { animation: ynGlow 0.9s ease-out 1.05s both; }
/* Lights: stadium lights coming on. The outline flickers to life, then the deck and cables */
@keyframes ynFlicker { 0% { opacity: 0; } 10% { opacity: 0.9; } 16% { opacity: 0.1; } 30% { opacity: 1; } 36% { opacity: 0.35; } 52%, 100% { opacity: 1; } }
html.motion-ok .yn-logo[data-anim="lights"] path { stroke-dasharray: none; }
html.motion-ok .yn-logo[data-anim="lights"] .yn-y { animation: ynFlicker 0.85s linear 0.1s both; }
html.motion-ok .yn-logo[data-anim="lights"] .yn-deck { animation: ynFlicker 0.6s linear 0.55s both; }
html.motion-ok .yn-logo[data-anim="lights"] .yn-cab { animation: ynFlicker 0.5s linear 0.8s both; }
html.motion-ok .yn-logo[data-anim="lights"] { animation: ynGlow 1s ease-out 1.15s both; }
.brand-text {
    font: 300 19px/1 var(--font-display);
    letter-spacing: 0.3px;
    color: var(--white);
}
.brand-text b { font-weight: 700; }
.brand-text b {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.top-play {
    font: 600 12px/1 var(--font-display);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--gold-light);
    padding: 10px 16px;
    border: 1px solid rgba(255, 182, 18, 0.25);
    border-radius: 50px;
    background: rgba(255, 182, 18, 0.06);
    transition: border-color 0.3s, background 0.3s;
}
.top-play:hover { border-color: rgba(255, 182, 18, 0.5); background: rgba(255, 182, 18, 0.12); }

/* ---------- hero: the next game ---------- */
.hero {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 64px 20px 56px;
    text-align: center;
    overflow: hidden;
}
.hero-lines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 92px);
    -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at 50% 45%, #000 0%, transparent 70%);
    pointer-events: none;
}
html.motion-ok .hero-lines { animation: fieldRoll 14s linear infinite; }
@keyframes fieldRoll { from { background-position: 0 0; } to { background-position: 0 92px; } }
.hero > *:not(.hero-lines) { position: relative; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 182, 18, 0.08);
    border: 1px solid rgba(255, 182, 18, 0.2);
    border-radius: 50px;
    font: 500 12px/1.2 var(--font-display);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 28px;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero.is-live .badge-dot { background: #ff4d3d; }
html.motion-ok .badge-dot { animation: dotPulse 2s ease infinite; }
@keyframes dotPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 182, 18, 0.5); } 50% { box-shadow: 0 0 0 6px rgba(255, 182, 18, 0); } }

.matchup {
    margin: 0 0 18px;
    font: 800 clamp(44px, 9vw, 104px)/0.98 var(--font-display);
    letter-spacing: -2px;
    text-transform: uppercase;
    color: var(--white);
}
.matchup span { display: block; }
.matchup .m-us {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.matchup .m-at {
    font: 500 clamp(14px, 2vw, 18px)/1 var(--font-display);
    letter-spacing: 4px;
    color: var(--muted);
    margin: 10px 0 8px;
}
.matchup .m-them { position: relative; display: inline-block; }
.matchup .m-them::after {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: -6px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--opp), transparent);
    opacity: 0.7;
}
.when {
    margin: 22px 0 4px;
    font: 600 clamp(16px, 2.2vw, 20px)/1.4 var(--font-display);
    color: var(--white);
}
.where { margin: 0 0 30px; color: var(--muted); font-size: 15px; }

.count {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 26px;
}
.count div {
    min-width: 82px;
    padding: 14px 10px 10px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: border-color 0.3s;
}
.count div:hover { border-color: var(--border-hover); }
.count b {
    display: block;
    font: 700 clamp(30px, 5vw, 42px)/1 var(--font-display);
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.count span {
    display: block;
    margin-top: 6px;
    font: 500 11px/1 var(--font-display);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
}
.live {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 0 auto 26px;
    padding: 16px 28px;
    background: var(--card);
    border: 1px solid var(--border-hover);
    border-radius: 16px;
}
.live[hidden], .count[hidden] { display: none; }
.live b { font: 800 clamp(30px, 5vw, 44px)/1 var(--font-display); color: var(--white); font-variant-numeric: tabular-nums; }
.live span { font: 500 13px/1 var(--font-display); letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-light); }
.record { margin: 0; color: var(--muted); font-size: 14px; }
.record b { color: var(--text); font-weight: 600; }

html.motion-ok :is(.hero-badge, .matchup, .when, .where, .count, .record) { animation: fadeUp 1s var(--ease-out-expo) both; }
html.motion-ok .matchup { animation-delay: 0.1s; }
html.motion-ok :is(.when, .where) { animation-delay: 0.2s; }
html.motion-ok .count { animation-delay: 0.3s; }
html.motion-ok .record { animation-delay: 0.4s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- the game card ---------- */
.play {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 36px;
    align-items: center;
}
.play-demo {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-dark);
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out-expo);
}
.play-demo:hover, .play-demo:focus-visible {
    border-color: var(--border-hover);
    box-shadow: 0 0 0 1px rgba(255, 182, 18, 0.15), 0 18px 50px rgba(255, 182, 18, 0.1);
    transform: translateY(-2px);
    outline: none;
}
.play-demo canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.play-demo-tag {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 7px 14px;
    border-radius: 50px;
    background: rgba(10, 10, 10, 0.78);
    border: 1px solid rgba(255, 182, 18, 0.25);
    font: 600 11px/1 var(--font-display);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold-light);
}
.eyebrow {
    font: 500 12px/1 var(--font-display);
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}
.play-title {
    margin: 0 0 14px;
    font: 800 clamp(44px, 6vw, 72px)/0.95 var(--font-display);
    letter-spacing: -1.5px;
    text-transform: uppercase;
    color: var(--white);
}
.play-title span {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.play-starring { margin: -6px 0 14px; font: 600 13px/1.2 var(--font-display); letter-spacing: 3px; text-transform: uppercase; color: var(--gold-light); }
.play-lede { margin: 0 0 16px; color: var(--text); }
.play-points {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 14px;
}
.play-points li { display: flex; gap: 10px; align-items: center; }
.play-points li::before {
    content: '';
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 38px;
    font: 600 14px/1 var(--font-display);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
}
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #0f0f0f; }
.btn-primary:hover, .btn-primary:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255, 182, 18, 0.3); outline: none; }
.play-best { margin: 14px 0 0; min-height: 1.4em; font-size: 14px; color: var(--muted); }
.play-best b { color: var(--gold-light); font-weight: 600; }

/* ---------- schedule ---------- */
.sched { max-width: 1120px; margin: 88px auto 0; padding: 0 20px; }
.section-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.section-head h2 {
    margin: 0;
    font: 700 clamp(24px, 3vw, 32px)/1 var(--font-display);
    letter-spacing: -0.5px;
    color: var(--white);
    white-space: nowrap;
}
.section-line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 182, 18, 0.35), transparent); }
.sched-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
}
.g {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.3s, background 0.3s;
}
.g:hover { border-color: var(--border-hover); background: var(--card-hover); }
.g-wk { font: 600 11px/1.2 var(--font-display); letter-spacing: 1px; text-transform: uppercase; color: var(--dim); }
.g-wk b { display: block; font-size: 18px; letter-spacing: 0; color: var(--muted); }
.g-opp { font: 600 15px/1.3 var(--font-display); color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-opp i { font-style: normal; font-weight: 400; color: var(--muted); margin-right: 4px; }
.g-date { display: block; font-size: 13px; color: var(--muted); }
.g-res { text-align: right; font: 600 14px/1.3 var(--font-display); color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.g-res small { display: block; font: 400 12px/1.3 var(--font-body); color: var(--muted); }
.g-res .w { color: var(--win); }
.g-res .l { color: var(--loss); }
.g-next { border-color: rgba(255, 182, 18, 0.45); background: linear-gradient(rgba(255, 182, 18, 0.05), rgba(255, 182, 18, 0.05)), var(--card); }
.g-next .g-wk b { color: var(--gold); }
.g-bye { opacity: 0.55; }
.g-bye .g-opp { color: var(--muted); }

.foot { max-width: 1120px; margin: 72px auto 0; padding: 26px 20px 40px; border-top: 1px solid var(--border); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.foot p { margin: 0; font-size: 13px; color: var(--dim); }
.foot .credit a {
    color: var(--muted);
    text-decoration: none;
    font-family: var(--font-display);
    letter-spacing: 0.2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: color 0.3s, border-color 0.3s;
}
.foot .credit a:hover, .foot .credit a:focus-visible { color: var(--gold-light); border-color: rgba(255, 182, 18, 0.5); outline: none; }

@media (max-width: 860px) {
    .play { grid-template-columns: 1fr; gap: 24px; }
    .sched-list { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .top { padding-top: 16px; }
    .top-play { padding: 9px 12px; font-size: 11px; letter-spacing: 1px; }
    .hero { padding: 44px 16px 44px; }
    .count { gap: 6px; }
    .count div { min-width: 0; flex: 1 1 0; padding: 12px 4px 9px; }
    .play, .sched { padding: 0 16px; }
    .play-demo { aspect-ratio: 4 / 3; }
    .g { grid-template-columns: 38px minmax(0, 1fr) auto; padding: 11px 12px; gap: 10px; }
}

/* ==========================================================================
   The game, full screen. Everything is prefixed ynt- so nothing above leaks in.
   ========================================================================== */
html.ynt-open, html.ynt-open body { overflow: hidden; }
.ynt {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #0b0c0e;
    color: #fff;
    font-family: var(--font-body);
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: none;
}
.ynt-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
.ynt-hud {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
    pointer-events: none;
}
.ynt-hud-score, .ynt-hud-mid {
    background: rgba(12, 12, 12, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 6px 12px 7px;
}
.ynt-hud-score span { display: block; font: 500 10px/1.2 var(--font-display); letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.ynt-hud-score b {
    display: block;
    font: 800 22px/1.1 var(--font-display);
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ynt-hud-mid { text-align: center; min-width: 0; }
.ynt-hud-mid span { display: block; font: 500 10px/1.3 var(--font-display); letter-spacing: 1.2px; color: var(--gold-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.ynt-hud-mid b { display: block; font: 700 17px/1.2 var(--font-display); letter-spacing: 0.5px; }
.ynt-hud-mid small { display: block; font: 500 11px/1.2 var(--font-display); letter-spacing: 1px; color: rgba(255, 255, 255, 0.6); }
.ynt-hud-btns { display: flex; gap: 6px; }
.ynt-hud-btns button {
    pointer-events: auto;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 12, 12, 0.74);
    color: #fff;
    cursor: pointer;
    padding: 0;
}
.ynt-hud-btns button:hover, .ynt-hud-btns button:focus-visible { border-color: var(--border-hover); outline: none; }
.ynt[data-screen="start"] .ynt-hud, .ynt[data-screen="start"] .ynt-blast,
.ynt[data-screen="over"] .ynt-blast { visibility: hidden; }

.ynt-blast {
    position: absolute;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: radial-gradient(circle at 50% 40%, #222, #0d0d0d 70%);
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    touch-action: none;
}
.ynt-blast-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(var(--gold) calc(var(--m, 0) * 1turn), rgba(255, 255, 255, 0.1) 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
}
.ynt-blast b { position: relative; font: 800 15px/1 var(--font-display); letter-spacing: 1px; }
.ynt-blast small { position: relative; font: 600 8px/1.4 var(--font-display); letter-spacing: 1.2px; opacity: 0.7; }
.ynt-blast.ready { color: #0f0f0f; background: linear-gradient(135deg, var(--gold), var(--gold-light)); box-shadow: 0 0 0 0 rgba(255, 182, 18, 0.6), 0 8px 28px rgba(255, 182, 18, 0.35); }
.ynt-blast.ready .ynt-blast-ring { background: rgba(255, 255, 255, 0.6); }
html.motion-ok .ynt-blast.ready { animation: yntReady 1.1s ease infinite; }
@keyframes yntReady { 0% { box-shadow: 0 0 0 0 rgba(255, 182, 18, 0.55), 0 8px 28px rgba(255, 182, 18, 0.35); } 100% { box-shadow: 0 0 0 18px rgba(255, 182, 18, 0), 0 8px 28px rgba(255, 182, 18, 0.35); } }
.ynt-blast.hot { color: #fff; background: radial-gradient(circle, #ffb347, #ff6a00 70%); }
.ynt-blast.hot .ynt-blast-ring { background: #fff3c4; }

.ynt-paused {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(8, 8, 8, 0.62);
    cursor: pointer;
}
.ynt-paused[hidden] { display: none; }
.ynt-paused b { font: 800 40px/1 var(--font-display); letter-spacing: -0.5px; }
.ynt-paused span { color: rgba(255, 255, 255, 0.7); font-size: 14px; }

.ynt-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(calc(100vw - 32px), 460px);
    max-height: calc(100% - 32px);
    overflow-y: auto;
    transform: translate(-50%, -50%);
    padding: 28px 24px 22px;
    text-align: center;
    background: rgba(16, 16, 16, 0.95);
    border: 1px solid rgba(255, 182, 18, 0.28);
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 182, 18, 0.07);
    display: none;
    touch-action: pan-y;
}
.ynt[data-screen="start"] [data-screen-card="start"], .ynt[data-screen="over"] [data-screen-card="over"] { display: block; }
html.motion-ok .ynt[data-screen="start"] [data-screen-card="start"], html.motion-ok .ynt[data-screen="over"] [data-screen-card="over"] { animation: yntIn 0.5s var(--ease-out-expo) both; }
@keyframes yntIn { from { opacity: 0; transform: translate(-50%, -46%) scale(0.97); } to { opacity: 1; transform: translate(-50%, -50%); } }
.ynt-kicker { font: 500 11px/1.2 var(--font-display); letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
.ynt-title {
    margin: 8px 0 10px;
    font: 800 clamp(46px, 12vw, 64px)/0.95 var(--font-display);
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ynt-starring { margin: -4px 0 12px; font: 600 12px/1.2 var(--font-display); letter-spacing: 3px; text-transform: uppercase; color: var(--gold-light); }
.ynt-sub { margin: 0 0 16px; color: var(--text); font-size: 15px; }
.ynt-how { list-style: none; margin: 0 0 14px; padding: 0; text-align: left; display: grid; gap: 8px; }
.ynt-how li { font-size: 14px; color: var(--muted); padding: 9px 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 10px; }
.ynt-how b { color: var(--white); font-weight: 600; }
.ynt-controls { margin: 0 0 18px; font-size: 12px; color: var(--dim); }
.ynt-move { margin: 0 0 14px; text-align: left; }
.ynt-move-lbl { display: block; margin-bottom: 6px; font: 500 10px/1.2 var(--font-display); letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.ynt-move-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ynt-move button {
    display: grid;
    gap: 2px;
    align-content: start;
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.ynt-move button b { font: 700 14px/1.2 var(--font-display); color: var(--white); }
.ynt-move button small { font-size: 12px; line-height: 1.35; color: var(--muted); }
.ynt-move button[aria-pressed="true"] { border-color: rgba(255, 182, 18, 0.6); background: rgba(255, 182, 18, 0.1); }
.ynt-move button[aria-pressed="true"] b { color: var(--gold-light); }
.ynt-move button:hover { border-color: var(--border-hover); }
.ynt-move button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
[data-screen-card="over"] .ynt-move { margin-top: -4px; }
.ynt-blast.arm b { font-size: 11px; letter-spacing: 0.3px; }
.ynt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    font: 700 14px/1 var(--font-display);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #0f0f0f;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
}
.ynt-btn:hover, .ynt-btn:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255, 182, 18, 0.3); outline: none; }
.ynt-ghost { background: transparent; color: var(--gold-light); border: 1px solid rgba(255, 182, 18, 0.35); }
.ynt-best { margin: 12px 0 0; min-height: 1.3em; font-size: 13px; color: var(--muted); }
.ynt-where { margin: 6px 0 2px; font: 600 16px/1.3 var(--font-display); color: var(--white); }
.ynt-final {
    font: 800 clamp(48px, 13vw, 68px)/1 var(--font-display);
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ynt-newbest {
    display: inline-block;
    margin: 6px 0 0;
    padding: 4px 12px;
    font: 600 11px/1.3 var(--font-display);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #0f0f0f;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 50px;
}
.ynt-newbest[hidden] { display: none; }
.ynt-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 18px 0; }
.ynt-stats div { padding: 10px 6px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 10px; }
.ynt-stats dt { font: 500 10px/1.3 var(--font-display); letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.ynt-stats dd { margin: 3px 0 0; font: 700 17px/1.2 var(--font-display); color: var(--white); }
.ynt-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ynt-row-small { margin-top: 12px; gap: 18px; }
.ynt-link { background: none; border: 0; padding: 6px 2px; color: var(--muted); font: 500 13px/1 var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ynt-link:hover, .ynt-link:focus-visible { color: var(--gold-light); outline: none; }
@media (max-width: 520px) {
    .ynt-hud-score b { font-size: 18px; }
    .ynt-hud-mid b { font-size: 15px; }
    .ynt-hud-btns button { width: 36px; height: 36px; }
    .ynt-card { padding: 22px 18px 18px; }
    .ynt-how li { font-size: 13px; padding: 8px 10px; }
    .ynt-stats dd { font-size: 15px; }
}
