/* WordPress block CSS: shared Math CAPTCHA page theme and tokens */
@font-face {
  font-family: "Russo One";
  src: url("./assets/game/fonts/russo-one.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg-0: #f6d8ee;
  --bg-1: #f7256e;
  --bg-2: #111114;
  --glass: rgba(17, 17, 20, .84);
  --glass-2: rgba(33, 18, 42, .82);
  --glass-3: rgba(11, 10, 15, .94);
  --line: rgba(255, 255, 255, .14);
  --line-strong: rgba(255, 255, 255, .24);
  --ink: #ffffff;
  --muted: #cfc6e4;
  --soft: #9e91bb;
  --gold: #ffd95d;
  --gold-2: #ffc83d;
  --aqua: #16d7f0;
  --purple: #7b35ff;
  --red: #ff5e7e;
  --green: #58f3a7;
  --shadow: 0 24px 70px rgba(0, 0, 0, .34);
  --font-xs: 13px;
  --font-sm: 16px;
  --font-md: 20px;
  --font-lg: 44px;
  --aligned-head: 88px;
  --aligned-control-row: 100px;
  --map-control-item: 46px;
  --map-control-gap: 8px;
  --aligned-main: 560px;
  --aligned-footer: 54px;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-size: var(--font-sm);
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 216, 93, .28), transparent 24%),
    linear-gradient(106deg, rgba(247, 37, 110, .96) 0 47%, rgba(17, 17, 20, .98) 47.25% 100%),
    var(--bg-0);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(247, 37, 110, .34), rgba(17, 17, 20, .78)),
    url("./assets/game/optimized/page-pattern-lite.webp") left center / cover no-repeat;
  mix-blend-mode: screen;
  opacity: .42;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(117deg, transparent 0 13%, rgba(22, 215, 240, .82) 13.2% 13.8%, transparent 14% 100%),
    linear-gradient(117deg, transparent 0 77%, rgba(247, 37, 110, .72) 77.2% 78%, transparent 78.2% 100%);
  opacity: .52;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .56;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

/* WordPress block CSS: Math CAPTCHA game page shell */
.app {
  position: relative;
  z-index: 1;
  width: min(1530px, calc(100vw - 28px));
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 24px;
  margin: 0 auto;
  padding: 12px 0 24px;
}

.topbar {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
}

.score-cluster {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.total-pill {
  justify-self: end;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  border-radius: 999px;
  color: #2a1e08;
  background: linear-gradient(180deg, #ffe779, var(--gold-2));
  box-shadow: 0 14px 30px rgba(255, 200, 61, .28);
  font-size: var(--font-md);
  font-weight: 950;
  white-space: nowrap;
}

.rank-open {
  position: relative;
  width: 46px;
  min-height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #2a1e08;
  background: linear-gradient(180deg, #ffe779, var(--gold-2));
  box-shadow: 0 14px 28px rgba(255, 200, 61, .25);
  font-size: var(--font-md);
  font-weight: 950;
}

.badge-new {
  position: absolute;
  top: -7px;
  right: -8px;
  min-width: 30px;
  min-height: 18px;
  padding: 0 6px;
  display: none;
  place-items: center;
  border-radius: 999px;
  color: #2a1e08;
  background: #7effd6;
  box-shadow: 0 8px 18px rgba(46, 230, 200, .26);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.badge-new.show {
  display: grid;
}

.rank-open svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  filter: drop-shadow(0 2px 0 rgba(255, 255, 255, .28));
}

.rank-open.locked-icon {
  color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .1);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

/* WordPress block CSS: playable Level Map and Math CAPTCHA stage */
.game-shell {
  display: grid;
  grid-template-columns: minmax(330px, 430px) minmax(620px, 900px);
  grid-template-areas:
    "map play";
  gap: 18px;
  align-items: start;
  justify-content: center;
}

.panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025)),
    var(--glass);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .14);
  backdrop-filter: blur(18px);
}

.panel-head {
  position: relative;
  min-height: var(--aligned-head);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background:
    linear-gradient(90deg, rgba(247, 37, 110, .18), rgba(22, 215, 240, .06)),
    rgba(255, 255, 255, .055);
  border-bottom: 1px solid var(--line);
}

.panel-head::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -15px;
  width: 74px;
  height: 48px;
  background: url("./assets/game/optimized/sticker-lightning.webp") center / contain no-repeat;
  transform: rotate(-5deg);
  opacity: .9;
  pointer-events: none;
}

.panel-head h1,
.panel-head h2,
.panel-head h3 {
  min-width: 0;
  margin: 0;
  font-size: var(--font-md);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.panel-body {
  padding: 16px;
}

.map-panel {
  grid-area: map;
  align-self: stretch;
}

.difficulty-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: var(--map-control-gap);
}

.difficulty-tab {
  min-width: 0;
  min-height: var(--map-control-item);
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, .74);
  background: rgba(255, 255, 255, .075);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  font-size: var(--font-sm);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.difficulty-tab.active {
  color: #2a1e08;
  background: linear-gradient(180deg, #ffe779, var(--gold-2));
  border-color: rgba(255, 255, 255, .34);
}

.difficulty-tab.locked {
  opacity: .46;
}

.map {
  position: relative;
  height: var(--map-main, var(--aligned-main));
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7, 6, 15, .02), rgba(7, 6, 15, .26)),
    url("./assets/game/optimized/level-map-easy.webp") center / cover no-repeat;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .2),
    inset 0 -44px 84px rgba(0, 0, 0, .32),
    0 20px 44px rgba(0, 0, 0, .22);
}

.map[data-difficulty="easy"] {
  background:
    linear-gradient(180deg, rgba(7, 6, 15, .02), rgba(7, 6, 15, .26)),
    url("./assets/game/optimized/level-map-easy.webp") center / cover no-repeat;
}

.map[data-difficulty="medium"] {
  background:
    linear-gradient(180deg, rgba(7, 6, 15, .02), rgba(7, 6, 15, .28)),
    url("./assets/game/optimized/level-map-medium.webp") center / cover no-repeat;
}

.map[data-difficulty="hard"] {
  background:
    linear-gradient(180deg, rgba(7, 6, 15, .02), rgba(7, 6, 15, .3)),
    url("./assets/game/optimized/level-map-hard.webp") center / cover no-repeat;
}

.map::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 24%),
    radial-gradient(circle at 50% 85%, rgba(247, 37, 110, .18), transparent 34%);
  opacity: .72;
}

.map::after {
  content: "";
  position: absolute;
  left: -8px;
  bottom: -18px;
  z-index: 1;
  width: 138px;
  height: 138px;
  background: url("./assets/game/optimized/sticker-prize.webp") center / contain no-repeat;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .38));
  transform: rotate(-6deg);
  pointer-events: none;
}

.map-panel .panel-body {
  position: relative;
}

.map-panel .panel-body::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 148px;
  z-index: 3;
  width: 68px;
  height: 52px;
  background: url("./assets/game/optimized/sticker-star.webp") center / contain no-repeat;
  transform: rotate(9deg);
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .24));
  pointer-events: none;
}

.route-svg {
  position: absolute;
  inset: 18px 10px;
  z-index: 1;
  width: calc(100% - 20px);
  height: calc(100% - 36px);
  pointer-events: none;
  overflow: visible;
}

.route-svg path {
  fill: none;
  stroke: rgba(22, 215, 240, .0);
  stroke-width: 22;
  stroke-linecap: round;
  stroke-dasharray: 6 8;
  filter: drop-shadow(0 7px 5px rgba(0, 0, 0, .24));
}

.level-node {
  position: absolute;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: rgba(18, 16, 24, .78);
  background: linear-gradient(180deg, #ffffff, #dfe8e7);
  border: 2px solid rgba(255, 255, 255, .78);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .75),
    0 10px 18px rgba(0, 0, 0, .24);
  font-size: var(--font-md);
  font-weight: 800;
}

.level-node.active {
  color: #8d5206;
  background: linear-gradient(180deg, #ffe36b, #ffae16);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .55),
    0 16px 28px rgba(255, 200, 61, .34);
}

.level-node.complete {
  color: #06392f;
  background: linear-gradient(180deg, #7effd6, #2ee6c8);
}

.node-score {
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  min-width: 42px;
  min-height: 21px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 11, 34, .75);
  border: 1px solid rgba(255, 255, 255, .16);
  font-size: var(--font-xs);
}

.map-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0 0 16px;
}

.map-actions .btn {
  min-height: var(--map-control-item);
  padding: 10px 12px;
  border: 0;
  box-shadow: none;
}

.play-panel {
  grid-area: play;
  min-height: calc(100vh - 102px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .035)),
    rgba(17, 17, 20, .9);
}

.play-panel > * {
  position: relative;
  z-index: 1;
}

.play-panel .panel-head {
  padding: 16px 20px;
  z-index: 8;
}

.head-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: end;
  position: relative;
  z-index: 40;
}

.help {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #2a1e08;
  background: linear-gradient(180deg, #fff0a7, var(--gold-2));
  box-shadow: 0 10px 26px rgba(255, 176, 38, .24);
  font-size: var(--font-md);
  font-weight: 950;
  z-index: 40;
}

.tooltip {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 140;
  width: 300px;
  min-height: 112px;
  display: grid;
  align-content: center;
  padding: 14px;
  border-radius: 16px;
  color: #fff;
  background: rgba(20, 16, 44, .96);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 52px rgba(0, 0, 0, .34);
  font-size: var(--font-xs);
  font-weight: 800;
  line-height: 1.45;
  text-align: left;
  white-space: pre-line;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.help:hover .tooltip,
.help:focus-within .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn {
  position: relative;
  min-width: 0;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  color: #2a1e08;
  background: linear-gradient(180deg, #ffe779, var(--gold-2));
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .35),
    0 14px 28px rgba(255, 176, 38, .25);
  font-size: var(--font-sm);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

#startRun::after {
  content: "";
  position: absolute;
  right: -14px;
  top: -18px;
  width: 44px;
  height: 44px;
  background: url("./assets/game/optimized/sticker-bloom.webp") center / contain no-repeat;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .18));
  pointer-events: none;
}

.btn.secondary {
  color: #fff;
  background: linear-gradient(180deg, #7657f2, #4e2abf);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .18), 0 14px 28px rgba(31, 20, 74, .28);
}

.score-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.score-box {
  min-width: 0;
  min-height: var(--aligned-control-row);
  display: grid;
  align-content: center;
  gap: 6px;
  border-radius: 22px;
  padding: 12px 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04)),
    rgba(37, 29, 72, .7);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.score-box span {
  display: block;
  color: var(--soft);
  font-size: var(--font-xs);
  font-weight: 400;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.score-box strong {
  display: block;
  margin-top: 0;
  color: #ffef81;
  font-size: var(--font-md);
  line-height: 1;
  font-weight: 800;
  overflow-wrap: anywhere;
}

#levelLabel {
  font-size: var(--font-md);
  font-weight: 800;
}

.stage {
  position: relative;
  min-height: var(--aligned-main);
  padding: 18px 18px 20px;
  overflow: hidden;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(84, 101, 133, .58), rgba(18, 14, 40, .94) 38%),
    rgba(15, 11, 34, .9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 24px 54px rgba(0, 0, 0, .28);
}

.stage-top {
  min-height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: var(--font-md);
  font-weight: 950;
}

.timer {
  min-width: 98px;
  min-height: 50px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #2a1e08;
  background: linear-gradient(180deg, #ffe779, var(--gold-2));
  box-shadow: 0 14px 30px rgba(255, 176, 38, .28);
  font-size: var(--font-md);
  font-weight: 950;
}

.problem-wrap {
  min-height: 270px;
  display: grid;
  place-items: center;
  padding: 20px 12px;
}

.problem-board {
  width: min(100%, 680px);
  min-height: 210px;
  display: grid;
  place-items: center;
  padding: 28px;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04)),
    rgba(92, 75, 134, .58);
  border: 1px solid var(--line-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    0 22px 52px rgba(0, 0, 0, .26);
  text-align: center;
}

.problem-content {
  display: grid;
  place-items: center;
}

.idle-character {
  display: none;
}

.stage.idle .stage-top,
.stage.idle .answer-area {
  display: none;
}

.stage.idle .problem-wrap {
  min-height: calc(var(--aligned-main) - 38px);
  padding: 0;
}

.stage.idle .problem-board {
  width: 100%;
  min-height: calc(var(--aligned-main) - 38px);
  padding: clamp(22px, 4vw, 44px);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04)),
    rgba(92, 75, 134, .58);
}

.stage.idle .problem-content {
  width: min(100%, 520px);
  min-height: calc(var(--aligned-main) - 126px);
  align-content: center;
  gap: 16px;
}

.stage.idle .idle-character {
  display: block;
  width: min(68%, 300px);
  max-height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 20px 22px rgba(0, 0, 0, .28));
}

.stage.idle .problem-text {
  font-size: clamp(32px, 7vw, 54px);
}

.stage.idle .problem-note {
  max-width: 430px;
  margin-top: 0;
}

.problem-board.shake {
  animation: shake .34s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}

.problem-text {
  margin: 0;
  font-size: var(--font-lg);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
}

.problem-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: var(--font-sm);
  font-weight: 600;
}

.answer-area {
  min-height: 170px;
}

