/* Turkey Tracks look: a warm autumn farm at golden hour (on top of the Cell Breakout layout) */
:root {
  --ink: #2a1408; --deep: #1c0d05; --panel: #4a2610; --panel2: #5e3216; --line: rgba(255, 220, 170, .24);
  --text: #fff8ee; --muted: #f0d2a8; --pumpkin: #ff8a1f; --pumpkinD: #b85500; --slime: #9be15d; --slimeD: #4f8a2b;
  --pink: #e0324b; --pinkD: #9c1d30; --sky: #7ec8ff; --skyD: #2b85b8; --gold: #ffd23f; --bad: #ff6a5c;
}
html, body { background: var(--ink); }
body { background:
  radial-gradient(circle at 8% 10%, rgba(255, 210, 63, .14) 0 90px, transparent 280px),
  radial-gradient(circle at 92% 18%, rgba(255, 138, 31, .16) 0 120px, transparent 340px),
  radial-gradient(circle at 70% 95%, rgba(224, 50, 75, .12) 0 140px, transparent 380px), var(--ink); }
.hud { background: rgba(28, 13, 5, .94); }
.logo { letter-spacing: .02em; }
.logo b { color: var(--gold); margin-left: .25em; }
.stages:empty { display: none; }
.stat.lives { gap: 2px; }
.stat .hrt svg { width: 24px; height: 24px; color: var(--pink); }
.stat .hrt.gone svg { color: rgba(255, 255, 255, .2); }
.stat svg { width: 22px; height: 22px; }
.bump-bad { animation: shakex .45s; }
.center { text-align: center; justify-content: center; }
.stand { image-rendering: auto; }

/* home */
.title.logo { line-height: 1; display: grid; }
.title.logo .logoimg { width: min(100%, 560px); height: auto; }
.title.logo .logoimg.stand { display: none; }
.logotxt { display: none; font-family: var(--f-spook); font-size: clamp(46px, 7vw, 96px); color: var(--pumpkin); text-shadow: 0 6px 0 #3a1d0b, 0 12px 26px rgba(0, 0, 0, .5); }
.logotxt b { color: var(--gold); font-weight: 400; }
.title.logo .logoimg.stand + .logotxt { display: block; }
.hero-art { position: relative; min-height: 280px; display: grid; place-items: center; }
.hchar { display: block; height: auto; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .45)); }
.hchar.tracks { width: min(80%, 420px); animation: bob 5s ease-in-out infinite; }
.hchar.mash, .hchar.cran { position: absolute; width: 30%; }
.hchar.mash { left: -2%; bottom: 0; animation: bob 4.4s ease-in-out .6s infinite; }
.hchar.cran { right: -2%; top: 2%; animation: bob 4.8s ease-in-out 1.2s infinite; }
.hchar.stand { width: 46%; }
.hchar.mash.stand, .hchar.cran.stand { width: 22%; }
.sc { position: relative; }
.scthumb { width: 100%; max-height: 150px; object-fit: contain; border-radius: 14px; }
.scthumb.stand { max-height: 90px; }

