/* ==========================================================================
   תיק 006 — v2: loud, raw, sticker-bomb. Thick outlines, hard shadows, bounce.
   ========================================================================== */
:root {
  --ink: #14101f;
  --violet: #7b2fff;
  --yellow: #ffe234;
  --pink: #ff4fb1;
  --cyan: #22e3ff;
  --orange: #ff8a1f;
  --green: #3df26b;
  --lilac: #c9a8ff;
  --sky: #7cc8ff;
  --coral: #ff6b6b;
  --red: #ff3b3b;
  --cream: #fff8ec;
  --lime: #c4ff3a;
  --mint: #5ff5c8;
  --white: #fff;
  --line: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-s: 4px 4px 0 var(--ink);
  --font: 'Rubik', 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1180px;
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
html:has(dialog[open]), html.present-on, html.booting { overflow: hidden; }
body {
  margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.5; font-weight: 500;
  color: var(--ink); background: var(--cream); overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p { margin: 0; }
main { overflow-x: clip; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 4px solid var(--ink); outline-offset: 4px; border-radius: 10px; box-shadow: 0 0 0 4px var(--white); }
.hero :focus-visible, .sec-black :focus-visible, .sec-ink :focus-visible, .sec-violet :focus-visible, .footer :focus-visible, .game :focus-visible, .present :focus-visible, .lock-chip:focus-visible, .aura:focus-visible { outline-color: var(--yellow); box-shadow: 0 0 0 4px var(--ink); }
.skip-link { position: fixed; top: 8px; right: 8px; z-index: 900; background: var(--yellow); border: var(--line); padding: 10px 16px; border-radius: 12px; font-weight: 800; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.mono-label { font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- buttons: chunky, squishy ---------- */
.btn {
  --bg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 58px; padding: 12px 26px;
  background: var(--bg); color: var(--ink);
  border: var(--line); border-radius: 18px; box-shadow: var(--shadow-s);
  font-weight: 900; font-size: 20px; line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: transform .18s var(--bounce), box-shadow .18s var(--bounce);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:hover { transform: translate(-2px, -3px) rotate(-1deg); box-shadow: 7px 8px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px) scale(.97); box-shadow: 0 0 0 var(--ink); }
.btn-yellow { --bg: var(--yellow); }
.btn-pink { --bg: var(--pink); }
.btn-cyan { --bg: var(--cyan); }
.btn-white { --bg: var(--white); }
.btn-lime { --bg: var(--lime); }
.btn-xl { min-height: 68px; font-size: 24px; padding: 14px 32px; border-radius: 22px; }
.link-btn { background: none; border: 0; padding: 4px 0; font-weight: 800; text-decoration: underline; cursor: pointer; }

/* ---------- stamps ---------- */
.stamp {
  display: inline-block; font-weight: 900; letter-spacing: .08em; padding: .3em .65em;
  border: 4px solid currentColor; border-radius: 10px; transform: rotate(-8deg); line-height: 1; white-space: nowrap; text-transform: uppercase;
}
.stamp-red { color: var(--red); }
.stamp-yellow { color: var(--yellow); }
.stamp-lime { color: var(--green); }
.stamp.slam { animation: slam .55s var(--bounce) both; }
@keyframes slam { 0% { transform: rotate(-8deg) scale(3); opacity: 0; } 60% { transform: rotate(-8deg) scale(.9); opacity: 1; } 100% { transform: rotate(-8deg) scale(1); opacity: 1; } }

/* ==========================================================================
   LOADING SCREEN — "לא יוצאים פראיירים / עונה אחרונה"
   ========================================================================== */
#boot { display: none; }
.booting #boot {
  display: grid; place-items: center; text-align: center;
  position: fixed; inset: 0; z-index: 800; padding: 24px;
  background: var(--violet); color: var(--white);
  background-image: radial-gradient(rgba(255, 255, 255, .14) 2px, transparent 2.5px); background-size: 28px 28px;
  clip-path: circle(150% at 50% 50%);
}
.boot-stack { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.boot-big {
  font-weight: 900; font-size: clamp(54px, 13vw, 150px); line-height: .9; letter-spacing: -.02em;
  color: var(--yellow); -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; text-shadow: 7px 7px 0 var(--ink);
  animation: bootSlam .7s var(--bounce) both;
}
.boot-sub {
  font-weight: 900; font-size: clamp(30px, 6vw, 64px); line-height: 1;
  background: var(--white); color: var(--ink); border: 4px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow); padding: 8px 22px; rotate: -3deg;
  animation: bootSlam .7s var(--bounce) .25s both;
}
@keyframes bootSlam { from { opacity: 0; transform: scale(2.2) rotate(6deg); } to { opacity: 1; transform: none; } }
.boot-bar { width: min(340px, 70vw); height: 18px; border: 3px solid var(--ink); border-radius: 999px; background: var(--white); overflow: hidden; margin-top: 8px; }
.boot-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--yellow), var(--green)); transition: width 1.05s cubic-bezier(.6, 0, .3, 1); }
.boot-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; animation: popIn .45s var(--bounce) both; }
.boot-actions[hidden] { display: none !important; }
.boot-quiet { background: none; border: 0; color: var(--white); text-decoration: underline; font-weight: 800; font-size: 16px; cursor: pointer; padding: 10px; min-height: 44px; }
#boot.out { animation: bootOut .45s cubic-bezier(.7, 0, .2, 1) forwards; }
@keyframes bootOut { to { clip-path: circle(0% at 50% 50%); } }
.reduce .boot-big, .reduce .boot-sub { animation: none; }

/* ==========================================================================
   TOP BAR + TAB BAR
   ========================================================================== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 14px;
  padding: 10px var(--gutter); padding-top: max(10px, env(safe-area-inset-top));
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.logo {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  background: var(--yellow); border: var(--line); border-radius: 14px; box-shadow: var(--shadow-s);
  padding: 6px 12px; font-weight: 900; font-size: 18px; transform: rotate(-2deg); transition: transform .2s var(--bounce);
}
.logo:hover { transform: rotate(2deg) scale(1.06); }
.logo b { background: var(--ink); color: var(--yellow); border-radius: 8px; padding: 1px 7px; }
.nav { display: flex; gap: 6px; margin-inline-start: auto; background: var(--white); border: var(--line); border-radius: 16px; box-shadow: var(--shadow-s); padding: 5px; }
.nav a { text-decoration: none; font-weight: 800; font-size: 16px; padding: 8px 14px; border-radius: 11px; transition: background .2s; }
.nav a:hover { background: var(--cream); }
.nav a.active { background: var(--ink); color: var(--yellow); }
.top-right { display: flex; align-items: center; gap: 8px; }
.lock-chip, .aura, .present-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  background: var(--white); border: var(--line); border-radius: 999px; box-shadow: var(--shadow-s);
  padding: 6px 14px; font-weight: 900; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--bounce);
}
.lock-chip { background: var(--ink); color: var(--white); }
.lock-chip.unlocked { background: var(--green); color: var(--ink); }
.aura { background: var(--violet); color: var(--white); }
.aura:hover { transform: translateY(-2px) rotate(-2deg); }
.aura-me:not(:empty) { margin-inline-start: 2px; font-size: 18px; }
.aura b { font-size: 17px; font-variant-numeric: tabular-nums; }
.aura small { font-size: 12px; font-weight: 700; opacity: .85; }
.aura.bump { animation: bump .5s var(--bounce); }
@keyframes bump { 30% { transform: scale(1.25) rotate(-4deg); } 100% { transform: none; } }
.present-btn:hover, .lock-chip:hover { transform: translateY(-2px); }

.tabbar { display: none; }
@media (max-width: 900px) {
  .nav { display: none; }
  .top-right { margin-inline-start: auto; }
  .present-btn { display: none; }
  .lock-chip { padding: 6px 10px; font-size: 13px; }
  .aura small { display: none; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
    position: fixed; z-index: 100; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom));
    background: var(--white); border: var(--line); border-radius: 20px; box-shadow: var(--shadow-s); padding: 6px;
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; border-radius: 14px; text-decoration: none; font-weight: 800; font-size: 12.5px; }
  .tabbar i { font-style: normal; font-size: 20px; line-height: 1.1; }
  .tabbar a.active { background: var(--yellow); }
  body { padding-bottom: 86px; }
}

/* ==========================================================================
   HERO — violet, sticker bomb, giant name, red button
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 20px;
  padding: 96px max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))) 70px;
  background: var(--violet);
  background-image: radial-gradient(rgba(255, 255, 255, .14) 2px, transparent 2.5px);
  background-size: 28px 28px;
  color: var(--white);
}
.stickers { position: absolute; inset: 0; z-index: 1; }
.sticker {
  position: absolute; left: 0; top: 0;
  width: var(--s, 84px); height: var(--s, 84px);
  display: grid; place-items: center;
  font-size: calc(var(--s, 84px) * .52); line-height: 1; font-weight: 900; color: var(--ink);
  background: var(--c, var(--yellow)); border: var(--line); border-radius: 50%; box-shadow: var(--shadow-s);
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  will-change: transform;
}
.sticker.sq { border-radius: 22px; }
.sticker.grab { cursor: grabbing; box-shadow: 10px 12px 0 var(--ink); }
.sticker.pop { animation: stPop .5s var(--bounce); }
@keyframes stPop { 40% { scale: 1.35; } 100% { scale: 1; } }

.hero-copy { position: relative; z-index: 2; pointer-events: none; }
.hero-copy a, .hero-copy button { pointer-events: auto; }
.hero-tag { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.hero-tag span {
  display: inline-block; background: var(--ink); color: var(--white); font-weight: 900; font-size: 15px;
  padding: 6px 12px; border-radius: 10px; transform: rotate(-2deg);
}
.hero-tag .granted { background: var(--green); color: var(--ink); border: var(--line); transform: rotate(2deg); letter-spacing: .06em; font-size: 13px; }
.hero-title { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ht-name {
  display: block;
  font-size: clamp(120px, 21vw, 280px); font-weight: 900; line-height: .82; letter-spacing: -.03em;
  color: var(--yellow);
  -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill;
  text-shadow: 8px 8px 0 var(--ink);
  transform-origin: 50% 90%;
}
.ht-for {
  display: inline-block; font-size: clamp(30px, 5vw, 62px); font-weight: 900; line-height: 1;
  background: var(--white); color: var(--ink); padding: 8px 16px; border: var(--line); border-radius: 16px; box-shadow: var(--shadow);
  transform: rotate(-2.5deg);
}
.hero-slogan { margin-top: 22px; font-size: clamp(26px, 3.6vw, 44px); font-weight: 900; line-height: 1.05; color: var(--white); text-shadow: 3px 3px 0 var(--ink); }
.hero-sub { margin-top: 8px; font-size: clamp(18px, 2vw, 22px); font-weight: 700; color: rgba(255, 255, 255, .92); }
.hero-ctas { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 14px; }

/* hero entrance — everything bounces in */
.js .hero-copy > *, .js .big-red, .js .principal { opacity: 0; transform: translateY(40px) scale(.9); }
.js .hero.in .hero-copy > *, .js .hero.in .big-red, .js .hero.in .principal { opacity: 1; transform: none; transition: opacity .3s, transform .7s var(--bounce); }
.js .hero.in .hero-copy > :nth-child(2) { transition-delay: .06s; }
.js .hero.in .hero-copy > :nth-child(3) { transition-delay: .14s; }
.js .hero.in .hero-copy > :nth-child(4) { transition-delay: .2s; }
.js .hero.in .hero-copy > :nth-child(5) { transition-delay: .26s; }
.js .hero.in .big-red { transition-delay: .32s; }
.js .hero.in .principal { transition-delay: .5s; }
.hero.in .ht-name { animation: wobble 3.2s ease-in-out 1s infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg) scale(1.02); } }