.choice-grid {
  width: min(100%, 640px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 auto;
}

.choice-btn {
  min-height: 70px;
  padding: 12px 16px;
  border-radius: 18px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 12px 28px rgba(0, 0, 0, .18);
  font-size: var(--font-md);
  font-weight: 400;
  line-height: 1.2;
}

.choice-btn:hover {
  color: #2a1e08;
  background: linear-gradient(180deg, #ffe779, var(--gold-2));
}

.choice-btn.wrong {
  color: #fff;
  background: linear-gradient(180deg, #ff6e8d, #b52f62);
}

.input-row {
  width: min(100%, 640px);
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 12px;
  margin: 0 auto;
}

.answer-input {
  min-height: 70px;
  border-radius: 18px;
  padding: 0 18px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
  font-size: var(--font-md);
  font-weight: 600;
  text-align: center;
}

.answer-input::placeholder {
  color: rgba(255, 255, 255, .42);
}

.feedback {
  min-height: var(--aligned-footer);
  display: grid;
  place-items: center;
  margin-top: 14px;
  color: var(--muted);
  font-size: var(--font-sm);
  font-weight: 900;
  text-align: center;
}

.star-pop {
  position: absolute;
  left: 50%;
  top: 146px;
  z-index: 8;
  min-width: 128px;
  min-height: 50px;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  border-radius: 999px;
  color: #2a1e08;
  background: linear-gradient(180deg, #ffe779, var(--gold-2));
  box-shadow: 0 18px 36px rgba(255, 176, 38, .32);
  font-size: var(--font-md);
  font-weight: 950;
  opacity: 0;
  pointer-events: none;
}

.star-pop.show {
  animation: popScore 1.05s ease forwards;
}

@keyframes popScore {
  0% { opacity: 0; transform: translate(-50%, 20px) scale(.78); }
  18% { opacity: 1; transform: translate(-50%, 0) scale(1.08); }
  72% { opacity: 1; transform: translate(-50%, -12px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -34px) scale(.92); }
}

.leaderboard {
  display: grid;
  gap: 10px;
}

.rank-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line);
  font-size: var(--font-sm);
  font-weight: 900;
}

.rank-row b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #2a1e08;
  background: linear-gradient(180deg, #ffe779, var(--gold-2));
}

.rank-row strong {
  color: var(--green);
}

.achievement-grid {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.achievement-grid.open {
  display: grid;
}

.achievement-card {
  min-height: 128px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.achievement-card.locked {
  grid-template-columns: 1fr;
  place-items: center;
  color: rgba(255, 255, 255, .42);
}

.achievement-card.locked .achievement-copy {
  justify-items: center;
  text-align: center;
}

.achievement-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #2a1e08;
  background: linear-gradient(180deg, #ffe779, var(--gold-2));
}

.achievement-card.locked .achievement-icon {
  color: rgba(255, 255, 255, .52);
  background: rgba(255, 255, 255, .1);
  border: 1px solid var(--line);
}

.achievement-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.achievement-copy {
  display: grid;
  gap: 6px;
}

.achievement-copy strong {
  color: #ffef81;
  font-size: var(--font-sm);
}

.achievement-tag {
  width: fit-content;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #2a1e08;
  background: #7effd6;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.achievement-copy p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

/* WordPress block CSS: result settlement and leaderboard modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(10, 5, 22, .72);
  backdrop-filter: blur(14px);
}

.modal.open {
  display: grid;
}

.modal-card {
  position: relative;
  width: min(1120px, 100%);
  max-height: min(860px, calc(100vh - 44px));
  overflow: auto;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .06)),
    rgba(38, 28, 76, .96);
  border: 1px solid var(--line-strong);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .48);
}

.modal-card::after {
  content: "";
  position: absolute;
  right: 28px;
  top: 76px;
  width: 96px;
  height: 76px;
  background: url("./assets/game/optimized/sticker-crown.webp") center / contain no-repeat;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .28));
  transform: rotate(8deg);
  pointer-events: none;
}

#resultModal.is-leaderboard-view .modal-card::after {
  content: none;
}

.modal-head {
  min-height: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .08);
}

.modal-head h2 {
  margin: 0;
  font-size: var(--font-md);
}

.modal-close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid var(--line);
  font-size: var(--font-md);
  font-weight: 950;
}

.settlement {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(300px, 1fr);
  gap: 18px;
  padding: 18px;
}

.risk-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 42%, rgba(86, 240, 209, .24), transparent 28%),
    linear-gradient(180deg, rgba(12, 22, 38, .96), rgba(5, 8, 18, .98));
  border: 1px solid rgba(86, 240, 209, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 22px 54px rgba(0, 0, 0, .3);
  padding: 20px;
}

.risk-grid {
  position: absolute;
  inset: 0;
  opacity: .32;
  background:
    linear-gradient(rgba(86, 240, 209, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 240, 209, .22) 1px, transparent 1px);
  background-size: 28px 28px;
}

.risk-title {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  color: #d8fff8;
  font-weight: 950;
}

.risk-title span {
  color: rgba(216, 255, 248, .7);
  font-size: var(--font-xs);
}

.radar {
  position: relative;
  z-index: 1;
  width: 210px;
  height: 210px;
  margin: 42px auto 28px;
  border-radius: 50%;
  border: 1px solid rgba(86, 240, 209, .38);
  background:
    radial-gradient(circle, rgba(86, 240, 209, .34) 0 2px, transparent 3px),
    repeating-radial-gradient(circle, rgba(86, 240, 209, .18) 0 1px, transparent 1px 34px);
  box-shadow: 0 0 50px rgba(86, 240, 209, .18);
}

.radar::before {
  content: "";
  position: absolute;
  inset: 50% 50% 0 50%;
  width: 100px;
  height: 2px;
  transform-origin: left center;
  transform: rotate(-28deg);
  background: linear-gradient(90deg, rgba(86, 240, 209, .9), transparent);
  box-shadow: 0 0 20px rgba(86, 240, 209, .8);
}

.scan-lines {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  color: rgba(216, 255, 248, .74);
  font-size: var(--font-xs);
}

.result-copy {
  display: grid;
  align-content: start;
  gap: 14px;
}

.result-badge {
  position: relative;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 999px;
  color: #2a1e08;
  background: linear-gradient(180deg, #ffe779, var(--gold-2));
  font-size: var(--font-md);
  font-weight: 950;
}

.result-copy h3 {
  margin: 0;
  font-size: var(--font-lg);
  line-height: 1.05;
}

.result-copy p {
  margin: 0;
  color: var(--muted);
  font-size: var(--font-md);
  line-height: 1.45;
  font-weight: 800;
}

.result-score {
  color: #ffef81;
  font-size: var(--font-lg);
  font-weight: 950;
  line-height: 1;
}

.modal-leaderboard {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.leaderboard-status {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line);
  font-weight: 950;
}

.leaderboard-status span {
  display: grid;
  gap: 2px;
  color: #fff;
  font-size: var(--font-sm);
}

.leaderboard-status em {
  color: var(--muted);
  font-size: var(--font-xs);
  font-style: normal;
  font-weight: 900;
}

.leaderboard-status strong {
  color: var(--green);
  font-size: var(--font-md);
}

.result-badge::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -26px;
  width: 58px;
  height: 58px;
  background: url("./assets/game/optimized/sticker-prize.webp") center / contain no-repeat;
  pointer-events: none;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .2));
}

.rank-summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  color: #2a1e08;
  background: linear-gradient(180deg, #ffe779, var(--gold-2));
  font-weight: 950;
}

.rank-summary span {
  display: grid;
  gap: 2px;
}

.rank-summary em {
  font-size: var(--font-xs);
  font-style: normal;
  font-weight: 900;
  opacity: .78;
}

.modal-rank-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 10px;
  margin-top: 8px;
}

.modal-rank-form input {
  min-height: 52px;
  border-radius: 16px;
  padding: 0 14px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid var(--line-strong);
  font-size: var(--font-sm);
  font-weight: 900;
}

.result-share {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 40;
  width: min(420px, calc(100vw - 28px));
  min-height: 52px;
  display: grid;
  place-items: center;
  padding: 12px 16px;
  transform: translateX(-50%);
  border-radius: 16px;
  color: #2a1e08;
  background: linear-gradient(180deg, #ffe779, var(--gold-2));
  box-shadow: 0 18px 36px rgba(255, 176, 38, .26);
  font-size: var(--font-sm);
  font-weight: 950;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, -8px);
}

@media (max-width: 1180px) {
  :root {
    --font-xs: 10px;
    --font-sm: 12px;
    --font-md: 15px;
    --font-lg: 32px;
    --aligned-head: 64px;
    --aligned-control-row: 64px;
    --map-control-item: 38px;
    --map-control-gap: 6px;
    --aligned-main: clamp(420px, 56vw, 520px);
    --aligned-footer: 44px;
    --shadow: 0 16px 42px rgba(0, 0, 0, .3);
  }

  .topbar {
    justify-content: flex-start;
  }

  .score-cluster,
  .total-pill {
    justify-self: start;
  }

  .game-shell {
    grid-template-columns: minmax(260px, .36fr) minmax(0, .64fr);
    grid-template-areas: "map play";
    gap: 12px;
  }

  .play-panel {
    min-height: auto;
  }

  .settlement {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 721px) and (max-width: 1180px) {
  :root {
    --font-xs: 11px;
    --font-sm: 14px;
    --font-md: 17px;
    --font-lg: 34px;
    --aligned-head: 62px;
    --aligned-control-row: 56px;
    --map-control-item: 36px;
    --map-control-gap: 8px;
    --aligned-main: clamp(390px, 43vw, 440px);
    --map-main: clamp(360px, 45vw, 440px);
    --aligned-footer: 42px;
    --shadow: 0 14px 36px rgba(0, 0, 0, .3);
  }

  body::before {
    mix-blend-mode: screen;
    opacity: .34;
  }

  .app {
    width: min(calc(100vw - 24px), 1530px);
    gap: 14px;
    padding: 10px 0 18px;
  }

  .topbar {
    min-height: 48px;
  }

  .score-cluster {
    gap: 8px;
  }

  .total-pill {
    min-height: 42px;
    gap: 8px;
    padding: 0 16px;
  }

  .rank-open {
    width: 40px;
    min-height: 40px;
  }

  .rank-open svg {
    width: 20px;
    height: 20px;
  }

  .game-shell {
    grid-template-columns: minmax(264px, .38fr) minmax(0, .62fr);
    gap: 14px;
    align-items: start;
  }

  .panel {
    border-radius: 20px;
  }

  .panel-head,
  .play-panel .panel-head {
    gap: 10px;
    padding: 12px 14px;
  }

  .panel-head::after {
    right: 12px;
    bottom: -10px;
    width: 48px;
    height: 31px;
    opacity: .68;
  }

  .panel-body {
    padding: 14px;
  }

  .map-panel {
    align-self: start;
  }

  .map-panel .panel-body {
    padding: 12px;
  }

  .difficulty-tabs {
    gap: 6px;
  }

  .difficulty-tab {
    min-height: 36px;
    padding: 8px 6px;
    border-radius: 8px;
  }

  .map-actions {
    gap: 8px;
    margin-bottom: 10px;
  }

  .map-actions .btn {
    min-height: 36px;
    padding: 7px 6px;
    border-radius: 9px;
    line-height: 1.15;
    white-space: normal;
  }

  .map {
    height: var(--map-main, var(--aligned-main));
    border-radius: 16px;
  }

  .map::after {
    left: -10px;
    bottom: -14px;
    width: 92px;
    height: 92px;
    opacity: .86;
  }

  .map-panel .panel-body::after {
    right: -5px;
    top: 118px;
    width: 48px;
    height: 38px;
    opacity: .82;
  }

  .route-svg {
    inset: 14px 8px;
    width: calc(100% - 16px);
    height: calc(100% - 28px);
  }

  .level-node {
    width: 38px;
    height: 38px;
    border-width: 1px;
    font-size: 15px;
  }

  .node-score {
    min-width: 30px;
    min-height: 16px;
    bottom: -7px;
    font-size: 10px;
  }

  .play-panel {
    min-height: auto;
  }

  .play-panel .panel-head h1 {
    flex: 1 1 170px;
  }

  .head-actions {
    gap: 8px;
  }

  .help {
    width: 34px;
    height: 34px;
  }

  .tooltip {
    width: min(280px, calc(100vw - 32px));
    padding: 12px;
    border-radius: 12px;
  }

  .btn {
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 11px;
  }

  #startRun::after {
    content: none;
  }

  .score-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
  }

  .score-box {
    min-height: 56px;
    gap: 3px;
    padding: 8px 10px;
    border-radius: 14px;
  }

  .stage {
    min-height: var(--aligned-main);
    padding: 12px;
    border-radius: 20px;
  }

  .stage-top {
    min-height: 36px;
    gap: 8px;
  }

  .timer {
    min-width: 68px;
    min-height: 36px;
    border-radius: 9px;
  }

  .problem-wrap {
    min-height: 166px;
    padding: 10px 6px;
  }

  .problem-board {
    min-height: 148px;
    padding: 18px 12px;
    border-radius: 18px;
  }

  .stage.idle .problem-wrap {
    min-height: calc(var(--aligned-main) - 24px);
  }

  .stage.idle .problem-board {
    min-height: calc(var(--aligned-main) - 24px);
    padding: 18px;
  }

  .stage.idle .problem-content {
    min-height: calc(var(--aligned-main) - 70px);
    gap: 10px;
  }

  .stage.idle .idle-character {
    width: min(58%, 190px);
    max-height: 190px;
  }

  .stage.idle .problem-text {
    font-size: 34px;
  }

  .problem-note {
    margin-top: 10px;
  }

  .answer-area {
    min-height: 96px;
  }

  .choice-grid {
    gap: 8px;
  }

  .choice-btn {
    min-height: 46px;
    padding: 8px;
    border-radius: 12px;
  }

  .input-row {
    gap: 8px;
  }

  .answer-input {
    min-height: 46px;
    border-radius: 12px;
  }

  .feedback {
    margin-top: 8px;
  }

  .star-pop {
    top: 92px;
    min-width: 82px;
    min-height: 32px;
  }

  .modal {
    padding: 16px;
  }

  .modal-card {
    max-height: calc(100vh - 32px);
    border-radius: 24px;
  }

  .modal-card::after {
    right: 18px;
    top: 62px;
    width: 68px;
    height: 54px;
  }

  .modal-head {
    min-height: 60px;
    padding: 12px 16px;
  }

  .modal-close {
    width: 38px;
    height: 38px;
  }

  .settlement {
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .risk-card {
    min-height: 320px;
    border-radius: 20px;
    padding: 16px;
  }

  .radar {
    width: 160px;
    height: 160px;
    margin: 32px auto 22px;
  }

  .radar::before {
    width: 76px;
  }

  .result-copy {
    gap: 12px;
  }

  .leaderboard-status,
  .rank-summary {
    min-height: 46px;
    border-radius: 12px;
  }

  .modal-rank-form input {
    min-height: 46px;
    border-radius: 12px;
  }

  .achievement-card {
    min-height: 112px;
    padding: 12px;
    border-radius: 14px;
  }
}

@media (max-width: 720px) {
  :root {
    --font-xs: 10px;
    --font-sm: 12px;
    --font-md: 15px;
    --font-lg: 28px;
    --aligned-head: 48px;
    --aligned-control-row: 48px;
    --map-control-item: 34px;
    --map-control-gap: 6px;
    --aligned-main: clamp(300px, 74vw, 360px);
    --map-main: clamp(220px, 58vw, 290px);
    --aligned-footer: 32px;
    --shadow: 0 10px 28px rgba(0, 0, 0, .28);
  }

  body::before {
    background: linear-gradient(90deg, rgba(247, 37, 110, .22), rgba(17, 17, 20, .62));
    mix-blend-mode: normal;
    opacity: .32;
  }

  .app {
    width: min(calc(100% - 12px), 1530px);
    gap: 8px;
    padding: 6px 0 12px;
  }

  .topbar {
    min-height: 32px;
  }

  .score-cluster {
    gap: 4px;
  }

  .total-pill {
    min-height: 32px;
    gap: 6px;
    padding: 0 12px;
  }

  .rank-open {
    width: 32px;
    min-height: 32px;
  }

  .rank-open svg {
    width: 17px;
    height: 17px;
  }

  .badge-new {
    top: -5px;
    right: -6px;
    min-width: 22px;
    min-height: 13px;
    padding: 0 4px;
    font-size: 7px;
  }

  .game-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "map"
      "play";
    gap: 8px;
  }

  .panel {
    border-radius: 14px;
  }

  .panel-head,
  .play-panel .panel-head {
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px;
  }

  .panel-head::after {
    content: none;
  }

  .panel-body {
    padding: 8px;
  }

  .head-actions {
    gap: 6px;
    margin-left: auto;
  }

  .help {
    width: 28px;
    height: 28px;
  }

  .tooltip {
    width: min(220px, calc(100vw - 20px));
    padding: 8px;
    border-radius: 10px;
  }

  .btn {
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 9px;
  }

  #startRun::after {
    content: none;
  }

  .modal-rank-form,
  .achievement-grid {
    grid-template-columns: 1fr;
  }

  .map-panel .panel-body {
    padding: 8px;
  }

  .map-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 0 0 8px;
  }

  .map-actions .btn {
    padding: 6px 8px;
    border-radius: 8px;
    line-height: 1.15;
    white-space: normal;
  }

  .map {
    height: var(--map-main, var(--aligned-main));
    border-radius: 12px;
  }

  .map::after {
    content: none;
  }

  .map-panel .panel-body::after {
    content: none;
  }

  .difficulty-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .difficulty-tab {
    padding: 6px 4px;
    border-radius: 8px;
  }

  .level-node {
    width: 30px;
    height: 30px;
    border-width: 1px;
    font-size: 12px;
  }

  .node-score {
    min-width: 24px;
    min-height: 13px;
    bottom: -6px;
    font-size: 9px;
  }

  .score-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 6px;
  }

  .score-box {
    gap: 2px;
    padding: 5px 3px;
    border-radius: 9px;
    text-align: center;
  }

  .stage {
    padding: 10px;
    border-radius: 16px;
  }

  .stage-top {
    min-height: 26px;
    gap: 6px;
  }

  .timer {
    min-width: 44px;
    min-height: 26px;
    border-radius: 7px;
  }

  .problem-wrap {
    min-height: 130px;
    padding: 8px 4px;
  }

  .problem-board {
    min-height: 104px;
    padding: 12px 8px;
    border-radius: 14px;
  }

  .stage.idle .problem-wrap {
    min-height: calc(var(--aligned-main) - 14px);
  }

  .stage.idle .problem-board {
    min-height: calc(var(--aligned-main) - 14px);
    padding: 12px;
  }

  .stage.idle .problem-content {
    min-height: calc(var(--aligned-main) - 54px);
    gap: 7px;
  }

  .stage.idle .idle-character {
    width: min(62%, 150px);
    max-height: 150px;
  }

  .stage.idle .problem-text {
    font-size: 28px;
  }

  .problem-note {
    margin-top: 7px;
  }

  .answer-area {
    min-height: 82px;
  }

  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .choice-btn {
    min-height: 32px;
    padding: 6px;
    border-radius: 9px;
  }

  .input-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px;
  }

  .answer-input {
    min-height: 32px;
    padding: 0 7px;
    border-radius: 9px;
  }

  .feedback {
    margin-top: 6px;
  }

  .star-pop {
    top: 70px;
    min-width: 58px;
    min-height: 25px;
  }

  .modal {
    padding: 10px;
  }

  .modal-card {
    border-radius: 22px;
    max-height: calc(100vh - 20px);
  }

  .modal-card::after {
    right: 14px;
    top: 58px;
    width: 64px;
    height: 51px;
  }

  .modal-head {
    min-height: 56px;
    padding: 12px;
  }

  .modal-close {
    width: 36px;
    height: 36px;
  }

  .settlement {
    gap: 10px;
    padding: 10px;
  }

  .risk-card {
    min-height: 300px;
    border-radius: 20px;
    padding: 14px;
  }

  .radar {
    width: 150px;
    height: 150px;
    margin: 30px auto 20px;
  }

  .radar::before {
    width: 72px;
  }

  .result-copy {
    gap: 10px;
  }

  .result-badge {
    min-height: 38px;
    padding: 0 12px;
  }

  .result-badge::after {
    right: -28px;
    top: -18px;
    width: 42px;
    height: 42px;
  }

  .rank-summary,
  .leaderboard-status {
    min-height: 44px;
    border-radius: 12px;
  }

  .modal-rank-form input {
    min-height: 44px;
    border-radius: 12px;
  }

  .rank-row {
    min-height: 42px;
    gap: 8px;
  }

  .rank-row b,
  .achievement-icon {
    width: 34px;
    height: 34px;
  }

  .achievement-card {
    min-height: 104px;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
  }

  .toast {
    min-height: 44px;
    border-radius: 12px;
  }
}

/* Local Slider CAPTCHA module */
[data-game-page="slider-captcha"] .stage:not(.idle) .problem-wrap {
  min-height: 330px;
  padding: 14px 8px;
}

[data-game-page="slider-captcha"] .stage:not(.idle) .problem-board {
  width: min(100%, 700px);
  min-height: 308px;
  padding: 12px;
  overflow: hidden;
}

.slider-captcha-board {
  --outline-opacity: .34;
  position: relative;
  width: 100%;
  height: 282px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px;
  background-color: #172033;
  background-repeat: no-repeat;
  background-size: cover;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .2),
    inset 0 -28px 50px rgba(0, 0, 0, .28),
    0 18px 42px rgba(0, 0, 0, .2);
  touch-action: none;
}

.slider-captcha-board::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .06), transparent 34% 64%, rgba(255, 255, 255, .08)),
    radial-gradient(circle at 50% 45%, transparent 0 44%, rgba(0, 0, 0, .2) 78%);
  mix-blend-mode: soft-light;
}

.slider-sheen {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .14), transparent 34%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 7px);
  mix-blend-mode: overlay;
  opacity: .58;
}

