/* =========================================================
   THE ODDITY PLAYBOX — shared styles
   Brand settings live in :root. Happy Oddity yellow = --yellow
   ========================================================= */
:root {
  --yellow: #ffcc33;
  --yellow-deep: #f2b705;
  --ink: #1d1a2b;
  --paper: #fff5e1;
  --paper-2: #ffe9bf;
  --white: #fffdf8;
  --pink: #ff6b9a;
  --teal: #2ec4b6;
  --purple: #7b5cff;
  --orange: #ff8a3d;
  --sky: #5bc0eb;
  --line: 3px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --r: 18px;
  --display: "Lilita One", "Fredoka", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(29,26,43,.13) 1.4px, transparent 1.6px);
  background-size: 22px 22px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1180px, 92%); margin: 0 auto; }
.ph { opacity: .62; font-style: italic; }          /* placeholder copy */
.display { font-family: var(--display); font-weight: 400; letter-spacing: .5px; line-height: 1.02; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-size: 1.05rem; letter-spacing: .5px;
  padding: 11px 22px; border: var(--line); border-radius: 999px;
  background: var(--white); box-shadow: var(--shadow-sm);
  transition: transform .12s, box-shadow .12s, background .15s;
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn-yellow { background: var(--yellow); }
.btn-pink { background: var(--pink); color: var(--white); }
.btn-ink { background: var(--ink); color: var(--yellow); }
.btn-big { font-size: 1.35rem; padding: 15px 30px; }
.btn-full { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: var(--shadow-sm); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--paper);
  border-bottom: var(--line);
}
.bar { display: flex; align-items: center; gap: 22px; height: 78px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-box {
  position: relative; width: 50px; height: 38px; margin-top: 10px;
  background: var(--yellow); border: var(--line); border-radius: 6px 6px 10px 10px;
}
.logo-box::before {           /* lid */
  content: ""; position: absolute; left: -6px; right: -6px; top: -11px; height: 10px;
  background: var(--yellow); border: var(--line); border-radius: 6px;
  transform: rotate(-8deg); transform-origin: left bottom;
  transition: transform .25s;
}
.logo:hover .logo-box::before { transform: rotate(-24deg); }
.logo-box .eyes { position: absolute; top: -2px; left: 50%; transform: translateX(-50%); display: flex; gap: 3px; }
.logo-text { font-family: var(--display); font-size: 1.4rem; line-height: .95; }
.logo-text small { display: block; font-family: var(--body); font-weight: 800; font-size: .66rem; letter-spacing: 2px; text-transform: uppercase; opacity: .65; margin-top: 3px; }

/* googly eyes (used everywhere) */
.eye {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--white); border: 2.5px solid var(--ink);
  position: relative; overflow: hidden; flex: none;
}
.eye i {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink); top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.eye.lg { width: 46px; height: 46px; border-width: 3px; }
.eye.lg i { width: 20px; height: 20px; }
.eye.md { width: 30px; height: 30px; }
.eye.md i { width: 13px; height: 13px; }

