:root { --ink: #1c2434; --cream: #fff8ec; --red: #d83a34; --gold: #ffc93c; --sky: #7ec8ff; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #1c2434; color: var(--ink); font-family: "Nunito", system-ui, sans-serif; touch-action: none; user-select: none; -webkit-user-select: none; }
canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; }
.hidden { display: none !important; }
button { font: inherit; cursor: pointer; }

.sheet { position: fixed; inset: 0; overflow-y: auto; display: flex; align-items: flex-start; justify-content: center; padding: max(16px, env(safe-area-inset-top)) 16px 24px;
  background: radial-gradient(ellipse at 50% 0%, rgba(126,200,255,.55), rgba(28,36,52,.82) 70%); touch-action: pan-y; }
.menu-in, .res-in { width: 100%; max-width: 860px; text-align: center; }
.logo { font-family: "Lilita One", sans-serif; font-weight: 400; margin: 6px 0 0; line-height: .9; letter-spacing: 2px; transform: rotate(-3deg); }
.logo span { display: inline-block; font-size: clamp(48px, 11vw, 96px); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 var(--ink); }
.logo .l1 { color: var(--red); } .logo .l2 { color: var(--gold); margin-left: 12px; }
.tag { color: var(--cream); font-weight: 900; font-size: 18px; margin: 10px 0 4px; text-shadow: 0 2px 0 var(--ink); }
h2 { font-family: "Lilita One", sans-serif; font-weight: 400; color: var(--cream); margin: 16px 0 8px; font-size: 24px; text-shadow: 0 3px 0 var(--ink); }