.slider-target,
.slider-piece {
  position: absolute;
  z-index: 2;
  border-radius: 16px;
}

.slider-target {
  background:
    radial-gradient(circle at 70% 50%, rgba(0, 0, 0, .48), rgba(0, 0, 0, .2) 54%, transparent 56%),
    rgba(0, 0, 0, .44);
  box-shadow:
    inset 0 0 0 999px rgba(0, 0, 0, .18),
    inset 0 0 22px rgba(0, 0, 0, .52),
    0 0 0 1px rgba(255, 255, 255, calc(var(--outline-opacity) * .3));
  filter: saturate(.62) brightness(.82) contrast(1.22);
}

.slider-target::before,
.slider-piece::before {
  content: "";
  position: absolute;
  right: -21%;
  top: 31%;
  width: 42%;
  height: 42%;
  border-radius: 50%;
}

.slider-target::before {
  background: rgba(0, 0, 0, .42);
  box-shadow:
    inset 0 0 18px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(255, 255, 255, calc(var(--outline-opacity) * .22));
}

.slider-target::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  border: 1px solid rgba(255, 255, 255, var(--outline-opacity));
  box-shadow:
    0 0 0 1px rgba(22, 215, 240, calc(var(--outline-opacity) * .52)),
    0 0 28px rgba(22, 215, 240, calc(var(--outline-opacity) * .46));
  opacity: var(--outline-opacity);
}

.slider-piece {
  z-index: 5;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, .46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .52),
    inset 0 -12px 20px rgba(0, 0, 0, .18),
    0 14px 30px rgba(0, 0, 0, .34);
  filter: saturate(1.16) contrast(1.08) drop-shadow(0 12px 18px rgba(0, 0, 0, .28));
  will-change: transform, background-position;
}

.slider-piece::before {
  background: inherit;
  background-size: inherit;
  background-position: inherit;
  border: 1px solid rgba(255, 255, 255, .42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .45),
    7px 8px 16px rgba(0, 0, 0, .2);
}

.slider-piece span {
  position: absolute;
  inset: 8px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, .26);
  pointer-events: none;
}

.slider-captcha-board.is-near .slider-piece {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .58),
    0 0 0 2px rgba(88, 243, 167, .42),
    0 18px 36px rgba(0, 0, 0, .32);
}

.slider-captcha-board.is-near .slider-target {
  opacity: .28;
}

.slider-captcha-board.is-near .slider-target::after {
  opacity: calc(var(--outline-opacity) * .16);
}

.camo-canvas {
  position: absolute;
  inset: -10%;
  z-index: 3;
  display: none;
  width: 120%;
  height: 120%;
  pointer-events: none;
  opacity: .74;
  mix-blend-mode: overlay;
  filter: contrast(1.25) saturate(1.35);
}

.slider-captcha-board.is-camo .camo-canvas {
  display: block;
}

.slider-captcha-board.is-camo .slider-target {
  mix-blend-mode: luminosity;
}

.slider-control {
  width: min(100%, 640px);
  display: grid;
  gap: 12px;
  margin: 0 auto;
}

.slider-track {
  position: relative;
  height: 68px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .06)),
    rgba(0, 0, 0, .24);
  border: 1px solid var(--line-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    inset 0 -18px 28px rgba(0, 0, 0, .22),
    0 12px 28px rgba(0, 0, 0, .16);
  touch-action: none;
  cursor: grab;
}

.slider-track:active {
  cursor: grabbing;
}

.slider-track::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 50%;
  height: 12px;
  transform: translateY(-50%);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(22, 215, 240, .24), rgba(255, 216, 93, .18)),
    rgba(255, 255, 255, .11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}

.slider-fill {
  position: absolute;
  left: 18px;
  top: 50%;
  z-index: 1;
  width: 0;
  height: 12px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--aqua), var(--gold));
  box-shadow: 0 0 20px rgba(22, 215, 240, .32);
}

.slider-handle {
  position: absolute;
  left: 7px;
  top: 50%;
  z-index: 2;
  width: 62px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #2a1e08;
  background: linear-gradient(180deg, #ffe779, var(--gold-2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    0 14px 26px rgba(0, 0, 0, .28);
  transform: translate3d(0, -50%, 0);
  will-change: transform;
}

.slider-handle svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.slider-readout {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px 0 12px;
  color: var(--muted);
  font-size: var(--font-sm);
  font-weight: 900;
}

.slider-readout strong {
  color: #fff;
}

.slider-reset {
  min-height: 42px;
}

@media (min-width: 721px) and (max-width: 1180px) {
  [data-game-page="slider-captcha"] .stage:not(.idle) .problem-wrap {
    min-height: 218px;
    padding: 8px 4px;
  }

  [data-game-page="slider-captcha"] .stage:not(.idle) .problem-board {
    min-height: 204px;
    padding: 9px;
  }

  .slider-captcha-board {
    height: 186px;
    border-radius: 17px;
  }

  .slider-control {
    gap: 7px;
  }

  .slider-track {
    height: 50px;
    border-radius: 13px;
  }

  .slider-handle {
    width: 48px;
    height: 38px;
    border-radius: 11px;
  }

  .slider-handle svg {
    width: 21px;
    height: 21px;
  }

  .slider-readout {
    min-height: 36px;
  }
}

@media (max-width: 720px) {
  [data-game-page="slider-captcha"] .stage:not(.idle) .problem-wrap {
    min-height: 164px;
    padding: 6px 2px;
  }

  [data-game-page="slider-captcha"] .stage:not(.idle) .problem-board {
    min-height: 152px;
    padding: 7px;
  }

  .slider-captcha-board {
    height: 138px;
    border-radius: 13px;
  }

  .slider-target,
  .slider-piece {
    border-radius: 12px;
  }

  .slider-target::after {
    border-radius: 14px;
  }

  .slider-piece span {
    inset: 6px;
    border-radius: 8px;
  }

  .slider-control {
    gap: 5px;
  }

  .slider-track {
    height: 42px;
    border-radius: 11px;
  }

  .slider-track::before,
  .slider-fill {
    left: 12px;
    height: 8px;
  }

  .slider-track::before {
    right: 12px;
  }

  .slider-handle {
    left: 4px;
    width: 40px;
    height: 32px;
    border-radius: 9px;
  }

  .slider-handle svg {
    width: 18px;
    height: 18px;
  }

  .slider-readout {
    min-height: 32px;
    gap: 6px;
    padding-left: 4px;
  }

  .slider-reset {
    min-height: 30px;
  }
}

@media (max-width: 430px) {
  .slider-readout {
    align-items: stretch;
  }

  .slider-readout span {
    display: grid;
    align-content: center;
  }
}

/* Slider CAPTCHA refinement: staged controls, larger boards, themed local assets */
[data-game-page="slider-captcha"] .stage.idle .idle-character {
  width: min(58%, 250px);
  max-height: 250px;
}

[data-game-page="slider-captcha"] .stage[data-slider-control="rail"] .problem-wrap {
  min-height: 430px;
}

[data-game-page="slider-captcha"] .stage[data-slider-control="pad"] .problem-wrap {
  min-height: 486px;
}

[data-game-page="slider-captcha"] .stage[data-slider-control="joystick"] .problem-wrap {
  min-height: 526px;
}

[data-game-page="slider-captcha"] .stage[data-slider-control="rail"] .problem-board {
  width: min(100%, 760px);
  min-height: 414px;
}

[data-game-page="slider-captcha"] .stage[data-slider-control="pad"] .problem-board {
  width: min(100%, 820px);
  min-height: 462px;
}

[data-game-page="slider-captcha"] .stage[data-slider-control="joystick"] .problem-board {
  width: min(100%, 860px);
  min-height: 494px;
}

[data-game-page="slider-captcha"] .stage[data-slider-control="rail"] .answer-area {
  min-height: 142px;
}

[data-game-page="slider-captcha"] .stage[data-slider-control="pad"] .answer-area,
[data-game-page="slider-captcha"] .stage[data-slider-control="joystick"] .answer-area {
  min-height: 190px;
}

.slider-captcha-board {
  width: 100%;
  height: auto;
  aspect-ratio: 836 / 471;
  min-height: 330px;
  max-height: 490px;
  background-size: 100% 100%;
}

.slider-captcha-board[data-slider-theme="sunny"] .slider-sheen {
  opacity: .42;
}

.slider-captcha-board[data-slider-theme="ice"] .slider-piece {
  filter: saturate(1.05) contrast(1.04) drop-shadow(0 14px 20px rgba(169, 242, 255, .24));
}

.slider-captcha-board[data-slider-theme="storm"] .slider-sheen {
  opacity: .66;
}

.slider-control {
  width: min(100%, 700px);
}

.slider-control-pad,
.slider-control-joystick {
  width: min(100%, 720px);
  grid-template-columns: auto minmax(220px, 1fr);
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.direction-pad {
  width: 174px;
  height: 174px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  padding: 8px;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04)),
    rgba(0, 0, 0, .22);
  border: 1px solid var(--line-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .15),
    0 18px 36px rgba(0, 0, 0, .22);
  touch-action: none;
}

.pad-btn,
.pad-center,
.joystick-knob {
  display: grid;
  place-items: center;
  color: #2a1e08;
  background: linear-gradient(180deg, #ffe779, var(--gold-2));
  border: 1px solid rgba(255, 255, 255, .38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    0 10px 20px rgba(0, 0, 0, .24);
}

.pad-btn {
  min-width: 0;
  min-height: 0;
  border-radius: 15px;
  touch-action: none;
}

.pad-btn:active,
.joystick-base:active .joystick-knob {
  transform: translateY(1px);
}

.pad-center {
  grid-column: 2;
  grid-row: 2;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 32%, rgba(255, 255, 255, .65), transparent 24%),
    linear-gradient(180deg, #7effd6, #16d7f0);
}

.pad-up {
  grid-column: 2;
  grid-row: 1;
}

.pad-left {
  grid-column: 1;
  grid-row: 2;
}

.pad-right {
  grid-column: 3;
  grid-row: 2;
}

.pad-down {
  grid-column: 2;
  grid-row: 3;
}

.control-arrow {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.control-arrow.left {
  transform: rotate(-90deg);
}

.control-arrow.right {
  transform: rotate(90deg);
}

.control-arrow.down {
  transform: rotate(180deg);
}

.joystick-base {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(22, 215, 240, .22), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .035)),
    rgba(0, 0, 0, .24);
  border: 1px solid var(--line-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .15),
    inset 0 -18px 28px rgba(0, 0, 0, .24),
    0 18px 36px rgba(0, 0, 0, .24);
  touch-action: none;
}

.joystick-ring {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .3);
  box-shadow: inset 0 0 28px rgba(22, 215, 240, .16);
}

.joystick-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
  touch-action: none;
}

.joystick-knob::after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(42, 30, 8, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}

.slider-control-pad .slider-readout,
.slider-control-joystick .slider-readout {
  min-height: 74px;
  padding: 10px 4px 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
}

@media (min-width: 721px) and (max-width: 1180px) {
  [data-game-page="slider-captcha"] .stage.idle .idle-character {
    width: min(54%, 180px);
    max-height: 180px;
  }

  [data-game-page="slider-captcha"] .stage[data-slider-control="rail"] .problem-wrap {
    min-height: 270px;
  }

  [data-game-page="slider-captcha"] .stage[data-slider-control="pad"] .problem-wrap {
    min-height: 312px;
  }

  [data-game-page="slider-captcha"] .stage[data-slider-control="joystick"] .problem-wrap {
    min-height: 346px;
  }

  [data-game-page="slider-captcha"] .stage[data-slider-control="rail"] .problem-board,
  [data-game-page="slider-captcha"] .stage[data-slider-control="pad"] .problem-board,
  [data-game-page="slider-captcha"] .stage[data-slider-control="joystick"] .problem-board {
    min-height: auto;
  }

  .slider-captcha-board {
    min-height: 220px;
    max-height: 340px;
  }

  .slider-control-pad,
  .slider-control-joystick {
    grid-template-columns: auto minmax(160px, 1fr);
    gap: 12px;
  }

  .direction-pad,
  .joystick-base {
    width: 126px;
    height: 126px;
    border-radius: 18px;
  }

  .joystick-base {
    border-radius: 50%;
  }

  .pad-btn {
    border-radius: 11px;
  }

  .control-arrow {
    width: 18px;
    height: 18px;
  }

  .joystick-knob {
    width: 48px;
    height: 48px;
  }

  .joystick-ring {
    inset: 16px;
  }

  .slider-control-pad .slider-readout,
  .slider-control-joystick .slider-readout {
    min-height: 56px;
  }
}

