/* yinznation.com: Pittsburgh, n'at (rebuilt Nov. 28, 2026: Pittsburgh only, no team).
   The kubeye.com look (dark cards, Poppins, gradient type, soft glows) in the city's black and gold,
   with the live logo on every part of the page (Jon: "Keep it known all parts of the site. And active."). */
:root {
    --bg: #080808;   /* near black: gold glow over a lighter base read as brown */
    --bg-dark: #050505;
    --card: #141414;
    --card-hover: #1a1a1a;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 182, 18, 0.3);
    --gold: #FFB612;
    --gold-light: #FFE08A;
    --gold-dark: #E09A00;
    --text: #e0e0e0;
    --muted: #8a8a8a;
    --dim: #555555;
    --white: #ffffff;
    --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);
    --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
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, .brand-text b, .play-title span, .num b {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- the live logo mark (header, section heads, the game's start card) ---------- */
.ynm { display: block; overflow: visible; filter: drop-shadow(0 0 8px rgba(255, 182, 18, 0.28)); }
.ynm-live { display: none; }
html.motion-ok .ynm-live { display: inline; }
html.motion-ok .ynm { animation: ynmBreathe 4.8s ease-in-out infinite; }
@keyframes ynmBreathe { 0%, 100% { filter: drop-shadow(0 0 6px rgba(255, 182, 18, 0.22)); } 50% { filter: drop-shadow(0 0 13px rgba(255, 182, 18, 0.55)); } }
/* a white-hot pass runs the Y every 7 seconds, like the steel is still moving inside it */
.ynm-run { fill: none; stroke: #FFF3CF; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 10 90; stroke-dashoffset: 100; opacity: 0; }
html.motion-ok .ynm-run { animation: ynmRun 7s cubic-bezier(0.45, 0, 0.25, 1) 1.4s infinite; }
@keyframes ynmRun { 0% { stroke-dashoffset: 100; opacity: 0; } 4% { opacity: 1; } 34% { stroke-dashoffset: 0; opacity: 1; } 40%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.sh-mark .ynm-run { animation-delay: var(--run-delay, 1.4s); }

/* ---------- header: transparent over the hero, glass once you scroll ---------- */
.top {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 14px max(20px, calc((100vw - var(--wrap)) / 2 + 20px));
    border-bottom: 1px solid transparent;
    transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
.top.scrolled {
    background: rgba(8, 8, 8, 0.72);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    border-bottom-color: var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo); }
.brand .ynm { width: 34px; height: 34px; }
/* at the top of the page the big logo is the brand; the header one slides in once it scrolls away */
html.js .top:not(.past-hero) .brand { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.brand-text { font: 300 19px/1 var(--font-display); letter-spacing: 0.3px; color: var(--white); }
.brand-text b { font-weight: 700; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
    position: relative;
    font: 500 13px/1 var(--font-display);
    letter-spacing: 0.4px;
    color: var(--muted);
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.3s;
}
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease-out-expo); }
.nav a:hover, .nav a:focus-visible, .nav a.on { color: var(--white); outline: none; }
.nav a:hover::after, .nav a:focus-visible::after, .nav a.on::after { transform: scaleX(1); }
.top-play {
    font: 600 12px/1 var(--font-display);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold-light);
    padding: 10px 18px;
    border: 1px solid rgba(255, 182, 18, 0.25);
    border-radius: 50px;
    background: rgba(255, 182, 18, 0.06);
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
}
.top-play:hover, .top-play:focus-visible { border-color: rgba(255, 182, 18, 0.5); background: rgba(255, 182, 18, 0.12); outline: none; }

/* ---------- hero: the logo pours in (js/pour.js), overflows, and keeps dripping onto the wordmark ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 96px 20px 88px;
    overflow: hidden;
    text-align: center;
    background: radial-gradient(ellipse 60% 48% at 50% 30%, rgba(255, 182, 18, 0.05) 0%, transparent 70%);
}
.pour-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: 0; }
.hero-in { position: relative; z-index: 1; max-width: 760px; }
.hero-mark-wrap { width: min(150px, 34vw); margin: 0 auto 14px; }
html.pour .hero-mark-wrap { cursor: pointer; }
.mark { display: block; width: 100%; height: auto; overflow: visible; }
.hero-mark { filter: drop-shadow(0 0 16px rgba(255, 182, 18, 0.3)); }
html.pour .hero-mark { visibility: hidden; }
.word { font: 300 clamp(26px, 4.4vw, 38px)/1 var(--font-display); letter-spacing: 0.5px; color: var(--white); margin-bottom: 30px; }
.word b { font-weight: 700; }
.word b { background: linear-gradient(135deg, var(--gold), var(--gold-light)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 182, 18, 0.22);
    border-radius: 50px;
    background: rgba(255, 182, 18, 0.05);
    font: 500 12px/1 var(--font-display);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-light);
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(255, 182, 18, 0.8); }
html.motion-ok .badge-dot { animation: dotPulse 2.4s 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); } }
.hero h1 {
    margin: 0 0 18px;
    font: 800 clamp(46px, 9vw, 108px)/0.95 var(--font-display);
    letter-spacing: -0.03em;
    color: var(--white);
}
.lede { max-width: 600px; margin: 0 auto 30px; font-size: clamp(16px, 1.8vw, 18px); color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
/* while the logo pours, the text waits; it slides up in steps once the mold is full (or right away if the pour never starts) */
.word, .hero-text > * { transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo); }
html.pour:not(.pour-shown) .word, html.pour:not(.pour-shown) .hero-text > * { opacity: 0; transform: translateY(18px); }
html.pour-shown .hero-text > :nth-child(1) { transition-delay: 0.12s; }
html.pour-shown .hero-text > :nth-child(2) { transition-delay: 0.22s; }
html.pour-shown .hero-text > :nth-child(3) { transition-delay: 0.32s; }
html.pour-shown .hero-text > :nth-child(4) { transition-delay: 0.42s; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; z-index: 1; width: 22px; height: 36px; margin-left: -11px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 12px; transition: border-color 0.3s, opacity 0.8s; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); box-shadow: 0 0 8px rgba(255, 182, 18, 0.9); }
html.motion-ok .scroll-cue span { animation: cueDrip 2.2s cubic-bezier(0.5, 0, 0.75, 0) infinite; }
@keyframes cueDrip { 0% { transform: translateY(0) scaleY(1); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateY(14px) scaleY(1.6); opacity: 1; } 100% { transform: translateY(18px) scaleY(0.6); opacity: 0; } }
.scroll-cue:hover { border-color: rgba(255, 182, 18, 0.45); }
html.pour:not(.pour-shown) .scroll-cue { opacity: 0; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 34px;
    font: 600 14px/1 var(--font-display);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s, border-color 0.3s, background 0.3s;
}
.btn-primary { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #0f0f0f; }
.btn-primary::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent); transform: skewX(-20deg); opacity: 0; }
html.motion-ok .btn-primary:hover::after { animation: glint 0.9s var(--ease-out-expo); }
@keyframes glint { from { left: -60%; opacity: 1; } to { left: 130%; opacity: 1; } }
.btn-primary:hover, .btn-primary:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255, 182, 18, 0.3); outline: none; }
.btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: rgba(255, 182, 18, 0.5); background: rgba(255, 182, 18, 0.06); transform: translateY(-2px); outline: none; }

