/* 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;
}

/* Rotate CAPTCHA level swap, red alignment ticks, and Ring Puzzle reward. */
[data-game-page="rotate-captcha"] .dial-target-marker {
  position: absolute;
  z-index: 18;
  top: 50%;
  left: 50%;
  width: var(--rotate-wheel-size);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(var(--target-angle));
  pointer-events: none;
}

[data-game-page="rotate-captcha"] .target-alignment-tick,
[data-game-page="rotate-captcha"] .outer-heading-tick {
  position: absolute;
  left: 50%;
  width: 4px;
  border-radius: 2px;
  background: #ff3b30;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .92),
    0 1px 2px rgba(0, 0, 0, .9),
    0 0 9px rgba(255, 59, 48, .82);
  transform: translateX(-50%);
  pointer-events: none;
}

[data-game-page="rotate-captcha"] .target-alignment-tick {
  top: -15px;
  height: 28px;
}

[data-game-page="rotate-captcha"] .outer-heading-tick {
  z-index: 8;
  top: -2px;
  height: 23px;
}

[data-game-page="rotate-captcha"] .rotate-captcha-board[data-rotate-theme="target"] .image-heading-indicator i {
  top: -2px;
  width: 4px;
  height: 23px;
  border-radius: 2px;
  background: #ff3b30;
  clip-path: none;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .9)) drop-shadow(0 0 5px rgba(255, 59, 48, .82));
  transform: translateX(-50%);
}

.rotate-puzzle-reward {
  position: fixed;
  z-index: 140;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(5, 8, 15, .82);
  backdrop-filter: blur(5px);
}

.rotate-puzzle-reward.open {
  display: grid;
}

.rotate-puzzle-reward-card {
  width: min(92vw, 560px);
  max-height: calc(100dvh - 40px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 18px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: #111a24;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .58);
  text-align: center;
}

.rotate-puzzle-reward-kicker {
  color: #58f3a7;
  font-size: var(--rotate-type-xs) !important;
  text-transform: uppercase;
}

.rotate-puzzle-reward-card h2 {
  margin: 0;
  color: #fff;
  font-size: var(--rotate-type-md) !important;
}

.rotate-puzzle-reward-card img {
  width: min(100%, 460px);
  min-height: 0;
  aspect-ratio: 1;
  justify-self: center;
  object-fit: contain;
  border: 2px solid rgba(255, 255, 255, .28);
  border-radius: 4px;
  background: #080d13;
}

.rotate-puzzle-reward-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rotate-puzzle-reward-footer strong {
  color: #ffcf75;
  font-size: var(--rotate-type-sm) !important;
}

@media (max-width: 720px), (max-height: 620px) {
  .rotate-puzzle-reward {
    padding: 10px;
  }

  .rotate-puzzle-reward-card {
    width: min(96vw, 460px);
    max-height: calc(100dvh - 20px);
    padding: 12px;
    gap: 6px;
  }

  .rotate-puzzle-reward-card img {
    width: min(100%, 58dvh);
  }
}

: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;
}

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

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

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

body.math-page:not(.is-math-fullscreen) .stage {
  min-height: 0;
}

body.math-page:not(.is-math-fullscreen) .stage.idle {
  min-height: 0;
  padding-bottom: 14px;
}

body.math-page:not(.is-math-fullscreen) .stage.idle .problem-wrap {
  min-height: 0;
  padding: 0;
}

body.math-page:not(.is-math-fullscreen) .stage.idle .problem-board {
  min-height: 0;
  padding: clamp(22px, 4vw, 40px);
}

body.math-page:not(.is-math-fullscreen) .stage.idle .problem-content {
  min-height: 0;
  width: 100%;
}

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

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

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;
  }
}

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

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

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

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

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

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

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

body.rotate-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.rotate-page .tooltip span {
  display: block;
}

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

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

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

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

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

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

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

body.rotate-page .result-share > span {
  color: rgba(255, 255, 255, .72);
  text-transform: uppercase;
}

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

body.rotate-page .share-btn {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  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);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

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

body.rotate-page .share-btn:focus-visible,
body.rotate-page .rotate-disc:focus-visible,
body.rotate-page .rotate-range:focus-visible,
body.rotate-page .rotate-lock-button:focus-visible {
  outline: 3px solid rgba(255, 231, 121, .92);
  outline-offset: 3px;
}

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

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

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

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

[data-game-page="rotate-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, .1), rgba(255, 255, 255, .025)),
    rgba(9, 13, 24, .94);
}

[data-game-page="rotate-captcha"] .stage.idle .problem-board {
  min-height: 300px;
}

[data-game-page="rotate-captcha"] .rotate-idle-copy {
  min-height: 270px;
  justify-content: center;
}

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

