/* ACE, laid out like a newspaper puzzle: a splash screen, a clean board, then results. */
.game-body { background: var(--white); color: var(--ink); }

/* ---------- splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 10;
  background: var(--game, var(--gold)); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 20px max(24px, env(safe-area-inset-bottom));
  text-align: center; overflow-y: auto;
}
.game-body:not(.is-splash) .splash { display: none; }
.game-body.is-splash .app { display: none; }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; margin: auto 0; max-width: 100%; }
.splash-icon { width: 160px; height: 160px; }
.splash-title { font-size: clamp(96px, 22vw, 132px); margin-top: 0; max-width: 100%; }
.splash-title.is-long { font-size: clamp(68px, 16vw, 120px); }
.splash-sub { font-size: clamp(21px, 5vw, 26px); line-height: 1.3; font-weight: 700; max-width: 560px; }
.btn-wide { min-width: 240px; min-height: 66px; font-size: 21px; margin-top: 16px; }
.splash .btn-ink:hover { background: #2A2F37; }
.splash-date { display: flex; flex-direction: column; font-size: 15px; line-height: 1.5; margin-top: 10px; }
.splash-date b { font-weight: 700; }
.splash-brand { --lh: 64px; color: var(--ink); flex: none; margin-top: 8px; }

/* the ways to play, on the title screen */
.modes { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 10px; }
.modes .btn-wide { width: 100%; margin-top: 0; }
.modes-note { font-size: 16px; font-weight: 600; line-height: 1.4; }
.modes-link { border: 0; background: none; padding: 0; color: inherit; font: inherit; font-weight: 800; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.modes-label { margin-top: 12px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.modes-quick { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.modes-btn {
  min-height: 56px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink);
  font: 800 17px/1 var(--body); cursor: pointer; transition: background-color .15s ease;
}
@media (hover: hover) { .modes-btn:hover { background: rgba(21, 24, 29, .1); } }
.modes-btn:active { transform: scale(.98); }
@media (max-height: 760px) {
  .splash-icon { width: 108px; height: 108px; }
  .splash-title { font-size: clamp(80px, 18vw, 104px); }
  .splash-inner { gap: 14px; }
}

/* ---------- top bar ---------- */
.bar {
  padding: 18px 20px 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: var(--white); border-bottom: 1px solid #E3E3E1;
}
.bar-brand { --lh: 52px; }
.bar-tagline { font-size: 17px; font-weight: 600; color: var(--muted); }
.splash-tagline { font-size: 18px; font-weight: 700; margin-top: 10px; }

/* the game's own title, inside the page */
.game-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; row-gap: 14px; margin-bottom: 22px; }
.game-head-icon { width: 56px; height: 56px; }
.game-head-name { font-size: 44px; letter-spacing: .03em; }
.game-body.is-done .game-head { display: none; }

/* the strip under the game's name: level and dots, or your score, plus a way out */
.hud { flex-basis: 100%; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 16px; min-height: 38px; }
.hud:empty { display: none; }
.hud-label { font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hud-dots { display: flex; gap: 8px; }
.hud-dots i { width: 18px; height: 18px; border-radius: 50%; background: #E3E3E1; display: block; }
.hud-dots i.win { background: var(--right); }
.hud-dots i.loss { background: var(--wrong); }
.hud-score { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hud-streak { font-size: 16px; font-weight: 800; padding: 6px 12px; border-radius: 999px; background: #FFF1D6; color: #8A5A00; }
.hud-link {
  min-height: 38px; padding: 0 16px; border-radius: 999px; border: 2px solid #D9D9D3; background: var(--white);
  color: var(--ink); font: 700 15px/1 var(--body); cursor: pointer;
}
@media (hover: hover) { .hud-link:hover { border-color: var(--ink); } }

/* ---------- the board ---------- */
.stage { width: 100%; max-width: 720px; margin: 0 auto; padding: 40px 20px 48px; }
#game { display: flex; flex-direction: column; gap: 20px; }
.round-q { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 7.5vw, 48px); line-height: 1.08; letter-spacing: .01em; text-align: center; }
.round-head { text-align: center; font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: -6px; }

.choices { display: flex; flex-direction: column; gap: 20px; margin-top: 10px; }
.choice {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 136px; padding: 24px 24px;
  border: 0; border-radius: 18px; background: #EFEFE6; color: var(--ink);
  text-align: center; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .1s ease;
}
@media (hover: hover) { .choice:hover:not(:disabled) { background: #E4E4D9; } }
.choice:active:not(:disabled) { transform: scale(.985); }
.choice:disabled { cursor: default; }
.pw { font-family: var(--display); font-size: clamp(32px, 8vw, 44px); line-height: 1.15; letter-spacing: .04em; overflow-wrap: anywhere; text-wrap: balance; }

/* after you pick: green is the ace, red is the one that got cracked.
   Everything stays inside the tile: "Your pick" at the top, the password, then the exact time
   to crack it. Nothing floats between the two tiles. */
.option { display: flex; flex-direction: column; align-items: center; }
.choice { position: relative; }
.choice-tag {
  font-size: 12px; font-weight: 800; line-height: 1; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  padding: 7px 12px; border-radius: 999px; background: var(--ink); color: var(--white);
}
.choice-tag[hidden], .crack[hidden] { display: none; }
.crack {
  display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%;
  margin-top: 2px; padding-top: 12px; border-top: 2px solid rgba(21, 24, 29, .16);
  color: var(--ink); animation: rise .3s ease;
}
.crack-label { font-size: 12px; font-weight: 800; line-height: 1; letter-spacing: .12em; text-transform: uppercase; opacity: .78; }
.crack-time { font-family: var(--display); font-size: clamp(24px, 6.6vw, 34px); line-height: 1.08; letter-spacing: .02em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.choice.is-strong { background: var(--right); color: var(--ink); animation: pop .35s ease; }
.choice.is-weak { background: var(--wrong); color: var(--ink); }
.choice.is-weak.is-picked { animation: shake .45s ease; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.round-note { text-align: center; font-size: 14px; line-height: 1.45; color: var(--muted); margin-top: -6px; }
.round-note[hidden] { display: none; }

/* the result: a light panel that slides up from the bottom edge. Green when you got it,
   red when you didn't. A different shape and place from the options, so it never reads as
   another answer. */
.verdict {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--right-tint); color: var(--ink);
  border-radius: 26px 26px 0 0;
  padding: 20px max(20px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  box-shadow: 0 -8px 26px rgba(21, 24, 29, .12);
  animation: sheet .34s cubic-bezier(.2, .8, .2, 1);
}
.verdict.is-loss { background: var(--wrong-tint); }
.verdict[hidden] { display: none; }
.verdict-inner { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.verdict .round-note { color: var(--muted); margin: 2px 0 0; font-size: 13px; }
.has-sheet .stage { padding-bottom: calc(var(--sheet-h, 260px) + 32px); }
@keyframes sheet { from { transform: translateY(100%); } to { transform: none; } }
.verdict-title { font-family: var(--display); font-size: clamp(38px, 9vw, 52px); line-height: 1; letter-spacing: .03em; text-transform: uppercase; }
.verdict.is-win .verdict-title { color: var(--right-dark); }
.verdict.is-loss .verdict-title { color: var(--wrong-dark); }
.lesson { font-size: clamp(17px, 4vw, 20px); line-height: 1.45; font-weight: 500; max-width: 540px; color: var(--ink); text-wrap: balance; }
.verdict-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.verdict-actions .btn, .end-actions .btn { min-height: 64px; min-width: 240px; font-size: 20px; padding: 0 30px; }
.btn-next { background: var(--ink); color: var(--white); }
.btn-next:hover { background: #2E333B; }
.verdict .btn-ghost { color: var(--ink); border-color: rgba(21, 24, 29, .4); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .choice.is-strong, .choice.is-weak.is-picked, .verdict, .crack { animation: none; } }
.verdict-actions { width: 100%; }
.verdict-actions .btn-next { width: 100%; max-width: 520px; }
/* after every answer: Next round (big), then Make it harder and Another game side by side */
.verdict-more { display: flex; gap: 10px; width: 100%; max-width: 520px; }
.verdict-more .btn { flex: 1 1 0; min-width: 0; min-height: 52px; padding: 0 10px; font-size: 17px; white-space: nowrap; }
.verdict-more .btn[aria-expanded="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.verdict-games { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: 100%; max-width: 520px; }
.verdict-games[hidden] { display: none; }
.verdict-game { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 70px; padding: 6px 4px; border-radius: 14px; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 800; letter-spacing: .06em; }
.verdict-game img { width: 52px; height: 52px; display: block; }
@media (hover: hover) { .verdict-game:hover { background: rgba(21, 24, 29, .06); } }
.hud-level { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; background: #EFEFE6; color: var(--ink); white-space: nowrap; }
@media (max-width: 380px) { .verdict-more .btn { font-size: 15px; } }

/* ---------- results ---------- */
.end-top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.end-icon { width: 120px; height: 120px; margin-bottom: 6px; }
.end-headline { font-family: var(--display); font-weight: 400; font-size: clamp(48px, 11vw, 66px); line-height: 1.02; letter-spacing: .01em; }
.end-msg { text-wrap: balance; font-size: clamp(18px, 4.2vw, 21px); line-height: 1.45; max-width: 560px; color: var(--muted); font-weight: 500; }
.end-grid { display: flex; justify-content: center; gap: 12px; margin: 10px 0 2px; }
.end-grid i { width: 68px; height: 68px; border-radius: 12px; display: block; }
.end-grid i.win { background: var(--right); }
.end-grid i.loss { background: var(--wrong); }
.end-score { text-align: center; font-weight: 800; font-size: 20px; color: var(--muted); }
.end-grid.is-many { flex-wrap: wrap; gap: 6px; max-width: 420px; margin-left: auto; margin-right: auto; }
.end-grid.is-many i { width: 30px; height: 30px; border-radius: 7px; }
.end-stars { display: flex; gap: 6px; justify-content: center; margin: 2px 0 4px; }
.end-stars .star { font-style: normal; font-size: 64px; line-height: 1; color: #DEDED8; }
.end-stars .star.is-on { color: var(--gold); animation: starpop .45s ease both; }
.end-stars .star.is-on:nth-child(2) { animation-delay: .15s; }
.end-stars .star.is-on:nth-child(3) { animation-delay: .3s; }
@keyframes starpop { 0% { transform: scale(.2); opacity: 0; } 70% { transform: scale(1.18); opacity: 1; } 100% { transform: scale(1); } }
.end-record { font-size: 16px; font-weight: 700; color: var(--muted); }
.end-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 8px; }
.share-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.share-wrap .toast:empty { display: none; }
.end-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 4px; }
.end-link, .verdict-stop {
  border: 0; background: none; padding: 8px 4px; color: var(--ink); font: 700 17px/1.2 var(--body); cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: #C9C9C2;
}
@media (hover: hover) { .end-link:hover { text-decoration-color: var(--ink); } }
.verdict-stop { color: var(--muted); font-size: 15px; padding: 4px; text-decoration-color: rgba(21, 24, 29, .25); }
@media (hover: hover) { .verdict-stop:hover { color: var(--ink); } }

/* ---------- the level map ---------- */
.levels { display: flex; flex-direction: column; gap: 26px; margin-top: 6px; }
.level-band-name { font-family: var(--body); font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.level-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.level {
  aspect-ratio: 1 / 1; border: 0; border-radius: 18px; background: #EFEFE6; color: var(--ink); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  transition: background-color .15s ease, transform .1s ease;
}
@media (hover: hover) { .level:hover:not(:disabled) { background: #E4E4D9; } }
.level:active:not(:disabled) { transform: scale(.97); }
.level-n { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 9vw, 52px); line-height: 1; }
.level-stars { display: flex; gap: 2px; }
.level-stars .star { font-style: normal; font-size: clamp(14px, 3.8vw, 19px); line-height: 1; color: #CFCFC8; }
.level-stars .star.is-on { color: var(--gold); }
.level-lock { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.level.is-next { background: var(--game, var(--gold)); box-shadow: 0 0 0 4px rgba(21, 24, 29, .9); }
.level.is-next .star { color: rgba(21, 24, 29, .28); }
.level.is-locked { opacity: .5; cursor: default; }
.levels-note { text-align: center; font-size: 16px; line-height: 1.45; color: var(--muted); text-wrap: balance; margin-top: 4px; }
.toast { font-weight: 700; font-size: 18px; color: var(--teal); min-height: 1.4em; }
.end-next { text-align: center; color: var(--muted); font-size: 19px; font-weight: 600; }
.end-next b { display: block; font-family: var(--display); font-weight: 400; font-size: 44px; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* ---------- play another game: a small button at the bottom of every game page ---------- */
.switch { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 36px 0 8px; }
.switch-btn {
  border: 2px solid #E3E3E1; background: var(--white); color: var(--ink); border-radius: 999px;
  padding: 12px 22px; font: 700 16px/1 var(--body); cursor: pointer; transition: border-color .15s ease;
}
@media (hover: hover) { .switch-btn:hover { border-color: var(--ink); } }
.switch-list { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.switch-list[hidden] { display: none; }
.switch-game { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 22px; letter-spacing: .03em; line-height: 1; }
.switch-game img { width: 64px; height: 64px; border-radius: 16px; }

/* ---------- after you've played ---------- */
.after { display: none; width: 100%; max-width: 720px; margin: 0 auto; padding: 8px 20px 64px; flex-direction: column; gap: 18px; }
.game-body.is-done .after { display: flex; }
.after-block { background: var(--paper); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.after-block h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 6.6vw, 42px); line-height: 1.06; letter-spacing: .01em; }
.after-block .muted { color: var(--muted); font-size: 18px; }
.after-block .eyebrow { font-size: 15px; }
.after .form input[type=email] { min-height: 64px; font-size: 19px; padding: 0 24px; }
.after .form .btn { min-height: 64px; font-size: 19px; padding: 0 28px; }
.after .form-msg { font-size: 17px; }
.soon { list-style: none; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.soon li { display: flex; flex-direction: column; gap: 6px; }
.soon img { width: 80px; height: 80px; }
.soon b { font-family: var(--display); font-weight: 400; font-size: 32px; letter-spacing: .02em; line-height: 1; margin-top: 6px; }
.soon span { font-size: 16px; color: var(--muted); line-height: 1.35; }
.soon a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.soon a:hover b { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.soon em { align-self: flex-start; margin-top: 4px; font-style: normal; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; background: var(--white); color: var(--muted); }
.soon a em { background: var(--ink); color: var(--white); }
.after .ticks li { font-size: 18px; }
.after .ticks li::before { width: 16px; height: 16px; margin-top: 8px; box-shadow: none; }
.after-foot { padding: 32px 4px 0; display: flex; flex-direction: column; gap: 14px; color: var(--muted); }
.after-foot .tagline { color: var(--ink); font-weight: 800; font-size: 22px; }
.after-foot .fine { font-size: 15px; }
.after-foot .fine b { color: var(--ink); }

/* ---------- judge games (DUPE, LURE, HOAX, BOT): the thing to judge, the stamp, the two buttons ---------- */
.spec {
  position: relative; margin: 10px auto 0; width: 100%; max-width: 600px;
  border-radius: 18px; border: 2px solid #E3E3E1; background: var(--white); overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
/* real or not, the thing itself stays neutral: green and red belong to your result */

/* text message */
.msg-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #EFEFE6; }
.msg-av {
  flex: none; width: 40px; height: 40px; border-radius: 50%; background: #C9CCD2; color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px;
}
.msg-who { font-size: 18px; font-weight: 700; }
.msg-thread { padding: 16px 16px 22px; display: flex; flex-direction: column; gap: 10px; background: var(--white); }
.msg-time { align-self: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.bubble {
  align-self: flex-start; max-width: 88%;
  background: #ECECEE; color: var(--ink); border-radius: 20px 20px 20px 6px; padding: 12px 16px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(17px, 4.4vw, 20px); line-height: 1.4;
}
.bubble .link { color: #1F63D6; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* the stamp that lands once you answer */
.stamp {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-family: var(--display); font-size: 26px; line-height: 1; letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 12px 6px; border-radius: 8px; border: 3px solid currentColor; background: var(--white); color: var(--ink);
  transform: rotate(-7deg); animation: stamp .3s ease;
}
.stamp[hidden] { display: none; }

@keyframes stamp { 0% { transform: rotate(-7deg) scale(1.6); opacity: 0; } 100% { transform: rotate(-7deg) scale(1); opacity: 1; } }

/* your answer */
.judge { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.judge[hidden] { display: none; }
.judge-btn {
  min-height: 84px; border: 0; border-radius: 18px; background: #EFEFE6; color: var(--ink); cursor: pointer;
  font-family: var(--display); font-size: clamp(30px, 8vw, 40px); letter-spacing: .04em; text-transform: uppercase;
  transition: background-color .2s ease, transform .1s ease;
}
@media (hover: hover) { .judge-btn:hover { background: #E4E4D9; } }
.judge-btn:active { transform: scale(.985); }
/* the giveaways, marked with a highlighter right where they sit (the same in real and scam rounds) */
.tell { border-radius: 4px; transition: background-color .3s ease; }
.tell-n { display: none; }
.is-revealed .tell { padding: 1px 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; background: var(--mark); color: var(--ink); }
.is-revealed .tell-n {
  display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-right: 4px;
  border-radius: 50%; font: 800 12px/1 var(--body); font-style: normal; vertical-align: 2px;
  background: var(--ink); color: var(--white);
}
.mail-btn .tell { color: var(--ink); }

/* the list that explains each one */
.tells { width: 100%; max-width: 600px; margin: 16px auto 0; display: flex; flex-direction: column; gap: 10px; }
.tells-title { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tells ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tells li { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; line-height: 1.4; }
.tells li b { flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; background: var(--ink); color: var(--white); }
.judge-btn:disabled { opacity: .4; cursor: default; }
@media (prefers-reduced-motion: reduce) { .stamp { animation: none; } }
@media (max-width: 560px) { .judge-btn { min-height: 76px; } }

@media (max-width: 560px) {
  .bar { padding: 14px 14px 12px; gap: 8px; }
  .bar-brand { --lh: 44px; }
  .bar-tagline { font-size: 15px; }
  .splash-brand { --lh: 54px; }
  .splash-icon { width: 136px; height: 136px; }
  .game-head { margin-bottom: 16px; }
  .game-head-icon { width: 48px; height: 48px; }
  .game-head-name { font-size: 38px; }
  .hud-dots i { width: 16px; height: 16px; }
  .level-row { gap: 8px; }
  .level { border-radius: 14px; gap: 6px; }
  .stage { padding-top: 28px; }
  .choice { min-height: 120px; padding: 18px 16px; gap: 8px; }
  .verdict-inner { gap: 8px; }
  .verdict-actions .btn { min-height: 60px; }
  .soon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .after-block { padding: 24px; }
  .verdict-actions .btn, .end-actions .btn { width: 100%; }
}

.after-shuffle { font-size: 18px; font-weight: 700; }
.after-shuffle a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.after-teams { background: var(--white); border: 2px solid #E3E3E1; }
.after-teams .ticks li::before { background: var(--ink); box-shadow: none; }
.after-teams .teams-btn { align-self: flex-start; min-height: 60px; font-size: 19px; padding: 0 28px; margin-top: 4px; }
@media (max-width: 560px) { .after-teams .teams-btn { align-self: stretch; } }

/* inside a game, the game is the star: a small SecureSmarter bar, a big game name */
.bar { padding: 10px 20px; gap: 0; }
.bar-brand { --lh: 34px; }
.bar-tagline { display: none; }
.game-head { gap: 16px; row-gap: 16px; margin-bottom: 26px; }
.game-head-icon { width: 88px; height: 88px; border-radius: 20px; }
.game-head-name { font-size: clamp(56px, 12vw, 72px); line-height: 1; }
.stage { padding-top: 28px; }
@media (max-width: 560px) {
  .bar { padding: 8px 14px; }
  .bar-brand { --lh: 30px; }
  .game-head { gap: 12px; margin-bottom: 18px; }
  .game-head-icon { width: 64px; height: 64px; border-radius: 15px; }
  .game-head-name { font-size: 50px; }
  .stage { padding-top: 20px; }
}

/* ---------- a generic phone (not any real brand's) that the texts, emails, websites and calls sit in.
   Mobile first: on a phone it's slim, so the answer buttons stay close. ---------- */
.spec-phone {
  --pw: min(calc(100vw - 40px), 340px);          /* as wide as fits, then the height of a real phone */
  width: var(--pw); max-width: 100%; margin: 6px auto 0;
  min-height: calc(var(--pw) * 2.1667);
  min-height: max(calc(var(--pw) * 1.78), min(calc(var(--pw) * 2.1667), calc(100svh - 20px)));
  display: flex; flex-direction: column; overflow: hidden;
  border: 7px solid #15181D; border-radius: 46px; background: var(--white);
  box-shadow: 0 10px 28px rgba(21, 24, 29, .14);
}
.spec-phone .mail-body, .spec-phone .br-page { flex: 1; }
.ph-status {
  position: relative; flex: none; height: 34px; display: flex; align-items: center; justify-content: space-between;
  padding: 2px 18px 0 24px; color: var(--ink);
  font: 600 14px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-variant-numeric: tabular-nums;
}
.ph-island { position: absolute; left: 50%; top: 7px; width: 74px; height: 22px; margin-left: -37px; border-radius: 12px; background: #15181D; }
.ph-icons { display: flex; align-items: center; gap: 4px; }
.ph-icons svg { display: block; height: 10px; width: auto; fill: currentColor; }
.spec-phone.is-dark { background: #1A1E25; }
.spec-phone.is-dark .ph-status { color: #F4F4F1; }
/* the stamp lands just under what you judged, so it never covers the sender or the address */
.msg-thread .stamp, .mail-body .stamp, .br-page .stamp { position: relative; top: auto; right: auto; align-self: flex-end; margin: 6px 4px 0 0; }

/* the texts app */
.sms-head {
  position: relative; flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 0 44px 10px; background: #F6F6F4; border-bottom: 1px solid #E8E8E3; text-align: center;
}
.sms-back { position: absolute; left: 14px; top: 12px; display: flex; color: #1F63D6; }
.sms-back svg { width: 11px; height: 18px; }
.sms-head .msg-av { width: 44px; height: 44px; font-size: 19px; }
.sms-head .msg-who { font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.spec-phone .msg-thread { flex: 1; padding: 12px 12px 14px; }
.spec-phone .bubble { max-width: 84%; }
.sms-input { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px 12px; }
.sms-plus {
  flex: none; width: 30px; height: 30px; border-radius: 50%; background: #EDEDEA; color: #8A8F98;
  display: flex; align-items: center; justify-content: center; font: 400 22px/1 system-ui, sans-serif;
}
.sms-field {
  flex: 1; height: 34px; border: 1px solid #DADAD4; border-radius: 17px; padding: 0 14px; display: flex; align-items: center;
  color: #A3AAB5; font: 15px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}


/* the browser: the address bar at the top, like a phone browser */
.spec-browser .br-top { padding: 4px 12px 10px; background: #F6F6F4; border-bottom: 1px solid #E8E8E3; }
.spec-browser .br-bar { border-radius: 12px; }

/* on a phone, the answer buttons stay in reach at the bottom of the screen */
@media (max-width: 560px) {
  .judge {
    position: sticky; bottom: 0; z-index: 6; margin: 12px -20px 0;
    padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .97); box-shadow: 0 -8px 18px rgba(21, 24, 29, .06);
  }
  .judge-btn { min-height: 64px; }
}
@media (min-width: 561px) {
  .spec-phone { --pw: 360px; border-width: 9px; border-radius: 52px; }
  .ph-status { height: 40px; padding: 2px 24px 0 30px; font-size: 15px; }
  .ph-island { top: 9px; width: 90px; height: 26px; margin-left: -45px; border-radius: 14px; }
  .ph-icons svg { height: 11px; }
  .spec-phone .msg-thread { padding: 14px 16px 16px; min-height: 160px; }
}

/* the title screen: a small SecureSmarter logo at the top, no tagline, the game takes the screen */
.splash { justify-content: flex-start; }
.splash-brand { --lh: 32px; margin-top: 4px; }
.splash-inner { margin: clamp(20px, 7vh, 72px) 0 auto; }
.bar-brand { --lh: 32px; }
@media (max-width: 560px) {
  .splash-brand { --lh: 28px; }
  .bar-brand { --lh: 28px; }
}

/* where you are, as lights: one per level, lit once cleared, the next one glowing */
.level-lights { display: flex; justify-content: center; gap: 8px; margin: 18px 0 2px; }
.level-lights i { width: 14px; height: 14px; border-radius: 50%; background: #E3E3E1; display: block; }
.level-lights i.is-on { background: var(--game, var(--gold)); box-shadow: 0 0 10px var(--game, var(--gold)); }
.level-lights i.is-next { background: var(--white); box-shadow: inset 0 0 0 3px var(--game, var(--gold)); animation: nextglow 1.6s ease-in-out infinite; }
@keyframes nextglow { 50% { box-shadow: inset 0 0 0 3px var(--game, var(--gold)), 0 0 12px var(--game, var(--gold)); } }
@media (prefers-reduced-motion: reduce) { .level-lights i.is-next { animation: none; } }
.end-actions .share-wrap .end-link { font-size: 18px; }
.hud-dots i { box-shadow: none; }
.hud-dots i.win { box-shadow: 0 0 8px var(--right-glow); }
.hud-dots i.loss { box-shadow: 0 0 8px var(--wrong-glow); }

/* a challenge link: the score to beat, just above Play */
.challenge-note { font-weight: 800; font-size: 19px; line-height: 1.35; text-align: center; margin: 0 0 14px; text-wrap: balance; }

/* GIST: an emoji clue, then four short words. The question is a small label, the clue is the star. */
.game-body[data-game="words"] .round-q { font-family: var(--body); font-weight: 600; font-size: 17px; letter-spacing: 0; color: var(--muted); }
.word-clue { margin: 4px 0 20px; padding: 26px 10px; border-radius: 24px; background: var(--paper); text-align: center; font-size: clamp(64px, 19vw, 104px); line-height: 1.1; letter-spacing: .06em; }
.word-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.word-pick {
  min-height: 76px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 18px; background: var(--white); color: var(--ink);
  font: 800 18px/1.15 var(--body); cursor: pointer; transition: transform .1s ease, opacity .2s ease, background-color .15s ease;
}
@media (hover: hover) { .word-pick:hover:not(:disabled) { transform: translateY(-2px); } }
.word-pick:active:not(:disabled) { transform: scale(.98); }
.word-pick:disabled { cursor: default; }
.word-pick.is-right { background: var(--right); border-color: var(--right-dark); }
.word-pick.is-wrong { background: var(--wrong); border-color: var(--wrong-dark); }
.word-pick.is-other { opacity: .5; }

/* ---------- play in colour ----------
   Each game keeps its colour while you play (Jamey: "it looks great as this bleed, then you hit play and
   it looks sterile"). The page stays the game's colour from the splash; cards and buttons sit on it in white.
   Green and red still only ever mean right and wrong. Shuffle takes the colour of each round's game. */
.game-body:not(.is-splash) { background: var(--game, var(--white)); transition: background-color .35s ease; }
.game-body .app .bar { background: transparent; border-bottom-color: rgba(21, 24, 29, .14); }
.game-body .app .bar-tagline, .game-body .app .crumbs-bar ol, .game-body .app .round-head, .game-body .app .levels-note,
.game-body .app .end-msg, .game-body .app .round-note, .game-body .app .after-foot { color: rgba(21, 24, 29, .74); }
.game-body .app .crumbs-bar [aria-current] { color: var(--ink); }
.game-body .app .hud-level { background: var(--white); }
.game-body .app .hud-dots i:not(.win):not(.loss) { background: rgba(255, 255, 255, .72); }
.game-body .app .choice:not(.is-strong):not(.is-weak) { background: var(--white); box-shadow: 0 3px 0 rgba(21, 24, 29, .1); }
@media (hover: hover) { .game-body .app .choice:hover:not(:disabled) { background: #F7F6F1; } }
.game-body .app .judge-btn { background: var(--white); box-shadow: 0 3px 0 rgba(21, 24, 29, .1); }
@media (hover: hover) { .game-body .app .judge-btn:hover { background: #F7F6F1; } }
.game-body .app .word-clue { background: var(--white); }
.game-body .app .level { background: rgba(255, 255, 255, .88); }
@media (hover: hover) { .game-body .app .level:hover:not(:disabled) { background: var(--white); } }
.game-body .app .level.is-next { background: var(--white); }
.game-body .app .level-lights i { background: rgba(255, 255, 255, .6); }
.game-body .app .level-lights i.is-on { background: var(--ink); box-shadow: none; }
.game-body .app .level-lights i.is-next { box-shadow: inset 0 0 0 3px var(--ink); animation: none; }
.game-body .app .after-block { background: rgba(255, 255, 255, .9); }
.game-body .app .switch-btn { border-color: var(--ink); }
@media (max-width: 560px) { .game-body .app .judge { background: var(--game, var(--white)); box-shadow: 0 -8px 18px rgba(21, 24, 29, .12); } }
