:root {
  color-scheme: light;
  --ink: #171a37;
  --muted: #616582;
  --paper: #f4f3fc;
  --line: #e3e2f0;
  --violet: #4937cc;
  --violet-dark: #3623b0;
  --display: Unbounded, Manrope, system-ui, sans-serif;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
button, a, select, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #7354ff; outline-offset: 3px; }

.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-inner, .wrap { width: min(1216px, calc(100% - 72px)); margin-inline: auto; }
.top-inner { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; color: inherit; text-decoration: none; font: 700 14px/1.2 var(--display); }
.brand b { color: var(--violet); }
.brand small { display: block; font: 800 11px/1.4 Manrope, sans-serif; color: var(--muted); margin-top: 3px; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; background: #e9e5ff; color: var(--violet); border-radius: 13px; font: 800 23px Manrope, sans-serif; }
nav { display: flex; gap: 4px; padding: 4px; background: #f4f2fb; border-radius: 13px; }
nav button { min-height: 37px; background: transparent; border: 0; border-radius: 10px; padding: 0 15px; color: var(--muted); font-size: 13px; font-weight: 800; }
nav button:hover, nav button[aria-pressed="true"] { background: #fff; color: var(--violet); }
.profile { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 13px; overflow-wrap: anywhere; }
.profile span { color: var(--violet); font-size: 19px; }
.wrap { padding: 31px 0 42px; }
.hero { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 23px; }
.hero h1 { font: 700 clamp(34px, 6vw, 64px)/1.02 var(--display); letter-spacing: -.085em; }
.hero h1 span { color: #6949e9; }
.hero p { margin-top: 9px; color: var(--muted); font-size: clamp(13px, 1.5vw, 16px); font-weight: 650; }
.balance { display: flex; align-items: center; gap: 9px; padding: 8px 13px 8px 8px; min-width: 104px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.balance strong, .balance small { display: block; }
.balance strong { font: 700 17px/1.05 var(--display); }
.balance small { color: var(--muted); font-size: 11px; font-weight: 800; margin-top: 3px; }
.coin { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border: 2px solid #ffdb80; border-radius: 50%; background: #fff1c8; color: #82540f; }

.playground { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); gap: 17px; align-items: start; }
.board-panel { display: flex; flex-direction: column; gap: 13px; padding: 21px 23px 17px; overflow: hidden; border: 1px solid #23244c; border-radius: 24px; color: #fff; background: radial-gradient(ellipse at 76% 8%, #342f6a, transparent 73%), #191a3b; }
.mission-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mission-head p { margin-bottom: 5px; color: #c4b9ff; font-size: 12px; font-weight: 800; }
.mission-head h2, .editor h2, .section-title h2, .extra h2, .dialog-head h2 { font: 700 clamp(16px, 2vw, 24px)/1.24 var(--display); letter-spacing: -.05em; }
#samples { display: flex; align-items: center; gap: 8px; white-space: nowrap; padding: 6px 10px; border-radius: 11px; background: #353665; color: #fff; font-size: 13px; }
.field {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 16px 8px 14px;
  border: 1px solid #505486;
  border-radius: 18px;
  background: radial-gradient(circle, #9aa3e54d 1px, transparent 1.3px) 0 0 / 15px 15px,
    radial-gradient(ellipse at 50% 23%, #3f4779, #23264d 75%, #1e2144);
}
.field-status { z-index: 1; text-align: center; perspective: 320px; }
.floating-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 7px 7px;
  border: 1px solid #deebff;
  border-radius: 12px;
  background: linear-gradient(158deg, #fff 5%, #dce9ff 95%);
  color: #282749;
  box-shadow: 0 4px #8c9ed6, 0 11px 14px #10122f99, inset 0 1px #fff;
  font: 700 clamp(11px, 1.55vw, 15px)/1.12 var(--display);
  letter-spacing: -.035em;
  transform: rotateX(-7deg) rotate(-1deg);
}
#field-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: #c6d5fc;
  color: #352e80;
  font: 800 18px/1 Manrope, sans-serif;
}
#field-objective { margin: 11px 0 0; color: #e0e5ff; font-size: 12px; font-weight: 750; }
.field[data-state="ready"] .floating-title { animation: title-arrival 420ms cubic-bezier(.19,.7,.3,1) both; }
@keyframes title-arrival {
  from { opacity: .76; transform: translateY(-7px) rotateX(14deg); }
  to { opacity: 1; transform: rotateX(-7deg) rotate(-1deg); }
}
.field[data-state="success"] .floating-title {
  background: linear-gradient(157deg, #f6ffe8, #a9f2c3);
  border-color: #ebffec;
  box-shadow: 0 4px #4aaf83, 0 11px 19px #082f31b3, 0 0 22px #7dfac661;
  color: #103f38;
  animation: winning-title 570ms cubic-bezier(.16,.74,.26,1) both;
}
.field[data-state="success"] #field-icon { background: #237755; color: white; }
.field[data-state="secret-shop"] .floating-title {
  background: linear-gradient(150deg, #fff5b9, #efb858);
  border-color: #fff4c7;
  color: #522811;
  box-shadow: 0 4px #9f5d2a, 0 9px 18px #241526ab, 0 0 24px #ffba6066;
}
.field[data-state="secret-shop"] #field-icon { color: #fff1b6; background: #95501e; }
@keyframes winning-title {
  0% { transform: translateY(9px) scale(.9) rotateX(22deg); opacity: .7; }
  53% { transform: translateY(-5px) scale(1.05) rotateX(-13deg) rotate(-2deg); opacity: 1; }
  100% { transform: rotateX(-7deg) rotate(-1deg); opacity: 1; }
}
.board {
  width: 96%;
  position: relative;
  isolation: isolate;
  container-type: inline-size;
}
.tile {
  --top-a: #647bae;
  --top-b: #495d92;
  --edge: #b1c9f4;
  --side-a: #384978;
  --side-b: #28395e;
  --depth: calc(.22em + var(--height) * .19em);
  font-size: calc(100cqw / var(--units));
  display: grid;
  position: absolute;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  aspect-ratio: 2;
}
.tile::before, .tile::after { content: ""; position: absolute; inset: .25em 0 auto; height: calc(.25em + var(--depth)); pointer-events: none; }
.tile::before {
  clip-path: polygon(0 0, 50.1% .25em, 50.1% 100%, 0 var(--depth));
  background: linear-gradient(20deg, var(--side-b), var(--side-a));
}
.tile::after {
  clip-path: polygon(49.9% .25em, 100% 0, 100% var(--depth), 49.9% 100%);
  background: linear-gradient(145deg, var(--side-a), #19253e);
}
.tile > * { grid-area: 1 / 1; z-index: 1; }
.tile .surface, .surface::after {
  position: absolute; inset: 0;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: var(--edge);
}
.surface::after {
  content: ""; inset: 1px 1.7px;
  background: linear-gradient(145deg, var(--top-a), var(--top-b));
}
.tile .surface { z-index: 0; }
.tile.raised { --top-a: #a1bce2; --top-b: #6685bf; --side-a: #5678a8; }
.tile.lowered { --top-a: #66546e; --top-b: #393459; --edge: #b39eaf; --side-a: #484162; --side-b: #292544; }
.tile.secret-stair { --top-a: #a17b68; --top-b: #5e435c; --edge: #e2b480; --side-a: #68516b; }
.stair-treads {
  position: absolute;
  inset: .025em .04em;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: repeating-linear-gradient(var(--stair-angle), #241e3ec2 0 .018em, #ffc879bc .018em .037em,
    transparent .037em .087em);
  opacity: .84;
}
.tile.secret-entrance {
  --top-a: #ffe49a;
  --top-b: #93605b;
  --edge: #ffe29a;
  --side-a: #8a6556;
}
.secret-hatch {
  position: absolute;
  display: grid;
  place-items: center;
  left: 28%;
  bottom: 30%;
  width: 44%;
  aspect-ratio: .91;
  border: .026em solid #ffd67c;
  border-radius: 47% 47% 14% 14%;
  background: linear-gradient(165deg, #755543, #34263d 60%, #4a3041);
  box-shadow: inset 0 0 .13em #ec9e6b7a, 0 0 .21em #ffb35b86;
  color: #ffdfa0;
  font-style: normal;
}
.secret-hatch b { font-size: .24em; line-height: 1; }
.field[data-state="secret-shop"] .secret-hatch {
  border-color: #fff2b0;
  box-shadow: inset 0 0 .18em #ffb275b0, 0 0 .32em #ffb461ac;
}
.tile.launchpad { --top-a: #ada2ef; --top-b: #726bb4; }
.tile.destination { --top-a: #75c9a8; --top-b: #497f82; --side-a: #3f656e; }
.tile.occupied .surface::after { background: radial-gradient(ellipse 24% 21% at 50% 53%, #19203a9c 10%, transparent 100%), linear-gradient(145deg, var(--top-a), var(--top-b)); }
.tile-height {
  position: absolute;
  left: 22%;
  top: 79%;
  color: #f5fbff;
  text-shadow: 0 1px 2px #24315e;
  font-size: clamp(8px, 1vw, 11px);
}
.field[data-state="success"] .destination .surface {
  --edge: #e5ffb5;
  --top-a: #88ecbf;
  --top-b: #55a6a3;
  animation: destination-glow 560ms ease-out both;
}
@keyframes destination-glow {
  from { opacity: .6; transform: scale(.95); }
  45% { opacity: 1; transform: scale(1.09); }
  to { transform: scale(1); }
}
.crystal { display: inline-block; width: 13px; height: 16px; background: linear-gradient(108deg, #cbfcfc 18%, #56e3fb 52%, #198fcf 55%, #78f8fd 95%); clip-path: polygon(50% 0, 100% 40%, 73% 88%, 50% 100%, 22% 85%, 0 40%); }
.tile .crystal { width: 21%; height: 55%; align-self: end; margin-bottom: 23%; filter: brightness(1.2); }
.crystal.secret { background: linear-gradient(108deg, #f8daff 18%, #e593ff 52%, #a762e0 55%, #f5beff 95%); }
.base-icon { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: #9becc2; color: #1f5250; font: 900 15px/1 Manrope, sans-serif; }
.tile .base-icon { width: 29%; height: 51%; border: 1px solid #d1ffe5; font-size: clamp(13px, 2vw, 22px); }
.mechanic-icon { display: inline-grid; place-items: center; width: 18px; height: 18px; color: #2a2548; border-radius: 5px; background: #f9ce76; font: 900 14px/1 Manrope, sans-serif; }
.gate-icon { background: #ffc296; }
.height-icon { background: #abdbfb; }
.tile.gate { --top-a: #956b83; --top-b: #793e65; }
.tile.gate.activated { --top-a: #89bda9; --top-b: #517f89; }
.gate-model {
  position: absolute; bottom: 56%; left: 25%; width: 50%; height: 86%;
  transform: skewY(var(--slant)); transform-origin: bottom center;
  filter: drop-shadow(.018em .028em .014em #141b37a6);
  --signal: #ffc75f;
}
.gate-model i { display: block; position: absolute; }
.gate-jamb, .gate-beam {
  background: linear-gradient(90deg, #a4b6d2, #647793 48%, #455675 51%, #536784);
  box-shadow: inset .012em 0 #cdd9ed, .035em .018em #303e59;
}
.gate-jamb { top: 6%; bottom: 0; width: 18%; border-radius: .012em; }
.gate-jamb.left { left: 0; }
.gate-jamb.right { right: 0; }
.gate-jamb::before {
  content: ""; position: absolute; bottom: 0; left: -16%; width: 133%; height: 19%;
  border-top: .014em solid #aebbd3; background: #485775; box-shadow: .029em .013em #303b55;
}
.gate-jamb::after {
  content: ""; position: absolute; left: 22%; top: 30%; width: 32%; height: 18%;
  background: var(--signal); box-shadow: 0 0 .025em var(--signal);
}
.gate-beam {
  inset: 0 -3% auto; height: 20%; border-top: .024em solid #e5e4e9;
  border-radius: .013em;
  background: repeating-linear-gradient(120deg, #f8bc62 0 .057em, #6e4d42 .059em .088em);
}
.gate-opening { inset: 12% 13% 4%; overflow: hidden; }
.gate-grille {
  inset: 0; transform: translateY(0);
  background: repeating-linear-gradient(90deg, #34435c 0 5%, #edf0f4 5% 9%, #8399ad 9% 15%, transparent 15% 26%);
  border-bottom: .031em solid #e8ab57;
  transition: transform 420ms cubic-bezier(.22,.7,.25,1);
}
.gate-grille::after { content: ""; position: absolute; left: 0; right: 0; top: 53%; height: .023em; background: #8794ac; box-shadow: 0 .012em #39405b; }
.gate.activated .gate-model { --signal: #91ffcd; }
.gate.activated .gate-grille { transform: translateY(-100%); }
.switch-pad {
  position: absolute; width: 43%; height: 45%; left: 28.5%; bottom: 35%;
  border-radius: 50%; border: .023em solid #415370; background: #536680;
  box-shadow: 0 .025em #293650;
}
.switch-pad::after {
  content: ""; position: absolute; inset: -19% 7% 21%; border-radius: 50%;
  background: radial-gradient(ellipse, #ffe69d 15%, #f2a653 20% 58%, #ffe4a7 63%);
  box-shadow: 0 .039em #ae6a45; transition: transform 150ms ease-out;
}
.floor-switch.activated .switch-pad::after { transform: translateY(18%); background: #90e6bc; box-shadow: 0 .014em #569986; }
.sample-pulse { z-index: 3; }
.legend { display: flex; flex-wrap: wrap; gap: 12px 20px; color: #e2dff8; font-size: 12px; font-weight: 750; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
#execution { margin-left: auto; color: #f8d991; font-size: 12px; }

.robot { width: 74%; aspect-ratio: 1; position: relative; display: inline-block; vertical-align: middle; isolation: isolate; }
.tile .robot { position: absolute; width: 79%; bottom: 45%; left: 10.5%; z-index: 2; }
.tile .compass { inset: auto; width: 44%; height: 44%; left: 28%; bottom: -9%; }
.robot-sprite {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 4px 3px #1012268c);
  transform-origin: center 87%;
  pointer-events: none;
}
.robot i { display: block; position: absolute; }
.robot-figure { position: absolute; inset: 0; transform-origin: 50% 95%; filter: drop-shadow(0 2px 2px #18203683); }
.robot-figure .robot-sprite { filter: none; }
.boot-layer, .detail-glow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.detail-glow { object-fit: contain; object-position: center bottom; mix-blend-mode: screen; }
.robot[data-skin="ice"] { --light-cycle: frost-pulse 3.2s; }
.robot[data-skin="flame"] { --light-cycle: furnace-pulse 2.8s; }
.robot[data-skin="nova"] { --light-cycle: nova-pulse 4.1s; }
.robot:is([data-skin="aurum"], [data-skin="goldium"]) {
  --lamp: #ffcb48;
  --light-cycle: solar-pulse 3.8s;
}
.robot[data-skin="aurum"] {
  --lamp: #c5eaff;
  --corona-core: #e8f9ff9c;
  --corona-shadow: #69c9ff52;
  --corona-rays: #c3eaff99;
  --solar-spark: #e7faff;
  --solar-bloom: #59c5ff;
  --solar-stroke: #d2f0ff;
  --solar-scatter: #f0fbff;
  --solar-edge: #9bd8ff;
}
.robot[data-skin="aurum"] .robot-sprite { filter: url(#aurum-metal) drop-shadow(0 4px 3px #1012268c); }
.robot[data-skin="aurum"] .robot-figure .robot-sprite { filter: url(#aurum-metal); }
.robot[data-skin="aurum"] .detail-glow { filter: url(#aurum-emission); }
.robot[data-skin="aurum"] .solar-facet { fill: var(--solar-scatter); }
@keyframes solar-pulse { 0%,100% { opacity: .26; } 42%,55% { opacity: .94; } }
.solar-facet { transform-box: fill-box; transform-origin: center; animation: facet-flash 4.6s ease-in-out infinite; }
.solar-facet:nth-child(2) { animation-delay: -.7s; }
@keyframes facet-flash { 0%,24%,76%,100% { opacity: .12; transform: scale(.35); } 46% { opacity: 1; transform: scale(1.16); } }
.effect-solar .aura {
  background: radial-gradient(ellipse at 50% 42%, var(--corona-core, #fff0aa99), var(--corona-shadow, #ffaf3552) 36%, transparent 68%);
}
.effect-solar .aura::after {
  content: ""; position: absolute; inset: 8% 7% 10%; border-radius: 50%;
  background: repeating-conic-gradient(from 8deg, transparent 0deg 15deg, var(--corona-rays, #ffdd7c99) 16deg, transparent 18deg 30deg);
  mask-image: radial-gradient(closest-side, transparent 42%, #0009 66%, transparent 99%);
  animation: corona-turn 30s linear infinite;
}
@keyframes corona-turn { to { transform: rotate(1turn); } }
.effect-solar .particle { color: var(--solar-spark, #fff3a8); text-shadow: 0 0 .7cqw white, 0 0 2.3cqw var(--solar-bloom, #ffb32d); }
.effect-solar .solar-arcs {
  z-index: 1; fill: none; stroke: var(--solar-stroke, #fff5bd); stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 1px var(--solar-bloom, #ffab24)) drop-shadow(0 0 2px var(--solar-edge, #ffc02e));
}
.solar-arcs > use { animation: floor-discharge 3.6s linear infinite; }
.solar-arcs > use:nth-child(2) { animation-delay: -.9s; }
.solar-arcs > use:nth-child(3) { animation-delay: -1.8s; }
.solar-arcs > use:nth-child(4) { animation-delay: -2.7s; }
.solar-arcs > use:nth-child(n+5) {
  stroke: var(--solar-scatter, #fff8d7); stroke-dasharray: 52 68;
  animation: branching-discharge 3.6s ease-out var(--strike) infinite;
}
.solar-arcs > use:nth-child(5) { --strike: -.16s; }
.solar-arcs > use:nth-child(6) { --strike: -1.92s; }
.solar-arcs > use:nth-child(7) { --strike: -1.08s; }
.solar-arcs > use:nth-child(8) { --strike: -2.82s; }
.solar-arcs > use:nth-child(9) { --strike: -2.30s; }
.solar-arcs > use:nth-child(10) { --strike: -.52s; }
.solar-arcs > use:nth-child(11) { --strike: -3.13s; }
.solar-arcs > use:nth-child(12) { --strike: -1.41s; }
@keyframes branching-discharge {
  0% { opacity: 0; stroke-dashoffset: 52; }
  4% { opacity: .95; }
  9% { opacity: .78; stroke-dashoffset: 0; }
  17%, 100% { opacity: 0; stroke-dashoffset: 0; }
}
.robot .solar-wave {
  fill: none; stroke: var(--solar-stroke, #fff4bc); stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 .6px var(--solar-edge, #ffbe39)) drop-shadow(0 0 1.5px var(--solar-bloom, #ff9a18));
}
.solar-wave > use {
  opacity: 0; stroke-dasharray: 19 125;
  animation: solar-current 3.8s ease-out var(--arrival,0s) infinite;
}
.solar-wave [href="#solar-wave-shoulders"], .solar-wave [href="#solar-wave-hips"] { --arrival: .40s; --peak: 1.6; }
.solar-wave [href="#solar-wave-caps"], .solar-wave [href="#solar-wave-shins"] { --arrival: .90s; --peak: 2.05; }
.solar-wave [href*="-arm-"] { --arrival: 1.38s; --peak: 2.65; }
.solar-wave [href*="-boot-"] { --arrival: 1.58s; --peak: 2.85; }
@keyframes solar-current {
  0% { opacity: 0; stroke-width: .55; stroke-dashoffset: 19; }
  4% { opacity: .62; }
  17% { opacity: 1; stroke-width: var(--peak,1.25); }
  23%,100% { opacity: 0; stroke-width: var(--peak,1.25); stroke-dashoffset: -100; }
}
@keyframes floor-discharge {
  0%,18%,100% { opacity: 0; }
  4% { opacity: 1; }
  10% { opacity: .8; }
}
.collection-note { margin: 0 0 6px; color: var(--muted); }
.detail-glow, .helmet-lamp { animation: var(--light-cycle) ease-in-out infinite; }
@keyframes frost-pulse { 0%,100% { opacity: .36; } 52%,61% { opacity: 1; } }
@keyframes furnace-pulse { 0%,100% { opacity: .40; } 28% { opacity: 1; } 49% { opacity: .57; } 67% { opacity: .95; } }
@keyframes nova-pulse { 0%,100% { opacity: .33; } 32% { opacity: .66; } 55%,65% { opacity: 1; } 82% { opacity: .54; } }
@media (prefers-reduced-motion: reduce) { .detail-glow, .helmet-lamp { animation: none; opacity: .9; } }
.robot-arm, .suit-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.robot-figure {
  --left-sleeve: 37% 57%, 41% 60%, 40% 66%, 37% 73%, 34% 77%, 28% 79%;
  --right-sleeve: 68% 57%, 66% 61%, 66% 68%, 68% 74%, 71% 77%, 76% 78%;
}
.robot-torso { clip-path: polygon(0 0, 100% 0, 100% 57%, var(--right-sleeve), 100% 78%, 100% 80%, 55% 80%, 50% 83%, 43% 80%, 0 80%, 0 79%, 28% 79%, 34% 77%, 37% 73%, 40% 66%, 41% 60%, 37% 57%, 0 57%); }
.arm-left { clip-path: polygon(0 57%, var(--left-sleeve), 0 79%); transform-origin: 35% 58%; }
.arm-right { clip-path: polygon(100% 57%, var(--right-sleeve), 100% 78%); transform-origin: 69% 58%; }
.boot-left { clip-path: polygon(0 77%, 51% 77%, 50% 100%, 0 100%); transform-origin: 41% 79%; }
.boot-right { clip-path: polygon(51% 77%, 100% 77%, 100% 100%, 50% 100%); transform-origin: 60% 79%; }
.robot.blocked .pointer { background: #ffba7a; color: #552616; }
.field[data-state="blocked"] .floating-title { background: #ffdfb6; color: #502e24; box-shadow: 0 4px #ca8f62, 0 10px 14px #15152b80; }
.field[data-state="blocked"] #field-icon { background: #9e4e2f; color: white; }
.compass { position: absolute; inset: 14%; z-index: 3; pointer-events: none; }
.robot .pointer {
  top: 50%;
  left: 100%;
  transform: translate(-10%, -50%);
  width: clamp(11px, 1.4vw, 17px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: #29294b;
  font: 900 clamp(11px, 1.4vw, 17px)/.7 Manrope, sans-serif;
  background: #fff5d2;
  border-radius: 50%;
  box-shadow: 0 1px 3px #16203a8f;
}
.robot { container-type: inline-size; --lamp: #53eaff; }
.robot[data-skin="mint"] { --lamp: #9fff58; }
.robot[data-skin="berry"] { --lamp: #ff7bce; }
.robot[data-skin="lemon"] { --lamp: #ffdb48; }
.robot[data-skin="lavender"] { --lamp: #d693ff; }
.robot[data-skin="coral"] { --lamp: #ff946e; }
.robot[data-skin="graphite"] { --lamp: #8be5ff; }
.robot[data-skin="ice"] { --lamp: #83f6ff; }
.robot[data-skin="flame"] { --lamp: #ffcc57; }
.robot[data-skin="nova"] { --lamp: #e3b5ff; }
.suit-overlay { color: var(--lamp); fill: currentColor; overflow: visible; }
.inset-light { filter: url(#led-bloom); animation: panel-breathe 3s ease-in-out infinite alternate; }
@keyframes panel-breathe { from { opacity: .58; } to { opacity: .94; } }

.robot .aura { inset: -16%; border-radius: 50%; pointer-events: none; animation: robo-aurora 2.8s ease-in-out infinite alternate; }
@keyframes robo-aurora { from { transform: scale(.92); opacity: .65; } to { transform: scale(1.04); opacity: 1; } }
.effect-aurora .aura { background: radial-gradient(ellipse, #c6fcffb0, #38caff55 36%, transparent 70%); }
.effect-aurora .aura::after, .effect-nova .aura::after, .effect-nova .aura::before {
  content: ""; position: absolute; inset: 54% 6% 13%; border-radius: 50%;
  border: max(1px,.55cqw) solid #abf7ff; transform: rotate(-16deg);
  box-shadow: 0 0 3cqw #62dfff, inset 0 0 2cqw #62dfff;
}
/* Project a tilted circular orbit onto the sprite; depth controls occlusion. */
@property --orbit-phase { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes orbit-lap { from { --orbit-phase: 0turn; } to { --orbit-phase: var(--orbit-end); } }
.robot .particle {
  --angle: calc(var(--orbit-phase) + var(--start-angle));
  --depth: sin(var(--angle));
  --radius: 49cqw;
  --minor-radius: 18cqw;
  left: 50%; top: 50%; width: var(--mote-size); height: var(--mote-size);
  pointer-events: none; text-align: center; font: normal 700 var(--mote-size)/1 system-ui, sans-serif;
  transform: translate(-50%, -50%) rotate(var(--tilt))
    translate(calc(var(--radius) * cos(var(--angle))), calc(var(--minor-radius) * var(--depth)))
    rotate(calc(0deg - var(--tilt))) scale(calc(.82 + .25 * var(--depth)));
  opacity: calc(.77 + .23 * var(--depth));
  z-index: calc(-1 + 3 * clamp(0, 10000 * var(--depth), 1));
  animation: orbit-lap var(--lap) linear infinite;
}
.robot .aura { z-index: -2; }
.effect-aurora .particle { color: #e7feff; text-shadow: 0 0 1.4cqw #67efff, 0 0 3.4cqw #48caff; }
.effect-flame .aura { background: radial-gradient(ellipse at 50% 68%, #ffe075b0, #fa4e246b 34%, transparent 66%); }
.robot .fire-tongue {
  bottom: 4%; width: 16%; height: 39%; pointer-events: none;
  clip-path: url(#flame-contour);
  background: linear-gradient(12deg, #ffe780 4%, #ffb11d 26%, #ff6d24 49%, #ff4122 79%, #ffbc58);
  transform-origin: center bottom;
  filter: drop-shadow(0 0 1.4cqw #fd5427aa);
  animation: flame-rise 1.35s ease-in-out infinite alternate;
}
.fire-tongue::after {
  content: ""; position: absolute; inset: 28% 20% -3% 23%; clip-path: url(#flame-contour);
  background: linear-gradient(22deg, #fffad6, #ffec89 43%, #ffc43c);
}
.robot .fire-0 { left: 3%; height: 48%; }
.robot .fire-1 { left: 13%; height: 70%; animation-delay: -.7s; }
.robot .fire-2 { left: 29%; height: 26%; animation-delay: -.4s; }
.robot .fire-3 { right: 4%; height: 65%; animation-delay: -.9s; }
.robot .fire-4 { right: 16%; height: 46%; animation-delay: -.2s; }
.robot::before {
  content: ""; position: absolute; pointer-events: none; z-index: -1;
  left: 7%; right: 7%; bottom: -4.5%; height: 15%; border-radius: 50%;
  background: radial-gradient(ellipse closest-side, transparent 12%, color-mix(in srgb, var(--lamp) 34%, transparent) 63%,
    var(--lamp) 79%, color-mix(in srgb, var(--lamp) 76%, white) 82%, color-mix(in srgb, var(--lamp) 23%, transparent) 89%, transparent);
}
.floor-mist { z-index: -1; }
.floor-mist > use {
  transform-box: fill-box; transform-origin: center bottom;
  animation: mist-lift 3.8s ease-out infinite; animation-delay: -.9s;
}
.floor-mist > use:nth-child(2) { animation-duration: 4.4s; animation-delay: -2.6s; }
.floor-mist > use:nth-child(3) { animation-duration: 3.2s; animation-delay: -2s; }
@keyframes mist-lift {
  0% { opacity: 0; transform: translateY(4%) scale(.72,.45); }
  30% { opacity: .85; }
  65% { opacity: .6; }
  100% { opacity: 0; transform: translate(9%,-22%) scale(1.22,1.12); }
}
@keyframes flame-rise { from { transform: skewX(-11deg) scale(.92,.83); } to { transform: skewX(8deg) scale(1.03,1.13); } }
.effect-flame .particle {
  --radius: 41cqw; --minor-radius: 8.2cqw; top: 93%;
  height: calc(1.22 * var(--mote-size)); border-radius: 75% 24% 63% 52%;
  background: radial-gradient(ellipse at 44% 69%, #fffbd2 14%, #ffe472 36%, #ff991f 66%, #fb4818 90%);
  box-shadow: 0 0 1cqw #ffac32, 0 0 2.2cqw #ff6524;
}
.effect-nova .aura { background: radial-gradient(ellipse, #fff0cba8, #9360ff88 38%, transparent 68%); }
.effect-nova .aura::before { inset: 27% 1% 25%; border-color: #c7a5ff transparent #bd94ff #ffe6a6; transform: rotate(-34deg); box-shadow: 0 0 2cqw #a97cff88; }
.effect-nova .aura::after { inset: 34% 4% 27%; border-color: #ffe6b8 #d7baff transparent #ffe5ba; transform: rotate(28deg); box-shadow: 0 0 1.8cqw #ffe1a385; }
.effect-nova .particle { color: #fff2b9; text-shadow: 0 0 1.4cqw #ffe09a, 0 0 3.4cqw #b983ff; }

.editor { padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.editor-heading, .section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.quiet { border: 0; padding: 4px 0; background: none; color: var(--violet-dark); font-size: 12px; font-weight: 850; }
.quiet:not(:disabled):hover { text-decoration: underline; }
.quiet:disabled { color: #777995; }
.palette { display: grid; grid-template-columns: repeat(var(--columns, 5), minmax(0, 1fr)); gap: 6px; margin: 15px 0 12px; }
@media (max-width: 520px) {
  .palette:has([data-command="callA"]:not([hidden])) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .palette:has([data-command="callB"]:not([hidden])) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.palette button { min-width: 0; min-height: 56px; padding: 4px 1px; background: #eeebff; border: 1px solid #e4dfff; color: #392780; border-radius: 11px; font-size: clamp(10px, 1vw, 12px); font-weight: 850; }
.palette span { display: block; font-size: 20px; line-height: 1.18; }
.palette button[data-command="take"] { background: #e2f7fa; border-color: #c9edf4; color: #13576e; }
.palette button[data-command="repeat"] { background: #fff0d5; border-color: #f4e2b3; color: #734510; }
.procedures { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.procedures .secondary { min-height: 32px; padding: 0 9px; font-size: 12px; }
.procedures .secondary[aria-pressed="true"] { color: #fff; background: #4936a1; }
.palette button[data-command^="call"], .block.callA, .block.callB { background: #dff6eb; color: #215940; border-color: #b6dbc9; }
.chapter-picker { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 13px; font-weight: 750; max-width: 100%; }
.chapter-picker select { min-width: 0; padding: 6px; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; background: white; font: inherit; }
.palette button:disabled { opacity: .55; }
.palette button:hover:not(:disabled) { border-color: currentColor; }
.queue { min-height: 125px; max-height: 290px; overflow: auto; padding: 10px; background: #f7f6fc; border: 1px solid #eae8f4; border-radius: 13px; }
.queue-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 800; margin-bottom: 7px; }
.queue-head b { color: #635698; }
.blocks { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.empty-program { display: grid; place-items: center; width: 100%; min-height: 68px; padding: 5px; border: 1px dashed #d9d4ea; border-radius: 9px; color: var(--muted); font-size: 12px; font-weight: 750; }
.block { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 2px 3px 2px 8px; border: 1px solid #e0dbf9; background: #eae5ff; border-radius: 7px; font-size: 12px; font-weight: 850; }
.block.take { background: #e0f6fa; border-color: #cceaf2; }
.block.active-block { box-shadow: inset 0 0 0 2px #6248d9; background: #ded4ff; }
.block.failed-block { box-shadow: inset 0 0 0 2px #b14b2a; background: #ffe4d8; }
.remove { border: 0; min-width: 27px; min-height: 27px; background: #ffffffa0; border-radius: 5px; font-weight: 850; }
.loop { width: 100%; padding: 5px; border: 1px solid #e5c88d; border-radius: 8px; background: #fff1d8; }
.loop-head { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.loop-select, .loop select { min-height: 31px; border: 1px solid #e7c78b; border-radius: 6px; background: #fffefa; font-size: 11px; font-weight: 850; }
.loop-select[aria-pressed="true"] { background: #f9d89e; }
.loop .blocks { padding: 4px; }
.inside-active { outline: 1px dashed #93611d; border-radius: 5px; }
.root-target { width: 100%; text-align: left; padding: 7px 2px; }
.run-row { display: flex; gap: 7px; margin-top: 11px; }
.primary, .secondary { border-radius: 11px; min-height: 42px; padding: 0 13px; font-size: 13px; font-weight: 850; }
.primary, .secondary, .palette button, .mission-card { transition: transform 150ms ease-out; }
.primary:active:not(:disabled), .secondary:active:not(:disabled), .palette button:active:not(:disabled), .mission-card:active:not(:disabled) { transform: scale(.96); }
.primary { border: 1px solid transparent; color: #fff; background: var(--violet); }
.primary:hover:not(:disabled) { background: var(--violet-dark); }
.primary:disabled { background: #e7e2fc; color: #6b5e9b; }
.secondary { border: 1px solid var(--line); background: #f9f8ff; }
.secondary:hover:not(:disabled), .secondary[aria-pressed="true"], .secondary[aria-expanded="true"] { color: var(--violet-dark); background: #ede8ff; }
.run-row .primary { flex: 1; }
.run-row .primary span { margin-right: 3px; }
.hint-text, .feedback { margin-top: 9px; min-height: 36px; display: flex; align-items: center; padding: 7px 10px; color: #544a78; font-size: 12px; font-weight: 750; border-radius: 9px; background: #f3efff; }
.feedback.warning { background: #fff1de; color: #754617; }
.feedback.success { background: #e4f9ed; color: #21563d; }
.victory { display: grid; gap: 8px; margin-top: 8px; }
.award-list { display: flex; flex-wrap: wrap; gap: 5px; }
.award { padding: 4px 8px; border-radius: 7px; background: #e4f9ed; color: #21563d; font-size: 11px; font-weight: 850; }
.award-2, .award-8 { background: #fff0d2; color: #744411; }
.award-4 { background: #eee2ff; color: #59388b; }
.victory button { justify-self: start; }

.missions { margin-top: 21px; }
.section-title span { color: var(--muted); font-size: 12px; font-weight: 800; text-align: right; }
.mission-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.mission-card { display: grid; align-items: center; grid-template-columns: auto 1fr; gap: 1px 7px; min-height: 64px; padding: 8px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.mission-card[aria-current] { border-color: #8e79f2; box-shadow: inset 0 0 0 1px #8e79f2; }
.mission-card:disabled { background: #edebf7; color: #4f526d; }
.mission-card strong { font-size: 12px; line-height: 1.2; }
.mission-card small { font-size: 10px; font-weight: 800; color: var(--muted); }
.mission-icon { display: grid; grid-row: span 2; place-items: center; width: 28px; height: 28px; background: #e9e4ff; border-radius: 9px; color: #5543aa; font-size: 11px; font-weight: 900; }
.guest-note { margin-top: 12px; color: var(--muted); font-size: 12px; font-weight: 700; }
.reward-guide { margin-top: 9px; max-width: 650px; color: var(--muted); font-size: 12px; font-weight: 700; }
.reward-guide summary { width: fit-content; cursor: pointer; color: var(--violet-dark); }
.reward-guide p { margin: 6px 0 0 15px; }

.extra { background: #fff; border: 1px solid var(--line); padding: clamp(15px, 3vw, 28px); border-radius: 23px; }
.extra > p { margin-top: 7px; color: var(--muted); font-size: 14px; }
.skins { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 20px 0 6px; }
.skin-card { display: flex; flex-direction: column; gap: 7px; padding: 8px; border: 1px solid var(--line); border-radius: 15px; }
.skin-preview { position: relative; border: 0; padding: 0 0 13px; height: clamp(132px, 15vw, 180px); display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: radial-gradient(closest-side, var(--swatch), #f0edfc); }
.view-skin { position: absolute; bottom: 6px; right: 6px; border-radius: 6px; padding: 3px 6px; font-size: 10px; font-weight: 800; color: white; background: #20213bd9; }
.skin-preview:has(.aura) { background: radial-gradient(ellipse, #494674, #252647 85%); }
.skin-preview:has(.effect-solar) { background: radial-gradient(ellipse, #78502b, #2b2231 85%); }
.skin-preview:has(.robot[data-skin="aurum"]) { background: radial-gradient(ellipse, #355570, #1d2437 85%); }
.skin-preview .robot { width: min(82%, 137px); }
.skin-effect { color: #59388b; font-size: 11px; font-weight: 850; }
.skin-card h3 { font-size: clamp(12px, 1.8vw, 17px); }
.skin-card p { color: var(--muted); font-size: 11px; }
.skin-card .skin-action { margin-top: auto; }
.skin-card .secondary:disabled { color: var(--muted); }
#shop-status:empty, #account-status:empty { display: none; }
#leader-list { margin-top: 17px; }
.leader-empty { padding: 15px; border-radius: 10px; background: #f3efff; color: #534576; font-size: 14px; }
.leader-table { width: 100%; border-spacing: 0; text-align: left; font-size: 13px; overflow-wrap: anywhere; }
.leader-table th, .leader-table td { border-bottom: 1px solid var(--line); padding: 9px 5px; }
.leader-table th { color: var(--muted); }
.leader-table td:nth-child(2) { font-weight: 850; }
.rank-player { display: flex; align-items: center; gap: 9px; }
.rank-bot {
  position: relative; flex: 0 0 44px; height: 41px; border-radius: 11px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 75%, var(--halo, #d5d4e8), #f4f2fc 82%);
}
.rank-bot .robot {
  display: block; width: 100%; aspect-ratio: 176 / 272; margin-top: 3px;
  clip-path: polygon(0 0, 100% 0, 100% 42%, 81% 48%, 68% 49%, 45% 49%, 22% 46%, 0 41%);
}
.rank-bot[data-effect="solar"] { --halo: #efbe51; --spark: '✧'; }
.rank-bot[data-effect="solar"]:has(> [data-skin="aurum"]) {
  --halo: #91caf0; --spark: '✦'; --glint-shadow: #35597e;
}
.rank-bot[data-effect="aurora"] { --halo: #85d9ef; --spark: '❄'; }
.rank-bot[data-effect="flame"] { --halo: #ffa05a; --spark: '✦'; }
.rank-bot[data-effect="nova"] { --halo: #cd9ef2; --spark: '✴'; }
.rank-bot[data-effect]::after {
  content: var(--spark); position: absolute; right: 1px; top: 0; color: white;
  text-shadow: 0 0 2px var(--glint-shadow, #806041), 0 0 4px var(--halo); font-size: 11px;
  animation: portrait-glint 3.8s ease-in-out infinite alternate;
}
@keyframes portrait-glint { from { opacity: .3; transform: scale(.72); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .rank-bot[data-effect]::after { animation: none; } }
.rank-zero { background: #fff8e6; }
.rank-zero td:first-child { color: #785115; font-weight: 850; }
.rank-pages { margin-top: 12px; display: flex; gap: 8px; }

dialog { width: min(420px, calc(100% - 28px)); padding: 20px; border: 1px solid var(--line); border-radius: 21px; color: var(--ink); }
dialog::backdrop { background: #171a37a0; }
#fitting { padding: 0; width: min(516px, calc(100% - 24px)); max-height: 95dvh; border: 0; }
.fitting-stage {
  position: relative; display: grid; place-items: center; isolation: isolate; overflow: hidden;
  height: clamp(245px, 54dvh, 450px);
  background: radial-gradient(ellipse at 50% 66%, color-mix(in srgb, var(--swatch) 33%, #171c36), transparent 62%), #171a33;
}
.fitting-stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, #cddcf947 1px, transparent 1.2px) 4px 4px/23px 23px; }
.fitting-stage::after {
  content: ""; position: absolute; left: 17%; right: 17%; bottom: 10%; height: 21%; z-index: -1; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--swatch) 75%, transparent);
  background: radial-gradient(ellipse, #121627 6%, transparent 72%); box-shadow: inset 0 -4px 0 #ffffff1f, 0 9px 22px #07082069;
}
#fitting-model { display: grid; place-items: center; width: 77%; height: 79%; margin-top: -4%; transition: transform 280ms ease-out; transform-origin: center 40%; }
#fitting-model .robot { width: auto; height: 89%; max-width: 100%; }
.fitting-stage.zoomed #fitting-model { transform: scale(1.65) translateY(7%); }
.fitting-stage button { height: 36px; border: 1px solid #ffffff38; border-radius: 10px; padding: 0 12px; background: #22263de6; color: #fff; font-weight: 800; }
#fitting-close { position: absolute; right: 12px; top: 12px; z-index: 2; font-size: 22px; line-height: 1; }
.fitting-controls { position: absolute; z-index: 2; bottom: 9px; display: flex; gap: 6px; align-items: center; }
#fitting-zoom[aria-pressed="true"] { color: #232141; background: #eeecff; }
.fitting-info { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px; }
.fitting-info h2 { font: 700 clamp(17px,4vw,24px)/1.3 var(--display); letter-spacing: -.05em; }
.fitting-info p { margin-top: 5px; color: var(--muted); font-size: 12px; }
#secret-shop {
  width: min(520px, calc(100% - 24px));
  max-height: 94dvh;
  padding: 0;
  border: 1px solid #7d5340;
  background: #fff5e0;
  color: #3e2432;
  box-shadow: 0 15px 55px #0f092878;
}
#secret-shop::backdrop { background: #1e132bc9; }
.secret-shop-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  justify-items: center;
  min-height: 234px;
  height: min(51dvh, 370px);
  padding: 23px 13px 14px;
  background:
    radial-gradient(ellipse at 49% 68%, #976347, #483245 54%, #241a32 87%),
    #211a31;
}
.secret-shop-stage::before, .secret-shop-stage::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.secret-shop-stage::before {
  inset: 0;
  background:
    radial-gradient(circle, #fed79866 1px, transparent 1.5px) 9px 8px / 31px 37px,
    repeating-linear-gradient(161deg, #56334b00 0 24px, #3d2c481a 25px 31px, #ffc78d14 32px 33px);
  mask-image: radial-gradient(ellipse, #000, #000 55%, #0000 96%);
}
.secret-shop-stage::after {
  inset: auto 17% 7%;
  height: 17%;
  border: 1px solid #f9c98485;
  border-radius: 50%;
  background: radial-gradient(ellipse, #241c32, #603c45a6 65%);
  box-shadow: inset 0 -4px #ffde9a40, 0 6px 19px #160e20ad;
}
#secret-shop-title {
  max-width: calc(100% - 62px);
  color: #fff2ce;
  font: 700 clamp(15px, 4vw, 23px)/1.24 var(--display);
  letter-spacing: -.055em;
  text-align: center;
}
#secret-shop-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #f8d9a165;
  border-radius: 11px;
  background: #3e2b42;
  color: #fff0d4;
  font-size: 22px;
  line-height: 1;
}
#secret-shop-close:hover { background: #634051; }
#secret-shop-model { display: grid; place-items: center; width: 90%; min-height: 0; }
#secret-shop-model .robot { width: auto; height: 87%; max-width: 85%; }
.secret-shop-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px 12px;
  align-items: center;
  padding: 17px;
}
.secret-shop-details h3 { font: 700 clamp(17px, 5vw, 24px)/1.15 var(--display); letter-spacing: -.055em; }
#secret-shop-price { margin-top: 5px; color: #793d23; font-size: 14px; font-weight: 850; }
#secret-shop-balance { margin-top: 4px; color: #6d4c4c; font-size: 12px; font-weight: 700; }
#secret-shop-action { min-width: min(115px, 34vw); background: #854220; }
#secret-shop-action:hover:not(:disabled) { background: #682f16; }
#secret-shop-action:disabled { background: #ebd8c0; color: #664743; }
#secret-shop-status { grid-column: 1 / -1; color: #725054; font-size: 12px; font-weight: 750; }
#secret-shop-status:empty { display: none; }
.dialog-head, .account-modes { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 11px; }
.account-modes button { flex: 1; }
#account-form label { display: grid; gap: 4px; margin-top: 12px; font-size: 13px; font-weight: 850; }
#account-form input { width: 100%; min-height: 42px; border: 1px solid #c7c3da; border-radius: 9px; padding: 6px 9px; font-size: 16px; }
#nick-note { color: var(--muted); font-size: 11px; }
#submit-account, #logout { margin-top: 14px; }
#account-status { margin-top: 9px; color: #873914; font-size: 13px; }

@media (max-width: 960px) {
  .top-inner, .wrap { width: calc(100% - 40px); }
  .board-panel, .editor { padding: 16px; }
  .mission-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .skins { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 710px) {
  .top-inner, .wrap { width: calc(100% - 28px); }
  .top-inner { flex-wrap: wrap; column-gap: 6px; row-gap: 8px; padding: 9px 0; }
  nav { order: 3; width: 100%; justify-content: center; }
  nav button { flex: 1; }
  .wrap { padding-top: 22px; }
  .hero { align-items: start; }
  .playground { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .board-panel { gap: 10px; }
  .field { gap: 10px; }
  .board { width: 100%; }
  .mission-card { min-height: 59px; }
  .skins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 370px) {
  .mission-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-panel, .editor { padding: 11px; }
  .hint-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .gate-grille, .switch-pad::after { transition: none; }
  .field[data-state="ready"] .floating-title, .field[data-state="success"] .floating-title,
  .field[data-state="success"] .destination .surface { animation: none; }
  .robot .aura, .robot .particle, .robot .fire-tongue, .inset-light,
  .robot .aura::before, .robot .aura::after { animation: none; }
  .floor-mist > use { animation: none; opacity: .48; }
  .solar-facet { animation: none; opacity: .75; }
  .solar-arcs > use { animation: none; opacity: .45; }
  .solar-arcs > use:nth-child(n+5) { animation: none; opacity: 0; }
  .solar-wave > use { animation: none; opacity: .26; stroke-dasharray: none; stroke-width: .9; }
  #fitting-model { transition: none; }
  .primary, .secondary, .palette button, .mission-card { transition: none; }
  .primary:active:not(:disabled), .secondary:active:not(:disabled), .palette button:active:not(:disabled), .mission-card:active:not(:disabled) { transform: none; }
}