.rotate-captcha-board {
  --scene-hue: 0deg;
  position: relative;
  width: 100%;
  min-height: 334px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  background:
    radial-gradient(circle at var(--scene-x, 18%) var(--scene-y, 24%), hsla(var(--scene-color, 188), 92%, 62%, .2), transparent 23%),
    linear-gradient(120deg, rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(30deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(145deg, rgba(17, 34, 48, .98), rgba(10, 12, 23, .98));
  background-size: auto, 30px 30px, 30px 30px, auto;
  box-shadow: inset 0 -34px 60px rgba(0, 0, 0, .28);
  isolation: isolate;
}

.rotate-captcha-board[data-rotate-theme="brake"] {
  --scene-color: 41;
  background:
    radial-gradient(circle at var(--scene-x, 72%) var(--scene-y, 20%), rgba(255, 214, 93, .24), transparent 22%),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(145deg, rgba(52, 28, 30, .98), rgba(14, 16, 24, .98));
  background-size: auto, 26px 26px, 26px 26px, auto;
}

.rotate-captcha-board[data-rotate-theme="wobble"] {
  --scene-color: 146;
  background:
    radial-gradient(circle at var(--scene-x, 24%) var(--scene-y, 68%), rgba(88, 243, 167, .22), transparent 25%),
    repeating-conic-gradient(from 20deg at 50% 50%, rgba(255, 255, 255, .035) 0 7deg, transparent 7deg 20deg),
    linear-gradient(145deg, rgba(17, 46, 40, .98), rgba(13, 12, 27, .98));
}

.rotate-degree-scale {
  position: absolute;
  z-index: 1;
  width: clamp(238px, 42%, 306px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-conic-gradient(from -1deg, rgba(255,255,255,.42) 0 1deg, transparent 1deg 10deg);
  mask: radial-gradient(circle, transparent 0 54%, #000 55% 58%, transparent 59%);
  opacity: .56;
  pointer-events: none;
}

.rotate-target-axis {
  position: absolute;
  z-index: 5;
  top: 12px;
  left: 50%;
  width: 34px;
  height: 52px;
  transform: translateX(-50%);
  pointer-events: none;
}

.rotate-target-axis::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 18px solid #ffe779;
  transform: translateX(-50%);
  filter: drop-shadow(0 4px 8px rgba(255, 216, 93, .32));
}

.rotate-target-axis span {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 3px;
  height: 30px;
  background: linear-gradient(#ffe779, transparent);
  transform: translateX(-50%);
}

.rotate-disc {
  position: relative;
  z-index: 3;
  width: clamp(210px, 38%, 278px);
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, .92);
  border-radius: 50%;
  color: #fff;
  background: #111114;
  box-shadow:
    0 0 0 4px rgba(22, 215, 240, .3),
    0 22px 46px rgba(0, 0, 0, .42),
    inset 0 0 0 1px rgba(255, 255, 255, .2);
  cursor: grab;
  touch-action: none;
  user-select: none;
  will-change: transform;
}

.rotate-disc:active {
  cursor: grabbing;
}

[data-rotate-control="brake"] .rotate-disc {
  cursor: default;
}

.rotate-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at var(--art-sun-x, 72%) 24%, #fff6b6 0 8%, rgba(255, 202, 91, .42) 8.5% 14%, transparent 14.5%),
    linear-gradient(166deg, transparent 0 52%, rgba(255,255,255,.22) 52.5% 54%, transparent 54.5%),
    linear-gradient(180deg, hsl(190 74% 50%) 0 48%, hsl(153 48% 37%) 48.5% 70%, hsl(36 48% 27%) 70.5% 100%);
  filter: hue-rotate(var(--scene-hue));
}

[data-rotate-theme="brake"] .rotate-art {
  background:
    radial-gradient(circle at var(--art-sun-x, 30%) 25%, #fff3be 0 7%, rgba(255, 171, 76, .38) 7.5% 14%, transparent 14.5%),
    linear-gradient(152deg, transparent 0 50%, rgba(255,255,255,.22) 50.5% 52%, transparent 52.5%),
    linear-gradient(180deg, hsl(210 65% 48%) 0 49%, hsl(344 54% 39%) 49.5% 72%, hsl(29 54% 25%) 72.5% 100%);
}

[data-rotate-theme="wobble"] .rotate-art {
  background:
    radial-gradient(circle at var(--art-sun-x, 68%) 22%, #eaffc8 0 6%, rgba(109, 255, 191, .4) 6.5% 13%, transparent 13.5%),
    linear-gradient(205deg, transparent 0 47%, rgba(255,255,255,.2) 47.5% 50%, transparent 50.5%),
    linear-gradient(180deg, hsl(174 55% 40%) 0 47%, hsl(263 38% 36%) 47.5% 70%, hsl(221 44% 20%) 70.5% 100%);
}

.rotate-horizon {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 48%;
  height: 3px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .26);
}

.rotate-landmark {
  position: absolute;
  left: var(--landmark-x, 25%);
  bottom: 20%;
  width: 20%;
  height: 30%;
  border-radius: 3px 3px 0 0;
  background:
    linear-gradient(90deg, transparent 0 36%, rgba(255,255,255,.7) 37% 47%, transparent 48% 100%),
    linear-gradient(145deg, rgba(20, 22, 30, .82), rgba(5, 8, 14, .94));
  clip-path: polygon(0 100%, 18% 34%, 40% 54%, 58% 0, 78% 46%, 100% 100%);
}

.rotate-captcha-board.is-near .rotate-disc {
  box-shadow: 0 0 0 5px rgba(255, 216, 93, .48), 0 22px 46px rgba(0, 0, 0, .42);
}

.rotate-captcha-board.is-aligned .rotate-disc {
  box-shadow: 0 0 0 6px rgba(88, 243, 167, .72), 0 0 38px rgba(88, 243, 167, .42);
}

.rotate-control {
  width: min(100%, 700px);
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 10px 14px;
}

.rotate-range-control {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
}

.rotate-range {
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: ew-resize;
  appearance: none;
  -webkit-appearance: none;
}

.rotate-range::-webkit-slider-runnable-track {
  height: 12px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: linear-gradient(90deg, #16d7f0 0 48%, #ffe779 49% 51%, #ff5e7e 52% 100%);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .28);
}

.rotate-range::-webkit-slider-thumb {
  width: 42px;
  height: 42px;
  margin-top: -16px;
  border: 4px solid #111114;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 216, 93, .36), 0 8px 16px rgba(0, 0, 0, .3);
  -webkit-appearance: none;
}

.rotate-range::-moz-range-track {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #16d7f0 0 48%, #ffe779 49% 51%, #ff5e7e 52% 100%);
}

.rotate-range::-moz-range-thumb {
  width: 36px;
  height: 36px;
  border: 4px solid #111114;
  border-radius: 50%;
  background: #fff;
}

.rotate-readout {
  min-width: 152px;
  min-height: 56px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .07);
  text-transform: uppercase;
}

.rotate-readout strong {
  color: #ffe779;
  text-transform: none;
}

.rotate-lock-button {
  min-width: 210px;
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 22px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 8px;
  color: #17130a;
  background: linear-gradient(180deg, #ffe779, #ffad43);
  box-shadow: 0 12px 26px rgba(255, 174, 67, .25), inset 0 1px 0 rgba(255,255,255,.6);
}

.rotate-lock-button svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.rotate-lock-button.is-locked {
  color: #fff;
  background: linear-gradient(180deg, #ff5e7e, #b62452);
}

.rotate-direct-control {
  gap: 14px;
}

.rotate-turn-arrows {
  min-width: 250px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  color: #7cf4ff;
  font-size: 30px;
}

.rotate-turn-arrows i {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #16d7f0, #ffe779 50%, #ff5e7e);
}

.rotate-node {
  box-shadow: 0 0 0 4px rgba(22, 215, 240, .16), 0 14px 28px rgba(0, 0, 0, .28);
}

#levelMap[data-difficulty="medium"] .rotate-node {
  box-shadow: 0 0 0 4px rgba(255, 216, 93, .17), 0 14px 28px rgba(0, 0, 0, .28);
}

#levelMap[data-difficulty="hard"] .rotate-node {
  box-shadow: 0 0 0 4px rgba(88, 243, 167, .18), 0 14px 28px rgba(0, 0, 0, .28);
}

body.rotate-page.is-rotate-fullscreen,
body.rotate-page.is-faux-fullscreen {
  min-height: 100vh;
  overflow: hidden;
  background-color: #111114;
}

body.rotate-page.is-rotate-fullscreen .app {
  width: min(1530px, calc(100vw - 16px));
  height: 100vh;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
}

body.rotate-page.is-rotate-fullscreen .topbar {
  min-height: 48px;
}

body.rotate-page.is-rotate-fullscreen .game-shell {
  min-height: 0;
  grid-template-columns: minmax(280px, .34fr) minmax(520px, .66fr);
  gap: 10px;
}

body.rotate-page.is-rotate-fullscreen .panel,
body.rotate-page.is-rotate-fullscreen .panel-body {
  min-height: 0;
}

body.rotate-page.is-rotate-fullscreen .panel-head {
  min-height: 58px;
  padding: 8px 14px;
}

body.rotate-page.is-rotate-fullscreen .map-panel .panel-body,
body.rotate-page.is-rotate-fullscreen .play-panel .panel-body {
  padding: 10px;
}

body.rotate-page.is-rotate-fullscreen .map {
  min-height: 0;
  height: calc(100vh - 242px);
}

body.rotate-page.is-rotate-fullscreen .stage {
  min-height: 0;
  padding: 8px;
  gap: 6px;
}

body.rotate-page.is-rotate-fullscreen [data-game-page="rotate-captcha"] .stage:not(.idle) .problem-wrap {
  min-height: 0;
  height: min(46vh, 440px);
  padding: 6px;
}

body.rotate-page.is-rotate-fullscreen [data-game-page="rotate-captcha"] .stage:not(.idle) .problem-board {
  min-height: 0;
  height: 100%;
}

body.rotate-page.is-rotate-fullscreen .rotate-captcha-board {
  min-height: 0;
  height: 100%;
}

body.rotate-page.is-rotate-fullscreen [data-game-page="rotate-captcha"] .answer-area {
  min-height: 76px;
}

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

  [data-game-page="rotate-captcha"] .stage:not(.idle) .problem-wrap {
    min-height: 330px;
  }

  [data-game-page="rotate-captcha"] .stage:not(.idle) .problem-board,
  .rotate-captcha-board {
    min-height: 304px;
  }

  .rotate-disc {
    width: clamp(190px, 42%, 238px);
  }
}

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

  body.rotate-page .tooltip {
    width: min(280px, calc(100vw - 44px));
  }

  body.rotate-page .result-copy .rank-summary {
    --rotate-result-rank-size: 16px;
    min-height: 54px;
  }

  body.rotate-page .result-copy .rank-summary span {
    gap: 6px;
  }

  [data-game-page="rotate-captcha"] .stage:not(.idle) .problem-wrap {
    min-height: 286px;
    padding: 7px 4px;
  }

  [data-game-page="rotate-captcha"] .stage:not(.idle) .problem-board,
  .rotate-captcha-board {
    min-height: 272px;
  }

  [data-game-page="rotate-captcha"] .answer-area {
    min-height: 92px;
  }

  .rotate-disc {
    width: clamp(174px, 58vw, 214px);
    border-width: 6px;
  }

  .rotate-degree-scale {
    width: clamp(198px, 66vw, 238px);
  }

  .rotate-control {
    min-height: 76px;
    gap: 8px;
    padding: 6px;
  }

  .rotate-range-control {
    grid-template-columns: minmax(130px, 1fr) 104px;
  }

  .rotate-readout {
    min-width: 0;
    padding: 7px 9px;
  }

  .rotate-lock-button {
    min-width: 170px;
    min-height: 56px;
    padding: 8px 14px;
  }

  .rotate-turn-arrows {
    min-width: 146px;
    font-size: 24px;
  }
}

@media (max-height: 520px) and (max-width: 920px) {
  body.rotate-page.is-rotate-fullscreen {
    --rotate-type-xs: 8px;
    --rotate-type-sm: 10px;
    --rotate-type-md: 11px;
    --rotate-type-lg: 22px;
  }

  body.rotate-page.is-rotate-fullscreen .app {
    padding: 4px;
    gap: 4px;
  }

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

  body.rotate-page.is-rotate-fullscreen .game-shell {
    grid-template-columns: minmax(168px, .28fr) minmax(0, .72fr);
    gap: 6px;
  }

  body.rotate-page.is-rotate-fullscreen .panel-head {
    min-height: 38px;
    padding: 6px 8px;
  }

  body.rotate-page.is-rotate-fullscreen .panel-body {
    padding: 6px;
  }

  body.rotate-page.is-rotate-fullscreen .score-box {
    min-height: 34px;
    padding: 4px 6px;
  }

  body.rotate-page.is-rotate-fullscreen .stage {
    padding: 6px;
    gap: 5px;
  }

  body.rotate-page.is-rotate-fullscreen [data-game-page="rotate-captcha"] .stage:not(.idle) .problem-wrap {
    height: calc(100vh - 178px);
  }

  body.rotate-page.is-rotate-fullscreen .rotate-disc {
    width: clamp(142px, 34vh, 196px);
  }

  body.rotate-page.is-rotate-fullscreen .rotate-degree-scale {
    width: clamp(166px, 40vh, 222px);
  }

  body.rotate-page.is-rotate-fullscreen [data-game-page="rotate-captcha"] .answer-area {
    min-height: 54px;
  }

  body.rotate-page.is-rotate-fullscreen .rotate-control {
    min-height: 50px;
    padding: 3px 6px;
  }

  body.rotate-page.is-rotate-fullscreen .rotate-lock-button {
    min-height: 44px;
  }

  body.rotate-page.is-rotate-fullscreen .feedback {
    min-height: 24px;
    padding: 6px 8px;
  }
}

/* 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 .image-progress-panel span {
  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);
}

.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;
  }

  .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;
  }
}

/* Image CAPTCHA visual refresh: illustrated targets over real scene art */
[data-game-page="image-captcha"] .image-scene {
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, .28);
  background-color: #10131a;
}

[data-game-page="image-captcha"] .image-prompt-strip {
  min-height: 50px;
  color: #17202c;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(232, 239, 255, .9));
  border-bottom: 2px solid rgba(20, 30, 50, .16);
  text-transform: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
}

[data-game-page="image-captcha"] .image-prompt-strip strong {
  color: #2869d6;
}

.image-scene-icons {
  background:
    linear-gradient(180deg, rgba(255, 245, 220, .08), rgba(10, 12, 24, .22)),
    url("./assets/image/optimized/scene-icon.webp") center / cover no-repeat;
}

.image-scene-icons::after,
.image-scene-waldo::after {
  content: "";
  position: absolute;
  inset: 50px 0 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 24%, rgba(255, 255, 255, .22), transparent 14%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, .12));
  mix-blend-mode: screen;
  opacity: .55;
}

.icon-order {
  flex: 1 1 auto;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.icon-chip {
  min-height: 40px;
  min-width: 88px;
  padding: 5px 9px 5px 6px;
  border-radius: 999px;
  color: #111927;
  background: rgba(255, 255, 255, .78);
  border: 2px solid rgba(25, 38, 58, .14);
  box-shadow: 0 8px 18px rgba(11, 13, 20, .12);
}

.icon-chip .visual-object {
  width: 34px;
  height: 31px;
  flex: 0 0 34px;
}

.icon-chip em {
  max-width: 96px;
  color: #17202c;
  font-style: normal;
  font-size: 10px;
  line-height: 1.05;
  white-space: normal;
}

.icon-chip.is-current {
  background: #ffffff;
  border-color: rgba(40, 105, 214, .5);
  box-shadow: 0 0 0 4px rgba(40, 105, 214, .16), 0 10px 22px rgba(11, 13, 20, .16);
}

.icon-chip.is-done {
  background: linear-gradient(180deg, #dffbea, #9ff0be);
}

.image-token {
  width: 94px;
  height: 100px;
  border-radius: 24px;
  border: 3px solid rgba(255, 255, 255, .86);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(241, 247, 255, .82));
  box-shadow:
    0 0 0 5px rgba(14, 18, 30, .18),
    0 16px 30px rgba(0, 0, 0, .28);
}

.image-token::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 18px;
  border: 2px dashed rgba(40, 105, 214, .28);
  pointer-events: none;
}

.image-token .token-halo {
  position: absolute;
  inset: -10px;
  border-radius: 28px;
  background: radial-gradient(circle, rgba(255, 238, 112, .34), transparent 66%);
  opacity: .78;
}

.image-token .visual-object {
  position: absolute;
  left: 50%;
  top: 43%;
  width: 62px;
  height: 56px;
  transform: translate(-50%, -50%);
}

.token-caption {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 8px;
  color: #17202c;
  font-size: 10px !important;
  line-height: 1.05;
  text-align: center;
}

.image-token.is-decoy {
  border-style: dashed;
  filter: saturate(.84) brightness(.95);
}

.image-token.is-selected {
  opacity: .28;
  transform: translate(-50%, -50%) rotate(var(--rotate)) scaleX(var(--scale-x)) scale(.92);
}

.visual-object {
  --visual-a: #57d7ff;
  --visual-b: #ffde63;
  --visual-c: #f55779;
  position: relative;
  display: inline-block;
  width: 62px;
  height: 56px;
  vertical-align: middle;
  isolation: isolate;
}