/* intro video (kid-safe) */
.vidpanel { display: grid; gap: 14px; }
.vbox { position: relative; width: 100%; max-width: min(1100px, calc((100vh - 300px) * 16 / 9)); margin-inline: auto; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; border: 3px solid var(--line); background: #000; }
.vbox iframe, #vplayer { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vshield { position: absolute; inset: 0; z-index: 3; background: transparent; }
.vcover { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; align-content: center; gap: 12px; text-align: center; padding: 16px; background: radial-gradient(circle at 50% 40%, #6b3a17, #2a1408); }
.vcover[hidden] { display: none !important; }
.vcover b { font-family: var(--f-display); font-size: clamp(18px, 2vw, 30px); }
.vcart { width: clamp(90px, 16vw, 200px); height: auto; }
.vtap { position: absolute; z-index: 5; left: 50%; top: 50%; transform: translate(-50%, -50%); min-height: 64px; padding: 10px 26px; border-radius: 999px; border: 4px solid #fff; background: var(--pumpkin); color: var(--deep); font: 700 clamp(18px, 2vw, 28px) var(--f-display); cursor: pointer; }
.vbox.tapmode .vshield { pointer-events: none; }
.vctl .fb { margin: 0; }

/* solo wheel */
.wheelpanel { display: grid; gap: 14px; justify-items: center; text-align: center; }
.wheelwrap { position: relative; width: min(82vw, 420px, calc(100vh - 380px)); min-width: 220px; aspect-ratio: 1; }
.wheel { width: 100%; height: 100%; display: block; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .45)); }
.wtxt { fill: #3a1d0b; font: 700 22px var(--f-display); }
.wpointer { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); width: 0; height: 0; border-left: 18px solid transparent; border-right: 18px solid transparent; border-top: 34px solid #fff; z-index: 2; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .5)); }
.wkey { max-width: 640px; text-align: left; }
.wkey p { margin: 6px 0; }
.kl { color: #ff8b98; } .kt { color: var(--gold); }

/* solo menu */
.menuhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 14px; }
.menuhead h2 { margin: 0; }
.acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.actcard { position: relative; display: grid; gap: 6px; align-content: start; text-align: left; padding: 16px; min-height: 220px; border-radius: 22px; border: 3px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; font: inherit; }
.actcard:hover { border-color: var(--pumpkin); transform: translateY(-3px); }
.actcard b { font-family: var(--f-display); font-size: clamp(20px, 1.6vw, 28px); }
.actcard small { color: var(--muted); }
.actcard .scn { font-size: 32px; }
.actthumb { width: 100%; max-height: 160px; object-fit: contain; border-radius: 14px; }
.actthumb.stand { max-height: 96px; }
.actcard.done { border-color: var(--slime); }
.actdone { display: inline-flex; align-items: center; gap: 6px; color: var(--slime); font-weight: 700; }
.actdone svg { width: 20px; height: 20px; }

/* shared question card */
.quizov { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(20, 8, 2, .72); overflow-y: auto; }
.quizov[hidden] { display: none !important; }
.quizbox { width: min(980px, 96vw); background: var(--panel); border: 3px solid var(--gold); border-radius: 24px; padding: clamp(14px, 2vw, 26px); display: grid; gap: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.qzhead { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.qzhead > div { flex: 1 1 260px; }
.qzhead h3 { margin: 0; font-size: clamp(19px, 1.6vw, 30px); line-height: 1.35; }
.qzart { width: clamp(56px, 6vw, 90px); height: auto; }
.qzgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 600px) { .qzgrid { grid-template-columns: 1fr; } }
.qzgrid .choice { overflow-wrap: anywhere; }

/* Fruit Slice */
.sfield { position: relative; width: 100%; max-width: calc((100vh - 290px) * 1.6); margin-inline: auto; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; border: 3px solid var(--line);
  background: linear-gradient(#8fd0ff, #ffe1a6 55%, #c98a3e 56%, #a96a2b); touch-action: none; user-select: none; -webkit-user-select: none; container-type: inline-size; cursor: crosshair; }
@media (max-width: 600px) { .sfield { aspect-ratio: 4 / 5; max-width: none; } }
.sbg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.sbg.stand { display: none; }
.slayer, .strail { position: absolute; inset: 0; width: 100%; height: 100%; }
.strail { pointer-events: none; z-index: 3; }
.fruit { position: absolute; left: 0; top: 0; display: grid; justify-items: center; will-change: transform; pointer-events: none; }
.fimg { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); }
.fruit.cut .fimg { transform: scale(1.1) !important; transition: transform .3s; }
.fruit.cut, .fruit.poof, .fruit.nope, .fruit.oops { transition: opacity .6s; opacity: 0; }
.fruit.nope .fimg { filter: grayscale(1) brightness(.6); }
.flabel { margin-top: 2px; max-width: 230%; width: max-content; padding: 4px 10px; border-radius: 12px; background: rgba(255, 250, 238, .96); color: #2a1408; border: 2px solid #3a1d0b; text-align: center;
  font: 700 clamp(13px, 1.9cqw, 24px)/1.25 var(--f-display); letter-spacing: -.02em; overflow-wrap: anywhere; box-shadow: 0 4px 10px rgba(0, 0, 0, .3); }
.flabel i { font-style: normal; display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; margin-right: 6px; border-radius: 6px; background: var(--pumpkin); color: #fff; }
.flabel.trickl { background: #ffe0e6; color: var(--pinkD); }
.ssplash { position: absolute; width: 18%; transform: translate(-50%, -50%); pointer-events: none; animation: splashout .9s ease-out forwards; }
@keyframes splashout { from { opacity: 1; transform: translate(-50%, -50%) scale(.6); } to { opacity: 0; transform: translate(-50%, -50%) scale(1.3); } }
.hfx { position: absolute; inset: 0; pointer-events: none; z-index: 5; container-type: inline-size; }
.hban.bad { border-color: var(--bad); color: #ffd0cc; }
.hban.wide { max-width: 92%; white-space: normal; text-align: center; }

/* Corn Maze Chase */
.mzsplit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.mzbox { position: relative; display: grid; place-items: center; min-width: 0; container-type: inline-size; }
.mzbox canvas { display: block; border-radius: 14px; border: 3px solid var(--line); touch-action: none; max-width: 100%; }
.dpad { display: grid; grid-template-columns: repeat(3, 64px); grid-template-rows: repeat(3, 64px); gap: 6px; }
.dp { border-radius: 16px; border: 3px solid var(--line); background: var(--panel2); color: var(--text); font-size: 26px; cursor: pointer; touch-action: none; }
.dp:active { background: var(--pumpkin); color: var(--deep); }
.dp.up { grid-column: 2; grid-row: 1; } .dp.left { grid-column: 1; grid-row: 2; } .dp.right { grid-column: 3; grid-row: 2; } .dp.down { grid-column: 2; grid-row: 3; }
@media (max-width: 760px) { .mzsplit { grid-template-columns: 1fr; } .dpad { margin-inline: auto; grid-template-columns: repeat(3, 58px); grid-template-rows: repeat(3, 58px); } }

/* Turkey Trot */
.trbox { position: relative; width: 100%; container-type: inline-size; }
.trbox canvas { display: block; width: 100%; border-radius: 18px; border: 3px solid var(--line); }
.lanebtns { display: grid; gap: 10px; margin-top: 12px; }
.lanebtn { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 16px; border-radius: 16px; border: 3px solid var(--line); background: var(--deep); color: var(--text); text-align: left; cursor: pointer; font: 700 clamp(16px, 1.3vw, 24px) var(--f-display); overflow-wrap: anywhere; }
.lanebtn .ln { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--panel2); }
.lanebtn.ask { border-color: var(--gold); }
.lanebtn.on { background: var(--pumpkin); color: var(--deep); border-color: #fff; }
.lanebtn.on .ln { background: #fff; }
.podium { display: grid; justify-items: center; gap: 6px; }
.podimg { width: min(260px, 60%); height: auto; }
.podimg.stand { width: 80px; }
.podium ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.podium li { padding: 6px 14px; border-radius: 999px; background: var(--deep); border: 2px solid var(--line); }
.podium li.me { border-color: var(--gold); color: var(--gold); }

/* Missing Item Hunts (scene stand-in until the picture is uploaded) */
.hscene { background: linear-gradient(var(--sky1, #9bd3ff), var(--sky2, #ffd9a0)); }
.hbgemo { position: absolute; right: 3%; bottom: 3%; font-size: clamp(60px, 14cqw, 200px); opacity: .25; pointer-events: none; }
.hbg + .hbgemo { display: none; }
.hslime.gravy i { background: radial-gradient(circle at 40% 35%, #b07436, #6b3a17 70%); }
.mchar { width: clamp(80px, 12vw, 140px); height: auto; display: block; margin: 0 auto 6px; }

/* Practice Map */
.mappanel { position: relative; overflow: hidden; display: grid; gap: 12px; }
.mapbg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .18; pointer-events: none; z-index: 0; }
.mapbg.stand { display: none; }
.mappanel > *:not(.mapbg) { position: relative; z-index: 1; }
.mlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px; align-items: center; padding: 10px 14px; border-radius: 16px; background: var(--deep); border: 2px solid var(--line); }
@media (max-width: 600px) { .mrow { grid-template-columns: 1fr; } }
.mname { display: grid; } .mname span { color: var(--muted); }
.mbar { position: relative; height: 26px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.mbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.mbar .mf { background: rgba(255, 210, 63, .45); } .mbar .mm { background: var(--slime); }
.mkey { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .mkey span { width: 22px; height: 14px; border-radius: 6px; display: inline-block; }
.mkey .kf { background: rgba(255, 210, 63, .45); } .mkey .km { background: var(--slime); }
.mbadges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.mbadge { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 12px; border-radius: 16px; background: var(--deep); border: 2px solid var(--line); opacity: .5; filter: grayscale(.9); }
.mbadge.got { opacity: 1; filter: none; border-color: var(--gold); }
.mbimg { width: 84px; height: 84px; object-fit: contain; }
.mbadge small { color: var(--muted); }

/* score card */
.vicpanel { display: grid; gap: 14px; }
.vichead { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; text-align: center; }
.vicchar { width: clamp(90px, 12vw, 170px); height: auto; } .vicchar.sm { width: clamp(70px, 8vw, 120px); }
.vichead h2 { margin: 0; overflow-wrap: anywhere; } .rank { margin: 0; color: var(--gold); font-family: var(--f-display); font-size: clamp(18px, 1.6vw, 28px); }
.vstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.vstats div { display: grid; justify-items: center; padding: 12px; border-radius: 16px; background: var(--deep); border: 2px solid var(--line); }
.vstats b { font-family: var(--f-display); font-size: clamp(26px, 2.4vw, 44px); color: var(--gold); }
.vtable { width: 100%; border-collapse: collapse; table-layout: fixed; }
.vtable th, .vtable td { border: 2px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; overflow-wrap: anywhere; white-space: normal; }
.vtable th { background: var(--panel2); }

/* projector and big screens */
@media (min-width: 1600px) and (min-height: 900px) {
  .wrap { max-width: min(1560px, 94vw); }
  .lanebtn { min-height: 70px; }
  .dpad { grid-template-columns: repeat(3, 76px); grid-template-rows: repeat(3, 76px); }
}
@media (prefers-reduced-motion: reduce) { .hchar, .wheel { animation: none !important; transition: none !important; } }
@media print { .quizov, .side-tab, .hud { display: none !important; } }

/* ---------- Harvest Song button (Spider Hunter model) ---------- */
.home .hero { position: relative; }
.songRow { position: absolute; top: clamp(4px, 1vw, 14px); right: clamp(4px, 1vw, 14px); z-index: 4; display: flex; }
.songBtn { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px 6px; min-width: 88px; min-height: 44px; border-radius: 18px; cursor: pointer;
  background: rgba(58, 29, 11, .78); border: 3px solid #a0612b; color: #f6e3c4; font-family: var(--f-display); transition: transform .12s, border-color .2s, box-shadow .2s; }
.songBtn .songimg { width: auto; height: clamp(54px, min(7vw, 9vh), 96px); display: block; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); transition: opacity .2s, filter .2s; }
.songBtn .songimg.emo, .songBtn span.emo { font-size: clamp(38px, 5vw, 60px); line-height: 1; }
.songBtn span { font-size: clamp(13px, 1.3vw, 17px); letter-spacing: .03em; white-space: nowrap; }
.songBtn b { font-size: clamp(14px, 1.4vw, 18px); letter-spacing: .06em; line-height: 1; font-weight: 400; }
.songBtn[aria-pressed="true"] { border-color: #ffd23f; background: rgba(255, 176, 0, .22); box-shadow: 0 0 0 3px rgba(255, 210, 63, .3), 0 0 22px rgba(255, 176, 0, .6); color: #ffe7a3; }
.songBtn[aria-pressed="false"] .songimg { opacity: .7; filter: grayscale(.5); }
.songBtn:hover { transform: scale(1.05); } .songBtn:active { transform: scale(.95); }
.songBtn:focus-visible, .songhud:focus-visible { outline: 3px solid #ffd23f; outline-offset: 3px; }
.songBtn.flash, .songhud.flash { animation: ttSongFlash .55s ease-out; }
@keyframes ttSongFlash { 0% { transform: scale(.9); box-shadow: 0 0 0 0 rgba(255,210,63,.95); } 60% { transform: scale(1.1); box-shadow: 0 0 0 16px rgba(255,210,63,0); } 100% { transform: scale(1); } }
.songhud { display: inline-flex; gap: 5px; align-items: center; }
.songhud[hidden] { display: none; }
.songhud.off { opacity: .65; }
.songhud svg { width: 20px; height: 20px; }
@media (max-width: 600px) { .songhud .songlbl { display: none; } .home .hero { padding-top: 112px; } .songBtn { min-width: 76px; } .songBtn .songimg { height: 46px; } }
@media (max-height: 500px) and (orientation: landscape) { .songBtn .songimg { height: 40px; } }
@media (prefers-reduced-motion: reduce) { .songBtn, .songhud { transition: none; } .songBtn.flash, .songhud.flash { animation: none; } }

/* ---------- uploaded home background (bg-home), soft dark wash so words stay easy to read ---------- */
body.on-home { background: linear-gradient(rgba(28, 13, 5, .55), rgba(28, 13, 5, .72)), url("art/bg-home.webp") center / cover no-repeat fixed, var(--ink); }