.nav { display: flex; gap: 6px; margin-left: 8px; }
.nav a {
  font-weight: 800; padding: 8px 14px; border-radius: 999px; border: 2px solid transparent;
  transition: background .15s, border-color .15s;
}
.nav a:hover { border-color: var(--ink); }
.nav a.active { background: var(--ink); color: var(--yellow); }
.actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.user-chip {
  display: none; align-items: center; gap: 8px;
  padding: 5px 14px 5px 5px; border: var(--line); border-radius: 999px;
  background: var(--white); color: var(--ink); font-weight: 800; box-shadow: var(--shadow-sm);
}
.user-chip .av {
  width: 32px; height: 32px; border-radius: 50%; border: 2.5px solid var(--ink);
  background: var(--teal); display: grid; place-items: center; font-family: var(--display);
}
body.logged-in .user-chip { display: inline-flex; }
body.logged-in [data-login-btn] { display: none; }
.menu-toggle { display: none; font-size: 1.7rem; line-height: 1; }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--yellow); border-bottom: var(--line);
  overflow: hidden; white-space: nowrap;
  font-family: var(--display); font-size: 1.15rem; letter-spacing: 1px;
}
.ticker-track { display: inline-flex; animation: tick 28s linear infinite; padding: 9px 0; }
.ticker span { padding: 0 22px; }
.ticker span::after { content: "✦"; margin-left: 44px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Home hero ---------- */
.hero { padding: 60px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.sticker {
  display: inline-block; font-family: var(--display); font-size: 1rem; letter-spacing: 1px;
  background: var(--pink); color: var(--white); border: var(--line); border-radius: 10px;
  padding: 5px 14px; transform: rotate(-3deg); box-shadow: var(--shadow-sm);
}
.hero h1 { font-size: clamp(3rem, 7vw, 5.6rem); margin: 18px 0 18px; }
.hero h1 .o { color: var(--yellow); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.hero .lead { font-size: 1.2rem; max-width: 500px; margin-bottom: 28px; font-weight: 600; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* the playbox itself */
.playbox-stage { position: relative; height: 430px; display: grid; place-items: end center; cursor: pointer; }
.bigbox {
  position: relative; width: 300px; height: 210px; margin-bottom: 30px;
  background: var(--yellow); border: 4px solid var(--ink); border-radius: 14px 14px 22px 22px;
  box-shadow: 8px 8px 0 var(--ink); z-index: 3;
}
.bigbox::after {         /* box front stripes */
  content: ""; position: absolute; inset: 22px 18px auto; height: 14px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 18px, transparent 18px 34px);
  border-radius: 8px; opacity: .9;
}
.bigbox .label {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%) rotate(-2deg);
  background: var(--white); border: var(--line); border-radius: 10px;
  padding: 6px 16px; font-family: var(--display); font-size: 1.25rem; white-space: nowrap;
}
.bigbox .eyes { position: absolute; top: 56px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.lid {
  position: absolute; left: -16px; right: -16px; top: -34px; height: 40px;
  background: var(--yellow); border: 4px solid var(--ink); border-radius: 12px;
  transform-origin: 8% 100%;
  transition: transform .55s cubic-bezier(.3,1.6,.5,1);
  z-index: 4;
}
.playbox-stage.open .lid { transform: rotate(-38deg) translate(-10px, -16px); }
.oddity {
  position: absolute; bottom: 120px; left: 50%; z-index: 2;
  opacity: 0; transform: translate(-50%, 40px) scale(.4);
  transition: transform .7s cubic-bezier(.25,1.5,.5,1), opacity .3s;
}
.playbox-stage.open .oddity { opacity: 1; }
.playbox-stage.open .o1 { transform: translate(-190%, -150px) rotate(-14deg); transition-delay: .15s; }
.playbox-stage.open .o2 { transform: translate(-60%, -230px) rotate(6deg);  transition-delay: .25s; }
.playbox-stage.open .o3 { transform: translate(80%, -170px) rotate(18deg);  transition-delay: .35s; }
.playbox-stage.open .o4 { transform: translate(-280%, -40px) rotate(-30deg); transition-delay: .45s; }
.playbox-stage.open .o5 { transform: translate(190%, -60px) rotate(24deg);  transition-delay: .55s; }
.oddity > * { animation: bob 3.2s ease-in-out infinite; }
.o2 > * { animation-delay: -.8s; } .o3 > * { animation-delay: -1.6s; } .o4 > * { animation-delay: -2.2s; } .o5 > * { animation-delay: -.4s; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(4deg); } }
.playbox-stage.shake .bigbox { animation: shake .45s; }
@keyframes shake { 20% { transform: rotate(-4deg); } 40% { transform: rotate(4deg); } 60% { transform: rotate(-3deg); } 80% { transform: rotate(2deg); } }

/* oddity shapes */
.shape-star { width: 74px; height: 74px; background: var(--pink); border: var(--line);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.shape-star-wrap { filter: drop-shadow(3px 3px 0 var(--ink)); }
.shape-blob { width: 92px; height: 78px; background: var(--teal); border: var(--line); box-shadow: var(--shadow-sm);
  border-radius: 58% 42% 50% 50% / 55% 60% 40% 45%; display: grid; place-items: center; }
.shape-card { width: 70px; height: 96px; background: var(--white); border: var(--line); border-radius: 10px; box-shadow: var(--shadow-sm);
  display: grid; place-items: center; font-family: var(--display); font-size: 2.2rem; color: var(--purple); }
.shape-die { width: 64px; height: 64px; background: var(--purple); border: var(--line); border-radius: 14px; box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: repeat(3, 1fr); padding: 9px; gap: 3px; }
.shape-die b { width: 9px; height: 9px; border-radius: 50%; background: var(--white); align-self: center; justify-self: center; }
.shape-pencil { width: 120px; height: 26px; background: var(--orange); border: var(--line); border-radius: 4px 14px 14px 4px; box-shadow: var(--shadow-sm); position: relative; }
.shape-pencil::before { content: ""; position: absolute; left: -22px; top: 2px; border-right: 20px solid var(--paper-2); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.box-hint { position: absolute; bottom: 0; font-weight: 800; font-size: .85rem; opacity: .55; }

/* ---------- Join panel (home) ---------- */
.join-panel {
  margin: 30px auto 70px; background: var(--ink); color: var(--white);
  border-radius: 28px; padding: 34px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
  box-shadow: 8px 8px 0 var(--yellow-deep); position: relative;
}
.join-panel h2 { font-size: 2.4rem; color: var(--yellow); }
.join-panel p { opacity: .8; font-weight: 600; }
.join-inline { display: flex; gap: 10px; flex-wrap: wrap; }
.code-input {
  width: 220px; text-align: center; text-transform: uppercase;
  font-family: var(--display); font-size: 2.3rem; letter-spacing: 12px;
  padding: 8px 0 8px 12px; border-radius: 16px; border: var(--line);
  background: var(--white); color: var(--ink); outline: none;
}
.code-input:focus { border-color: var(--yellow); box-shadow: 0 0 0 4px var(--yellow); }
.join-panel .peek { position: absolute; right: 26px; top: -12px; display: flex; gap: 6px; }

/* ---------- Section heads ---------- */
.section { padding: 30px 0 70px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(2.2rem, 4vw, 3rem); }
.squiggle { display: block; width: 140px; height: 14px; margin-top: 6px;
  background: radial-gradient(circle at 10px -4px, transparent 9px, var(--yellow-deep) 10px 13px, transparent 14px) 0 0 / 20px 14px repeat-x; }

/* ---------- Game boxes (cards) ---------- */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 34px 28px; }
.gbox { position: relative; display: flex; flex-direction: column; transition: transform .2s; }
.gbox:nth-child(odd) { transform: rotate(-1.2deg); }
.gbox:nth-child(even) { transform: rotate(1deg); }
.gbox:hover { transform: rotate(0) translateY(-6px); }
.gbox-art {
  position: relative; aspect-ratio: 1 / 1; border: var(--line); border-radius: var(--r) var(--r) 6px 6px;
  display: grid; place-items: center; overflow: hidden;
  box-shadow: 8px 8px 0 var(--ink);
}
.gbox-art .art-label { font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; font-size: .8rem; background: rgba(255,253,248,.85); border: 2px solid var(--ink); padding: 4px 10px; border-radius: 8px; }
.gbox-art .eyes { position: absolute; top: 18%; display: flex; gap: 8px; }
.tag-no {
  position: absolute; top: 12px; right: -8px; z-index: 2;
  background: var(--white); border: var(--line); border-radius: 6px;
  font-family: var(--display); font-size: .95rem; padding: 2px 10px; transform: rotate(6deg);
}
.tag-no::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; border: 2px solid var(--ink); margin-right: 6px; vertical-align: 1px; }
.tag-status {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--display); font-size: .9rem; letter-spacing: .5px;
  background: var(--yellow); border: var(--line); border-radius: 999px; padding: 3px 12px;
}
.tag-status.soon { background: var(--white); }
.gbox-body {
  background: var(--white); border: var(--line); border-top: none; border-radius: 0 0 var(--r) var(--r);
  padding: 16px 18px 18px; box-shadow: 8px 8px 0 var(--ink); margin-top: -3px; flex: 1;
  display: flex; flex-direction: column; gap: 6px;
}
.gbox h3 { font-family: var(--display); font-weight: 400; font-size: 1.35rem; line-height: 1.1; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { font-weight: 800; font-size: .78rem; border: 2px solid var(--ink); border-radius: 999px; padding: 2px 10px; background: var(--paper); }
.gbox-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.price { font-family: var(--display); font-size: 1.45rem; }
.owned-badge { font-family: var(--display); color: var(--teal); font-size: 1.05rem; -webkit-text-stroke: .5px var(--ink); }

.bg-pink { background: var(--pink); } .bg-teal { background: var(--teal); } .bg-purple { background: var(--purple); }
.bg-orange { background: var(--orange); } .bg-sky { background: var(--sky); } .bg-yellow { background: var(--yellow); }
.pattern { background-image: radial-gradient(rgba(255,255,255,.35) 2px, transparent 2.5px); background-size: 18px 18px; }

/* ---------- How it works ---------- */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.how-card {
  background: var(--white); border: var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 26px 22px; text-align: center; position: relative;
}
.how-card .num {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%) rotate(-6deg);
  width: 44px; height: 44px; border: var(--line); border-radius: 12px; background: var(--yellow);
  font-family: var(--display); font-size: 1.5rem; display: grid; place-items: center;
}
.how-card h3 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; margin: 12px 0 6px; }
.how-card p { font-weight: 600; opacity: .8; }
.device { height: 110px; display: grid; place-items: center; margin-top: 10px; }
.tv { width: 150px; height: 92px; background: var(--ink); border-radius: 12px; border: var(--line); position: relative; display: grid; place-items: center; }
.tv::after { content: ""; position: absolute; bottom: -14px; left: 50%; width: 50px; height: 10px; transform: translateX(-50%); background: var(--ink); border-radius: 0 0 8px 8px; }
.tv b { font-family: var(--display); font-weight: 400; color: var(--yellow); font-size: 1.6rem; letter-spacing: 4px; }
.phones { display: flex; gap: 10px; align-items: end; }
.phone { width: 44px; height: 80px; border: var(--line); border-radius: 10px; background: var(--white); position: relative; }
.phone::after { content: ""; position: absolute; inset: 8px 6px 14px; border-radius: 4px; }
.phone.p1::after { background: var(--pink); } .phone.p2::after { background: var(--teal); } .phone.p3::after { background: var(--purple); }
.phone.p2 { height: 90px; transform: rotate(-6deg); } .phone.p3 { transform: rotate(8deg); }
.typed { font-family: var(--display); font-size: 2.2rem; letter-spacing: 8px; background: var(--white); border: var(--line); border-radius: 12px; padding: 4px 6px 4px 14px; }
.typed::after { content: "|"; animation: blink 1s steps(1) infinite; color: var(--pink); }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Page header (shop, account) ---------- */
.page-head { padding: 50px 0 20px; }
.page-head h1 { font-size: clamp(2.8rem, 6vw, 4.4rem); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.chip { font-weight: 800; padding: 7px 16px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); }
.chip.active { background: var(--ink); color: var(--yellow); }

