/* Young edition v0.2: sticker islands. Every card its own bright light tint + hard ink outline + coloured glow.
   Dark ink text only; buttons never the tint of their card. */
:root {
  --y-lemon: #fff38a; --y-lime: #d9f99d; --y-sky: #bfe3ff; --y-mint: #b8f5dc; --y-lilac: #ddd3ff; --y-aqua: #bdf3f3; --y-orange: #ffd8a8;
  --y-ink: #120b26;
}
body { background: #16072e; }
.hud-brand { display: inline-flex; align-items: center; gap: 8px; background: var(--y-lemon); border: 2px solid var(--y-ink); }
.hud-brand img { display: block; }
.hud-chapter { background: var(--y-aqua); border: 2px solid var(--y-ink); }
.hud-sound { background: var(--y-lime); border: 2px solid var(--y-ink); }
.loader-pill { background: var(--y-lemon); border: 3px solid var(--y-ink); box-shadow: 6px 6px 0 #ff5fa2; }
#loader { background: #16072e; }

/* ticker */
.ticker { position: fixed; left: 0; right: 0; bottom: 0; z-index: 12; background: var(--y-lemon); border-top: 3px solid var(--y-ink); overflow: hidden; white-space: nowrap; pointer-events: none; }
.ticker-track { display: inline-flex; animation: tick 26s linear infinite; }
.ticker span { font: 800 14px/1 var(--font); text-transform: uppercase; letter-spacing: 0.06em; padding: 8px 0; color: var(--y-ink); }
@keyframes tick { to { transform: translateX(-50%); } }
.proto-note { bottom: 44px; background: var(--y-orange); border: 2px solid var(--y-ink); }

/* cards */
.card { border: 3px solid var(--y-ink); border-radius: 26px; padding: 26px 28px 24px; transform: rotate(var(--tilt, -0.8deg)); transition: transform 0.4s cubic-bezier(.3,1.6,.5,1); }
.card:hover { transform: rotate(0deg) scale(1.01); }
.card p { color: var(--y-ink); }
.card h1, .card h2 { font-family: var(--font); font-style: normal; font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; color: var(--y-ink); }
.card h1 { font-size: clamp(42px, 5.2vw, 66px); text-transform: uppercase; }
.card h2 { font-size: clamp(32px, 4.2vw, 50px); }
.kicker { display: inline-block; background: var(--y-ink); color: #fff !important; padding: 4px 10px; border-radius: 999px; }
.lead { font-size: 19px; font-weight: 600; }
.small { font-size: 14.5px; font-weight: 600; }
.hint { font-weight: 700; }
.y1 { background: var(--y-lilac); --tilt: -1.2deg; box-shadow: 8px 8px 0 var(--y-ink), 0 0 70px 6px rgba(167,139,250,0.75); width: min(600px, 100%); }
.y2 { background: var(--y-lemon); --tilt: 1deg; box-shadow: 8px 8px 0 var(--y-ink), 0 0 70px 6px rgba(250,204,21,0.7); }
.y3 { background: var(--y-aqua); --tilt: -0.6deg; box-shadow: 8px 8px 0 var(--y-ink), 0 0 70px 6px rgba(34,211,238,0.7); }
.y4 { background: var(--y-lime); --tilt: 0.9deg; box-shadow: 8px 8px 0 var(--y-ink), 0 0 70px 6px rgba(163,230,53,0.7); }
.y5 { background: var(--y-sky); --tilt: -1deg; box-shadow: 8px 8px 0 var(--y-ink), 0 0 70px 6px rgba(56,189,248,0.75); width: min(560px, 100%); }
.y6 { background: var(--y-orange); --tilt: 0.7deg; box-shadow: 8px 8px 0 var(--y-ink), 0 0 70px 6px rgba(251,146,60,0.75); }
.y1 .kicker, .y2 .kicker, .y3 .kicker, .y4 .kicker, .y5 .kicker, .y6 .kicker { color: #fff; }

.sticker { display: inline-block; padding: 0 0.16em; border: 3px solid var(--y-ink); border-radius: 0.18em; transform: rotate(-3deg); box-shadow: 5px 5px 0 var(--y-ink); margin: 0.06em 0; }
.s-lime { background: var(--y-lime); }

.row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.btn { border: 3px solid var(--y-ink); box-shadow: 4px 4px 0 var(--y-ink); font-weight: 800; transition: transform 0.15s, box-shadow 0.15s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--y-ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--y-ink); }
.btn.big { font-size: 18px; padding: 14px 24px; margin: 6px 0 14px; }
.b-lime { background: var(--y-lime); } .b-sky { background: var(--y-sky); } .b-lemon { background: var(--y-lemon); } .b-mint { background: var(--y-mint); }
.btn[aria-pressed="true"] { background: var(--y-ink); color: #fff; }

/* noise counter */
.pings { display: inline-flex; align-items: baseline; gap: 10px; background: #fff; border: 3px solid var(--y-ink); border-radius: 16px; padding: 8px 16px; margin: 4px 10px 8px 0; }
.pings b { font: 800 34px/1 var(--mono); color: #c2185b; min-width: 2.4ch; }
.pings.calm b { color: #0a7a46; }
.pings span { font-weight: 700; font-size: 14px; }

/* story reel */
.reel-wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; align-items: start; margin-top: 6px; }
.reel { position: relative; border: 3px solid var(--y-ink); border-radius: 18px; overflow: hidden; background: #0b0820; aspect-ratio: 553 / 310; box-shadow: 6px 6px 0 var(--y-ink); }
.reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: pop 0.5s cubic-bezier(.3,1.5,.5,1); }
@keyframes pop { from { transform: scale(1.12) rotate(1.5deg); opacity: 0.2; } to { transform: none; opacity: 1; } }
.bars { position: absolute; z-index: 2; left: 8px; right: 8px; top: 8px; display: flex; gap: 4px; }
.bars i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.35); overflow: hidden; }
.bars i b { display: block; height: 100%; width: 0; background: #fff; }
.bars i.done b { width: 100%; }
.tap { position: absolute; z-index: 3; top: 0; bottom: 0; width: 40%; background: transparent; border: 0; cursor: pointer; }
.tap-l { left: 0; } .tap-r { right: 0; }
.tap:focus-visible { outline: 3px solid var(--y-lemon); outline-offset: -6px; }
.reel-cap { background: #fff; border: 3px solid var(--y-ink); border-radius: 18px; padding: 12px 14px; }
.reel-cap b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.reel-cap .role { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; border: 2px solid var(--y-ink); margin: 2px 0 8px; }
.reel-cap p { font-size: 16px; font-weight: 600; margin: 0 0 10px; min-height: 3.1em; }
.dots { display: flex; flex-wrap: wrap; gap: 5px; }
.dots button { border: 2px solid var(--y-ink); border-radius: 999px; padding: 3px 9px; font: 700 12.5px var(--font); color: var(--y-ink); cursor: pointer; }
.dots button[aria-pressed="true"] { background: var(--y-ink) !important; color: #fff; }

/* moods */
.moods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 12px; }
.mood { border: 3px solid var(--y-ink); border-radius: 16px; padding: 14px 10px; font: 800 17px var(--font); color: var(--y-ink); cursor: pointer; box-shadow: 4px 4px 0 var(--y-ink); transition: transform 0.15s; }
.mood:hover { transform: translate(-2px, -2px); }
.m-focus { background: var(--y-sky); } .m-game { background: var(--y-lilac); } .m-chill { background: var(--y-orange); } .m-sleep { background: var(--y-aqua); }
.mood[aria-pressed="true"] { background: var(--y-ink); color: #fff; box-shadow: 4px 4px 0 #ff5fa2; }
.mood-text { background: #fff; border: 3px solid var(--y-ink); border-radius: 14px; padding: 10px 14px; font-weight: 700; min-height: 4.6em; }

/* privacy promise */
.promise { background: #fff; border: 3px solid var(--y-ink); border-radius: 18px; padding: 14px 16px 10px; margin-top: 10px; }
.promise-kicker { font-size: 12px; font-weight: 800; text-transform: uppercase; margin: 0 0 2px !important; color: #0b4f8a !important; }
.promise h3 { margin: 0 0 6px; font-size: 21px; font-weight: 800; }
.promise ul { margin: 0 0 8px; padding-left: 18px; font-size: 14.5px; }
.promise li { margin-bottom: 4px; }
.promise-note { font-size: 13px; font-weight: 600; }

/* join */
.steps { margin: 0 0 12px; padding-left: 22px; font-size: 16px; }
.steps li { margin-bottom: 6px; }
details { background: #fff; border: 2px solid var(--y-ink); border-radius: 12px; padding: 8px 12px; margin-bottom: 6px; }
details:nth-of-type(2) { background: #fffbe0; } details:nth-of-type(3) { background: #eefcf4; }
summary { font-weight: 800; cursor: pointer; }
details p { margin: 6px 0 2px !important; font-size: 15px; }

/* confetti burst layer (DOM, cheap) */
.burst { position: fixed; inset: 0; z-index: 11; pointer-events: none; overflow: hidden; }
.burst i { position: absolute; width: 10px; height: 14px; border: 2px solid var(--y-ink); border-radius: 3px; }

/* labels next to hero cards in the 3D scene */
.hero-tag { position: fixed; left: 0; top: 0; z-index: 5; pointer-events: none; padding: 3px 10px; border: 2px solid var(--y-ink); border-radius: 999px; font: 800 12.5px var(--font); color: var(--y-ink); white-space: nowrap; transform: translate(-50%, 0); opacity: 0; transition: opacity 0.3s; }
.hero-tag.show { opacity: 1; }

@media (max-width: 960px) { .reel-wrap { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .hud-brand { display: none; }
  .hud-chapter, .hud-sound { white-space: nowrap; }
  .card { transform: none; padding: 20px 18px; }
  .card:hover { transform: none; }
  .card h1 { font-size: 44px; }
  .card h2 { font-size: 32px; }
  .lead { font-size: 17px; }
  .chapter { padding-bottom: 64px; }
  .ticker span { font-size: 12px; padding: 6px 0; }
  .reel-cap p { min-height: 0; }
  .hero-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .reel img { animation: none; }
  .card, .btn, .mood { transition: none; }
  .burst { display: none; }
}

/* v0.2 */
.pop .word { display: inline-block; white-space: nowrap; }
.pop .ch { display: inline-block; animation: chpop 0.6s cubic-bezier(.3,1.7,.5,1) both; white-space: pre; }
@keyframes chpop { from { transform: translateY(0.6em) scale(0.4) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
.sticker { animation: wobble 3.2s ease-in-out 1.6s infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(-1deg) scale(1.03); } }
.progress { position: fixed; left: 0; right: 0; top: 0; height: 6px; z-index: 30; background: rgba(255,255,255,0.12); pointer-events: none; }
.progress i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #a3e635, #22d3ee, #a78bfa, #fb923c, #facc15); }
.reel { touch-action: pan-y; }
@media (prefers-reduced-motion: reduce) { .pop .ch, .sticker { animation: none; } }
