:root {
  --cyan: #22d9f5;
  --cyan-deep: #0a8fd8;
  --mint: #43d48a;
  --rose: #ff6aaa;
  --ink: #153359;
  --paper: rgba(236, 255, 255, 0.76);
  --panel: rgba(112, 213, 238, 0.76);
  --line: rgba(84, 247, 255, 0.76);
  --white: #f8feff;
  --shadow: rgba(4, 54, 108, 0.3);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  min-height: 100dvh;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 119, 181, 0.55), transparent 27%),
    radial-gradient(circle at 86% 72%, rgba(255, 245, 136, 0.42), transparent 23%),
    linear-gradient(135deg, #12b7ee 0%, #0b7ed3 48%, #4dd9cd 100%);
  font-family:
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
}

button {
  font: inherit;
}

.stage {
  position: fixed;
  inset: 0;
  display: flex;
  min-height: 0;
  height: 100dvh;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2vh, 18px) clamp(16px, 4vw, 44px);
  isolation: isolate;
}

.stage::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), transparent 38%),
    radial-gradient(circle at center, transparent 48%, rgba(9, 31, 76, 0.19) 100%);
}

.stage-grid {
  position: absolute;
  inset: -16vh -14vw;
  z-index: -2;
  opacity: 0.55;
  transform: perspective(860px) rotateX(58deg) rotateZ(-18deg) translateY(-16vh);
  transform-origin: center top;
  background-image:
    linear-gradient(rgba(99, 245, 255, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 245, 255, 0.42) 1px, transparent 1px);
  background-size: 78px 78px;
}

.light-beam {
  position: absolute;
  width: 44vw;
  height: 130vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.34;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  filter: blur(2px);
}

.light-beam--left {
  left: 11vw;
  top: -18vh;
  transform: rotate(18deg);
}

.light-beam--right {
  right: -10vw;
  top: -14vh;
  transform: rotate(-22deg);
}

.character {
  position: fixed;
  pointer-events: none;
}

.character--left {
  left: max(-110px, -8vw);
  bottom: -6vh;
  z-index: 3;
  width: clamp(190px, 28vw, 390px);
  height: clamp(360px, 72vh, 760px);
}