/* ---------- Product page ---------- */
.product { padding: 40px 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: start; }
.product .gbox-art { aspect-ratio: 1 / 1; border-radius: 26px; transform: rotate(-2deg); box-shadow: 12px 12px 0 var(--ink); }
.crumbs { font-weight: 800; font-size: .9rem; opacity: .65; margin-bottom: 12px; }
.crumbs a:hover { text-decoration: underline; }
.product h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 14px; }
.product .meta { margin-bottom: 18px; }
.product .meta .pill { font-size: .9rem; padding: 4px 14px; background: var(--white); }
.product .desc { font-size: 1.1rem; font-weight: 600; margin-bottom: 22px; }
.buy-box {
  background: var(--white); border: var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 22px; display: grid; gap: 14px;
}
.buy-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.buy-box .price { font-size: 2.4rem; }
.buy-note { font-weight: 700; font-size: .9rem; opacity: .7; }
.ticks { list-style: none; display: grid; gap: 6px; font-weight: 700; }
.ticks li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border: 2px solid var(--ink); border-radius: 6px; background: var(--yellow); font-size: .8rem; }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; }
.panel { background: var(--white); border: var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 26px; }
.panel h2 { font-size: 2rem; margin-bottom: 14px; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: start; font-weight: 600; }
.steps li::before { content: counter(s); flex: none; width: 36px; height: 36px; border: var(--line); border-radius: 10px; background: var(--paper-2); font-family: var(--display); display: grid; place-items: center; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.shot { aspect-ratio: 16 / 10; border: var(--line); border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; }
.designer { display: flex; gap: 16px; align-items: center; }
.designer .face { width: 72px; height: 72px; border: var(--line); border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; flex: none; font-weight: 800; font-size: .7rem; text-transform: uppercase; }

/* ---------- TV page ---------- */
body.tv-mode { background-color: var(--ink); background-image: radial-gradient(rgba(255,204,51,.12) 1.4px, transparent 1.6px); color: var(--white); }
body.tv-mode .site-header { background: var(--ink); border-color: var(--yellow); }
body.tv-mode .nav a:hover { border-color: var(--yellow); }
body.tv-mode .nav a.active { background: var(--yellow); color: var(--ink); }
body.tv-mode .site-footer { border-color: rgba(255,204,51,.4); }
.stage { min-height: calc(100vh - 160px); display: grid; place-items: center; padding: 40px 0 60px; text-align: center; position: relative; }
.stage h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); color: var(--yellow); margin-bottom: 10px; }
.stage .sub { font-size: 1.25rem; font-weight: 700; opacity: .85; margin-bottom: 28px; }
.spot { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 50% 60% at 50% 30%, rgba(255,204,51,.14), transparent 70%); }
.tv-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; width: min(900px, 92vw); margin: 0 auto; text-align: left; color: var(--ink); }
.tv-pick .gbox { cursor: pointer; }
.room-code {
  display: inline-flex; gap: 14px; margin: 10px 0 18px;
}
.room-code span {
  width: clamp(70px, 10vw, 120px); height: clamp(90px, 13vw, 150px);
  background: var(--yellow); color: var(--ink); border: 4px solid var(--white); border-radius: 18px;
  font-family: var(--display); font-size: clamp(3.5rem, 8vw, 6.4rem); display: grid; place-items: center;
  box-shadow: 6px 6px 0 rgba(255,255,255,.25);
  animation: flipIn .5s cubic-bezier(.3,1.5,.5,1) backwards;
}
.room-code span:nth-child(2) { animation-delay: .08s; transform: rotate(3deg); }
.room-code span:nth-child(3) { animation-delay: .16s; transform: rotate(-2deg); }
.room-code span:nth-child(4) { animation-delay: .24s; }
.room-code span:nth-child(1) { transform: rotate(-3deg); }
@keyframes flipIn { from { transform: rotateX(90deg); opacity: 0; } }
.join-url { font-size: 1.4rem; font-weight: 800; }
.join-url b { color: var(--yellow); }
.lobby { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 34px auto 30px; max-width: 1040px; }
.seat {
  width: 110px; height: 130px; border: 3px dashed rgba(255,255,255,.3); border-radius: 18px;
  display: grid; place-items: center; align-content: center; gap: 8px; font-weight: 800; font-size: .9rem;
}
.seat.filled { border: 3px solid var(--white); background: rgba(255,255,255,.06); animation: popIn .4s cubic-bezier(.3,1.6,.5,1); }
@keyframes popIn { from { transform: scale(.3); } }
.critter { width: 60px; height: 54px; border: 3px solid var(--white); border-radius: 50% 50% 44% 44%; display: flex; justify-content: center; align-items: center; gap: 4px; }
.critter .eye { width: 16px; height: 16px; border-color: var(--ink); }
.critter .eye i { width: 7px; height: 7px; }
.tv-note { font-weight: 700; opacity: .65; font-size: .95rem; margin-top: 18px; }

