/* 7 Colors 1 Ending: mint like the YouTube banner, dark green ink, a grassy hill, and seven colors as accents. */
@font-face { font-family: 'Fredoka'; src: url('../fonts/Fredoka-latin-variable.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }

:root {
  --mint: #cdeee0;
  --mint-2: #e6f7ef;
  --grass: #6cc070;
  --grass-dark: #3f9a4f;
  --ink: #173c33;
  --ink-soft: #3d6157;
  --paper: #ffffff;
  --line: #a9d9c4;
  --rainbow: linear-gradient(90deg, #ff3b3b, #ff8c1a, #ffd60a, #36d15a, #1fa3ff, #4f5bff, #a64dff);
  --radius: 22px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--mint); color: var(--ink);
  font: 500 17px/1.55 Fredoka, system-ui, sans-serif;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ---------------------------------------------------------------- header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  /* stays at the top while you scroll; the padding keeps the content as wide as the page below */
  position: sticky; top: 0; z-index: 50;
  padding: 12px max(20px, calc((100% - 1120px) / 2));
  background: var(--mint); background: color-mix(in srgb, var(--mint) 94%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 2px 0 rgba(23, 60, 51, 0.10);
}
section[id], #play { scroll-margin-top: 90px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; }
.brand img { width: 40px; height: 40px; }
.top nav { display: flex; gap: 18px; font-weight: 600; }
.top nav a { text-decoration: none; padding: 4px 2px; border-bottom: 2px solid transparent; }
.top nav a:hover { border-bottom-color: var(--ink); }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; max-width: 1160px; margin: 0 auto; padding: 24px 20px 120px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, 420px); gap: 48px; align-items: center;
}
.hero { align-items: start; }
.hero::after { /* the grassy hill under the hero, as in the banner */
  content: ""; position: absolute; left: 50%; bottom: 0; width: 100vw; height: 130px; transform: translateX(-50%); z-index: -1;
  background:
    radial-gradient(120% 140px at 30% 140px, var(--grass) 98%, transparent 100%),
    radial-gradient(90% 120px at 85% 150px, var(--grass-dark) 98%, transparent 100%);
}
.kicker { margin: 0 0 6px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-size: 14px; }
h1 { margin: 0 0 14px; font-size: clamp(32px, 4.2vw, 48px); line-height: 1.05; font-weight: 700; }
.rainbow-text { background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 1px rgba(23, 60, 51, .25); }
.lead { font-size: 19px; max-width: 34em; margin: 0 0 24px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; cursor: pointer;
  font: 700 16px Fredoka, system-ui, sans-serif; color: var(--ink); background: var(--paper);
  border: 2.5px solid var(--ink); border-radius: 14px; padding: 10px 18px; box-shadow: 0 4px 0 var(--ink);
  transition: transform .06s, box-shadow .06s;
}
.btn:hover { background: var(--mint-2); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn.small { padding: 8px 14px; font-size: 15px; }
.btn.yt::before, .btn.tt::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.btn.yt::before { background: #ff3b3b; }
.btn.tt::before { background: #1fa3ff; }

/* ---------------------------------------------------------------- the live run */
.stage { display: grid; justify-items: center; gap: 12px; }
.phone {
  position: relative; width: min(100%, 360px); aspect-ratio: 9 / 16;
  border-radius: 34px; padding: 10px; background: var(--ink);
  box-shadow: 0 18px 40px rgba(23, 60, 51, .28);
}
.phone canvas { width: 100%; height: 100%; border-radius: 26px; display: block; cursor: pointer; background: var(--mint); }
.screen-note {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: calc(100% - 48px);
  text-align: center; font-weight: 700; font-size: 16px; color: var(--ink);
  background: rgba(255, 255, 255, .92); border-radius: 14px; padding: 8px 12px; box-shadow: 0 3px 0 rgba(23, 60, 51, .25);
}
.screen-note[hidden] { display: none; }

.pick { display: grid; justify-items: center; gap: 6px; }
.pick-label { font-weight: 700; font-size: 15px; }
.dots { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.dot {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; padding: 0;
  background: var(--c); border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--ink);
  transition: transform .1s;
}
.dot:hover { transform: scale(1.12); }
.dot[aria-pressed="true"] { transform: scale(1.18); box-shadow: 0 0 0 3px var(--ink), 0 0 0 7px var(--c); }
.dot:focus-visible, .btn:focus-visible, .round:focus-visible { outline: 3px solid #1f6feb; outline-offset: 3px; }

.controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.round {
  width: 46px; height: 46px; border-radius: 50%; font-size: 18px; cursor: pointer;
  color: var(--paper); background: var(--ink); border: none; box-shadow: 0 4px 0 #0c221c;
}
.sound { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.stage-caption { margin: 0; font-size: 14px; color: var(--ink-soft); text-align: center; max-width: 360px; }

/* ---------------------------------------------------------------- how it works */
.how { background: var(--grass); padding: 8px 20px 72px; }
.how h2, .how .how-note { max-width: 1160px; margin-left: auto; margin-right: auto; }
.how h2 { margin-top: 0; margin-bottom: 26px; font-size: 36px; color: var(--paper); text-shadow: 0 2px 0 var(--grass-dark); }
.steps { list-style: none; padding: 0; margin: 0 auto; max-width: 1160px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.steps li { background: var(--paper); border: 2.5px solid var(--ink); border-radius: var(--radius); padding: 22px; box-shadow: 0 5px 0 var(--ink); }
.steps h3 { margin: 10px 0 6px; font-size: 22px; }
.steps p { margin: 0; }
.step-dot { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c); color: var(--paper); font-weight: 700; font-size: 20px; border: 3px solid var(--ink); text-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.how-note { margin-top: 26px; color: var(--paper); font-size: 18px; text-shadow: 0 1px 0 var(--grass-dark); }

/* ---------------------------------------------------------------- videos */
.watch { padding: 64px 20px; }
.watch-card {
  max-width: 1160px; margin: 0 auto; background: var(--paper); border: 2.5px solid var(--ink); border-radius: var(--radius);
  overflow: hidden; display: grid; box-shadow: 0 6px 0 var(--ink);
}
.watch-card img { width: 100%; height: auto; aspect-ratio: 1546 / 423; object-fit: cover; border-bottom: 2.5px solid var(--ink); }
.watch-text { padding: 28px; display: grid; align-content: center; gap: 14px; }
.watch-text h2 { margin: 0; font-size: 30px; }
.watch-text p { margin: 0; }

/* ---------------------------------------------------------------- footer and text pages */
.foot { text-align: center; padding: 26px 20px 40px; font-size: 14px; color: var(--ink-soft); }
.foot p { margin: 4px 0; }

.doc { max-width: 760px; margin: 0 auto; padding: 8px 20px 60px; }
.doc article { background: var(--paper); border: 2.5px solid var(--ink); border-radius: var(--radius); padding: 28px 32px; box-shadow: 0 5px 0 var(--ink); }
.doc h1 { font-size: 40px; }
.doc h2 { margin-top: 28px; font-size: 22px; }
.doc h3 { margin: 18px 0 4px; font-size: 18px; }
.doc .updated { color: var(--ink-soft); margin-top: -10px; }
.doc li { margin: 4px 0; }

/* ---------------------------------------------------------------- phones */
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 110px; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .actions { justify-content: center; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .watch-text .actions { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .top nav { gap: 12px; font-size: 15px; }
  .brand span { font-size: 17px; }
  .doc article { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .dot { transition: none; }
}

/* ---------------------------------------------------------------- version 2: language, pot, maker, guess, message */
.lang { font: 700 14px Fredoka, system-ui, sans-serif; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; padding: 2px 10px; cursor: pointer; box-shadow: 0 2px 0 var(--ink); }

.pot { display: flex; align-items: center; gap: 12px; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 18px; padding: 10px 16px; box-shadow: 0 4px 0 var(--ink); margin: 0 0 18px; max-width: 460px; }
.pot-icon { font-size: 34px; line-height: 1; }
.pot b { display: block; font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pot span { font-size: 14px; color: var(--ink-soft); }

.maker { background: rgba(255, 255, 255, .6); border: 2.5px solid var(--ink); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 12px; }
.maker h2 { margin: 0; font-size: 22px; }
.field { display: grid; gap: 6px; }
.field-label { font-weight: 700; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 600 14px Fredoka, system-ui, sans-serif; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.chip:hover { background: var(--mint-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chip-palette { padding-left: 32px; position: relative; }
.chip-palette::before { content: ""; position: absolute; left: 8px; top: 50%; width: 18px; height: 12px; transform: translateY(-50%); border-radius: 4px; background: var(--sw); box-shadow: 0 0 0 1.5px var(--ink); }
.own { border-top: 1.5px dashed var(--line); padding-top: 8px; }
.own > summary { cursor: pointer; font-weight: 700; }
.own[open] > summary { margin-bottom: 8px; }
.own-seg { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.own-seg button { font: 600 13px Fredoka, system-ui, sans-serif; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); color: var(--ink); padding: 3px 10px; cursor: pointer; }
.own-seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.own-seven { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.own input[type=color] { width: 38px; height: 34px; padding: 0; border: 2px solid var(--ink); border-radius: 8px; background: none; cursor: pointer; }
.own-tint { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 8px; }
.own-tint[hidden], .own-seven[hidden] { display: none; }
.hint { margin: 0; font-size: 13px; color: var(--ink-soft); }

.guess { display: grid; justify-items: center; gap: 4px; text-align: center; max-width: 380px; }
.guess-q { font-weight: 700; font-size: 18px; }
.guess-sub { font-size: 14px; color: var(--ink-soft); margin-bottom: 4px; }

.message { padding: 0 20px 64px; }
.message-card { max-width: 760px; margin: 0 auto; background: var(--paper); border: 2.5px solid var(--ink); border-radius: var(--radius); padding: 26px 28px; box-shadow: 0 6px 0 var(--ink); display: grid; gap: 12px; }
.message-card h2 { margin: 0; font-size: 28px; }
.message-card p { margin: 0; }
.message-card label { display: grid; gap: 4px; font-weight: 600; font-size: 15px; }
.message-card input, .message-card textarea { font: 500 16px Fredoka, system-ui, sans-serif; color: var(--ink); border: 2px solid var(--ink); border-radius: 12px; padding: 8px 12px; background: var(--mint-2); width: 100%; }
.message-card textarea { resize: vertical; min-height: 110px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.msg-count { font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.msg-status { min-height: 1.4em; font-weight: 600; }
@media (max-width: 860px) {
  .pot { margin-left: auto; margin-right: auto; text-align: left; }
  .maker { text-align: left; order: 3; }
  .hero-text { display: contents; }
  .hero-text > .kicker, .hero-text > h1, .hero-text > .lead, .hero-text > .pot { order: 0; }
  .stage { order: 1; }
  .maker { order: 2; }
}
.doc h1 { font-size: clamp(28px, 8vw, 40px); overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 480px) {
  .top { flex-wrap: wrap; row-gap: 8px; }
  .top nav { flex-wrap: wrap; align-items: center; }
}

/* ---------------------------------------------------------------- version 3 */
.top nav .social { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.top nav .social::before { content: ""; width: 9px; height: 9px; border-radius: 50%; }
.top nav .social.yt::before { background: #ff3b3b; }
.top nav .social.tt::before { background: #1fa3ff; }
.follow { margin: 14px 0 0; font-weight: 600; }
.follow a { font-weight: 700; }

.card { background: rgba(255, 255, 255, .65); border: 2.5px solid var(--ink); border-radius: var(--radius); padding: 14px 18px; display: grid; gap: 10px; margin-bottom: 14px; }
.card h2 { margin: 0; font-size: 20px; }

.phone { position: relative; }
.screen-tools { position: absolute; top: 18px; right: 18px; display: flex; gap: 8px; z-index: 2; }
.tool {
  width: 44px; height: 44px; border-radius: 12px; font-size: 20px; cursor: pointer; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink);
}
.tool[aria-pressed="true"] { background: #ffd60a; }
.tool:focus-visible, .big-play:focus-visible, .play-main:focus-visible { outline: 3px solid #1f6feb; outline-offset: 3px; }
.big-play {
  position: absolute; left: 50%; top: 28%; transform: translate(-50%, -50%); z-index: 2;
  width: 96px; height: 96px; border-radius: 50%; border: 4px solid #fff; cursor: pointer; font-size: 38px; padding-left: 8px;
  color: #fff; background: var(--ink); box-shadow: 0 6px 0 #0c221c, 0 10px 30px rgba(0, 0, 0, .25);
}
.big-play[hidden] { display: none; }
.big-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.play-main {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-width: 200px; justify-content: center;
  font: 700 22px Fredoka, system-ui, sans-serif; color: #fff; background: var(--ink); border: none; border-radius: 18px;
  padding: 12px 30px 16px; box-shadow: 0 5px 0 #0c221c; position: relative;
}
.play-main::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 6px; height: 4px; border-radius: 2px; background: var(--rainbow); }
.play-main:active { transform: translateY(3px); box-shadow: 0 2px 0 #0c221c; }
.play-main:disabled { opacity: .7; cursor: progress; }
.play-main.is-playing { background: #2f5d52; }

/* full screen: the screen fills the display, still 9:16 */
.phone:fullscreen, .phone.phone-full { width: 100vw; height: 100vh; max-width: none; aspect-ratio: auto; border-radius: 0; padding: 0; background: #0c221c; display: grid; place-items: center; }
.phone:-webkit-full-screen { width: 100vw; height: 100vh; border-radius: 0; padding: 0; background: #0c221c; }
.phone.phone-full { position: fixed; inset: 0; z-index: 100; }
.phone:fullscreen canvas, .phone.phone-full canvas { width: auto; height: 100vh; max-width: 100vw; aspect-ratio: 9 / 16; border-radius: 0; }
.phone:fullscreen .screen-note, .phone.phone-full .screen-note { width: min(90vw, 480px); bottom: 6vh; font-size: 20px; }
body.no-scroll { overflow: hidden; }
.foot-social { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px !important; }
@media (max-width: 860px) {
  .hero-text > .follow { order: 3; }
  .stage { order: 1; }
  .maker { order: 2; }
  .card { text-align: left; }
}
@media (max-width: 480px) {
  .top nav .social { font-size: 0; gap: 0; }
  .top nav .social::before { width: 14px; height: 14px; }
}

/* ---------------------------------------------------------------- version 4 */
.small-tool { width: 36px; height: 34px; font-size: 17px; border-radius: 10px; box-shadow: 0 2px 0 var(--ink); }
.small-tool[hidden] { display: none; }
.pick-hint {
  position: absolute; left: 50%; top: 13%; transform: translateX(-50%); z-index: 2; width: calc(100% - 60px);
  display: grid; justify-items: center; gap: 4px; text-align: center; pointer-events: none;
  font: 700 19px Fredoka, system-ui, sans-serif; color: var(--ink);
  background: rgba(255, 255, 255, .93); border: 2.5px solid var(--ink); border-radius: 16px; padding: 10px 14px; box-shadow: 0 4px 0 var(--ink);
}
.pick-hint[hidden] { display: none; }
.pick-arrow { font-size: 26px; line-height: 1; animation: nudge 1.1s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(6px); } }
.guess.waiting { background: var(--paper); border: 2.5px solid var(--ink); border-radius: 18px; padding: 12px 14px; box-shadow: 0 4px 0 var(--ink); }
.guess.waiting .dot { animation: wiggle 1.6s ease-in-out infinite; }
.guess.waiting .dot:nth-child(2) { animation-delay: .1s; } .guess.waiting .dot:nth-child(3) { animation-delay: .2s; }
.guess.waiting .dot:nth-child(4) { animation-delay: .3s; } .guess.waiting .dot:nth-child(5) { animation-delay: .4s; }
.guess.waiting .dot:nth-child(6) { animation-delay: .5s; } .guess.waiting .dot:nth-child(7) { animation-delay: .6s; }
@keyframes wiggle { 0%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-5px); } }
.dot { width: 40px; height: 40px; }
.play-main[hidden] { display: none; }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 200; }
.confetti[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .pick-arrow, .guess.waiting .dot { animation: none; } }

/* ---------------------------------------------------------------- v5: keep the video, support */
.keep { display: grid; gap: 8px; justify-items: center; width: 100%; max-width: 380px; }
.keep-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.keep-btn { padding: 8px 12px; font-size: 15px; }
.keep-progress { display: grid; grid-template-columns: 1fr; gap: 4px; width: 100%; font-size: 14px; color: var(--ink-soft); text-align: center; }
.keep-bar { height: 10px; border-radius: 6px; background: var(--paper); border: 2px solid var(--ink); overflow: hidden; }
.keep-bar span { display: block; height: 100%; width: 0; background: var(--rainbow); transition: width .2s; }
.keep-note { margin: 0; font-size: 14px; color: var(--ink-soft); text-align: center; min-height: 0; }
.keep-note:empty { display: none; }
.support-line { display: grid; gap: 8px; justify-items: center; text-align: center; background: #fff8d9; border: 2.5px solid var(--ink); border-radius: 16px; padding: 10px 14px; box-shadow: 0 3px 0 var(--ink); }
.support-line p { margin: 0; font-weight: 700; font-size: 15px; }
.support-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.foot-support { max-width: 640px; margin-left: auto !important; margin-right: auto !important; }
.chip-animal { display: inline-flex; align-items: center; gap: 4px; padding: 2px 12px 2px 4px; }
.chip-animal img { width: 26px; height: 26px; display: inline-block; border-radius: 50%; background: var(--mint-2); }
.chip-animal[aria-pressed="true"] img { background: var(--paper); }
.guess.locked { pointer-events: none; opacity: .6; }

/* ---------------------------------------------------------------- v5: what did others pick? */
.others { padding: 56px 20px 24px; }
.others > * { max-width: 1160px; margin-left: auto; margin-right: auto; }
.others h2 { margin: 0 auto 6px; font-size: 36px; }
.others-lead { margin-top: 0; margin-bottom: 22px; color: var(--ink-soft); }
.others-empty { color: var(--ink-soft); margin: 4px 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 18px; }
.tile { background: var(--paper); border: 2.5px solid var(--ink); border-radius: var(--radius); padding: 14px 18px; box-shadow: 0 4px 0 var(--ink); display: grid; }
.tile b { font-size: 34px; line-height: 1.1; }
.tile span { color: var(--ink-soft); font-size: 15px; }
.others-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.others-card { background: var(--paper); border: 2.5px solid var(--ink); border-radius: var(--radius); padding: 16px 18px; box-shadow: 0 4px 0 var(--ink); min-width: 0; }
.others-card h3 { margin: 0 0 10px; font-size: 19px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bars li { display: grid; grid-template-columns: minmax(90px, 9em) 1fr 3.2em; align-items: center; gap: 10px; padding: 2px 4px; border-radius: 8px; }
.bars li:hover { background: var(--mint-2); }
.bar-name { display: flex; align-items: center; gap: 6px; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swatch { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; background: var(--c); border: 1.5px solid var(--ink); }
.bar-track { height: 14px; display: block; }
.bar-fill { display: block; height: 100%; min-width: 3px; background: var(--c, var(--grass-dark)); border-radius: 0 4px 4px 0; }
.bar-value { text-align: right; font-variant-numeric: tabular-nums; font-size: 15px; color: var(--ink); }
@media (max-width: 480px) {
  .others h2 { font-size: 28px; }
  .others-grid { grid-template-columns: 1fr; }
  .bars li { grid-template-columns: minmax(70px, 7em) 1fr 3em; gap: 8px; }
}

/* ---------------------------------------------------------------- v6: make your own video in 3 steps */
.maker { display: grid; gap: 10px; margin-top: 4px; }
.maker h2 { margin: 0; font-size: 26px; }
.maker-lead { margin: 0 0 4px; color: var(--ink-soft); }
.step-card { background: rgba(255, 255, 255, .65); border: 2.5px solid var(--ink); border-radius: var(--radius); }
.step-card[open] { background: var(--paper); box-shadow: 0 4px 0 var(--ink); }
.step-card > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-weight: 700; font-size: 19px; }
.step-card > summary::-webkit-details-marker { display: none; }
.step-card > summary::after { content: "▾"; margin-left: 4px; color: var(--ink-soft); transition: transform .15s; }
.step-card:not([open]) > summary::after { transform: rotate(-90deg); }
.step-no { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 16px; flex: 0 0 auto; }
.step-name { flex: 0 0 auto; }
.step-pick { margin-left: auto; font-size: 15px; font-weight: 600; color: var(--ink-soft); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.step-body { display: grid; gap: 10px; padding: 0 16px 16px; }
.step-next { justify-self: start; }
.step-ready { margin: 0; font-weight: 700; }
/* phones: the bar at the top stays one row: logo, language, sound, full screen (the rest is further down the page) */
@media (max-width: 600px) {
  .top { flex-wrap: nowrap; padding-top: 8px; padding-bottom: 8px; gap: 10px; }
  .top nav { flex-wrap: nowrap; gap: 8px; }
  .top nav a[href^="#"], .top nav .social { display: none; }
  .brand img { width: 34px; height: 34px; }
  .brand span { font-size: 16px; white-space: nowrap; }
}
@media (max-width: 430px) { .brand span { display: none; } }
.maker, .step-card, .step-card > summary { min-width: 0; }

/* ---------------------------------------------------------------- v7: countdown to the first arc, steps in the counts */
.countdown {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%); z-index: 2;
  background: rgba(255, 255, 255, .93); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 999px;
  padding: 6px 16px; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap;
  box-shadow: 0 3px 0 rgba(23, 60, 51, .35); pointer-events: none;
}
.countdown.now { background: #fff3c4; }
.others-card h3 { display: flex; align-items: center; gap: 8px; }
.others-card .step-no { width: 26px; height: 26px; font-size: 14px; }
.top nav .small-tool { flex: 0 0 auto; }

/* ---------------------------------------------------------------- v9: pick a character on the screen */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dots.sr-only:focus-within { position: static !important; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; }
.pick-hint { pointer-events: none; }

/* ---------------------------------------------------------------- v10: background color of the page (top right) */
:root[data-site="peach"] { --mint: #ffe0cc; --mint-2: #fff0e6; --line: #f2c3a6; }
:root[data-site="lavender"] { --mint: #e7ddf8; --mint-2: #f3eefc; --line: #cbbcea; }
:root[data-site="sky"] { --mint: #d4ebfb; --mint-2: #e9f5fd; --line: #a9d1ef; }
:root[data-site="lemon"] { --mint: #fbf1c2; --mint-2: #fdf8e0; --line: #ead98b; }
:root[data-site="rose"] { --mint: #fbd9e4; --mint-2: #fdecf2; --line: #efb3c7; }
.site-theme { position: relative; }
.site-theme > summary { list-style: none; display: grid; place-items: center; cursor: pointer; }
.site-theme > summary::-webkit-details-marker { display: none; }
.site-themes {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; display: grid; gap: 4px; min-width: 160px;
  background: var(--paper); border: 2.5px solid var(--ink); border-radius: 14px; padding: 8px; box-shadow: 0 4px 0 var(--ink);
}
.site-swatch { display: flex; align-items: center; gap: 8px; font: 600 15px Fredoka, system-ui, sans-serif; color: var(--ink); background: none; border: 0; border-radius: 10px; padding: 5px 8px; cursor: pointer; text-align: left; }
.site-swatch i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); border: 2px solid var(--ink); flex: 0 0 auto; }
.site-swatch:hover { background: var(--mint-2); }
.site-swatch[aria-pressed="true"] { background: var(--mint); font-weight: 700; }
.step-sub { margin: 4px 0 0; font-size: 15px; color: var(--ink-soft); }

/* clickable bars in "What did others pick?" */
.bars li { display: block; padding: 0; }
.bar-row { width: 100%; display: grid; grid-template-columns: minmax(90px, 9em) 1fr 3.2em; align-items: center; gap: 10px; padding: 3px 6px; border: 0; border-radius: 8px; background: none; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.bar-row:hover { background: var(--mint-2); }
.bar-row.on { background: var(--mint); box-shadow: inset 0 0 0 2px var(--ink); }
.bar-row:focus-visible { outline: 3px solid #1f6feb; outline-offset: 1px; }
.others-hint, .others-filter { margin: 0 0 12px; color: var(--ink-soft); font-size: 15px; }
.others-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.others-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
@media (max-width: 480px) { .bar-row { grid-template-columns: minmax(70px, 7em) 1fr 3em; gap: 8px; } }

/* ---------------------------------------------------------------- v11: sound choice, coin pot toggle, new videos */
.site-swatch b { width: 22px; text-align: center; font-weight: 400; }
.sound-menu .site-themes { min-width: 190px; }
.pot-toggle { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; cursor: pointer; padding: 6px 4px; }
.pot-toggle input { width: 18px; height: 18px; accent-color: var(--ink); }
.foot-new { font-size: 20px; margin-bottom: 8px !important; }
.foot-new b { font-weight: 700; }