.visual-object > span {
  position: absolute;
  display: block;
}

.visual-shadow {
  left: 15%;
  right: 15%;
  bottom: 0;
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .22);
  filter: blur(1px);
}

.visual-main {
  z-index: 2;
}

.visual-detail,
.visual-accent {
  z-index: 3;
}

.visual-bot .visual-main {
  left: 13%;
  top: 9%;
  width: 74%;
  height: 70%;
  border-radius: 28% 28% 36% 36%;
  background:
    radial-gradient(circle at 35% 42%, #6fe9ff 0 8%, transparent 9%),
    radial-gradient(circle at 65% 42%, #6fe9ff 0 8%, transparent 9%),
    linear-gradient(145deg, #eff7ff, #9db3d6 42%, #384766);
  border: 3px solid #20283d;
}

.visual-bot .visual-detail {
  left: 27%;
  top: 33%;
  width: 46%;
  height: 33%;
  border-radius: 999px;
  background: #101827;
}

.visual-bot .visual-detail::before,
.visual-bot .visual-detail::after {
  content: "";
  position: absolute;
  top: 31%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #65dcff;
  box-shadow: inset 0 0 0 2px #b9f5ff;
}

.visual-bot .visual-detail::before { left: 18%; }
.visual-bot .visual-detail::after { right: 18%; }

.visual-bot .visual-accent {
  left: 50%;
  top: 6%;
  width: 44%;
  height: 22%;
  transform: translateX(-50%);
}

.visual-bot .visual-accent::before,
.visual-bot .visual-accent::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 18px;
  height: 18px;
  border-radius: 4px 12px 4px 4px;
  background: #ff8fd2;
  border: 2px solid #20283d;
}

.visual-bot .visual-accent::before {
  left: -8px;
  transform: rotate(-28deg);
}

.visual-bot .visual-accent::after {
  right: -8px;
  transform: rotate(28deg) scaleX(-1);
}

.visual-crown .visual-main {
  left: 8%;
  top: 17%;
  width: 84%;
  height: 58%;
  clip-path: polygon(0 42%, 19% 42%, 25% 0, 44% 38%, 50% 6%, 62% 38%, 78% 0, 84% 42%, 100% 42%, 91% 100%, 9% 100%);
  background: linear-gradient(180deg, #fff37d, #ffb834);
  border: 3px solid #5f3d0b;
}

.visual-crown .visual-detail {
  left: 20%;
  bottom: 17%;
  width: 60%;
  height: 11px;
  border-radius: 999px;
  background: #ff6e78;
}

.visual-crown .visual-accent {
  left: 45%;
  top: 26%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #36cfff;
  box-shadow: -18px 7px 0 #e650ff, 20px 7px 0 #49dd8d;
}

.visual-trophy .visual-main {
  left: 25%;
  top: 9%;
  width: 50%;
  height: 52%;
  border-radius: 10px 10px 24px 24px;
  background: linear-gradient(180deg, #fff08b, #ff9f2c);
  border: 3px solid #66420c;
}

.visual-trophy .visual-main::before,
.visual-trophy .visual-main::after {
  content: "";
  position: absolute;
  top: 12%;
  width: 20px;
  height: 22px;
  border: 4px solid #ffbc37;
  border-radius: 50%;
}

.visual-trophy .visual-main::before { right: 85%; }
.visual-trophy .visual-main::after { left: 85%; }

.visual-trophy .visual-detail {
  left: 43%;
  bottom: 19%;
  width: 14%;
  height: 24%;
  background: #dd7d20;
}

.visual-trophy .visual-accent {
  left: 27%;
  bottom: 8%;
  width: 46%;
  height: 12px;
  border-radius: 6px 6px 3px 3px;
  background: #65421a;
}

.visual-rocket .visual-main,
.visual-rocket-alt .visual-main {
  left: 19%;
  top: 12%;
  width: 62%;
  height: 64%;
  border-radius: 50% 50% 42% 42%;
  background:
    radial-gradient(circle at 50% 28%, #65dfff 0 13%, #1f5478 14% 24%, transparent 25%),
    linear-gradient(180deg, #f7fbff, #ff8f42 64%, #c4472a);
  border: 3px solid #263149;
  transform: rotate(28deg);
}

.visual-rocket .visual-detail,
.visual-rocket-alt .visual-detail {
  left: 17%;
  top: 56%;
  width: 18px;
  height: 18px;
  border-radius: 4px 4px 12px 4px;
  background: #3e6ad6;
  transform: rotate(28deg);
}

.visual-rocket .visual-accent,
.visual-rocket-alt .visual-accent {
  right: 5%;
  bottom: 1%;
  width: 18px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff67a 0 24%, #ff832e 25% 62%, transparent 63%);
  transform: rotate(28deg);
}

.visual-rocket.is-alt .visual-main,
.visual-rocket-alt .visual-main {
  background:
    radial-gradient(circle at 50% 28%, #ffed83 0 13%, #7b5622 14% 24%, transparent 25%),
    linear-gradient(180deg, #f7fbff, #8ed1ff 64%, #3c78d8);
}

.visual-planet .visual-main,
.visual-planet-alt .visual-main {
  left: 17%;
  top: 17%;
  width: 66%;
  height: 66%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255,255,255,.9), transparent 16%),
    linear-gradient(145deg, #73efff, #3466df 56%, #8858df);
  border: 3px solid #243150;
}

.visual-planet .visual-detail,
.visual-planet-alt .visual-detail {
  left: 1%;
  top: 38%;
  width: 98%;
  height: 18px;
  border-radius: 50%;
  border: 5px solid rgba(255, 228, 101, .92);
  transform: rotate(-18deg);
}

.visual-planet.is-alt .visual-main,
.visual-planet-alt .visual-main {
  background: linear-gradient(145deg, #99f0a8, #40a56c 56%, #20785b);
}

.visual-camera .visual-main {
  left: 10%;
  top: 26%;
  width: 80%;
  height: 54%;
  border-radius: 12px;
  background: linear-gradient(180deg, #354260, #151c30);
  border: 3px solid #eef5ff;
}

.visual-camera .visual-main::before {
  content: "";
  position: absolute;
  left: 8%;
  top: -13px;
  width: 30%;
  height: 13px;
  border-radius: 8px 8px 2px 2px;
  background: #eef5ff;
}

.visual-camera .visual-detail {
  left: 35%;
  top: 37%;
  width: 30%;
  height: 30%;
  border-radius: 50%;
  background: radial-gradient(circle, #9ff5ff 0 26%, #285981 27% 50%, #111827 51%);
  border: 3px solid #dff7ff;
}

.visual-camera .visual-accent {
  right: 17%;
  top: 32%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f7b;
}

.visual-keycard .visual-main,
.visual-keycard-alt .visual-main {
  left: 9%;
  top: 18%;
  width: 82%;
  height: 62%;
  border-radius: 10px;
  background: linear-gradient(145deg, #fff, #c8e7ff);
  border: 3px solid #25405f;
}

.visual-keycard .visual-detail,
.visual-keycard-alt .visual-detail {
  left: 17%;
  top: 35%;
  width: 22%;
  height: 25%;
  border-radius: 50%;
  background: #55d7ff;
  box-shadow: 24px -4px 0 -2px #ff6a94, 25px 9px 0 -2px #ffd85c;
}

.visual-keycard .visual-accent,
.visual-keycard-alt .visual-accent {
  left: 17%;
  bottom: 16%;
  width: 66%;
  height: 8px;
  border-radius: 999px;
  background: #5666d8;
}

.visual-keycard.is-alt .visual-main,
.visual-keycard-alt .visual-main {
  background: linear-gradient(145deg, #fff, #ffd6e6);
}

.visual-flower .visual-main,
.visual-flower-alt .visual-main {
  left: 14%;
  top: 12%;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #ffdf55 0 12%, transparent 13%),
    radial-gradient(circle at 50% 16%, #ff79bd 0 18%, transparent 19%),
    radial-gradient(circle at 84% 50%, #ff79bd 0 18%, transparent 19%),
    radial-gradient(circle at 50% 84%, #ff79bd 0 18%, transparent 19%),
    radial-gradient(circle at 16% 50%, #ff79bd 0 18%, transparent 19%);
  border: 3px dotted rgba(255, 255, 255, .85);
}

.visual-flower.is-alt .visual-main,
.visual-flower-alt .visual-main {
  background:
    radial-gradient(circle at 50% 50%, #7cf4ff 0 12%, transparent 13%),
    radial-gradient(circle at 50% 16%, #8d72ff 0 18%, transparent 19%),
    radial-gradient(circle at 84% 50%, #8d72ff 0 18%, transparent 19%),
    radial-gradient(circle at 50% 84%, #8d72ff 0 18%, transparent 19%),
    radial-gradient(circle at 16% 50%, #8d72ff 0 18%, transparent 19%);
}

.visual-picture .visual-main,
.visual-picture-alt .visual-main {
  left: 8%;
  top: 14%;
  width: 84%;
  height: 68%;
  border-radius: 8px;
  background:
    radial-gradient(circle at 75% 26%, #ffe46d 0 8%, transparent 9%),
    linear-gradient(135deg, transparent 0 49%, #4abd79 50% 66%, transparent 67%),
    linear-gradient(35deg, transparent 0 39%, #8ee0ff 40% 59%, transparent 60%),
    linear-gradient(180deg, #9fe5ff 0 54%, #dbf4ff 55%);
  border: 5px solid #fff;
  box-shadow: 0 0 0 3px #314263;
}

.visual-picture.is-alt .visual-main,
.visual-picture-alt .visual-main {
  filter: hue-rotate(75deg);
}

.visual-drone .visual-main {
  left: 28%;
  top: 31%;
  width: 44%;
  height: 28%;
  border-radius: 16px;
  background: linear-gradient(180deg, #f5fbff, #66c8ff);
  border: 3px solid #1f2b42;
}

.visual-drone .visual-main::before,
.visual-drone .visual-main::after {
  content: "";
  position: absolute;
  top: 3px;
  width: 24px;
  height: 8px;
  border-radius: 999px;
  background: #1f2b42;
}

.visual-drone .visual-main::before { right: 94%; }
.visual-drone .visual-main::after { left: 94%; }

.visual-drone .visual-detail {
  left: 3%;
  top: 24%;
  width: 22px;
  height: 22px;
  border: 4px solid #e7f8ff;
  border-radius: 50%;
  box-shadow: 37px 0 0 -4px #1f2b42, 37px 0 0 0 #e7f8ff;
}

.visual-satellite .visual-main {
  left: 40%;
  top: 22%;
  width: 20%;
  height: 56%;
  border-radius: 8px;
  background: linear-gradient(180deg, #f6fbff, #67d7ff);
  border: 3px solid #263149;
  transform: rotate(-26deg);
}

.visual-satellite .visual-detail {
  left: 10%;
  top: 32%;
  width: 28%;
  height: 32%;
  background: #3e66d6;
  border: 3px solid #e7f8ff;
  transform: rotate(-26deg);
  box-shadow: 34px 17px 0 -3px #3e66d6, 34px 17px 0 0 #e7f8ff;
}

.visual-signal .visual-main {
  left: 44%;
  top: 17%;
  width: 12%;
  height: 68%;
  border-radius: 999px;
  background: #27334f;
}

.visual-signal .visual-detail {
  left: 23%;
  top: 14%;
  width: 54%;
  height: 26%;
  border-radius: 11px;
  background: linear-gradient(90deg, #ff485d 0 33%, #ffd84a 34% 66%, #39d58a 67%);
  border: 3px solid #20283d;
}

.visual-sign .visual-main {
  left: 12%;
  top: 19%;
  width: 76%;
  height: 46%;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff7d5, #ffb75a);
  border: 3px solid #20283d;
}

.visual-sign .visual-detail {
  left: 33%;
  top: 30%;
  width: 34%;
  height: 16%;
  border-radius: 999px;
  background: #20283d;
  box-shadow: 0 12px 0 #20283d;
}

.visual-console .visual-main {
  left: 10%;
  top: 23%;
  width: 80%;
  height: 56%;
  border-radius: 10px;
  background: linear-gradient(180deg, #303d5c, #111827);
  border: 3px solid #8de9ff;
}

.visual-console .visual-detail {
  left: 20%;
  top: 36%;
  width: 60%;
  height: 12%;
  border-radius: 999px;
  background: #5bf1ff;
  box-shadow: 0 13px 0 #ff6f9f;
}

.visual-plant .visual-main {
  left: 14%;
  top: 12%;
  width: 72%;
  height: 72%;
  clip-path: polygon(50% 0, 62% 33%, 96% 26%, 71% 52%, 87% 88%, 50% 68%, 13% 88%, 29% 52%, 4% 26%, 38% 33%);
  background: linear-gradient(145deg, #b6fff0, #49db9b 42%, #7e56ff);
  border: 3px solid #263149;
}

.visual-lens .visual-main {
  left: 16%;
  top: 16%;
  width: 68%;
  height: 68%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 48% 48%, #08101f 0 20%, #50e5ff 21% 36%, #21395a 37% 56%, #f0fbff 57%);
  border: 3px solid #20283d;
}

.image-scene-grid {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(8, 12, 22, .24)),
    url("./assets/image/optimized/scene-grid.webp") center / cover no-repeat;
}

.image-grid {
  width: min(100%, 650px);
  gap: 3px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 18px 30px rgba(0, 0, 0, .24);
}

.image-grid-cell {
  border: 0;
  border-radius: 3px;
  background: transparent;
  box-shadow: none;
}

.image-grid-cell:hover {
  transform: none;
  filter: brightness(1.08);
}

.cell-photo {
  inset: 0;
  border-radius: 3px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .1)),
    url("./assets/image/optimized/scene-grid.webp") var(--cell-bg-x) var(--cell-bg-y) / calc(var(--grid-size) * 100%) calc(var(--grid-size) * 100%) no-repeat;
  border: 0;
}

.cell-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 50%, rgba(0, 0, 0, .16));
  pointer-events: none;
}

.cell-object {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 62%;
  max-width: 78px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .35));
}

.cell-object .visual-object {
  width: 100%;
  height: 100%;
}

.image-grid-cell:not(.is-target) .cell-object {
  opacity: .74;
  transform: translate(-50%, -50%) scale(.82);
  filter: saturate(.8) drop-shadow(0 5px 6px rgba(0, 0, 0, .24));
}

.image-grid-cell.is-target .cell-object {
  opacity: 1;
}

.image-grid-cell.edge-top .cell-object { top: 4%; transform: translate(-50%, -86%) scale(.96); }
.image-grid-cell.edge-right .cell-object { left: 96%; transform: translate(-14%, -50%) scale(.96); }
.image-grid-cell.edge-bottom .cell-object { top: 96%; transform: translate(-50%, -14%) scale(.96); }
.image-grid-cell.edge-left .cell-object { left: 4%; transform: translate(-86%, -50%) scale(.96); }

.image-grid-cell.is-selected .cell-photo {
  opacity: .32;
  filter: grayscale(.25);
}

.image-grid-cell.is-selected::after {
  content: "";
  position: absolute;
  inset: 12%;
  z-index: 5;
  border-radius: 50%;
  border: 5px solid rgba(88, 243, 167, .92);
  box-shadow: 0 0 0 5px rgba(10, 18, 28, .16);
}

.image-scene-waldo {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(0, 0, 0, .1)),
    url("./assets/image/optimized/scene-waldo.webp") center / cover no-repeat;
}

.waldo-window {
  padding: 8px;
}

.waldo-scene {
  width: min(100%, 760px);
  min-height: 300px;
  border: 2px solid rgba(255, 255, 255, .5);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(0, 0, 0, .08)),
    url("./assets/image/optimized/scene-waldo.webp") center / cover no-repeat;
  box-shadow: inset 0 0 0 2px rgba(18, 25, 38, .18), 0 18px 32px rgba(0, 0, 0, .22);
}

.waldo-scene::before {
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(255, 255, 255, .13) 12.1% 12.5%, transparent 12.7% 100%),
    linear-gradient(90deg, transparent 0 36%, rgba(255, 216, 93, .18) 36.1% 36.5%, transparent 36.7% 100%),
    linear-gradient(90deg, transparent 0 70%, rgba(22, 215, 240, .16) 70.1% 70.5%, transparent 70.7% 100%);
}

.waldo-scene::after {
  background:
    radial-gradient(circle at 24% 70%, rgba(255, 94, 126, .16), transparent 9%),
    radial-gradient(circle at 72% 26%, rgba(88, 243, 167, .12), transparent 8%);
}

.waldo-prop {
  position: absolute;
  z-index: 2;
  width: 42px;
  height: 28px;
  transform: translate(-50%, -50%) scale(var(--prop-scale));
  filter: hue-rotate(var(--prop-hue)) drop-shadow(0 4px 4px rgba(0, 0, 0, .22));
  opacity: .88;
  pointer-events: none;
}

.waldo-prop span,
.waldo-prop::before,
.waldo-prop::after {
  content: "";
  position: absolute;
  display: block;
}

.prop-rocket span {
  left: 6px;
  top: 7px;
  width: 28px;
  height: 14px;
  border-radius: 50% 8px 8px 50%;
  background: linear-gradient(90deg, #fff, #67cfff 58%, #ff7a3d);
  border: 2px solid #27334f;
}

.prop-rocket::after {
  right: 2px;
  top: 10px;
  width: 12px;
  height: 8px;
  border-radius: 50%;
  background: #ffe75d;
}

.prop-cart span {
  left: 5px;
  top: 8px;
  width: 32px;
  height: 15px;
  border-radius: 4px;
  background: #ff5d75;
  border: 2px solid #27334f;
}

.prop-cart::before,
.prop-cart::after {
  bottom: 1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #27334f;
}

.prop-cart::before { left: 10px; }
.prop-cart::after { right: 9px; }

.prop-crate span {
  left: 8px;
  top: 5px;
  width: 26px;
  height: 22px;
  background: #d7a45a;
  border: 2px solid #69441b;
}

.prop-crate::before {
  left: 11px;
  top: 8px;
  width: 20px;
  height: 2px;
  background: #69441b;
  box-shadow: 0 7px 0 #69441b;
}

.prop-flag span {
  left: 19px;
  top: 4px;
  width: 3px;
  height: 24px;
  background: #27334f;
}

.prop-flag::before {
  left: 21px;
  top: 5px;
  width: 20px;
  height: 12px;
  border-radius: 2px;
  background: #52d5ff;
  clip-path: polygon(0 0, 100% 12%, 80% 52%, 100% 92%, 0 100%);
}

.prop-portal span {
  left: 8px;
  top: 1px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 5px solid #b68cff;
  box-shadow: inset 0 0 10px #5df2ff, 0 0 10px rgba(178, 140, 255, .48);
}

.prop-cloud span {
  left: 6px;
  top: 10px;
  width: 30px;
  height: 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .84);
}

.prop-cloud::before {
  left: 13px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
}

.prop-signpost span {
  left: 19px;
  top: 10px;
  width: 4px;
  height: 20px;
  background: #27334f;
}

.prop-signpost::before {
  left: 5px;
  top: 2px;
  width: 32px;
  height: 13px;
  border-radius: 4px;
  background: #ffe46d;
  border: 2px solid #27334f;
}

.waldo-item {
  z-index: 5;
  width: 26px;
  height: 42px;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .24));
}

.waldo-head {
  top: 4px;
  width: 13px;
  height: 13px;
  background: #f5d7b8;
  border: 2px solid #172033;
}

.waldo-body {
  top: 17px;
  width: 18px;
  height: 18px;
  border: 2px solid #172033;
  background:
    linear-gradient(90deg, hsl(var(--entity-hue), 68%, 52%), hsl(calc(var(--entity-hue) + 38deg), 70%, 58%));
}

.waldo-feet {
  top: 36px;
  width: 20px;
  height: 4px;
  background: rgba(23, 32, 51, .78);
}

.waldo-ear {
  display: none;
  top: 0;
  width: 9px;
  height: 10px;
  background: #f5d7b8;
  border: 2px solid #172033;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.has-cat-ears .waldo-ear {
  display: block;
}

.waldo-ear-left {
  left: 4px;
  transform: rotate(-18deg);
}

.waldo-ear-right {
  right: 4px;
  left: auto;
  transform: rotate(18deg);
}

.waldo-badge {
  left: 50%;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #57d7ff;
  transform: translateX(-50%);
  border: 1px solid #fff;
}

.badge-pink .waldo-badge { background: #ff78b7; }
.badge-yellow .waldo-badge { background: #ffe163; }
.badge-blue .waldo-badge { background: #579cff; }
.badge-none .waldo-badge { display: none; }

.waldo-item.is-similar .waldo-body {
  background:
    repeating-linear-gradient(0deg, #fff4eb 0 4px, #d83750 4px 8px);
}

.waldo-target .waldo-body {
  background:
    repeating-linear-gradient(0deg, #f9fff7 0 4px, #de2745 4px 8px);
  outline: 0;
}

.waldo-target .waldo-badge {
  width: 10px;
  height: 8px;
  background:
    radial-gradient(circle at 72% 28%, #ffef72 0 18%, transparent 19%),
    linear-gradient(135deg, #95f4ff 0 54%, #4fb778 55%);
}

.waldo-balloon {
  top: -18px;
  width: 13px;
  height: 17px;
  background: #e9384f;
}

.waldo-decoy.has-balloon .waldo-balloon {
  background: #bd8d32;
}

.flashlight-canvas {
  mix-blend-mode: normal;
}

@media (min-width: 721px) and (max-width: 1180px) {
  .image-token {
    width: 82px;
    height: 88px;
  }

  .image-token .visual-object {
    width: 54px;
    height: 50px;
  }

  .token-caption {
    font-size: 9px !important;
  }
}

@media (max-width: 720px) {
  [data-game-page="image-captcha"] .image-prompt-strip {
    min-height: 42px;
  }

  .icon-chip {
    min-width: 46px;
    padding: 3px;
  }

  .icon-chip .visual-object {
    width: 28px;
    height: 26px;
  }

  .icon-chip em {
    display: none;
  }

  .image-token {
    width: 58px;
    height: 64px;
    border-radius: 16px;
    border-width: 2px;
  }

  .image-token .visual-object {
    width: 40px;
    height: 37px;
  }

  .token-caption {
    left: 4px;
    right: 4px;
    bottom: 5px;
    font-size: 7px !important;
  }

  .cell-object {
    width: 68%;
  }

  .waldo-item {
    width: 20px;
    height: 32px;
  }

  .waldo-head {
    width: 10px;
    height: 10px;
  }

  .waldo-body {
    top: 14px;
    width: 14px;
    height: 14px;
  }

  .waldo-badge {
    top: 18px;
    width: 6px;
    height: 6px;
  }
}

/* Rotate CAPTCHA direction, target-arrow, and ring-puzzle rework */
[data-game-page="rotate-captcha"] .stage:not(.idle) .problem-board {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  gap: 8px;
  padding: 8px;
}

.rotate-instruction {
  position: relative;
  z-index: 9;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 116px 8px 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  color: rgba(255, 255, 255, .74);
  background:
    linear-gradient(90deg, rgba(22, 215, 240, .14), rgba(255, 216, 93, .08)),
    rgba(8, 12, 22, .92);
  text-align: center;
}

.rotate-instruction strong {
  color: #ffe779;
  font-size: var(--rotate-type-md);
}

.rotate-tolerance {
  position: absolute;
  top: 50%;
  right: 10px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid rgba(88, 243, 167, .3);
  border-radius: 999px;
  color: #9effc9;
  background: rgba(20, 70, 48, .5);
  font-size: var(--rotate-type-xs);
  transform: translateY(-50%);
  white-space: nowrap;
}

.direction-cue-pointer {
  position: relative;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}

.direction-cue-pointer i {
  position: relative;
  width: 4px;
  height: 27px;
  border-radius: 999px;
  background: #ffe779;
  box-shadow: 0 0 12px rgba(255, 216, 93, .38);
  transform: rotate(var(--cue-angle));
}

.direction-cue-pointer i::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 13px;
  height: 13px;
  border-top: 4px solid #ffe779;
  border-left: 4px solid #ffe779;
  transform: translateX(-50%) rotate(45deg);
}

.rotate-captcha-board {
  min-height: 276px;
  background:
    radial-gradient(circle at 50% 48%, rgba(22, 215, 240, .14), transparent 38%),
    linear-gradient(120deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(30deg, rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(145deg, rgba(17, 34, 48, .98), rgba(10, 12, 23, .98));
  background-size: auto, 30px 30px, 30px 30px, auto;
}

.rotate-captcha-board[data-rotate-theme="target"] {
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 216, 93, .13), transparent 39%),
    linear-gradient(90deg, rgba(255, 255, 255, .042) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .042) 1px, transparent 1px),
    linear-gradient(145deg, rgba(49, 29, 32, .98), rgba(12, 15, 24, .98));
  background-size: auto, 26px 26px, 26px 26px, auto;
}

.rotate-captcha-board[data-rotate-theme="puzzle"] {
  background:
    radial-gradient(circle at 50% 48%, rgba(88, 243, 167, .13), transparent 41%),
    repeating-conic-gradient(from 20deg at 50% 50%, rgba(255, 255, 255, .025) 0 7deg, transparent 7deg 20deg),
    linear-gradient(145deg, rgba(15, 43, 39, .98), rgba(13, 12, 27, .98));
}

.rotate-disc,
.puzzle-wheel {
  width: clamp(210px, 38%, 278px);
}

.rotate-disc {
  border-color: rgba(255, 255, 255, .94);
  background: #070a10;
}

.rotate-scene-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.disc-heading-marker {
  position: absolute;
  z-index: 4;
  top: 7%;
  bottom: 50%;
  left: 50%;
  width: 20px;
  transform: translateX(-50%);
  pointer-events: none;
}

.disc-heading-marker::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 15px solid #fff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .72));
  transform: translateX(-50%);
}

.disc-heading-marker::after {
  content: "";
  position: absolute;
  top: 13px;
  bottom: 0;
  left: 50%;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(#fff, rgba(255, 255, 255, .36));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .34);
  transform: translateX(-50%);
}

.disc-heading-marker i {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 15px;
  height: 15px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: rgba(7, 10, 16, .7);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .5);
  transform: translateX(-50%);
}

.dial-target-arrow {
  position: absolute;
  z-index: 7;
  top: 50%;
  left: 50%;
  width: clamp(252px, 47%, 322px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(var(--target-angle));
  pointer-events: none;
}

.dial-target-arrow span {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 34px;
  height: 28px;
  background: #ffe779;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .44));
  transform: translateX(-50%);
}

.rotate-degree-scale {
  width: clamp(244px, 45%, 312px);
  opacity: .34;
}

.puzzle-wheel {
  position: relative;
  z-index: 3;
  aspect-ratio: 1;
  border: 7px solid rgba(255, 255, 255, .94);
  border-radius: 50%;
  background: #070a10;
  box-shadow:
    0 0 0 4px rgba(88, 243, 167, .26),
    0 22px 46px rgba(0, 0, 0, .42);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.puzzle-wheel:active {
  cursor: grabbing;
}

.puzzle-outer-ring,
.puzzle-inner-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-image: var(--puzzle-image);
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}

.puzzle-outer-ring {
  z-index: 1;
  background-size: 100% 100%;
  -webkit-mask: radial-gradient(circle, transparent 0 55%, #000 55.5% 100%);
  mask: radial-gradient(circle, transparent 0 55%, #000 55.5% 100%);
}

.puzzle-inner-ring {
  z-index: 2;
  top: 21%;
  left: 21%;
  width: 58%;
  height: 58%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background-color: transparent;
  background-size: 172.414% 172.414%;
  cursor: grab;
  touch-action: none;
}

.puzzle-ring-seam {
  position: absolute;
  z-index: 5;
  top: 21%;
  left: 21%;
  width: 58%;
  height: 58%;
  border: 2px solid rgba(255, 255, 255, .94);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .38), 0 0 14px rgba(255, 255, 255, .14);
  pointer-events: none;
}

.rotate-captcha-board[data-active-ring="inner"] .puzzle-inner-ring,
.rotate-captcha-board.is-seam-near .puzzle-inner-ring {
  box-shadow: 0 0 0 4px rgba(22, 215, 240, .45);
}

.rotate-captcha-board[data-active-ring="outer"] .puzzle-wheel {
  box-shadow: 0 0 0 5px rgba(255, 216, 93, .42), 0 22px 46px rgba(0, 0, 0, .42);
}

.rotate-captcha-board.is-near .rotate-disc,
.rotate-captcha-board.is-near .puzzle-wheel {
  box-shadow: 0 0 0 5px rgba(255, 216, 93, .52), 0 22px 46px rgba(0, 0, 0, .42);
}

.rotate-captcha-board.is-aligned .rotate-disc,
.rotate-captcha-board.is-aligned .puzzle-wheel {
  box-shadow: 0 0 0 6px rgba(88, 243, 167, .76), 0 0 38px rgba(88, 243, 167, .42);
}

.rotate-control {
  width: min(100%, 760px);
  min-height: 86px;
  gap: 10px;
  padding: 8px 10px;
}

.rotate-range-control {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(126px, 156px);
}

.rotate-range-control.has-ring-selector {
  grid-template-columns: auto minmax(150px, 1fr) auto minmax(112px, 140px);
}

.rotate-brake-control {
  display: grid;
  grid-template-columns: auto minmax(126px, 166px);
}

.ring-selector {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(62px, 1fr));
  align-items: center;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
}

.ring-selector button {
  min-height: 42px;
  padding: 6px 10px;
  border-radius: 6px;
  color: rgba(255, 255, 255, .68);
  background: transparent;
}

.ring-selector button.active {
  color: #161108;
  background: linear-gradient(180deg, #ffe779, #ffc83d);
}

.rotate-submit-button {
  min-width: 148px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  color: #17130a;
  background: linear-gradient(180deg, #ffe779, #ffad43);
  box-shadow: 0 12px 26px rgba(255, 174, 67, .22), inset 0 1px 0 rgba(255, 255, 255, .62);
}

.rotate-submit-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rotate-submit-button.is-locked {
  color: #fff;
  background: linear-gradient(180deg, #ff5e7e, #b62452);
}

.rotate-readout {
  min-width: 0;
  border-radius: 8px;
  overflow-wrap: anywhere;
}

.rotate-readout strong {
  font-size: var(--rotate-type-sm) !important;
  line-height: 1.2;
}

@media (max-width: 1180px) {
  .rotate-instruction {
    min-height: 58px;
  }

  .rotate-captcha-board {
    min-height: 252px;
  }

  .rotate-disc,
  .puzzle-wheel {
    width: clamp(188px, 43%, 230px);
  }

  .dial-target-arrow {
    width: clamp(226px, 49%, 272px);
  }

  .rotate-degree-scale {
    width: clamp(216px, 47%, 258px);
  }

  .rotate-range-control.has-ring-selector {
    grid-template-columns: auto minmax(120px, 1fr) auto;
  }

  .rotate-range-control.has-ring-selector .rotate-readout {
    display: none;
  }
}

@media (max-width: 720px) {
  .rotate-instruction {
    min-height: 66px;
    padding: 8px 84px 8px 9px;
    gap: 7px;
  }

  .rotate-tolerance {
    right: 6px;
    max-width: 76px;
    white-space: normal;
    text-align: center;
  }

  [data-game-page="rotate-captcha"] .stage:not(.idle) .problem-wrap {
    min-height: 350px;
  }

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

  .rotate-captcha-board {
    min-height: 258px;
  }

  .rotate-disc,
  .puzzle-wheel {
    width: clamp(180px, 56vw, 214px);
  }

  .dial-target-arrow {
    width: clamp(216px, 66vw, 252px);
  }

  .rotate-degree-scale {
    width: clamp(208px, 63vw, 238px);
  }

  .rotate-control,
  .rotate-range-control,
  .rotate-range-control.has-ring-selector,
  .rotate-brake-control {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 100px;
  }

  .ring-selector {
    grid-column: 1 / -1;
    width: 100%;
  }

  .rotate-range-control.has-ring-selector .rotate-readout,
  .rotate-range-control .rotate-readout {
    display: none;
  }

  .rotate-submit-button {
    min-width: 126px;
    min-height: 52px;
    padding: 8px 11px;
  }

  .rotate-brake-control .rotate-submit-button {
    min-width: 172px;
  }
}

@media (max-height: 520px) and (max-width: 920px) {
  body.rotate-page.is-rotate-fullscreen [data-game-page="rotate-captcha"] .stage:not(.idle) .problem-wrap {
    height: calc(100vh - 174px);
  }

  body.rotate-page.is-rotate-fullscreen .rotate-instruction {
    min-height: 38px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  body.rotate-page.is-rotate-fullscreen .rotate-captcha-board {
    min-height: 0;
  }

  body.rotate-page.is-rotate-fullscreen .rotate-disc,
  body.rotate-page.is-rotate-fullscreen .puzzle-wheel {
    width: clamp(132px, 31vh, 176px);
  }

  body.rotate-page.is-rotate-fullscreen .dial-target-arrow {
    width: clamp(158px, 37vh, 206px);
  }

  body.rotate-page.is-rotate-fullscreen .rotate-degree-scale {
    width: clamp(150px, 35vh, 196px);
  }
}

/* Rotate CAPTCHA final click-lock overrides */
[data-game-page="rotate-captcha"] .answer-area:empty {
  display: none;
  min-height: 0;
  padding: 0;
}

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

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

.rotate-instruction {
  min-height: 52px;
  padding: 7px 14px;
  gap: 8px;
}

.rotate-instruction strong {
  font-size: var(--rotate-type-sm) !important;
}

.rotate-captcha-board {
  min-height: 386px;
}

.rotate-disc,
.puzzle-wheel {
  width: clamp(286px, 54%, 360px);
}

.rotate-degree-scale {
  width: clamp(318px, 60%, 394px);
  opacity: .25;
}

.rotate-captcha-board[data-rotate-theme="puzzle"] .rotate-degree-scale,
.rotate-tolerance,
.rotate-control,
.rotate-range,
.rotate-readout,
.rotate-submit-button,
.ring-selector,
.disc-heading-marker {
  display: none !important;
}

.disc-heading-tick {
  position: absolute;
  z-index: 8;
  top: 3px;
  left: 50%;
  width: 8px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 2px 2px 5px 5px;
  background: linear-gradient(90deg, rgba(255,255,255,.45), #fff 42% 62%, rgba(183,224,235,.72));
  box-shadow: 0 2px 0 rgba(0, 0, 0, .5), 0 0 12px rgba(255, 255, 255, .5);
  transform: translateX(-50%);
  pointer-events: none;
}

.dial-target-arrow {
  width: clamp(350px, 64%, 424px);
}

.dial-target-arrow span {
  top: -10px;
  width: 24px;
  height: 29px;
  overflow: visible;
  border: 1px solid rgba(255, 246, 174, .92);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(90deg, rgba(129, 78, 14, .92), #ffe779 35% 65%, rgba(174, 104, 15, .94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72), inset 0 -3px 5px rgba(100, 54, 7, .35), 0 5px 12px rgba(0, 0, 0, .5), 0 0 14px rgba(255, 216, 93, .32);
  clip-path: none;
  transform: translateX(-50%);
}

.dial-target-arrow span::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 5px;
  width: 4px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .56);
}

.dial-target-arrow span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -15px;
  width: 31px;
  height: 18px;
  background: linear-gradient(135deg, #fff0a1 0 34%, #ffc83d 35% 66%, #9d5e0d 67% 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .42));
  transform: translateX(-50%);
}

.puzzle-outer-ring {
  background-size: 100% 100%;
  -webkit-mask: none;
  mask: none;
}

.puzzle-inner-ring {
  top: 19%;
  left: 19%;
  width: 62%;
  height: 62%;
  background-size: 161.291% 161.291%;
  border: 0;
}

.puzzle-ring-seam {
  top: 19%;
  left: 19%;
  width: 62%;
  height: 62%;
  border-width: 3px;
}

.rotate-captcha-board[data-active-ring="inner"] .puzzle-inner-ring {
  box-shadow: inset 0 0 0 2px rgba(22, 215, 240, .54), 0 0 0 2px rgba(22, 215, 240, .34);
}

.rotate-captcha-board.is-locked .rotate-disc,
.rotate-captcha-board.is-locked .puzzle-wheel {
  box-shadow: 0 0 0 6px rgba(255, 216, 93, .56), 0 20px 44px rgba(0, 0, 0, .4);
}

[data-rotate-control="auto"] .rotate-disc {
  cursor: pointer;
}

@media (max-width: 1180px) {
  [data-game-page="rotate-captcha"] .stage:not(.idle) .problem-wrap { min-height: 430px; }
  [data-game-page="rotate-captcha"] .stage:not(.idle) .problem-board { min-height: 408px; }
  .rotate-captcha-board { min-height: 340px; }
  .rotate-disc, .puzzle-wheel { width: clamp(252px, 54%, 318px); }
  .dial-target-arrow { width: clamp(306px, 65%, 376px); }
  .rotate-degree-scale { width: clamp(282px, 60%, 350px); }
}

@media (max-width: 720px) {
  [data-game-page="rotate-captcha"] .stage:not(.idle) .problem-wrap { min-height: 422px; padding: 7px 3px; }
  [data-game-page="rotate-captcha"] .stage:not(.idle) .problem-board { min-height: 408px; }
  .rotate-instruction { min-height: 46px; padding: 6px 8px; }
  .rotate-captcha-board { min-height: 344px; }
  .rotate-disc, .puzzle-wheel { width: clamp(244px, 76vw, 304px); }
  .dial-target-arrow { width: clamp(294px, 90vw, 354px); }
  .rotate-degree-scale { width: clamp(270px, 84vw, 332px); }
  .disc-heading-tick { height: 29px; }
}

@media (max-height: 520px) and (max-width: 920px) {
  body.rotate-page.is-rotate-fullscreen [data-game-page="rotate-captcha"] .stage:not(.idle) .problem-wrap { height: calc(100vh - 126px); min-height: 0; }
  body.rotate-page.is-rotate-fullscreen [data-game-page="rotate-captcha"] .stage:not(.idle) .problem-board,
  body.rotate-page.is-rotate-fullscreen .rotate-captcha-board { min-height: 0; }
  body.rotate-page.is-rotate-fullscreen .rotate-disc,
  body.rotate-page.is-rotate-fullscreen .puzzle-wheel { width: clamp(176px, 50vh, 246px); }
  body.rotate-page.is-rotate-fullscreen .dial-target-arrow { width: clamp(214px, 59vh, 286px); }
  body.rotate-page.is-rotate-fullscreen .rotate-degree-scale { width: clamp(198px, 55vh, 268px); }
}

/* Rotate CAPTCHA compass, shared arrow, moving-target, and linked-ring update */
[data-game-page="rotate-captcha"] .rotate-idle-copy {
  gap: 7px;
}

[data-game-page="rotate-captcha"] .rotate-idle-copy picture {
  width: min(72%, 330px);
  display: grid;
  place-items: center;
}

.rotate-idle-art {
  width: 100%;
  max-height: 190px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .3));
}

.rotate-disc,
.puzzle-wheel {
  border: 0;
  box-shadow:
    0 0 0 2px rgba(255, 169, 72, .24),
    0 20px 44px rgba(0, 0, 0, .42);
}

.disc-heading-tick,
.rotate-degree-scale {
  display: none !important;
}

.compass-rim {
  position: absolute;
  z-index: 8;
  inset: 0;
  border-radius: 50%;
  color: rgba(255, 242, 210, .92);
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .8));
}

.compass-rim::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-conic-gradient(
    from -1deg,
    rgba(255, 239, 204, .78) 0 1deg,
    transparent 1deg 10deg
  );
  -webkit-mask: radial-gradient(circle, transparent 0 84%, #000 84.5% 91%, transparent 91.5%);
  mask: radial-gradient(circle, transparent 0 84%, #000 84.5% 91%, transparent 91.5%);
  opacity: .7;
}

.compass-rim::after {
  content: "";
  position: absolute;
  inset: 1.5%;
  border: 1px solid rgba(255, 217, 155, .42);
  border-radius: inherit;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .22);
}

.compass-rim b {
  position: absolute;
  z-index: 2;
  min-width: 22px;
  min-height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 184, 88, .52);
  border-radius: 50%;
  color: #fff4d5;
  background: rgba(65, 28, 11, .52);
  box-shadow: 0 2px 7px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .18);
  font-size: 11px !important;
  line-height: 1;
}

body.rotate-page .cartoon-direction-arrow {
  --arrow-angle: 90deg;
  position: relative;
  width: 56px;
  height: 38px;
  display: block;
  background: #ed741d;
  clip-path: polygon(0 20%, 55% 20%, 55% 0, 100% 50%, 55% 100%, 55% 80%, 0 80%, 8% 50%);
  filter: drop-shadow(0 3px 0 rgba(116, 47, 7, .58)) drop-shadow(0 6px 8px rgba(0, 0, 0, .3));
  transform: rotate(calc(var(--arrow-angle) - 90deg));
  transform-origin: center;
}

body.rotate-page .cartoon-direction-arrow::before {
  content: "";
  position: absolute;
  inset: 4px 5px;
  width: auto;
  height: auto;
  border-radius: 0;
  background: linear-gradient(180deg, #ffd49d, #f5b66d);
  clip-path: polygon(0 20%, 54% 20%, 54% 0, 100% 50%, 54% 100%, 54% 80%, 0 80%, 8% 50%);
  filter: none;
  transform: none;
}

body.rotate-page .cartoon-direction-arrow::after {
  content: "";
  position: absolute;
  top: 10px;
  right: auto;
  bottom: auto;
  left: 11px;
  width: 27px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 245, 220, .58);
  clip-path: none;
  filter: none;
  transform: rotate(7deg);
}

.direction-cue-pointer {
  width: 64px;
  height: 52px;
  flex: 0 0 64px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.rotate-page .direction-cue-pointer .cartoon-direction-arrow {
  width: 58px;
  height: 40px;
  border-radius: 0;
  background: #ed741d;
  box-shadow: none;
  clip-path: polygon(0 20%, 55% 20%, 55% 0, 100% 50%, 55% 100%, 55% 80%, 0 80%, 8% 50%);
  filter: drop-shadow(0 3px 0 rgba(116, 47, 7, .58)) drop-shadow(0 6px 8px rgba(0, 0, 0, .3));
  transform: rotate(calc(var(--arrow-angle) - 90deg));
}

.dial-target-arrow {
  width: clamp(350px, 64%, 424px);
}

body.rotate-page .dial-target-arrow .cartoon-direction-arrow {
  position: absolute;
  top: 0;
  left: 50%;
  width: 58px;
  height: 40px;
  border: 0;
  border-radius: 0;
  background: #ed741d;
  box-shadow: none;
  clip-path: polygon(0 20%, 55% 20%, 55% 0, 100% 50%, 55% 100%, 55% 80%, 0 80%, 8% 50%);
  transform: translate(-50%, -12%) rotate(90deg);
}

.dial-target-arrow .cartoon-direction-arrow::before,
.dial-target-arrow .cartoon-direction-arrow::after {
  display: block;
}

.puzzle-ring-seam {
  border-color: rgba(255, 190, 103, .48);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .32), 0 0 12px rgba(255, 152, 58, .13);
}

.rotate-captcha-board[data-active-ring="outer"] .puzzle-wheel {
  box-shadow: 0 0 0 4px rgba(255, 171, 68, .4), 0 20px 44px rgba(0, 0, 0, .42);
}

.rotate-captcha-board[data-rotate-theme="target"]::before {
  content: "MOVING TARGET";
  position: absolute;
  z-index: 0;
  right: 12px;
  bottom: 10px;
  color: rgba(255, 186, 98, .16);
  font-size: 26px !important;
}

.rotate-mode-intro {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(4, 7, 13, .78);
  backdrop-filter: blur(7px);
}

.rotate-mode-intro.open {
  display: grid;
}

.rotate-mode-intro-card {
  position: relative;
  width: min(100%, 460px);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 26px 26px 24px;
  border: 1px solid rgba(255, 184, 88, .5);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, rgba(34, 37, 50, .98), rgba(13, 16, 25, .99));
  box-shadow: 0 26px 70px rgba(0, 0, 0, .58), inset 0 1px 0 rgba(255, 255, 255, .1);
  text-align: center;
}

.rotate-mode-intro-card h2 {
  margin: 0;
  color: #ffd099;
  font-size: 22px !important;
}

.rotate-mode-intro-card p {
  max-width: 390px;
  margin: 0;
  color: rgba(255, 255, 255, .76);
  line-height: 1.5;
}

.rotate-mode-intro-kicker {
  color: #ff9b42;
  font-size: 11px !important;
  text-transform: uppercase;
}

.rotate-mode-intro-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  color: rgba(255, 255, 255, .72);
  background: transparent;
  font-size: 26px !important;
  cursor: pointer;
}

.rotate-mode-intro-demo {
  position: relative;
  width: 126px;
  aspect-ratio: 1;
}

.demo-ring {
  position: absolute;
  border: 3px solid rgba(255, 181, 84, .66);
  border-radius: 50%;
}

.demo-ring-outer { inset: 5px; }
.demo-ring-inner { inset: 34px; border-color: rgba(22, 215, 240, .7); }

body.rotate-page .rotate-mode-intro-demo .cartoon-direction-arrow {
  position: absolute;
  right: -8px;
  bottom: 8px;
  width: 50px;
  height: 34px;
  transform: rotate(-38deg);
}

.rotate-mode-intro-continue {
  min-width: 210px;
  min-height: 48px;
  margin-top: 2px;
}

@media (max-width: 720px) {
  [data-game-page="rotate-captcha"] .rotate-idle-copy picture { width: min(68%, 250px); }
  .rotate-idle-art { max-height: 148px; }
  .compass-rim b { min-width: 20px; min-height: 20px; font-size: 9px !important; }
  .dial-target-arrow { width: clamp(294px, 90vw, 354px); }
  .dial-target-arrow .cartoon-direction-arrow { width: 50px; height: 34px; }
  .rotate-mode-intro-card { padding: 24px 18px 20px; }
}

@media (max-height: 520px) and (max-width: 920px) {
  body.rotate-page.is-rotate-fullscreen .dial-target-arrow { width: clamp(214px, 59vh, 286px); }
  body.rotate-page.is-rotate-fullscreen .dial-target-arrow .cartoon-direction-arrow { width: 44px; height: 30px; }
  .rotate-mode-intro-card { grid-template-columns: 110px minmax(0, 1fr); text-align: left; padding: 18px 24px; }
  .rotate-mode-intro-kicker, .rotate-mode-intro-card h2, .rotate-mode-intro-card p, .rotate-mode-intro-continue { grid-column: 2; justify-self: start; }
  .rotate-mode-intro-demo { grid-column: 1; grid-row: 1 / span 4; width: 100px; }
}

/* Rotate CAPTCHA fixed scale, center needle, and continuous-sync refinement */
.compass-rim {
  display: none !important;
}

.fixed-compass-scale {
  position: absolute;
  z-index: 12;
  top: 50%;
  left: 50%;
  width: var(--rotate-wheel-size);
  aspect-ratio: 1;
  border: clamp(16px, 1.5vw, 20px) solid #31556e;
  border-radius: 50%;
  background: transparent;
  box-shadow:
    0 0 0 2px #d4aa63,
    0 8px 18px rgba(0, 0, 0, .3),
    inset 0 0 0 2px rgba(232, 207, 149, .82);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.fixed-compass-scale::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: -14px;
  border: 1px solid rgba(238, 220, 180, .66);
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(27, 52, 70, .74);
}

.compass-ticks,
.compass-tick {
  position: absolute;
  inset: 0;
  display: block;
}

.compass-ticks {
  z-index: 2;
}

.compass-tick {
  transform: rotate(var(--tick-angle));
}

.compass-tick::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 2px;
  height: 10px;
  border-radius: 2px;
  background: rgba(255, 248, 225, .92);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .9);
  transform: translateX(-50%);
}

.compass-tick.major::before {
  top: -15px;
  width: 3px;
  height: 18px;
  background: #ffbd55;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 0 5px rgba(255, 183, 72, .42);
}

.compass-tick.axis::before {
  opacity: 0;
}

.compass-cardinal {
  position: absolute;
  z-index: 4;
  min-width: 16px;
  min-height: 16px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: #fff7dd;
  background: transparent;
  box-shadow: none;
  font-size: 13px !important;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .82);
}

.compass-north {
  top: -16px;
  left: 50%;
  color: #fff4d9;
  color: #ffcf75;
  background: transparent;
  transform: translateX(-50%);
}

.compass-east {
  top: 50%;
  right: -16px;
  transform: translateY(-50%);
}

.compass-south {
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
}

.compass-west {
  top: 50%;
  left: -16px;
  transform: translateY(-50%);
}

.rotate-captcha-board {
  --rotate-wheel-size: clamp(326px, 61%, 400px);
}

.rotate-disc,
.puzzle-wheel {
  width: var(--rotate-wheel-size);
  border: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
}

.image-heading-indicator {
  position: absolute;
  z-index: 14;
  top: 50%;
  left: 50%;
  width: var(--rotate-wheel-size);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  will-change: transform;
}

.image-heading-indicator i {
  position: absolute;
  top: 0;
  left: 50%;
  width: 24px;
  height: 34px;
  background: #f47a2a;
  clip-path: polygon(50% 0, 100% 72%, 62% 62%, 50% 100%, 38% 62%, 0 72%);
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .88)) drop-shadow(0 0 5px rgba(255, 113, 55, .5));
  transform: translate(-50%, -34%);
}

body.rotate-page .cartoon-direction-arrow {
  --arrow-angle: 0deg;
  width: 30px;
  height: 46px;
  border: 0;
  border-radius: 0;
  background: #f47a2a;
  box-shadow: none;
  clip-path: polygon(50% 0, 100% 72%, 62% 62%, 50% 100%, 38% 62%, 0 72%);
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .88)) drop-shadow(0 0 5px rgba(255, 113, 55, .5));
  transform: rotate(var(--arrow-angle));
}

body.rotate-page .cartoon-direction-arrow::before {
  display: none;
}

body.rotate-page .cartoon-direction-arrow::after {
  display: none;
}

.direction-cue-pointer {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
}

.direction-cue-pointer .cartoon-direction-arrow {
  width: 24px;
  height: 34px;
  background: #f47a2a;
  clip-path: polygon(50% 0, 100% 72%, 62% 62%, 50% 100%, 38% 62%, 0 72%);
  transform: rotate(var(--arrow-angle));
}

.dial-target-arrow {
  width: clamp(304px, 57%, 378px);
}

.dial-target-arrow .cartoon-direction-arrow {
  top: 0;
  left: 50%;
  width: 27px;
  height: 42px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: #f47a2a;
  box-shadow: none;
  clip-path: polygon(50% 0, 100% 72%, 62% 62%, 50% 100%, 38% 62%, 0 72%);
  transform: translateX(-50%) rotate(180deg);
}

.aim-needle {
  position: absolute;
  z-index: 9;
  bottom: 50%;
  left: 50%;
  width: 26px;
  height: 43%;
  pointer-events: none;
  transform: translateX(-50%) rotate(0deg);
  transform-origin: 50% 100%;
  will-change: transform;
}

.aim-needle::before {
  content: "";
  position: absolute;
  inset: 0 3px -7px;
  background: linear-gradient(90deg, #a93922, #ff9f4f 46%, #ffe0a0 55%, #d3522a 67%);
  clip-path: polygon(50% 0, 94% 78%, 68% 100%, 32% 100%, 6% 78%);
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .58));
}

.aim-needle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 29px;
  height: 29px;
  border: 4px solid #7b361f;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #ffe0a0 0 16%, #d98642 18% 58%, #67301f 61% 100%);
  box-shadow: 0 3px 7px rgba(0, 0, 0, .52);
  transform: translateX(-50%);
}

.puzzle-track-instruction {
  width: min(100%, 330px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  align-items: center;
  gap: 12px;
}

.puzzle-track-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  text-align: left;
}

.puzzle-track-copy strong,
.puzzle-track-copy small {
  display: block;
  letter-spacing: 0;
  line-height: 1.12;
}

.puzzle-track-copy strong {
  font-size: 10px !important;
}

.puzzle-track-copy small {
  color: rgba(255, 255, 255, .72);
  font-size: 8px !important;
}

.puzzle-sync-meter {
  position: relative;
  height: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 4px;
  background: rgba(0, 0, 0, .32);
}

.puzzle-sync-meter::before {
  content: "";
  position: absolute;
  inset: 2px;
  right: auto;
  width: var(--sync-progress, 0%);
  border-radius: 2px;
  background: linear-gradient(90deg, #16d7f0, #58f3a7);
  box-shadow: 0 0 10px rgba(88, 243, 167, .42);
}

.puzzle-sync-meter span {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 8px !important;
  font-style: normal;
  text-shadow: 0 1px 2px #000;
}

.rotate-captcha-board.is-tracking .puzzle-ring-seam {
  border-color: rgba(88, 243, 167, .9);
  box-shadow: 0 0 0 2px rgba(88, 243, 167, .2), 0 0 18px rgba(88, 243, 167, .38);
}

/* Keep every direction cue visually consistent with the heading marker. */
body.rotate-page .direction-cue-pointer .cartoon-direction-arrow,
body.rotate-page .dial-target-arrow .cartoon-direction-arrow {
  width: 20px;
  height: 30px;
  background: #f47a2a;
  clip-path: polygon(50% 0, 100% 72%, 62% 62%, 50% 100%, 38% 62%, 0 72%);
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .88)) drop-shadow(0 0 5px rgba(255, 113, 55, .5));
}

body.rotate-page .direction-cue-pointer .cartoon-direction-arrow {
  transform: rotate(var(--arrow-angle));
}

body.rotate-page .dial-target-arrow .cartoon-direction-arrow {
  top: 0;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
}

.dial-target-arrow.is-ring-target .dial-target-line {
  position: absolute;
  bottom: 50%;
  left: 50%;
  width: 2px;
  height: 50%;
  border-radius: 999px;
  background: rgba(255, 154, 70, .72);
  box-shadow: 0 0 8px rgba(255, 132, 43, .42);
  transform: translateX(-50%);
}

.dial-target-arrow.is-ring-target .dial-target-center {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid #ffe0a0;
  border-radius: 50%;
  background: #8f3c20;
  box-shadow: 0 0 0 3px rgba(255, 132, 43, .25), 0 0 10px rgba(255, 132, 43, .65);
  transform: translate(-50%, -50%);
}

@media (max-width: 720px) {
  body.rotate-page .direction-cue-pointer .cartoon-direction-arrow,
  body.rotate-page .dial-target-arrow .cartoon-direction-arrow {
    width: 18px;
    height: 27px;
  }
}

@media (max-width: 1180px) {
  .rotate-captcha-board { --rotate-wheel-size: clamp(286px, 62%, 350px); }
  .dial-target-arrow { width: clamp(270px, 59%, 334px); }
}

@media (max-width: 720px) {
  .rotate-captcha-board { --rotate-wheel-size: clamp(268px, 84vw, 330px); }
  .dial-target-arrow { width: clamp(258px, 80vw, 322px); }
  body.rotate-page .dial-target-arrow .cartoon-direction-arrow { width: 24px; height: 37px; }
  .puzzle-track-instruction { grid-template-columns: minmax(0, 1fr) 92px; gap: 8px; }

  .compass-cardinal {
    min-width: 14px;
    min-height: 14px;
    font-size: 10px !important;
  }

  .image-heading-indicator i {
    width: 20px;
    height: 29px;
  }
}

/* Keep embedded non-fullscreen Rotate within the fixed WordPress iframe. */
body.rotate-page:not(.is-rotate-fullscreen) {
  --aligned-footer: 42px;
}

body.rotate-page:not(.is-rotate-fullscreen) .app {
  min-height: 0;
  grid-template-rows: auto auto;
}

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

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

@media (min-width: 1181px) {
  body.rotate-page:not(.is-rotate-fullscreen) .app {
    gap: 18px;
    padding-bottom: 18px;
  }

  body.rotate-page:not(.is-rotate-fullscreen) .topbar {
    min-height: 54px;
  }
}

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

  body.rotate-page:not(.is-rotate-fullscreen) .feedback {
    margin-top: 8px;
  }
}

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

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

  body.rotate-page:not(.is-rotate-fullscreen) .feedback {
    margin-top: 8px;
  }
}

body.rotate-page:not(.is-rotate-fullscreen) [data-game-page="rotate-captcha"] .stage:not(.idle) .problem-wrap {
  min-height: 552px;
}

body.rotate-page:not(.is-rotate-fullscreen) [data-game-page="rotate-captcha"] .stage:not(.idle) .problem-board {
  min-height: 528px;
}

body.rotate-page:not(.is-rotate-fullscreen) .rotate-captcha-board {
  min-height: 460px;
  padding-block: 24px;
}

@media (max-width: 1180px) {
  body.rotate-page:not(.is-rotate-fullscreen) [data-game-page="rotate-captcha"] .stage:not(.idle) .problem-wrap {
    min-height: 496px;
  }

  body.rotate-page:not(.is-rotate-fullscreen) [data-game-page="rotate-captcha"] .stage:not(.idle) .problem-board {
    min-height: 472px;
  }

  body.rotate-page:not(.is-rotate-fullscreen) .rotate-captcha-board {
    min-height: 404px;
    padding-block: 20px;
  }
}

@media (max-width: 720px) {
  body.rotate-page:not(.is-rotate-fullscreen) [data-game-page="rotate-captcha"] .stage:not(.idle) .problem-wrap {
    min-height: 466px;
  }

  body.rotate-page:not(.is-rotate-fullscreen) [data-game-page="rotate-captcha"] .stage:not(.idle) .problem-board {
    min-height: 448px;
  }

  body.rotate-page:not(.is-rotate-fullscreen) .rotate-captcha-board {
    min-height: 388px;
    padding-block: 18px;
  }
}

body.rotate-page.is-rotate-fullscreen {
  --rotate-type-xs: 9px;
  --rotate-type-sm: 11px;
  --rotate-type-md: 14px;
  --rotate-type-lg: 28px;
  display: grid;
  place-items: center;
}

body.rotate-page.is-rotate-fullscreen .app {
  height: min(100vh, 900px);
  min-height: 0;
  grid-template-rows: 40px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
}

body.rotate-page.is-rotate-fullscreen .game-shell {
  height: 100%;
  min-height: 0;
  grid-template-columns: minmax(260px, .3fr) minmax(560px, .7fr);
  gap: 8px;
}

body.rotate-page.is-rotate-fullscreen .panel {
  border-color: rgba(255, 255, 255, .14);
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .08);
}

body.rotate-page.is-rotate-fullscreen .panel-head::after {
  display: none;
}

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

body.rotate-page.is-rotate-fullscreen .panel-head {
  min-height: 52px;
  padding: 5px 12px;
}

body.rotate-page.is-rotate-fullscreen .play-panel .panel-head {
  gap: 10px;
}

body.rotate-page.is-rotate-fullscreen .head-actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 8px;
}

body.rotate-page.is-rotate-fullscreen .head-actions .btn,
body.rotate-page.is-rotate-fullscreen .head-actions .help,
body.rotate-page.is-rotate-fullscreen .head-actions .rank-open {
  min-height: 40px;
  max-height: 40px;
}

body.rotate-page.is-rotate-fullscreen .play-panel {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: 52px minmax(0, 1fr);
}

body.rotate-page.is-rotate-fullscreen .map-panel {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: 52px minmax(0, 1fr);
}

body.rotate-page.is-rotate-fullscreen .map-panel .panel-body {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

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

body.rotate-page.is-rotate-fullscreen .play-panel .panel-body {
  height: auto;
  min-height: 0;
  display: grid;
  grid-template-rows: 38px minmax(0, 1fr) 28px;
  gap: 6px;
  padding: 6px;
}

body.rotate-page.is-rotate-fullscreen .score-strip {
  min-height: 0;
  gap: 6px;
  margin: 0;
}

body.rotate-page.is-rotate-fullscreen .score-box {
  min-height: 38px;
  gap: 2px;
  padding: 3px 7px;
  border-radius: 8px;
}

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

body.rotate-page.is-rotate-fullscreen .stage {
  width: 100%;
  height: min(100%, 680px);
  min-height: 0;
  align-self: center;
  display: grid;
  grid-template-rows: 34px minmax(0, 1fr);
  gap: 4px;
  padding: 5px;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 12px 28px rgba(0, 0, 0, .2);
}

body.rotate-page.is-rotate-fullscreen .stage-top {
  min-height: 34px;
  font-size: 12px !important;
}

body.rotate-page.is-rotate-fullscreen .timer {
  min-width: 76px;
  min-height: 32px;
  font-size: 13px !important;
}

body.rotate-page.is-rotate-fullscreen [data-game-page="rotate-captcha"] .stage:not(.idle) .problem-wrap {
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 2px;
}

body.rotate-page.is-rotate-fullscreen [data-game-page="rotate-captcha"] .stage:not(.idle) .problem-board {
  height: 100%;
  min-height: 0;
  grid-template-rows: 42px minmax(0, 1fr);
  gap: 3px;
  padding: 4px;
  overflow: hidden;
  border-color: rgba(255, 255, 255, .13);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

body.rotate-page.is-rotate-fullscreen .rotate-instruction {
  min-height: 42px;
  padding: 4px 10px;
  gap: 6px;
  overflow: hidden;
}

body.rotate-page.is-rotate-fullscreen .rotate-instruction strong,
body.rotate-page.is-rotate-fullscreen .rotate-instruction span {
  font-size: 10px !important;
}

body.rotate-page.is-rotate-fullscreen .rotate-captcha-board {
  width: 100%;
  height: min(100%, 540px);
  min-height: 0;
  align-self: center;
  border-color: rgba(255, 255, 255, .12);
  border-radius: 6px;
}

body.rotate-page.is-rotate-fullscreen .rotate-disc,
body.rotate-page.is-rotate-fullscreen .puzzle-wheel {
  width: var(--rotate-wheel-size);
  box-shadow: 0 0 0 1px rgba(255, 169, 72, .28), 0 12px 28px rgba(0, 0, 0, .34);
}

body.rotate-page.is-rotate-fullscreen .rotate-captcha-board {
  --rotate-wheel-size: clamp(230px, 43%, 330px);
}

body.rotate-page.is-rotate-fullscreen .dial-target-arrow {
  width: clamp(238px, 43%, 338px);
}

body.rotate-page.is-rotate-fullscreen .feedback {
  min-height: 28px;
  margin-top: 0;
  padding: 4px 8px;
  overflow: hidden;
  font-size: 9px !important;
}

@media (max-height: 520px) and (max-width: 920px) {
  body.rotate-page.is-rotate-fullscreen .app {
    grid-template-rows: minmax(0, 1fr);
    padding: 4px;
    gap: 0;
  }

  body.rotate-page.is-rotate-fullscreen .game-shell {
    height: 100%;
    grid-template-columns: minmax(150px, .24fr) minmax(0, .76fr);
  }

  body.rotate-page.is-rotate-fullscreen .play-panel,
  body.rotate-page.is-rotate-fullscreen .map-panel {
    grid-template-rows: 44px minmax(0, 1fr);
  }

  body.rotate-page.is-rotate-fullscreen .panel-head {
    min-height: 44px;
  }

  body.rotate-page.is-rotate-fullscreen .head-actions .btn,
  body.rotate-page.is-rotate-fullscreen .head-actions .help,
  body.rotate-page.is-rotate-fullscreen .head-actions .rank-open {
    min-height: 32px;
    max-height: 32px;
  }

  body.rotate-page.is-rotate-fullscreen .play-panel .panel-body {
    grid-template-rows: 32px minmax(0, 1fr) 24px;
    gap: 3px;
    padding: 3px;
  }

  body.rotate-page.is-rotate-fullscreen .score-box {
    min-height: 32px;
    padding: 2px 5px;
  }

  body.rotate-page.is-rotate-fullscreen .stage {
    grid-template-rows: 28px minmax(0, 1fr);
    padding: 3px;
  }

  body.rotate-page.is-rotate-fullscreen .stage-top,
  body.rotate-page.is-rotate-fullscreen .timer {
    min-height: 28px;
  }

  body.rotate-page.is-rotate-fullscreen [data-game-page="rotate-captcha"] .stage:not(.idle) .problem-board {
    grid-template-rows: 38px minmax(0, 1fr);
  }

  body.rotate-page.is-rotate-fullscreen .rotate-instruction {
    min-height: 38px;
    padding: 2px 6px;
  }

  body.rotate-page.is-rotate-fullscreen .direction-cue-pointer {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  body.rotate-page.is-rotate-fullscreen .direction-cue-pointer .cartoon-direction-arrow {
    width: 20px;
    height: 28px;
  }

  body.rotate-page.is-rotate-fullscreen .rotate-disc,
  body.rotate-page.is-rotate-fullscreen .puzzle-wheel {
    width: var(--rotate-wheel-size);
  }

  body.rotate-page.is-rotate-fullscreen .rotate-captcha-board {
    --rotate-wheel-size: clamp(160px, calc(100vh - 270px), 230px);
  }

  body.rotate-page.is-rotate-fullscreen .dial-target-arrow {
    width: clamp(178px, calc(100vh - 252px), 248px);
  }
}