/* ---------- Account ---------- */
.acct-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; align-items: start; }
.empty { text-align: center; padding: 40px 20px; }
.empty .eyes { display: flex; gap: 10px; justify-content: center; margin-bottom: 14px; }
.field { margin-bottom: 14px; text-align: left; }
.field label { display: block; font-weight: 800; font-size: .88rem; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: var(--line);
  background: var(--white); color: var(--ink); font: inherit; font-weight: 600; outline: none;
}
.field input:focus { box-shadow: 0 0 0 4px var(--yellow); }
.check { display: flex; gap: 10px; align-items: center; font-weight: 700; margin: 4px 0 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { border-top: var(--line); padding: 28px 0 36px; font-weight: 700; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Modals ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 60; padding: 20px;
  background: rgba(29,26,43,.6); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; overflow-y: auto;
}
.overlay.open { display: flex; }
.modal {
  width: min(440px, 100%); margin: auto;
  background: var(--paper); color: var(--ink); border: 4px solid var(--ink); border-radius: 26px;
  box-shadow: 10px 10px 0 var(--ink); padding: 30px 28px 26px; position: relative;
  animation: modalIn .3s cubic-bezier(.3,1.5,.5,1);
}
@keyframes modalIn { from { transform: translateY(30px) rotate(-3deg) scale(.9); opacity: 0; } }
.modal h2 { font-size: 2rem; margin-bottom: 4px; }
.modal .sub { font-weight: 600; opacity: .75; margin-bottom: 20px; }
.modal .peek { position: absolute; top: -24px; left: 30px; display: flex; gap: 4px; }
.close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px;
  border: var(--line); border-radius: 50%; background: var(--white); font-size: 1.2rem; font-weight: 800; line-height: 1;
}
.close:hover { background: var(--yellow); }
.modal .code-input { width: 100%; margin-bottom: 14px; }
.tabs { display: flex; border: var(--line); border-radius: 999px; padding: 4px; margin-bottom: 18px; background: var(--white); }
.tabs button { flex: 1; padding: 8px; border-radius: 999px; font-weight: 800; }
.tabs button.active { background: var(--ink); color: var(--yellow); }
.divider { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: .85rem; opacity: .7; margin: 14px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 2px; background: var(--ink); opacity: .25; }
.note { margin-top: 12px; font-weight: 700; font-size: .9rem; text-align: center; min-height: 1.3em; }
.note.err { color: #d6336c; } .note.ok { color: #138a7e; }

/* checkout */
.progress { display: flex; gap: 8px; margin-bottom: 18px; }
.progress span { flex: 1; height: 8px; border-radius: 99px; border: 2px solid var(--ink); background: var(--white); }
.progress span.on { background: var(--yellow); }
.order { display: flex; gap: 14px; align-items: center; background: var(--white); border: var(--line); border-radius: 14px; padding: 12px; margin-bottom: 16px; }
.order .thumb { width: 56px; height: 56px; border: var(--line); border-radius: 10px; flex: none; }
.order strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.15rem; line-height: 1.1; }
.order .price { margin-left: auto; font-size: 1.3rem; white-space: nowrap; }
.stripe-ph {
  border: 3px dashed var(--ink); border-radius: 14px; padding: 18px; text-align: center;
  font-weight: 700; opacity: .7; margin-bottom: 14px; background: var(--white);
}
.success { text-align: center; }
.success .big-tick {
  width: 90px; height: 90px; margin: 0 auto 14px; border: 4px solid var(--ink); border-radius: 24px;
  background: var(--yellow); display: grid; place-items: center; font-size: 3rem; transform: rotate(-6deg);
  box-shadow: var(--shadow); animation: popIn .5s cubic-bezier(.3,1.6,.5,1);
}
.success .row { display: grid; gap: 10px; margin-top: 18px; }