/* ---------- by the numbers ---------- */
.nums {
    width: min(calc(var(--wrap) - 40px), calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.07);   /* shows through the 1px gaps as dividers */
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}
.num {
    position: relative;
    padding: 30px 12px 26px;
    text-align: center;
    background: var(--card);
    transition: background 0.3s, box-shadow 0.3s;
}
.num:hover { background: var(--card-hover); box-shadow: inset 0 0 0 1px var(--border-hover); }
.num b { display: block; font: 800 clamp(34px, 4.6vw, 54px)/1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.num span { font: 500 12px/1.3 var(--font-display); letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
/* a bridge deck across the top of each number, drawn in when it scrolls into view */
.num::before { content: ''; position: absolute; left: 22%; right: 22%; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); transform: scaleX(0); transition: transform 1.1s var(--ease-out-expo) 0.2s; }
.num.in::before, html:not(.reveal-on) .num::before { transform: scaleX(1); }

/* ---------- sections ---------- */
.sec { max-width: var(--wrap); margin: 0 auto; padding: 120px 20px 0; }
.sh { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.sh-mark { width: 22px; height: 22px; flex: 0 0 22px; }
.sh-mark .ynm { width: 22px; height: 22px; }
.sh-kicker { font: 500 12px/1 var(--font-display); letter-spacing: 4px; text-transform: uppercase; color: var(--gold-light); white-space: nowrap; }
/* the section line is a bridge deck: it draws across, then a molten bead runs it once */
.sh-line { position: relative; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 182, 18, 0.4), rgba(255, 182, 18, 0.04)); transform-origin: left; }
html.reveal-on .sh-line { transform: scaleX(0); transition: transform 1.2s var(--ease-out-expo) 0.25s; }
html.reveal-on .sh.in .sh-line { transform: scaleX(1); }
.sh-line::after { content: ''; position: absolute; top: -2px; left: 0; width: 40px; height: 5px; border-radius: 3px; background: radial-gradient(closest-side, #FFF3CF, rgba(255, 182, 18, 0.6) 50%, transparent); opacity: 0; }
html.reveal-on .sh.in .sh-line::after { animation: bead 2.4s cubic-bezier(0.45, 0, 0.25, 1) 1s both; }
@keyframes bead { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 80% { opacity: 0.8; } 100% { left: calc(100% - 40px); opacity: 0; } }
.h2 { margin: 0 0 10px; font: 800 clamp(34px, 5vw, 60px)/1 var(--font-display); letter-spacing: -0.02em; color: var(--white); }
.sub { margin: 0 0 34px; max-width: 620px; color: var(--muted); font-size: 17px; }

/* scroll-in: pieces slide up and click into place (only once site.js has its observer running) */
html.reveal-on [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo); transition-delay: calc(var(--i, 0) * 70ms); }
html.reveal-on [data-reveal].in { opacity: 1; transform: none; }

/* ---------- the game ---------- */
.play-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; 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.5s var(--ease-out-expo), opacity 0.9s 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);
}
.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-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: 14px; height: 2px; flex: 0 0 14px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); box-shadow: 0 0 6px rgba(255, 182, 18, 0.5); }
.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; }