@media (max-width: 720px) {
  [data-game-page="slider-captcha"] .stage.idle .idle-character {
    width: min(58%, 132px);
    max-height: 132px;
  }

  [data-game-page="slider-captcha"] .stage[data-slider-control="rail"] .problem-wrap {
    min-height: 184px;
  }

  [data-game-page="slider-captcha"] .stage[data-slider-control="pad"] .problem-wrap {
    min-height: 214px;
  }

  [data-game-page="slider-captcha"] .stage[data-slider-control="joystick"] .problem-wrap {
    min-height: 238px;
  }

  [data-game-page="slider-captcha"] .stage[data-slider-control="rail"] .problem-board,
  [data-game-page="slider-captcha"] .stage[data-slider-control="pad"] .problem-board,
  [data-game-page="slider-captcha"] .stage[data-slider-control="joystick"] .problem-board {
    min-height: auto;
  }

  [data-game-page="slider-captcha"] .stage[data-slider-control="pad"] .answer-area,
  [data-game-page="slider-captcha"] .stage[data-slider-control="joystick"] .answer-area {
    min-height: 142px;
  }

  .slider-captcha-board {
    min-height: 150px;
    max-height: 230px;
  }

  .slider-control-pad,
  .slider-control-joystick {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
  }

  .direction-pad,
  .joystick-base {
    width: 102px;
    height: 102px;
  }

  .direction-pad {
    gap: 5px;
    padding: 6px;
    border-radius: 15px;
  }

  .pad-btn {
    border-radius: 8px;
  }

  .control-arrow {
    width: 15px;
    height: 15px;
  }

  .joystick-knob {
    width: 40px;
    height: 40px;
  }

  .joystick-ring {
    inset: 13px;
  }

  .slider-control-pad .slider-readout,
  .slider-control-joystick .slider-readout {
    min-height: 48px;
    padding: 6px 2px 6px 8px;
  }
}

@media (max-width: 430px) {
  .slider-control-pad,
  .slider-control-joystick {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .slider-control-pad .slider-readout,
  .slider-control-joystick .slider-readout {
    width: 100%;
  }
}

/* Slider CAPTCHA release-only interaction and Russo One typography pass */
[data-game-page="slider-captcha"] .stage[data-slider-control="drag"] .problem-wrap {
  min-height: 486px;
}

[data-game-page="slider-captcha"] .stage[data-slider-control="drag"] .problem-board {
  width: min(100%, 820px);
  min-height: 462px;
}

[data-game-page="slider-captcha"] .stage[data-slider-control="drag"] .answer-area {
  min-height: 150px;
}

[data-game-page="slider-captcha"] .stage[data-slider-control="drag"] .slider-captcha-board {
  cursor: grab;
}

[data-game-page="slider-captcha"] .stage[data-slider-control="drag"] .slider-captcha-board:active {
  cursor: grabbing;
}

.slider-control-drag {
  width: min(100%, 520px);
}

body.slider-page {
  --slider-type-xs: 10px;
  --slider-type-sm: 12px;
  --slider-type-md: 15px;
  --slider-type-lg: 34px;
  --font-xs: var(--slider-type-xs);
  --font-sm: var(--slider-type-sm);
  --font-md: var(--slider-type-md);
  --font-lg: var(--slider-type-lg);
}

body.slider-page,
body.slider-page *,
body.slider-page *::before,
body.slider-page *::after {
  font-family: "Russo One", Arial, sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

body.slider-page,
body.slider-page .app,
body.slider-page .modal,
body.slider-page .toast,
body.slider-page .btn,
body.slider-page .feedback,
body.slider-page .problem-note,
body.slider-page .slider-readout,
body.slider-page .rank-row,
body.slider-page .achievement-card,
body.slider-page .modal-rank-form input {
  font-size: var(--slider-type-sm) !important;
}

body.slider-page .badge-new,
body.slider-page .tooltip,
body.slider-page .score-box span,
body.slider-page .node-score,
body.slider-page .scan-lines,
body.slider-page .achievement-tag,
body.slider-page .leaderboard-status em,
body.slider-page .rank-summary em,
body.slider-page .risk-title span {
  font-size: var(--slider-type-xs) !important;
}

body.slider-page .total-pill,
body.slider-page .rank-open,
body.slider-page .panel-head h1,
body.slider-page .panel-head h2,
body.slider-page .panel-head strong,
body.slider-page .difficulty-tab,
body.slider-page .score-box strong,
body.slider-page .stage-top,
body.slider-page .timer,
body.slider-page .modal-head h2,
body.slider-page .modal-close,
body.slider-page .result-copy h3,
body.slider-page .result-badge,
body.slider-page .rank-summary strong,
body.slider-page .leaderboard-status strong,
body.slider-page .rank-row b,
body.slider-page .rank-row strong,
body.slider-page .achievement-card strong {
  font-size: var(--slider-type-md) !important;
}

body.slider-page .problem-text,
body.slider-page .result-score {
  font-size: var(--slider-type-lg) !important;
}

body.slider-page .achievement-copy p {
  font-size: var(--slider-type-md) !important;
  line-height: 1.35;
}

body.slider-page .result-copy .rank-summary {
  --slider-result-rank-size: 22px;
  min-height: 58px;
  flex-wrap: nowrap;
  padding: 10px 16px;
  white-space: nowrap;
}

body.slider-page .result-copy .rank-summary span,
body.slider-page .result-copy .rank-summary em,
body.slider-page .result-copy .rank-summary strong {
  font-size: var(--slider-result-rank-size) !important;
  line-height: 1;
}

body.slider-page .result-copy .rank-summary span {
  display: inline-flex;
  align-items: baseline;
  flex: 1 1 auto;
  min-width: 0;
  gap: 10px;
}

body.slider-page .result-copy .rank-summary em {
  display: inline;
  flex: 0 0 auto;
  opacity: .92;
}

body.slider-page .result-copy .rank-summary strong {
  flex: 0 0 auto;
}

body.slider-page .result-share {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

body.slider-page .result-share > span {
  color: rgba(255, 255, 255, .72);
  font-size: var(--slider-type-sm);
  font-weight: 950;
  text-transform: uppercase;
}

body.slider-page .result-share-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.slider-page .share-btn {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 12px 24px rgba(0, 0, 0, .16);
  font-family: inherit;
  font-size: var(--slider-type-sm);
  font-weight: 950;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

body.slider-page .share-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .17);
}

body.slider-page .share-btn:focus-visible {
  outline: 3px solid rgba(255, 231, 121, .9);
  outline-offset: 2px;
}

body.slider-page .share-btn-reddit {
  background: linear-gradient(180deg, rgba(255, 97, 44, .96), rgba(207, 53, 22, .94));
}

body.slider-page .share-btn-facebook {
  background: linear-gradient(180deg, rgba(63, 120, 232, .96), rgba(28, 78, 179, .94));
}

body.slider-page .share-btn-x {
  background: linear-gradient(180deg, rgba(40, 45, 52, .96), rgba(12, 14, 18, .94));
}

body.slider-page .total-pill,
body.slider-page .difficulty-tab,
body.slider-page .btn,
body.slider-page .score-box,
body.slider-page .share-btn,
body.slider-page .rank-summary,
body.slider-page .leaderboard-status,
body.slider-page .result-badge {
  overflow-wrap: anywhere;
}

@media (min-width: 721px) and (max-width: 1180px) {
  body.slider-page .result-copy .rank-summary {
    --slider-result-rank-size: 19px;
    min-height: 54px;
  }

  [data-game-page="slider-captcha"] .stage[data-slider-control="drag"] .problem-wrap {
    min-height: 312px;
  }

  [data-game-page="slider-captcha"] .stage[data-slider-control="drag"] .problem-board {
    min-height: auto;
  }

  body.slider-page {
    --slider-type-xs: 9px;
    --slider-type-sm: 10px;
    --slider-type-md: 13px;
    --slider-type-lg: 28px;
  }
}

@media (max-width: 720px) {
  body.slider-page .result-copy .rank-summary {
    --slider-result-rank-size: 16px;
    min-height: 48px;
    gap: 8px;
    padding: 8px 10px;
  }

  body.slider-page .result-copy .rank-summary span {
    gap: 7px;
  }

  body.slider-page .result-share-buttons {
    grid-template-columns: 1fr;
  }

  body.slider-page .share-btn {
    min-height: 42px;
  }

  [data-game-page="slider-captcha"] .stage[data-slider-control="drag"] .problem-wrap {
    min-height: 214px;
  }

  [data-game-page="slider-captcha"] .stage[data-slider-control="drag"] .problem-board {
    min-height: auto;
  }

  [data-game-page="slider-captcha"] .stage[data-slider-control="drag"] .answer-area {
    min-height: 96px;
  }

  body.slider-page {
    --slider-type-xs: 8px;
    --slider-type-sm: 9px;
    --slider-type-md: 11px;
    --slider-type-lg: 22px;
  }
}

/* Math CAPTCHA Russo One typography pass */
body.math-page {
  --math-type-xs: 11px;
  --math-type-sm: 13px;
  --math-type-md: 17px;
  --math-type-lg: 38px;
  --font-xs: var(--math-type-xs);
  --font-sm: var(--math-type-sm);
  --font-md: var(--math-type-md);
  --font-lg: var(--math-type-lg);
}

body.math-page,
body.math-page *,
body.math-page *::before,
body.math-page *::after {
  font-family: "Russo One", Arial, sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

body.math-page,
body.math-page .app,
body.math-page .modal,
body.math-page .toast,
body.math-page .btn,
body.math-page .feedback,
body.math-page .problem-note,
body.math-page .choice-btn,
body.math-page .answer-input,
body.math-page .rank-row,
body.math-page .achievement-card,
body.math-page .modal-rank-form input {
  font-size: var(--math-type-sm) !important;
}

body.math-page .badge-new,
body.math-page .tooltip,
body.math-page .score-box span,
body.math-page .node-score,
body.math-page .scan-lines,
body.math-page .achievement-tag,
body.math-page .leaderboard-status em,
body.math-page .rank-summary em,
body.math-page .risk-title span {
  font-size: var(--math-type-xs) !important;
}

body.math-page .total-pill,
body.math-page .rank-open,
body.math-page .panel-head h1,
body.math-page .panel-head h2,
body.math-page .panel-head strong,
body.math-page .difficulty-tab,
body.math-page .score-box strong,
body.math-page .stage-top,
body.math-page .timer,
body.math-page .modal-head h2,
body.math-page .modal-close,
body.math-page .result-copy h3,
body.math-page .result-badge,
body.math-page .rank-summary strong,
body.math-page .leaderboard-status strong,
body.math-page .rank-row b,
body.math-page .rank-row strong,
body.math-page .achievement-card strong {
  font-size: var(--math-type-md) !important;
}

body.math-page .problem-text,
body.math-page .result-score {
  font-size: var(--math-type-lg) !important;
}

body.math-page .choice-btn,
body.math-page .answer-input {
  font-size: calc(var(--math-type-sm) + 2px) !important;
}

body.math-page .result-copy .rank-summary {
  --math-result-rank-size: 22px;
  min-height: 58px;
  flex-wrap: nowrap;
  padding: 10px 16px;
  white-space: nowrap;
}

body.math-page .result-copy .rank-summary span,
body.math-page .result-copy .rank-summary em,
body.math-page .result-copy .rank-summary strong {
  font-size: var(--math-result-rank-size) !important;
  line-height: 1;
}

body.math-page .result-copy .rank-summary span {
  display: inline-flex;
  align-items: baseline;
  flex: 1 1 auto;
  min-width: 0;
  gap: 10px;
}

body.math-page .result-copy .rank-summary em {
  display: inline;
  flex: 0 0 auto;
  opacity: .92;
}

body.math-page .result-copy .rank-summary strong {
  flex: 0 0 auto;
}

body.math-page .result-share {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

body.math-page .result-share > span {
  color: rgba(255, 255, 255, .72);
  font-size: var(--math-type-sm);
  font-weight: 950;
  text-transform: uppercase;
}

body.math-page .result-share-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.math-page .share-btn {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 12px 24px rgba(0, 0, 0, .16);
  font-family: inherit;
  font-size: var(--math-type-sm);
  font-weight: 950;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

body.math-page .share-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .17);
}

body.math-page .share-btn:focus-visible {
  outline: 3px solid rgba(255, 231, 121, .9);
  outline-offset: 2px;
}

body.math-page .share-btn-reddit {
  background: linear-gradient(180deg, rgba(255, 97, 44, .96), rgba(207, 53, 22, .94));
}

body.math-page .share-btn-facebook {
  background: linear-gradient(180deg, rgba(63, 120, 232, .96), rgba(28, 78, 179, .94));
}

body.math-page .share-btn-x {
  background: linear-gradient(180deg, rgba(40, 45, 52, .96), rgba(12, 14, 18, .94));
}

body.math-page .total-pill,
body.math-page .difficulty-tab,
body.math-page .btn,
body.math-page .score-box,
body.math-page .share-btn,
body.math-page .rank-summary,
body.math-page .leaderboard-status,
body.math-page .result-badge {
  overflow-wrap: anywhere;
}

@media (min-width: 721px) and (max-width: 1180px) {
  body.math-page {
    --math-type-xs: 10px;
    --math-type-sm: 12px;
    --math-type-md: 15px;
    --math-type-lg: 31px;
  }

  body.math-page .result-copy .rank-summary {
    --math-result-rank-size: 19px;
  }
}

@media (max-width: 720px) {
  body.math-page {
    --math-type-xs: 9px;
    --math-type-sm: 11px;
    --math-type-md: 13px;
    --math-type-lg: 25px;
  }

  body.math-page .result-copy .rank-summary {
    --math-result-rank-size: 16px;
    min-height: 48px;
    gap: 8px;
    padding: 8px 10px;
  }

  body.math-page .result-copy .rank-summary span {
    gap: 7px;
  }

  body.math-page .result-share-buttons {
    grid-template-columns: 1fr;
  }

  body.math-page .share-btn {
    min-height: 42px;
  }
}

/* Math CAPTCHA fullscreen and Slider-aligned help format */
body.math-page .fullscreen-toggle {
  isolation: isolate;
}

body.math-page .fullscreen-exit-icon {
  display: none;
}

body.math-page.is-math-fullscreen .fullscreen-enter-icon {
  display: none;
}

body.math-page.is-math-fullscreen .fullscreen-exit-icon {
  display: block;
}

body.math-page .tooltip {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 7px;
  text-align: left;
  white-space: normal;
}

body.math-page .tooltip span {
  display: block;
}

body.math-page.is-math-fullscreen,
body.math-page.is-faux-fullscreen {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

body.math-page.is-math-fullscreen::before,
body.math-page.is-math-fullscreen::after {
  opacity: .28;
}

body.math-page.is-math-fullscreen .app,
body.math-page .app:fullscreen,
body.math-page .app:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  grid-template-rows: auto minmax(0, 1fr);
  margin: 0;
  padding: 8px;
  gap: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 216, 93, .2), transparent 24%),
    linear-gradient(106deg, rgba(247, 37, 110, .96) 0 45%, rgba(17, 17, 20, .99) 45.25% 100%),
    var(--bg-0);
}

body.math-page.is-math-fullscreen {
  --aligned-head: 52px;
  --aligned-control-row: 54px;
  --aligned-footer: 36px;
}

body.math-page.is-math-fullscreen .topbar {
  min-height: 40px;
}

body.math-page.is-math-fullscreen .score-cluster {
  gap: 8px;
}

body.math-page.is-math-fullscreen .total-pill {
  min-height: 38px;
  padding: 0 14px;
}

body.math-page.is-math-fullscreen .rank-open {
  width: 38px;
  min-height: 38px;
}

body.math-page.is-math-fullscreen .rank-open svg {
  width: 20px;
  height: 20px;
}

body.math-page.is-math-fullscreen .game-shell {
  min-height: 0;
  height: 100%;
  grid-template-columns: minmax(250px, .31fr) minmax(0, .69fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

body.math-page.is-math-fullscreen .panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
}

body.math-page.is-math-fullscreen .panel-head,
body.math-page.is-math-fullscreen .play-panel .panel-head {
  min-height: var(--aligned-head);
  padding: 10px 12px;
}

body.math-page.is-math-fullscreen .panel-head::after,
body.math-page.is-math-fullscreen #startRun::after {
  content: none;
}

body.math-page.is-math-fullscreen .panel-head strong {
  position: relative;
  z-index: 2;
}

body.math-page.is-math-fullscreen .panel-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 10px;
  overflow: hidden;
}