.racers { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.racer { width: 108px; padding: 6px 4px 8px; border-radius: 16px; border: 4px solid var(--ink); background: var(--cream); box-shadow: 0 5px 0 var(--ink); transition: transform .12s; }
.racer img { width: 80px; height: 80px; object-fit: contain; display: block; margin: 0 auto; }
.racer b { display: block; font-size: 14px; margin-top: 2px; }
.racer.on { background: var(--gold); transform: translateY(-4px) rotate(-2deg); }
.racer .kc { display: block; height: 8px; border-radius: 4px; margin: 4px 10px 0; border: 2px solid var(--ink); }

.tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.cup { grid-column: 1 / -1; margin: 6px 0 -4px; text-align: left; color: var(--gold); font-weight: 900; font-size: 15px; letter-spacing: .5px; text-shadow: 0 2px 0 var(--ink); }
.track { position: relative; height: 112px; border-radius: 16px; border: 4px solid var(--ink); box-shadow: 0 5px 0 var(--ink); background-size: cover; background-position: center; overflow: hidden; transition: transform .12s; }
.track b { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 4px; background: rgba(28,36,52,.82); color: var(--cream); font-size: 15px; }
.track .best { position: absolute; top: 6px; right: 6px; background: var(--gold); border: 2px solid var(--ink); border-radius: 10px; padding: 0 6px; font-size: 12px; }
.track.on { outline: 5px solid var(--gold); transform: translateY(-4px); }

.row { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.speeds { display: flex; gap: 6px; }
.speed { border: 3px solid var(--ink); border-radius: 12px; background: var(--cream); padding: 8px 12px; font-weight: 900; box-shadow: 0 4px 0 var(--ink); }
.speed small { display: block; font-size: 11px; opacity: .7; }
.speed.on { background: var(--gold); }
.go { font-family: "Lilita One", sans-serif; font-size: 30px; padding: 10px 28px; border-radius: 18px; border: 4px solid var(--ink); background: var(--red); color: #fff; box-shadow: 0 6px 0 var(--ink); -webkit-text-stroke: 1px var(--ink); }
.go:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.go.alt { background: #3fa66b; } .go.alt2 { background: #5b6b8a; font-size: 22px; }
.how { color: var(--cream); font-size: 13px; opacity: .9; margin-top: 18px; line-height: 1.6; }
.legal { color: var(--cream); font-size: 12px; opacity: .6; }

.res-in { margin-top: 6vh; background: var(--cream); border: 5px solid var(--ink); border-radius: 24px; box-shadow: 0 8px 0 var(--ink); padding: 18px; max-width: 520px; }
.res-title { font-family: "Lilita One", sans-serif; font-size: clamp(36px, 9vw, 60px); color: var(--red); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.res-list { list-style: none; padding: 0; margin: 10px 0; text-align: left; }
.res-list li { display: flex; align-items: center; gap: 10px; padding: 4px 10px; border-radius: 12px; font-weight: 900; font-size: 18px; }
.res-list li.me { background: var(--gold); }
.res-list .pl { width: 38px; font-family: "Lilita One", sans-serif; font-size: 24px; }
.res-list img { width: 40px; height: 40px; object-fit: contain; }
.res-list .t { margin-left: auto; font-size: 14px; opacity: .7; }

#touch .tb { position: fixed; bottom: max(18px, env(safe-area-inset-bottom)); width: 84px; height: 84px; border-radius: 50%; border: 4px solid rgba(28,36,52,.8); background: rgba(255,248,236,.55); font-size: 30px; font-weight: 900; color: var(--ink); touch-action: none; }
#touch .tb.down { background: rgba(255,201,60,.9); }
#tl { left: max(16px, env(safe-area-inset-left)); } #tr { left: calc(max(16px, env(safe-area-inset-left)) + 96px); }
#touch .act { font-size: 15px; font-family: "Lilita One", sans-serif; }
#tdrift { right: calc(max(16px, env(safe-area-inset-right)) + 96px); }
#titem { right: max(16px, env(safe-area-inset-right)); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 70px); }
.snd, .pausebtn { position: fixed; top: max(10px, env(safe-area-inset-top)); width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ink); background: var(--cream); font-size: 20px; z-index: 5; }
.snd { right: max(10px, env(safe-area-inset-right)); }
.pausebtn { right: calc(max(10px, env(safe-area-inset-right)) + 52px); font-weight: 900; }
.viewbtn { right: calc(max(10px, env(safe-area-inset-right)) + 104px); font-weight: 400; }   /* 👀 behind ↔ driver's seat (C) */
@media (max-width: 520px) { .viewbtn { right: auto; top: auto; left: max(14px, env(safe-area-inset-left)); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 84px); } }   /* phones: bottom-left above ◀ (clear of the lap counter + your place) */
@media (max-width: 520px) {
  #touch .tb { width: 70px; height: 70px; font-size: 24px; }
  #tr { left: calc(max(12px, env(safe-area-inset-left)) + 78px); } #tl { left: max(12px, env(safe-area-inset-left)); }
  #tdrift { right: calc(max(12px, env(safe-area-inset-right)) + 78px); } #titem { right: max(12px, env(safe-area-inset-right)); }
  #touch .act { font-size: 13px; }
}
.legal a { color: inherit; }

.wrow { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 16px; flex-wrap: wrap; }
/* the menu pickers: Race (karts / dunes) and Graphics (Classic / ✨ HD / 💎 Ultra); each pair of choices is a page */
.pickers { display: flex; gap: 10px 18px; justify-content: center; align-items: center; flex-wrap: wrap; margin: 6px 0 2px; }
.picker { display: flex; align-items: center; gap: 8px; }
.plabel { color: var(--cream); font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; text-shadow: 0 2px 0 var(--ink); }
.modes { display: inline-flex; gap: 0; border: 4px solid var(--ink); border-radius: 16px; overflow: hidden; box-shadow: 0 5px 0 var(--ink); }
.mode, .gfx { padding: 8px 14px; font-weight: 900; font-size: 16px; color: var(--ink); background: var(--cream); text-decoration: none; white-space: nowrap; }
.mode + .mode, .gfx + .gfx { border-left: 4px solid var(--ink); }
.mode.on, .gfx.on { background: var(--gold); }
.gfx.ultra { background: linear-gradient(135deg, #e9f7ff, #e4d8ff); } .gfx.ultra.on { background: linear-gradient(135deg, #7fe0ff, #b78cff); }
.gfx.off { opacity: .45; cursor: default; } .gfx small { font-size: 10px; }
@media (max-width: 440px) { .mode, .gfx { padding: 7px 10px; font-size: 14px; } .plabel { font-size: 11px; } }
/* phones: the label goes above its row so four Graphics choices fit a 360 px screen */
@media (max-width: 560px) { .picker { flex-direction: column; gap: 4px; } }
@media (max-width: 440px) { .gfx { padding: 7px 8px; font-size: 13px; } }
body.dunes .sheet { background: radial-gradient(ellipse at 50% 0%, rgba(255,190,120,.6), rgba(28,36,52,.85) 70%); }
.loading { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(28,36,52,.85); color: var(--cream);
  font-family: "Lilita One", sans-serif; font-size: 34px; text-shadow: 0 3px 0 var(--ink); z-index: 6; }
body.dunes .logo span { font-size: clamp(36px, 9.2vw, 96px); }
/* the painted ROCKO DUNES logo (Ron's DALL·E art) */
.logo-art { transform: none; margin: 0 auto -6px; }
.logo-art img { display: block; width: min(420px, 78vw); height: auto; margin: 0 auto; filter: drop-shadow(0 6px 0 rgba(28,36,52,.6)); }
/* the "Now playing" card on the menus: Ron's Suno theme + its album cover (tap the cover to see it big) */
.song { display: flex; align-items: center; gap: 12px; max-width: 420px; margin: 18px auto 0; padding: 8px 10px; background: rgba(28,36,52,.55);
  border: 2px solid rgba(255,255,255,.15); border-radius: 16px; text-align: left; color: var(--cream); }
.song-cover { padding: 0; border: 0; background: none; cursor: zoom-in; flex: none; }
.song-cover img { display: block; width: 64px; height: 64px; border-radius: 10px; box-shadow: 0 3px 0 var(--ink); }
.song-txt { flex: 1; min-width: 0; line-height: 1.25; }
.song-txt small { display: block; font-size: 12px; opacity: .8; }
.song-txt b { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 18px; }
.song-play { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--gold); color: var(--ink); font-size: 20px; box-shadow: 0 3px 0 var(--ink); }
.coverbig { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15,20,30,.88); cursor: zoom-out; }
.coverbig img { width: min(560px, 90vw, 80vh); height: auto; border-radius: 18px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }

/* ===== the jukebox: the Fetch-o-Matic 3000 (jukebox.js) ===== */
.song-jb { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; height: 52px; border-radius: 16px; border: 0; background: #ff7ab8; color: #fff; font-size: 20px; line-height: 1; box-shadow: 0 3px 0 var(--ink); cursor: pointer; }
.song-jb small { font-size: 10px; font-weight: 900; margin-top: 2px; }
.jb { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-start; justify-content: center; padding: 12px; overflow-y: auto; background: rgba(15,20,30,.9); }
.jb.hidden { display: none; }
.jb-card { width: 100%; max-width: 760px; background: #2a2150; border: 5px solid var(--ink); border-radius: 26px; box-shadow: 0 8px 0 var(--ink); padding: 12px; color: var(--cream); }
.jb-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.jb-top h2 { margin: 0; font-family: "Lilita One", sans-serif; font-weight: 400; font-size: clamp(22px, 6vw, 34px); color: var(--gold); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; letter-spacing: 1px; }
.jb-top h2 span { color: #ff7ab8; }
.jb-x { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--ink); background: var(--cream); color: var(--ink); font-size: 18px; font-weight: 900; cursor: pointer; }
.jb-stage { position: static; inset: auto; display: block; width: 100%; height: 300px; margin: 10px 0; border-radius: 18px; border: 4px solid var(--ink); background: #151a2c; }
.jb-now { display: flex; align-items: center; gap: 12px; }
.jb-cov { width: 110px; height: 110px; border-radius: 14px; box-shadow: 0 0 22px rgba(255,201,60,.35); border: 3px solid var(--ink); background: #1c2434; flex: none; object-fit: cover; }
.jb-meta { flex: 1; min-width: 0; }
.jb-title { display: block; font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jb-bar { position: relative; height: 12px; margin: 6px 0 2px; border-radius: 8px; background: #1c2434; border: 2px solid var(--ink); cursor: pointer; }
.jb-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; background: linear-gradient(90deg, #ff5a5a, #ffd23a, #5ad16b, #4fb3ff, #9a6bff); }
.jb-bar em { position: absolute; top: 50%; transform: translate(-50%, -50%); font-style: normal; font-size: 18px; filter: drop-shadow(0 1px 0 var(--ink)); }
.jb-time { font-size: 12px; opacity: .8; }
.jb-ctrl { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.jb-b { display: flex; flex-direction: column; align-items: center; width: 74px; height: 64px; justify-content: center; border-radius: 18px; border: 4px solid var(--ink); background: var(--gold); color: var(--ink); font-size: 24px; line-height: 1; box-shadow: 0 4px 0 var(--ink); cursor: pointer; }
.jb-b small { font-size: 11px; font-weight: 900; margin-top: 3px; }
.jb-b:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.jb-sniff { background: #9fe6fa; } .jb-bark { background: #ff7ab8; }
.jb-vol { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 18px; border: 4px solid var(--ink); background: var(--cream); color: var(--ink); }
.jb-vol input { width: 120px; accent-color: #ff7ab8; }
.jb-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.jb-song { display: flex; align-items: center; gap: 10px; padding: 8px; text-align: left; color: var(--ink); background: #ffe9c4; border: 4px solid var(--ink); border-radius: 22px 22px 22px 22px / 30px 30px 30px 30px; box-shadow: 0 4px 0 var(--ink); cursor: pointer; transition: transform .12s; }
.jb-song img { width: 54px; height: 54px; border-radius: 12px; flex: none; }
.jb-song.on { background: var(--gold); transform: translateY(-3px); }
.jb-song.sniffed { background: #9fe6fa; transform: rotate(-2deg) scale(1.03); }
.jb-st { min-width: 0; display: flex; flex-direction: column; }
.jb-st b { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jb-st small { font-size: 12px; font-weight: 700; opacity: .75; }
.jb-eq { font-style: normal; letter-spacing: -2px; color: #d83a34; animation: jbEq .5s steps(2) infinite; }
@keyframes jbEq { 50% { opacity: .35; } }
.jb-wags { font-size: 15px; margin-top: 2px; }
.jb-w { opacity: .22; filter: grayscale(1); padding: 0 1px; } .jb-w.on { opacity: 1; filter: none; }
.jb-foot { margin: 12px 0 2px; text-align: center; font-size: 13px; opacity: .8; }
@media (max-width: 520px) { .jb-stage { height: 230px !important; } .jb-b { width: 64px; height: 58px; font-size: 21px; } .jb-vol input { width: 90px; } }

/* the jukebox, featured at the top of every menu (Ron: "the jukebox should be featured at the top of the screen") */
.song.jbfeat { max-width: 640px; margin: 4px auto 14px; padding: 8px 12px 8px 8px; gap: 10px; background: linear-gradient(135deg, rgba(42,33,80,.95), rgba(28,36,52,.95)); border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 5px 0 var(--ink); }
.jbf-machine { flex: none; padding: 0; border: 0; background: none; cursor: pointer; transition: transform .15s; }
.jbf-machine img { display: block; height: 92px; width: auto; filter: drop-shadow(0 3px 0 var(--ink)); }
.jbf-machine:hover { transform: rotate(-4deg) scale(1.05); }
.jbfeat .song-txt { display: flex; flex-direction: column; align-items: flex-start; }
.jbf-logo { display: block; width: min(250px, 100%); height: auto; margin-bottom: 2px; }
.jbfeat .song-txt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* the playing song's album cover, big, right next to the jukebox (Ron: "show the album cover of the song thats playing
   larger somewhere … maybe next to the jukebox" → "its too small") */
.jbfeat .jbf-machine { order: 0; } .jbfeat .song-cover { order: 1; } .jbfeat .song-txt { order: 2; } .jbfeat .song-play { order: 3; } .jbfeat .song-jb { order: 4; }
.jbfeat .song-cover img { width: 150px; height: 150px; border-radius: 16px; border: 4px solid var(--ink); box-shadow: 0 4px 0 var(--ink), 0 0 26px rgba(255,201,60,.35); }
.jbfeat .jbf-machine img { height: 150px; }
@media (max-width: 560px) {
  .song.jbfeat { display: grid; grid-template-columns: auto auto 1fr; grid-template-areas: "m c p" "m c o" "t t t"; align-items: center; gap: 8px 10px; }
  .jbfeat .jbf-machine { grid-area: m; } .jbfeat .song-cover { grid-area: c; } .jbfeat .song-play { grid-area: p; justify-self: center; } .jbfeat .song-jb { grid-area: o; justify-self: center; }
  .jbfeat .song-txt { grid-area: t; align-items: center; text-align: center; }
  .jbfeat .song-cover img { width: 118px; height: 118px; } .jbf-machine img { height: 118px; } .jbfeat .song-txt b { font-size: 16px; }
}
.jb-top h2 { line-height: 0; }
.jb-logo { height: clamp(40px, 10vw, 66px); width: auto; display: block; }

/* 🏆 Grand Prix (game.js GP) */
.cup { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gp-go { margin-left: auto; padding: 5px 12px; border-radius: 999px; border: 3px solid var(--ink); background: var(--gold); color: var(--ink); font: 900 13px Nunito, sans-serif; box-shadow: 0 3px 0 var(--ink); cursor: pointer; }
.gp-go:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.gp-best { font-size: 18px; }
.gp-stand { margin: 10px auto 4px; max-width: 420px; background: rgba(28,36,52,.6); border: 3px solid var(--ink); border-radius: 16px; padding: 8px 10px; }
.gp-stand.hidden { display: none; }
.gp-h { font-family: "Lilita One", sans-serif; color: var(--gold); font-size: 16px; text-align: center; margin-bottom: 4px; text-shadow: 0 2px 0 var(--ink); }
.gp-stand ol { list-style: none; margin: 0; padding: 0; }
.gp-stand li { display: flex; align-items: center; gap: 8px; padding: 3px 6px; border-radius: 10px; color: var(--cream); font-weight: 800; font-size: 14px; }
.gp-stand li.me { background: rgba(255,201,60,.25); }
.gp-stand li img { width: 26px; height: 26px; border-radius: 50%; }
.gp-stand li .pl { width: 34px; text-align: center; }
.gp-stand li b { margin-left: auto; font-size: 16px; color: var(--gold); }
.gp-stand li small { width: 34px; text-align: right; color: #5ad16b; font-weight: 900; }
.res-list li.gp-trophy { justify-content: center; font-size: 96px; line-height: 1.1; background: none; border: 0; animation: gpPop .8s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes gpPop { from { transform: scale(.2) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* 🔒 locked cups + the secret-code box (game.js askCode) */
.track.locked { filter: grayscale(.75) brightness(.72); }
.track.locked::after { content: ""; width: 40px; height: 40px; background: url(/img/ui/lock.webp) center / contain no-repeat; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -62%); font-size: 34px; filter: drop-shadow(0 2px 0 var(--ink)); }
.gp-go.locked { background: #c8ccd6; }
.codebox { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15,20,30,.85); }
.codebox.hidden { display: none; }
.code-card { width: 100%; max-width: 360px; text-align: center; background: var(--cream); color: var(--ink); border: 5px solid var(--ink); border-radius: 26px; box-shadow: 0 8px 0 var(--ink); padding: 18px; }
.code-card h3 { margin: 4px 0 6px; font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 26px; color: #d83a34; }
.code-card p { margin: 6px 0; font-weight: 700; }
.code-lock { font-size: 54px; line-height: 1; }
.code-in { width: 100%; box-sizing: border-box; margin: 6px 0; padding: 12px; font: 900 24px Nunito, sans-serif; text-align: center; letter-spacing: 3px; text-transform: lowercase; border: 4px solid var(--ink); border-radius: 16px; outline: none; }
.code-in:focus { border-color: #ff7ab8; }
.code-msg { min-height: 1.3em; color: #d83a34; }
.code-row { display: flex; gap: 10px; justify-content: center; margin-top: 6px; }
.code-row .go { font-size: 18px; padding: 10px 16px; }
.code-card.shake { animation: codeShake .4s; }
.code-card.yay .code-msg { color: #2e8b57; }
@keyframes codeShake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }

/* "Rocko & Me: coming soon" sticker (Ron, 2026-10-04: "add a badge stating Rocko & Me coming soon"). The brand kit's
   "Enabled" badge (copied from rockoandme/public/brand) with a COMING SOON sash over its "ENABLED". Not a link. */
.rme-badge { position: relative; flex: none; width: 92px; height: 92px; transform: rotate(-6deg); filter: drop-shadow(0 4px 0 var(--ink)); }
.rme-badge img { width: 100%; height: 100%; display: block; }
.rme-badge i { position: absolute; left: -10px; right: -10px; bottom: 7px; padding: 7px 0; font: 400 13px "Lilita One", sans-serif; font-style: normal; letter-spacing: .5px; text-align: center; color: #fff; background: #d83a34; border: 3px solid var(--ink); border-radius: 8px; transform: rotate(-8deg); box-shadow: 0 3px 0 var(--ink); }

/* ====================================================================================================================
   🏠 The home page, layout "C1 · Headliner" (Ron, 2026-10-05: "need a home page redesign. i need the controls above the
   worlds also. maybe put the rocko and me coming soon on top" → samples A / B / C → "C but i want to move the jukebox to
   the top also" → C1 / C2 / C3 → "c1"). Top to bottom: the Rocko & Me ribbon · logo + the big jukebox card side by side ·
   Race / Graphics · the race ticket (driver | world | RACE! + Free roam) · setting chips (driver, speed, weather, view) ·
   Where to? (the worlds) · RACE! again at the bottom.
   ==================================================================================================================== */
.rme-ribbon { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 auto 6px; padding: 6px 16px 6px 8px; max-width: 640px; background: var(--red); color: #fff; border: 4px solid var(--ink); border-radius: 999px; box-shadow: 0 5px 0 var(--ink); font-weight: 900; font-size: 15px; text-align: left; }
.rme-ribbon b { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 19px; }
.rme-ribbon small { font-size: 13px; opacity: .9; }
.rme-ribbon .rme-badge { width: 52px; height: 52px; margin: -10px 0 -10px; }
.rme-ribbon .rme-badge i { font-size: 8px; padding: 3px 0; left: -6px; right: -6px; bottom: 4px; border-width: 2px; }
.hero { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 8px 0 6px; }
.hero-l { flex: 0 1 auto; width: min(340px, 70vw); }   /* never wider than the logo: a long tagline wraps under it */
.hero .logo-art img { width: min(320px, 70vw); }
/* the wide 3:2 logo (Ron's DALL·E, 2026-10-05: the 360 bone loop, the tail chaser, the cannon, a dune buggy, the jukebox; no rainbow) */
.hero-l:has(.logo-wide) { width: min(440px, 92vw); }
.hero .logo-wide img { width: 100%; }
.hero .tag { margin: 2px 0 0; }
.menu-in:has(.ticket) { max-width: 1000px; }
.song.jbfeat.jbhead { flex: 0 1 600px; min-width: 0; display: grid; grid-template-columns: auto auto minmax(190px, 1fr); grid-template-areas: "m c t" "m c b"; align-items: center; gap: 4px 14px; max-width: 600px; margin: 0; padding: 10px 16px 10px 10px; text-align: left; box-shadow: 0 6px 0 #0d1220, 0 0 34px rgba(255,201,60,.22); }
.jbhead .jbf-machine { grid-area: m; } .jbhead .song-cover { grid-area: c; } .jbhead .song-txt { grid-area: t; align-self: end; align-items: flex-start; text-align: left; } .jbhead .jbh-btns { grid-area: b; align-self: start; }
.jbhead .jbf-machine img { height: 140px; } .jbhead .song-cover img { width: 128px; height: 128px; }
.jbhead .jbf-logo { width: min(220px, 100%); }
.jbhead .song-txt small { display: flex; align-items: center; gap: 6px; color: var(--gold); opacity: 1; font-weight: 900; font-size: 13px; }
.jbhead .song-txt b { font-size: 20px; color: var(--cream); }
.jbh-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.jbh-btns .song-play { width: 46px; height: 46px; border: 3px solid var(--ink); }
.jbh-btns .song-jb { flex-direction: row; width: auto; height: 46px; padding: 0 16px; gap: 6px; border: 3px solid var(--ink); border-radius: 999px; background: var(--gold); color: var(--ink); font: 900 15px Nunito, sans-serif; box-shadow: 0 3px 0 var(--ink); }
.eqb { display: inline-flex; gap: 3px; align-items: flex-end; height: 14px; }
.eqb i { display: block; width: 4px; border-radius: 2px; background: var(--gold); animation: eqb 0.9s ease-in-out infinite alternate; }
.eqb i:nth-child(1) { height: 40%; animation-delay: -.2s; } .eqb i:nth-child(2) { height: 90%; animation-delay: -.5s; } .eqb i:nth-child(3) { height: 60%; animation-delay: -.1s; }
.eqb i:nth-child(4) { height: 100%; animation-delay: -.7s; } .eqb i:nth-child(5) { height: 50%; animation-delay: -.3s; }
@keyframes eqb { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.eqb i { transform-origin: bottom; }
/* the race ticket */
.ticket { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: stretch; margin: 14px 0 12px; padding: 12px; background: var(--cream); border: 5px solid var(--ink); border-radius: 26px; box-shadow: 0 8px 0 var(--ink); }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 50%; width: 26px; height: 26px; border-radius: 50%; background: #2b3a55; border: 5px solid var(--ink); transform: translateY(-50%); }
.ticket::before { left: -16px; } .ticket::after { right: -16px; }
.tk-who { width: 150px; padding: 6px; text-align: center; background: var(--gold); border: 4px solid var(--ink); border-radius: 18px; color: var(--ink); }
.tk-who img { display: block; width: 120px; height: 120px; object-fit: contain; margin: 0 auto; }
.tk-who b { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 20px; }
.tk-who small, .tk-where small { display: block; font-weight: 900; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.tk-who small { opacity: .65; }
.tk-where { display: flex; flex-direction: column; justify-content: flex-end; min-height: 170px; padding: 0; overflow: hidden; text-align: left; border: 4px solid var(--ink); border-radius: 18px; background: #2b3a55 center / cover no-repeat; }
.tk-where span { display: block; padding: 6px 10px; background: rgba(28,36,52,.82); color: var(--cream); }
.tk-where small { color: var(--gold); }
.tk-where b { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 24px; }
.tk-go { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.tk-go .go { font-size: 46px; padding: 14px 26px; white-space: nowrap; }
.tk-go .go.alt { font-size: 22px; padding: 10px 16px; }
/* the setting chips: driver, speed, weather, view */
.setrow { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 6px 0; }
.setrow .sep { width: 3px; height: 30px; border-radius: 2px; background: rgba(255,248,236,.3); }
.setrow .grp { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.menu-in:has(.ticket) .tracks { grid-template-columns: repeat(4, minmax(0, 1fr)); }   /* every cup is four worlds */
@media (max-width: 720px) { .menu-in:has(.ticket) .tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.racers.chips { gap: 8px; }
.racers.chips .racer { display: flex; align-items: center; gap: 6px; width: auto; padding: 3px 12px 3px 3px; border: 3px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink); transform: none; }
.racers.chips .racer img { width: 34px; height: 34px; margin: 0; border-radius: 50%; background: #fff; border: 2px solid var(--ink); object-fit: contain; }
.racers.chips .racer b { margin: 0; font-size: 14px; }
.racers.chips .racer .kc { width: 12px; height: 12px; margin: 0; border-radius: 50%; }
.setrow .speeds { gap: 6px; flex-wrap: wrap; justify-content: center; }
.setrow .speed { display: flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; box-shadow: 0 3px 0 var(--ink); }
.setrow .speed small { font-size: 11px; }
@media (max-width: 1000px) {   /* logo + jukebox don't fit side by side: the jukebox goes under the logo */
  .hero { flex-direction: column; gap: 8px; }
  .hero-l { width: auto; }
  .hero-l:has(.logo-wide) { width: min(560px, 92vw); }
  .song.jbfeat.jbhead { flex: none; width: min(600px, 100%); }
}
@media (max-width: 720px) {
  .song.jbfeat.jbhead { width: 100%; flex: none; grid-template-columns: auto auto minmax(0, 1fr); padding: 8px; gap: 4px 8px; }
  .hero-l { width: auto; }
  .jbhead .jbf-machine img { height: 96px; } .jbhead .song-cover img { width: 88px; height: 88px; }
  .jbhead .jbf-logo { width: min(150px, 100%); } .jbhead .song-txt b { font-size: 14px; }
  .jbh-btns .song-play { width: 38px; height: 38px; font-size: 16px; } .jbh-btns .song-jb { height: 38px; padding: 0 10px; font-size: 13px; }
  .ticket { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px; padding: 10px; }
  .ticket::before, .ticket::after { display: none; }
  .tk-who { width: auto; } .tk-who img { width: 84px; height: 84px; } .tk-where { min-height: 130px; } .tk-where b { font-size: 18px; }
  .tk-go { grid-column: 1 / -1; flex-direction: row; } .tk-go .go { flex: 1; font-size: 32px; padding: 10px; } .tk-go .go.alt { font-size: 20px; }
  .setrow .sep { display: none; }
  .racers.chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 2px 2px 6px; max-width: 100%; }
  .racers.chips .racer { flex: none; }
  .setrow .racers.chips { flex: 1 1 auto; min-width: 0; }
  .rme-ribbon { font-size: 13px; border-radius: 22px; margin-top: 46px; } .rme-ribbon b { font-size: 16px; }   /* (clear of the Ron R badge + 🔊) */
}
@media (max-width: 420px) {   /* small phones: the cover + "Open jukebox" are enough (the machine picture made the card too wide) */
  .jbhead .jbf-machine { display: none; }
  .song.jbfeat.jbhead { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "c t" "c b"; }
  .tk-go .go { font-size: 28px; } .tk-go .go.alt { font-size: 17px; padding: 8px 6px; }
}

/* ⏸ PAUSE (pause.js; Ron, 2026-10-05: "a pause that actually freezes the screen … a very small modal with the option to
   expand for instructions … i want to read the billboards"): a small box at the bottom so the picture stays in view */
.pzbtn { right: calc(max(10px, env(safe-area-inset-right)) + 156px); font-weight: 400; font-size: 18px; }
@media (max-width: 520px) { .pzbtn { right: calc(max(10px, env(safe-area-inset-right)) + 104px); } }   /* phones: 👀 moved to the bottom-left */
.pz { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30;
  max-width: min(440px, calc(100vw - 24px)); background: rgba(28, 36, 52, .92); color: #fff8ec; border: 3px solid #ffc93c;
  border-radius: 18px; padding: 6px 8px; box-shadow: 0 6px 22px rgba(0, 0, 0, .35); font: 600 14px/1.35 Nunito, system-ui, sans-serif; }
.pz-row { display: flex; align-items: center; gap: 6px; }
.pz-t { font: 400 18px 'Lilita One', system-ui, sans-serif; letter-spacing: .5px; padding: 0 6px 0 4px; white-space: nowrap; }
.pz button { border: 2px solid #1c2434; border-radius: 999px; background: #fff8ec; color: #1c2434; font: 400 16px 'Lilita One', system-ui, sans-serif;
  min-width: 40px; height: 38px; padding: 0 12px; cursor: pointer; white-space: nowrap; }
.pz .pz-go { background: #ffc93c; }
.pz .pz-more.on { background: #ffc93c; }
.pz button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }   /* custom icons sit inline with any label */
.pz button .rw-ic { width: 1.1em; height: 1.1em; }
.pz-help { margin: 8px 4px 4px; font-size: 13px; text-align: left; max-height: 40vh; overflow: auto; }
.pz-help p { margin: 6px 0 0; }
.pz-help b { color: #ffc93c; }
body.rk-paused #touch { visibility: hidden; }   /* the touch buttons step aside so the picture's clear */

/* ‹ › on the ticket's driver + world cards (Ron, 2026-10-05: "id like to be able to sleect the track here as well with
   arrows"); ← → keys on the menu step the world too */
.tk-wrap { position: relative; display: flex; min-width: 0; }
.tk-wrap > .tk-who, .tk-wrap > .tk-where { flex: 1; min-width: 0; }
.tk-arr { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; padding: 0; border-radius: 50%;
  border: 3px solid var(--ink); background: var(--cream); color: var(--ink); font: 400 30px/30px "Lilita One", sans-serif; z-index: 2;
  box-shadow: 0 3px 0 var(--ink); cursor: pointer; }
.tk-arr:active { transform: translateY(calc(-50% + 2px)); box-shadow: 0 1px 0 var(--ink); }
.tk-arr.l { left: 6px; } .tk-arr.r { right: 6px; }
.tk-wrap:has(.tk-who) .tk-arr { top: 6px; transform: none; width: 28px; height: 28px; font-size: 22px; line-height: 18px; }   /* beside the DRIVER label, clear of the face */
.tk-wrap:has(.tk-who) .tk-arr:active { transform: translateY(2px); }
.tk-wrap:has(.tk-where) .tk-arr { top: 38%; }
@media (max-width: 560px) { .tk-wrap:has(.tk-where) .tk-arr { width: 32px; height: 32px; font-size: 24px; line-height: 22px; top: 20px; transform: none; } .tk-arr.l { left: 4px; } .tk-arr.r { right: 4px; } }   /* phones: on the picture, above the caption */

/* 🏆 cup logos (img/cups; game.js / dunes.js cupLogo): on the cup headings, the ticket, the Grand Prix standings + trophy */
.cup .cup-logo { width: 44px; height: 44px; object-fit: contain; vertical-align: middle; margin: -8px 8px -6px 0; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.gp-h .cup-logo { width: 30px; height: 30px; object-fit: contain; vertical-align: middle; margin: -6px 4px -4px 0; }
.gp-trophy .gp-logo-big { width: 120px; height: 120px; object-fit: contain; vertical-align: middle; margin-right: 10px; filter: drop-shadow(0 4px 4px rgba(0,0,0,.35)); }
.tk-where { position: relative; }
.res-list li.gp-trophy img.gp-logo-big { width: 128px; height: 128px; border-radius: 0; border: 0; background: none; object-fit: contain; margin-right: 12px; }
/* the ticket caption: [cup badge] "Part of the … series" over the world's name */
.tk-where span { position: relative; }
.tk-where span.has-logo { padding-left: 74px; min-height: 52px; }
.tk-cuplogo { position: absolute; left: 8px; bottom: 4px; width: 60px; height: 60px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0,0,0,.45)); pointer-events: none; }
@media (max-width: 560px) { .tk-where span.has-logo { padding-left: 50px; min-height: 40px; } .tk-cuplogo { width: 42px; height: 42px; left: 5px; bottom: 3px; } }
.tk-pt { font-style: normal; }
@media (max-width: 560px) { .tk-pt { display: none; } }   /* phones: just "Dunes Cup series" */

/* ===========================================================================
   ✨ FLAIR (flair.js; Ron, 2026-10-05: "make the selection more prominent AND EXCITING" / "i dont want anything normal"
   / "we are amazing"): picks glow with a running rainbow-gold edge, the ticket breathes, RACE! shines, sparkles fly
   =========================================================================== */
@property --fl-a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes flSpin { to { --fl-a: 360deg; } }
@keyframes flGlow { 0%, 100% { box-shadow: 0 0 0 3px #ffc93c, 0 0 18px 4px rgba(255,201,60,.55); } 50% { box-shadow: 0 0 0 3px #ff7ab8, 0 0 30px 8px rgba(255,122,184,.55); } }
@keyframes flBob { 0%, 100% { transform: translateY(-6px) scale(1.05) rotate(-1deg); } 50% { transform: translateY(-10px) scale(1.06) rotate(1deg); } }
@keyframes flWiggle { 0%, 100% { transform: translateY(-3px) rotate(-3deg) scale(1.08); } 50% { transform: translateY(-3px) rotate(3deg) scale(1.08); } }
@keyframes flSweep { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(260%) skewX(-20deg); } }
@keyframes flPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* the picked world: a spinning rainbow-gold ring just inside its edge (the card clips), a pulsing glow outside, bobbing,
   a PICKED! sticker in its corner */
@keyframes flGlowT { 0%, 100% { box-shadow: 0 5px 0 var(--ink), 0 0 0 4px #ffc93c, 0 0 22px 6px rgba(255,201,60,.6); } 50% { box-shadow: 0 5px 0 var(--ink), 0 0 0 4px #ff7ab8, 0 0 34px 10px rgba(255,122,184,.6); } }
.track.on { outline: 0; animation: flBob 2.2s ease-in-out infinite, flGlowT 1.6s ease-in-out infinite; }
.track.on::before { content: ""; position: absolute; inset: 0; border-radius: 12px; padding: 6px; z-index: 2; pointer-events: none; animation: flSpin 2.5s linear infinite;
  background: conic-gradient(from var(--fl-a), #ffc93c, #ff7ab8, #9a6bff, #4fd8ff, #3fbf7f, #ffc93c);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.track.on::after { content: "★ PICKED!"; position: absolute; top: 9px; right: 9px; z-index: 3; padding: 3px 9px; border: 3px solid var(--ink); border-radius: 999px;
  background: #ff4f7a; color: #fff; font: 400 14px "Lilita One", sans-serif; letter-spacing: .5px; transform: rotate(6deg); box-shadow: 0 3px 0 var(--ink); }
.track.on .best { right: auto; left: 10px; }

/* the picked driver chip + the picked speed / weather / view chips: glowing, wiggling, gold */
.racers.chips .racer.on { background: linear-gradient(180deg, #fff1a8, #ffc93c); animation: flGlow 1.6s ease-in-out infinite, flWiggle 1.1s ease-in-out infinite; }
.speed.on { background: linear-gradient(180deg, #fff1a8, #ffc93c); animation: flGlow 1.6s ease-in-out infinite; position: relative; }

/* the ticket: a living rainbow-gold rim + a breathing glow; RACE! pulses with a shine sweeping across */
.ticket .tk-glow { position: absolute; inset: -12px; border-radius: 32px; z-index: -1; pointer-events: none; animation: flSpin 4s linear infinite;
  background: conic-gradient(from var(--fl-a), #ffc93c, #ff7ab8, #4fd8ff, #3fbf7f, #ffc93c); filter: blur(6px); opacity: .9; }
.tk-go .go:not(.alt) { position: relative; overflow: hidden; animation: flPulse 1.4s ease-in-out infinite; }
.tk-go .go:not(.alt)::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 34%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
  animation: flSweep 2.2s ease-in-out infinite; pointer-events: none; }
.tk-who, .tk-where { transition: transform .2s; }
.tk-who:hover, .tk-where:hover { transform: translateY(-3px) rotate(-.6deg); }

/* sparkles flying out of a pick */
.fl-bit { position: fixed; z-index: 60; pointer-events: none; line-height: 1; text-shadow: 0 2px 4px rgba(0,0,0,.35); will-change: transform; }
/* a cup heading you jumped to */
@keyframes flShine { 0% { background: rgba(255,201,60,.0); } 30% { background: rgba(255,201,60,.45); } 100% { background: rgba(255,201,60,0); } }
.cup.fl-shine { animation: flShine 1.6s ease-out 2; border-radius: 14px; }

/* 🆕 the NEW! showcase */
.news { margin: 6px 0 14px; }
.news-h { margin: 0 0 8px; text-align: center; font: 400 26px "Lilita One", sans-serif; color: #fff1a8; text-shadow: 0 3px 0 var(--ink), 0 0 18px rgba(255,201,60,.6); letter-spacing: 1px; }
.news-star { display: inline-block; animation: flWiggle 1s ease-in-out infinite; } .news-star.r { animation-delay: -.5s; }
.news-tabs { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@keyframes ntBob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-3px) rotate(1deg); } }
.news-tab { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border: 4px solid var(--ink); border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, #fff8ec, #ffe9b8); color: var(--ink); box-shadow: 0 5px 0 var(--ink); animation: ntBob 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.8s); }
.news-tab:nth-child(2) { background: linear-gradient(180deg, #fff8ec, #ffd6e6); } .news-tab:nth-child(3) { background: linear-gradient(180deg, #fff8ec, #d6f2ff); }
.news-tab .nt-e { font-size: 26px; line-height: 1; }
.news-tab b { font: 400 21px "Lilita One", sans-serif; white-space: nowrap; }
.nt-peek { display: flex; } .nt-peek img, .nt-peek span { width: 30px; height: 30px; object-fit: contain; margin-left: -8px; font-size: 20px; line-height: 30px; text-align: center;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); } .nt-peek > :first-child { margin-left: 0; }
.nt-n { position: absolute; top: -12px; right: -8px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; border: 3px solid var(--ink); background: #ff4f7a; color: #fff;
  font: 400 15px/20px "Lilita One", sans-serif; text-align: center; animation: flStamp 1.2s ease-in-out infinite; }
.nt-chev { font-style: normal; font-weight: 900; transition: transform .25s; }
.news-tab[aria-expanded="true"] { background: linear-gradient(180deg, #fff1a8, #ffc93c); animation: flGlow 1.6s ease-in-out infinite; }
.news-tab[aria-expanded="true"] .nt-chev { transform: rotate(180deg); }
/* the panel slides open (grid rows 0fr → 1fr) */
.news-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.2,.9,.3,1), opacity .3s; opacity: 0; }
.news-panel.open { grid-template-rows: 1fr; opacity: 1; }
.news-pin { overflow: hidden; min-height: 0; }
.news-panel:not(.open) .news-row { visibility: hidden; }
@media (max-width: 560px) { .news-tabs { gap: 10px; } .news-tab { padding: 6px 12px 6px 8px; } .news-tab b { font-size: 17px; } .nt-peek { display: none; } }
@media (prefers-reduced-motion: reduce) { .news-tab, .nt-n { animation: none !important; } .news-panel { transition: none; } }
.news-row { display: flex; gap: 18px; overflow-x: auto; padding: 24px 10px 14px 22px; scroll-padding-left: 22px; scroll-snap-type: x mandatory; scrollbar-width: thin; }   /* (room for the NEW! stickers: a scroller clips what pokes out) */
@keyframes flFloat { 0%, 100% { transform: translateY(0) rotate(calc(var(--r) * 1deg)); } 50% { transform: translateY(-6px) rotate(calc(var(--r) * -1deg)); } }
.news-card { --r: 1; position: relative; flex: 0 0 210px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 12px 12px 12px; border: 4px solid var(--ink); border-radius: 20px; color: var(--ink); box-shadow: 0 6px 0 var(--ink);
  background: linear-gradient(160deg, #fff8ec 0%, #ffe9b8 100%); animation: flFloat 3s ease-in-out infinite; animation-delay: calc(var(--i) * -.6s); }
.news-card:nth-child(even) { --r: -1; background: linear-gradient(160deg, #fff8ec 0%, #ffd6e6 100%); }
.news-card:nth-child(3n) { background: linear-gradient(160deg, #fff8ec 0%, #d6f2ff 100%); }
.news-card img { width: 78px; height: 78px; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(0,0,0,.3)); }
.news-card img.wide { width: 120px; }
.news-emoji { font-size: 58px; line-height: 78px; }
.news-card b { font: 400 20px/1.1 "Lilita One", sans-serif; }
.news-card p { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.3; flex: 1; }
.news-go { margin-top: 6px; font: 400 17px "Lilita One", sans-serif; padding: 6px 14px; border: 3px solid var(--ink); border-radius: 999px; background: var(--red); color: #fff;
  box-shadow: 0 4px 0 var(--ink); -webkit-text-stroke: .5px var(--ink); cursor: pointer; }
.news-go:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
@keyframes flStamp { 0% { transform: rotate(-14deg) scale(1); } 50% { transform: rotate(-4deg) scale(1.15); } 100% { transform: rotate(-14deg) scale(1); } }
.news-new { position: absolute; top: -16px; left: -12px; z-index: 2; padding: 6px 9px; font: 400 15px "Lilita One", sans-serif; color: #fff; -webkit-text-stroke: .5px var(--ink);
  background: radial-gradient(circle, #ff4f7a 60%, #d83a34); border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 3px 0 var(--ink); animation: flStamp 1.2s ease-in-out infinite; }
@media (max-width: 560px) { .news-card { flex-basis: 180px; } .news-h { font-size: 22px; } }

@media (prefers-reduced-motion: reduce) {
  .track.on, .track.on::before, .racers.chips .racer.on, .speed.on, .ticket .tk-glow, .tk-go .go:not(.alt), .tk-go .go:not(.alt)::after,
  .news-card, .news-new, .news-star { animation: none !important; }
}

/* ✋ the must-acknowledge question (pause.js confirm): the race is frozen behind it */
.pzq { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(28,36,52,.45); }
.pzq-card { max-width: 360px; width: 100%; text-align: center; background: #fff8ec; color: var(--ink); border: 5px solid var(--ink); border-radius: 26px; padding: 18px 18px 16px;
  box-shadow: 0 8px 0 var(--ink), 0 0 40px rgba(255,201,60,.55); animation: pzqPop .35s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes pzqPop { from { opacity: 0; transform: scale(.7) rotate(-3deg); } to { opacity: 1; transform: none; } }
.pzq-e { display: block; font-size: 52px; line-height: 1; }
.pzq-t { display: block; margin: 6px 0 4px; font: 400 28px "Lilita One", sans-serif; color: var(--red); -webkit-text-stroke: 1px var(--ink); }
.pzq-p { margin: 0 0 14px; font-weight: 700; }
.pzq-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pzq-btns button { font: 400 19px "Lilita One", sans-serif; padding: 9px 16px; border: 4px solid var(--ink); border-radius: 999px; box-shadow: 0 5px 0 var(--ink); cursor: pointer; }
.pzq-yes { background: var(--gold); color: var(--ink); } .pzq-no { background: #fff; color: var(--ink); }
.pzq-btns button:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
@media (prefers-reduced-motion: reduce) { .pzq-card { animation: none; } }
/* 🙋 Rocko & Me card (ram.js): took the "coming soon" ribbon's place. Signed out = invite + the sign-in pill; signed in =
   your cartoons to pick (the pick also selects it as your driver) + the account pill. */
.ram-card { flex-wrap: wrap; row-gap: 6px; }
.ram-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; }
.ram-picks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ram-pick { display: flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; border: 2px solid rgba(255,255,255,.55); background: rgba(28,36,52,.35); color: #fff; font-weight: 900; font-size: 13px; }
.ram-pick img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--cream); }
.ram-pick.on { background: var(--ink); border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.ram-go { padding: 5px 12px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 900; font-size: 13px; text-decoration: none; box-shadow: 0 2px 0 var(--ink); }
.ram-go.ram-new { background: rgba(255,255,255,.18); color: #fff; box-shadow: none; }
/* the one Rocko account pill (rockosworld's master rocko-auth.js): top-right of the screen, left of 🔊 (the ⏸ button's
   spot, which only shows while racing, when the pill is hidden). Skin only, via --rw-*: labels / menu / shape are the master's. */
#rocko-account.rk-acct { position: fixed;   /* (id: beats the master's .rw-wrap { position: relative }) */
  z-index: 40; top: max(10px, env(safe-area-inset-top)); right: calc(max(10px, env(safe-area-inset-right)) + 54px);
  --rw-font: "Nunito", system-ui, sans-serif; --rw-size: 14px; --rw-coin: 28px; }