/* the big red button */
.big-red { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.red-btn {
  position: relative; width: clamp(170px, 20vw, 240px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8c8c, var(--red) 55%, #c41616);
  border: 5px solid var(--ink); cursor: pointer;
  box-shadow: 0 14px 0 #8f0f0f, 0 14px 0 3px var(--ink), 0 30px 40px rgba(0, 0, 0, .3);
  color: var(--white); font-weight: 900; font-size: clamp(26px, 3vw, 36px); line-height: 1; text-shadow: 3px 3px 0 var(--ink);
  transition: transform .08s, box-shadow .08s;
  -webkit-tap-highlight-color: transparent;
  animation: breathe 2.2s ease-in-out infinite;
}
.red-btn:active, .red-btn.down { transform: translateY(12px); box-shadow: 0 2px 0 #8f0f0f, 0 2px 0 3px var(--ink), 0 8px 14px rgba(0, 0, 0, .3); animation: none; }
@keyframes breathe { 50% { scale: 1.04; } }
.red-say {
  max-width: 300px; text-align: center; font-weight: 900; font-size: 19px; line-height: 1.25;
  background: var(--white); color: var(--ink); border: var(--line); border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow-s);
  position: relative;
}
.red-say::before { content: ''; position: absolute; top: -12px; left: 50%; width: 18px; height: 18px; background: var(--white); border-top: var(--line); border-right: var(--line); transform: translateX(-50%) rotate(-45deg); }
.red-say.pop { animation: stPop .45s var(--bounce); }
.principal {
  position: absolute; z-index: 3; left: var(--gutter); bottom: 26px;
  background: var(--orange); color: var(--ink); border: var(--line); border-radius: 12px; box-shadow: var(--shadow-s);
  padding: 8px 12px; font-weight: 900; font-size: 14px; line-height: 1.15; text-align: right; cursor: pointer; rotate: 6deg;
}
.principal:hover { rotate: -3deg; }
.drag-hint { position: absolute; z-index: 2; right: var(--gutter); bottom: 22px; font-weight: 800; font-size: 14px; opacity: .8; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 80px; padding-bottom: 90px; gap: 0; min-height: auto; align-content: start; }
  /* phones: the red button jumps up right under the name so the toy is on screen at once */
  .hero-copy { display: contents; }
  .hero-copy > * { position: relative; z-index: 2; pointer-events: none; }
  .hero-tag { order: 1; } .hero-title { order: 2; } .big-red { order: 3; margin: 22px 0 6px; }
  .hero-slogan { order: 4; } .hero-sub { order: 5; } .hero-ctas { order: 6; pointer-events: auto; }
  .ht-name { font-size: clamp(110px, 36vw, 200px); -webkit-text-stroke-width: 4px; text-shadow: 6px 6px 0 var(--ink); }
  .big-red { flex-direction: row; justify-content: center; gap: 26px; }
  .red-btn { width: 128px; font-size: 24px; }
  .red-say { font-size: 16px; max-width: 200px; }
  .red-say::before { top: 50%; left: auto; right: -12px; transform: translateY(-50%) rotate(45deg); border-top: var(--line); border-right: var(--line); }
  .hero-ctas .btn { flex: 1 1 100%; }
}

/* marquee */
.marquee { overflow: hidden; background: var(--ink); color: var(--yellow); border-block: var(--line); padding: 12px 0; transform: rotate(-1.2deg); margin: -10px -20px 0; position: relative; z-index: 3; }
.marquee-track { display: flex; gap: 22px; width: max-content; animation: marq 26s linear infinite; font-weight: 900; font-size: 22px; white-space: nowrap; }
.marquee-track i { font-style: normal; color: var(--pink); }
@keyframes marq { to { transform: translateX(50%); } }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.sec { padding: clamp(70px, 10vw, 120px) 0; position: relative; }
.sec-yellow { background: var(--yellow); }
.sec-cream { background: var(--cream); }
.sec-cyan { background: var(--cyan); }
.sec-pink { background: var(--pink); }
.sec-black { background: var(--ink); color: var(--white); }
.sec-violet { background: var(--violet); color: var(--white); }
.h2 { font-size: clamp(42px, 7vw, 88px); font-weight: 900; line-height: .95; letter-spacing: -.02em; margin-bottom: 22px; }
.h3 { font-size: clamp(30px, 4vw, 48px); font-weight: 900; line-height: 1; margin: 44px 0 18px; }
.lead { font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; max-width: 680px; margin-bottom: 22px; }
.head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

/* pop-in on scroll */
.js [data-pop] { opacity: 0; transform: translateY(40px) scale(.92) rotate(var(--r, 0deg)); }
.js [data-pop].in { opacity: 1; transform: rotate(var(--r, 0deg)); transition: opacity .3s, transform .6s var(--bounce); transition-delay: calc(var(--i, 0) * 70ms); }

/* ---------- Lori ---------- */
.bubbles { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 720px; }
.bubbles p {
  background: var(--white); border: var(--line); border-radius: 26px 26px 26px 8px; box-shadow: var(--shadow-s);
  padding: 14px 20px; font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; line-height: 1.3;
}
.bubbles p:nth-child(even) { margin-inline-start: 24px; }
.redact { display: inline-block; border: 0; border-radius: 6px; padding: 0 4px; background: var(--ink); color: transparent; font: inherit; cursor: pointer; transition: background .3s, color .3s; }
.redact span { pointer-events: none; }
.redact:hover { background: var(--violet); }
.redact.revealed { background: var(--violet); color: var(--white); cursor: default; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.option {
  position: relative; min-height: 220px; padding: 24px; text-align: right; cursor: pointer;
  display: flex; flex-direction: column; gap: 8px;
  border: var(--line); border-radius: 26px; box-shadow: var(--shadow);
  transition: transform .25s var(--bounce), box-shadow .25s var(--bounce);
}
.option:hover { transform: perspective(800px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateY(-5px); box-shadow: 10px 11px 0 var(--ink); }
.option:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.opt-tag { font-weight: 900; font-size: 15px; }
.opt-name { font-size: clamp(32px, 4.6vw, 54px); font-weight: 900; line-height: 1; margin-top: auto; }
.opt-desc { font-size: 17px; font-weight: 700; }
/* option A literally looks like a boring worksheet */
.option-a {
  background: #fafafa repeating-linear-gradient(transparent 0 31px, #b9d2ef 31px 32px);
  font-family: 'Times New Roman', Times, serif; color: #333;
}
.option-a .opt-name, .option-a .opt-tag, .option-a .opt-desc { font-weight: 400; font-family: 'Times New Roman', Times, serif; }
.option-a::before { content: ''; position: absolute; top: 0; bottom: 0; right: 46px; width: 2px; background: #f2a3a3; }
.option-b { background: var(--violet); color: var(--white); }
.option-b .opt-name { color: var(--yellow); text-shadow: 3px 3px 0 var(--ink); }
.option.snooze { animation: snooze .8s ease-in-out; filter: grayscale(1); }
@keyframes snooze { 30% { transform: rotate(-3deg) translateY(6px); } 60% { transform: rotate(2deg); } }
.option.picked-b { animation: jelly .6s var(--bounce); }
@keyframes jelly { 25% { transform: scale(1.06, .94); } 50% { transform: scale(.96, 1.05); } 75% { transform: scale(1.02, .98); } }
.option-result { margin-top: 20px; }
.result-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px;
  padding: 20px 24px; border: var(--line); border-radius: 24px; box-shadow: var(--shadow);
  animation: popIn .5s var(--bounce) both;
}
@keyframes popIn { from { opacity: 0; transform: scale(.7) rotate(-3deg); } to { opacity: 1; transform: none; } }
.result-card p { font-size: clamp(24px, 3.2vw, 36px); font-weight: 900; line-height: 1.1; }
.result-card .btn { margin-inline-start: auto; }
.result-a { background: var(--white); }
.result-a .zz { font-size: 54px; display: inline-block; animation: wobble 1.4s ease-in-out infinite; }
.result-b { background: var(--green); }
.result-b .stamp { color: var(--ink); font-size: 18px; }
@media (max-width: 680px) { .options { grid-template-columns: 1fr; } .option { min-height: 160px; } .result-card .btn { width: 100%; margin: 0; } }

/* ---------- missions ---------- */
.hw-egg { flex: none; width: 54px; height: 54px; font-size: 26px; background: var(--white); border: var(--line); border-radius: 16px; box-shadow: var(--shadow-s); cursor: pointer; transition: transform .2s var(--bounce); }
.hw-egg:hover { transform: rotate(-12deg) scale(1.1); }
.progress-pill { display: inline-flex; align-items: center; gap: 10px; background: var(--white); border: var(--line); border-radius: 999px; box-shadow: var(--shadow-s); padding: 8px 16px; font-weight: 900; margin-bottom: 30px; }
.progress-pill b { font-size: 20px; }
.pbar { display: inline-block; width: 110px; height: 14px; border: var(--line); border-radius: 999px; overflow: hidden; background: var(--cream); }
.pbar i { display: block; height: 100%; width: 0; background: var(--green); transition: width .6s var(--bounce); }
.files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.file {
  --c: var(--yellow);
  position: relative;
  display: grid; grid-template-columns: 104px 1fr; grid-template-areas: "icon main" "btn btn"; gap: 14px 18px; align-items: start;
  background: var(--c); border: var(--line); border-radius: 26px; box-shadow: var(--shadow);
  padding: 20px; cursor: pointer;
}
.file:hover { transform: translateY(-5px) !important; box-shadow: 8px 11px 0 var(--ink); }
.file:active { transform: translate(3px, 3px) !important; box-shadow: 0 0 0 var(--ink); }
.file[data-tone="orange"] { --c: var(--orange); }
.file[data-tone="cyan"] { --c: var(--cyan); }
.file[data-tone="green"] { --c: var(--green); }
.file[data-tone="pink"] { --c: var(--pink); }
.file[data-tone="lilac"] { --c: var(--lilac); }
.file[data-tone="sky"] { --c: var(--sky); }
.file[data-tone="coral"] { --c: var(--coral); }
.file[data-tone="mint"] { --c: var(--mint); }
.file-icon { grid-area: icon; width: 104px; height: 104px; display: grid; place-items: center; background: var(--white); border: var(--line); border-radius: 22px; }
.file-emoji { font-size: 60px; line-height: 1; display: inline-block; transition: transform .3s var(--bounce); }
img.file-emoji { width: 70px; height: 70px; object-fit: contain; }
.file:hover .file-emoji { transform: scale(1.15) rotate(-8deg); }
.file-main { grid-area: main; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.file-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.file-num { font-weight: 900; font-size: 15px; background: var(--ink); color: var(--white); border-radius: 10px; padding: 3px 10px; }
.file-seen { display: none; font-weight: 900; font-size: 14px; background: var(--white); border: 2.5px solid var(--ink); border-radius: 999px; padding: 2px 10px; }
.file.seen .file-seen { display: inline-block; }
.file h3 { font-size: clamp(26px, 2.8vw, 34px); font-weight: 900; line-height: 1.05; }
.file-teaser { font-size: 18px; font-weight: 700; line-height: 1.4; }
.file-open {
  grid-area: btn; display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; background: var(--ink); color: var(--white); border: 0; border-radius: 16px; font-weight: 900; font-size: 19px; cursor: pointer;
}
.file-open::after { content: ''; position: absolute; inset: 0; border-radius: 26px; }
.file:hover .file-open { background: #2b2440; }
@media (max-width: 760px) {
  .files { grid-template-columns: 1fr; gap: 18px; }
  .file { grid-template-columns: 78px 1fr; padding: 16px; gap: 12px 14px; }
  .file-icon { width: 78px; height: 78px; border-radius: 18px; }
  .file-emoji { font-size: 46px; } img.file-emoji { width: 54px; height: 54px; }
  .file h3 { font-size: 25px; } .file-teaser { font-size: 16.5px; }
}
.status-chip {
  --s: var(--white);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: var(--s); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 999px; padding: 4px 11px; font-weight: 900; font-size: 14px;
}
.status-chip[data-tone="blue"] { --s: var(--sky); }
.status-chip[data-tone="lime"] { --s: var(--green); }
.status-chip[data-tone="red"] { --s: var(--coral); }
.status-chip[data-tone="yellow"] { --s: var(--white); }
.honest { margin-top: 36px; font-size: 18px; font-weight: 700; background: var(--white); border: var(--line); border-radius: 20px; padding: 16px 20px; box-shadow: var(--shadow-s); max-width: 760px; }
.honest b { background: var(--yellow); padding: 0 6px; border-radius: 6px; }

/* ---------- mission sheet ---------- */
dialog { padding: 0; border: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(20, 16, 31, .72); }
.sheet-dialog { width: min(780px, 100vw - 24px); margin: auto; max-height: calc(100dvh - 24px); }
.sheet-dialog[open] { display: flex; }
.sheet {
  --c: var(--yellow);
  width: 100%; background: var(--cream); border: 4px solid var(--ink); border-radius: 30px; box-shadow: 10px 10px 0 var(--ink);
  overflow: auto; overscroll-behavior: contain; max-height: calc(100dvh - 34px);
}
.sheet-dialog[open] .sheet { animation: sheetIn .5s var(--bounce) both; }
.sheet-dialog.closing .sheet { animation: sheetOut .22s ease-in both; }
@keyframes sheetIn { from { opacity: 0; transform: scale(.6) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes sheetOut { to { opacity: 0; transform: scale(.85) translateY(30px); } }
.sheet[data-tone="orange"] { --c: var(--orange); }
.sheet[data-tone="cyan"] { --c: var(--cyan); }
.sheet[data-tone="green"] { --c: var(--green); }
.sheet[data-tone="pink"] { --c: var(--pink); }
.sheet[data-tone="lilac"] { --c: var(--lilac); }
.sheet[data-tone="sky"] { --c: var(--sky); }
.sheet[data-tone="coral"] { --c: var(--coral); }
.sheet[data-tone="mint"] { --c: var(--mint); }
.sh-head { position: relative; background: var(--c); border-bottom: 4px solid var(--ink); padding: 22px 24px 24px; }
.sh-close { position: absolute; top: 16px; left: 16px; width: 50px; height: 50px; border-radius: 16px; background: var(--white); border: var(--line); box-shadow: var(--shadow-s); font-size: 22px; font-weight: 900; cursor: pointer; z-index: 2; }
.sh-close:active { transform: translate(3px, 3px); box-shadow: none; }
.sh-emoji { font-size: 76px; line-height: 1; display: inline-block; animation: stPop .6s var(--bounce) .1s both; }
.sh-num { display: inline-block; margin-inline-start: 10px; font-weight: 900; font-size: 15px; background: var(--ink); color: var(--white); border-radius: 10px; padding: 4px 10px; vertical-align: super; }
.sh-title { font-size: clamp(38px, 6vw, 62px); font-weight: 900; line-height: .98; margin: 8px 0 12px; }
.sh-stamp { position: absolute; left: 84px; top: 28px; font-size: 15px; color: var(--ink); }
.sh-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 18px; }
.sh-quote { font-size: clamp(22px, 3vw, 30px); font-weight: 900; line-height: 1.2; background: var(--white); border: var(--line); border-radius: 24px 24px 24px 6px; padding: 16px 20px; box-shadow: var(--shadow-s); }
.sh-preview { font-size: 19px; font-weight: 700; }
.sh-modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.sh-mode { background: var(--white); border: var(--line); border-radius: 18px; padding: 12px 14px; animation: popIn .45s var(--bounce) both; animation-delay: calc(.15s + var(--i) * 70ms); }
.sh-mode:nth-child(3n+1) { background: var(--yellow); } .sh-mode:nth-child(3n+2) { background: var(--cyan); } .sh-mode:nth-child(3n) { background: var(--pink); }
.sh-mode small { display: block; font-weight: 900; font-size: 11px; letter-spacing: .1em; text-align: right; }
.sh-mode b { display: block; font-size: 18px; font-weight: 900; line-height: 1.15; margin: 2px 0; }
.sh-mode span { font-size: 15px; font-weight: 600; line-height: 1.35; display: block; }
.sh-sections { display: flex; flex-direction: column; gap: 10px; }
.sh-more summary {
  list-style: none; cursor: pointer; font-weight: 900; font-size: 19px; background: var(--white); border: var(--line); border-radius: 16px; padding: 12px 18px; min-height: 56px;
  display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow-s);
}
.sh-more summary::-webkit-details-marker { display: none; }
.sh-more summary::after { content: '+'; font-size: 26px; transition: transform .3s var(--bounce); }
.sh-more[open] summary::after { transform: rotate(45deg); }
.sh-more .d-body { padding: 14px 6px 4px; font-size: 18px; font-weight: 600; line-height: 1.55; }
.sh-more ul { margin: 0; padding: 0 22px 0 0; }
.sh-status { background: var(--ink); color: var(--white); border-radius: 22px; padding: 18px 20px; }
.sh-status h4 { font-size: 20px; font-weight: 900; margin: 0 0 4px; }
.sh-status p { font-size: 16px; font-weight: 600; opacity: .9; margin-bottom: 14px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.flow li { font-size: 13px; font-weight: 800; line-height: 1.15; padding: 8px 6px; border-radius: 10px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .55); }
.flow li.done { background: rgba(255, 255, 255, .25); color: var(--white); }
.flow li.now { background: var(--yellow); color: var(--ink); }
.flow li.now[data-tone="lime"] { background: var(--green); }
.flow li.now[data-tone="blue"] { background: var(--sky); }
.flow-rejected { margin-top: 10px; color: var(--coral); font-weight: 900; }
.sh-nav { display: flex; justify-content: space-between; gap: 10px; padding: 0 24px 24px; }
.sh-nav .btn { min-height: 52px; font-size: 17px; padding: 10px 18px; }
@media (max-width: 640px) {
  .sheet-dialog { width: 100vw; margin: auto 0 0; max-height: 100dvh; }
  .sheet { border-radius: 30px 30px 0 0; max-height: 92dvh; box-shadow: none; border-bottom: 0; }
  .sheet-dialog[open] .sheet { animation: sheetUp .45s var(--bounce) both; }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .sh-stamp { display: none; }
}
@keyframes sheetUp { from { transform: translateY(70%); } to { transform: none; } }

/* ---------- secret ---------- */
.secret { position: relative; border: 4px solid var(--white); border-radius: 34px; padding: clamp(24px, 5vw, 56px); background: #241a3d; box-shadow: 10px 10px 0 var(--pink); overflow: hidden; }
.secret::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255, 79, 177, .07) 0 18px, transparent 18px 36px); pointer-events: none; }
.secret > * { position: relative; }
.secret-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.secret-top .mono-label { color: var(--pink); }
.secret-denied { font-size: clamp(16px, 2vw, 22px); }
.secret-title { font-size: clamp(42px, 7vw, 90px); font-weight: 900; line-height: 1; margin-top: 16px; }
.lock-wobble { display: inline-block; animation: lockJiggle 2.4s ease-in-out infinite; transform-origin: 50% 20%; }
@keyframes lockJiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-14deg); } 90% { transform: rotate(12deg); } 95% { transform: rotate(-6deg); } }
.secret-when { margin-top: 12px; font-size: clamp(19px, 2.4vw, 26px); font-weight: 700; }
.secret-when b { color: var(--yellow); }
.countdown { display: flex; gap: clamp(8px, 2vw, 16px); margin: 26px 0 20px; }
.countdown > div { flex: 1; max-width: 170px; text-align: center; background: var(--yellow); color: var(--ink); border: var(--line); border-radius: 20px; box-shadow: var(--shadow-s); padding: 12px 4px 8px; }
.countdown > div:nth-child(2) { background: var(--cyan); } .countdown > div:nth-child(3) { background: var(--pink); } .countdown > div:nth-child(4) { background: var(--green); }
.countdown b { display: block; font-weight: 900; font-size: clamp(40px, 8vw, 96px); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { display: block; font-size: 15px; font-weight: 800; direction: rtl; }
.secret.final-ten .countdown > div { animation: bump 1s infinite; }
.secret-note { font-size: 17px; font-weight: 600; opacity: .85; margin-bottom: 18px; }
.secret.denied { animation: jelly .5s var(--bounce); }
.secret[data-state="open"] { background: var(--green); color: var(--ink); box-shadow: 10px 10px 0 var(--yellow); }
.secret[data-state="open"] .mono-label { color: var(--ink); }
.secret-open h2 { font-size: clamp(42px, 6.4vw, 86px); font-weight: 900; line-height: 1; margin: 14px 0; }
.secret-open p { font-size: clamp(19px, 2.2vw, 23px); font-weight: 700; line-height: 1.5; margin-top: 10px; max-width: 760px; }
.secret-open ul { margin: 14px 0 0; padding: 0 22px 0 0; font-size: 20px; font-weight: 700; }
.secret-open .stamp { font-size: 18px; color: var(--ink); }

/* ---------- arcade ---------- */
.arcade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.card { background: var(--white); border: var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: clamp(28px, 3vw, 38px); font-weight: 900; line-height: 1; }
.card-tag { font-weight: 900; font-size: 17px; }
.game67 { background: var(--ink); color: var(--white); text-align: center; align-items: center; }
.game67 p { font-weight: 600; font-size: 17px; }
.g67-hero, .game67 .g67-hero { display: flex; justify-content: center; gap: 8px; font-weight: 900; font-size: clamp(100px, 11vw, 150px); line-height: .9; direction: ltr; }
.g67-hero span { color: var(--yellow); -webkit-text-stroke: 3px var(--white); paint-order: stroke fill; display: inline-block; }
.g67-hero span:first-child { animation: hop 1s ease-in-out infinite; }
.g67-hero span:last-child { color: var(--pink); animation: hop 1s ease-in-out .5s infinite; }
@keyframes hop { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-18px) rotate(6deg); } }
.best b { color: var(--yellow); font-size: 22px; }
.game67 .btn { margin-top: auto; width: 100%; }
.daily { background: var(--yellow); }
.daily-kind { font-weight: 900; font-size: 15px; background: var(--ink); color: var(--white); display: inline-block; padding: 3px 10px; border-radius: 8px; }
.daily-q { font-size: clamp(22px, 2.4vw, 27px); font-weight: 900; line-height: 1.25; margin: 10px 0 14px; }
.daily-q.emoji { font-size: clamp(50px, 6vw, 70px); letter-spacing: .08em; }
.daily-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.daily-opts button { min-height: 56px; padding: 8px 10px; border: var(--line); border-radius: 14px; background: var(--white); box-shadow: 3px 3px 0 var(--ink); font-weight: 800; font-size: 17px; cursor: pointer; transition: transform .15s var(--bounce); }
.daily-opts button:hover:not(:disabled) { transform: translateY(-2px); }
.daily-opts button:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: none; }
.daily-opts button.right { background: var(--green); animation: jelly .5s var(--bounce); }
.daily-opts button.wrong { background: var(--coral); }
.daily-opts button:disabled { cursor: default; }
.daily-explain, .daily-answer { margin-top: 12px; font-weight: 800; font-size: 18px; animation: popIn .4s var(--bounce) both; }
.daily-answer { background: var(--white); border: var(--line); border-radius: 16px; padding: 12px 14px; font-size: 20px; }
.daily-body .btn { width: 100%; }
.daily-foot { margin-top: auto; font-size: 14.5px; font-weight: 700; }
.random { background: var(--white); }
.random-card { flex: 1; min-height: 180px; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 20px; border: var(--line); border-radius: 22px; background: var(--lilac); }
.random-card.flip { animation: flip .55s var(--bounce); }
@keyframes flip { 0% { transform: perspective(800px) rotateY(0); } 45% { transform: perspective(800px) rotateY(90deg); } 100% { transform: perspective(800px) rotateY(0); } }
.random-text { font-size: clamp(21px, 2.3vw, 25px); font-weight: 900; line-height: 1.3; }
.random-timer b { font-size: 54px; font-weight: 900; line-height: 1; }
.random-timer span { font-weight: 800; }
.random-timer.done b { color: var(--red); }
.random-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.random-actions .btn { flex: 1; }