.character-hair {
  position: absolute;
  left: 2%;
  top: 0;
  width: 64%;
  height: 83%;
  border-radius: 50% 46% 36% 60%;
  background:
    linear-gradient(103deg, rgba(255, 103, 169, 0.78) 0 7%, transparent 7% 13%, rgba(22, 55, 142, 0.9) 13%),
    linear-gradient(164deg, #171e68, #162982 48%, #462ea5);
  box-shadow: inset -16px 0 0 rgba(255, 77, 149, 0.42), 18px 0 0 rgba(49, 211, 246, 0.24);
}

.character-head {
  position: absolute;
  left: 29%;
  top: 15%;
  width: 38%;
  height: 29%;
  border-radius: 56% 42% 48% 55%;
  background: #ffd8ef;
  box-shadow: inset -9px -4px 0 #efb4d7;
}

.character-head::before {
  position: absolute;
  right: 12%;
  top: 41%;
  width: 24%;
  height: 8%;
  content: "";
  border-radius: 999px;
  background: #153359;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

.headset {
  position: absolute;
  border: 8px solid #ff579d;
  border-radius: 50%;
  background: #f4509f;
  box-shadow: inset 0 0 0 8px rgba(92, 232, 255, 0.82), 0 0 0 3px rgba(255, 255, 255, 0.6);
}

.headset--left {
  left: 20%;
  top: 24%;
  width: 27%;
  height: 19%;
}

.headset--right {
  left: 53%;
  top: 21%;
  width: 11%;
  height: 14%;
  transform: rotate(18deg);
}

.character-neck {
  position: absolute;
  left: 35%;
  top: 42%;
  width: 16%;
  height: 15%;
  border-radius: 0 0 20px 20px;
  background: #f8c4dd;
}

.character-shoulder {
  position: absolute;
  left: 17%;
  bottom: 0;
  width: 72%;
  height: 31%;
  border-radius: 48% 52% 0 0;
  background:
    repeating-linear-gradient(120deg, rgba(23, 42, 118, 0.8) 0 11px, rgba(44, 228, 246, 0.32) 12px 15px),
    linear-gradient(120deg, #252a96, #4c36bd);
  box-shadow: inset 0 20px 0 rgba(255, 105, 174, 0.42);
}

.character--right {
  right: max(-52px, -4vw);
  bottom: -7vh;
  z-index: 4;
  width: clamp(130px, 17vw, 230px);
  height: clamp(270px, 50vh, 500px);
}

.rabbit-ear {
  position: absolute;
  top: 0;
  width: 26%;
  height: 38%;
  border: 5px solid #44d8ff;
  border-radius: 999px 999px 48% 48%;
  background: linear-gradient(#fff, #fbd7ff);
  box-shadow: inset 0 0 0 8px #ffd5f0;
}

.rabbit-ear--one {
  left: 28%;
  transform: rotate(-8deg);
}

.rabbit-ear--two {
  right: 13%;
  transform: rotate(9deg);
}

.mini-head {
  position: absolute;
  top: 24%;
  left: 14%;
  width: 76%;
  height: 35%;
  border-radius: 50%;
  background: #fff2fb;
  box-shadow: inset -10px -8px 0 #d9f1ff;
}

.mini-hair {
  position: absolute;
  top: 19%;
  left: 8%;
  width: 82%;
  height: 40%;
  border-radius: 54% 48% 45% 49%;
  background:
    linear-gradient(120deg, transparent 58%, rgba(59, 187, 250, 0.85) 59% 65%, transparent 66%),
    linear-gradient(150deg, #eefdff, #9fdefd 62%, #78bcf5);
  clip-path: polygon(0 28%, 16% 7%, 27% 36%, 42% 0, 52% 38%, 70% 9%, 86% 43%, 100% 24%, 95% 100%, 0 100%);
}

.mini-body {
  position: absolute;
  left: 15%;
  bottom: 0;
  width: 78%;
  height: 36%;
  border-radius: 42% 42% 0 0;
  background:
    linear-gradient(90deg, rgba(255, 102, 166, 0.82) 0 22%, transparent 22% 78%, rgba(255, 102, 166, 0.82) 78%),
    linear-gradient(#eafdff, #b6f4ef);
  box-shadow: inset 0 0 0 5px rgba(27, 168, 230, 0.55);
}

.captcha-scene {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: min(82vw, 620px, calc(100dvh - 300px));
  transform: translate(-50%, -50%);
  transform-origin: center;
  transition: transform 460ms ease, opacity 360ms ease, filter 360ms ease;
}

body.is-success .captcha-scene {
  opacity: 0;
  filter: blur(10px);
  transform: translate(-50%, calc(-50% - 12px)) scale(0.96);
  pointer-events: none;
}

.captcha-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 6px 8px;
}

.captcha-step {
  display: flex;
  gap: 8px;
}

.step-dot {
  width: 11px;
  height: 11px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 12px rgba(60, 240, 255, 0.38);
}

.step-dot.is-active {
  background: #ff6aaa;
  border-color: #ffffff;
}

.step-dot.is-done {
  background: var(--mint);
  border-color: rgba(255, 255, 255, 0.92);
}

.icon-button,
.success-reset {
  display: inline-grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  color: var(--white);
  cursor: pointer;
  background: rgba(8, 96, 158, 0.36);
  border: 1px solid rgba(163, 252, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(6, 80, 130, 0.2);
}

.icon-button:focus-visible,
.success-reset:focus-visible,
.tile:focus-visible {
  outline: 3px solid #ffec79;
  outline-offset: 3px;
}

.captcha-panel {
  overflow: hidden;
  border: 2px solid rgba(83, 245, 255, 0.78);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(213, 255, 255, 0.22), rgba(202, 255, 248, 0.72));
  box-shadow:
    0 0 0 2px rgba(31, 166, 237, 0.38),
    0 18px 45px var(--shadow),
    inset 0 0 45px rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(5px);
}

.captcha-header {
  display: grid;
  gap: 6px;
  min-height: clamp(64px, 10vh, 82px);
  padding: clamp(12px, 1.8vh, 18px) clamp(18px, 4vw, 42px) 12px;
  background: linear-gradient(90deg, rgba(80, 205, 239, 0.9), rgba(83, 192, 221, 0.76));
}

.captcha-kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(10px, 1.7vw, 13px);
  font-weight: 800;
  letter-spacing: 0;
}

.captcha-header h1 {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.12;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(15, 113, 169, 0.38);
}

.photo-grid {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 1 / 1;
  background: rgba(237, 255, 255, 0.64);
}

.photo-grid--image {
  background: var(--captcha-image) center / 100% 100% no-repeat;
}

.photo-grid.is-transition {
  display: block;
  overflow: hidden;
  background: linear-gradient(145deg, #ffd4ec, #fff2fb);
}

.transition-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tile {
  position: absolute;
  left: var(--tile-x);
  top: var(--tile-y);
  display: block;
  width: var(--tile-width);
  height: var(--tile-height);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  cursor: pointer;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.tile::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.3;
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.48), transparent 36%),
    repeating-linear-gradient(0deg, transparent 0 9px, rgba(255, 255, 255, 0.08) 10px 11px);
  mix-blend-mode: screen;
}

.tile::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: transparent;
  transition: background 180ms ease;
}

.tile:hover::after {
  background: rgba(255, 255, 255, 0.08);
}

.tile.is-selected::after {
  background: rgba(206, 255, 224, 0.36);
}

.photo-grid--image .tile::before {
  display: none;
}

.photo-grid--image .tile.is-wrong::after {
  background: rgba(255, 87, 128, 0.18);
}

.tile.is-wrong {
  animation: wrongFlash 420ms ease;
}

.scene {
  position: absolute;
  inset: 0;
  display: block;
}

.sky {
  position: absolute;
  inset: 0 0 42%;
  background: linear-gradient(#bfefff, #e4fbff);
}

.trees {
  position: absolute;
  inset: 28% 0 34%;
  background:
    radial-gradient(circle at 12% 58%, #73c993 0 13%, transparent 14%),
    radial-gradient(circle at 24% 34%, #93dba5 0 17%, transparent 18%),
    radial-gradient(circle at 48% 55%, #6fbd8e 0 15%, transparent 16%),
    radial-gradient(circle at 74% 35%, #a7dfa9 0 19%, transparent 20%),
    linear-gradient(#8bd2a4, #79bd93);
  filter: saturate(0.92);
}

.road {
  position: absolute;
  inset: 53% -12% -8%;
  background:
    linear-gradient(105deg, transparent 45%, rgba(255, 255, 255, 0.72) 46% 49%, transparent 50%),
    linear-gradient(8deg, #9faeb7, #d8e0e4);
  transform: skewY(-5deg);
}

.zebra {
  position: absolute;
  inset: 48% -8% 12%;
  background:
    repeating-linear-gradient(165deg, #f7fbff 0 12px, transparent 13px 32px),
    linear-gradient(8deg, #a7b5c0, #dde6ea);
  transform: skewY(-8deg);
}

.sidewalk {
  position: absolute;
  inset: 38% 0 48%;
  background: linear-gradient(90deg, #d7edf0, #f4ffff);
}

.brick-wall {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(255, 255, 255, 0.44) 29px 31px),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(255, 255, 255, 0.34) 43px 45px),
    linear-gradient(135deg, #c97b76, #f3d1c6);
}

.window-row {
  position: absolute;
  left: 12%;
  right: 10%;
  height: 12%;
  border: 3px solid rgba(255, 255, 255, 0.68);
  background: rgba(204, 244, 255, 0.52);
  box-shadow: 0 42px 0 rgba(204, 244, 255, 0.48), 0 84px 0 rgba(204, 244, 255, 0.44);
}

.window-row--one {
  top: 22%;
}

.apartment {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.52) 0 4px, transparent 4px 33px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(255, 255, 255, 0.52) 38px 43px),
    linear-gradient(135deg, #b8bec8, #f4d8c9);
}

.building-shadow {
  position: absolute;
  inset: 22% -12% auto 3%;
  height: 34%;
  background: rgba(102, 112, 137, 0.42);
  transform: skewY(-12deg);
}

.water {
  position: absolute;
  inset: 44% 0 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.28) 0 2px, transparent 2px 18px),
    linear-gradient(#a8e9f2, #d1f8fb);
}

.highway {
  position: absolute;
  left: -20%;
  right: -20%;
  top: 45%;
  height: 34%;
  border-top: 8px solid #efffff;
  border-bottom: 8px solid rgba(42, 122, 170, 0.62);
  background: #99c6d7;
  transform: rotate(-28deg);
  box-shadow: 0 13px 0 rgba(255, 255, 255, 0.42);
}

.blue-sign {
  position: absolute;
  left: 52%;
  top: 23%;
  width: 32%;
  height: 29%;
  background: #2797d6;
  border: 5px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 0 -8px #9aa4ac;
}

.mailbox {
  position: absolute;
  left: 18%;
  top: 35%;
  width: 57%;
  height: 40%;
  border-radius: 4px 4px 8px 8px;
  background: linear-gradient(120deg, #ef685c, #d83734);
  box-shadow: 10px 18px 0 rgba(31, 60, 80, 0.16);
}

.mailbox::before {
  position: absolute;
  inset: 9% 13% auto 13%;
  height: 24%;
  content: "";
  background: #fff7ef;
}

.mailbox::after {
  position: absolute;
  left: 17%;
  top: 51%;
  width: 17%;
  height: 7%;
  content: "";
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 20px 0 0 rgba(255, 255, 255, 0.66);
}

.pole {
  position: absolute;
  width: 4px;
  background: #6d7883;
  box-shadow: 2px 0 0 rgba(255, 255, 255, 0.35);
}

.pole--tall {
  left: 28%;
  top: 15%;
  height: 64%;
}

.pole--right {
  right: 28%;
  top: 18%;
  height: 68%;
}

.traffic-light {
  position: absolute;
  display: grid;
  place-items: center;
  background: #344657;
  box-shadow: 0 8px 14px rgba(13, 35, 50, 0.24);
}

.traffic-light span {
  display: block;
  border-radius: 50%;
  box-shadow: inset 0 0 7px rgba(255, 255, 255, 0.42);
}

.traffic-light--vertical {
  grid-template-rows: repeat(3, 1fr);
  gap: 7%;
  width: clamp(18px, 18%, 42px);
  height: 42%;
  padding: 8% 20%;
  border-radius: 999px;
}

.traffic-light--horizontal {
  grid-template-columns: repeat(3, 1fr);
  gap: 8%;
  width: 43%;
  height: 16%;
  padding: 4% 7%;
  border-radius: 999px;
}

.traffic-light--top {
  left: 20%;
  top: 9%;
}

.traffic-light--side {
  right: 16%;
  top: 16%;
}

.traffic-light--street {
  left: 14%;
  top: 31%;
}

.traffic-light--mini {
  left: 9%;
  bottom: 14%;
  width: 38%;
  height: 12%;
  opacity: 0.92;
}

.red {
  background: #f76862;
}

.yellow {
  background: #ffc65c;
}

.green {
  background: #3ee38c;
}

.dark {
  background: #667684;
}

.sign-diamond {
  position: absolute;
  left: 24%;
  top: 17%;
  width: 48%;
  aspect-ratio: 1;
  border: 5px solid rgba(148, 122, 69, 0.78);
  background: #ffd575;
  transform: rotate(45deg);
}

.sign-diamond .traffic-light {
  left: 31%;
  top: 8%;
  width: 34%;
  height: 78%;
  transform: rotate(-45deg);
}

.selection-mark {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  border: 5px solid var(--mint);
  background: rgba(219, 255, 235, 0.35);
  transform: scale(1.03);
  transition: opacity 170ms ease, transform 170ms ease;
}

.selection-mark::before {
  width: min(52%, 112px);
  aspect-ratio: 1;
  content: "";
  border: 12px solid var(--mint);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.selection-mark::after {
  position: absolute;
  width: min(34%, 80px);
  height: min(16%, 36px);
  content: "";
  border-bottom: 13px solid var(--mint);
  border-left: 13px solid var(--mint);
  transform: rotate(-45deg) translate(7%, -8%);
  transform-origin: center;
}

.tile.is-selected .selection-mark {
  opacity: 1;
  transform: scale(1);
}

.captcha-footer {
  position: relative;
  display: grid;
  min-height: clamp(48px, 9vh, 72px);
  place-items: center;
  overflow: hidden;
  padding: 8px 14px;
  background: linear-gradient(180deg, rgba(242, 255, 252, 0.72), rgba(228, 255, 248, 0.88));
}

.human-watermark {
  position: absolute;
  right: 7%;
  bottom: 24%;
  margin: 0;
  color: rgba(86, 164, 198, 0.2);
  font-size: clamp(18px, 3.4vw, 30px);
  font-weight: 900;
  letter-spacing: 0;
}

.success-scene {
  position: fixed;
  inset: 0;
  z-index: 7;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(16px, 4vw, 48px);
}

.success-scene[hidden] {
  display: none;
}

.success-scene::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 210, 236, 0.78), transparent 27%),
    linear-gradient(120deg, rgba(10, 116, 196, 0.74), rgba(255, 132, 190, 0.68));
  backdrop-filter: blur(4px);
}

.success-board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(130px, 0.45fr) minmax(280px, 720px) minmax(130px, 0.45fr);
  gap: clamp(10px, 2vw, 20px);
  width: min(1160px, 94vw);
  min-height: min(73vh, 690px);
  transform: none;
}

.success-card,
.mixer-panel {
  overflow: hidden;
  border: 3px solid rgba(76, 233, 255, 0.78);
  box-shadow: 0 20px 60px rgba(16, 62, 102, 0.34);
}

.success-card {
  position: relative;
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.55), transparent 38%),
    linear-gradient(145deg, #ffd2ee, #ffeef8);
}

.mixer-panel {
  position: relative;
  border-radius: 8px;
  background:
    radial-gradient(circle at 36% 34%, #121d47 0 12%, transparent 13%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 22px),
    linear-gradient(135deg, #182b5e, #ff77b1);
  opacity: 0.8;
}

.mixer-panel span {
  position: absolute;
  left: 22%;
  width: 28px;
  height: 92px;
  border-radius: 999px;
  background: linear-gradient(#f4ffff 0 18%, #263466 18% 100%);
  box-shadow:
    58px 22px 0 #263466,
    116px 5px 0 #263466,
    174px 36px 0 #263466;
}

.mixer-panel span:nth-child(1) {
  top: 18%;
}

.mixer-panel span:nth-child(2) {
  top: 42%;
  transform: translateX(28px);
}

.mixer-panel span:nth-child(3) {
  top: 64%;
  transform: translateX(-24px);
}

.mixer-panel span:nth-child(4) {
  top: 79%;
  height: 42px;
  transform: translateX(70px);
}

.success-mascot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(70%, 500px);
  aspect-ratio: 0.9;
  transform: translate(-50%, -45%);
}

.mascot-ear {
  position: absolute;
  top: -8%;
  width: 19%;
  height: 38%;
  border: 10px solid #62cfff;
  border-radius: 999px 999px 44% 44%;
  background: linear-gradient(#ffffff, #ffdff2);
  box-shadow: inset 0 0 0 16px rgba(255, 156, 205, 0.55);
}

.mascot-ear--left {
  left: 17%;
  transform: rotate(-10deg);
}

.mascot-ear--right {
  right: 15%;
  transform: rotate(12deg);
}

.mascot-face {
  position: absolute;
  inset: 18% 10% 13%;
  border-radius: 50%;
  background: #fff6fb;
  box-shadow: inset -18px -16px 0 #d7f2ff;
}

.mascot-hair {
  position: absolute;
  inset: 8% 2% 42%;
  z-index: 2;
  border-radius: 50% 50% 42% 42%;
  background:
    linear-gradient(125deg, transparent 54%, #3fc1fa 55% 59%, transparent 60%),
    linear-gradient(150deg, #f9fbff, #aadaff 70%);
  clip-path: polygon(2% 46%, 16% 3%, 27% 48%, 40% 0, 52% 54%, 66% 4%, 78% 50%, 95% 12%, 100% 88%, 0 100%);
}

.eye {
  position: absolute;
  top: 45%;
  width: 18%;
  height: 8%;
  border-radius: 999px 999px 0 0;
  border-top: 10px solid #24305f;
}

.eye--left {
  left: 23%;
  transform: rotate(11deg);
}

.eye--right {
  right: 23%;
  transform: rotate(-11deg);
}

.cheek {
  position: absolute;
  top: 56%;
  width: 17%;
  height: 10%;
  border-radius: 50%;
  background: rgba(255, 149, 196, 0.38);
}

.cheek--left {
  left: 17%;
}

.cheek--right {
  right: 17%;
}

.mouth {
  position: absolute;
  left: 50%;
  top: 58%;
  width: 25%;
  height: 19%;
  border-radius: 12% 12% 50% 50%;
  background: #ec6590;
  transform: translateX(-50%);
  box-shadow: inset 0 -11px 0 #ff9ab8;
}

.mascot-sign {
  position: absolute;
  left: 10%;
  bottom: 0;
  z-index: 4;
  width: 80%;
  padding: 11% 8%;
  color: #fff;
  font-size: clamp(34px, 6vw, 78px);
  font-weight: 950;
  text-align: center;
  letter-spacing: 0;
  text-shadow: 4px 0 #ff6aaa, -4px 0 #ff6aaa, 0 4px #ff6aaa, 0 -4px #ff6aaa;
  background: #54bde9;
  border-radius: 8px;
  transform: rotate(4deg);
}

.confetti {
  position: absolute;
  width: 34px;
  height: 24px;
  background: #ffe58a;
  border: 2px solid rgba(235, 135, 78, 0.45);
  transform: rotate(24deg);
}

.confetti--one {
  left: 16%;
  top: 23%;
}

.confetti--two {
  right: 18%;
  top: 29%;
  transform: rotate(-24deg);
}

.confetti--three {
  right: 28%;
  bottom: 24%;
}

.success-reset {
  position: fixed;
  right: clamp(16px, 4vw, 48px);
  bottom: clamp(16px, 4vw, 48px);
  padding: 10px 18px;
  font-weight: 800;
}

.success-scene {
  padding: 0;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 210, 236, 0.45), transparent 27%),
    linear-gradient(120deg, rgba(10, 116, 196, 0.82), rgba(255, 132, 190, 0.72));
}

.success-scene::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), transparent 40%),
    radial-gradient(circle at center, transparent 42%, rgba(9, 31, 76, 0.32) 100%);
}

.success-end-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 16px 40px rgba(4, 54, 108, 0.22));
}

@keyframes wrongFlash {
  0%,
  100% {
    filter: none;
    transform: translateX(0);
  }
  25% {
    filter: hue-rotate(135deg) saturate(1.6);
    transform: translateX(-4px);
  }
  50% {
    transform: translateX(4px);
  }
  75% {
    transform: translateX(-2px);
  }
}

@media (max-width: 900px) {
  body {
    overflow: hidden;
  }

  .stage {
    min-height: 100svh;
    padding: 12px;
  }

  .character--left {
    left: -118px;
    opacity: 0.72;
  }

  .character--right {
    right: -58px;
    opacity: 0.8;
  }

  .captcha-scene {
    width: min(94vw, 620px, calc(100dvh - 276px));
    transform: translate(-50%, -50%);
  }

  .photo-grid {
    aspect-ratio: 1 / 1;
  }

  .success-board {
    grid-template-columns: 1fr;
    width: min(92vw, 580px);
    min-height: min(70vh, 620px);
    transform: none;
  }

  .mixer-panel {
    display: none;
  }

  .success-card {
    min-height: 66vh;
  }

}

@media (max-width: 560px) {
  .stage {
    padding: 10px;
  }

  .captcha-header {
    min-height: 68px;
  }

  .captcha-header h1 {
    font-size: clamp(20px, 6.6vw, 28px);
  }

  .photo-grid {
    aspect-ratio: 1 / 1;
  }

  .human-watermark {
    right: 4%;
    font-size: clamp(20px, 8vw, 34px);
  }

  .selection-mark {
    border-width: 4px;
  }

  .selection-mark::before {
    border-width: 8px;
  }

  .selection-mark::after {
    border-width: 0 0 9px 9px;
  }
}