body.math-page.is-math-fullscreen .map-panel .panel-body {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 8px;
}

body.math-page.is-math-fullscreen .difficulty-tabs {
  gap: 6px;
}

body.math-page.is-math-fullscreen .difficulty-tab,
body.math-page.is-math-fullscreen .map-actions .btn {
  min-height: 34px;
  padding: 6px 8px;
}

body.math-page.is-math-fullscreen .map-actions {
  gap: 6px;
  margin-bottom: 0;
}

body.math-page.is-math-fullscreen .map {
  height: 100%;
  min-height: 0;
}

body.math-page.is-math-fullscreen .play-panel .panel-body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
}

body.math-page.is-math-fullscreen .score-strip {
  gap: 8px;
  margin-bottom: 0;
}

body.math-page.is-math-fullscreen .score-box {
  min-height: var(--aligned-control-row);
  padding: 8px 10px;
  border-radius: 14px;
}

body.math-page.is-math-fullscreen .stage {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 10px;
  border-radius: 18px;
}

body.math-page.is-math-fullscreen .stage.idle {
  grid-template-rows: minmax(0, 1fr);
}

body.math-page.is-math-fullscreen .stage-top {
  min-height: 38px;
}

body.math-page.is-math-fullscreen .timer {
  min-width: 72px;
  min-height: 38px;
}

body.math-page.is-math-fullscreen .problem-wrap,
body.math-page.is-math-fullscreen .stage.idle .problem-wrap {
  min-height: 0;
  height: 100%;
  padding: 6px;
}

body.math-page.is-math-fullscreen .problem-board,
body.math-page.is-math-fullscreen .stage.idle .problem-board {
  width: 100%;
  min-height: 0;
  height: 100%;
  padding: 8px;
  border-radius: 16px;
}

body.math-page.is-math-fullscreen .stage.idle .problem-content {
  min-height: 0;
}

body.math-page.is-math-fullscreen .stage.idle .idle-character {
  width: min(58%, 220px);
  max-height: 220px;
}

body.math-page.is-math-fullscreen .answer-area {
  min-height: 86px;
}

body.math-page.is-math-fullscreen .choice-btn,
body.math-page.is-math-fullscreen .answer-input {
  min-height: 52px;
}

body.math-page.is-math-fullscreen .feedback {
  min-height: var(--aligned-footer);
  margin-top: 0;
}

@media (max-width: 720px) {
  body.math-page .tooltip {
    min-height: 104px;
    gap: 5px;
  }

  body.math-page.is-math-fullscreen {
    --aligned-head: 38px;
    --aligned-control-row: 34px;
    --aligned-footer: 26px;
  }

  body.math-page.is-math-fullscreen .app {
    height: 100dvh;
    min-height: 100dvh;
    grid-template-rows: minmax(0, 1fr);
    padding: 4px;
    gap: 4px;
  }

  body.math-page.is-math-fullscreen .topbar {
    display: none;
  }

  body.math-page.is-math-fullscreen .game-shell {
    align-self: stretch;
    height: 100%;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(104px, .16fr) minmax(0, .84fr);
    grid-template-areas:
      "map"
      "play";
    gap: 4px;
  }

  body.math-page.is-math-fullscreen .map-panel {
    grid-area: map;
  }

  body.math-page.is-math-fullscreen .play-panel {
    grid-area: play;
    height: 100%;
    min-height: 0;
  }

  body.math-page.is-math-fullscreen .map-panel .panel-head {
    min-height: 28px;
    padding: 4px 8px;
  }

  body.math-page.is-math-fullscreen .map-panel .panel-head h2,
  body.math-page.is-math-fullscreen .map-panel .panel-head strong {
    font-size: 10px !important;
    line-height: 1;
  }

  body.math-page.is-math-fullscreen .map-panel .panel-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "tabs"
      "map";
    gap: 4px;
    padding: 4px;
  }

  body.math-page.is-math-fullscreen .difficulty-tabs {
    grid-area: tabs;
    gap: 4px;
    margin-bottom: 0;
  }

  body.math-page.is-math-fullscreen .difficulty-tab {
    min-height: 22px;
    padding: 3px 4px;
    border-radius: 7px;
    font-size: 9px !important;
    line-height: 1;
  }

  body.math-page.is-math-fullscreen .map-actions {
    display: none;
  }

  body.math-page.is-math-fullscreen .map {
    grid-area: map;
    min-height: 30px;
    height: 30px;
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    align-items: center;
    gap: 2px;
    padding: 4px;
    border-radius: 10px;
  }

  body.math-page.is-math-fullscreen .route-svg,
  body.math-page.is-math-fullscreen .map::after,
  body.math-page.is-math-fullscreen .map-panel .panel-body::after {
    display: none;
  }

  body.math-page.is-math-fullscreen .level-node {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: 20px;
    height: 20px;
    justify-self: center;
    transform: none;
    border-width: 1px;
    font-size: 9px !important;
    line-height: 1;
  }

  body.math-page.is-math-fullscreen .node-score {
    display: none;
  }

  body.math-page.is-math-fullscreen .play-panel .panel-head {
    min-height: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    padding: 5px 6px;
  }

  body.math-page.is-math-fullscreen .play-panel .panel-head h1 {
    font-size: 11px !important;
    line-height: 1.05;
  }

  body.math-page.is-math-fullscreen .head-actions {
    width: auto;
    gap: 5px;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  body.math-page.is-math-fullscreen .help {
    width: 28px;
    height: 28px;
    font-size: 11px !important;
  }

  body.math-page.is-math-fullscreen .head-actions .btn {
    min-height: 28px;
    padding: 4px 7px;
    border-radius: 8px;
    font-size: 10px !important;
  }

  body.math-page.is-math-fullscreen .head-actions .rank-open {
    width: 28px;
    min-height: 28px;
  }

  body.math-page.is-math-fullscreen .head-actions .rank-open svg {
    width: 15px;
    height: 15px;
  }

  body.math-page.is-math-fullscreen .play-panel .panel-body {
    gap: 4px;
    padding: 6px;
  }

  body.math-page.is-math-fullscreen .score-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  body.math-page.is-math-fullscreen .score-box {
    min-height: var(--aligned-control-row);
    padding: 4px;
    border-radius: 9px;
  }

  body.math-page.is-math-fullscreen .score-box span {
    font-size: 7px !important;
    line-height: 1;
  }

  body.math-page.is-math-fullscreen .score-box strong {
    font-size: 11px !important;
    line-height: 1;
  }

  body.math-page.is-math-fullscreen .stage {
    padding: 6px;
    border-radius: 14px;
  }

  body.math-page.is-math-fullscreen .stage-top {
    min-height: 28px;
    font-size: 11px !important;
  }

  body.math-page.is-math-fullscreen .timer {
    min-width: 52px;
    min-height: 28px;
    border-radius: 8px;
    font-size: 11px !important;
  }

  body.math-page.is-math-fullscreen .answer-area {
    min-height: 88px;
    padding: 6px;
    border-radius: 14px;
  }

  body.math-page.is-math-fullscreen .choice-btn,
  body.math-page.is-math-fullscreen .answer-input {
    min-height: 38px;
  }

  body.math-page.is-math-fullscreen .feedback {
    font-size: 9px !important;
  }
}

@media (max-width: 430px) {
  body.math-page.is-math-fullscreen .input-row {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 520px) and (max-width: 920px) {
  body.math-page.is-math-fullscreen {
    --aligned-head: 34px;
    --aligned-control-row: 32px;
    --aligned-footer: 24px;
    --math-type-xs: 8px;
    --math-type-sm: 10px;
    --math-type-md: 11px;
    --math-type-lg: 22px;
  }

  body.math-page.is-math-fullscreen .app {
    height: 100dvh;
    min-height: 100dvh;
    grid-template-rows: minmax(0, 1fr);
    padding: 4px;
    gap: 4px;
  }

  body.math-page.is-math-fullscreen .topbar {
    display: none;
  }

  body.math-page.is-math-fullscreen .game-shell {
    height: 100%;
    min-height: 0;
    grid-template-columns: minmax(104px, .18fr) minmax(0, .82fr);
    grid-template-rows: minmax(0, 1fr);
    grid-template-areas: "map play";
    gap: 4px;
  }

  body.math-page.is-math-fullscreen .map-panel,
  body.math-page.is-math-fullscreen .play-panel {
    height: 100%;
    min-height: 0;
  }

  body.math-page.is-math-fullscreen .map-panel .panel-head,
  body.math-page.is-math-fullscreen .play-panel .panel-head {
    min-height: 28px;
    padding: 4px 6px;
  }

  body.math-page.is-math-fullscreen .map-panel .panel-head h2,
  body.math-page.is-math-fullscreen .map-panel .panel-head strong,
  body.math-page.is-math-fullscreen .play-panel .panel-head h1 {
    font-size: 10px !important;
    line-height: 1;
  }

  body.math-page.is-math-fullscreen .map-panel .panel-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
      "tabs"
      "map";
    gap: 4px;
    padding: 4px;
  }

  body.math-page.is-math-fullscreen .difficulty-tabs {
    grid-area: tabs;
    grid-template-columns: 1fr;
    gap: 3px;
    margin-bottom: 0;
  }

  body.math-page.is-math-fullscreen .difficulty-tab {
    min-height: 20px;
    padding: 2px 4px;
    border-radius: 6px;
    font-size: 8px !important;
  }

  body.math-page.is-math-fullscreen .map-actions {
    display: none;
  }

  body.math-page.is-math-fullscreen .map {
    grid-area: map;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border-radius: 10px;
  }

  body.math-page.is-math-fullscreen .route-svg,
  body.math-page.is-math-fullscreen .map::after,
  body.math-page.is-math-fullscreen .map-panel .panel-body::after {
    display: none;
  }

  body.math-page.is-math-fullscreen .level-node {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: 20px;
    height: 20px;
    justify-self: center;
    transform: none;
    border-width: 1px;
    font-size: 9px !important;
  }

  body.math-page.is-math-fullscreen .node-score {
    display: none;
  }

  body.math-page.is-math-fullscreen .play-panel .panel-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
  }

  body.math-page.is-math-fullscreen .head-actions {
    width: auto;
    gap: 5px;
    flex-wrap: nowrap;
  }

  body.math-page.is-math-fullscreen .help,
  body.math-page.is-math-fullscreen .head-actions .rank-open {
    width: 26px;
    height: 26px;
    min-height: 26px;
    font-size: 10px !important;
  }

  body.math-page.is-math-fullscreen .head-actions .rank-open svg {
    width: 14px;
    height: 14px;
  }

  body.math-page.is-math-fullscreen .head-actions .btn {
    min-height: 26px;
    padding: 3px 7px;
    border-radius: 8px;
    font-size: 9px !important;
  }

  body.math-page.is-math-fullscreen #startRun::after {
    content: none;
  }

  body.math-page.is-math-fullscreen .play-panel .panel-body {
    gap: 4px;
    padding: 6px;
  }

  body.math-page.is-math-fullscreen .score-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 0;
  }

  body.math-page.is-math-fullscreen .score-box {
    min-height: var(--aligned-control-row);
    padding: 4px;
    border-radius: 8px;
  }

  body.math-page.is-math-fullscreen .score-box span {
    font-size: 7px !important;
  }

  body.math-page.is-math-fullscreen .score-box strong {
    font-size: 10px !important;
  }

  body.math-page.is-math-fullscreen .stage {
    min-height: 0;
    height: 100%;
    padding: 6px;
    border-radius: 14px;
  }

  body.math-page.is-math-fullscreen .stage:not(.idle) {
    grid-template-columns: minmax(0, 1fr) minmax(156px, .38fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 6px;
  }

  body.math-page.is-math-fullscreen .stage:not(.idle) .stage-top {
    grid-column: 1 / -1;
  }

  body.math-page.is-math-fullscreen .stage:not(.idle) .problem-wrap {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
    height: 100%;
    padding: 4px;
  }

  body.math-page.is-math-fullscreen .stage:not(.idle) .answer-area {
    grid-column: 2;
    grid-row: 2;
    min-height: 0;
    height: 100%;
    padding: 5px;
  }

  body.math-page.is-math-fullscreen .stage-top {
    min-height: 26px;
    font-size: 10px !important;
  }

  body.math-page.is-math-fullscreen .timer {
    min-width: 48px;
    min-height: 26px;
    border-radius: 8px;
    font-size: 10px !important;
  }

  body.math-page.is-math-fullscreen .feedback {
    font-size: 8px !important;
  }
}

/* Slider CAPTCHA fullscreen, typography, tooltip, and joystick tune */
body.slider-page {
  --slider-type-xs: 11px;
  --slider-type-sm: 13px;
  --slider-type-md: 17px;
  --slider-type-lg: 38px;
}

body.slider-page .fullscreen-toggle {
  isolation: isolate;
}

body.slider-page .fullscreen-exit-icon {
  display: none;
}

body.slider-page.is-slider-fullscreen .fullscreen-enter-icon {
  display: none;
}

body.slider-page.is-slider-fullscreen .fullscreen-exit-icon {
  display: block;
}

body.slider-page .tooltip {
  min-height: 124px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 7px;
  text-align: left;
  white-space: normal;
}

body.slider-page .tooltip span {
  display: block;
}

body.slider-page .tooltip span:empty {
  display: none;
}

[data-game-page="slider-captcha"] .stage[data-slider-control="joystick"] .answer-area {
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 216, 93, .16), transparent 56%),
    rgba(22, 215, 240, .06);
  border: 1px solid rgba(255, 216, 93, .26);
}

.slider-control-joystick {
  width: min(100%, 760px);
}

.joystick-base {
  width: 210px;
  height: 210px;
  border: 2px solid rgba(255, 216, 93, .54);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 216, 93, .25), transparent 23%),
    radial-gradient(circle at 50% 50%, rgba(22, 215, 240, .32), transparent 44%),
    linear-gradient(145deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .045)),
    rgba(0, 0, 0, .32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -20px 30px rgba(0, 0, 0, .26),
    0 0 0 8px rgba(255, 216, 93, .12),
    0 22px 44px rgba(0, 0, 0, .3);
}

.joystick-base::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 216, 93, .36);
  box-shadow: 0 0 34px rgba(255, 216, 93, .24), inset 0 0 30px rgba(22, 215, 240, .14);
  pointer-events: none;
  animation: joystickPulse 1.45s ease-in-out infinite;
}

.joystick-ring {
  inset: 28px;
  border: 2px dashed rgba(255, 255, 255, .48);
  box-shadow: inset 0 0 32px rgba(22, 215, 240, .26);
}

.joystick-knob {
  width: 76px;
  height: 76px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .62),
    0 0 0 5px rgba(42, 30, 8, .12),
    0 12px 24px rgba(0, 0, 0, .28);
}

@keyframes joystickPulse {
  0%, 100% { opacity: .58; transform: scale(.985); }
  50% { opacity: 1; transform: scale(1.025); }
}

/* Keep embedded non-fullscreen Slider compact enough for fixed-height iframes. */
body.slider-page:not(.is-slider-fullscreen) {
  --aligned-footer: 42px;
}

body.slider-page:not(.is-slider-fullscreen) .app {
  min-height: 0;
  grid-template-rows: auto auto;
  gap: 18px;
  padding-bottom: 18px;
}

body.slider-page:not(.is-slider-fullscreen) .play-panel {
  min-height: 0;
}

body.slider-page:not(.is-slider-fullscreen) .feedback {
  min-height: var(--aligned-footer);
  margin-top: 10px;
}

body.slider-page:not(.is-slider-fullscreen) [data-game-page="slider-captcha"] .stage[data-slider-control="joystick"] {
  min-height: 0;
  padding-bottom: 14px;
}

body.slider-page:not(.is-slider-fullscreen) [data-game-page="slider-captcha"] .stage[data-slider-control="joystick"] .problem-wrap {
  min-height: 0;
  padding: 10px 8px 8px;
}

body.slider-page:not(.is-slider-fullscreen) [data-game-page="slider-captcha"] .stage[data-slider-control="joystick"] .problem-board {
  min-height: 0;
  padding: 10px;
}