@media (max-width: 640px) { .arcade { grid-template-columns: 1fr; } }

/* ---------- 67 game ---------- */
.game-dialog { width: min(680px, 100vw - 20px); margin: auto; }
.game-dialog[open] .game { animation: sheetIn .45s var(--bounce) both; }
.game { background: var(--ink); color: var(--white); border: 4px solid var(--white); border-radius: 30px; box-shadow: 10px 10px 0 var(--pink); padding: clamp(16px, 3vw, 26px); min-height: min(560px, 90dvh); display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.g-top { display: flex; align-items: center; gap: 12px; }
.g-time { font-weight: 900; font-size: 42px; line-height: 1; color: var(--yellow); min-width: 3.2ch; font-variant-numeric: tabular-nums; }
.g-time.low { color: var(--coral); }
.g-bar { flex: 1; height: 16px; border-radius: 999px; background: rgba(255, 255, 255, .15); overflow: hidden; border: 2px solid var(--white); }
.g-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--yellow)); transform-origin: right; }
.g-score { font-weight: 900; font-size: 18px; }
.g-score b { color: var(--green); font-size: 28px; }
.g-close { width: 46px; height: 46px; border-radius: 14px; cursor: pointer; background: var(--white); color: var(--ink); border: 0; font-weight: 900; font-size: 18px; }
.g-stage { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.g-prompt { font-size: clamp(28px, 4.4vw, 42px); font-weight: 900; line-height: 1.1; text-align: center; }
.g-sub { text-align: center; font-weight: 700; font-size: 17px; margin-top: -6px; opacity: .85; }
.g-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; direction: ltr; }
.g-grid button, .g-opts button { min-height: 66px; border-radius: 16px; cursor: pointer; background: var(--white); color: var(--ink); border: var(--line); box-shadow: 3px 3px 0 var(--pink); font-weight: 900; font-size: 30px; transition: transform .1s; }
.g-grid button:active, .g-opts button:active { transform: scale(.92); }
.g-grid button.hit { background: var(--green); animation: jelly .4s var(--bounce); }
.g-grid button.miss, .g-opts button.miss { background: var(--coral); animation: jelly .4s; }
.g-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.g-opts button { font-size: 22px; }
.g-meter { position: relative; height: 60px; border-radius: 16px; background: var(--white); border: var(--line); overflow: hidden; direction: ltr; }
.g-zone { position: absolute; top: 0; bottom: 0; background: var(--green); }
.g-needle { position: absolute; top: -2px; bottom: -2px; width: 8px; margin-left: -4px; background: var(--ink); border-radius: 4px; }
.g-big { align-self: center; min-width: 220px; min-height: 110px; font-size: 32px; border-radius: 26px; }
.g-mash-count { text-align: center; font-size: 60px; font-weight: 900; color: var(--yellow); }
.g-feedback { text-align: center; min-height: 30px; font-weight: 900; font-size: 22px; }
.g-feedback.good { color: var(--green); } .g-feedback.bad { color: var(--coral); }
.g-intro, .g-end { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; flex: 1; }
.g-intro h3, .g-end h3 { font-size: clamp(36px, 5vw, 56px); font-weight: 900; line-height: 1; }
.g-intro p, .g-end p { font-size: 18px; font-weight: 600; max-width: 460px; }
.g-end .g-final { font-size: clamp(90px, 15vw, 150px); font-weight: 900; color: var(--yellow); line-height: .9; }
.g-end .g-rank { font-size: 26px; font-weight: 900; }
.g-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.game .btn-ghost { --bg: var(--white); }
.game .btn-primary { --bg: var(--yellow); }
.game .btn-danger { --bg: var(--red); color: var(--white); }
.game .mono-label { color: var(--pink); }
.pb-spacer { flex: 1; }