/* ---------- the lingo ---------- */
.words { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.wc {
    position: relative;
    overflow: hidden;
    padding: 22px 20px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
}
html:not(.reveal-on) .wc, .wc.in { transition: border-color 0.3s, background 0.3s, transform 0.5s var(--ease-out-expo); }
.wc:hover { border-color: var(--border-hover); background: var(--card-hover); transform: translateY(-3px); }
.wc::before { content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), transparent); transform: translateX(-101%); }
html.motion-ok .wc:hover::before { animation: sweep 0.9s var(--ease-out-expo) both; }
@keyframes sweep { to { transform: translateX(101%); } }
.wc h3 { margin: 0 0 6px; font: 700 26px/1.05 var(--font-display); letter-spacing: -0.01em; color: var(--white); }
.wc .say { display: inline-block; margin-bottom: 12px; font: 600 11px/1 var(--font-display); letter-spacing: 2px; text-transform: uppercase; color: var(--gold-light); }
.wc .m { margin: 0 0 10px; font-size: 15px; line-height: 1.5; color: var(--text); }
.wc .ex { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- the translator ---------- */
.tr-box { display: grid; grid-template-columns: 1fr 56px 1fr; align-items: stretch; background: var(--card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.tr-pane { position: relative; display: flex; flex-direction: column; padding: 20px 22px 22px; min-height: 210px; }
.tr-outpane { background: linear-gradient(135deg, rgba(255, 182, 18, 0.06), rgba(255, 182, 18, 0.015)); border-left: 1px solid var(--border); }
.tr-lbl { display: block; margin-bottom: 12px; font: 600 11px/1 var(--font-display); letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); }
.tr-outpane .tr-lbl { color: var(--gold-light); }
.tr-pane textarea {
    flex: 1;
    width: 100%;
    resize: none;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--white);
    font: 500 clamp(18px, 2vw, 22px)/1.45 var(--font-display);
    padding: 0;
}
.tr-pane:focus-within .tr-lbl { color: var(--white); }
.tr-out { flex: 1; margin: 0; font: 600 clamp(18px, 2vw, 22px)/1.45 var(--font-display); color: var(--white); word-wrap: break-word; }
.tr-out mark { background: none; color: var(--gold); text-shadow: 0 0 18px rgba(255, 182, 18, 0.35); }
html.motion-ok .tr-out mark { animation: markIn 0.7s var(--ease-out-expo) both; }
@keyframes markIn { from { color: #fff8e2; text-shadow: 0 0 22px rgba(255, 210, 120, 0.95); } to { color: var(--gold); text-shadow: 0 0 18px rgba(255, 182, 18, 0.35); } }
.tr-copy {
    align-self: flex-start;
    margin-top: 16px;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 182, 18, 0.3);
    background: rgba(255, 182, 18, 0.06);
    color: var(--gold-light);
    font: 600 11px/1 var(--font-display);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
}
.tr-copy:hover, .tr-copy:focus-visible { border-color: rgba(255, 182, 18, 0.6); background: rgba(255, 182, 18, 0.12); outline: none; }
.tr-span { display: flex; align-items: center; justify-content: center; border-left: 1px solid var(--border); }
.tr-span svg { width: 40px; height: 15px; overflow: visible; }
.tr-span path { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(255, 182, 18, 0.5)); }
.tr-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.tr-try > span { margin-right: 4px; font: 500 12px/1 var(--font-display); letter-spacing: 2px; text-transform: uppercase; color: var(--dim); }
.tr-try button {
    padding: 9px 14px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
    font: 500 13px/1.2 var(--font-body);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.tr-try button:hover, .tr-try button:focus-visible { border-color: rgba(255, 182, 18, 0.4); color: var(--white); background: rgba(255, 182, 18, 0.05); outline: none; }

/* ---------- neighborhoods: outlined names that drift past, the way the logo is drawn ---------- */
.hoods .sub { margin-bottom: 30px; }
.mqs { display: grid; gap: 12px; padding: 0 0 8px; }
.mq { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.mq-track { display: flex; gap: 12px; width: max-content; padding: 4px 0; }
html.motion-ok .mq-track { animation: drift 150s linear infinite; }
html.motion-ok .mq[data-row="1"] .mq-track { animation-direction: reverse; animation-duration: 170s; }
.mq:hover .mq-track { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(-50%); } }
html:not(.motion-ok) .mq { -webkit-mask-image: none; mask-image: none; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
html:not(.motion-ok) .mq-track { flex-wrap: wrap; width: auto; }
.hood {
    flex: none;
    padding: 12px 22px;
    border: 1px solid var(--border);
    border-radius: 50px;
    font: 700 clamp(17px, 2.2vw, 26px)/1 var(--font-display);
    letter-spacing: 0.2px;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 224, 138, 0.5);
    transition: color 0.4s, border-color 0.4s, background 0.4s, -webkit-text-stroke-color 0.4s, text-shadow 0.4s;
}
.hood:hover { color: var(--gold); -webkit-text-stroke-color: var(--gold); border-color: rgba(255, 182, 18, 0.4); background: rgba(255, 182, 18, 0.05); text-shadow: 0 0 22px rgba(255, 182, 18, 0.45); }
.hood.lit { color: var(--gold-light); -webkit-text-stroke-color: transparent; }

/* ---------- sign-off: the logo again, still dripping ---------- */
.bye { position: relative; max-width: var(--wrap); margin: 110px auto 0; padding: 60px 20px 40px; text-align: center; overflow: hidden; }
.bye-mark-wrap { position: relative; z-index: 1; width: 104px; margin: 0 auto 16px; }
.bye-mark { filter: drop-shadow(0 0 14px rgba(255, 182, 18, 0.3)); }
.bye.is-live .bye-mark { visibility: hidden; }
.bye-word { position: relative; z-index: 1; margin: 0 0 12px; font: 800 clamp(30px, 4.4vw, 46px)/1.05 var(--font-display); letter-spacing: -0.02em; color: var(--white); }
.bye-links { position: relative; z-index: 1; margin: 0; font-size: 14px; color: var(--dim); }
.bye-links a, .bye-links button { color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.12); transition: color 0.3s, border-color 0.3s; }
.bye-links a:hover, .bye-links button:hover, .bye-links a:focus-visible, .bye-links button:focus-visible { color: var(--gold-light); border-color: rgba(255, 182, 18, 0.5); outline: none; }

/* ---------- footer ---------- */
.foot { max-width: var(--wrap); margin: 0 auto; padding: 26px 20px 40px; border-top: 1px solid var(--border); 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); max-width: 720px; }
.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: 1000px) {
    .words { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nav { gap: 18px; }
}
@media (max-width: 860px) {
    .nav { display: none; }
    .top-play { margin-left: auto; }
    .play-grid { grid-template-columns: 1fr; gap: 26px; }
    .words { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nums { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .num { grid-column: span 2; }
    .num:nth-child(3), .num:nth-child(5) { grid-column: span 3; order: 1; }   /* bridges, neighborhoods, rivers on top; the long label gets a wide cell */
    .tr-box { grid-template-columns: 1fr; }
    .tr-span { border-left: 0; border-top: 1px solid var(--border); height: 44px; }
    .tr-span svg { transform: rotate(90deg); }
    .tr-outpane { border-left: 0; border-top: 1px solid var(--border); }
    .tr-pane { min-height: 150px; }
}
@media (max-width: 520px) {
    .top { padding: 12px 16px; }
    .hero { padding: 84px 16px 80px; }
    .sec { padding: 96px 16px 0; }
    .nums { width: calc(100% - 32px); }
    .cta .btn { min-width: 250px; justify-content: center; }
    .num { padding: 22px 6px 18px; }
    .num span { letter-spacing: 1px; font-size: 11px; }
    .words { grid-template-columns: 1fr; }
    .btn { padding: 14px 24px; }
    .play-demo { aspect-ratio: 4 / 3; }
    .bye { padding: 48px 16px 32px; }
    .foot { padding: 22px 16px 34px; }
}

/* ==========================================================================
   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, .ynt[data-screen="hof"] .ynt-blast, .ynt[data-screen="hof"] .ynt-hud { visibility: hidden; }
.ynt.ynt-cine .ynt-hud, .ynt.ynt-cine .ynt-blast { opacity: 0; pointer-events: none; transition: opacity 0.15s ease; }   /* out of the way of the stiff arm cam */

.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"], .ynt[data-screen="hof"] [data-screen-card="hof"] { display: block; }
html.motion-ok .ynt[data-screen="start"] [data-screen-card="start"], html.motion-ok .ynt[data-screen="over"] [data-screen-card="over"], html.motion-ok .ynt[data-screen="hof"] [data-screen-card="hof"] { 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-mark { width: 48px; height: 48px; margin: 0 auto 12px; }
.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: repeat(auto-fill, minmax(132px, 1fr)); gap: 6px; }
.ynt-move button {
    display: grid;
    gap: 2px;
    align-content: start;
    text-align: left;
    padding: 8px 10px;
    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 13px/1.2 var(--font-display); color: var(--white); }
.ynt-move button small { font-size: 11px; 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: 16px 0 4px; }
[data-screen-card="start"] .ynt-move { margin: 16px 0 14px; }
.ynt-btn.ynt-go { min-width: min(100%, 240px); padding: 17px 44px; font-size: 16px; letter-spacing: 2px; margin-top: 2px; }
.ynt-seasons { margin: 0 0 14px; text-align: left; }
.ynt-season-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.ynt-season-opts button { display: grid; gap: 1px; text-align: left; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03); color: var(--text); cursor: pointer; }
.ynt-season-opts button b { font: 700 12px/1.2 var(--font-display); color: var(--white); }
.ynt-season-opts button small { font-size: 11px; color: var(--muted); }
.ynt-season-opts button[aria-pressed="true"] { border-color: rgba(255, 182, 18, 0.6); background: rgba(255, 182, 18, 0.1); }
.ynt-season-opts button[aria-pressed="true"] b { color: var(--gold-light); }
.ynt-season-opts button:disabled { opacity: 0.4; cursor: not-allowed; }
.ynt-season-opts button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.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; }
}