body.slider-page:not(.is-slider-fullscreen) [data-game-page="slider-captcha"] .stage[data-slider-control="joystick"] .slider-captcha-board {
  aspect-ratio: auto;
  min-height: 0;
  height: clamp(250px, 21vw, 300px);
  max-height: 300px;
}

body.slider-page:not(.is-slider-fullscreen) [data-game-page="slider-captcha"] .stage[data-slider-control="joystick"] .answer-area {
  min-height: 0;
  padding: 10px;
  overflow: visible;
}

body.slider-page:not(.is-slider-fullscreen) .slider-control-joystick {
  grid-template-columns: auto minmax(190px, 1fr);
  align-items: center;
  gap: 14px;
}

body.slider-page:not(.is-slider-fullscreen) .joystick-base {
  width: 150px;
  height: 150px;
}

body.slider-page:not(.is-slider-fullscreen) .joystick-base::before {
  inset: -10px;
}

body.slider-page:not(.is-slider-fullscreen) .joystick-ring {
  inset: 20px;
}

body.slider-page:not(.is-slider-fullscreen) .joystick-knob {
  width: 56px;
  height: 56px;
}

body.slider-page:not(.is-slider-fullscreen) .slider-control-joystick .slider-readout {
  min-height: 56px;
  padding: 8px 4px 8px 12px;
}

@media (min-width: 721px) and (max-width: 1180px) {
  body.slider-page:not(.is-slider-fullscreen) .app {
    gap: 14px;
    padding-bottom: 16px;
  }

  body.slider-page:not(.is-slider-fullscreen) [data-game-page="slider-captcha"] .stage[data-slider-control="joystick"] .problem-wrap {
    padding: 8px 4px 6px;
  }

  body.slider-page:not(.is-slider-fullscreen) [data-game-page="slider-captcha"] .stage[data-slider-control="joystick"] .problem-board {
    padding: 8px;
  }

  body.slider-page:not(.is-slider-fullscreen) [data-game-page="slider-captcha"] .stage[data-slider-control="joystick"] .slider-captcha-board {
    height: clamp(210px, 26vw, 260px);
    max-height: 260px;
  }

  body.slider-page:not(.is-slider-fullscreen) [data-game-page="slider-captcha"] .stage[data-slider-control="joystick"] .answer-area {
    padding: 8px;
  }

  body.slider-page:not(.is-slider-fullscreen) .joystick-base {
    width: 126px;
    height: 126px;
  }

  body.slider-page:not(.is-slider-fullscreen) .joystick-base::before {
    inset: -8px;
  }

  body.slider-page:not(.is-slider-fullscreen) .joystick-ring {
    inset: 16px;
  }

  body.slider-page:not(.is-slider-fullscreen) .joystick-knob {
    width: 48px;
    height: 48px;
  }

  body.slider-page:not(.is-slider-fullscreen) .slider-control-joystick .slider-readout {
    min-height: 50px;
  }
}

@media (max-width: 720px) {
  body.slider-page:not(.is-slider-fullscreen) {
    --aligned-footer: 32px;
  }

  body.slider-page:not(.is-slider-fullscreen) .app {
    gap: 8px;
    padding-bottom: 12px;
  }

  body.slider-page:not(.is-slider-fullscreen) [data-game-page="slider-captcha"] .stage[data-slider-control="joystick"] {
    padding-bottom: 10px;
  }

  body.slider-page:not(.is-slider-fullscreen) [data-game-page="slider-captcha"] .stage[data-slider-control="joystick"] .problem-wrap {
    padding: 6px 2px;
  }

  body.slider-page:not(.is-slider-fullscreen) [data-game-page="slider-captcha"] .stage[data-slider-control="joystick"] .problem-board {
    padding: 7px;
  }

  body.slider-page:not(.is-slider-fullscreen) [data-game-page="slider-captcha"] .stage[data-slider-control="joystick"] .slider-captcha-board {
    height: clamp(150px, 43vw, 210px);
    max-height: 210px;
  }

  body.slider-page:not(.is-slider-fullscreen) [data-game-page="slider-captcha"] .stage[data-slider-control="joystick"] .answer-area {
    padding: 6px;
  }

  body.slider-page:not(.is-slider-fullscreen) .joystick-base {
    width: 102px;
    height: 102px;
  }

  body.slider-page:not(.is-slider-fullscreen) .joystick-base::before {
    inset: -7px;
  }

  body.slider-page:not(.is-slider-fullscreen) .joystick-ring {
    inset: 13px;
  }

  body.slider-page:not(.is-slider-fullscreen) .joystick-knob {
    width: 40px;
    height: 40px;
  }

  body.slider-page:not(.is-slider-fullscreen) .slider-control-joystick .slider-readout {
    min-height: 44px;
    padding: 5px 2px 5px 8px;
  }
}

@media (max-width: 430px) {
  body.slider-page:not(.is-slider-fullscreen) .slider-control-joystick {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 6px;
  }

  body.slider-page:not(.is-slider-fullscreen) .slider-control-joystick .slider-readout {
    width: 100%;
  }
}

body.slider-page.is-slider-fullscreen,
body.slider-page.is-faux-fullscreen {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

body.slider-page.is-slider-fullscreen::before,
body.slider-page.is-slider-fullscreen::after {
  opacity: .28;
}

body.slider-page.is-slider-fullscreen .app,
body.slider-page .app:fullscreen,
body.slider-page .app:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  grid-template-rows: auto minmax(0, 1fr);
  margin: 0;
  padding: 8px;
  gap: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 216, 93, .2), transparent 24%),
    linear-gradient(106deg, rgba(247, 37, 110, .96) 0 45%, rgba(17, 17, 20, .99) 45.25% 100%),
    var(--bg-0);
}

body.slider-page.is-slider-fullscreen {
  --aligned-head: 52px;
  --aligned-control-row: 54px;
  --aligned-footer: 36px;
}

body.slider-page.is-slider-fullscreen .topbar {
  min-height: 40px;
}

body.slider-page.is-slider-fullscreen .score-cluster {
  gap: 8px;
}

body.slider-page.is-slider-fullscreen .total-pill {
  min-height: 38px;
  padding: 0 14px;
}

body.slider-page.is-slider-fullscreen .rank-open {
  width: 38px;
  min-height: 38px;
}

body.slider-page.is-slider-fullscreen .rank-open svg {
  width: 20px;
  height: 20px;
}

body.slider-page.is-slider-fullscreen .game-shell {
  min-height: 0;
  height: 100%;
  grid-template-columns: minmax(250px, .31fr) minmax(0, .69fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

body.slider-page.is-slider-fullscreen .panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
}

body.slider-page.is-slider-fullscreen .panel-head,
body.slider-page.is-slider-fullscreen .play-panel .panel-head {
  min-height: var(--aligned-head);
  padding: 10px 12px;
}

body.slider-page.is-slider-fullscreen .panel-head::after {
  content: none;
}

body.slider-page.is-slider-fullscreen .panel-head strong {
  position: relative;
  z-index: 2;
}

body.slider-page.is-slider-fullscreen .panel-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 10px;
  overflow: hidden;
}

body.slider-page.is-slider-fullscreen .map-panel .panel-body {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 8px;
}

body.slider-page.is-slider-fullscreen .difficulty-tabs {
  gap: 6px;
}

body.slider-page.is-slider-fullscreen .difficulty-tab,
body.slider-page.is-slider-fullscreen .map-actions .btn {
  min-height: 34px;
  padding: 6px 8px;
}

body.slider-page.is-slider-fullscreen .map-actions {
  gap: 6px;
  margin-bottom: 0;
}

body.slider-page.is-slider-fullscreen .map {
  height: 100%;
  min-height: 0;
}

body.slider-page.is-slider-fullscreen .play-panel .panel-body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
}

body.slider-page.is-slider-fullscreen .score-strip {
  gap: 8px;
  margin-bottom: 0;
}

body.slider-page.is-slider-fullscreen .score-box {
  min-height: var(--aligned-control-row);
  padding: 8px 10px;
  border-radius: 14px;
}

body.slider-page.is-slider-fullscreen .stage {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 10px;
  border-radius: 18px;
}

body.slider-page.is-slider-fullscreen .stage-top {
  min-height: 38px;
}

body.slider-page.is-slider-fullscreen .timer {
  min-width: 72px;
  min-height: 38px;
}

body.slider-page.is-slider-fullscreen .stage.idle {
  grid-template-rows: minmax(0, 1fr);
}

body.slider-page.is-slider-fullscreen .problem-wrap,
body.slider-page.is-slider-fullscreen [data-game-page="slider-captcha"] .stage[data-slider-control="rail"] .problem-wrap,
body.slider-page.is-slider-fullscreen [data-game-page="slider-captcha"] .stage[data-slider-control="drag"] .problem-wrap,
body.slider-page.is-slider-fullscreen [data-game-page="slider-captcha"] .stage[data-slider-control="joystick"] .problem-wrap {
  min-height: 0;
  height: 100%;
  padding: 6px;
}

body.slider-page.is-slider-fullscreen .stage.idle .problem-wrap {
  min-height: 0;
  height: 100%;
  align-self: stretch;
  padding: 0;
}

body.slider-page.is-slider-fullscreen .problem-board,
body.slider-page.is-slider-fullscreen [data-game-page="slider-captcha"] .stage[data-slider-control="rail"] .problem-board,
body.slider-page.is-slider-fullscreen [data-game-page="slider-captcha"] .stage[data-slider-control="drag"] .problem-board,
body.slider-page.is-slider-fullscreen [data-game-page="slider-captcha"] .stage[data-slider-control="joystick"] .problem-board {
  width: 100%;
  min-height: 0;
  height: 100%;
  padding: 8px;
  border-radius: 16px;
}

body.slider-page.is-slider-fullscreen .stage.idle .problem-board {
  min-height: 0;
  height: 100%;
  align-self: stretch;
  padding: clamp(18px, 3vw, 34px);
}

body.slider-page.is-slider-fullscreen .stage.idle .problem-content {
  min-height: 0;
  height: 100%;
  width: 100%;
  align-content: center;
}

body.slider-page.is-slider-fullscreen .slider-captcha-board {
  min-height: 0;
  width: min(100%, calc(48vh * 836 / 471), 820px);
  height: auto;
  max-height: 430px;
}

body.slider-page.is-slider-fullscreen .answer-area,
body.slider-page.is-slider-fullscreen [data-game-page="slider-captcha"] .stage[data-slider-control="rail"] .answer-area,
body.slider-page.is-slider-fullscreen [data-game-page="slider-captcha"] .stage[data-slider-control="drag"] .answer-area,
body.slider-page.is-slider-fullscreen [data-game-page="slider-captcha"] .stage[data-slider-control="joystick"] .answer-area {
  min-height: 86px;
}

body.slider-page.is-slider-fullscreen .slider-control-pad,
body.slider-page.is-slider-fullscreen .slider-control-joystick {
  gap: 14px;
}

body.slider-page.is-slider-fullscreen .joystick-base {
  width: 160px;
  height: 160px;
}

body.slider-page.is-slider-fullscreen .joystick-ring {
  inset: 21px;
}

body.slider-page.is-slider-fullscreen .joystick-knob {
  width: 58px;
  height: 58px;
}

body.slider-page.is-slider-fullscreen .feedback {
  min-height: var(--aligned-footer);
  margin-top: 0;
}

@media (min-width: 721px) and (max-width: 1180px) {
  body.slider-page {
    --slider-type-xs: 10px;
    --slider-type-sm: 12px;
    --slider-type-md: 15px;
    --slider-type-lg: 31px;
  }

  .joystick-base {
    width: 150px;
    height: 150px;
  }

  .joystick-ring {
    inset: 20px;
  }

  .joystick-knob {
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 720px) {
  body.slider-page {
    --slider-type-xs: 9px;
    --slider-type-sm: 11px;
    --slider-type-md: 13px;
    --slider-type-lg: 25px;
  }

  body.slider-page.is-slider-fullscreen {
    --aligned-head: 38px;
    --aligned-control-row: 34px;
    --aligned-footer: 26px;
  }

  body.slider-page .tooltip {
    min-height: 112px;
    gap: 5px;
  }

  .joystick-base {
    width: 124px;
    height: 124px;
  }

  .joystick-base::before {
    inset: -8px;
  }

  .joystick-ring {
    inset: 16px;
  }

  .joystick-knob {
    width: 48px;
    height: 48px;
  }

  body.slider-page.is-slider-fullscreen .app {
    height: 100dvh;
    min-height: 100dvh;
    grid-template-rows: minmax(0, 1fr);
    padding: 4px;
    gap: 4px;
  }

  body.slider-page.is-slider-fullscreen .topbar {
    display: none;
  }

  body.slider-page.is-slider-fullscreen .game-shell {
    align-self: stretch;
    height: 100%;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(104px, .16fr) minmax(0, .84fr);
    grid-template-areas:
      "map"
      "play";
    gap: 4px;
  }

  body.slider-page.is-slider-fullscreen .map-panel {
    grid-area: map;
  }

  body.slider-page.is-slider-fullscreen .play-panel {
    grid-area: play;
    height: 100%;
    min-height: 0;
  }

  body.slider-page.is-slider-fullscreen .map-panel .panel-head {
    min-height: 28px;
    padding: 4px 8px;
  }

  body.slider-page.is-slider-fullscreen .map-panel .panel-head h2,
  body.slider-page.is-slider-fullscreen .map-panel .panel-head strong {
    font-size: 10px !important;
    line-height: 1;
  }

  body.slider-page.is-slider-fullscreen .map-panel .panel-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "tabs"
      "map";
    gap: 4px;
    padding: 4px;
  }

  body.slider-page.is-slider-fullscreen .difficulty-tabs {
    grid-area: tabs;
    gap: 4px;
    margin-bottom: 0;
  }

  body.slider-page.is-slider-fullscreen .difficulty-tab {
    min-height: 22px;
    padding: 3px 4px;
    border-radius: 7px;
    font-size: 9px !important;
    line-height: 1;
  }

  body.slider-page.is-slider-fullscreen .map-actions {
    display: none;
  }

  body.slider-page.is-slider-fullscreen .map {
    grid-area: map;
    min-height: 42px;
    height: 42px;
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    align-items: center;
    gap: 2px;
    padding: 4px;
    border-radius: 10px;
  }

  body.slider-page.is-slider-fullscreen .route-svg,
  body.slider-page.is-slider-fullscreen .map::after,
  body.slider-page.is-slider-fullscreen .map-panel .panel-body::after {
    display: none;
  }

  body.slider-page.is-slider-fullscreen .level-node {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: 22px;
    height: 22px;
    justify-self: center;
    transform: none;
    border-width: 1px;
    font-size: 9px !important;
    line-height: 1;
  }

  body.slider-page.is-slider-fullscreen .node-score {
    display: none;
  }

  body.slider-page.is-slider-fullscreen .play-panel .panel-head {
    min-height: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    padding: 5px 6px;
  }

  body.slider-page.is-slider-fullscreen .play-panel .panel-head h1 {
    font-size: 11px !important;
    line-height: 1.05;
  }

  body.slider-page.is-slider-fullscreen #startRun::after {
    content: none;
  }

  body.slider-page.is-slider-fullscreen .head-actions {
    width: auto;
    gap: 5px;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  body.slider-page.is-slider-fullscreen .help {
    width: 28px;
    height: 28px;
    font-size: 11px !important;
  }

  body.slider-page.is-slider-fullscreen .head-actions .btn {
    min-height: 28px;
    padding: 4px 7px;
    border-radius: 8px;
    font-size: 10px !important;
  }

  body.slider-page.is-slider-fullscreen .head-actions .rank-open {
    width: 28px;
    min-height: 28px;
  }

  body.slider-page.is-slider-fullscreen .head-actions .rank-open svg {
    width: 15px;
    height: 15px;
  }

  body.slider-page.is-slider-fullscreen .play-panel .panel-body {
    gap: 4px;
    padding: 6px;
  }

  body.slider-page.is-slider-fullscreen .score-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  body.slider-page.is-slider-fullscreen .score-box {
    min-height: var(--aligned-control-row);
    padding: 4px;
    border-radius: 9px;
  }

  body.slider-page.is-slider-fullscreen .score-box span {
    font-size: 7px !important;
    line-height: 1;
  }

  body.slider-page.is-slider-fullscreen .score-box strong {
    font-size: 11px !important;
    line-height: 1;
  }

  body.slider-page.is-slider-fullscreen .stage {
    padding: 6px;
    border-radius: 14px;
  }

  body.slider-page.is-slider-fullscreen .stage-top {
    min-height: 28px;
    font-size: 11px !important;
  }

  body.slider-page.is-slider-fullscreen .timer {
    min-width: 52px;
    min-height: 28px;
    border-radius: 8px;
    font-size: 11px !important;
  }

  body.slider-page.is-slider-fullscreen .slider-captcha-board {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: 220px;
  }

  body.slider-page.is-slider-fullscreen .answer-area,
  body.slider-page.is-slider-fullscreen [data-game-page="slider-captcha"] .stage[data-slider-control="rail"] .answer-area,
  body.slider-page.is-slider-fullscreen [data-game-page="slider-captcha"] .stage[data-slider-control="drag"] .answer-area,
  body.slider-page.is-slider-fullscreen [data-game-page="slider-captcha"] .stage[data-slider-control="joystick"] .answer-area {
    min-height: 88px;
    padding: 6px;
    border-radius: 14px;
  }

  body.slider-page.is-slider-fullscreen [data-game-page="slider-captcha"] .stage[data-slider-control="joystick"] .answer-area {
    min-height: 116px;
  }

  body.slider-page.is-slider-fullscreen .slider-control-pad,
  body.slider-page.is-slider-fullscreen .slider-control-joystick {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    justify-items: stretch;
  }

  body.slider-page.is-slider-fullscreen .joystick-base {
    width: 92px;
    height: 92px;
  }

  body.slider-page.is-slider-fullscreen .joystick-ring {
    inset: 11px;
  }

  body.slider-page.is-slider-fullscreen .joystick-knob {
    width: 36px;
    height: 36px;
  }

  body.slider-page.is-slider-fullscreen .slider-control-pad .slider-readout,
  body.slider-page.is-slider-fullscreen .slider-control-joystick .slider-readout {
    min-height: 44px;
    padding: 5px 2px 5px 8px;
  }

  body.slider-page.is-slider-fullscreen .feedback {
    font-size: 9px !important;
  }
}