/* ---------- leaderboard ---------- */
.board-empty { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; background: var(--white); border: var(--line); border-radius: 30px; box-shadow: var(--shadow); padding: clamp(22px, 4vw, 44px); }
.be-copy h3 { font-size: clamp(34px, 4.8vw, 58px); font-weight: 900; line-height: 1; }
.be-copy p { margin-top: 12px; font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; }
.be-copy .be-note { font-size: 15px; font-weight: 600; opacity: .75; }
.podium { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; gap: 10px; }
.podium div { display: grid; place-items: center; align-content: start; padding-top: 14px; border: var(--line); border-radius: 18px 18px 6px 6px; font-weight: 900; }
.podium b { font-size: clamp(40px, 5vw, 64px); line-height: 1; display: inline-block; animation: hop 1.6s ease-in-out infinite; }
.podium small { font-size: 15px; margin-top: 6px; }
.podium .p1 { height: 220px; background: var(--yellow); } .podium .p1 b { animation-delay: .2s; }
.podium .p2 { height: 160px; background: var(--cyan); } .podium .p2 b { animation-delay: .5s; }
.podium .p3 { height: 120px; background: var(--orange); } .podium .p3 b { animation-delay: .8s; }
.board-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.board-row { position: relative; overflow: hidden; display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 14px; background: var(--white); border: var(--line); border-radius: 22px; box-shadow: var(--shadow-s); padding: 14px 18px; }
.board-row:first-child { background: var(--yellow); }
.board-row .bar { position: absolute; inset: 0 0 0 auto; width: 0; background: rgba(123, 47, 255, .12); transition: width 1.2s var(--bounce); }
.board-row .rank { font-size: 34px; font-weight: 900; position: relative; }
.board-row .name { font-size: clamp(22px, 2.8vw, 30px); font-weight: 900; position: relative; display: flex; gap: 8px; align-items: center; }
.board-row .pts { font-size: clamp(24px, 3vw, 36px); font-weight: 900; position: relative; }
.board-row .pts small { font-size: 14px; margin-inline-start: 4px; }
.delta { font-size: 14px; font-weight: 900; padding: 2px 8px; border-radius: 8px; border: 2px solid var(--ink); }
.delta.up { background: var(--green); } .delta.down { background: var(--coral); }
.board-events { margin-top: 18px; font-weight: 700; }
.board-updated { margin-top: 10px; font-size: 14px; font-weight: 700; }
@media (max-width: 760px) { .board-empty { grid-template-columns: 1fr; } .podium .p1 { height: 170px; } .podium .p2 { height: 125px; } .podium .p3 { height: 95px; } }

/* ---------- updates ---------- */
.updates { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.update { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: start; background: var(--white); border: var(--line); border-radius: 24px; box-shadow: var(--shadow-s); padding: 20px; }
.update-date { text-align: center; background: var(--yellow); border: var(--line); border-radius: 16px; padding: 8px; font-weight: 900; font-size: 14px; rotate: -3deg; }
.update-date b { display: block; font-size: 28px; line-height: 1; }
.update-tag { display: inline-block; font-weight: 900; font-size: 12px; letter-spacing: .08em; padding: 3px 9px; border-radius: 8px; background: var(--ink); color: var(--white); margin-bottom: 6px; }
.update-tag[data-tag="approved"] { background: var(--green); color: var(--ink); }
.update-new { font-weight: 900; font-size: 12px; background: var(--pink); border: 2px solid var(--ink); padding: 2px 8px; border-radius: 8px; margin-inline-start: 6px; }
.update h3 { font-size: 24px; font-weight: 900; }
.update p { margin-top: 4px; font-size: 17px; font-weight: 600; }
@media (max-width: 560px) { .update { grid-template-columns: 1fr; } .update-date { justify-self: start; } }

/* ---------- final ---------- */
.final { background-image: radial-gradient(rgba(255, 255, 255, .12) 2px, transparent 2.5px); background-size: 28px 28px; }
.letter { max-width: 900px; display: flex; flex-direction: column; gap: clamp(14px, 2.2vw, 24px); }
.letter p { font-size: clamp(24px, 3.4vw, 42px); font-weight: 800; line-height: 1.2; }
.letter .l-big { font-size: clamp(76px, 13vw, 170px); font-weight: 900; line-height: .9; color: var(--yellow); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 6px 6px 0 var(--ink); }
.letter .l-q { color: var(--cyan); }
.letter .l-hl { align-self: flex-start; background: var(--yellow); color: var(--ink); padding: 4px 16px; border: var(--line); border-radius: 16px; box-shadow: var(--shadow); font-size: clamp(34px, 5.4vw, 70px); font-weight: 900; rotate: -2deg; }
.letter .l-end strong { color: var(--yellow); }
.letter .l-sign { color: var(--pink); text-shadow: 2px 2px 0 var(--ink); }
.js .letter [data-line] { opacity: 0; transform: translateY(30px) scale(.96); }
.js .letter [data-line].in { opacity: 1; transform: none; transition: opacity .4s, transform .7s var(--bounce); }
.final-screen { margin-top: clamp(80px, 12vw, 150px); min-height: 80svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; }
.final-screen .mono-label { background: var(--ink); padding: 6px 12px; border-radius: 10px; }
.fs-line { font-size: clamp(42px, 7vw, 96px); font-weight: 900; line-height: 1; text-shadow: 4px 4px 0 var(--ink); }
.fs-line span { color: var(--yellow); }
.fs-slogan { font-size: clamp(24px, 3.2vw, 38px); font-weight: 800; line-height: 1.2; background: var(--white); color: var(--ink); padding: 14px 24px; border: var(--line); border-radius: 20px; box-shadow: var(--shadow); rotate: -1.5deg; }
.fs-slogan strong { font-weight: 900; color: var(--violet); }
.fs-stamp { font-size: clamp(24px, 3.6vw, 42px); }
.js .fs-stamp:not(.slam) { opacity: 0; }
.fs-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--white); padding: 50px 0 60px; }
.footer .h3 { margin-top: 0; }
.badges { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.badge { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-weight: 800; font-size: 14px; line-height: 1.2; padding: 14px 8px; border: 3px dashed rgba(255, 255, 255, .3); border-radius: 20px; color: rgba(255, 255, 255, .5); }
.badge i { font-style: normal; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: rgba(255, 255, 255, .08); filter: grayscale(1); }
.badge.got { border: 3px solid var(--white); color: var(--white); background: var(--violet); }
.badge.got i { background: var(--yellow); filter: none; border: var(--line); }
.badge.fresh { animation: jelly .7s var(--bounce); }
.foot-note { font-size: 15px; font-weight: 600; opacity: .8; margin-top: 10px; }
.footer .link-btn { color: var(--yellow); }

/* ---------- toasts, flying aura, confetti ---------- */
.toast-wrap { position: fixed; z-index: 750; top: 76px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; align-items: center; width: min(480px, calc(100vw - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border: var(--line); border-radius: 20px; background: var(--white); color: var(--ink); box-shadow: var(--shadow-s); font-weight: 800; font-size: 17px; line-height: 1.3; animation: popIn .45s var(--bounce) both; }
.toast.out { animation: toastOut .25s ease-in both; }
@keyframes toastOut { to { opacity: 0; transform: translateY(-16px) scale(.9); } }
.toast .t-ico { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--yellow); border: 2.5px solid var(--ink); }
.toast small { display: block; font-size: 11px; letter-spacing: .1em; font-weight: 900; opacity: .6; }
.toast.warn .t-ico { background: var(--orange); }
.toast.good .t-ico { background: var(--green); }
.toast.denied .t-ico { background: var(--pink); }
.fly-layer { position: fixed; inset: 0; pointer-events: none; z-index: 760; }
.fly { position: absolute; font-weight: 900; font-size: 26px; color: var(--yellow); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; white-space: nowrap; animation: fly 1.1s var(--ease) forwards; }
.fly.emoji { -webkit-text-stroke: 0; font-size: 34px; }
@keyframes fly { 0% { opacity: 0; transform: translate(-50%, 0) scale(.5); } 15% { opacity: 1; transform: translate(-50%, -16px) scale(1.2); } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), -130px) scale(1) rotate(var(--rot, 0deg)); } }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 740; }