/* ---------- Toast & confetti ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 140px); z-index: 80;
  background: var(--ink); color: var(--yellow); font-family: var(--display); letter-spacing: .5px;
  padding: 12px 24px; border-radius: 999px; border: 3px solid var(--yellow);
  transition: transform .3s cubic-bezier(.3,1.4,.5,1);
}
.toast { visibility: hidden; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.confetti { position: fixed; top: -20px; z-index: 90; width: 12px; height: 16px; border: 2px solid var(--ink); pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 78px; left: 0; right: 0;
    background: var(--paper); border-bottom: var(--line); padding: 12px 4%;
  }
  body.tv-mode .nav.open { background: var(--ink); }
  .menu-toggle { display: block; }
  .hero-grid, .product, .split, .acct-grid { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr; gap: 36px; }
  .join-panel { grid-template-columns: 1fr; }
  .playbox-stage { height: 380px; transform: scale(.9); }
}
@media (max-width: 560px) {
  .bar { gap: 10px; }
  .logo-text { display: none; }
  .btn { padding: 9px 15px; font-size: .95rem; }
  .user-chip .uname { display: none; }
  .playbox-stage { transform: scale(.78); height: 340px; margin: -20px 0; }
  .code-input { width: 100%; }
  .shots { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   Added for the live site: images, editor, phone controller
   ========================================================= */