@media (max-width: 430px) {
  body.slider-page.is-slider-fullscreen .slider-control-pad,
  body.slider-page.is-slider-fullscreen .slider-control-joystick {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: stretch;
  }

  body.slider-page.is-slider-fullscreen .slider-readout {
    width: auto;
  }
}

@media (max-height: 520px) and (max-width: 920px) {
  body.slider-page.is-slider-fullscreen {
    --aligned-head: 34px;
    --aligned-control-row: 32px;
    --aligned-footer: 24px;
    --slider-type-xs: 8px;
    --slider-type-sm: 10px;
    --slider-type-md: 11px;
    --slider-type-lg: 22px;
  }

  body.slider-page.is-slider-fullscreen .app {
    height: 100dvh;
    min-height: 100dvh;
    grid-template-rows: minmax(0, 1fr);
    padding: 4px;
    gap: 4px;
  }

  body.slider-page.is-slider-fullscreen .topbar {
    display: none;
  }

  body.slider-page.is-slider-fullscreen .game-shell {
    height: 100%;
    min-height: 0;
    grid-template-columns: minmax(104px, .18fr) minmax(0, .82fr);
    grid-template-rows: minmax(0, 1fr);
    grid-template-areas: "map play";
    gap: 4px;
  }

  body.slider-page.is-slider-fullscreen .map-panel,
  body.slider-page.is-slider-fullscreen .play-panel {
    height: 100%;
    min-height: 0;
  }

  body.slider-page.is-slider-fullscreen .map-panel .panel-head,
  body.slider-page.is-slider-fullscreen .play-panel .panel-head {
    min-height: 28px;
    padding: 4px 6px;
  }

  body.slider-page.is-slider-fullscreen .map-panel .panel-head h2,
  body.slider-page.is-slider-fullscreen .map-panel .panel-head strong,
  body.slider-page.is-slider-fullscreen .play-panel .panel-head h1 {
    font-size: 10px !important;
    line-height: 1;
  }

  body.slider-page.is-slider-fullscreen .map-panel .panel-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
      "tabs"
      "map";
    gap: 4px;
    padding: 4px;
  }

  body.slider-page.is-slider-fullscreen .difficulty-tabs {
    grid-area: tabs;
    grid-template-columns: 1fr;
    gap: 3px;
    margin-bottom: 0;
  }

  body.slider-page.is-slider-fullscreen .difficulty-tab {
    min-height: 20px;
    padding: 2px 4px;
    border-radius: 6px;
    font-size: 8px !important;
  }

  body.slider-page.is-slider-fullscreen .map-actions {
    display: none;
  }

  body.slider-page.is-slider-fullscreen .map {
    grid-area: map;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border-radius: 10px;
  }

  body.slider-page.is-slider-fullscreen .route-svg,
  body.slider-page.is-slider-fullscreen .map::after,
  body.slider-page.is-slider-fullscreen .map-panel .panel-body::after {
    display: none;
  }

  body.slider-page.is-slider-fullscreen .level-node {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: 20px;
    height: 20px;
    justify-self: center;
    transform: none;
    border-width: 1px;
    font-size: 9px !important;
  }

  body.slider-page.is-slider-fullscreen .node-score {
    display: none;
  }

  body.slider-page.is-slider-fullscreen .play-panel .panel-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
  }

  body.slider-page.is-slider-fullscreen .head-actions {
    width: auto;
    gap: 5px;
    flex-wrap: nowrap;
  }

  body.slider-page.is-slider-fullscreen .help,
  body.slider-page.is-slider-fullscreen .head-actions .rank-open {
    width: 26px;
    height: 26px;
    min-height: 26px;
    font-size: 10px !important;
  }

  body.slider-page.is-slider-fullscreen .head-actions .rank-open svg {
    width: 14px;
    height: 14px;
  }

  body.slider-page.is-slider-fullscreen .head-actions .btn {
    min-height: 26px;
    padding: 3px 7px;
    border-radius: 8px;
    font-size: 9px !important;
  }

  body.slider-page.is-slider-fullscreen #startRun::after {
    content: none;
  }

  body.slider-page.is-slider-fullscreen .play-panel .panel-body {
    gap: 4px;
    padding: 6px;
  }

  body.slider-page.is-slider-fullscreen .score-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 0;
  }

  body.slider-page.is-slider-fullscreen .score-box {
    min-height: var(--aligned-control-row);
    padding: 4px;
    border-radius: 8px;
  }

  body.slider-page.is-slider-fullscreen .score-box span {
    font-size: 7px !important;
  }

  body.slider-page.is-slider-fullscreen .score-box strong {
    font-size: 10px !important;
  }

  body.slider-page.is-slider-fullscreen .stage {
    min-height: 0;
    height: 100%;
    padding: 6px;
    border-radius: 14px;
  }

  body.slider-page.is-slider-fullscreen .stage:not(.idle) {
    grid-template-columns: minmax(0, 1fr) minmax(156px, .38fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 6px;
  }

  body.slider-page.is-slider-fullscreen .stage:not(.idle) .stage-top {
    grid-column: 1 / -1;
  }

  body.slider-page.is-slider-fullscreen .stage:not(.idle) .problem-wrap {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
    height: 100%;
    padding: 4px;
  }

  body.slider-page.is-slider-fullscreen .stage:not(.idle) .answer-area {
    grid-column: 2;
    grid-row: 2;
    min-height: 0;
    height: 100%;
    padding: 5px;
  }

  body.slider-page.is-slider-fullscreen .stage-top {
    min-height: 26px;
    font-size: 10px !important;
  }

  body.slider-page.is-slider-fullscreen .timer {
    min-width: 48px;
    min-height: 26px;
    border-radius: 8px;
    font-size: 10px !important;
  }

  body.slider-page.is-slider-fullscreen .slider-captcha-board {
    width: min(100%, calc(44vh * 836 / 471));
    min-height: 0;
    max-height: 172px;
  }

  body.slider-page.is-slider-fullscreen .slider-control-pad,
  body.slider-page.is-slider-fullscreen .slider-control-joystick {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 6px;
  }

  body.slider-page.is-slider-fullscreen .joystick-base {
    width: 82px;
    height: 82px;
  }

  body.slider-page.is-slider-fullscreen .joystick-ring {
    inset: 10px;
  }

  body.slider-page.is-slider-fullscreen .joystick-knob {
    width: 32px;
    height: 32px;
  }

  body.slider-page.is-slider-fullscreen .slider-control-pad .slider-readout,
  body.slider-page.is-slider-fullscreen .slider-control-joystick .slider-readout {
    width: 100%;
    min-height: 40px;
    padding: 4px 6px;
  }

  body.slider-page.is-slider-fullscreen .feedback {
    font-size: 8px !important;
  }
}

/* Image CAPTCHA local mode */
body.image-page {
  --image-type-xs: 11px;
  --image-type-sm: 13px;
  --image-type-md: 17px;
  --image-type-lg: 38px;
  --font-xs: var(--image-type-xs);
  --font-sm: var(--image-type-sm);
  --font-md: var(--image-type-md);
  --font-lg: var(--image-type-lg);
}

body.image-page,
body.image-page *,
body.image-page *::before,
body.image-page *::after {
  font-family: "Russo One", Arial, sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

body.image-page,
body.image-page .app,
body.image-page .modal,
body.image-page .toast,
body.image-page .btn,
body.image-page .feedback,
body.image-page .problem-note,
body.image-page .rank-row,
body.image-page .achievement-card,
body.image-page .modal-rank-form input,
body.image-page .image-progress-panel {
  font-size: var(--image-type-sm) !important;
}

body.image-page .badge-new,
body.image-page .tooltip,
body.image-page .score-box span,
body.image-page .node-score,
body.image-page .scan-lines,
body.image-page .achievement-tag,
body.image-page .leaderboard-status em,
body.image-page .rank-summary em,
body.image-page .risk-title span,
body.image-page .image-prompt-strip,
body.image-page .cell-label {
  font-size: var(--image-type-xs) !important;
}

body.image-page .total-pill,
body.image-page .rank-open,
body.image-page .panel-head h1,
body.image-page .panel-head h2,
body.image-page .panel-head strong,
body.image-page .difficulty-tab,
body.image-page .score-box strong,
body.image-page .stage-top,
body.image-page .timer,
body.image-page .modal-head h2,
body.image-page .modal-close,
body.image-page .result-copy h3,
body.image-page .result-badge,
body.image-page .rank-summary strong,
body.image-page .leaderboard-status strong,
body.image-page .rank-row b,
body.image-page .rank-row strong,
body.image-page .achievement-card strong,
body.image-page .image-progress-panel strong {
  font-size: var(--image-type-md) !important;
}

body.image-page .problem-text,
body.image-page .result-score {
  font-size: var(--image-type-lg) !important;
}

body.image-page .achievement-copy p {
  font-size: var(--image-type-md) !important;
  line-height: 1.35;
}

body.image-page .tooltip {
  min-height: 124px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 7px;
  text-align: left;
  white-space: normal;
}

body.image-page .tooltip span {
  display: block;
}

body.image-page .fullscreen-toggle {
  isolation: isolate;
}

body.image-page .fullscreen-exit-icon {
  display: none;
}

body.image-page.is-image-fullscreen .fullscreen-enter-icon {
  display: none;
}

body.image-page.is-image-fullscreen .fullscreen-exit-icon {
  display: block;
}

body.image-page .result-copy .rank-summary {
  --image-result-rank-size: 22px;
  min-height: 58px;
  flex-wrap: nowrap;
  padding: 10px 16px;
  white-space: nowrap;
}

body.image-page .result-copy .rank-summary span,
body.image-page .result-copy .rank-summary em,
body.image-page .result-copy .rank-summary strong {
  font-size: var(--image-result-rank-size) !important;
  line-height: 1;
}

body.image-page .result-copy .rank-summary span {
  display: inline-flex;
  align-items: baseline;
  flex: 1 1 auto;
  min-width: 0;
  gap: 10px;
}

body.image-page .result-copy .rank-summary em,
body.image-page .result-copy .rank-summary strong {
  flex: 0 0 auto;
}

body.image-page .result-share {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

body.image-page .result-share > span {
  color: rgba(255, 255, 255, .72);
  font-size: var(--image-type-sm);
  text-transform: uppercase;
}

body.image-page .result-share-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.image-page .share-btn {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 12px 24px rgba(0, 0, 0, .16);
  font-family: inherit;
  font-size: var(--image-type-sm);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

body.image-page .share-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .17);
}

body.image-page .share-btn:focus-visible {
  outline: 3px solid rgba(255, 231, 121, .9);
  outline-offset: 2px;
}

body.image-page .share-btn-reddit {
  background: linear-gradient(180deg, rgba(255, 97, 44, .96), rgba(207, 53, 22, .94));
}

body.image-page .share-btn-facebook {
  background: linear-gradient(180deg, rgba(63, 120, 232, .96), rgba(28, 78, 179, .94));
}

body.image-page .share-btn-x {
  background: linear-gradient(180deg, rgba(40, 45, 52, .96), rgba(12, 14, 18, .94));
}

body.image-page .total-pill,
body.image-page .difficulty-tab,
body.image-page .btn,
body.image-page .score-box,
body.image-page .share-btn,
body.image-page .rank-summary,
body.image-page .leaderboard-status,
body.image-page .result-badge,
body.image-page .image-progress-panel {
  overflow-wrap: anywhere;
}

[data-game-page="image-captcha"] .stage:not(.idle) .problem-wrap {
  min-height: 386px;
  padding: 14px 10px;
}

[data-game-page="image-captcha"] .stage:not(.idle) .problem-board {
  width: min(100%, 780px);
  min-height: 360px;
  padding: 12px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)),
    rgba(11, 18, 32, .9);
}

[data-game-page="image-captcha"] .stage.idle .idle-character {
  width: min(70%, 300px);
  max-height: 280px;
}

[data-game-page="image-captcha"] .answer-area {
  min-height: 76px;
  display: grid;
  place-items: center;
}

.image-scene {
  position: relative;
  width: 100%;
  min-height: 334px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    inset 0 -28px 44px rgba(0, 0, 0, .22);
}

.image-prompt-strip {
  position: relative;
  z-index: 8;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, .84);
  background: rgba(5, 8, 18, .58);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  text-transform: uppercase;
}

.image-prompt-strip strong {
  color: #ffe779;
}

.image-progress-panel {
  width: min(100%, 740px);
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(22, 215, 240, .18), rgba(255, 216, 93, .12)),
    rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
}

.image-progress-panel span,
.image-progress-panel em {
  color: rgba(255, 255, 255, .72);
  font-style: normal;
}

.image-progress-panel strong {
  color: #ffe779;
}

.image-node.phase-icons {
  box-shadow: 0 0 0 4px rgba(22, 215, 240, .18), 0 14px 28px rgba(0, 0, 0, .28);
}

.image-node.phase-grid {
  box-shadow: 0 0 0 4px rgba(88, 243, 167, .18), 0 14px 28px rgba(0, 0, 0, .28);
}

.image-node.phase-waldo {
  box-shadow: 0 0 0 4px rgba(255, 216, 93, .2), 0 14px 28px rgba(0, 0, 0, .28);
}

.image-scene-icons {
  background:
    radial-gradient(circle at 18% 28%, rgba(22, 215, 240, .28), transparent 18%),
    radial-gradient(circle at 82% 68%, rgba(255, 216, 93, .24), transparent 20%),
    linear-gradient(160deg, rgba(12, 44, 66, .98), rgba(17, 15, 44, .94) 48%, rgba(45, 18, 50, .94));
}

.icon-order {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.icon-chip {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 10px;
  color: rgba(255, 255, 255, .76);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .13);
}

.icon-chip b {
  color: #ffe779;
}