/* ---------- principal "behave normal" mode ---------- */
.normal-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 790; background: #003399; color: #fff; text-align: center; padding: 14px; font-family: Arial, sans-serif; font-size: 16px; }
html.normal-mode body, html.normal-mode main section, html.normal-mode .footer { background: #fff !important; background-image: none !important; color: #000 !important; }
html.normal-mode .topbar, html.normal-mode .tabbar, html.normal-mode .stickers, html.normal-mode .big-red, html.normal-mode .marquee, html.normal-mode #confetti, html.normal-mode .drag-hint, html.normal-mode .fly-layer { visibility: hidden !important; }
html.normal-mode main *, html.normal-mode footer * {
  font-family: 'Times New Roman', Times, serif !important; color: #000 !important; background: transparent !important;
  box-shadow: none !important; text-shadow: none !important; -webkit-text-stroke: 0 !important; border-color: #999 !important;
  animation: none !important; transform: none !important; rotate: none !important; font-weight: 400 !important;
}
html.normal-mode main a, html.normal-mode main button { color: #0000ee !important; text-decoration: underline !important; }
html.normal-mode .ht-name, html.normal-mode .h2 { font-size: 32px !important; }

/* ---------- presentation mode ---------- */
.present { position: fixed; inset: 0; z-index: 850; background: var(--violet); background-image: radial-gradient(rgba(255, 255, 255, .12) 2px, transparent 2.5px); background-size: 34px 34px; color: var(--white); display: flex; flex-direction: column; }
.present-stage { flex: 1; position: relative; overflow: hidden; }
.slide { position: absolute; inset: 0; padding: 6vh 6vw 3vh; display: flex; flex-direction: column; justify-content: center; gap: 2.6vh; opacity: 0; visibility: hidden; transition: opacity .2s; }
.slide.on { opacity: 1; visibility: visible; }
.slide .mono-label { font-size: clamp(14px, 1.4vw, 22px); align-self: flex-start; background: var(--ink); color: var(--yellow); padding: .3em .7em; border-radius: .5em; }
.s-title { font-size: clamp(70px, 14vw, 250px); font-weight: 900; line-height: .85; color: var(--yellow); -webkit-text-stroke: .035em var(--ink); paint-order: stroke fill; text-shadow: .04em .04em 0 var(--ink); }
.s-title .ht-num { color: var(--white); }
.s-h { font-size: clamp(46px, 6.6vw, 124px); font-weight: 900; line-height: .98; text-shadow: .04em .04em 0 var(--ink); }
.s-sub { font-size: clamp(26px, 3.4vw, 60px); font-weight: 800; line-height: 1.15; }
.s-sub strong { color: var(--yellow); }
.s-text { font-size: clamp(24px, 2.7vw, 48px); font-weight: 700; line-height: 1.35; max-width: 1400px; }
.slide .s-quote { font-size: clamp(30px, 3.6vw, 64px); font-weight: 900; line-height: 1.15; background: var(--white); color: var(--ink); border: 4px solid var(--ink); border-radius: .5em .5em .5em .15em; padding: .35em .6em; box-shadow: 8px 8px 0 var(--ink); align-self: flex-start; }
.s-list { margin: 0; padding: 0 1.2em 0 0; font-size: clamp(22px, 2.4vw, 42px); font-weight: 800; line-height: 1.5; }
.s-list li::marker { color: var(--yellow); }
.s-row { display: flex; gap: 3vw; align-items: center; }
.s-icon { flex: none; font-size: clamp(80px, 10vw, 180px); line-height: 1; }
.s-slogan { align-self: flex-start; background: var(--yellow); color: var(--ink); padding: .35em .7em; border: 4px solid var(--ink); border-radius: .4em; box-shadow: 8px 8px 0 var(--ink); font-size: clamp(28px, 3.4vw, 64px); font-weight: 900; line-height: 1.15; rotate: -1deg; }
.s-options { display: grid; grid-template-columns: 1fr 1fr; gap: 3vw; }
.s-options div { background: #fafafa; color: #333; border: 4px solid var(--ink); border-radius: 2vw; padding: 3vw; font-family: 'Times New Roman', serif; }
.s-options div:last-child { background: var(--yellow); color: var(--ink); font-family: var(--font); box-shadow: 10px 10px 0 var(--ink); }
.s-options small { font-size: clamp(14px, 1.3vw, 24px); font-weight: 800; }
.s-options b { display: block; font-size: clamp(40px, 5vw, 96px); font-weight: 900; line-height: 1; margin: 1vh 0; }
.s-options span { font-size: clamp(20px, 2vw, 36px); }
.s-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4vw; }
.s-grid button { text-align: right; cursor: pointer; background: var(--yellow); color: var(--ink); border: 4px solid var(--ink); border-radius: 1.4vw; box-shadow: 6px 6px 0 var(--ink); padding: 1.6vw; display: flex; flex-direction: column; gap: .6vh; min-height: 22vh; }
.s-grid button:nth-child(4n+2) { background: var(--cyan); } .s-grid button:nth-child(4n+3) { background: var(--pink); } .s-grid button:nth-child(4n) { background: var(--green); }
.s-grid .gi { font-size: clamp(36px, 4vw, 76px); line-height: 1; }
.s-grid small { font-size: clamp(12px, 1vw, 18px); font-weight: 900; }
.s-grid b { font-size: clamp(20px, 2vw, 38px); font-weight: 900; line-height: 1.05; }
.s-status { align-self: flex-start; font-size: clamp(18px, 1.8vw, 32px); font-weight: 800; }
.s-status .status-chip { font-size: inherit; padding: .3em .7em; }
.s-count { display: flex; gap: 2vw; direction: ltr; }
.s-count div { text-align: center; background: var(--yellow); color: var(--ink); border: 4px solid var(--ink); border-radius: 1.4vw; box-shadow: 6px 6px 0 var(--ink); padding: 2vh 2vw; min-width: 13vw; }
.s-count div:nth-child(2) { background: var(--cyan); } .s-count div:nth-child(3) { background: var(--pink); } .s-count div:nth-child(4) { background: var(--green); }
.s-count b { display: block; font-size: clamp(54px, 8vw, 170px); line-height: 1; font-weight: 900; }
.s-count span { font-size: clamp(16px, 1.6vw, 30px); font-weight: 800; }
.s-final { align-items: center; text-align: center; }
.s-red { width: clamp(200px, 30vh, 340px); font-size: clamp(34px, 5vh, 60px); }
.s-final .s-slogan, .s-final .mono-label { align-self: center; }
.s-qr { display: flex; align-items: center; gap: 3vw; justify-content: center; margin-top: 1vh; }
.s-qr .qr-box { background: #fff; padding: 1.2vw; border: 4px solid var(--ink); border-radius: 1.2vw; width: clamp(180px, 24vh, 380px); box-shadow: 8px 8px 0 var(--ink); }
.s-qr .qr-box svg { width: 100%; height: auto; display: block; }
.s-qr p { font-size: clamp(20px, 2.2vw, 40px); font-weight: 900; text-align: right; }
.s-qr .qr-url { display: block; font-size: clamp(14px, 1.3vw, 24px); color: var(--yellow); margin-top: 1vh; direction: ltr; text-align: left; word-break: break-all; }
.s-qr .qr-warn { display: block; font-size: clamp(13px, 1.1vw, 18px); color: var(--yellow); background: var(--ink); padding: .3em .6em; border-radius: .4em; margin-top: 1vh; }
.present-bar { display: flex; align-items: center; gap: 10px; padding: 12px 20px max(12px, env(safe-area-inset-bottom)); background: var(--ink); }
.pb-btn { min-height: 58px; padding: 0 22px; border-radius: 16px; cursor: pointer; background: var(--white); color: var(--ink); border: 3px solid var(--white); font-weight: 900; font-size: 19px; }
.pb-next { background: var(--yellow); border-color: var(--yellow); min-width: 150px; }
.pb-exit { background: var(--coral); border-color: var(--coral); }
.pb-count { font-weight: 900; font-size: 19px; color: var(--white); min-width: 70px; text-align: center; }
.present-dots { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.present-dots button { width: 12px; height: 12px; border-radius: 50%; padding: 0; border: 2px solid var(--ink); background: var(--white); cursor: pointer; }
.present-dots button.on { background: var(--yellow); width: 30px; border-radius: 8px; }
@media (max-width: 760px) {
  .pb-btn { padding: 0 14px; font-size: 16px; }
  #pFull { display: none; }
  .s-grid { grid-template-columns: repeat(2, 1fr); }
  .s-grid button { min-height: 0; }
  .s-options { grid-template-columns: 1fr; }
  .s-row { flex-direction: column; align-items: flex-start; }
  .s-qr { flex-direction: column; }
  .present-dots { display: none; }
}

.noscript { padding: 120px 20px; text-align: center; font-size: 22px; }

/* ---------- reduced motion: everything still there, nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee-track { animation: none; }
  .js [data-pop], .js .letter [data-line] { opacity: 1; transform: none; }
}


/* ==========================================================================
   v3 — game systems, accessibility, interactive motion
   ========================================================================== */
.sec-ink { background: var(--ink); color: var(--white); background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .03) 0 20px, transparent 20px 40px); }
.kicker { display: inline-block; background: var(--yellow); color: var(--ink); font-weight: 900; font-size: 15px; padding: 4px 12px; border-radius: 10px; border: var(--line); margin-bottom: 12px; rotate: -2deg; }

/* scroll runner */
.runner { position: fixed; top: 0; left: 0; right: 0; height: 6px; z-index: 120; background: rgba(20, 16, 31, .15); pointer-events: none; }
.runner i { position: absolute; top: 0; bottom: 0; right: 0; width: 0; background: linear-gradient(90deg, var(--pink), var(--yellow), var(--green)); }
.runner span { position: absolute; top: 4px; right: 0; font-size: 22px; line-height: 1; transform: translateX(50%) scaleX(-1); transition: none; }
@media (max-width: 900px) { .runner span { display: none; } }

/* ---------- player select (brawler-select style) ---------- */
.players { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.player {
  --c: var(--yellow);
  position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 10px; text-align: right;
  background: var(--white); color: var(--ink); border: var(--line); border-radius: 26px; box-shadow: 6px 6px 0 var(--c);
  padding: 0 0 16px; cursor: pointer; overflow: hidden;
  transition: transform .25s var(--bounce), box-shadow .25s var(--bounce);
}
.player:hover { transform: perspective(800px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateY(-6px); box-shadow: 10px 12px 0 var(--c); }
.player:active { transform: scale(.96); }
.player[data-c="pink"] { --c: var(--pink); } .player[data-c="cyan"] { --c: var(--cyan); } .player[data-c="lilac"] { --c: var(--lilac); }
.p-top { position: relative; display: grid; place-items: center; height: 150px; background: var(--c); border-bottom: var(--line); overflow: hidden; }
.p-top::before { content: ''; position: absolute; inset: -50%; background: repeating-conic-gradient(rgba(255, 255, 255, .35) 0 10deg, transparent 10deg 20deg); animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.p-emoji { position: relative; font-size: 84px; line-height: 1; filter: drop-shadow(4px 4px 0 var(--ink)); transition: transform .3s var(--bounce); }
.player:hover .p-emoji { transform: scale(1.15) rotate(-8deg); }
.p-rarity { position: absolute; top: 10px; right: 10px; background: var(--ink); color: var(--white); font-weight: 900; font-size: 13px; padding: 3px 10px; border-radius: 8px; }
.p-name { font-size: 28px; font-weight: 900; line-height: 1; padding: 0 16px; }
.p-line { font-size: 15.5px; font-weight: 700; padding: 0 16px; min-height: 2.6em; }
.p-stats { display: flex; flex-direction: column; gap: 6px; padding: 0 16px; }
.p-stat { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 800; }
.p-bar { height: 12px; border: 2.5px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--cream); }
.p-bar i { display: block; height: 100%; width: 0; background: var(--c); border-left: 2px solid var(--ink); transition: width .9s var(--bounce); }
.players.in-view .p-bar i { width: var(--v); }
.p-pick { margin: 4px 16px 0; min-height: 50px; border: var(--line); border-radius: 14px; background: var(--ink); color: var(--white); font-weight: 900; font-size: 18px; display: grid; place-items: center; }
.player[aria-checked="true"] { outline: 5px solid var(--c); outline-offset: 4px; }
.player[aria-checked="true"] .p-pick { background: var(--green); color: var(--ink); }
.player[aria-checked="true"]::after { content: '✓ נבחר'; position: absolute; top: 10px; left: 10px; background: var(--green); border: var(--line); border-radius: 999px; padding: 2px 10px; font-weight: 900; font-size: 14px; animation: popIn .4s var(--bounce); }
@media (max-width: 1000px) { .players { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .players { gap: 12px; }
  .p-top { height: 104px; } .p-emoji { font-size: 58px; }
  .p-name { font-size: 22px; padding: 0 12px; } .p-line { font-size: 14px; padding: 0 12px; }
  .p-stats { display: none; }
  .p-pick { margin: 0 12px; min-height: 46px; font-size: 16px; }
}
.pick-flash {
  position: fixed; inset: 0; z-index: 770; display: grid; place-items: center; pointer-events: none;
  background: rgba(20, 16, 31, .55);
  animation: flashOut 1.4s ease forwards;
}
.pick-flash div { background: var(--yellow); color: var(--ink); border: 5px solid var(--ink); border-radius: 26px; box-shadow: 10px 10px 0 var(--ink); padding: 20px 30px; text-align: center; font-weight: 900; font-size: clamp(30px, 6vw, 60px); line-height: 1.05; animation: popIn .5s var(--bounce) both; }
.pick-flash small { display: block; font-size: .4em; margin-top: 6px; }
.pick-flash b { font-size: 1.6em; display: block; }
@keyframes flashOut { 0%, 75% { opacity: 1; } 100% { opacity: 0; } }

/* recommended missions */
.file.rec::before { content: '⭐ בשבילכם'; position: absolute; z-index: 1; top: -15px; left: 18px; background: var(--yellow); border: var(--line); border-radius: 999px; padding: 2px 12px; font-weight: 900; font-size: 14px; rotate: 4deg; animation: hop 1.8s ease-in-out infinite; }
.file.rec { box-shadow: 6px 6px 0 var(--ink), 0 0 0 4px var(--yellow); }

/* ---------- obby checkpoint track (Roblox-style) ---------- */
.obby { background: var(--white); border: var(--line); border-radius: 24px; box-shadow: var(--shadow-s); padding: 14px 16px 10px; margin-bottom: 34px; }
.obby-head { font-weight: 800; font-size: 17px; margin-bottom: 8px; }
.obby-head b { font-size: 20px; }
.obby-tag { background: var(--green); border: 2.5px solid var(--ink); border-radius: 8px; padding: 1px 8px; font-weight: 900; font-size: 13px; margin-inline-end: 6px; }
.obby-track { list-style: none; margin: 0; padding: 46px 4px 6px; display: flex; gap: 6px; align-items: flex-end; overflow-x: auto; position: relative; scrollbar-width: thin; }
.obby-track li { flex: 1 0 52px; position: relative; display: flex; justify-content: center; }
.obby-track li:nth-child(odd) { margin-bottom: 14px; }
.pad {
  width: 100%; min-width: 52px; height: 46px; border: var(--line); border-radius: 12px 12px 6px 6px; background: var(--cream); cursor: pointer;
  display: grid; place-items: center; font-size: 22px; box-shadow: 0 5px 0 var(--ink); transition: transform .15s var(--bounce), background .2s;
}
.pad:hover { transform: translateY(-3px); }
.pad:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.pad.done { background: var(--green); }
.pad.finish { background: var(--yellow); cursor: default; }
.pad.start { background: var(--white); cursor: default; box-shadow: 0 5px 0 var(--ink); }
.obby-track li:first-child { flex-basis: 44px; }
.obby-me {
  position: absolute; top: 0; left: 0; z-index: 2; font-size: 34px; line-height: 1; pointer-events: none;
  transition: transform .6s cubic-bezier(.34, 1.4, .64, 1);
  filter: drop-shadow(2px 2px 0 var(--ink));
}
.obby-me.jump { animation: jumpArc .6s ease-out; }
@keyframes jumpArc { 0% { translate: 0 0; } 45% { translate: 0 -34px; } 100% { translate: 0 0; } }

/* ---------- starr-drop style reward ---------- */
.drop-slot:empty { display: none; }
.drop-slot { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 6px; }
.drop {
  --c: #3df26b;
  width: 120px; height: 120px; border-radius: 28px; border: 4px solid var(--ink); background: var(--c); box-shadow: 0 8px 0 var(--ink);
  font-size: 58px; display: grid; place-items: center; cursor: pointer; position: relative;
  animation: dropIdle 1.2s ease-in-out infinite;
}
.drop::after { content: ''; position: absolute; inset: -10px; border-radius: 34px; border: 4px dashed var(--c); opacity: .7; animation: spin 6s linear infinite; }
.drop:active { transform: scale(.92); }
.drop.up { animation: dropUp .5s var(--bounce); }
@keyframes dropIdle { 50% { transform: rotate(-4deg) scale(1.04); } }
@keyframes dropUp { 0% { transform: scale(.7) rotate(-10deg); } 60% { transform: scale(1.25) rotate(6deg); } 100% { transform: none; } }
.drop-label { font-weight: 900; font-size: 18px; text-align: center; }
.drop-prize { font-weight: 900; font-size: 22px; background: var(--white); border: var(--line); border-radius: 16px; padding: 10px 14px; text-align: center; animation: popIn .5s var(--bounce) both; }

/* ---------- accessibility button + panels ---------- */
.a11y-btn {
  position: fixed; z-index: 130; left: 16px; bottom: 16px;
  width: 58px; height: 58px; border-radius: 50%; border: 3px solid var(--white); background: #0b57d0; color: var(--white);
  font-size: 30px; line-height: 1; cursor: pointer; box-shadow: 0 0 0 3px var(--ink), 4px 4px 0 3px var(--ink);
  display: grid; place-items: center;
}
.a11y-btn:hover { transform: scale(1.08); }
@media (max-width: 900px) { .a11y-btn { bottom: calc(96px + env(safe-area-inset-bottom)); left: 12px; width: 52px; height: 52px; font-size: 26px; } }
.panel-dialog { width: min(560px, 100vw - 24px); margin: auto; max-height: calc(100dvh - 24px); }
.panel-dialog[open] { display: flex; }
.panel-dialog[open] .panel { animation: sheetIn .4s var(--bounce) both; }
.panel { width: 100%; background: var(--cream); border: 4px solid var(--ink); border-radius: 28px; box-shadow: 10px 10px 0 var(--ink); padding: 20px 22px 22px; overflow: auto; max-height: calc(100dvh - 34px); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-head h2 { font-size: 30px; font-weight: 900; }
.panel-head .sh-close { position: static; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.a11y-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 96px; padding: 12px 8px; border: var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--shadow-s); cursor: pointer; font-weight: 800; font-size: 16px; }
.a11y-opt b { font-size: 28px; line-height: 1; }
.a11y-opt small { font-size: 13px; font-weight: 800; min-height: 1em; }
.a11y-opt[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }
.a11y-opt:active { transform: translate(3px, 3px); box-shadow: none; }
.panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.statement p, .statement li { font-size: 17px; font-weight: 600; line-height: 1.55; }
.statement h3 { font-size: 21px; font-weight: 900; margin: 16px 0 6px; }
.statement ul { margin: 0; padding: 0 22px 0 0; }

/* ---------- trophy road ---------- */
.road-now { font-weight: 800; font-size: 18px; margin-bottom: 14px; }
.road-now b { font-size: 24px; }
.road { list-style: none; margin: 0; padding: 0 0 0 0; display: flex; flex-direction: column; gap: 10px; position: relative; }
.road::before { content: ''; position: absolute; top: 10px; bottom: 10px; right: 27px; width: 8px; background: var(--white); border: 2.5px solid var(--ink); border-radius: 8px; }
.road::after { content: ''; position: absolute; top: 12px; right: 30px; width: 4px; height: var(--fill, 0%); background: var(--green); border-radius: 4px; }
.road li { position: relative; z-index: 1; display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 12px; }
.road .node { width: 62px; height: 62px; border-radius: 50%; border: var(--line); background: var(--white); display: grid; place-items: center; font-size: 28px; filter: grayscale(1); opacity: .65; }
.road li.got .node { filter: none; opacity: 1; background: var(--yellow); box-shadow: 0 0 0 4px var(--green); }
.road .r-txt b { display: block; font-size: 18px; font-weight: 900; }
.road .r-txt span { font-size: 14.5px; font-weight: 700; opacity: .8; }
.road .r-act .btn { min-height: 46px; font-size: 15px; padding: 8px 14px; }
.road .r-lock { font-weight: 900; font-size: 14px; opacity: .7; }
.road-note { margin-top: 14px; font-size: 14px; font-weight: 700; opacity: .75; }

/* ---------- skins (unlocked on the trophy road) ---------- */
html[data-skin="gem"] { --violet: #b0129f; }
html[data-skin="gem"] .hero, html[data-skin="gem"] .final, html[data-skin="gem"] .present { background-image: radial-gradient(rgba(255, 255, 255, .2) 3px, transparent 3.5px), linear-gradient(135deg, #b0129f, #6a1bd8); background-size: 34px 34px, 100% 100%; }
html[data-skin="obby"] { --violet: #0f9d48; }
html[data-skin="obby"] .hero, html[data-skin="obby"] .final, html[data-skin="obby"] .present { background-image: linear-gradient(rgba(255, 255, 255, .12) 2px, transparent 2px), linear-gradient(90deg, rgba(255, 255, 255, .12) 2px, transparent 2px); background-size: 48px 48px; }
html[data-skin="gold"] { --violet: #14101f; }
html[data-skin="gold"] .hero, html[data-skin="gold"] .final, html[data-skin="gold"] .present { background-image: radial-gradient(rgba(255, 226, 52, .25) 2px, transparent 2.5px); background-size: 28px 28px; }
html[data-skin="gold"] .aura { background: var(--yellow); color: var(--ink); }

/* ---------- accessibility modes ---------- */
html.a11y-text main, html.a11y-text .footer, html.a11y-text .panel, html.a11y-text .sheet { zoom: var(--zoom, 1.15); }
html.a11y-font body, html.a11y-font button, html.a11y-font .btn { font-family: Arial, 'Helvetica Neue', sans-serif !important; letter-spacing: .01em; }
html.a11y-font .ht-name, html.a11y-font .l-big, html.a11y-font .g67-hero span { -webkit-text-stroke: 0; text-shadow: none; }
html.a11y-spacing main p, html.a11y-spacing main li, html.a11y-spacing .sheet p, html.a11y-spacing .sheet li { line-height: 1.9 !important; letter-spacing: .02em; word-spacing: .1em; }
html.a11y-links main a, html.a11y-links main button, html.a11y-links .sheet button, html.a11y-links .topbar a, html.a11y-links .topbar button { outline: 3px dashed #0b57d0 !important; outline-offset: 2px; text-decoration: underline !important; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; }
html.a11y-still .marquee-track { transform: none !important; }
html.a11y-still .js [data-pop], html.a11y-still [data-pop], html.a11y-still .letter [data-line] { opacity: 1 !important; transform: none !important; }
html.a11y-contrast body, html.a11y-contrast main section, html.a11y-contrast .footer, html.a11y-contrast .marquee { background: #000 !important; background-image: none !important; color: #fff !important; }
html.a11y-contrast main *, html.a11y-contrast footer *, html.a11y-contrast .sheet *, html.a11y-contrast .panel * { color: inherit; }
html.a11y-contrast .file, html.a11y-contrast .card, html.a11y-contrast .option, html.a11y-contrast .bubbles p, html.a11y-contrast .player, html.a11y-contrast .obby,
html.a11y-contrast .update, html.a11y-contrast .board-empty, html.a11y-contrast .honest, html.a11y-contrast .secret, html.a11y-contrast .result-card,
html.a11y-contrast .countdown > div, html.a11y-contrast .random-card, html.a11y-contrast .p-top, html.a11y-contrast .podium div, html.a11y-contrast .sheet, html.a11y-contrast .sh-head, html.a11y-contrast .sh-mode, html.a11y-contrast .sh-quote, html.a11y-contrast .panel {
  background: #000 !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important;
}
html.a11y-contrast .btn, html.a11y-contrast .file-open, html.a11y-contrast .p-pick, html.a11y-contrast .daily-opts button, html.a11y-contrast .pad, html.a11y-contrast .a11y-opt, html.a11y-contrast .sh-more summary, html.a11y-contrast .status-chip, html.a11y-contrast .file-num {
  background: #ffe234 !important; color: #000 !important; border-color: #fff !important; box-shadow: none !important;
}
html.a11y-contrast .ht-name, html.a11y-contrast .l-big { color: #ffe234 !important; -webkit-text-stroke: 0; text-shadow: none; }
html.a11y-contrast .ht-for, html.a11y-contrast .fs-slogan, html.a11y-contrast .l-hl { background: #000 !important; color: #ffe234 !important; border-color: #fff !important; box-shadow: none !important; }
html.a11y-contrast .stickers, html.a11y-contrast .p-top::before { display: none; }
html.a11y-contrast .option-a { background: #000 !important; color: #fff !important; font-family: inherit !important; }
html.a11y-contrast .option-a::before { display: none; }
html.a11y-contrast .lock-chip, html.a11y-contrast .aura, html.a11y-contrast .logo, html.a11y-contrast .nav, html.a11y-contrast .tabbar { background: #000 !important; color: #fff !important; border-color: #fff !important; }
html.a11y-contrast .nav a.active, html.a11y-contrast .tabbar a.active { background: #ffe234 !important; color: #000 !important; }

/* game: relaxed mode button */
.g-calm { background: none; border: 2px solid rgba(255, 255, 255, .5); color: var(--white); border-radius: 14px; padding: 10px 16px; min-height: 48px; font-weight: 800; font-size: 16px; cursor: pointer; }
.g-calm:hover { border-color: var(--white); }
.g-done { background: var(--yellow); color: var(--ink); border: 0; border-radius: 12px; min-height: 44px; padding: 0 14px; font-weight: 900; cursor: pointer; }

.card.tilt { transition: transform .25s var(--bounce), box-shadow .25s var(--bounce); }
.card.tilt:hover { transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateY(-4px); box-shadow: 9px 10px 0 var(--ink); }

/* ---------- Lori (cut-out photos, sticker style) ---------- */
.lori-img { display: block; height: auto; filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(8px 8px 0 var(--ink)); user-select: none; -webkit-user-drag: none; }
.lori-tap { background: none; border: 0; padding: 0; cursor: pointer; display: block; border-radius: 30px; }
.lori-img.boing { animation: boing .6s var(--bounce); }
@keyframes boing { 0% { transform: none; } 30% { transform: scale(1.06, .94) translateY(6px); } 60% { transform: scale(.97, 1.05) translateY(-14px); } 100% { transform: none; } }
html.a11y-contrast .lori-img { filter: none; }

/* hero: Lori stands in the right-hand column; the bubble is her voice, the button is beside her */
.big-red { display: grid; grid-template-columns: 1fr; justify-items: center; position: relative; gap: 0; }
.big-red > .lori-tap { grid-row: 1; grid-column: 1; }
#loriHero { height: min(68vh, 620px); width: auto; transform-origin: 50% 100%; }
.big-red .red-say { position: absolute; top: 3%; left: auto; right: calc(50% + 58px); width: max-content; max-width: 220px; z-index: 3; }
.big-red .red-say::before { top: 50%; left: auto; right: -12px; transform: translateY(-50%) rotate(45deg); }
.big-red .red-btn { position: absolute; bottom: 4%; right: -8%; width: clamp(130px, 13vw, 170px); z-index: 3; font-size: clamp(22px, 2.2vw, 28px); }
@media (max-width: 900px) {
  .big-red { grid-template-columns: 1fr auto; grid-template-areas: "say lori" "btn lori"; align-items: center; justify-items: center; gap: 12px 10px; margin: 18px 0 8px; }
  .big-red > .lori-tap { grid-area: lori; }
  #loriHero { height: 270px; }
  .big-red .red-say { grid-area: say; position: relative; top: auto; left: auto; right: auto; width: auto; max-width: 210px; align-self: end; }
  .big-red .red-say::before { top: 50%; right: auto; left: -12px; transform: translateY(-50%) rotate(-135deg); }
  .big-red .red-btn { grid-area: btn; position: relative; bottom: auto; right: auto; width: 124px; align-self: start; }
}

/* Lori next to her chat */
.lori-talk { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; }
.lori-side { grid-column: 2; grid-row: 1; width: clamp(150px, 22vw, 290px); position: sticky; top: 90px; }
.lori-talk .bubbles { grid-column: 1; grid-row: 1; }
@media (max-width: 680px) { .lori-talk { grid-template-columns: minmax(0, 1fr) 110px; gap: 10px; } .lori-side { width: 110px; } .bubbles p:nth-child(even) { margin-inline-start: 0; } }

/* Lori signs off at the end */
.lori-end { height: min(46vh, 420px); width: auto; margin-bottom: -6px; }
@media (max-width: 680px) { .lori-end { height: 300px; } }

/* game logos */
.obby-logo { display: inline-block; height: 18px; width: auto; vertical-align: -2px; margin-inline-end: 4px; }
.pad-ico { display: inline-block; }
img.pad-ico { width: 30px; height: 30px; object-fit: contain; }
.sh-logo { display: block; height: 70px; width: auto; max-width: 70%; margin-bottom: 6px; }
.road-logo { display: inline-block; width: 40px; height: 40px; vertical-align: middle; }
.legal { font-size: 13px !important; opacity: .6 !important; }
.s-grid .gi img { width: 1em; height: 1em; object-fit: contain; display: block; }
.s-icon img { height: .7em; width: auto; display: block; }
.s-with-lori { padding-left: max(6vw, 30vh); }
.s-lori { position: absolute; left: 4vw; bottom: 2vh; height: 82%; width: auto; }
@media (max-width: 760px) { .s-lori { display: none; } .s-with-lori { padding-left: 6vw; } }

/* ---------- music ---------- */
.music-btn { position: relative; display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 50%; border: var(--line); background: var(--ink); box-shadow: var(--shadow-s); cursor: pointer; overflow: visible; }
.music-btn img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.music-btn::after { content: ''; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); border: 2px solid var(--white); }
.music-btn .mb-state { position: absolute; bottom: -6px; left: -6px; font-size: 14px; background: var(--white); border: 2px solid var(--ink); border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; line-height: 1; }
.music-btn.on img { animation: spin 3s linear infinite; }
.music-card { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 26px; align-items: start; background: #241a3d; border: 3px solid var(--white); border-radius: 26px; padding: 22px; margin-bottom: 34px; }
.music-card .h3 { margin: 4px 0 8px; }
.music-card p { font-weight: 600; opacity: .9; }
.music-kicker { font-weight: 900 !important; color: var(--yellow); opacity: 1 !important; }
.music-frame { margin-top: 14px; width: min(100%, 420px); aspect-ratio: 16 / 9; min-height: 200px; border-radius: 16px; overflow: hidden; border: 3px solid var(--white); background: #000; }
.music-frame iframe, .music-frame > div { width: 100%; height: 100%; display: block; }
.cover-btn { position: relative; padding: 0; border: 4px solid var(--white); border-radius: 22px; overflow: hidden; cursor: pointer; background: #000; box-shadow: 8px 8px 0 var(--pink); transition: transform .2s var(--bounce); }
.cover-btn img { display: block; width: 100%; height: auto; }
.cover-btn:hover { transform: rotate(-1.5deg) scale(1.02); }
.cover-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--ink); border: 4px solid var(--ink); font-size: 34px; font-weight: 900; box-shadow: 4px 4px 0 var(--ink); }
.cover-btn.on .cover-play { width: 62px; height: 62px; font-size: 22px; top: auto; left: auto; right: 12px; bottom: 12px; transform: none; }
.music-info { min-width: 0; }
.footer { overflow-x: clip; }
@media (max-width: 760px) { .music-card { grid-template-columns: minmax(0, 1fr); padding: 16px; } .cover-btn { width: min(320px, 100%); justify-self: center; } }

/* ---------- mission 010 sheet extras ---------- */
.sh-code { font-weight: 900; font-size: 12.5px; letter-spacing: .08em; margin-top: 10px; background: var(--ink); color: var(--lime); display: inline-block; padding: 4px 10px; border-radius: 8px; }
.sh-intro { display: flex; flex-direction: column; gap: 8px; background: var(--ink); color: var(--white); border-radius: 22px; padding: 18px 20px; }
.sh-intro p { font-weight: 800; font-size: clamp(19px, 2.4vw, 24px); line-height: 1.3; animation: popIn .45s var(--bounce) both; animation-delay: calc(.1s + var(--i) * 120ms); }
.sh-intro p:last-child { color: var(--lime); font-weight: 900; }
.sh-lab { align-self: stretch; }
.boss-alert { border: 4px solid var(--red); border-radius: 22px; background: #2a0a0a; color: var(--white); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; animation: bossPulse 1.6s ease-in-out infinite; }
.boss-alert b { color: var(--red); font-size: clamp(22px, 3vw, 30px); font-weight: 900; letter-spacing: .04em; }
.boss-alert span { font-size: 21px; font-weight: 900; }
.boss-alert p { font-size: 16px; font-weight: 600; opacity: .9; }
@keyframes bossPulse { 50% { box-shadow: 0 0 0 6px rgba(255, 59, 59, .35); } }
.sh-ending { background: var(--ink); color: var(--white); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 6px; text-align: center; align-items: center; }
.sh-ending p { font-size: 20px; font-weight: 800; }
.sh-ending p:nth-last-child(3) { color: var(--lime); font-size: 28px; font-weight: 900; }
.end-display { display: flex; flex-direction: column; gap: 2px; margin: 12px 0; padding: 14px 22px; border: 3px solid var(--lime); border-radius: 16px; font-weight: 900; letter-spacing: .1em; }
.end-display b { font-size: clamp(24px, 4vw, 34px); color: var(--lime); }
.end-display span { font-size: 14px; opacity: .85; }

/* ---------- STYLE LAB 006 ---------- */
.lab-card { background: var(--ink); color: var(--white); align-items: center; text-align: center; }
.lab-card .card-tag { color: var(--lime); }
.lab-card p { font-weight: 700; }
.lab-card .btn { width: 100%; margin-top: auto; }
.lab-card-doll { width: 130px; border-radius: 18px; overflow: hidden; border: 3px solid var(--lime); }
.lab-card-doll svg { width: 100%; height: auto; display: block; }
.lab-dialog { width: min(980px, 100vw - 16px); margin: auto; max-height: calc(100dvh - 16px); }
.lab-dialog[open] { display: flex; }
.lab-dialog[open] .lab { animation: sheetIn .45s var(--bounce) both; }
.lab { width: 100%; background: var(--ink); color: var(--white); border: 4px solid var(--lime); border-radius: 28px; box-shadow: 10px 10px 0 var(--lime); padding: 16px; overflow: auto; max-height: calc(100dvh - 26px); display: flex; flex-direction: column; gap: 12px; }
.lab-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lab-badge { background: var(--lime); color: var(--ink); font-weight: 900; font-size: 13px; letter-spacing: .1em; padding: 4px 10px; border-radius: 8px; }
.lab-title { font-size: clamp(22px, 3vw, 30px); font-weight: 900; }
.lab-close { margin-inline-start: auto; width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--white); color: var(--ink); font-weight: 900; font-size: 18px; cursor: pointer; }
.lab-timer { font-weight: 900; font-size: 22px; background: #241a3d; border: 2px solid var(--lime); color: var(--lime); padding: 2px 12px; border-radius: 10px; font-variant-numeric: tabular-nums; }
.lab-timer.low { color: var(--red); border-color: var(--red); animation: bump .8s infinite; }
.lab-stage { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 10px 0 6px; }
.lab-hint { font-weight: 700; opacity: .8; }
.lab-reroll { color: var(--lime); }
/* wardrobe doors */
.wardrobe { position: relative; width: min(420px, 86vw); height: 300px; perspective: 1000px; border: 4px solid var(--lime); border-radius: 18px; background: #241a3d; overflow: hidden; }
.wd { position: absolute; top: 0; bottom: 0; width: 50%; background: repeating-linear-gradient(90deg, #3a2a66 0 18px, #33255c 18px 36px); border: 3px solid var(--ink); display: grid; place-items: center; z-index: 2; transition: transform .7s var(--bounce); }
.wd-r { right: 0; transform-origin: right center; } .wd-l { left: 0; transform-origin: left center; }
.wd-handle { position: absolute; top: 46%; width: 10px; height: 46px; border-radius: 6px; background: var(--lime); }
.wd-r .wd-handle { left: 14px; } .wd-l .wd-handle { right: 14px; }
.wd-label { font-weight: 900; font-size: 34px; color: var(--lime); opacity: .8; }
.wardrobe.open .wd-r { transform: rotateY(-105deg); } .wardrobe.open .wd-l { transform: rotateY(105deg); }
.theme-card { position: absolute; inset: 22px; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; background: var(--lime); color: var(--ink); border: 4px solid var(--ink); border-radius: 16px; padding: 14px; }
.wardrobe.open .theme-card { animation: themeIn .6s var(--bounce) .25s both; }
@keyframes themeIn { from { transform: scale(.4) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
.theme-card b { font-size: clamp(28px, 5vw, 40px); font-weight: 900; line-height: 1.05; }
.theme-card span { font-size: 18px; font-weight: 700; }
.tc-kicker { font-size: 13px !important; font-weight: 900 !important; letter-spacing: .12em; background: var(--ink); color: var(--lime); padding: 2px 8px; border-radius: 6px; }
.tc-swatch { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--ink); vertical-align: middle; }
.theme-banner { background: var(--lime); color: var(--ink); font-weight: 900; font-size: clamp(18px, 2.4vw, 24px); text-align: center; border-radius: 14px; padding: 8px 12px; }
.theme-banner span { font-size: 12px; letter-spacing: .12em; background: var(--ink); color: var(--lime); padding: 2px 6px; border-radius: 5px; vertical-align: middle; margin-inline-end: 6px; }
/* studio */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.doll-box { grid-column: 2; grid-row: 1; border: 4px solid var(--lime); border-radius: 20px; overflow: hidden; background: #241a3d; }
.doll-box svg { width: 100%; height: auto; display: block; }
.doll-box.pop { animation: jelly .45s var(--bounce); }
.studio-ctrl { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lab-tabs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.lab-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 58px; padding: 6px 2px; border-radius: 14px; border: 2px solid #4a3d70; background: #241a3d; color: var(--white); font-weight: 800; font-size: 13px; cursor: pointer; }
.lab-tab i { font-style: normal; font-size: 22px; line-height: 1; }
.lab-tab[aria-selected="true"] { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.lab-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.lab-item { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 84px; padding: 8px 4px; border-radius: 16px; border: 3px solid #4a3d70; background: #2b2148; color: var(--white); font-weight: 800; font-size: 14px; cursor: pointer; transition: transform .15s var(--bounce); }
.lab-item i { font-style: normal; font-size: 30px; line-height: 1; }
.lab-item:hover { transform: translateY(-3px); }
.lab-item:active { transform: scale(.94); }
.lab-item[aria-pressed="true"] { border-color: var(--lime); background: #3a4a16; box-shadow: 0 0 0 3px rgba(196, 255, 58, .25); }
.lab-sub { font-weight: 800; font-size: 14px; opacity: .85; margin-top: 2px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--white); cursor: pointer; box-shadow: 0 0 0 2px var(--ink); }
.sw[aria-pressed="true"] { outline: 4px solid var(--lime); outline-offset: 2px; transform: scale(1.1); }
.studio-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.studio-actions .btn-xl { flex: 1; }
.studio-actions .nudge { animation: bump .8s infinite; }
@media (max-width: 720px) {
  .studio { grid-template-columns: 1fr; }
  .doll-box { grid-column: 1; grid-row: 1; width: 128px; justify-self: center; position: sticky; top: -16px; z-index: 2; box-shadow: 0 10px 20px rgba(0, 0, 0, .5); }
  .lab-top { flex-wrap: nowrap; }
  .lab-badge { display: none; }
  .lab-title { font-size: 20px; }
  .lab { padding: 12px; }
  .studio-ctrl { grid-row: 2; }
  .lab-tabs { grid-template-columns: repeat(3, 1fr); }
  .lab-items { grid-template-columns: repeat(3, 1fr); }
}
/* runway */
.runway { position: relative; height: min(56vh, 480px); border-radius: 20px; overflow: hidden; border: 4px solid var(--lime); background: radial-gradient(ellipse at 50% 0%, #3c2a7a, #120c24 70%); }
.rw-floor { position: absolute; left: 50%; bottom: 0; width: 70%; height: 72%; transform: translateX(-50%); background: linear-gradient(#2b2148, #4a3d70); clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); }
.rw-floor::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(transparent 0 26px, rgba(196, 255, 58, .5) 26px 29px); clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); }
.rw-lights { position: absolute; inset: 0 0 auto; display: flex; justify-content: space-around; }
.rw-lights i { width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); margin-top: 12px; box-shadow: 0 0 18px 6px rgba(255, 226, 52, .6); animation: blinkL 1s ease-in-out infinite; }
.rw-lights i:nth-child(even) { animation-delay: .5s; background: var(--pink); box-shadow: 0 0 18px 6px rgba(255, 79, 177, .6); }
@keyframes blinkL { 50% { opacity: .35; } }
.rw-walker { position: absolute; left: 50%; bottom: 4%; width: 30%; max-width: 190px; transform: translateX(-50%); transform-origin: 50% 100%; animation: walkIn 2.2s cubic-bezier(.3, .7, .3, 1) both; }
.rw-walker svg { width: 100%; height: auto; display: block; }
@keyframes walkIn {
  0% { transform: translateX(-50%) translateY(-55%) scale(.38); }
  20% { transform: translateX(-50%) translateY(-42%) scale(.5) rotate(-3deg); }
  40% { transform: translateX(-50%) translateY(-28%) scale(.64) rotate(3deg); }
  60% { transform: translateX(-50%) translateY(-15%) scale(.78) rotate(-3deg); }
  80% { transform: translateX(-50%) translateY(-5%) scale(.92) rotate(2deg); }
  100% { transform: translateX(-50%) scale(1); }
}
.runway.still .rw-walker { animation: none; }
.rw-walker.pose-a { animation: poseA .6s var(--bounce); } .rw-walker.pose-b { animation: poseB .7s var(--bounce); }
.rw-walker.pose-c { animation: poseC .6s var(--bounce); } .rw-walker.pose-d { animation: poseD .8s var(--bounce); }
@keyframes poseA { 50% { transform: translateX(-50%) rotate(-10deg) scale(1.05); } 100% { transform: translateX(-50%); } }
@keyframes poseB { 50% { transform: translateX(-50%) translateY(-18%) scale(1.06); } 100% { transform: translateX(-50%); } }
@keyframes poseC { 50% { transform: translateX(-50%) scaleX(-1); } 100% { transform: translateX(-50%); } }
@keyframes poseD { 30% { transform: translateX(-50%) rotate(10deg); } 60% { transform: translateX(-50%) rotate(-10deg); } 100% { transform: translateX(-50%); } }
.rw-done { position: absolute; top: 14%; left: 0; right: 0; display: grid; place-items: center; pointer-events: none; }
.rw-stamp { color: var(--lime); font-size: clamp(24px, 5vw, 44px); background: rgba(20, 16, 31, .7); }
.rw-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rw-actions .btn { min-height: 54px; font-size: 16px; padding: 8px 10px; }
@media (max-width: 720px) { .rw-actions { grid-template-columns: 1fr 1fr; } .runway { height: 50vh; } .rw-walker { width: 44%; } }
.flame { animation: flicker .25s ease-in-out infinite alternate; transform-origin: center top; }
@keyframes flicker { to { transform: scaleY(1.25); opacity: .8; } }
html.a11y-contrast .lab, html.a11y-contrast .music-card { background: #000 !important; border-color: #fff !important; }

/* ---------- campaign posters ---------- */
.poster { display: block; padding: 0; border: 4px solid var(--ink); border-radius: 20px; overflow: hidden; background: var(--ink); cursor: zoom-in; box-shadow: 8px 8px 0 var(--ink); rotate: -2deg; transition: rotate .25s var(--bounce), transform .25s var(--bounce); }
.poster img { display: block; width: 100%; height: auto; }
.poster:hover { rotate: 1deg; transform: scale(1.03); }
.lori-talk .poster.lori-side { width: clamp(170px, 26vw, 330px); }
@media (max-width: 680px) { .lori-talk .poster.lori-side { width: 128px; border-width: 3px; border-radius: 14px; box-shadow: 5px 5px 0 var(--ink); } }
.players-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: end; }
.players-lori { height: clamp(170px, 24vw, 280px); width: auto; margin-bottom: -10px; }
@media (max-width: 560px) { .players-lori { height: 150px; } }
.secret { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 10px 30px; align-items: start; }
.secret > .secret-locked, .secret > .secret-open { grid-column: 1; grid-row: 1; }
.poster-secret { grid-column: 2; grid-row: 1; border-color: var(--white); box-shadow: 8px 8px 0 var(--pink); rotate: 2deg; }
@media (max-width: 760px) { .secret { grid-template-columns: 1fr; } .poster-secret { grid-column: 1; grid-row: 2; width: min(260px, 80%); justify-self: center; } }
.poster-final { width: min(420px, 86vw); rotate: -2.5deg; box-shadow: 10px 10px 0 var(--ink); }
.updates-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; }
.lori-reporter { height: clamp(200px, 30vw, 380px); width: auto; position: sticky; top: 100px; }
@media (max-width: 680px) { .updates-wrap { grid-template-columns: minmax(0, 1fr) 90px; gap: 10px; } .lori-reporter { height: 240px; } }
.poster-dialog { width: min(720px, 100vw - 24px); max-height: calc(100dvh - 24px); margin: auto; position: relative; }
.poster-dialog[open] { display: block; animation: sheetIn .4s var(--bounce) both; }
.poster-dialog img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 40px); object-fit: contain; border: 4px solid var(--white); border-radius: 20px; background: var(--ink); }
.poster-dialog .sh-close { position: absolute; top: 12px; left: 12px; }
/* loading screen: the song */
.boot-song { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 18px; background: var(--ink); color: var(--white); border-radius: 999px; padding: 6px 16px 6px 6px; }
.boot-song img { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--white); animation: spin 4s linear infinite; }
html.a11y-contrast .poster, html.a11y-contrast .cover-btn { box-shadow: none !important; border-color: #fff !important; }