.art-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.multi, .prose p { white-space: pre-line; }
.prose { font-size: 1.05rem; font-weight: 600; line-height: 1.7; }

/* spotlight section with an editable picture */
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.img-slot {
  position: relative; aspect-ratio: 4 / 3; border: var(--line); border-radius: 24px; box-shadow: 10px 10px 0 var(--ink);
  display: grid; place-items: center; overflow: hidden; transform: rotate(-1.5deg);
}
.img-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.img-slot.has-img .art-label { display: none; }
@media (max-width: 960px) { .spotlight { grid-template-columns: 1fr; } }

/* page editor (admins only) */
.edit-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 70;
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center;
  background: var(--ink); padding: 10px 12px; border-radius: 999px; border: 3px solid var(--yellow);
  max-width: calc(100vw - 24px);
}
.edit-hint { color: var(--yellow); font-weight: 800; font-size: .85rem; padding: 0 8px; max-width: 280px; line-height: 1.25; }
body.editing [data-edit] { outline: 2px dashed var(--pink); outline-offset: 4px; border-radius: 4px; cursor: text; min-width: 2ch; }
body.editing [data-edit]:focus { outline: 3px solid var(--pink); background: rgba(255,107,154,.08); }
body.editing [data-edit].ph { opacity: 1; }
body.editing [data-edit-img] { outline: 3px dashed var(--pink); outline-offset: 6px; cursor: pointer; }
body.editing [data-edit-img]::after {
  content: "📷 Click to change"; position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--yellow); font-weight: 800; padding: 6px 14px; border-radius: 999px; font-size: .9rem; white-space: nowrap;
}
body.editing .ticker-track { animation-play-state: paused; }
body.editing .toast { bottom: 120px; }

/* TV lobby extras */
.seat.away { opacity: .55; }
.seat small { font-size: .72rem; opacity: .8; }

/* phone controller */
body.play-mode .ticker { display: none; }
.controller { min-height: calc(100vh - 170px); display: grid; place-items: center; padding: 30px 0; }
.ctl-card { width: min(420px, 100%); text-align: center; }
.ctl-card h1 { font-size: 2.2rem; margin: 10px 0 8px; }
.ctl-card .code-input { width: 100%; margin: 12px 0 14px; }
.ctl-eyes { display: flex; gap: 10px; justify-content: center; }
.ctl-sub { font-weight: 700; opacity: .75; margin-bottom: 14px; }
.ctl-wait { font-weight: 800; background: var(--paper-2); border: var(--line); border-radius: 14px; padding: 14px; margin: 16px 0; }
.critter.big { width: 120px; height: 104px; margin: 0 auto; border: 4px solid var(--ink); gap: 8px; box-shadow: var(--shadow); animation: bob 3s ease-in-out infinite; }