.icon-chip.is-current {
  color: #111114;
  background: linear-gradient(180deg, #ffe779, #ffc83d);
}

.icon-chip.is-current b {
  color: #111114;
}

.icon-chip.is-done {
  color: #0f2419;
  background: linear-gradient(180deg, #76f6b6, #31d286);
}

.icon-field {
  position: relative;
  min-height: 292px;
}

.image-token {
  position: absolute;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, .42), transparent 26%),
    rgba(255, 255, 255, .12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .2),
    0 14px 30px rgba(0, 0, 0, .25);
  transform: translate(-50%, -50%) rotate(var(--rotate)) scaleX(var(--scale-x));
  cursor: pointer;
  touch-action: manipulation;
  transition: opacity .18s ease, box-shadow .18s ease, filter .18s ease;
}

.image-token span {
  font-size: 28px;
  line-height: 1;
}

.image-token.tone-cyan,
.image-token.tone-aqua {
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, .42), transparent 26%),
    linear-gradient(145deg, rgba(22, 215, 240, .92), rgba(20, 95, 146, .88));
}

.image-token.tone-gold {
  color: #2a1e08;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, .5), transparent 26%),
    linear-gradient(145deg, rgba(255, 231, 121, .96), rgba(255, 160, 60, .9));
}

.image-token.tone-pink {
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, .44), transparent 26%),
    linear-gradient(145deg, rgba(255, 94, 126, .95), rgba(172, 42, 142, .88));
}

.image-token.tone-green {
  color: #082418;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, .5), transparent 26%),
    linear-gradient(145deg, rgba(88, 243, 167, .96), rgba(42, 160, 129, .9));
}

.image-token.is-decoy {
  filter: saturate(.7) brightness(.9);
}

.image-token.is-selected {
  opacity: .22;
  pointer-events: none;
  box-shadow: 0 0 0 4px rgba(88, 243, 167, .5);
}

.image-token.is-wrong,
.image-grid-cell.is-wrong,
.waldo-item.is-wrong,
.waldo-scene.is-wrong {
  box-shadow: 0 0 0 4px rgba(255, 94, 126, .55), 0 14px 30px rgba(0, 0, 0, .25);
}

.image-token.is-drifting {
  animation: imageTokenDrift var(--drift-time) ease-in-out infinite;
  animation-delay: var(--drift-delay);
}

@keyframes imageTokenDrift {
  0%, 100% {
    transform: translate(calc(-50% - var(--drift-x) * .45), calc(-50% + var(--drift-y) * .25)) rotate(var(--rotate)) scaleX(var(--scale-x));
  }
  50% {
    transform: translate(calc(-50% + var(--drift-x) * .55), calc(-50% - var(--drift-y) * .75)) rotate(var(--rotate)) scaleX(var(--scale-x));
  }
}

.image-scene-grid {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background:
    linear-gradient(90deg, rgba(22, 215, 240, .08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(22, 215, 240, .08) 1px, transparent 1px),
    linear-gradient(145deg, rgba(10, 30, 42, .98), rgba(13, 18, 33, .96));
  background-size: 24px 24px, 24px 24px, auto;
}

.image-grid {
  align-self: center;
  justify-self: center;
  width: min(100%, 620px);
  display: grid;
  grid-template-columns: repeat(var(--grid-size), minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}

.image-grid-cell {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  color: rgba(255, 255, 255, .86);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .035)),
    rgba(8, 13, 26, .82);
  cursor: pointer;
  touch-action: manipulation;
  transition: opacity .24s ease, transform .18s ease, border-color .18s ease, background .18s ease;
}

.image-grid-cell:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 231, 121, .44);
}

.cell-photo {
  position: absolute;
  inset: 6px;
  display: grid;
  place-items: center;
  gap: 2px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, .18), transparent 32%),
    linear-gradient(145deg, rgba(22, 215, 240, .15), rgba(255, 216, 93, .08));
  border: 1px solid rgba(255, 255, 255, .11);
}

.cell-glyph {
  display: grid;
  place-items: center;
  width: 54%;
  min-width: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #111114;
  background: linear-gradient(180deg, #ffe779, #ffb14f);
}

.cell-label {
  color: rgba(255, 255, 255, .68);
  text-transform: uppercase;
}

.type-camera .cell-glyph,
.type-drone .cell-glyph,
.type-satellite .cell-glyph {
  color: #06151c;
  background: linear-gradient(180deg, #7cf4ff, #36d08d);
}

.image-grid-cell.is-selected {
  opacity: .38;
  transform: none;
  border-color: rgba(88, 243, 167, .74);
  background: rgba(88, 243, 167, .16);
}

.image-grid-cell.is-cleared {
  animation: imageCellFade .26s ease forwards;
}

@keyframes imageCellFade {
  to { opacity: .18; transform: scale(.94); }
}

.image-grid-cell.is-edge .cell-photo {
  box-shadow: 0 0 0 1px rgba(255, 231, 121, .26);
}

.image-grid-cell.edge-top .cell-photo { inset: -97% 6px 97% 6px; }
.image-grid-cell.edge-right .cell-photo { inset: 6px -97% 6px 97%; }
.image-grid-cell.edge-bottom .cell-photo { inset: 97% 6px -97% 6px; }
.image-grid-cell.edge-left .cell-photo { inset: 6px 97% 6px -97%; }

.image-scene-waldo {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background:
    radial-gradient(circle at 14% 20%, rgba(255, 216, 93, .18), transparent 18%),
    radial-gradient(circle at 76% 62%, rgba(22, 215, 240, .16), transparent 24%),
    linear-gradient(145deg, rgba(30, 34, 49, .98), rgba(10, 11, 18, .96));
}

.waldo-window {
  display: grid;
  place-items: center;
  padding: 10px;
  min-height: 288px;
}

.waldo-scene {
  position: relative;
  width: min(100%, 720px);
  aspect-ratio: var(--scene-width) / var(--scene-height);
  min-height: 270px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(44, 64, 82, .92), rgba(28, 28, 44, .96) 48%, rgba(18, 18, 24, .98));
  background-size: 18px 18px, 18px 18px, auto;
  cursor: crosshair;
}

.waldo-scene::before,
.waldo-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.waldo-scene::before {
  background:
    linear-gradient(90deg, transparent 0 9%, rgba(255, 255, 255, .08) 9.2% 9.7%, transparent 10% 100%),
    linear-gradient(90deg, transparent 0 31%, rgba(255, 216, 93, .14) 31.2% 31.7%, transparent 32% 100%),
    linear-gradient(90deg, transparent 0 71%, rgba(22, 215, 240, .12) 71.2% 71.7%, transparent 72% 100%);
}

.waldo-scene::after {
  background:
    radial-gradient(circle at 22% 76%, rgba(255, 94, 126, .2), transparent 8%),
    radial-gradient(circle at 82% 22%, rgba(88, 243, 167, .14), transparent 9%);
}

.waldo-item {
  position: absolute;
  z-index: 4;
  width: 22px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%) scale(var(--entity-scale));
  transform-origin: 50% 100%;
  cursor: pointer;
  touch-action: manipulation;
}

.waldo-head,
.waldo-body,
.waldo-feet,
.waldo-balloon {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: block;
}

.waldo-head {
  top: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: hsl(var(--entity-hue), 70%, 72%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .28);
}

.waldo-body {
  top: 13px;
  width: 16px;
  height: 16px;
  border-radius: 5px 5px 3px 3px;
  background: linear-gradient(90deg, hsl(var(--entity-hue), 72%, 58%), hsl(calc(var(--entity-hue) + 42deg), 70%, 50%));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
}

.waldo-feet {
  top: 29px;
  width: 18px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .34);
}

.waldo-sign .waldo-body,
.waldo-panel .waldo-body,
.waldo-tower .waldo-body {
  width: 18px;
  height: 20px;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .28), hsla(var(--entity-hue), 70%, 48%, .82));
}

.waldo-sign .waldo-head,
.waldo-panel .waldo-head,
.waldo-tower .waldo-head {
  display: none;
}

.waldo-item.is-similar .waldo-body {
  background:
    repeating-linear-gradient(0deg, #f5f7fb 0 4px, #d83750 4px 8px);
}

.waldo-item.is-similar .waldo-head {
  background: #f4dcc1;
}

.waldo-target .waldo-body {
  outline: 1px solid rgba(255, 255, 255, .28);
}

.waldo-balloon {
  display: none;
  top: -18px;
  width: 13px;
  height: 17px;
  border-radius: 50% 50% 48% 48%;
  background: #e9384f;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 8px 0 -6px rgba(255, 255, 255, .64);
}

.waldo-balloon::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 16px;
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, .56);
}

.waldo-item.has-balloon .waldo-balloon {
  display: block;
}

.waldo-decoy.has-balloon .waldo-balloon {
  background: #c65635;
}

.flashlight-canvas {
  position: absolute;
  z-index: 20;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

body.image-page.is-image-fullscreen,
body.image-page.is-faux-fullscreen {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

body.image-page.is-image-fullscreen::before,
body.image-page.is-image-fullscreen::after {
  opacity: .28;
}

body.image-page.is-image-fullscreen .app,
body.image-page .app:fullscreen,
body.image-page .app:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  grid-template-rows: auto minmax(0, 1fr);
  margin: 0;
  padding: 8px;
  gap: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 216, 93, .18), transparent 24%),
    linear-gradient(106deg, rgba(247, 37, 110, .94) 0 43%, rgba(17, 17, 20, .99) 43.25% 100%),
    var(--bg-0);
}

body.image-page.is-image-fullscreen {
  --aligned-head: 52px;
  --aligned-control-row: 54px;
  --aligned-footer: 36px;
}

body.image-page.is-image-fullscreen .topbar {
  min-height: 40px;
}

body.image-page.is-image-fullscreen .game-shell {
  min-height: 0;
  height: 100%;
  grid-template-columns: minmax(250px, .31fr) minmax(0, .69fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

body.image-page.is-image-fullscreen .panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
}

body.image-page.is-image-fullscreen .panel-head,
body.image-page.is-image-fullscreen .play-panel .panel-head {
  min-height: var(--aligned-head);
  padding: 10px 12px;
}

body.image-page.is-image-fullscreen .panel-head::after {
  content: none;
}

body.image-page.is-image-fullscreen .panel-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 10px;
  overflow: hidden;
}

body.image-page.is-image-fullscreen .map {
  height: 100%;
  min-height: 0;
}

body.image-page.is-image-fullscreen .play-panel .panel-body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
}

body.image-page.is-image-fullscreen .stage {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 10px;
  border-radius: 18px;
}

body.image-page.is-image-fullscreen .stage.idle {
  display: grid;
  place-items: center;
}

body.image-page.is-image-fullscreen .problem-wrap,
body.image-page.is-image-fullscreen [data-game-page="image-captcha"] .stage:not(.idle) .problem-wrap {
  min-height: 0;
  padding: 6px;
}

body.image-page.is-image-fullscreen .problem-board,
body.image-page.is-image-fullscreen [data-game-page="image-captcha"] .stage:not(.idle) .problem-board {
  min-height: 0;
  height: 100%;
}

body.image-page.is-image-fullscreen .image-scene {
  min-height: 100%;
}

body.image-page.is-image-fullscreen .icon-field {
  min-height: 100%;
}

body.image-page.is-image-fullscreen .waldo-window {
  min-height: 0;
  height: 100%;
}

body.image-page.is-image-fullscreen .waldo-scene {
  width: 100%;
  min-height: 100%;
}

body.image-page.is-image-fullscreen .answer-area {
  min-height: 58px;
}

body.image-page.is-image-fullscreen .feedback {
  min-height: 34px;
  padding: 8px 10px;
}

@media (min-width: 721px) and (max-width: 1180px) {
  body.image-page {
    --image-type-xs: 9px;
    --image-type-sm: 10px;
    --image-type-md: 13px;
    --image-type-lg: 28px;
  }

  body.image-page .result-copy .rank-summary {
    --image-result-rank-size: 19px;
    min-height: 54px;
  }

  [data-game-page="image-captcha"] .stage:not(.idle) .problem-wrap {
    min-height: 318px;
  }

  [data-game-page="image-captcha"] .stage:not(.idle) .problem-board {
    min-height: 294px;
  }

  .image-scene {
    min-height: 268px;
  }

  .icon-field {
    min-height: 226px;
  }

  .image-token {
    width: 58px;
    height: 58px;
  }

  .image-token span {
    font-size: 24px;
  }

  .waldo-window {
    min-height: 230px;
  }
}

@media (max-width: 720px) {
  body.image-page {
    --image-type-xs: 8px;
    --image-type-sm: 9px;
    --image-type-md: 11px;
    --image-type-lg: 22px;
  }

  body.image-page .result-copy .rank-summary {
    --image-result-rank-size: 16px;
    min-height: 48px;
    gap: 8px;
    padding: 8px 10px;
  }

  body.image-page .result-copy .rank-summary span {
    gap: 7px;
  }

  body.image-page .result-share-buttons {
    grid-template-columns: 1fr;
  }

  body.image-page .share-btn {
    min-height: 42px;
  }

  body.image-page .tooltip {
    width: min(78vw, 280px);
  }

  [data-game-page="image-captcha"] .stage:not(.idle) .problem-wrap {
    min-height: 252px;
    padding: 8px 4px;
  }

  [data-game-page="image-captcha"] .stage:not(.idle) .problem-board {
    min-height: 232px;
    padding: 8px;
    border-radius: 18px;
  }

  [data-game-page="image-captcha"] .answer-area {
    min-height: 68px;
  }

  .image-scene {
    min-height: 216px;
    border-radius: 14px;
  }

  .image-prompt-strip {
    min-height: 34px;
    gap: 6px;
    padding: 7px 8px;
  }

  .icon-order {
    gap: 4px;
  }

  .icon-chip {
    min-height: 25px;
    max-width: 74px;
    padding: 4px 5px;
  }

  .icon-chip b {
    display: none;
  }

  .icon-field {
    min-height: 178px;
  }

  .image-token {
    width: 46px;
    height: 46px;
  }

  .image-token span {
    font-size: 19px;
  }

  .image-grid {
    gap: 5px;
    padding: 7px;
  }

  .cell-photo {
    inset: 4px;
  }

  .cell-glyph {
    min-width: 28px;
    width: 52%;
  }

  .cell-label {
    display: none;
  }

  .waldo-window {
    min-height: 178px;
    padding: 6px;
  }

  .waldo-scene {
    min-height: 170px;
  }

  .waldo-item {
    width: 18px;
    height: 28px;
  }

  .waldo-body {
    width: 13px;
    height: 13px;
  }

  .image-progress-panel {
    min-height: 46px;
    gap: 7px;
    padding: 8px 10px;
  }
}

@media (max-height: 520px) and (max-width: 920px) {
  body.image-page.is-image-fullscreen {
    --image-type-xs: 8px;
    --image-type-sm: 10px;
    --image-type-md: 11px;
    --image-type-lg: 22px;
  }

  body.image-page.is-image-fullscreen .app {
    padding: 4px;
    gap: 4px;
  }

  body.image-page.is-image-fullscreen .topbar {
    display: none;
  }

  body.image-page.is-image-fullscreen .game-shell {
    grid-template-columns: minmax(168px, .28fr) minmax(0, .72fr);
    gap: 6px;
  }

  body.image-page.is-image-fullscreen .panel-head,
  body.image-page.is-image-fullscreen .play-panel .panel-head {
    min-height: 38px;
    padding: 6px 8px;
  }

  body.image-page.is-image-fullscreen .panel-body {
    padding: 6px;
  }

  body.image-page.is-image-fullscreen .score-strip {
    gap: 5px;
  }

  body.image-page.is-image-fullscreen .score-box {
    min-height: 34px;
    padding: 4px 6px;
  }

  body.image-page.is-image-fullscreen .stage {
    padding: 6px;
    gap: 5px;
  }

  body.image-page.is-image-fullscreen .stage-top {
    min-height: 34px;
  }

  body.image-page.is-image-fullscreen .timer {
    min-height: 34px;
    min-width: 72px;
  }

  body.image-page.is-image-fullscreen .answer-area {
    min-height: 44px;
  }

  body.image-page.is-image-fullscreen .feedback {
    min-height: 24px;
    padding: 6px 8px;
  }
}
