:root {
  --bg-top: #9be9ff;
  --bg-mid: #63c9f0;
  --bg-bottom: #2277b8;

  --ocean-1: #1686c7;
  --ocean-2: #0f6bab;
  --ocean-3: #0a4f87;

  --sand-1: #fde5a5;
  --sand-2: #efc96f;
  --sand-3: #c98d37;

  --grass-1: #93ec7d;
  --grass-2: #59c85a;
  --grass-3: #2f9344;

  --wood-1: #f0d299;
  --wood-2: #cf8e45;
  --wood-3: #7a4c1f;
  --wood-4: #4f2d12;

  --ui-navy: #17304f;
  --ui-navy-2: #0e2138;
  --ui-blue-soft: #27496d;
  --ui-cyan: #59d4ff;
  --ui-cyan-soft: #c8f4ff;
  --ui-gold: #f2c35b;
  --ui-gold-soft: #ffe39a;
  --ui-locked: #6e8298;
  --ui-locked-soft: #b7c6d6;
  --ui-success: #45d39c;
  --ui-success-soft: #d8ffef;
  --ui-text: #f6fbff;
  --ui-muted: #c8d7e6;

  --panel: rgba(11, 24, 45, 0.78);
  --panel-strong: rgba(7, 18, 36, 0.95);
  --panel-soft: rgba(17, 36, 67, 0.72);
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f6fbff;
  --muted: #d4e2ef;
  --muted-2: #abc0d5;

  --shadow-xs: 0 6px 18px rgba(0, 0, 0, 0.14);
  --shadow-sm: 0 12px 28px rgba(0, 0, 0, 0.18);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.34);

  --glow-cyan: 0 0 22px rgba(89, 212, 255, 0.16);
  --glow-gold: 0 0 22px rgba(242, 195, 91, 0.18);
  --glow-green: 0 0 24px rgba(69, 211, 156, 0.16);

  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 28px;

  --sidebar-accent: rgba(242, 195, 91, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  font-family: 'Fredoka', 'Quicksand', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 244, 182, 0.24), transparent 18%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.08), transparent 16%),
    linear-gradient(180deg, #9be7ff 0%, #67c8f1 22%, #257fc0 68%, #0d4a7d 100%);
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 100%, rgba(0, 0, 0, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.08));
  z-index: 0;
}

.app-shell {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 1;
  transition: opacity 0.16s ease-in-out, transform 0.16s ease-in-out;
  opacity: 1;
  transform: scale(1);
}

.app-shell.view-transitioning {
  opacity: 0;
  transform: scale(0.995);
}

.start-site-footer {
  position: relative;
  z-index: 3;
  padding: 18px clamp(18px, 4vw, 48px) 26px;
  color: #dcecff;
  background: linear-gradient(180deg, rgba(5, 20, 45, 0.86), rgba(5, 18, 39, 0.96));
  border-top: 1px solid rgba(174, 218, 255, 0.18);
}

.start-site-footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.start-site-footer-brand {
  max-width: 560px;
}

.start-site-footer-brand strong {
  display: block;
  font-size: 1rem;
  color: #ffffff;
}

.start-site-footer-brand p,
.start-site-footer-brand small {
  margin: 4px 0 0;
  color: rgba(226, 239, 255, 0.82);
  line-height: 1.45;
}

.start-site-footer-brand small {
  display: block;
  font-size: 0.78rem;
  color: rgba(226, 239, 255, 0.66);
}

.start-site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 14px;
}

.start-site-footer-links a {
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(140, 209, 255, 0.42);
}

.start-site-footer-links a:hover {
  color: #9ee3ff;
}

.legal-page-body {
  min-height: 100vh;
  height: auto;
  margin: 0;
  overflow: auto;
  color: #17314f;
  background: radial-gradient(circle at 18% 12%, rgba(27, 159, 255, 0.16), transparent 34%),
    linear-gradient(180deg, #f5fbff 0%, #eef6fb 100%);
}

.legal-page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 54px;
}

.legal-back-link {
  display: inline-flex;
  margin-bottom: 20px;
  color: #0b65ad;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 101, 173, 0.32);
}

.legal-hero {
  padding: clamp(26px, 5vw, 46px) 0 22px;
}

.legal-kicker {
  margin: 0 0 10px;
  color: #0b74d1;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #0d2c4e;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.legal-hero p {
  max-width: 720px;
  margin: 16px 0 0;
  color: #385a79;
  font-size: 1.08rem;
  line-height: 1.6;
}

.legal-content {
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(108, 167, 210, 0.28);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(25, 65, 105, 0.11);
}

.legal-content h2 {
  margin: 26px 0 8px;
  color: #0c355f;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: #315372;
  line-height: 1.65;
}

.legal-content a {
  color: #076fc5;
  font-weight: 850;
}

.legal-link-list {
  margin: 14px 0 0;
  padding-left: 22px;
}

.legal-small-note {
  margin-top: 28px;
  font-size: 0.9rem;
  color: #607b95;
}

@media (max-width: 760px) {
  .start-site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .start-site-footer-links {
    justify-content: flex-start;
  }
}

.start-screen {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 242, 172, 0.3), transparent 16%),
    radial-gradient(circle at 84% 10%, rgba(255, 255, 255, 0.08), transparent 14%),
    linear-gradient(180deg, #92e6ff 0%, #59c3ee 28%, #1878b8 68%, #0b4678 100%);
}

.start-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.start-overlay {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.start-panel {
  position: relative;
  width: min(760px, 100%);
  padding: 30px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(15, 37, 63, 0.84), rgba(7, 18, 34, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 30px 80px rgba(0, 0, 0, 0.34),
    0 0 40px rgba(89, 212, 255, 0.08);
  backdrop-filter: blur(18px);
}

.start-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.05), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(122,246,207,0.07), transparent 18%);
}

.start-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #ffe7ae;
  background: linear-gradient(180deg, rgba(242,195,91,0.18), rgba(118,82,18,0.12));
  border: 1px solid rgba(242,195,91,0.24);
}

.start-panel h1 {
  margin: 0 0 14px;
  font-size: 46px;
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.start-panel p {
  margin: 0;
  max-width: 58ch;
  color: #d7e8f6;
  line-height: 1.65;
  font-size: 16px;
}

.start-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.role-card {
  position: relative;
  display: grid;
  gap: 8px;
  text-align: left;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  color: #eff9ff;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.role-card:hover {
  transform: translateY(-3px);
  border-color: rgba(89, 212, 255, 0.24);
  box-shadow: 0 18px 34px rgba(0,0,0,0.2);
}

.role-card.active {
  border-color: rgba(122, 246, 207, 0.34);
  background:
    linear-gradient(180deg, rgba(122,246,207,0.2), rgba(18,84,66,0.22));
  box-shadow:
    0 20px 36px rgba(0,0,0,0.22),
    0 0 24px rgba(122,246,207,0.12);
}

.role-card strong {
  font-size: 18px;
}

.role-card span:last-child {
  color: #d5e7f4;
  line-height: 1.5;
}

.role-card-icon {
  font-size: 26px;
}

.start-form-card {
  margin-top: 22px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(9,24,43,0.78), rgba(7,18,32,0.86));
}

.start-field-label {
  display: block;
  margin-bottom: 10px;
  color: #b6d8ee;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.start-input {
  width: 100%;
  height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
  color: #f6fbff;
  padding: 0 16px;
  font-size: 16px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.start-input::placeholder {
  color: #9cb8d1;
}

.start-input:focus {
  border-color: rgba(89, 212, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 0 0 4px rgba(89, 212, 255, 0.08);
}

.start-action-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 16px;
}

.start-role-note {
  color: #d0e3f2;
  font-weight: 700;
  line-height: 1.5;
  max-width: 52ch;
}

.start-sun {
  position: absolute;
  top: 8%;
  left: 9%;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 248, 196, 0.98), rgba(255, 228, 140, 0.45) 48%, rgba(255, 228, 140, 0) 72%);
  filter: blur(1px);
  box-shadow: 0 0 80px rgba(255, 228, 140, 0.28);
}

.start-sun::after {
  content: "";
  position: absolute;
  inset: -90px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255,241,174,0.22), transparent 18%, rgba(255,241,174,0.18), transparent 36%, rgba(255,241,174,0.2), transparent 54%, rgba(255,241,174,0.18), transparent 72%, rgba(255,241,174,0.18), transparent 88%);
  animation: slowSpin 26s linear infinite;
}

.start-cloud {
  position: absolute;
  width: 120px;
  height: 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  filter: blur(0.2px);
}

.start-cloud::before,
.start-cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
}

.start-cloud::before {
  width: 50px;
  height: 50px;
  left: 14px;
  top: -18px;
}

.start-cloud::after {
  width: 58px;
  height: 58px;
  right: 16px;
  top: -20px;
}

.cloud-a {
  top: 16%;
  left: 62%;
  animation: cloudDrift 22s linear infinite;
}

.cloud-b {
  top: 23%;
  left: 76%;
  transform: scale(0.9);
  animation: cloudDrift 28s linear infinite reverse;
}

.cloud-c {
  top: 12%;
  left: 48%;
  transform: scale(0.72);
  animation: cloudDrift 20s linear infinite;
}

.start-water-layer {
  position: absolute;
  left: -10%;
  width: 120%;
  border-radius: 45% 55% 0 0;
}

.water-back {
  bottom: 0;
  height: 43%;
  background:
    linear-gradient(180deg, rgba(30, 145, 206, 0.88), rgba(8, 89, 152, 0.96));
}

.water-mid {
  bottom: -1%;
  height: 34%;
  opacity: 0.72;
  background:
    radial-gradient(circle at 20% 18%, rgba(255,255,255,0.12), transparent 18%),
    linear-gradient(180deg, rgba(28, 129, 194, 0.84), rgba(8, 77, 136, 0.94));
  animation: waterBob 6s ease-in-out infinite;
}

.water-front {
  bottom: -3%;
  height: 27%;
  opacity: 0.94;
  background:
    linear-gradient(180deg, rgba(18, 115, 181, 0.96), rgba(8, 66, 121, 1));
  animation: waterBob 4.8s ease-in-out infinite reverse;
}

.start-island {
  position: absolute;
  bottom: 11%;
  width: 220px;
  height: 122px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, #77dc63 0, #55c04f 38%, #2f913c 72%, transparent 73%),
    radial-gradient(ellipse at 50% 72%, #f5d57f 0, #d7aa52 46%, #8f5d24 74%, #5f3712 100%);
  box-shadow:
    inset 0 6px 0 rgba(255,255,255,0.18),
    0 18px 0 rgba(0,0,0,0.08),
    0 36px 40px rgba(0,0,0,0.18);
  animation: islandFloat 5.6s ease-in-out infinite;
}

.start-island::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -12px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  filter: blur(1px);
}

.island-left {
  left: 9%;
}

.island-center {
  left: 39%;
  bottom: 13%;
  transform: scale(0.9);
  animation-delay: -1.4s;
}

.island-right {
  right: 8%;
  bottom: 10%;
  transform: scale(1.05);
  animation-delay: -2.1s;
}

.palm {
  position: absolute;
  bottom: 44px;
  width: 10px;
  height: 58px;
  border-radius: 999px;
  background: linear-gradient(180deg, #9f6a2f, #653a17);
  transform-origin: bottom center;
}

.palm::before,
.palm::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -16px;
  width: 48px;
  height: 16px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(90deg, #8ef287, #34a647);
  transform-origin: 4px 100%;
}

.palm::before {
  transform: translateX(-8px) rotate(-28deg);
}

.palm::after {
  transform: translateX(-36px) rotate(28deg);
}

.palm-a { left: 38px; transform: rotate(-6deg); }
.palm-b { left: 72px; height: 64px; }
.palm-c { left: 46px; height: 62px; transform: rotate(4deg); }
.palm-d { left: 132px; height: 54px; transform: rotate(-7deg); }
.palm-e { left: 52px; height: 66px; }
.palm-f { left: 150px; height: 58px; transform: rotate(7deg); }

.island-hut,
.island-totem,
.island-castle {
  position: absolute;
}

.island-hut {
  left: 102px;
  bottom: 40px;
  width: 44px;
  height: 28px;
  border-radius: 8px;
  background: #a9652f;
  box-shadow: inset 0 3px 0 rgba(255,255,255,0.14);
}

.island-hut::before {
  content: "";
  position: absolute;
  left: -6px;
  top: -18px;
  width: 56px;
  height: 20px;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  background: #dd6e42;
}

.island-totem {
  left: 96px;
  bottom: 34px;
  width: 20px;
  height: 54px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffe39a, #a36b22);
}

.island-totem::before,
.island-totem::after {
  content: "";
  position: absolute;
  left: -20px;
  width: 60px;
  height: 8px;
  border-radius: 999px;
  background: #f4cf73;
}

.island-totem::before { top: 12px; }
.island-totem::after { top: 28px; }

.island-castle {
  left: 104px;
  bottom: 36px;
  width: 56px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(180deg, #efe4d5, #c7b8a6);
}

.island-castle::before,
.island-castle::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 38px;
  top: -14px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #e8ddd1, #bba997);
}

.island-castle::before { left: -4px; }
.island-castle::after { right: -4px; }

.start-boat {
  position: absolute;
  left: 50%;
  bottom: 17%;
  width: 112px;
  height: 42px;
  border-radius: 0 0 26px 26px;
  background: linear-gradient(180deg, #9b5624, #6c3714);
  transform: translateX(-50%);
  animation: boatSail 7s ease-in-out infinite;
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}

.start-boat::before {
  content: "";
  position: absolute;
  left: 50px;
  bottom: 16px;
  width: 5px;
  height: 54px;
  border-radius: 999px;
  background: #744319;
}

.boat-sail {
  position: absolute;
  left: 54px;
  bottom: 32px;
  width: 34px;
  height: 44px;
  background: linear-gradient(180deg, #fff7d8, #f5deb4);
  clip-path: polygon(0 0, 100% 16%, 100% 100%, 0 100%);
}

.boat-flag {
  position: absolute;
  left: 57px;
  bottom: 66px;
  width: 20px;
  height: 10px;
  background: #ff6f47;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.start-fish {
  position: absolute;
  width: 44px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7fe6ff, #2bb8e8);
  opacity: 0.78;
}

.start-fish::before {
  content: "";
  position: absolute;
  right: -10px;
  top: 2px;
  width: 16px;
  height: 14px;
  background: inherit;
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

.start-fish::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #083757;
}

.fish-a { left: 18%; bottom: 21%; animation: fishSwim 14s linear infinite; }
.fish-b { left: 64%; bottom: 24%; transform: scale(0.8) scaleX(-1); animation: fishSwimReverse 12s linear infinite; }
.fish-c { left: 48%; bottom: 14%; transform: scale(0.7); animation: fishSwim 11s linear infinite; }
.fish-d { left: 80%; bottom: 18%; transform: scale(0.9) scaleX(-1); animation: fishSwimReverse 15s linear infinite; }

.start-bubble {
  position: absolute;
  bottom: 10%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.34), rgba(255,255,255,0.03));
  animation: bubbleRise 8s linear infinite;
}

.bubble-a { left: 22%; animation-delay: 0s; }
.bubble-b { left: 41%; animation-delay: 1.8s; transform: scale(0.7); }
.bubble-c { left: 68%; animation-delay: 3s; transform: scale(0.9); }
.bubble-d { left: 86%; animation-delay: 4.2s; transform: scale(0.8); }

.start-parrot {
  position: absolute;
  right: 16%;
  top: 18%;
  width: 24px;
  height: 24px;
  border-radius: 60% 60% 50% 50%;
  background: linear-gradient(180deg, #ff8a4f, #ff5d43);
  animation: parrotFloat 3.8s ease-in-out infinite;
}

.start-parrot::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 4px;
  width: 16px;
  height: 10px;
  border-radius: 16px 0 16px 0;
  background: #22c58d;
  transform: rotate(-26deg);
}

.start-parrot::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 9px;
  width: 10px;
  height: 6px;
  background: #ffd262;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes cloudDrift {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(34px);
  }
}

@keyframes waterBob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes islandFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes boatSail {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateX(-46%) translateY(-8px) rotate(2deg);
  }
}

@keyframes fishSwim {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(90px) translateY(-10px);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes fishSwimReverse {
  0% {
    transform: scaleX(-1) translateX(0);
  }

  50% {
    transform: scaleX(-1) translateX(80px) translateY(8px);
  }

  100% {
    transform: scaleX(-1) translateX(0);
  }
}

@keyframes bubbleRise {
  0% {
    transform: translateY(0) scale(0.75);
    opacity: 0;
  }

  15% {
    opacity: 0.76;
  }

  100% {
    transform: translateY(-260px) scale(1.15);
    opacity: 0;
  }
}

@keyframes parrotFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }

  50% {
    transform: translateY(-8px) rotate(6deg);
  }
}

.topbar {
  position: relative;
  height: auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(42, 145, 192, 0.22);
  background:
    radial-gradient(circle at 8% -10%, rgba(255, 246, 177, 0.22), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(255, 255, 255, 0.28), transparent 22%),
    linear-gradient(180deg, rgba(139, 232, 249, 0.96), rgba(88, 201, 232, 0.88));
  backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 12px 28px rgba(8, 51, 96, 0.18);
  z-index: 5;
}

.topbar::before {
  display: none;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 17px;
  border-radius: 18px;
  color: var(--text);
  border: 1px solid rgba(255, 231, 170, 0.22);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 246, 191, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(41, 82, 132, 0.98), rgba(13, 39, 76, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -3px 0 rgba(5, 21, 47, 0.28),
    0 10px 18px rgba(6, 32, 68, 0.24),
    0 0 0 1px rgba(58, 160, 224, 0.06);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    filter 0.18s ease;
}

.pill::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 40%);
}

.pill::after {
  content: "";
  position: absolute;
  inset: -30% auto -30% -45%;
  width: 36%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  opacity: 0;
  transform: translateX(-60%) rotate(8deg);
}

.pill:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 228, 160, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 0 rgba(7, 20, 42, 0.2),
    0 14px 24px rgba(6, 32, 68, 0.26),
    0 0 18px rgba(255, 214, 114, 0.22);
  filter: saturate(1.08);
}

.pill:hover::after {
  opacity: 1;
  animation: hudPillSheen 0.85s ease forwards;
}

.pill:active {
  transform: translateY(1px) scale(0.99);
  box-shadow:
    inset 0 2px 8px rgba(6, 18, 38, 0.22),
    0 8px 14px rgba(6, 32, 68, 0.18);
}

.level-pill {
  font-weight: 900;
  color: #f7fbff;
  border-color: rgba(143, 224, 255, 0.38);
}

.title-pill {
  color: #edf8ff;
  font-weight: 800;
  max-width: min(46vw, 420px);
}

.currency-pill {
  min-width: 86px;
  justify-content: center;
  font-weight: 900;
  border-color: rgba(255, 219, 117, 0.38);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 234, 151, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(44, 82, 126, 0.98), rgba(16, 42, 78, 0.98));
}

.nav-pill {
  cursor: pointer;
  font-weight: 900;
  color: #eef8ff;
  user-select: none;
}

.nav-pill:hover {
  transform: translateY(-2px);
}

.mission-header-pill {
  min-height: 54px;
  padding: 0 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 214, 130, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 24px rgba(0, 0, 0, 0.22);
}

.mission-header-pill-title {
  padding-right: 28px;
}

.mission-header-pill-icon {
  min-width: 56px;
  padding: 0;
  justify-content: center;
}

.mission-header-badge,
.mission-header-icon {
  position: relative;
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.55), transparent 25%),
    linear-gradient(180deg, #3fc6ff, #1477d1);
  color: transparent;
  font-size: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -3px 0 rgba(3, 62, 125, 0.34),
    0 6px 10px rgba(0, 0, 0, 0.2),
    0 0 14px rgba(77, 207, 255, 0.18);
  flex: 0 0 auto;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ui-icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mission-header-badge.ui-icon-wrap,
.mission-header-icon.ui-icon-wrap {
  color: #eaf8ff;
  font-size: 18px;
}

.mission-header-badge.ui-icon-wrap::before,
.mission-header-icon.ui-icon-wrap::before,
.mission-header-icon.ui-icon-wrap::after,
.start-art-role-icon.ui-icon-wrap::before,
.start-art-role-icon.ui-icon-wrap::after,
.mission-guided-map-icon.ui-icon-wrap::before,
.mission-guided-gear-icon.ui-icon-wrap::before,
.mission-guided-back-icon.ui-icon-wrap::before,
.mission-guided-grid-icon.ui-icon-wrap::before {
  content: none;
}

.mission-header-badge .ui-icon,
.mission-header-icon .ui-icon {
  width: 18px;
  height: 18px;
}

.start-art-role-icon.ui-icon-wrap {
  color: #1b7fc7;
  font-size: 22px;
}

.start-art-role-icon.ui-icon-wrap .ui-icon,
.start-art-role-arrow .ui-icon {
  width: 20px;
  height: 20px;
}

/* =========================
   START ACCESS UX REFRESH
========================= */
.start-art-hero {
  width: min(520px, 40vw);
  padding: 34px 36px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(8, 48, 82, 0.82), rgba(4, 28, 54, 0.86));
  backdrop-filter: blur(20px);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
}

.start-art-hero h1 {
  font-size: clamp(54px, 5.4vw, 86px);
  line-height: 0.92;
}

.start-art-hero h1 .accent {
  color: #ffcf4e;
}

.start-art-hero p {
  max-width: 470px;
  font-size: 20px;
  line-height: 1.42;
  font-weight: 500;
}

.start-art-note {
  max-width: 440px;
  font-size: 15px;
  opacity: 0.95;
}

.start-art-login-panel.chooser {
  width: min(460px, 34vw);
  max-height: calc(100vh - 116px);
  padding: 28px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 232, 151, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(235, 248, 255, 0.92));
}

.start-art-login-panel.chooser h2 {
  margin-bottom: 8px;
  color: #142f53;
  font-size: 36px;
  letter-spacing: 0;
}

.start-art-login-panel.chooser > p {
  max-width: 370px;
  color: #55708c;
  font-size: 16px;
  line-height: 1.5;
}

.chooser-grid.start-art-access-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 20px;
}

.chooser-grid .start-art-role-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 34px;
  grid-template-rows: auto auto auto;
  column-gap: 14px;
  align-items: center;
  padding: 15px 16px;
  border-radius: 18px;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 248, 255, 0.94));
  border: 1px solid rgba(134, 190, 226, 0.48);
  box-shadow: 0 12px 24px rgba(30, 104, 162, 0.1);
}

.chooser-grid .start-art-role-card.active {
  border-color: rgba(44, 166, 236, 0.7);
  background:
    radial-gradient(circle at 100% 0%, rgba(89, 212, 255, 0.18), transparent 34%),
    linear-gradient(180deg, #ffffff, #e8f7ff);
  box-shadow:
    0 16px 28px rgba(30, 104, 162, 0.16),
    0 0 0 4px rgba(93, 195, 255, 0.18);
}

.chooser-grid .start-art-role-icon {
  grid-row: 1 / 4;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  color: #1b7fc7;
  background:
    linear-gradient(180deg, rgba(232, 249, 255, 1), rgba(196, 235, 255, 0.96));
}

.chooser-grid .start-art-role-icon .ui-icon {
  width: 25px;
  height: 25px;
}

.chooser-grid .start-art-role-card strong {
  color: #14365d;
  font-size: 17px;
  line-height: 1.1;
}

.chooser-grid .start-art-role-card > span:not(.start-art-role-icon):not(.start-art-role-arrow) {
  color: #486a89;
  font-size: 13px;
  line-height: 1.25;
}

.chooser-grid .start-art-role-demo {
  display: block;
  margin-top: 4px;
  color: #216ea9;
  font-size: 11px;
  line-height: 1.2;
  white-space: normal;
}

.chooser-grid .start-art-role-arrow {
  grid-column: 3;
  grid-row: 1 / 4;
  width: 34px;
  height: 34px;
  place-self: center;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(180deg, #3eb7ff, #176bd1);
  box-shadow: 0 8px 14px rgba(31, 111, 198, 0.22);
}

@media (max-width: 1080px) {
  .start-art-hero {
    width: min(560px, calc(100vw - 40px));
  }

  .start-art-login-panel.chooser {
    width: min(560px, calc(100vw - 40px));
  }
}

@media (max-width: 680px) {
  .start-art-hero {
    padding: 26px;
  }

  .start-art-login-panel.chooser {
    padding: 22px;
  }
}

/* Final start screen composition: keep the role choice readable on desktop. */
.start-art-overlay {
  display: grid;
  grid-template-columns: minmax(360px, 480px) minmax(480px, 520px);
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 72px);
  padding: clamp(24px, 5vw, 64px);
  overflow: hidden;
}

.start-art-overlay > .start-art-hero,
.start-art-overlay > .start-art-login-panel {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
}

.start-art-overlay > .start-art-hero {
  width: 100%;
  max-width: 480px;
  padding: 30px;
}

.start-art-overlay > .start-art-hero h1 {
  max-width: 390px;
  font-size: clamp(46px, 4.4vw, 64px);
  line-height: 0.94;
}

.start-art-overlay > .start-art-hero p {
  max-width: 410px;
  font-size: 17px;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.start-art-overlay > .start-art-hero .start-art-note {
  max-width: 360px;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.25;
}

.start-art-overlay > .start-art-login-panel {
  justify-self: end;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 104px);
  overflow: auto;
}

.start-art-login-panel.chooser {
  padding: 22px;
}

.start-art-login-panel.chooser h2 {
  font-size: clamp(30px, 3vw, 38px);
  line-height: 0.98;
}

.start-art-login-panel.chooser > p {
  font-size: 14px;
  line-height: 1.38;
}

.chooser-grid.start-art-access-grid {
  gap: 10px;
  margin-top: 16px;
}

.chooser-grid .start-art-role-card {
  min-height: 76px;
  grid-template-columns: 46px minmax(0, 1fr) 30px;
  column-gap: 12px;
  padding: 11px 12px;
  border-radius: 16px;
}

.chooser-grid .start-art-role-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.chooser-grid .start-art-role-icon .ui-icon {
  width: 21px;
  height: 21px;
}

.chooser-grid .start-art-role-card strong {
  font-size: 15px;
}

.chooser-grid .start-art-role-card > span:not(.start-art-role-icon):not(.start-art-role-arrow) {
  font-size: 12px;
}

.chooser-grid .start-art-role-demo {
  font-size: 10px;
}

.chooser-grid .start-art-role-arrow {
  width: 30px;
  height: 30px;
}

@media (min-width: 981px) {
  .chooser-grid.start-art-access-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chooser-grid .start-art-role-card {
    position: relative;
    min-height: 112px;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-content: start;
    padding: 14px;
  }

  .chooser-grid .start-art-role-card:nth-child(5) {
    grid-column: 1 / -1;
    min-height: 82px;
  }

  .chooser-grid .start-art-role-arrow {
    position: absolute;
    right: 12px;
    bottom: 12px;
  }

  .chooser-grid .start-art-role-card strong,
  .chooser-grid .start-art-role-card > span:not(.start-art-role-icon):not(.start-art-role-arrow),
  .chooser-grid .start-art-role-demo {
    grid-column: 2;
  }
}

@media (max-width: 980px) {
  .start-art-overlay {
    grid-template-columns: 1fr;
    align-content: start;
    overflow: auto;
  }

  .start-art-overlay > .start-art-hero,
  .start-art-overlay > .start-art-login-panel {
    justify-self: center;
    max-width: min(560px, calc(100vw - 32px));
  }
}

.mission-header-badge {
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.62), transparent 25%),
    linear-gradient(180deg, #48d6ff, #0f74cb);
}

.mission-header-badge::before,
.mission-header-icon::before,
.mission-header-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.mission-header-badge::before {
  width: 17px;
  height: 17px;
  background: linear-gradient(180deg, #ffffff, #d9f6ff);
  clip-path: polygon(50% 0%, 62% 34%, 98% 35%, 69% 56%, 80% 92%, 50% 70%, 20% 92%, 31% 56%, 2% 35%, 38% 34%);
  filter: drop-shadow(0 1px 1px rgba(9, 68, 125, 0.35));
}

#goHomeBtn .mission-header-icon::before {
  left: 8px;
  top: 12px;
  width: 14px;
  height: 11px;
  border-radius: 2px 2px 4px 4px;
  background: #f4fbff;
}

#goHomeBtn .mission-header-icon::after {
  left: 7px;
  top: 7px;
  width: 16px;
  height: 16px;
  background: #f4fbff;
  clip-path: polygon(50% 0%, 100% 48%, 82% 48%, 82% 100%, 18% 100%, 18% 48%, 0% 48%);
}

#openDashboardBtn .mission-header-icon::before {
  left: 8px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 2px;
  background: #f4fbff;
  box-shadow:
    7px 0 0 #f4fbff,
    14px 0 0 #f4fbff,
    0 7px 0 #f4fbff,
    7px 7px 0 #f4fbff,
    14px 7px 0 #f4fbff,
    0 14px 0 #f4fbff,
    7px 14px 0 #f4fbff,
    14px 14px 0 #f4fbff;
}

#backToMapBtn .mission-header-icon::before {
  left: 8px;
  top: 9px;
  width: 14px;
  height: 14px;
  border-left: 4px solid #f4fbff;
  border-bottom: 4px solid #f4fbff;
  transform: rotate(45deg);
  border-radius: 2px;
}

#logoutBtn .mission-header-icon::before {
  left: 8px;
  top: 8px;
  width: 12px;
  height: 14px;
  border: 3px solid #f4fbff;
  border-right: 0;
  border-radius: 4px 0 0 4px;
}

#logoutBtn .mission-header-icon::after {
  right: 7px;
  top: 13px;
  width: 12px;
  height: 4px;
  border-radius: 999px;
  background: #f4fbff;
  box-shadow: 4px -4px 0 -1px #f4fbff, 4px 4px 0 -1px #f4fbff;
}

.title-pill > .mission-header-icon::before,
.mission-header-pill-title > .mission-header-icon::before {
  left: 8px;
  top: 7px;
  width: 14px;
  height: 17px;
  border-radius: 7px 7px 7px 2px;
  background: #f4fbff;
  transform: rotate(-12deg);
}

.title-pill > .mission-header-icon::after,
.mission-header-pill-title > .mission-header-icon::after {
  left: 12px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1786d6;
  box-shadow: 0 9px 0 -2px #1786d6;
}

.mission-header-pill-icon .mission-header-icon::before {
  inset: 8px;
  border: 3px solid #f4fbff;
  border-radius: 50%;
}

.mission-header-pill-icon .mission-header-icon::after {
  left: 14px;
  top: 5px;
  width: 3px;
  height: 20px;
  border-radius: 999px;
  background: #f4fbff;
  box-shadow: 0 0 0 0 #f4fbff;
  transform: rotate(45deg);
}

.mission-header-chevron {
  position: relative;
  width: 18px;
  height: 30px;
  color: transparent;
  font-size: 0;
  line-height: 1;
  flex: 0 0 auto;
}

.mission-header-chevron::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-top: 4px solid rgba(239, 250, 255, 0.82);
  border-right: 4px solid rgba(239, 250, 255, 0.82);
  border-radius: 2px;
  transform: rotate(45deg);
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.22));
}

.mission-header-chevron:has(.ui-icon) {
  display: inline-grid;
  place-items: center;
  color: rgba(239, 250, 255, 0.82);
  font-size: 16px;
}

.mission-header-chevron:has(.ui-icon)::before {
  content: none;
}

.currency-icon {
  position: relative;
  width: 19px;
  height: 19px;
  display: inline-block;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.18));
  animation: hudCurrencyFloat 3.2s ease-in-out infinite;
}

.currency-icon.gold {
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #fff6c8 0 16%, transparent 17%),
    radial-gradient(circle at 35% 35%, #ffe48d, #f6bf52 60%, #c98a13);
  box-shadow:
    inset -2px -3px 0 rgba(126, 75, 8, 0.24),
    0 0 14px rgba(255, 199, 84, 0.34);
}

.currency-icon.gems {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.82), transparent 32%),
    radial-gradient(circle at 35% 35%, #9eeaff, #4ac7ff 60%, #0d7bb3);
  clip-path: polygon(50% 0%, 100% 35%, 72% 100%, 28% 100%, 0% 35%);
  box-shadow: 0 0 16px rgba(80, 212, 255, 0.36);
  animation-delay: -1.1s;
}

.nav-pill:hover .mission-header-icon,
.level-pill:hover .mission-header-badge,
.title-pill:hover .mission-header-icon {
  transform: scale(1.08) rotate(-4deg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 8px 14px rgba(0, 0, 0, 0.22),
    0 0 16px rgba(105, 214, 255, 0.28);
}

.currency-pill:hover .currency-icon.gold {
  animation: hudCoinSpin 0.72s ease both;
}

.currency-pill:hover .currency-icon.gems {
  animation: hudGemPop 0.72s ease both;
}

@keyframes hudPillSheen {
  0% {
    transform: translateX(-80%) rotate(8deg);
  }

  100% {
    transform: translateX(430%) rotate(8deg);
  }
}

@keyframes hudCurrencyFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-2px) scale(1.04);
  }
}

@keyframes hudCoinSpin {
  0%,
  100% {
    transform: translateY(0) rotateY(0deg) scale(1);
  }

  50% {
    transform: translateY(-3px) rotateY(180deg) scale(1.12);
  }
}

@keyframes hudGemPop {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }

  45% {
    transform: translateY(-4px) rotate(-8deg) scale(1.16);
  }
}

@keyframes worldHudDrop {
  0% {
    opacity: 0;
    transform: translateY(-16px) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes worldSceneRise {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.995);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.layout {
  height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.world-map-hidden-topbar {
  display: none !important;
}

.layout.world-map-full {
  height: 100vh;
}

.world-map-full #sceneWrap {
  min-height: 100vh;
}

.world-map-full #scene {
  animation: worldSceneRise 0.82s cubic-bezier(0.2, 0.9, 0.18, 1) both;
}

.world-map-full .scene-backdrop {
  transform: scale(1.01);
}

.world-map-full .world-map-hud-card {
  position: absolute;
  top: 14px;
  z-index: 12;
  min-height: 78px;
  padding: 11px 17px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff7d8;
  background:
    radial-gradient(circle at 15% 15%, rgba(99, 219, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(19, 66, 120, 0.97), rgba(5, 28, 61, 0.98));
  border: 2px solid rgba(255, 199, 80, 0.82);
  border-radius: 18px 8px 18px 8px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.18),
    inset 0 -4px 0 rgba(0, 0, 0, 0.22),
    0 10px 22px rgba(0, 25, 54, 0.32),
    0 0 0 1px rgba(54, 211, 255, 0.18);
  animation: worldHudDrop 0.64s cubic-bezier(0.2, 0.9, 0.18, 1.08) both;
}

.world-map-full .world-map-hud-card::before,
.world-map-full .world-map-hud-card::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffe28b, #c77a18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 2px 0 rgba(72, 35, 7, 0.5),
    0 0 10px rgba(255, 207, 76, 0.45);
}

.world-map-full .world-map-hud-card::before {
  left: 8px;
  top: -8px;
}

.world-map-full .world-map-hud-card::after {
  right: 8px;
  bottom: -8px;
}

.world-map-full .world-map-hud-card-left {
  left: 28px;
  min-width: 245px;
}

.world-map-full .world-map-hud-card-right {
  right: 28px;
  min-width: 330px;
  padding: 9px 13px;
  animation-delay: 0.06s;
}

.world-map-full .mission-guided-side-copy {
  display: grid;
  gap: 3px;
}

.world-map-full .world-map-hud-card strong {
  font-size: 18px;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.42);
}

.world-map-full .world-map-hud-card small {
  font-size: 11px;
  font-weight: 950;
  color: #bfeeff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.36);
}

.world-map-full .world-map-hud-card button {
  border: 0;
  padding: 0;
  min-width: 58px;
  display: grid;
  place-items: center;
  gap: 2px;
  color: #fff7d8;
  background: transparent;
  cursor: pointer;
}

.world-map-full .scene-guide {
  top: clamp(142px, 20vh, 170px);
  right: clamp(14px, 2vw, 30px);
}

.world-map-full .scene-label {
  bottom: 26px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 14%, rgba(99, 219, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(19, 66, 120, 0.88), rgba(5, 28, 61, 0.92));
  border: 2px solid rgba(79, 198, 255, 0.18);
}

.mission-guided-grid-icon {
  width: 42px;
  height: 42px;
  display: block;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 30%, #fffbd0, transparent 22%),
    linear-gradient(180deg, #37c7ff, #0b69c5);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.42),
    0 4px 0 rgba(0, 24, 60, 0.42);
}

.mission-guided-grid-icon::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  margin: 11px;
  border-radius: 2px;
  background: #fff7d8;
  box-shadow:
    10px 0 0 #fff7d8,
    20px 0 0 #fff7d8,
    0 10px 0 #fff7d8,
    10px 10px 0 #fff7d8,
    20px 10px 0 #fff7d8,
    0 20px 0 #fff7d8,
    10px 20px 0 #fff7d8,
    20px 20px 0 #fff7d8;
}

.scene-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

#sceneWrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 248, 183, 0.28), transparent 18%),
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.12), transparent 14%),
    linear-gradient(180deg, #8ee1ff 0%, #5dc2ed 26%, #1671b6 70%, #0c4678 100%);
}

#sceneWrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.16), transparent 12%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.1), transparent 10%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.08));
  mix-blend-mode: screen;
}

#sceneWrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 105%, rgba(0, 0, 0, 0.24), transparent 38%);
}

#scene {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  display: block;
}

.scene-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transform-origin: center;
  animation: sceneParallaxBreath 11s ease-in-out infinite;
}

.scene-bird-flock,
.scene-fish-layer,
.scene-boat-wrap,
.scene-guide,
.scene-vignette,
.scene-glow,
.scene-label {
  position: absolute;
}

.scene-bird-flock,
.scene-fish-layer,
.scene-boat-wrap,
.scene-guide-avatar {
  pointer-events: none;
}

.scene-guide {
  pointer-events: auto;
}

.scene-bird-flock {
  inset: 0;
  z-index: 6;
}

.scene-bird {
  position: absolute;
  width: 26px;
  height: 14px;
  opacity: 0.78;
  animation: sceneBirdDrift 12s linear infinite;
}

.scene-bird::before,
.scene-bird::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 14px;
  height: 8px;
  border-top: 3px solid rgba(255,255,255,0.9);
  border-radius: 50%;
}

.scene-bird::before {
  left: 0;
  transform: rotate(-12deg);
}

.scene-bird::after {
  right: 0;
  transform: rotate(12deg);
}

.bird-a { left: 9%; top: 18%; animation-duration: 13s; }
.bird-b { left: 20%; top: 26%; transform: scale(0.74); animation-delay: -4s; animation-duration: 15s; }
.bird-c { left: 42%; top: 15%; transform: scale(0.62); animation-delay: -8s; animation-duration: 16s; }
.bird-d { left: 62%; top: 24%; transform: scale(0.88); animation-delay: -2s; animation-duration: 14s; }
.bird-e { left: 82%; top: 18%; transform: scale(0.7); animation-delay: -7s; animation-duration: 17s; }
.bird-f { left: 31%; top: 35%; transform: scale(0.58); animation-delay: -11s; animation-duration: 18s; }
.bird-g { left: 70%; top: 34%; transform: scale(0.54); animation-delay: -5s; animation-duration: 16s; }

.scene-fish-layer {
  inset: 0;
  z-index: 3;
}

.scene-fish {
  position: absolute;
  width: 34px;
  height: 16px;
  border-radius: 60% 48% 48% 60%;
  background: linear-gradient(90deg, rgba(111, 239, 229, 0.82), rgba(43, 166, 213, 0.78));
  opacity: 0.42;
  animation: sceneFishSwim 9s ease-in-out infinite;
}

.scene-fish::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 3px;
  width: 12px;
  height: 10px;
  background: rgba(43, 166, 213, 0.78);
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

.fish-a { left: 14%; top: 70%; animation-duration: 10s; }
.fish-b { left: 48%; top: 74%; transform: scale(0.72); animation-delay: -3s; animation-duration: 12s; }
.fish-c { left: 78%; top: 63%; transform: scale(0.58) rotate(-5deg); animation-delay: -6s; animation-duration: 11s; }
.fish-d { left: 32%; top: 86%; transform: scale(0.64); animation-delay: -8s; animation-duration: 13s; }

.scene-boat-wrap {
  z-index: 5;
  left: 5%;
  bottom: 9%;
  width: clamp(150px, 17vw, 235px);
  aspect-ratio: 1.35;
  animation: sceneBoatSail 8s ease-in-out infinite;
}

.scene-boat {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scaleX(-1);
  filter: drop-shadow(0 18px 18px rgba(0,0,0,0.22));
}

.scene-boat-shadow {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 3%;
  height: 16%;
  border-radius: 999px;
  background: rgba(0,0,0,0.17);
  filter: blur(10px);
}

.scene-boat-wake {
  position: absolute;
  right: -8%;
  bottom: 9%;
  width: 42%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.34);
  filter: blur(1px);
  animation: sceneWakePulse 2.6s ease-in-out infinite;
}

.scene-boat-wake.wake-b {
  right: 0;
  bottom: 2%;
  width: 30%;
  animation-delay: -0.9s;
}

.scene-boat-wake.wake-c {
  right: 18%;
  bottom: 15%;
  width: 24%;
  animation-delay: -1.7s;
}

.scene-guide {
  z-index: 7;
  right: clamp(10px, 1.6vw, 22px);
  top: clamp(74px, 10vh, 96px);
  display: grid;
  grid-template-columns: minmax(158px, 220px) 82px;
  align-items: end;
  gap: 0;
  max-width: min(328px, 32vw);
  animation: sceneGuideEnter 0.72s cubic-bezier(.2, .9, .18, 1.1) 0.12s both;
}

.scene-guide-bubble {
  position: relative;
  padding: 12px 14px;
  border-radius: 18px;
  color: #f7fbff;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.12), transparent 28%),
    linear-gradient(180deg, rgba(16, 48, 84, 0.9), rgba(8, 25, 48, 0.9));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.09),
    0 18px 34px rgba(0,0,0,0.22);
  backdrop-filter: blur(12px);
  transform-origin: 100% 72%;
  animation: sceneBubbleSpeak 4.6s ease-in-out 1.1s infinite;
}

.scene-guide-bubble::before {
  content: "";
  position: absolute;
  right: -34px;
  bottom: 38px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,230,168,0.95);
  box-shadow:
    13px -9px 0 rgba(255,230,168,0.68),
    27px -2px 0 rgba(255,230,168,0.48);
  animation: sceneTalkDots 1.25s ease-in-out infinite;
}

.scene-guide-bubble::after {
  content: "";
  position: absolute;
  right: -12px;
  bottom: 24px;
  width: 24px;
  height: 24px;
  background: rgba(8, 25, 48, 0.9);
  border-right: 1px solid rgba(255,255,255,0.14);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  transform: rotate(-45deg);
}

.scene-guide-kicker {
  margin-bottom: 5px;
  color: #ffe6a8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.scene-guide-bubble strong {
  display: block;
  font-size: 20px;
  line-height: 1;
}

.scene-guide-bubble p {
  margin: 7px 0 0;
  color: #d8ecfb;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.28;
  animation: sceneTextReveal 0.7s ease 0.34s both;
}

.scene-guide-bubble p.is-helping {
  animation: sceneGuideHelpReveal 0.42s ease both;
}

.scene-guide-help-btn {
  position: relative;
  z-index: 2;
  min-height: 34px;
  margin-top: 10px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 230, 168, 0.36);
  border-radius: 999px;
  color: #2e2108;
  background: linear-gradient(180deg, #ffe7a7, #f2c35b);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.32),
    0 10px 18px rgba(0,0,0,0.18);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.scene-guide-help-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.38),
    0 13px 22px rgba(0,0,0,0.22);
}

.scene-guide-help-btn:active {
  transform: translateY(0);
}

.scene-guide-avatar {
  position: relative;
  z-index: 2;
  width: 88px;
  animation: sceneGuideBob 4.2s ease-in-out infinite;
}

.scene-guide-avatar::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 2%;
  height: 16px;
  border-radius: 999px;
  background: rgba(0,0,0,0.2);
  filter: blur(9px);
}

.scene-guide-avatar img {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
  filter: drop-shadow(0 18px 20px rgba(0,0,0,0.22));
}

.scene-vignette {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 8;
  background:
    radial-gradient(circle at center, transparent 54%, rgba(0, 0, 0, 0.08) 80%, rgba(0, 0, 0, 0.18) 100%);
}

.scene-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 6;
  background:
    radial-gradient(circle at 52% 28%, rgba(255, 241, 173, 0.18), transparent 18%),
    radial-gradient(circle at 50% 72%, rgba(72, 255, 205, 0.07), transparent 16%);
  mix-blend-mode: screen;
}

.scene-label {
  position: absolute;
  z-index: 9;
  left: 24px;
  bottom: 22px;
  padding: 13px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(16, 38, 65, 0.62), rgba(7, 22, 40, 0.54));
  backdrop-filter: blur(12px);
  color: #eef9ff;
  font-size: 14px;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 32px rgba(0, 0, 0, 0.22);
}

/* =========================
   SIDEBAR JUGABLE
========================= */
.sidebar {
  position: relative;
  display: none;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(18, 36, 60, 0.96), rgba(8, 18, 34, 0.99));
  backdrop-filter: blur(18px) saturate(1.04);
  overflow-y: auto;
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.03),
    -14px 0 34px rgba(0, 0, 0, 0.12);
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 0% 20%, var(--sidebar-accent), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.04), transparent 24%);
}

.sidebar-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 22%),
    linear-gradient(180deg, rgba(25, 47, 78, 0.88), rgba(8, 18, 35, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.sidebar-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 48px rgba(0, 0, 0, 0.32);
}

.sidebar-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 36%);
}

.sidebar-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    rgba(255, 228, 160, 0.32),
    rgba(255, 255, 255, 0.08),
    transparent
  );
  pointer-events: none;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a8ddff;
  margin-bottom: 8px;
  font-weight: 900;
}

.sidebar h1 {
  font-size: 28px;
  line-height: 1.02;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: #f7fbff;
}

.sidebar p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
  font-size: 15px;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

/* =========================
   BOTONES MÁS DE JUEGO
========================= */
.btn {
  position: relative;
  height: 48px;
  border: 0;
  border-radius: 16px;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease,
    border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  color: #082418;
  background:
    linear-gradient(180deg, #7af6cf, #2dd39a);
  box-shadow:
    0 14px 28px rgba(32, 201, 143, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn-primary:hover {
  box-shadow:
    0 16px 32px rgba(32, 201, 143, 0.32),
    0 0 22px rgba(69, 211, 156, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 40%);
  pointer-events: none;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.22), transparent 80%);
  transform: translateX(-120%);
  animation: shine 3.2s linear infinite;
}

.btn-secondary {
  color: #eef5ff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 20px rgba(0, 0, 0, 0.14);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 24px rgba(0, 0, 0, 0.16),
    0 0 16px rgba(89, 212, 255, 0.07);
}

/* =========================
   PROGRESO
========================= */
.progress-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-box {
  position: relative;
  padding: 14px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(8, 18, 33, 0.6), rgba(4, 10, 20, 0.45));
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.stat-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 45%);
}

.stat-label {
  display: block;
  color: #bfd0e3;
  font-size: 12px;
  margin-bottom: 6px;
  font-weight: 700;
}

.stat-box strong {
  font-size: 21px;
  letter-spacing: -0.02em;
}

.progress-bar {
  position: relative;
  margin-top: 16px;
  height: 12px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 4px 10px rgba(0, 0, 0, 0.16);
}

.progress-fill {
  position: relative;
  height: 100%;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #59d4ff 0%, #87a6c1 38%, #45d39c 72%, #f2c35b 100%);
  box-shadow:
    0 0 16px rgba(89, 212, 255, 0.24),
    0 0 16px rgba(242, 195, 91, 0.1);
}

.progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 10%, rgba(255, 255, 255, 0.28), transparent 60%);
  animation: shine 2.8s linear infinite;
}

.tips-card p,
.mission-card p {
  text-wrap: pretty;
}

/* =========================
   SCROLL
========================= */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(95, 118, 148, 0.85), rgba(89, 212, 255, 0.7));
  border: 2px solid transparent;
  background-clip: padding-box;
}

@keyframes shine {
  to {
    transform: translateX(120%);
  }
}

@keyframes sceneParallaxBreath {
  0%,
  100% {
    transform: scale(1.02) translate3d(0, 0, 0);
  }

  50% {
    transform: scale(1.045) translate3d(-0.4%, -0.3%, 0);
  }
}

@keyframes sceneBirdDrift {
  0%,
  100% {
    margin-left: 0;
    margin-top: 0;
    opacity: 0.58;
  }

  50% {
    margin-left: 42px;
    margin-top: -10px;
    opacity: 0.92;
  }
}

@keyframes sceneFishSwim {
  0%,
  100% {
    margin-left: 0;
    margin-top: 0;
    opacity: 0.22;
  }

  50% {
    margin-left: 34px;
    margin-top: -7px;
    opacity: 0.52;
  }
}

@keyframes sceneBoatSail {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-2deg);
  }

  50% {
    transform: translate3d(34px, -8px, 0) rotate(2deg);
  }
}

@keyframes sceneWakePulse {
  0%,
  100% {
    opacity: 0.16;
    transform: translateX(0) scaleX(0.78);
  }

  50% {
    opacity: 0.42;
    transform: translateX(12px) scaleX(1.08);
  }
}

@keyframes sceneGuideEnter {
  0% {
    opacity: 0;
    transform: translate3d(22px, 10px, 0) scale(0.92);
  }

  72% {
    opacity: 1;
    transform: translate3d(-2px, -2px, 0) scale(1.02);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes sceneBubbleSpeak {
  0%,
  100% {
    transform: scale(1);
  }

  12% {
    transform: scale(1.018);
  }

  22% {
    transform: scale(0.996);
  }

  32% {
    transform: scale(1.012);
  }

  42% {
    transform: scale(1);
  }
}

@keyframes sceneTalkDots {
  0%,
  100% {
    opacity: 0.36;
    transform: translateY(0) scale(0.82);
  }

  50% {
    opacity: 1;
    transform: translateY(-5px) scale(1);
  }
}

@keyframes sceneTextReveal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sceneGuideHelpReveal {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes sceneGuideBob {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

/* =========================
   RESPONSIVE WORLD MAP
========================= */
@media (max-width: 1080px) {
  .sidebar {
    position: absolute;
    right: 16px;
    top: 102px;
    width: min(360px, calc(100vw - 32px));
    max-height: calc(100vh - 118px);
    border-left: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    z-index: 3;
    box-shadow:
      0 24px 60px rgba(0, 0, 0, 0.32),
      0 0 20px rgba(89, 212, 255, 0.06);
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 12px;
    height: auto;
    min-height: 76px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .topbar-left,
  .topbar-right {
    flex-wrap: wrap;
  }

  .pill {
    min-height: 36px;
    padding: 0 14px;
  }

  .scene-label {
    left: 14px;
    right: 14px;
    bottom: 14px;
    font-size: 13px;
  }

  .scene-guide {
    top: 88px;
    right: 12px;
    grid-template-columns: minmax(0, 190px) 78px;
    max-width: calc(100vw - 24px);
  }

  .scene-guide-bubble {
    padding: 12px 14px;
    border-radius: 18px;
  }

  .scene-guide-bubble strong {
    font-size: 18px;
  }

  .scene-guide-bubble p {
    font-size: 12px;
  }

  .scene-guide-avatar {
    width: 84px;
  }

  .scene-boat-wrap {
    width: 136px;
    left: 4%;
    bottom: 12%;
  }

  .sidebar {
    top: auto;
    bottom: 14px;
    right: 14px;
    width: calc(100vw - 28px);
    max-height: 52vh;
  }

  .sidebar h1 {
    font-size: 24px;
  }

  .start-overlay {
    padding: 14px;
  }

  .start-panel {
    padding: 20px;
    border-radius: 28px;
  }

  .start-panel h1 {
    font-size: 34px;
  }

  .start-role-grid {
    grid-template-columns: 1fr;
  }

  .start-action-row {
    grid-template-columns: 1fr;
  }

  .start-island {
    transform: scale(0.82);
  }

  .island-center {
    left: 33%;
    bottom: 16%;
  }

  .island-right {
    right: -2%;
  }
}

/* =========================
   SUBMAP / MISSION / RESULT
========================= */
.submap-screen,
.mission-screen,
.result-screen,
.dashboard-screen {
  height: calc(100vh - 84px);
  padding: 0 18px 24px;
  overflow: auto;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.08), transparent 20%),
    linear-gradient(180deg, rgba(12, 38, 63, 0.92), rgba(7, 17, 31, 0.98));
}

.mission-screen-epic {
  position: relative;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(7, 25, 45, 0.14), rgba(4, 14, 28, 0.28));
}

.mission-screen-epic::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(6, 27, 52, 0.12), rgba(7, 25, 43, 0.32)),
    url("./img/mission-bg-islands.png") center center / cover no-repeat;
}

.mission-screen-order-correct::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(3, 35, 67, 0.18)),
    url("./img/mission-order-correct-bg.png") center center / cover no-repeat;
}

.mission-screen-order-correct::after {
  background:
    radial-gradient(circle at 45% 42%, rgba(255, 255, 255, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(3, 34, 62, 0.08));
}

.mission-screen-epic::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 248, 214, 0.18), transparent 14%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 24%);
}

.submap-panel,
.mission-panel,
.result-panel,
.dashboard-panel {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(24, 44, 74, 0.84), rgba(8, 16, 30, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 42px rgba(0, 0, 0, 0.28);
}

.mission-panel-epic {
  position: relative;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.mission-panel-epic::before {
  display: none;
}

.mission-panel-quest {
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 214, 102, 0.18), transparent 18%),
    radial-gradient(circle at 88% 18%, rgba(73, 209, 255, 0.16), transparent 20%),
    linear-gradient(180deg, rgba(18, 45, 79, 0.92), rgba(8, 20, 38, 0.98));
}

.submap-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.submap-header h1,
.mission-panel h1,
.result-panel h1 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1;
}

.mission-hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.mission-hero-main {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}

.mission-hero-emblem {
  position: relative;
  flex: 0 0 104px;
  width: 104px;
  height: 118px;
  display: grid;
  place-items: center;
  clip-path: polygon(25% 2%, 75% 2%, 98% 30%, 98% 70%, 75% 98%, 25% 98%, 2% 70%, 2% 30%);
  border: 2px solid rgba(255, 222, 138, 0.68);
  background:
    radial-gradient(circle at 50% 35%, rgba(127, 237, 255, 0.42), transparent 36%),
    linear-gradient(180deg, #2f77c5 0%, #163d72 52%, #0f2648 100%);
  box-shadow:
    0 22px 40px rgba(0, 0, 0, 0.28),
    0 0 0 6px rgba(216, 142, 35, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.28);
}

.mission-hero-emblem::before,
.mission-hero-emblem::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.mission-hero-emblem::after {
  inset: auto 16px 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(7, 21, 42, 0.44);
  filter: blur(1px);
}

.mission-hero-emblem-core {
  position: relative;
  z-index: 1;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #e9fbff;
  background: radial-gradient(circle at 50% 30%, rgba(96, 233, 255, 0.84), rgba(19, 56, 101, 0.92));
  box-shadow:
    0 0 22px rgba(96, 233, 255, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.mission-hero-emblem-reorder {
  border-color: rgba(255, 216, 111, 0.8);
}

.mission-hero-badge {
  min-width: 148px;
  padding: 16px 18px;
  border-radius: 24px;
  text-align: center;
  font-weight: 900;
  color: #0c2d24;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.3), rgba(255,255,255,0.08)),
    linear-gradient(180deg, #ffe39a, #f2c35b);
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow:
    0 16px 30px rgba(242, 195, 91, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  animation: badgeFloat 3.8s ease-in-out infinite;
}

.mission-hero-badge span,
.mission-hero-badge small {
  display: block;
}

.mission-hero-badge span {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mission-hero-badge strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 34px;
  line-height: 1;
}

.mission-hero-badge small {
  color: rgba(12, 45, 36, 0.8);
  font-size: 13px;
  font-weight: 800;
}

.mission-hero-badge-progress {
  color: #e6faff;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04)),
    linear-gradient(180deg, #1765c2, #0e3f81);
  border-color: rgba(95, 230, 255, 0.32);
  box-shadow:
    0 22px 36px rgba(4, 17, 39, 0.34),
    0 0 24px rgba(73, 209, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.mission-hero-badge-progress small,
.mission-hero-badge-progress span {
  color: #b9edff;
}

.mission-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.mission-spark {
  position: absolute;
  bottom: -40px;
  left: var(--spark-x);
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,0.92), rgba(255,255,255,0.06));
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.22);
  opacity: 0;
  animation: sparkRise 8s linear infinite;
  animation-delay: var(--spark-delay);
}

.mission-spark.spark-2 {
  width: 7px;
  height: 7px;
  background: radial-gradient(circle, rgba(255, 228, 160, 0.95), rgba(255, 228, 160, 0.04));
}

.mission-spark.spark-3 {
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, rgba(122, 246, 207, 0.9), rgba(122, 246, 207, 0.05));
}

.mission-spark.spark-4 {
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, rgba(89, 212, 255, 0.95), rgba(89, 212, 255, 0.05));
}

.submap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.submap-node {
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.submap-node.available {
  border-color: rgba(242, 195, 91, 0.4);
}

.submap-node.completed {
  border-color: rgba(69, 211, 156, 0.45);
}

.submap-node.locked {
  opacity: 0.65;
}

.node-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 999px;
  font-weight: 900;
  background: linear-gradient(180deg, #ffe39a, #f2c35b);
  color: #5c4711;
}

.submap-node h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.submap-node p {
  margin: 0 0 8px;
}

.mission-steps {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.mission-reorder-shell {
  margin: 24px 0 18px;
}

.mission-stage-banner-reorder {
  background:
    radial-gradient(circle at right center, rgba(255, 217, 107, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
}

.mission-stage-banner-quest {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.mission-stage-score {
  min-width: 170px;
  padding: 12px 16px;
  border-radius: 18px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(18, 82, 160, 0.84), rgba(8, 42, 84, 0.94));
  border: 1px solid rgba(87, 223, 255, 0.22);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

.mission-stage-score b,
.mission-stage-score span {
  display: block;
}

.mission-stage-score b {
  font-size: 34px;
  line-height: 1;
  color: #ffd45a;
}

.mission-stage-score span {
  margin-top: 4px;
  color: #d6f0ff;
  font-weight: 700;
}

.mission-reorder-progress {
  margin: 16px 0 18px;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(9, 23, 41, 0.84), rgba(6, 17, 31, 0.76));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 4px 10px rgba(0,0,0,0.18);
}

.mission-reorder-progress-fill {
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #63cb95 0%, #79f0cf 55%, #ffd45a 100%);
  box-shadow:
    0 0 18px rgba(122, 246, 207, 0.24),
    inset 0 1px 0 rgba(255,255,255,0.3);
  transition: width 0.28s ease;
}

.mission-reorder-track {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 14% 20%, rgba(89, 212, 255, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(8, 22, 40, 0.82), rgba(5, 13, 23, 0.9));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 18px 34px rgba(0,0,0,0.18);
}

.mission-reorder-track-quest {
  position: relative;
  padding: 28px 22px 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 235, 160, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(22, 75, 132, 0.24), rgba(7, 21, 40, 0.94) 28%),
    linear-gradient(180deg, rgba(9, 24, 43, 0.94), rgba(6, 14, 25, 0.98));
}

.mission-reorder-scenery {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.mission-reorder-island,
.mission-reorder-lighthouse,
.mission-reorder-bot {
  position: absolute;
  display: block;
}

.mission-reorder-island {
  right: 80px;
  top: 18px;
  width: 160px;
  height: 56px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 40%, rgba(86, 201, 118, 0.92), rgba(42, 107, 62, 0.96) 60%, rgba(13, 45, 30, 0.96));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
  opacity: 0.74;
}

.mission-reorder-lighthouse {
  right: 118px;
  top: -6px;
  width: 30px;
  height: 74px;
  border-radius: 16px 16px 8px 8px;
  background:
    linear-gradient(180deg, #ffe7af 0%, #f6c35d 16%, #df8a34 17%, #fff4dc 32%, #8ecbff 33%, #6cb5ff 52%, #fff2d5 53%, #f0c980 72%, #9a5f2e 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.mission-reorder-bot {
  right: 24px;
  top: 62px;
  width: 92px;
  height: 112px;
  border-radius: 32px 32px 24px 24px;
  background:
    radial-gradient(circle at 50% 24%, rgba(93, 232, 255, 0.92), rgba(28, 93, 164, 0.1) 26%),
    linear-gradient(180deg, #fff3db 0%, #cad6eb 48%, #8394b1 100%);
  box-shadow:
    0 16px 26px rgba(0, 0, 0, 0.24),
    inset 0 2px 0 rgba(255,255,255,0.44);
  opacity: 0.92;
}

.mission-reorder-bot::before,
.mission-reorder-bot::after {
  content: "";
  position: absolute;
}

.mission-reorder-bot::before {
  left: 18px;
  right: 18px;
  top: 16px;
  height: 34px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 50%, rgba(86, 241, 255, 0.98), rgba(86, 241, 255, 0.12) 22%, transparent 23%),
    radial-gradient(circle at 70% 50%, rgba(86, 241, 255, 0.98), rgba(86, 241, 255, 0.12) 22%, transparent 23%),
    linear-gradient(180deg, #17355f, #0c203d);
}

.mission-reorder-bot::after {
  left: 28px;
  bottom: 18px;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(72, 225, 255, 0.82), rgba(26, 91, 176, 0.2));
  box-shadow: 0 0 18px rgba(72, 225, 255, 0.4);
}

.mission-reorder-lane {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
  align-items: end;
  padding: 12px 10px 22px;
}

.mission-reorder-lane::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  height: 78px;
  border-radius: 28px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 191, 69, 0.88) 0 16px,
      rgba(106, 68, 20, 0.92) 16px 18px,
      rgba(13, 41, 72, 0.98) 18px 110px
    );
  border: 1px solid rgba(255, 196, 92, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 18px 32px rgba(0,0,0,0.24);
}

.mission-sequence-card {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 270px;
  padding: 18px 16px 20px;
  border-radius: 24px;
  border: 2px solid rgba(255, 214, 102, 0.36);
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,0.55), rgba(255,255,255,0) 32%),
    linear-gradient(180deg, #fff7e4 0%, #f9ecd0 54%, #f1ddb5 100%);
  color: #f2f8ff;
  text-align: center;
  cursor: pointer;
  box-shadow:
    0 22px 34px rgba(0, 0, 0, 0.22),
    inset 0 2px 0 rgba(255,255,255,0.92),
    inset 0 -10px 18px rgba(187, 127, 41, 0.14);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.mission-sequence-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 216, 111, 0.72);
  box-shadow:
    0 28px 36px rgba(0,0,0,0.28),
    0 0 24px rgba(255, 214, 102, 0.16);
}

.mission-sequence-card.selected {
  border-color: rgba(255, 212, 90, 0.84);
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 244, 189, 0.84), rgba(255,255,255,0) 34%),
    linear-gradient(180deg, #fffaf0 0%, #ffe9b8 56%, #f4d487 100%);
  box-shadow:
    0 24px 40px rgba(242, 195, 91, 0.24),
    0 0 26px rgba(255, 212, 90, 0.18);
}

.mission-sequence-card.correct {
  border-color: rgba(101, 237, 173, 0.64);
  background:
    radial-gradient(circle at 50% 18%, rgba(220, 255, 232, 0.92), rgba(255,255,255,0) 36%),
    linear-gradient(180deg, #fff8e7 0%, #e8f7de 52%, #d2efc0 100%);
}

.mission-sequence-card strong {
  display: block;
  margin-top: 12px;
  font-size: 20px;
  line-height: 1.15;
  color: #2e210f;
}

.mission-sequence-pin {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 48px;
  padding: 8px 12px;
  border-radius: 18px 18px 12px 12px;
  background: linear-gradient(180deg, #ffd968, #ef9f2c);
  border: 1px solid rgba(255,255,255,0.42);
  color: #fffaf0;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  box-shadow:
    0 10px 22px rgba(159, 88, 12, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.36);
}

.mission-sequence-plate {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.mission-sequence-order {
  display: inline-flex;
  margin-top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(115, 69, 16, 0.08);
  color: #6e4610;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mission-sequence-icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 5px solid rgba(152, 101, 29, 0.22);
  background:
    radial-gradient(circle at 50% 32%, rgba(255,255,255,0.82), rgba(255,255,255,0) 34%),
    linear-gradient(180deg, #efc169, #be7c1f);
  color: #fff8ee;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow:
    0 10px 20px rgba(105, 62, 12, 0.22),
    inset 0 2px 0 rgba(255,255,255,0.42);
}

.mission-sequence-status {
  display: block;
  margin-top: 10px;
  color: #5f4c29;
  font-weight: 700;
}

.mission-sequence-foot {
  display: inline-flex;
  justify-content: center;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(97, 64, 18, 0.08);
  color: #73501b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mission-sequence-card-gold .mission-sequence-pin,
.mission-sequence-card-gold .mission-sequence-icon {
  background:
    radial-gradient(circle at 50% 32%, rgba(255,255,255,0.82), rgba(255,255,255,0) 34%),
    linear-gradient(180deg, #ffd568, #ef9f2c);
}

.mission-sequence-card-emerald .mission-sequence-pin,
.mission-sequence-card-emerald .mission-sequence-icon {
  background:
    radial-gradient(circle at 50% 32%, rgba(255,255,255,0.82), rgba(255,255,255,0) 34%),
    linear-gradient(180deg, #8edc65, #359b36);
}

.mission-sequence-card-violet .mission-sequence-pin,
.mission-sequence-card-violet .mission-sequence-icon {
  background:
    radial-gradient(circle at 50% 32%, rgba(255,255,255,0.82), rgba(255,255,255,0) 34%),
    linear-gradient(180deg, #b98cff, #7450d6);
}

.mission-sequence-card-cyan .mission-sequence-pin,
.mission-sequence-card-cyan .mission-sequence-icon {
  background:
    radial-gradient(circle at 50% 32%, rgba(255,255,255,0.82), rgba(255,255,255,0) 34%),
    linear-gradient(180deg, #73e4ff, #2090d7);
}

.mission-reorder-controls {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 170px;
  gap: 14px;
  align-items: stretch;
}

.mission-thruster-btn {
  min-height: 96px;
  border-radius: 28px;
  border: 2px solid rgba(89, 212, 255, 0.24);
  background:
    radial-gradient(circle at top center, rgba(89, 212, 255, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(47, 159, 255, 0.64), rgba(22, 63, 115, 0.92));
  color: #eefaff;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
  gap: 4px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.mission-thruster-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(122, 246, 207, 0.54);
  box-shadow:
    0 16px 30px rgba(0,0,0,0.22),
    0 0 22px rgba(89, 212, 255, 0.14);
}

.mission-thruster-icon {
  font-size: 30px;
  line-height: 1;
}

.mission-reorder-console {
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  display: grid;
  gap: 6px;
}

.mission-reorder-console-quest {
  background:
    radial-gradient(circle at right center, rgba(255, 214, 102, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(12, 40, 73, 0.96), rgba(8, 24, 45, 0.98));
  border-color: rgba(95, 230, 255, 0.14);
}

.mission-reorder-console-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mission-reorder-console-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fffaf0;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.34);
}

.mission-reorder-console strong {
  font-size: 18px;
  color: #f4fbff;
}

.mission-reorder-console span {
  color: #c7dced;
  line-height: 1.5;
}

.mission-solution-radar {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.mission-panel-quest {
  max-width: 1420px;
  padding: 6px 14px 14px;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: grid;
  gap: 10px;
}

.mission-panel-quest::before {
  display: none;
}

.mission-panel-quest .mission-hero {
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
  padding: 8px 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(7, 30, 55, 0.42), rgba(7, 23, 43, 0.22));
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
  box-shadow:
    0 14px 28px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.mission-panel-quest .mission-hero-main {
  align-items: flex-start;
  gap: 10px;
}

.mission-panel-quest .mission-hero-emblem {
  width: 82px;
  height: 82px;
  flex-basis: 82px;
  padding: 7px;
  clip-path: polygon(24% 3%, 76% 3%, 97% 27%, 97% 73%, 76% 97%, 24% 97%, 3% 73%, 3% 27%);
  background:
    linear-gradient(180deg, #f8c857 0%, #c97a16 18%, #0f5aa6 19%, #1b72c7 64%, #0f3967 100%);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.24),
    inset 0 2px 0 rgba(255, 255, 255, 0.36);
}

.mission-panel-quest .mission-hero-emblem::before {
  inset: 10px;
  border-radius: 26px;
  border: 2px solid rgba(255, 211, 99, 0.7);
}

.mission-panel-quest .mission-hero-emblem::after {
  display: none;
}

.mission-hero-emblem-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.28));
}

.mission-panel-quest .mission-prompt,
.mission-panel-quest .mission-stage-copy span {
  max-width: 520px;
  color: rgba(239, 248, 255, 0.92);
  font-size: 11px;
  line-height: 1.25;
}

.mission-panel-quest .mission-meta-row {
  position: relative;
  z-index: 3;
  margin-top: 8px;
  margin-left: 0;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(7, 29, 54, 0.4), rgba(7, 21, 41, 0.22));
  border: 1px solid rgba(255,255,255,0.06);
  width: fit-content;
  max-width: 100%;
  box-shadow:
    0 10px 20px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.mission-meta-row-hero {
  display: flex;
  flex-wrap: wrap;
}

.mission-panel-quest .mission-meta-chip {
  padding: 6px 10px;
  border-width: 2px;
  font-size: 10px;
  font-weight: 800;
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.mission-panel-quest h1 {
  margin-bottom: 6px;
  font-size: 21px;
}

.mission-panel-quest .eyebrow {
  margin-bottom: 2px;
  opacity: 0.8;
  font-size: 10px;
}

.mission-panel-quest .mission-hero-badge-progress {
  width: 118px;
  min-width: 118px;
  padding: 8px 8px;
}

.mission-panel-quest .mission-hero-badge strong {
  font-size: 21px;
}

.mission-panel-quest .mission-meta-chip:nth-child(1) {
  background: linear-gradient(180deg, #7d4f19, #47270d);
  border-color: #ffc94f;
}

.mission-panel-quest .mission-meta-chip:nth-child(2) {
  background: linear-gradient(180deg, #3b9138, #1f5d1e);
  border-color: #b9f14d;
}

.mission-panel-quest .mission-meta-chip:nth-child(3) {
  background: linear-gradient(180deg, #7d49a0, #4e2368);
  border-color: #eb9cff;
}

.mission-stage-banner-arcade {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(7, 30, 57, 0.44), rgba(5, 19, 38, 0.3));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
  opacity: 1;
}

.mission-stage-copy strong {
  display: block;
  font-size: 12px;
  margin-bottom: 2px;
  color: #f5fbff;
  text-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.mission-stage-copy span {
  display: block;
  color: rgba(236, 247, 255, 0.96);
  font-size: 11px;
  line-height: 1.3;
  text-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.mission-stage-score-arcade {
  min-width: 250px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(38, 140, 255, 0.92), rgba(15, 73, 146, 0.96));
  border: 2px solid rgba(85, 215, 255, 0.34);
}

.mission-panel-quest .mission-stage-score-arcade,
.mission-panel-quest .mission-reorder-progress-panel {
  display: none;
}

.mission-reorder-shell-art {
  margin-top: 8px;
}

.mission-reorder-playfield {
  position: relative;
  min-height: 430px;
  margin-top: 2px;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.mission-reorder-ocean {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 247, 210, 0.22), transparent 16%),
    radial-gradient(circle at 16% 78%, rgba(48, 173, 88, 0.2), transparent 12%),
    radial-gradient(circle at 85% 76%, rgba(48, 173, 88, 0.18), transparent 10%);
}

.mission-reorder-track-image {
  position: absolute;
  left: 24px;
  right: 146px;
  bottom: -42px;
  z-index: 1;
}

.mission-reorder-track-image img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.28));
}

.mission-reorder-progress-panel {
  position: absolute;
  top: 34px;
  right: 42px;
  z-index: 3;
  width: 300px;
  padding: 20px 22px 18px;
  text-align: center;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(20, 132, 235, 0.95), rgba(11, 68, 140, 0.98));
  border: 2px solid rgba(92, 232, 255, 0.36);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.mission-reorder-progress-title {
  color: #9deaff;
  font-size: 18px;
  font-weight: 900;
}

.mission-reorder-progress-panel strong {
  display: block;
  margin: 6px 0;
  color: #ffd454;
  font-size: 52px;
  line-height: 1;
}

.mission-reorder-progress-panel span {
  color: #eaf8ff;
  font-size: 16px;
  font-weight: 700;
}

.mission-reorder-progress-arcade {
  height: 12px;
  margin-top: 14px;
  background: rgba(7, 28, 60, 0.76);
}

.mission-reorder-lane-art {
  position: absolute;
  left: 34px;
  right: 360px;
  top: 82px;
  bottom: auto;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 0 6px;
  align-items: stretch;
}

.mission-reorder-lane-art[data-step-count="1"],
.mission-reorder-lane-art[data-step-count="2"],
.mission-reorder-lane-art[data-step-count="3"],
.mission-reorder-lane-art[data-step-count="4"] {
  top: 112px;
  right: 178px;
  grid-template-columns: repeat(var(--mission-step-columns, 4), minmax(0, 1fr));
}

.mission-reorder-lane-art[data-step-count="1"] { --mission-step-columns: 1; }
.mission-reorder-lane-art[data-step-count="2"] { --mission-step-columns: 2; }
.mission-reorder-lane-art[data-step-count="3"] { --mission-step-columns: 3; }
.mission-reorder-lane-art[data-step-count="4"] { --mission-step-columns: 4; }

.mission-reorder-lane-art[data-step-count="5"],
.mission-reorder-lane-art[data-step-count="6"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mission-reorder-lane-art[data-step-count="7"],
.mission-reorder-lane-art[data-step-count="8"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mission-reorder-lane-art::before {
  display: none;
}

.mission-assistant {
  position: absolute;
  right: 18px;
  bottom: 282px;
  z-index: 8;
  display: grid;
  justify-items: end;
  pointer-events: none;
}

.mission-assistant-bubble {
  position: relative;
  width: min(300px, calc(100vw - 40px));
  margin-bottom: 10px;
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 226, 134, 0.42);
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 239, 170, 0.16), transparent 24%),
    radial-gradient(circle at 88% 14%, rgba(117, 235, 255, 0.16), transparent 22%),
    linear-gradient(180deg, rgba(15, 53, 92, 0.98), rgba(8, 24, 48, 0.99));
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.28),
    0 0 32px rgba(92, 232, 255, 0.16),
    0 0 18px rgba(255, 212, 95, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.97);
  transform-origin: 86% 100%;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
  pointer-events: none;
}

.mission-assistant:hover .mission-assistant-bubble,
.mission-assistant.open .mission-assistant-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mission-assistant-bubble::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: -9px;
  width: 18px;
  height: 18px;
  border-right: 1px solid rgba(255, 226, 134, 0.4);
  border-bottom: 1px solid rgba(255, 226, 134, 0.4);
  background: rgba(8, 22, 43, 0.98);
  transform: rotate(45deg);
}

.mission-assistant-bubble::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 22px;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at 84% 24%, rgba(110, 240, 255, 0.14), transparent 18%);
  opacity: 0.9;
}

.mission-assistant-bubble-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.mission-assistant-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffe7a0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(255, 199, 95, 0.24), rgba(116, 71, 11, 0.18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.mission-assistant-close {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #eaf7ff;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.mission-assistant-close:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.04);
}

.mission-assistant-bubble strong {
  display: block;
  margin-bottom: 7px;
  color: #ffffff;
  font-size: 21px;
  line-height: 1.05;
  position: relative;
  z-index: 1;
}

.mission-assistant-bubble p {
  margin: 0 0 8px;
  color: #edf8ff;
  font-size: 14px;
  line-height: 1.45;
  position: relative;
  z-index: 1;
}

.mission-assistant-bubble small {
  display: block;
  color: #b8d6ef;
  font-size: 12px;
  line-height: 1.45;
  position: relative;
  z-index: 1;
}

.mission-assistant-type-title,
.mission-assistant-type-body {
  overflow: hidden;
}

.mission-assistant-type-title span,
.mission-assistant-type-body span {
  display: inline-block;
  overflow: hidden;
}

.mission-assistant-type-title span {
  white-space: nowrap;
  width: 0;
  border-right: 2px solid rgba(255, 236, 165, 0.8);
}

.mission-assistant-type-body span {
  display: block;
  width: 100%;
  white-space: normal;
  clip-path: inset(0 100% 0 0);
}

.mission-assistant:hover .mission-assistant-type-title span,
.mission-assistant.open .mission-assistant-type-title span {
  width: calc(var(--type-steps) * 1ch);
  animation:
    missionAssistantTypeIn var(--type-duration) steps(var(--type-steps)) 1 forwards,
    missionAssistantCaret 0.8s step-end infinite;
}

.mission-assistant:hover .mission-assistant-type-body span,
.mission-assistant.open .mission-assistant-type-body span {
  animation:
    missionAssistantRevealBody var(--type-duration) ease 1 forwards;
  animation-delay: 0.14s;
}

.mission-assistant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.mission-assistant-chip {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.05);
  color: #e9f6ff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.mission-assistant-chip:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(180deg, rgba(131, 237, 255, 0.18), rgba(255, 216, 116, 0.12)),
    rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 226, 134, 0.34);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.mission-assistant-chip.active {
  color: #1b2b22;
  background: linear-gradient(180deg, #ffe39a, #f2c35b);
  border-color: rgba(255, 226, 134, 0.4);
  box-shadow:
    0 8px 16px rgba(242, 195, 91, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.mission-assistant-trigger {
  position: relative;
  width: 116px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.34));
  animation: missionAssistantFloat 3.4s ease-in-out infinite;
}

.mission-assistant-trigger::before {
  content: "";
  position: absolute;
  inset: 18px 18px 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 216, 116, 0.12), rgba(92, 232, 255, 0) 72%);
  animation: missionAssistantHalo 2.6s ease-in-out infinite;
}

.mission-assistant-trigger img {
  position: relative;
  z-index: 2;
  width: 100%;
  display: block;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.mission-assistant:hover .mission-assistant-trigger img,
.mission-assistant.open .mission-assistant-trigger img {
  transform: translateY(-2px) rotate(-2deg);
  filter: brightness(1.04) saturate(1.06);
}

.mission-assistant-ring,
.mission-assistant-spark {
  position: absolute;
  pointer-events: none;
}

.mission-assistant-ring {
  left: 50%;
  bottom: 16px;
  width: 84px;
  height: 26px;
  border-radius: 999px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 50%, rgba(120, 231, 255, 0.38), rgba(120, 231, 255, 0) 72%);
  filter: blur(1px);
  animation: missionAssistantPulse 2.8s ease-in-out infinite;
}

.mission-assistant-spark {
  left: 50%;
  top: 4px;
  width: 132px;
  height: 132px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(89, 212, 255, 0.18), rgba(89, 212, 255, 0) 64%);
  animation: missionAssistantGlow 3.1s ease-in-out infinite;
}

.mission-sequence-card-art {
  min-height: 136px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: center;
  transform: none !important;
  transition: filter 0.22s ease, opacity 0.22s ease;
}

.mission-sequence-card-art:hover {
  transform: none;
  box-shadow: none;
  filter: brightness(1.06) saturate(1.06);
}

.mission-sequence-card-art.selected {
  transform: none;
}

.mission-sequence-card-art.correct .mission-sequence-card-frame {
  box-shadow:
    0 24px 38px rgba(0, 0, 0, 0.22),
    0 0 0 4px rgba(116, 248, 179, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.85);
}

.mission-sequence-card-frame {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 136px;
  padding: 10px 8px 9px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0) 24%),
    linear-gradient(180deg, #fff6df 0%, #f9e9c8 52%, #efdcb0 100%);
  border: 3px solid #e9c87b;
  box-shadow:
    0 24px 38px rgba(0, 0, 0, 0.22),
    inset 0 2px 0 rgba(255, 255, 255, 0.85);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease,
    filter 0.24s ease;
}

.mission-sequence-card-frame::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -8px;
  height: 18px;
  border-radius: 999px;
  background: rgba(12, 35, 66, 0.22);
  filter: blur(6px);
  z-index: -1;
  transition:
    transform 0.24s ease,
    opacity 0.24s ease,
    filter 0.24s ease;
}

.mission-sequence-card-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 12px;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 50% 72%, rgba(255, 207, 96, 0.12), rgba(255, 207, 96, 0) 42%);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.mission-sequence-card-art.selected .mission-sequence-card-frame {
  box-shadow:
    0 22px 32px rgba(0, 0, 0, 0.2),
    0 0 0 4px rgba(255, 211, 96, 0.26),
    inset 0 2px 0 rgba(255, 255, 255, 0.9);
  border-color: #ffd77c;
}

.mission-sequence-card-art:hover .mission-sequence-card-frame {
  transform: translateY(-5px);
  border-color: #ffdd8a;
  box-shadow:
    0 28px 42px rgba(0, 0, 0, 0.24),
    0 0 0 4px rgba(255, 220, 122, 0.18),
    0 0 28px rgba(255, 205, 92, 0.16),
    inset 0 2px 0 rgba(255, 255, 255, 0.9);
}

.mission-sequence-card-art:hover .mission-sequence-card-frame::after {
  opacity: 0.42;
  transform: translateY(4px) scale(1.08);
  filter: blur(8px);
}

.mission-sequence-card-art:hover .mission-sequence-card-frame::before {
  opacity: 1;
}

.mission-sequence-card-art strong {
  margin-top: 6px;
  color: #2d2112;
  font-size: clamp(10px, 0.78vw, 12px);
  line-height: 1.2;
  text-wrap: balance;
  max-width: 18ch;
}

.mission-sequence-card-art .mission-sequence-order {
  margin-top: 0;
  padding: 0;
  background: transparent;
  color: #6f4614;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.mission-sequence-label {
  display: inline-flex;
  margin-top: 3px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(125, 91, 39, 0.08);
  color: #8a5a21;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}

.mission-sequence-art-wrap {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  transition: transform 0.26s ease, filter 0.26s ease;
}

.mission-sequence-art-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(90, 59, 17, 0.22));
  transition:
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.26s ease;
}

.mission-sequence-card-art:hover .mission-sequence-art-wrap {
  transform: translateY(-4px);
}

.mission-sequence-card-art:hover .mission-sequence-art-wrap img {
  transform: scale(1.18) rotate(-2deg);
  filter:
    drop-shadow(0 18px 24px rgba(90, 59, 17, 0.26))
    drop-shadow(0 0 12px rgba(255, 211, 96, 0.18));
}

.mission-sequence-card-art:hover .mission-sequence-label {
  background: rgba(255, 209, 104, 0.16);
  color: #7d4a13;
}

.mission-sequence-card-art:hover .mission-sequence-pin {
  transform: translateY(-3px) scale(1.08);
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.18),
    0 0 14px rgba(255, 214, 102, 0.22);
}

.mission-sequence-pin {
  top: -10px;
  min-width: 30px;
  padding: 5px 7px;
  border-radius: 12px 12px 8px 8px;
  color: #fffef8;
  font-size: 15px;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.mission-reorder-lane-art[data-step-count="5"] .mission-sequence-card-art,
.mission-reorder-lane-art[data-step-count="6"] .mission-sequence-card-art,
.mission-reorder-lane-art[data-step-count="7"] .mission-sequence-card-art,
.mission-reorder-lane-art[data-step-count="8"] .mission-sequence-card-art {
  min-height: 128px;
}

.mission-reorder-lane-art[data-step-count="5"] .mission-sequence-card-frame,
.mission-reorder-lane-art[data-step-count="6"] .mission-sequence-card-frame,
.mission-reorder-lane-art[data-step-count="7"] .mission-sequence-card-frame,
.mission-reorder-lane-art[data-step-count="8"] .mission-sequence-card-frame {
  min-height: 128px;
}

.mission-reorder-lane-art[data-step-count="5"] .mission-sequence-art-wrap,
.mission-reorder-lane-art[data-step-count="6"] .mission-sequence-art-wrap,
.mission-reorder-lane-art[data-step-count="7"] .mission-sequence-art-wrap,
.mission-reorder-lane-art[data-step-count="8"] .mission-sequence-art-wrap {
  width: 58px;
  height: 58px;
}

.mission-sequence-pin-gold {
  background: linear-gradient(180deg, #ffcb56, #f3a421);
}

.mission-sequence-pin-green {
  background: linear-gradient(180deg, #7fe25a, #3ea936);
}

.mission-sequence-pin-blue {
  background: linear-gradient(180deg, #66bbff, #2f7de7);
}

.mission-sequence-pin-teal {
  background: linear-gradient(180deg, #4ddad0, #1893a8);
}

.mission-reorder-controls-art {
  display: none;
  grid-template-columns: 220px minmax(0, 1fr) 220px;
  margin-top: 8px;
  align-items: stretch;
}

.mission-reorder-popover {
  position: absolute;
  left: 50%;
  bottom: 160px;
  z-index: 5;
  transform: translateX(-50%);
  width: min(250px, calc(100% - 28px));
  animation: none;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.mission-reorder-popover-card {
  position: relative;
  border-radius: 24px;
  border: 2px solid rgba(255, 215, 116, 0.44);
  background:
    linear-gradient(180deg, rgba(16, 80, 147, 0.96), rgba(8, 38, 80, 0.98));
  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  overflow: hidden;
  pointer-events: auto;
  backdrop-filter: blur(8px);
}

.mission-reorder-popover-card::before {
  content: "";
  position: absolute;
  inset: auto auto 100% 50%;
  width: 18px;
  height: 18px;
  background: rgba(16, 80, 147, 0.96);
  border-left: 2px solid rgba(255, 215, 116, 0.44);
  border-top: 2px solid rgba(255, 215, 116, 0.44);
  transform: translate(-50%, 9px) rotate(45deg);
}

.mission-reorder-popover-head,
.mission-reorder-popover-main,
.mission-reorder-popover-actions {
  position: relative;
  z-index: 1;
}

.mission-reorder-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 0;
}

.mission-reorder-close {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f2fbff;
  font-size: 20px;
  cursor: pointer;
}

.mission-reorder-popover-main {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 12px;
}

.mission-reorder-popover-art {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 32%, rgba(255,255,255,0.36), rgba(255,255,255,0) 38%),
    linear-gradient(180deg, #ffd46c, #d38b22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.24),
    0 10px 18px rgba(0, 0, 0, 0.18);
}

.mission-reorder-popover-art img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.mission-reorder-popover-copy strong {
  display: block;
  margin-bottom: 2px;
  color: #ffd96d;
  font-size: 18px;
  line-height: 1.1;
}

.mission-reorder-popover-copy span {
  display: block;
  color: #e5f4ff;
  font-size: 12px;
}

.mission-reorder-popover-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 14px 14px;
}

.mission-reorder-mini-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 16px;
  color: #f7fcff;
  font-weight: 900;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04)),
    linear-gradient(180deg, #33a4ff, #1d67d7);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.2),
    0 12px 20px rgba(0, 0, 0, 0.16);
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.mission-reorder-mini-btn:last-child {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04)),
    linear-gradient(180deg, #78d51c, #359e13);
}

.mission-reorder-mini-btn:disabled {
  cursor: default;
  opacity: 0.45;
  filter: grayscale(0.15);
}

.mission-reorder-mini-btn:not(:disabled):hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.mission-reorder-mini-arrow {
  font-size: 22px;
  line-height: 1;
}

.mission-reorder-controls-art .mission-thruster-btn {
  min-height: 168px;
  border-radius: 26px;
  border: 3px solid rgba(112, 210, 255, 0.34);
  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.mission-reorder-controls-art .stepUpBtn {
  background: linear-gradient(180deg, #33a4ff, #1d67d7);
}

.mission-reorder-controls-art .stepDownBtn {
  background: linear-gradient(180deg, #78d51c, #359e13);
}

.mission-reorder-controls-art .mission-thruster-btn span:last-child {
  font-size: 24px;
}

.mission-reorder-controls-art .mission-thruster-icon {
  font-size: 0;
}

.mission-reorder-controls-art .stepUpBtn .mission-thruster-icon::before,
.mission-reorder-controls-art .stepDownBtn .mission-thruster-icon::before {
  display: block;
  font-size: 72px;
  line-height: 1;
}

.mission-reorder-controls-art .stepUpBtn .mission-thruster-icon::before {
  content: "\2190";
}

.mission-reorder-controls-art .stepDownBtn .mission-thruster-icon::before {
  content: "\2192";
}

.mission-reorder-console-art {
  min-height: 184px;
  padding: 18px 22px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(17, 82, 152, 0.94), rgba(9, 44, 90, 0.98));
  border: 2px solid rgba(86, 221, 255, 0.22);
}

.mission-reorder-console-main-art {
  align-items: center;
}

.mission-reorder-console-art-wrap {
  width: 110px;
  height: 110px;
  flex: 0 0 110px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 38%),
    linear-gradient(180deg, #ffd673, #d78e27);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.32),
    0 14px 24px rgba(0, 0, 0, 0.2);
}

.mission-reorder-console-art-wrap img {
  width: 84%;
  height: 84%;
  object-fit: contain;
}

.mission-reorder-console-copy strong {
  display: block;
  margin-bottom: 8px;
  font-size: 34px;
  color: #ffda70;
}

.mission-reorder-console-copy span {
  display: block;
  color: #e7f5ff;
  font-size: 16px;
}

.mission-reorder-console-robot {
  width: 96px;
  margin-left: auto;
}

.mission-reorder-console-robot img {
  width: 100%;
  display: block;
}

.mission-step {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(18, 55, 96, 0.88), rgba(8, 25, 46, 0.96));
  border: 1px solid rgba(95, 230, 255, 0.12);
}

.mission-card-animated {
  animation: none;
}

.mission-step span {
  font-weight: 800;
  color: #f2f8ff;
}

.mission-step small {
  color: #b8cfdf;
  font-weight: 700;
}

.mission-step.is-correct {
  border-color: rgba(122, 246, 207, 0.28);
  background: linear-gradient(180deg, rgba(122, 246, 207, 0.16), rgba(39, 182, 128, 0.08));
}

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

.mission-helper,
.mission-prompt {
  color: #d7e8f6;
  line-height: 1.6;
}

.mission-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.mission-meta-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f4fbff;
  font-weight: 700;
  font-size: 14px;
}

.mission-options,
.mission-categories {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

.mission-option,
.mission-category-card {
  width: 100%;
  padding: 18px 22px;
  text-align: left;
  border-radius: 22px;
  border: 1.5px solid rgba(89, 212, 255, 0.15);
  background: linear-gradient(135deg, rgba(13, 27, 49, 0.8) 0%, rgba(6, 12, 24, 0.9) 100%);
  color: #f3f9ff;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.mission-option:hover,
.mission-category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(89, 212, 255, 0.5);
  box-shadow: 
    0 12px 28px rgba(0, 0, 0, 0.45),
    0 0 15px rgba(89, 212, 255, 0.15);
}

.mission-option.selected {
  border-color: rgba(242, 195, 91, 0.85);
  background: linear-gradient(135deg, rgba(242, 195, 91, 0.22) 0%, rgba(6, 12, 24, 0.95) 100%);
  box-shadow:
    0 12px 28px rgba(242, 195, 91, 0.2),
    0 0 20px rgba(242, 195, 91, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: choiceGlowPulse 2s ease-in-out infinite alternate;
}

.mission-option strong,
.mission-category-card strong {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #59d4ff;
  background: rgba(89, 212, 255, 0.08);
  color: #59d4ff;
  font-family: Fredoka, sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-shadow: 0 0 4px rgba(89, 212, 255, 0.4);
  box-shadow: 0 0 8px rgba(89, 212, 255, 0.1);
  transition: all 0.25s;
}

.mission-option.selected strong {
  border-color: #f2c35b;
  background: rgba(242, 195, 91, 0.15);
  color: #f2c35b;
  text-shadow: 0 0 4px rgba(242, 195, 91, 0.4);
  box-shadow: 0 0 8px rgba(242, 195, 91, 0.2);
}

.mission-option span,
.mission-category-card span {
  display: block;
  color: #e0f2fe;
  font-family: Quicksand, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.mission-category-card span {
  margin-top: 6px;
  color: #ffe4a0;
  font-weight: 800;
}

.mission-category-legend {
  color: #bdd3e5;
  font-weight: 700;
  margin-top: -8px;
}

.mission-grid-wrap {
  display: grid;
  gap: 12px;
  margin: 24px 0 18px;
}

.mission-stage-banner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  color: #eaf7ff;
  font-weight: 800;
}

.mission-grid-board {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(8, 18, 33, 0.78), rgba(5, 11, 20, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mission-grid-cell {
  min-height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 28px;
  font-weight: 900;
  color: #ecf9ff;
  background: linear-gradient(180deg, rgba(45, 82, 126, 0.82), rgba(18, 38, 68, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.mission-grid-cell.goal {
  background: linear-gradient(180deg, rgba(242, 195, 91, 0.9), rgba(179, 118, 22, 0.92));
  color: #fff7d1;
}

.mission-grid-cell.obstacle {
  background: linear-gradient(180deg, rgba(94, 114, 133, 0.92), rgba(50, 63, 79, 0.96));
  color: #d4dfeb;
}

.mission-grid-cell.player {
  background: linear-gradient(180deg, rgba(122, 246, 207, 0.88), rgba(39, 182, 128, 0.94));
  color: #07392a;
  transform: scale(1.05);
  box-shadow:
    0 10px 18px rgba(32, 201, 143, 0.24),
    0 0 20px rgba(122, 246, 207, 0.18);
  animation: playerPulse 0.8s ease-in-out infinite alternate;
}

.mission-grid-cell.trail {
  color: rgba(255, 255, 255, 0.75);
  background: linear-gradient(180deg, rgba(75, 104, 140, 0.7), rgba(18, 38, 68, 0.86));
}

.mission-grid-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #c1d4e5;
  font-size: 14px;
  font-weight: 700;
}

.mission-command-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.mission-command-btn {
  padding: 12px 16px;
  border: 1px solid rgba(89, 212, 255, 0.2);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(89, 212, 255, 0.18), rgba(31, 76, 118, 0.28));
  color: #eefaff;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.mission-command-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(122, 246, 207, 0.3);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.mission-program-panel,
.mission-loop-preview {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mission-program-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  color: #f2fbff;
}

.mission-program-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mission-program-chip,
.mission-program-empty {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(10, 24, 43, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #dceaf5;
  font-weight: 700;
}

.mission-program-chip.active {
  background: linear-gradient(180deg, rgba(122, 246, 207, 0.22), rgba(39, 182, 128, 0.12));
  border-color: rgba(122, 246, 207, 0.28);
  color: #f0fffb;
  box-shadow: 0 10px 22px rgba(32, 201, 143, 0.14);
}

.mission-program-empty {
  width: 100%;
}

.mission-program-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.mission-preview-note {
  margin-top: 14px;
  color: #c4dced;
  font-weight: 700;
}

.mission-preview-note.success {
  color: #b8ffe6;
}

.mission-path-game {
  display: grid;
  grid-template-columns: minmax(540px, 1.25fr) minmax(300px, 0.75fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 12px;
}

.mission-path-board-panel,
.mission-path-control-panel {
  position: relative;
  border-radius: 26px;
  border: 1px solid rgba(131, 223, 255, 0.18);
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 245, 177, 0.1), transparent 22%),
    linear-gradient(180deg, rgba(10, 43, 79, 0.72), rgba(4, 20, 42, 0.74));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 20px 38px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.mission-path-board-panel {
  padding: 16px;
}

.mission-path-control-panel {
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.mission-path-helper {
  margin: 0 0 10px;
  color: #f4fbff;
  font-weight: 850;
}

.mission-path-map {
  margin: 0;
}

.mission-path-map .mission-stage-banner {
  background:
    linear-gradient(180deg, rgba(33, 105, 154, 0.72), rgba(11, 48, 91, 0.76));
  border-color: rgba(128, 231, 255, 0.18);
}

.mission-path-map .mission-grid-board {
  gap: 10px;
  padding: 16px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 40%, rgba(58, 210, 255, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(8, 49, 83, 0.78), rgba(4, 23, 48, 0.86));
  border: 1px solid rgba(132, 235, 255, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 20px 34px rgba(0, 0, 0, 0.18);
}

.mission-path-map .mission-grid-cell {
  position: relative;
  min-height: clamp(74px, 8.4vw, 112px);
  border-radius: 24px;
  overflow: visible;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(64, 155, 203, 0.72), rgba(17, 91, 151, 0.82));
  border: 2px solid rgba(155, 235, 255, 0.16);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.14),
    inset 0 -4px 0 rgba(2, 42, 86, 0.2),
    0 8px 16px rgba(0, 0, 0, 0.12);
}

.mission-path-map .mission-grid-cell::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.mission-path-map .mission-grid-cell.goal {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 245, 184, 0.52), transparent 34%),
    linear-gradient(180deg, rgba(232, 174, 58, 0.94), rgba(165, 107, 22, 0.96));
  border-color: rgba(255, 232, 141, 0.62);
}

.mission-path-map .mission-grid-cell.obstacle {
  background:
    linear-gradient(180deg, rgba(112, 135, 150, 0.96), rgba(54, 75, 94, 0.98));
  border-color: rgba(218, 232, 242, 0.22);
}

.mission-path-map .mission-grid-cell.player {
  transform: scale(1.03);
  background:
    radial-gradient(circle at 50% 42%, rgba(121, 255, 214, 0.4), transparent 34%),
    linear-gradient(180deg, rgba(74, 221, 166, 0.92), rgba(25, 154, 115, 0.96));
}

.mission-grid-player-token {
  position: relative;
  z-index: 2;
  width: min(72px, 70%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.28));
}

.mission-grid-player-token img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: missionPathBotBob 1.2s ease-in-out infinite;
}

.mission-grid-player-token.facing-left img { transform: scaleX(-1); }
.mission-grid-player-token.facing-up img { transform: translateY(-2px); }
.mission-grid-player-token.facing-down img { transform: translateY(2px); }

.mission-grid-goal-icon {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  background: linear-gradient(180deg, #fff8cf, #ffd05c);
  clip-path: polygon(50% 0%, 62% 34%, 98% 35%, 69% 56%, 80% 92%, 50% 70%, 20% 92%, 31% 56%, 2% 35%, 38% 34%);
  filter: drop-shadow(0 0 14px rgba(255, 218, 96, 0.44));
  animation: missionPathGoalGlow 1.7s ease-in-out infinite;
}

.mission-grid-rock-icon {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 34px;
  border-radius: 45% 55% 42% 58%;
  background:
    radial-gradient(circle at 34% 25%, rgba(255,255,255,0.22), transparent 20%),
    linear-gradient(180deg, #a7bac8, #526676);
  box-shadow: inset -5px -5px 0 rgba(36, 49, 62, 0.28);
}

.mission-grid-start-icon {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #083451;
  font-size: 18px;
  font-weight: 950;
  background: linear-gradient(180deg, #dffbff, #73def8);
  box-shadow: 0 0 18px rgba(115, 222, 248, 0.34);
}

.mission-grid-trail-dot {
  position: relative;
  z-index: 2;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.96), rgba(105,224,255,0.4));
  box-shadow: 0 0 12px rgba(105, 224, 255, 0.4);
}

.mission-grid-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(8, 31, 57, 0.46);
  color: #eaf8ff;
}

.mission-grid-legend i {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.mission-legend-goal {
  background: #ffd45a;
  clip-path: polygon(50% 0%, 62% 34%, 98% 35%, 69% 56%, 80% 92%, 50% 70%, 20% 92%, 31% 56%, 2% 35%, 38% 34%);
}

.mission-legend-rock { background: #9fb2c1; }
.mission-legend-start { background: #73def8; }

.mission-path-control-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mission-path-control-head strong {
  min-width: 58px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #082d49;
  background: linear-gradient(180deg, #ffe38f, #ffc85a);
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.18);
}

.mission-path-control-panel .mission-command-bank {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 10px;
  margin: 0;
}

.mission-path-control-panel .mission-command-btn {
  min-height: 82px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 12px 10px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 10%, rgba(255,255,255,0.22), transparent 30%),
    linear-gradient(180deg, rgba(70, 220, 164, 0.92), rgba(24, 155, 113, 0.96));
  color: #063829;
  border: 2px solid rgba(190, 255, 231, 0.36);
  font-weight: 950;
}

.mission-path-control-panel .mission-command-right,
.mission-path-control-panel .mission-command-left {
  background:
    radial-gradient(circle at 50% 10%, rgba(255,255,255,0.18), transparent 30%),
    linear-gradient(180deg, rgba(77, 177, 255, 0.9), rgba(35, 105, 210, 0.96));
  color: #f5fbff;
}

.mission-command-icon {
  width: 34px;
  height: 34px;
  position: relative;
  display: block;
}

.mission-command-icon::before {
  content: "";
  position: absolute;
  inset: 8px 4px;
  border-top: 7px solid currentColor;
  border-right: 7px solid currentColor;
  transform: rotate(45deg);
  border-radius: 2px;
}

.mission-command-left .mission-command-icon::before { transform: rotate(-135deg); }
.mission-command-right .mission-command-icon::before { transform: rotate(45deg); }
.mission-command-forward .mission-command-icon::before { transform: rotate(45deg); }

.mission-path-control-panel .mission-program-panel {
  margin-top: 0;
  background: rgba(5, 22, 43, 0.58);
}

.mission-path-control-panel .mission-program-list {
  min-height: 142px;
  display: grid;
  grid-template-columns: 1fr;
}

.mission-program-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mission-program-step {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #10314f;
  background: linear-gradient(180deg, #ffe38f, #ffc85a);
  font-size: 13px;
  font-weight: 950;
}

.mission-path-control-panel .mission-program-actions .btn {
  min-height: 48px;
}

.mission-path-control-panel .mission-preview-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(5, 22, 43, 0.5);
}

@keyframes missionPathBotBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes missionPathGoalGlow {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 12px rgba(255, 218, 96, 0.34));
  }

  50% {
    transform: scale(1.12);
    filter: drop-shadow(0 0 22px rgba(255, 218, 96, 0.62));
  }
}

@media (max-width: 1120px) {
  .mission-path-game {
    grid-template-columns: 1fr;
  }

  .mission-path-control-panel .mission-command-bank {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .mission-path-board-panel,
  .mission-path-control-panel {
    padding: 12px;
    border-radius: 22px;
  }

  .mission-path-map .mission-grid-board {
    gap: 7px;
    padding: 10px;
    border-radius: 22px;
  }

  .mission-path-map .mission-grid-cell {
    min-height: 68px;
    border-radius: 18px;
  }

  .mission-path-control-panel .mission-command-bank {
    grid-template-columns: 1fr;
  }

  .mission-path-control-panel .mission-command-btn {
    min-height: 58px;
    grid-template-columns: 42px minmax(0, 1fr);
    justify-items: start;
    padding: 10px 14px;
  }
}

.mission-loop-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 24px 0 18px;
}

.mission-loop-card {
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mission-loop-options {
  display: grid;
  gap: 10px;
}

.mission-loop-choice {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 23, 41, 0.7);
  color: #edf8ff;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.mission-loop-choice:hover {
  transform: translateY(-2px);
  border-color: rgba(89, 212, 255, 0.24);
}

.mission-loop-choice.selected {
  border-color: rgba(242, 195, 91, 0.42);
  background: linear-gradient(180deg, rgba(242, 195, 91, 0.22), rgba(128, 81, 17, 0.18));
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.14);
  animation: selectionPulse 1.8s ease-in-out infinite;
}

.mission-loop-preview p {
  margin: 8px 0 0;
  color: #e1eef7;
}

.mission-loop-track {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.mission-loop-step {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(122, 246, 207, 0.24), rgba(36, 145, 107, 0.18));
  border: 1px solid rgba(122, 246, 207, 0.28);
  color: #dbfff3;
  font-weight: 900;
  animation: loopStepBounce 1.4s ease-in-out infinite;
}

.mission-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(8, 28, 52, 0.5), rgba(5, 18, 34, 0.26));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 12px 22px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,0.06);
  justify-content: flex-end;
  position: relative;
  z-index: 9;
}

.result-screen-celebration {
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 236, 166, 0.14), transparent 18%),
    radial-gradient(circle at 82% 0%, rgba(108, 233, 255, 0.12), transparent 16%),
    linear-gradient(180deg, rgba(12, 38, 63, 0.92), rgba(7, 17, 31, 0.98));
}

.result-panel-success,
.result-panel-fail {
  position: relative;
  overflow: hidden;
}

.result-panel-success {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 216, 116, 0.14), transparent 18%),
    radial-gradient(circle at 84% 14%, rgba(94, 232, 255, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(20, 47, 80, 0.9), rgba(8, 19, 36, 0.96));
  border-color: rgba(255, 219, 133, 0.16);
}

.result-panel-fail {
  background:
    linear-gradient(180deg, rgba(8, 12, 30, 0.18), rgba(6, 10, 22, 0.34)),
    url("./img/result-fail-bg.png") center center / cover no-repeat;
  border-color: rgba(183, 153, 255, 0.18);
  width: min(1240px, calc(100vw - 8px));
  min-height: calc(100vh - 106px);
  padding: 18px 18px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 0;
  box-shadow: none;
}

.result-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;
  align-items: center;
  min-height: 340px;
}

.result-hero-copy {
  position: relative;
  z-index: 2;
}

.result-panel .eyebrow {
  margin-bottom: 8px;
}

.result-panel h1 {
  margin: 0 0 12px;
  font-size: 54px;
  line-height: 0.96;
  color: #ffffff;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.result-lead {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.25;
  color: #eef8ff;
  font-weight: 800;
  text-wrap: balance;
}

.result-cheer {
  margin: 0;
  max-width: 52ch;
  color: #cfe4f5;
  font-size: 17px;
  line-height: 1.6;
}

.result-reward-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.result-reward-pill {
  min-width: 160px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px 10px;
  align-items: center;
  padding: 18px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)),
    linear-gradient(180deg, rgba(16, 59, 105, 0.86), rgba(8, 29, 59, 0.86));
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

.result-reward-pill .currency-icon {
  width: 22px;
  height: 22px;
  grid-row: span 2;
}

.result-reward-pill strong {
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
}

.result-reward-pill small {
  color: #bad5ea;
  font-size: 13px;
  font-weight: 800;
}

.result-next-note {
  margin-top: 22px;
  max-width: 500px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 228, 155, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 220, 117, 0.12), rgba(78, 166, 255, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 16px 26px rgba(0,0,0,0.12);
}

.result-next-note strong,
.result-next-note span {
  display: block;
}

.result-next-note strong {
  margin-bottom: 6px;
  color: #ffe7a4;
  font-size: 16px;
}

.result-next-note span {
  color: #e4f2fc;
  line-height: 1.5;
}

.result-hero-robot {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 260px;
}

.result-hero-robot img {
  position: relative;
  z-index: 2;
  width: 210px;
  display: block;
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.3));
  animation: resultRobotCelebrate 2.6s ease-in-out infinite;
}

.result-hero-burst {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.result-hero-burst.burst-a {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(96, 233, 255, 0.18), rgba(96, 233, 255, 0) 66%);
  animation: resultBurstPulse 2.8s ease-in-out infinite;
}

.result-hero-burst.burst-b {
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255, 216, 116, 0.2), rgba(255, 216, 116, 0) 68%);
  animation: resultBurstPulse 2.4s ease-in-out infinite reverse;
}

.result-hero-burst.burst-c {
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 72%);
  animation: resultBurstPulse 1.9s ease-in-out infinite;
}

.result-status-badge {
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 70px;
  font-weight: 900;
}

.result-status-badge-fail {
  color: #d9ebf8;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)),
    linear-gradient(180deg, rgba(34, 104, 177, 0.9), rgba(12, 49, 99, 0.94));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 22px 36px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255,255,255,0.16);
}

.result-fail-layout {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  display: block;
}

.result-fail-copy {
  position: relative;
  z-index: 4;
  max-width: 430px;
  padding: 0;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
}

.result-copy-shell {
  padding: 20px 20px 18px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(9, 30, 55, 0.42), rgba(6, 18, 34, 0.2));
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 24px 38px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 -24px 48px rgba(0,0,0,0.12);
  backdrop-filter: blur(12px);
}

.result-fail-copy .eyebrow {
  color: #d4c7ff;
  margin-bottom: 4px;
}

.result-fail-copy h1 {
  margin: 0 0 8px;
  font-size: 44px;
  line-height: 0.95;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.result-fail-copy .result-lead {
  margin: 0 0 10px;
  max-width: 21ch;
  color: #fbf7ff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.22;
}

.result-fail-copy .result-cheer {
  max-width: 42ch;
  color: #efe6ff;
  font-size: 14px;
  line-height: 1.56;
}

.result-fail-note {
  max-width: 382px;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(198, 170, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(108, 72, 180, 0.34), rgba(43, 20, 88, 0.28)),
    radial-gradient(circle at 20% 20%, rgba(233, 214, 255, 0.12), transparent 44%);
  box-shadow:
    0 18px 28px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 0 32px rgba(154, 109, 255, 0.08);
  backdrop-filter: blur(10px);
}

.result-fail-note strong,
.result-fail-note span {
  display: block;
}

.result-fail-note strong {
  margin-bottom: 6px;
  color: #ffe2ff;
  font-size: 17px;
}

.result-fail-note span {
  color: #f0e6ff;
  font-size: 13px;
  line-height: 1.5;
}

.result-fail-scene {
  position: absolute;
  inset: 0;
}

.result-fail-flash {
  position: absolute;
  right: 15%;
  top: 30%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(221, 181, 255, 0.26), rgba(221, 181, 255, 0.08) 38%, rgba(221, 181, 255, 0) 72%);
  opacity: 0;
  mix-blend-mode: screen;
  animation: resultFailFlash 1.2s ease-out forwards;
}

.result-fail-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.result-fail-spark {
  position: absolute;
  left: var(--spark-left);
  top: var(--spark-top);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 187, 255, 0.95), rgba(223, 187, 255, 0));
  box-shadow: 0 0 16px rgba(185, 121, 255, 0.36);
  animation: resultFailSparkle 2.4s ease-in-out infinite;
  animation-delay: var(--spark-delay);
}

.result-fail-spark.sparkle-2 {
  width: 7px;
  height: 7px;
}

.result-fail-spark.sparkle-3 {
  width: 12px;
  height: 12px;
}

.result-fail-portal-glow {
  position: absolute;
  right: 12%;
  top: 18%;
  width: 210px;
  height: 292px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(180, 110, 255, 0.36), rgba(180, 110, 255, 0.08) 42%, rgba(180, 110, 255, 0) 72%);
  filter: blur(12px);
  animation: resultFailPortalPulse 2.8s ease-in-out infinite;
}

.result-fail-portal-rings {
  position: absolute;
  right: 10.8%;
  top: 16.6%;
  width: 222px;
  height: 312px;
  pointer-events: none;
}

.result-fail-portal-rings .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(214, 168, 255, 0.36);
  box-shadow:
    0 0 26px rgba(177, 121, 255, 0.22),
    inset 0 0 24px rgba(177, 121, 255, 0.18),
    0 0 46px rgba(108, 78, 255, 0.08);
  animation: resultFailRingPulse 3.2s ease-in-out infinite;
}

.result-fail-portal-rings .ring-b {
  inset: 10px;
  border-color: rgba(151, 112, 255, 0.26);
  animation-delay: -0.8s;
}

.result-fail-portal-rings .ring-c {
  inset: 22px;
  border-color: rgba(219, 181, 255, 0.22);
  animation-delay: -1.5s;
}

.result-fail-portal-rings .ring-d {
  inset: 34px;
  border-color: rgba(124, 98, 255, 0.18);
  animation-delay: -2.1s;
}

.result-fail-portal-lights {
  position: absolute;
  right: 10.2%;
  top: 15.8%;
  width: 236px;
  height: 330px;
  pointer-events: none;
}

.result-fail-portal-lights .light {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 234, 255, 0.95), rgba(250, 234, 255, 0));
  box-shadow:
    0 0 22px rgba(197, 144, 255, 0.46),
    0 0 42px rgba(131, 99, 255, 0.16);
  animation: resultFailLightOrbit 6.4s linear infinite;
}

.result-fail-portal-lights .light-a { top: 6%; left: 44%; }
.result-fail-portal-lights .light-b { top: 36%; left: 87%; animation-delay: -1.6s; }
.result-fail-portal-lights .light-c { top: 84%; left: 50%; animation-delay: -3.1s; }
.result-fail-portal-lights .light-d { top: 42%; left: 2%; animation-delay: -4.7s; }

.result-fail-robot {
  position: absolute;
  left: 52%;
  bottom: 58px;
  transform: translateX(-50%);
  width: min(235px, 19vw);
  height: min(345px, 46vh);
  z-index: 3;
}

.result-fail-robot-aura {
  position: absolute;
  left: 50%;
  top: 40%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(181, 127, 255, 0.3), rgba(181, 127, 255, 0) 72%);
  animation: resultFailAuraPulse 2.8s ease-in-out infinite;
}

.result-fail-robot-aura.aura-a {
  width: 210px;
  height: 210px;
  transform: translate(-50%, -50%);
}

.result-fail-robot-aura.aura-b {
  width: 154px;
  height: 154px;
  transform: translate(-50%, -50%);
  animation-delay: -0.8s;
}

.result-fail-robot-aura.aura-c {
  width: 92px;
  height: 92px;
  transform: translate(-50%, -50%);
  animation-delay: -1.4s;
}

.result-fail-platform {
  position: absolute;
  left: 50%;
  bottom: -20px;
  width: min(220px, 18vw);
  height: 48px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(233, 201, 149, 0.28), rgba(233, 201, 149, 0.08) 36%, rgba(182, 129, 255, 0.28) 56%, rgba(182, 129, 255, 0) 76%);
  box-shadow:
    0 0 30px rgba(176, 120, 255, 0.18),
    0 0 18px rgba(255, 223, 152, 0.14);
  animation: resultFailPlatformPulse 3s ease-in-out infinite;
}

.result-fail-robot img {
  width: 100%;
  display: block;
  filter:
    drop-shadow(0 24px 30px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 26px rgba(181, 127, 255, 0.24))
    drop-shadow(0 0 44px rgba(104, 82, 255, 0.16));
  animation: resultFailRobotBob 2.8s ease-in-out infinite;
}

.result-fail-robot-model {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  filter:
    drop-shadow(0 28px 34px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 32px rgba(181, 127, 255, 0.28));
  transition: opacity 0.22s ease;
}

.result-fail-robot.is-model-ready .result-fail-robot-model {
  opacity: 1;
}

.result-fail-robot-shadow {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 120px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(160, 111, 255, 0.34), rgba(160, 111, 255, 0.06) 56%, rgba(160, 111, 255, 0) 78%);
  filter: blur(5px);
  animation: resultFailShadowPulse 2.8s ease-in-out infinite;
}

.result-fail-smoke {
  position: absolute;
  bottom: 34px;
  left: 50%;
  width: 126px;
  height: 44px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(177, 138, 255, 0.42), rgba(177, 138, 255, 0.1) 58%, rgba(177, 138, 255, 0) 76%);
  filter: blur(12px);
  opacity: 0.86;
  animation: resultFailSmokeDrift 4.2s ease-in-out infinite;
  z-index: 1;
}

.result-fail-smoke.smoke-a {
  transform: translateX(-110px);
}

.result-fail-smoke.smoke-b {
  transform: translateX(-32px);
  animation-delay: -1.1s;
}

.result-fail-smoke.smoke-c {
  transform: translateX(54px);
  animation-delay: -2s;
}

.result-actions {
  margin-top: 10px;
}

.result-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.result-confetti-piece,
.result-streamer {
  position: absolute;
  top: -18px;
  left: var(--confetti-left, 0%);
  opacity: 0;
}

.result-confetti-piece {
  width: 12px;
  height: 18px;
  border-radius: 4px;
  animation: resultConfettiFall 3.8s linear infinite;
  animation-delay: var(--confetti-delay, 0s);
}

.result-confetti-piece.piece-1 {
  background: linear-gradient(180deg, #ffd861, #f0a826);
}

.result-confetti-piece.piece-2 {
  background: linear-gradient(180deg, #72f0ff, #1aa8dd);
}

.result-confetti-piece.piece-3 {
  background: linear-gradient(180deg, #ff8fba, #d9568d);
}

.result-confetti-piece.piece-4 {
  background: linear-gradient(180deg, #89f06d, #32a84b);
}

.result-confetti-piece.piece-5 {
  background: linear-gradient(180deg, #cba3ff, #7f61e8);
}

.result-streamer {
  left: var(--streamer-left, 0%);
  width: 6px;
  height: 70px;
  border-radius: 999px;
  transform-origin: top center;
  animation: resultStreamerFall 4.6s ease-in infinite;
  animation-delay: var(--streamer-delay, 0s);
}

.result-streamer.streamer-1 {
  background: linear-gradient(180deg, rgba(255, 220, 117, 0.96), rgba(255, 220, 117, 0.08));
}

.result-streamer.streamer-2 {
  background: linear-gradient(180deg, rgba(117, 238, 255, 0.96), rgba(117, 238, 255, 0.08));
}

.result-streamer.streamer-3 {
  background: linear-gradient(180deg, rgba(255, 121, 180, 0.92), rgba(255, 121, 180, 0.08));
}

@keyframes resultConfettiFall {
  0% {
    opacity: 0;
    transform: translate3d(0, -10px, 0) rotate(0deg);
  }

  10% {
    opacity: 1;
  }

  100% {
    opacity: 0.92;
    transform: translate3d(calc(var(--confetti-drift, 0) * 42px), 360px, 0) rotate(520deg);
  }
}

@keyframes resultStreamerFall {
  0% {
    opacity: 0;
    transform: translateY(-30px) rotate(-8deg);
  }

  12% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(320px) rotate(18deg);
  }
}

@keyframes resultRobotCelebrate {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  25% {
    transform: translateY(-8px) rotate(3deg);
  }

  50% {
    transform: translateY(-14px) rotate(-1deg);
  }

  75% {
    transform: translateY(-6px) rotate(4deg);
  }
}

@keyframes resultBurstPulse {
  0%,
  100% {
    opacity: 0.36;
    transform: scale(0.92);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.08);
  }
}

.result-screen-celebration {
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 236, 166, 0.14), transparent 18%),
    radial-gradient(circle at 82% 0%, rgba(108, 233, 255, 0.12), transparent 16%),
    linear-gradient(180deg, rgba(12, 38, 63, 0.92), rgba(7, 17, 31, 0.98));
  padding: 0;
}

.result-panel-success {
  background:
    linear-gradient(180deg, rgba(5, 16, 35, 0.2), rgba(4, 12, 26, 0.4)),
    url("./img/result-celebration-bg.png") center center / cover no-repeat;
  border-color: rgba(255, 223, 147, 0.18);
  width: min(1240px, calc(100vw - 8px));
  min-height: calc(100vh - 106px);
  padding: 18px 18px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 0;
  box-shadow: none;
}

.result-victory-layout {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  display: block;
}

.result-victory-copy {
  position: relative;
  z-index: 4;
  max-width: 330px;
  padding: 0;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.result-victory-copy .eyebrow {
  color: #b8efff;
  margin-bottom: 4px;
}

.result-victory-copy h1 {
  margin: 0 0 6px;
  font-size: 34px;
  line-height: 0.95;
  color: #ffffff;
}

.result-victory-copy .result-lead {
  margin: 0 0 6px;
  max-width: 17ch;
  color: #f5fbff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.result-victory-copy .result-cheer {
  max-width: 38ch;
  color: #d7ebfb;
  font-size: 12px;
  line-height: 1.4;
}

.result-victory-scene {
  position: absolute;
  inset: 0;
  min-height: 0;
}

.result-victory-flash {
  position: absolute;
  left: 50%;
  top: 58%;
  width: 360px;
  height: 360px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,0.58), rgba(126, 237, 255, 0.16) 38%, rgba(126, 237, 255, 0) 72%);
  mix-blend-mode: screen;
  opacity: 0;
  animation: resultEntranceFlash 1.2s ease-out forwards;
}

.result-victory-robot {
  position: absolute;
  left: 52%;
  bottom: 58px;
  transform: translateX(-50%);
  width: min(235px, 19vw);
  height: min(345px, 46vh);
  z-index: 3;
}

.result-victory-platform {
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 240px;
  height: 56px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 230, 154, 0.56), rgba(255, 230, 154, 0.18) 34%, rgba(92, 232, 255, 0.46) 58%, rgba(92, 232, 255, 0) 76%);
  filter: blur(1px);
  box-shadow:
    0 0 36px rgba(92, 232, 255, 0.28),
    0 0 20px rgba(255, 215, 115, 0.28);
  animation: resultPlatformPulse 2.8s ease-in-out infinite;
}

.result-victory-robot img {
  width: 100%;
  display: block;
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  transform: translateX(-50%);
  filter:
    drop-shadow(0 24px 30px rgba(0, 0, 0, 0.38))
    drop-shadow(0 0 36px rgba(100, 230, 255, 0.28));
  animation: resultRobotCelebrate 2.4s ease-in-out infinite;
}

.result-robot-model {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  filter:
    drop-shadow(0 28px 34px rgba(0, 0, 0, 0.38))
    drop-shadow(0 0 42px rgba(100, 230, 255, 0.3));
  transition: opacity 0.22s ease;
}

.result-robot-model::part(default-progress-bar) {
  display: none;
}

.result-victory-robot.is-model-ready .result-robot-model {
  opacity: 1;
}

.result-victory-robot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 54%;
  width: 290px;
  height: 290px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(108, 235, 255, 0.42), rgba(108, 235, 255, 0.1) 46%, rgba(108, 235, 255, 0) 74%);
  filter: blur(1px);
  animation: resultPortalGlow 3s ease-in-out infinite;
  z-index: -1;
}

.result-victory-robot-shadow {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 156px;
  height: 34px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(60, 228, 255, 0.56), rgba(60, 228, 255, 0.08) 58%, rgba(60, 228, 255, 0) 78%);
  filter: blur(5px);
  animation: resultRobotShadowPulse 2.8s ease-in-out infinite;
}

.result-victory-smoke {
  position: absolute;
  bottom: 34px;
  left: 50%;
  width: 122px;
  height: 46px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(156, 238, 255, 0.52), rgba(156, 238, 255, 0.14) 58%, rgba(156, 238, 255, 0) 76%);
  filter: blur(12px);
  opacity: 0.82;
  animation: resultSmokeDrift 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.result-victory-smoke.smoke-a {
  transform: translateX(-126px);
}

.result-victory-smoke.smoke-b {
  transform: translateX(-48px);
  animation-delay: -1s;
}

.result-victory-smoke.smoke-c {
  transform: translateX(26px);
  animation-delay: -1.8s;
}

.result-victory-smoke.smoke-d {
  transform: translateX(114px);
  animation-delay: -2.6s;
}

.result-victory-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.result-victory-spark {
  position: absolute;
  left: var(--spark-left);
  top: var(--spark-top);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.96), rgba(255,255,255,0));
  box-shadow: 0 0 18px rgba(255, 226, 134, 0.32);
  animation: resultSparkleTwinkle 2.2s ease-in-out infinite;
  animation-delay: var(--spark-delay);
}

.result-victory-spark.sparkle-2 {
  width: 8px;
  height: 8px;
  box-shadow: 0 0 18px rgba(102, 236, 255, 0.3);
}

.result-victory-spark.sparkle-3 {
  width: 10px;
  height: 10px;
}

.result-victory-spark.sparkle-4 {
  width: 6px;
  height: 6px;
}

.result-victory-reward {
  position: absolute;
  z-index: 5;
  min-width: 106px;
  padding: 9px 12px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,0.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05)),
    linear-gradient(180deg, rgba(20, 57, 102, 0.92), rgba(8, 30, 60, 0.92));
  box-shadow:
    0 18px 28px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.14);
  text-align: center;
  animation: resultRewardFloat 3.2s ease-in-out infinite;
  backdrop-filter: blur(8px);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.result-victory-reward:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow:
    0 22px 30px rgba(0, 0, 0, 0.22),
    0 0 24px rgba(95, 231, 255, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

.result-victory-reward strong,
.result-victory-reward small {
  display: block;
}

.result-victory-reward strong {
  margin-top: 3px;
  color: #ffffff;
  font-size: 21px;
}

.result-victory-reward strong span {
  display: inline-block;
  min-width: 2.8ch;
  text-shadow:
    0 0 14px rgba(255,255,255,0.18),
    0 4px 10px rgba(0,0,0,0.2);
}

.result-victory-reward small {
  color: #d2e8f7;
  font-size: 11px;
  font-weight: 800;
}

.result-victory-reward .currency-icon {
  width: 22px;
  height: 22px;
  animation: resultCurrencySpin 2.2s ease-in-out infinite;
}

.result-victory-reward-coins {
  right: clamp(18px, 4vw, 64px);
  top: clamp(126px, 24vh, 184px);
  left: auto;
  bottom: auto;
}

.result-victory-reward-gems {
  right: clamp(18px, 4vw, 64px);
  top: clamp(42px, 9vh, 82px);
  bottom: auto;
  animation-delay: -1.1s;
}

.result-victory-reward-gems .currency-icon {
  animation-name: resultGemPulse;
}

.result-reward-pill {
  position: relative;
  overflow: hidden;
}

.result-reward-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.22) 42%, transparent 72%);
  transform: translateX(-120%);
  animation: resultRewardSheen 3s ease-in-out infinite;
}

.result-reward-pill .currency-icon {
  animation: resultCurrencySpin 2.4s ease-in-out infinite;
}

.result-reward-pill-gem .currency-icon {
  animation-name: resultGemPulse;
}

.result-next-note {
  max-width: 360px;
  margin-top: 14px;
  backdrop-filter: blur(10px);
  padding: 14px 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(18, 86, 147, 0.5), rgba(9, 35, 69, 0.26));
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 14px 24px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.result-next-note strong {
  color: #ffe08a;
  font-size: 16px;
}

.result-next-note span {
  color: #f1f8ff;
  font-size: 13px;
  line-height: 1.5;
}

.result-victory-copy .eyebrow,
.result-victory-copy h1,
.result-victory-copy .result-lead,
.result-victory-copy .result-cheer,
.result-fail-copy .eyebrow,
.result-fail-copy h1,
.result-fail-copy .result-lead,
.result-fail-copy .result-cheer,
.result-next-note strong,
.result-next-note span,
.result-fail-note strong,
.result-fail-note span {
  text-shadow:
    0 6px 18px rgba(0, 0, 0, 0.32),
    0 1px 0 rgba(255, 255, 255, 0.08);
}

.result-actions {
  margin-top: 8px;
  padding: 8px 8px;
  background: linear-gradient(180deg, rgba(7, 24, 45, 0.42), rgba(4, 15, 29, 0.18));
  backdrop-filter: blur(8px);
}

.result-panel-success .mission-actions {
  align-self: stretch;
}

.result-panel-success::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 18, 38, 0.12), rgba(4, 12, 24, 0.34)),
    radial-gradient(circle at 50% 68%, rgba(83, 232, 255, 0.1), transparent 28%);
}

.result-actions .btn {
  min-height: 48px;
  border-radius: 18px;
  padding-inline: 22px;
}

.result-screen-guided {
  position: relative;
  height: 100vh;
  min-height: 680px;
  padding: 0;
  overflow: hidden;
}

.result-screen-guided-success {
  background: url("./img/result-celebration-bg.png") center center / cover no-repeat;
}

.result-screen-guided-fail {
  background: url("./img/result-fail-bg.png") center center / cover no-repeat;
}

.result-screen-guided::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 51% 46%, rgba(255, 246, 174, 0.18), transparent 12%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(4, 25, 48, 0.18));
  mix-blend-mode: screen;
}

.result-screen-guided .mission-guided-side-card,
.result-screen-guided .result-guided-top,
.result-screen-guided .result-panel {
  position: absolute;
}

.result-screen-guided .mission-guided-side-card {
  z-index: 7;
  top: 14px;
  min-height: 76px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff7d8;
  background:
    radial-gradient(circle at 15% 15%, rgba(99, 219, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(19, 66, 120, 0.97), rgba(5, 28, 61, 0.98));
  border: 2px solid rgba(255, 199, 80, 0.82);
  border-radius: 18px 8px 18px 8px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.18),
    inset 0 -4px 0 rgba(0, 0, 0, 0.22),
    0 10px 22px rgba(0, 25, 54, 0.32),
    0 0 0 1px rgba(54, 211, 255, 0.18);
}

.result-screen-guided .mission-guided-side-card::before,
.result-screen-guided .mission-guided-side-card::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffe28b, #c77a18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 2px 0 rgba(72, 35, 7, 0.5),
    0 0 10px rgba(255, 207, 76, 0.45);
}

.result-screen-guided .mission-guided-side-card::before {
  left: 8px;
  top: -8px;
}

.result-screen-guided .mission-guided-side-card::after {
  right: 8px;
  bottom: -8px;
}

.result-screen-guided .mission-guided-side-card-left {
  left: 28px;
  min-width: 250px;
}

.result-screen-guided .mission-guided-side-card-right {
  right: 28px;
  min-width: 196px;
  padding: 9px 13px;
}

.result-screen-guided .mission-guided-side-copy {
  display: grid;
  gap: 3px;
}

.result-screen-guided .mission-guided-side-card strong {
  font-size: 18px;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.42);
}

.result-screen-guided .mission-guided-side-card small {
  font-size: 10px;
  font-weight: 950;
  line-height: 1.05;
  color: #bfeeff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.36);
}

.result-screen-guided .mission-guided-side-card b {
  min-width: 60px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 999px;
  color: #321b04;
  text-align: center;
  background: linear-gradient(180deg, #ffe66f, #f4a51d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.result-screen-guided .mission-guided-side-card button {
  border: 0;
  padding: 0;
  min-width: 58px;
  display: grid;
  place-items: center;
  gap: 2px;
  color: #fff7d8;
  background: transparent;
  cursor: pointer;
}

.result-screen-guided .result-guided-top {
  display: none;
  z-index: 6;
  top: 4px;
  left: 50%;
  width: min(44vw, 620px);
  min-width: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.result-screen-guided .result-guided-top .mission-guided-top-copy {
  inset: 16% 12% 17% !important;
}

.result-screen-guided .result-guided-top h1 {
  font-size: clamp(21px, 1.75vw, 28px) !important;
  line-height: 1.04 !important;
}

.result-screen-guided .result-guided-top p {
  max-width: 48ch;
  margin: 4px 0 7px !important;
  font-size: clamp(9px, 0.7vw, 10px) !important;
  line-height: 1.12 !important;
}

.result-screen-guided .result-guided-progress {
  grid-template-columns: auto max-content minmax(140px, 1fr) max-content !important;
  width: min(86%, 430px) !important;
  gap: 8px !important;
}

.result-screen-guided .result-guided-progress strong,
.result-screen-guided .result-guided-progress b {
  white-space: nowrap;
}

.result-screen-guided .result-panel {
  inset: 0;
  z-index: 2;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.result-screen-guided .result-panel-success::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(4, 18, 38, 0.08), rgba(4, 12, 24, 0.18));
  box-shadow: none;
  filter: none;
}

.result-screen-guided .result-victory-layout,
.result-screen-guided .result-fail-layout {
  position: absolute;
  inset: clamp(96px, 14vh, 118px) clamp(28px, 3vw, 48px) clamp(86px, 12vh, 112px) clamp(92px, 8vw, 128px);
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(560px, 1.68fr);
  align-items: center;
  gap: clamp(16px, 2vw, 34px);
}

.result-screen-guided .result-copy-shell {
  max-width: 360px;
  padding: 22px 24px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 18%, rgba(102, 219, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(12, 54, 102, 0.86), rgba(4, 25, 55, 0.92));
  border: 2px solid rgba(255, 199, 80, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 18px 26px rgba(0, 20, 46, 0.34);
}

.result-screen-guided .result-copy-shell h1 {
  font-size: clamp(32px, 3vw, 46px);
  color: #ffe071;
  text-shadow: 0 3px 0 rgba(92, 42, 4, 0.9), 0 8px 18px rgba(0, 0, 0, 0.36);
}

.result-screen-guided .result-lead {
  font-size: clamp(17px, 1.4vw, 22px);
}

.result-screen-guided .result-cheer {
  font-size: clamp(13px, 1vw, 15px);
}

.result-screen-guided .result-next-note,
.result-screen-guided .result-fail-note {
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 14%, rgba(99, 219, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(19, 66, 120, 0.78), rgba(5, 28, 61, 0.9));
  border: 2px solid rgba(79, 198, 255, 0.2);
}

.result-screen-guided .result-victory-scene,
.result-screen-guided .result-fail-scene {
  min-height: 390px;
}

.result-screen-guided .result-actions {
  position: absolute;
  right: clamp(92px, 9vw, 132px);
  bottom: clamp(34px, 7vh, 58px);
  z-index: 8;
  margin: 0;
  padding: 0;
  gap: 14px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.result-screen-guided .result-actions .btn {
  min-height: 52px;
  min-width: 210px;
  border-radius: 18px;
  font-weight: 950;
}

.result-screen-guided .result-actions .btn-primary {
  color: #fff7d8;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, #ffd85a, #f09a18 58%, #c56605);
  border: 3px solid rgba(255, 245, 154, 0.86);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.42),
    0 7px 0 rgba(126, 56, 3, 0.72),
    0 14px 18px rgba(0, 22, 52, 0.28),
    0 0 18px rgba(255, 214, 74, 0.34);
  text-shadow: 0 2px 0 rgba(104, 45, 3, 0.72);
}

.result-screen-guided .result-actions .btn-secondary {
  color: #fff7d8;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(24, 76, 132, 0.94), rgba(8, 37, 82, 0.98));
  border: 2px solid rgba(79, 198, 255, 0.26);
}

@media (min-width: 1121px) and (max-height: 760px) {
  .result-screen-guided {
    min-height: 0;
  }

  .result-screen-guided .result-victory-layout,
  .result-screen-guided .result-fail-layout {
    inset: 92px clamp(20px, 2vw, 34px) 76px clamp(88px, 7vw, 118px);
    grid-template-columns: minmax(250px, 0.6fr) minmax(580px, 1.75fr);
    gap: 14px;
  }

  .result-victory-robot {
    left: 52%;
    bottom: 52px;
    width: min(230px, 19vw);
    height: min(335px, 45vh);
  }

  .result-fail-robot {
    left: 52%;
    bottom: 52px;
    width: min(230px, 19vw);
    height: min(335px, 45vh);
  }

  .result-victory-reward {
    min-width: 100px;
    padding: 8px 11px;
  }

  .result-victory-reward-coins {
    right: clamp(4px, 1vw, 16px);
    top: clamp(118px, 22vh, 150px);
    left: auto;
    bottom: auto;
  }

  .result-victory-reward-gems {
    right: clamp(4px, 1vw, 16px);
    top: clamp(42px, 8vh, 58px);
    bottom: auto;
  }
}

@keyframes resultSmokeDrift {
  0%,
  100% {
    opacity: 0.24;
    transform: translateY(0) scale(0.88);
  }

  50% {
    opacity: 0.86;
    transform: translateY(-22px) scale(1.24);
  }
}

@keyframes resultEntranceFlash {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.42);
  }

  22% {
    opacity: 0.98;
    transform: translate(-50%, -50%) scale(1.08);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.26);
  }
}

@keyframes resultPlatformPulse {
  0%,
  100% {
    opacity: 0.7;
    transform: translateX(-50%) scale(0.96);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.04);
  }
}

@keyframes resultRobotCelebrate {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg) scale(1);
  }

  20% {
    transform: translateY(-12px) rotate(4deg) scale(1.03);
  }

  45% {
    transform: translateY(-4px) rotate(-3deg) scale(1);
  }

  70% {
    transform: translateY(-16px) rotate(5deg) scale(1.05);
  }

  85% {
    transform: translateY(-6px) rotate(-2deg) scale(1.01);
  }
}

@keyframes resultFailSparkle {
  0%,
  100% {
    opacity: 0.18;
    transform: scale(0.7);
  }

  50% {
    opacity: 0.92;
    transform: scale(1.18);
  }
}

@keyframes resultFailPortalPulse {
  0%,
  100% {
    opacity: 0.36;
    transform: scale(0.94);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.06);
  }
}

@keyframes resultFailPlatformPulse {
  0%,
  100% {
    opacity: 0.62;
    transform: translateX(-50%) scale(0.96);
  }

  50% {
    opacity: 0.9;
    transform: translateX(-50%) scale(1.03);
  }
}

@keyframes resultFailRobotBob {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg) scale(1);
  }

  50% {
    transform: translateY(-8px) rotate(2deg) scale(1.01);
  }
}

@keyframes resultFailShadowPulse {
  0%,
  100% {
    opacity: 0.34;
    transform: translateX(-50%) scale(0.92);
  }

  50% {
    opacity: 0.62;
    transform: translateX(-50%) scale(1.04);
  }
}

@keyframes resultFailSmokeDrift {
  0%,
  100% {
    opacity: 0.24;
    transform: translateY(0) scale(0.88);
  }

  50% {
    opacity: 0.78;
    transform: translateY(-18px) scale(1.18);
  }
}

@keyframes resultFailRingPulse {
  0%,
  100% {
    opacity: 0.34;
    transform: scale(0.96);
  }

  50% {
    opacity: 0.92;
    transform: scale(1.04);
  }
}

@keyframes resultFailLightOrbit {
  0% {
    opacity: 0.24;
    transform: translate(0, 0) scale(0.7);
  }

  25% {
    opacity: 0.92;
    transform: translate(6px, -7px) scale(1.08);
  }

  50% {
    opacity: 0.42;
    transform: translate(-4px, 4px) scale(0.82);
  }

  75% {
    opacity: 0.88;
    transform: translate(8px, 8px) scale(1.02);
  }

  100% {
    opacity: 0.24;
    transform: translate(0, 0) scale(0.7);
  }
}

@keyframes resultFailAuraPulse {
  0%,
  100% {
    opacity: 0.22;
    transform: translate(-50%, -50%) scale(0.92);
  }

  50% {
    opacity: 0.58;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes resultFailFlash {
  0% {
    opacity: 0;
    transform: scale(0.42);
  }

  18% {
    opacity: 0.88;
    transform: scale(1.02);
  }

  100% {
    opacity: 0;
    transform: scale(1.22);
  }
}

@keyframes resultPortalGlow {
  0%,
  100% {
    opacity: 0.42;
    transform: translate(-50%, -50%) scale(0.94);
  }

  50% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes resultRobotShadowPulse {
  0%,
  100% {
    opacity: 0.42;
    transform: translateX(-50%) scale(0.92);
  }

  50% {
    opacity: 0.74;
    transform: translateX(-50%) scale(1.06);
  }
}

@keyframes resultSparkleTwinkle {
  0%,
  100% {
    opacity: 0.22;
    transform: scale(0.7);
  }

  50% {
    opacity: 1;
    transform: scale(1.28);
  }
}

@keyframes resultRewardFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

@keyframes resultCurrencySpin {
  0%,
  100% {
    transform: rotateY(0deg) scale(1);
  }

  50% {
    transform: rotateY(180deg) scale(1.08);
  }
}

@keyframes resultGemPulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(102, 236, 255, 0));
  }

  50% {
    transform: scale(1.12);
    filter: drop-shadow(0 0 10px rgba(102, 236, 255, 0.3));
  }
}

@keyframes resultRewardSheen {
  0%,
  100% {
    transform: translateX(-120%);
  }

  55%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes missionAssistantFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

@keyframes missionAssistantPulse {
  0%,
  100% {
    opacity: 0.45;
    transform: translateX(-50%) scale(0.94);
  }

  50% {
    opacity: 0.82;
    transform: translateX(-50%) scale(1.08);
  }
}

@keyframes missionAssistantGlow {
  0%,
  100% {
    opacity: 0.28;
    transform: translateX(-50%) scale(0.94);
  }

  50% {
    opacity: 0.68;
    transform: translateX(-50%) scale(1.04);
  }
}

@keyframes submapGuideRobotFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-2deg);
  }

  35% {
    transform: translate3d(-4px, -10px, 0) rotate(2.5deg);
  }

  70% {
    transform: translate3d(3px, -4px, 0) rotate(-1deg);
  }
}

@keyframes submapGuideAura {
  0%,
  100% {
    opacity: 0.28;
    transform: scale(0.94);
  }

  50% {
    opacity: 0.72;
    transform: scale(1.05);
  }
}

@keyframes missionAssistantTypeIn {
  0% {
    width: 0;
  }

  100% {
    width: calc(var(--type-steps) * 1ch);
  }
}

@keyframes missionAssistantCaret {
  0%,
  100% {
    border-color: rgba(255, 236, 165, 0.9);
  }

  50% {
    border-color: transparent;
  }
}

@keyframes missionAssistantHalo {
  0%,
  100% {
    opacity: 0.34;
    transform: scale(0.94);
  }

  50% {
    opacity: 0.62;
    transform: scale(1.08);
  }
}

@keyframes missionAssistantRevealBody {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateY(6px);
  }

  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}

.result-panel {
  text-align: center;
}

.dashboard-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 22%),
    radial-gradient(circle at 100% 0%, rgba(242, 195, 91, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(24, 44, 74, 0.88), rgba(7, 16, 31, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 50px rgba(0, 0, 0, 0.34),
    0 0 40px rgba(89, 212, 255, 0.05);
}

.dashboard-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 28%),
    radial-gradient(circle at 100% 100%, rgba(122, 246, 207, 0.06), transparent 18%);
}

.dashboard-role-switch {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.dashboard-role-tab {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.04));
  color: #e9f6ff;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.dashboard-role-tab:hover {
  transform: translateY(-2px);
  border-color: rgba(89, 212, 255, 0.25);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.dashboard-role-tab.active {
  color: #0b2b23;
  border-color: rgba(122, 246, 207, 0.34);
  background: linear-gradient(180deg, #7af6cf, #2dd39a);
  box-shadow:
    0 14px 28px rgba(32, 201, 143, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.28);
}

.dashboard-role-panel {
  position: relative;
  z-index: 1;
}

.dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(15, 32, 56, 0.74), rgba(9, 20, 38, 0.86));
}

.dashboard-hero.student {
  box-shadow: 0 0 0 1px rgba(89, 212, 255, 0.06), 0 18px 34px rgba(0,0,0,0.2);
}

.dashboard-hero.parent {
  box-shadow: 0 0 0 1px rgba(242, 195, 91, 0.06), 0 18px 34px rgba(0,0,0,0.2);
}

.dashboard-hero.institution {
  box-shadow: 0 0 0 1px rgba(122, 246, 207, 0.06), 0 18px 34px rgba(0,0,0,0.2);
}

.dashboard-hero h1,
.dashboard-card h2 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.02;
}

.dashboard-hero p,
.dashboard-card p {
  margin: 0;
  color: #d6e7f5;
  line-height: 1.6;
}

.dashboard-hero-badge {
  min-width: 118px;
  padding: 16px 18px;
  border-radius: 22px;
  text-align: center;
  color: #082418;
  background: linear-gradient(180deg, #ffe39a, #f2c35b);
  box-shadow: 0 16px 30px rgba(242, 195, 91, 0.24), inset 0 1px 0 rgba(255,255,255,0.28);
}

.dashboard-hero-badge strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.dashboard-hero-badge span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
}

.dashboard-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.dashboard-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-grid-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.dashboard-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-card {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.dashboard-card.stat span {
  display: block;
  margin-bottom: 10px;
  color: #b7d9f0;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dashboard-card.stat strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  margin-bottom: 10px;
}

.dashboard-progress-list {
  display: grid;
  gap: 14px;
}

.dashboard-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: #f1f8ff;
}

.dashboard-meter {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  box-shadow: inset 0 4px 10px rgba(0,0,0,0.16);
}

.dashboard-meter-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #59d4ff 0%, #45d39c 65%, #f2c35b 100%);
  box-shadow: 0 0 16px rgba(89, 212, 255, 0.2);
}

.dashboard-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.dashboard-badge-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(242, 195, 91, 0.2), rgba(136, 89, 21, 0.16));
  border: 1px solid rgba(242, 195, 91, 0.24);
  color: #ffe7ae;
  font-weight: 800;
}

.dashboard-highlight,
.dashboard-alert {
  margin-top: 12px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(9, 24, 43, 0.74), rgba(7, 18, 32, 0.84));
}

.dashboard-highlight.secondary {
  background: linear-gradient(180deg, rgba(89, 212, 255, 0.14), rgba(17, 53, 82, 0.2));
}

.dashboard-highlight strong,
.dashboard-alert strong {
  display: block;
  margin-bottom: 6px;
  color: #f7fbff;
}

.dashboard-alert.good {
  border-color: rgba(122, 246, 207, 0.2);
}

.dashboard-alert.warn {
  border-color: rgba(242, 195, 91, 0.2);
}

.dashboard-list {
  margin: 0;
  padding-left: 18px;
  color: #e3eff8;
  display: grid;
  gap: 10px;
  line-height: 1.55;
}

.dashboard-table {
  display: grid;
  gap: 10px;
}

.dashboard-table-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr 1fr 0.9fr;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(8, 18, 33, 0.56);
  border: 1px solid rgba(255,255,255,0.05);
  color: #dcecf8;
}

.dashboard-status {
  justify-self: start;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.dashboard-status.active {
  color: #b7ffe7;
  background: rgba(45, 211, 154, 0.16);
}

.dashboard-status.inactive {
  color: #dce8f2;
  background: rgba(133, 154, 179, 0.18);
}

.dashboard-status.at-risk {
  color: #ffe7ae;
  background: rgba(242, 195, 91, 0.16);
}

.dashboard-loading-card {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  padding: 26px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(12, 29, 52, 0.9), rgba(7, 18, 32, 0.92));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.dashboard-loading-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}

.dashboard-loading-card.error {
  border-color: rgba(242, 195, 91, 0.22);
}

.dashboard-mini-list {
  display: grid;
  gap: 10px;
}

.dashboard-mini-item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(8, 18, 33, 0.56);
  border: 1px solid rgba(255,255,255,0.05);
  color: #dcecf8;
}

.dashboard-mini-item span,
.dashboard-mini-item small {
  color: #c7dced;
  line-height: 1.45;
}

.dashboard-mini-item.warn {
  border-color: rgba(242, 195, 91, 0.16);
}

.dashboard-form-card {
  margin-top: 14px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(8, 18, 33, 0.46);
}

.dashboard-form-card strong {
  display: block;
  margin-bottom: 10px;
}

.dashboard-form-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.dashboard-form-grid-compact {
  margin-top: 0;
}

.dashboard-input {
  width: 100%;
  min-height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.04));
  color: #eff8ff;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
}

.dashboard-input::placeholder {
  color: #8eadc8;
}

.dashboard-input:focus {
  border-color: rgba(89, 212, 255, 0.28);
  box-shadow: 0 0 0 4px rgba(89, 212, 255, 0.08);
}

.dashboard-table-row-wide {
  grid-template-columns: 1fr 0.8fr 0.65fr 0.95fr 0.95fr 0.9fr;
}

@keyframes playerPulse {
  from {
    transform: scale(1.03);
  }

  to {
    transform: scale(1.09);
  }
}

@keyframes selectionPulse {
  0%,
  100% {
    box-shadow:
      0 14px 28px rgba(32, 201, 143, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  50% {
    box-shadow:
      0 16px 34px rgba(32, 201, 143, 0.22),
      0 0 24px rgba(242, 195, 91, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }
}

@keyframes badgeFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes sparkRise {
  0% {
    transform: translateY(0) scale(0.6);
    opacity: 0;
  }

  15% {
    opacity: 0.85;
  }

  70% {
    opacity: 0.55;
  }

  100% {
    transform: translateY(-110vh) scale(1.25);
    opacity: 0;
  }
}

@keyframes cardRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loopStepBounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* =========================
   SUBMAP JUGABLE
========================= */
.submap-game-screen {
  height: calc(100vh - 84px);
  padding: 18px;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 236, 162, 0.1), transparent 16%),
    radial-gradient(circle at 86% 12%, rgba(89, 212, 255, 0.09), transparent 18%),
    linear-gradient(180deg, rgba(12, 38, 63, 0.94), rgba(7, 17, 31, 1));
}

.submap-game-layout {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.submap-canvas-panel {
  position: relative;
  min-width: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 42px rgba(0, 0, 0, 0.28),
    0 0 30px rgba(89, 212, 255, 0.06);
  background: linear-gradient(180deg, rgba(24, 44, 74, 0.84), rgba(8, 16, 30, 0.92));
}

.submap-canvas-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.06), transparent 26%),
    radial-gradient(circle at 100% 0%, rgba(255,228,160,0.08), transparent 18%);
  z-index: 1;
}

.submap-canvas-panel::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 22px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  z-index: 1;
}

#submapCanvas {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 0;
}

.submap-overlay-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(16, 38, 65, 0.76), rgba(7, 22, 40, 0.62));
  backdrop-filter: blur(12px);
  color: #eef9ff;
  font-size: 15px;
  font-weight: 800;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.05);
  z-index: 2;
}

.submap-side-panel {
  overflow-y: auto;
  display: grid;
  gap: 14px;
}

.submap-side-panel h1 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1;
}

.submap-side-panel h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.05;
}

.submap-action-row {
  grid-template-columns: 1fr 1fr;
}

.epic-submap-panel {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.08), transparent 18%),
    radial-gradient(circle at 78% 18%, rgba(255, 228, 160, 0.07), transparent 20%),
    linear-gradient(180deg, rgba(14, 48, 78, 0.96), rgba(8, 20, 36, 1));
}

.selected-mission-card {
  border: 1px solid rgba(242, 195, 91, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 42px rgba(0, 0, 0, 0.28),
    0 0 22px rgba(242, 195, 91, 0.06);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.selected-mission-card.is-active {
  transform: translateY(-3px);
  border-color: rgba(89, 212, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 46px rgba(0, 0, 0, 0.32),
    0 0 28px rgba(89, 212, 255, 0.16);
}

.selected-mission-card.is-ready {
  border-color: rgba(122, 246, 207, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 22px 48px rgba(0, 0, 0, 0.32),
    0 0 32px rgba(122, 246, 207, 0.2);
}

.selected-mission-card.is-traveling {
  border-color: rgba(255, 212, 90, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 22px 48px rgba(0, 0, 0, 0.32),
    0 0 32px rgba(255, 212, 90, 0.16);
  animation: selectionPulse 1.6s ease-in-out infinite;
}

.submap-side-panel .sidebar-card {
  margin-bottom: 0;
}

.reward-inline {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffe4a0;
  font-weight: 800;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.reward-inline.is-ready {
  border-color: rgba(122, 246, 207, 0.34);
  background: linear-gradient(180deg, rgba(122, 246, 207, 0.16), rgba(39, 182, 128, 0.08));
  box-shadow: 0 12px 26px rgba(32, 201, 143, 0.14);
}

.reward-inline.is-traveling {
  border-color: rgba(255, 212, 90, 0.34);
  background: linear-gradient(180deg, rgba(255, 212, 90, 0.16), rgba(166, 108, 25, 0.08));
}

#enterMissionBtn.is-ready {
  box-shadow:
    0 18px 36px rgba(32, 201, 143, 0.34),
    0 0 24px rgba(122, 246, 207, 0.2),
    inset 0 1px 0 rgba(255,255,255,0.35);
}

#enterMissionBtn.is-traveling {
  color: #173a56;
  background:
    linear-gradient(180deg, #ffe39a, #f2c35b);
  box-shadow:
    0 16px 30px rgba(242, 195, 91, 0.26),
    inset 0 1px 0 rgba(255,255,255,0.34);
}

#enterMissionBtn:disabled.is-traveling {
  opacity: 1;
  cursor: wait;
}

@media (max-width: 900px) {
  .mission-hero,
  .mission-hero-main,
  .mission-stage-banner-quest {
    flex-direction: column;
    align-items: stretch;
  }

  .mission-hero-emblem {
    width: 88px;
    height: 100px;
    flex-basis: 88px;
  }

  .mission-hero-badge {
    width: 100%;
  }

  .mission-reorder-lane {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .mission-panel-quest .mission-hero-emblem {
    width: 118px;
    height: 118px;
    flex-basis: 118px;
  }

  .mission-reorder-playfield {
    min-height: 820px;
  }

  .mission-reorder-track-image {
    left: 14px;
    right: 14px;
    bottom: 292px;
  }

  .mission-reorder-progress-panel {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    margin: 20px;
  }

  .mission-reorder-lane-art {
    left: 18px;
    right: 18px;
    bottom: 304px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mission-assistant {
    right: 14px;
    bottom: 240px;
  }

  .mission-assistant-trigger {
    width: 98px;
  }

  .mission-assistant-bubble {
    width: min(260px, calc(100vw - 36px));
  }

  .mission-reorder-lane::before {
    bottom: 18px;
    height: 64px;
  }

  .mission-sequence-card {
    min-height: 140px;
  }

  .mission-sequence-card-frame {
    min-height: 140px;
  }

  .mission-reorder-controls {
    grid-template-columns: 1fr;
  }

  .mission-reorder-controls-art {
    grid-template-columns: 1fr;
  }

  .mission-reorder-console-art {
    min-height: 0;
  }

  .mission-reorder-console-main-art {
    flex-wrap: wrap;
  }

  .mission-reorder-console-robot {
    width: 74px;
  }

  .mission-stage-score {
    min-width: 0;
  }
}

@media (max-width: 1080px) {
  .submap-game-layout {
    grid-template-columns: 1fr;
  }

  .submap-canvas-panel {
    min-height: 58vh;
  }

  .dashboard-grid-6,
  .dashboard-grid-4,
  .dashboard-grid-3,
  .dashboard-grid-2 {
    grid-template-columns: 1fr;
  }

  .dashboard-table-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .dashboard-screen {
    padding: 14px;
  }

  .dashboard-panel {
    padding: 16px;
  }

  .dashboard-hero {
    padding: 18px;
    flex-direction: column;
  }

  .dashboard-hero h1,
  .dashboard-card h2 {
    font-size: 26px;
  }

  .dashboard-table-row {
    grid-template-columns: 1fr;
  }

  .dashboard-owner-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   DASHBOARD LIGHT REFRESH
========================= */
.dashboard-screen {
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 236, 170, 0.2), transparent 18%),
    radial-gradient(circle at 88% 8%, rgba(153, 232, 255, 0.24), transparent 18%),
    linear-gradient(180deg, #dff7ff 0%, #9dddff 34%, #59b9ef 68%, #1d79c8 100%);
}

.dashboard-panel {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.84), transparent 20%),
    radial-gradient(circle at 100% 0%, rgba(255, 241, 179, 0.5), transparent 18%),
    linear-gradient(180deg, rgba(247, 252, 255, 0.88), rgba(223, 244, 255, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 22px 46px rgba(14, 89, 153, 0.18),
    0 0 34px rgba(89, 212, 255, 0.12);
}

.dashboard-panel::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.45), transparent 26%),
    radial-gradient(circle at 100% 100%, rgba(122, 246, 207, 0.16), transparent 18%);
}

.dashboard-hero,
.dashboard-card,
.dashboard-loading-card,
.dashboard-mini-item,
.dashboard-form-card,
.dashboard-table-row {
  color: #1d4062;
}

.dashboard-hero {
  border: 1px solid rgba(255, 255, 255, 0.6);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(229, 246, 255, 0.82));
  box-shadow:
    0 18px 32px rgba(27, 102, 163, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.dashboard-hero.student {
  box-shadow:
    0 18px 32px rgba(53, 144, 219, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.dashboard-hero.parent {
  box-shadow:
    0 18px 32px rgba(230, 179, 82, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.dashboard-hero.institution {
  box-shadow:
    0 18px 32px rgba(61, 196, 149, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.dashboard-hero h1,
.dashboard-card h2,
.dashboard-progress-head,
.dashboard-highlight strong,
.dashboard-alert strong,
.dashboard-mini-item strong,
.dashboard-table-row strong {
  color: #163c67;
}

.dashboard-hero p,
.dashboard-card p,
.dashboard-mini-item span,
.dashboard-mini-item small,
.dashboard-list,
.dashboard-table-row {
  color: #547697;
}

.dashboard-hero-badge {
  color: #11452e;
  background: linear-gradient(180deg, #fff4ba, #ffd26f);
  box-shadow:
    0 16px 24px rgba(255, 199, 73, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.dashboard-card {
  border: 1px solid rgba(255, 255, 255, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(233, 247, 255, 0.82));
  box-shadow:
    0 16px 28px rgba(20, 93, 154, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.dashboard-card.stat span,
.dashboard-stat-head span:last-child,
.dashboard-table-row span,
.dashboard-input::placeholder {
  color: #6586a4;
}

.dashboard-card.stat strong {
  color: #173e69;
}

.dashboard-stat-card {
  position: relative;
  overflow: hidden;
}

.dashboard-stat-card::after {
  content: "";
  position: absolute;
  inset: auto -20px -24px auto;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89, 212, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.dashboard-stat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.dashboard-stat-icon,
.dashboard-guide-icon,
.dashboard-action-icon {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  overflow: hidden;
}

.dashboard-stat-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(180deg, #ffffff, #dff4ff);
  border: 1px solid rgba(129, 199, 241, 0.55);
  box-shadow: 0 10px 18px rgba(46, 136, 196, 0.14);
}

.dashboard-stat-icon::before,
.dashboard-stat-icon::after,
.dashboard-guide-icon::before,
.dashboard-guide-icon::after,
.dashboard-action-icon::before,
.dashboard-action-icon::after {
  content: none;
}

.dashboard-guide-card {
  position: relative;
  overflow: hidden;
}

.dashboard-guide-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 232, 145, 0.26), transparent 72%);
  pointer-events: none;
}

.dashboard-guide-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.dashboard-guide-icon {
  width: 58px;
  height: 58px;
  background: linear-gradient(180deg, #ffffff, #dcf5ff);
  border: 1px solid rgba(120, 194, 238, 0.52);
  box-shadow: 0 12px 18px rgba(46, 136, 196, 0.14);
}

.dashboard-action-card {
  background:
    radial-gradient(circle at top right, rgba(255, 233, 166, 0.32), transparent 25%),
    linear-gradient(180deg, rgba(248, 253, 255, 0.96), rgba(230, 247, 255, 0.9));
}

.dashboard-action-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.dashboard-action-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(147, 214, 255, 0.44);
}

.dashboard-jump-card {
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.dashboard-jump-card:hover {
  transform: translateY(-2px);
  border-color: rgba(67, 174, 235, 0.6);
  box-shadow:
    0 16px 24px rgba(39, 119, 182, 0.14),
    0 0 0 3px rgba(137, 214, 255, 0.16);
}

.dashboard-owner-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.owner-detail-card {
  scroll-margin-top: 110px;
}

.owner-detail-card:target {
  border-color: rgba(47, 201, 160, 0.6);
  box-shadow:
    0 18px 32px rgba(39, 119, 182, 0.16),
    0 0 0 4px rgba(47, 201, 160, 0.16);
}

.owner-back-btn {
  align-self: center;
  color: #173057;
  background: linear-gradient(180deg, #ffffff, #d9ebff);
  border: 1px solid rgba(47, 102, 154, 0.2);
  min-height: 48px;
}

.owner-metric-table {
  overflow-x: auto;
}

.owner-metric-table .dashboard-table-row {
  min-width: 860px;
  grid-template-columns: repeat(var(--owner-cols, 6), minmax(130px, 1fr));
}

.owner-metric-head {
  background: linear-gradient(180deg, rgba(218, 242, 255, 0.92), rgba(238, 248, 255, 0.86));
}

.owner-dashboard-panel {
  max-width: 1280px;
  padding: 14px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(247, 252, 255, 0.94), rgba(224, 243, 252, 0.9));
}

.owner-workspace {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  gap: 16px;
  min-height: calc(100vh - 132px);
}

.owner-sidebar {
  position: sticky;
  top: 14px;
  align-self: start;
  height: calc(100vh - 132px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(33, 80, 117, 0.12);
  background: linear-gradient(180deg, rgba(18, 45, 74, 0.98), rgba(9, 24, 43, 0.98));
  box-shadow:
    0 18px 34px rgba(23, 83, 132, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.owner-sidebar-brand {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px 6px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.owner-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #082418;
  font-weight: 1000;
  background: linear-gradient(180deg, #ffe08a, #39d29d);
}

.owner-sidebar-brand strong {
  display: block;
  color: #f6fbff;
  font-size: 17px;
}

.owner-sidebar-brand span:last-child {
  display: block;
  margin-top: 2px;
  color: #9fc0d9;
  font-size: 13px;
  font-weight: 800;
}

.owner-nav {
  display: grid;
  gap: 8px;
  overflow: auto;
  padding-right: 2px;
}

.owner-nav-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 62px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #d8ecfa;
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.owner-nav-item:hover {
  transform: translateX(2px);
  border-color: rgba(128, 211, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.owner-nav-item.active {
  color: #123a5e;
  border-color: rgba(92, 178, 224, 0.4);
  background: linear-gradient(180deg, #ffffff, #dff3ff);
  box-shadow: 0 12px 22px rgba(4, 18, 34, 0.2);
}

.owner-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.1);
}

.owner-nav-item.active .owner-nav-icon {
  background: linear-gradient(180deg, #e8f8ff, #c8ecff);
}

.owner-nav-item strong,
.owner-nav-item small {
  display: block;
}

.owner-nav-item strong {
  font-size: 14px;
}

.owner-nav-item small {
  margin-top: 2px;
  color: inherit;
  opacity: 0.72;
  font-size: 12px;
  line-height: 1.25;
}

.owner-main {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.owner-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid rgba(141, 199, 231, 0.32);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 226, 137, 0.32), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 249, 255, 0.9));
  box-shadow: 0 16px 28px rgba(30, 104, 162, 0.1);
}

.owner-topline h1 {
  margin: 4px 0 8px;
  color: #123a5e;
  font-size: 34px;
  line-height: 1.05;
}

.owner-topline p {
  max-width: 760px;
  margin: 0;
  color: #557796;
  line-height: 1.55;
}

.owner-topline-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.owner-health-pill,
.owner-date-pill,
.owner-count-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 1000;
}

.owner-health-pill {
  color: #0f5132;
  background: linear-gradient(180deg, #d8fff1, #91edc7);
}

.owner-date-pill,
.owner-count-pill {
  color: #244e72;
  background: linear-gradient(180deg, #ffffff, #dfefff);
  border: 1px solid rgba(111, 177, 219, 0.32);
}

.owner-kpi-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.owner-kpi-strip div {
  min-height: 78px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(141, 199, 231, 0.3);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 20px rgba(30, 104, 162, 0.08);
}

.owner-kpi-strip span {
  display: block;
  color: #6b88a2;
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.owner-kpi-strip strong {
  display: block;
  margin-top: 7px;
  color: #123a5e;
  font-size: 26px;
  line-height: 1;
}

.owner-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}

.owner-summary-area,
.owner-insight-rail {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.owner-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.owner-stat-grid .dashboard-stat-card {
  min-height: 168px;
}

.owner-stat-grid .dashboard-stat-card strong {
  font-size: 32px;
}

.owner-module-card {
  min-width: 0;
}

.owner-module-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.owner-module-head h2 {
  margin-bottom: 6px;
}

.dashboard-module-hidden {
  display: none !important;
}

.role-main > .dashboard-hero {
  margin-bottom: 0;
}

.role-main > .dashboard-grid,
.role-main > .dashboard-card {
  min-width: 0;
}

.institution-plan-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  padding: 4px 0 18px;
}

.institution-plan-hero h2 {
  font-size: 34px;
}

.institution-plan-hero p {
  max-width: 760px;
}

.institution-plan-meter {
  min-width: 170px;
  padding: 18px;
  border-radius: 18px;
  color: #123a5e;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(180deg, #fff2b8, #ffd06a);
  box-shadow: 0 16px 28px rgba(255, 194, 73, 0.2);
}

.institution-plan-meter span,
.institution-plan-meter small {
  display: block;
  color: #5d6c73;
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.institution-plan-meter strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 30px;
}

.institution-plan-signal,
.institution-plan-proof {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(70, 199, 160, 0.28);
  background: linear-gradient(180deg, rgba(226, 255, 244, 0.92), rgba(240, 251, 255, 0.9));
}

.institution-plan-signal strong,
.institution-plan-proof strong {
  display: block;
  margin-bottom: 4px;
  color: #113c67;
}

.institution-plan-signal span,
.institution-plan-proof p {
  margin: 0;
  color: #557796;
}

.institution-plan-signal b {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  color: #0d654e;
  background: rgba(90, 236, 190, 0.22);
}

.institution-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.institution-plan-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 340px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(141, 199, 231, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(234, 247, 255, 0.88));
  box-shadow: 0 16px 28px rgba(30, 104, 162, 0.1);
}

.institution-plan-card.recommended {
  border-color: rgba(42, 199, 153, 0.58);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 225, 132, 0.38), transparent 30%),
    linear-gradient(180deg, rgba(239, 255, 248, 0.98), rgba(225, 248, 255, 0.92));
  box-shadow:
    0 22px 36px rgba(30, 104, 162, 0.14),
    0 0 0 4px rgba(57, 210, 157, 0.12);
  transform: translateY(-8px);
}

.institution-plan-card h3 {
  margin: 0 0 10px;
  color: #113c67;
  font-size: 25px;
}

.institution-plan-card strong {
  display: block;
  color: #102f50;
  font-size: 22px;
}

.institution-plan-card p {
  margin-top: 8px;
}

.institution-plan-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.institution-plan-card li {
  position: relative;
  padding-left: 22px;
  color: #4f7191;
  font-weight: 800;
}

.institution-plan-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #39d29d;
}

.institution-plan-badge {
  justify-self: start;
  padding: 7px 11px;
  border-radius: 999px;
  color: #0d654e;
  font-size: 12px;
  font-weight: 1000;
  background: linear-gradient(180deg, #d8fff1, #a8f1d3);
}

.institution-plan-cta {
  align-self: end;
  margin-top: auto;
}

.institution-plan-proof {
  margin: 18px 0 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 226, 137, 0.26), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(232, 248, 255, 0.92));
}

.dashboard-card[id] {
  scroll-margin-top: 110px;
}

.dashboard-action-item strong {
  display: block;
  margin-bottom: 4px;
  color: #163c67;
}

.dashboard-action-item p {
  color: #5b7b98;
}

.dashboard-action-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(180deg, #ffffff, #d8f4ff);
  border: 1px solid rgba(120, 194, 238, 0.56);
  box-shadow: 0 10px 18px rgba(46, 136, 196, 0.12);
}

.dashboard-svg-icon {
  width: 24px;
  height: 24px;
  display: block;
  color: #277fc4;
  margin: auto;
}

.owner-sidebar .dashboard-svg-icon,
.owner-nav-icon .ui-icon {
  color: currentColor;
}

.dashboard-list.compact {
  margin-top: 12px;
  gap: 8px;
}

.dashboard-badge-chip {
  background: linear-gradient(180deg, rgba(255, 240, 176, 0.92), rgba(255, 211, 108, 0.74));
  border-color: rgba(255, 212, 90, 0.4);
  color: #8a5a00;
}

.dashboard-highlight,
.dashboard-alert,
.dashboard-form-card,
.dashboard-mini-item,
.dashboard-table-row,
.dashboard-loading-card {
  border: 1px solid rgba(142, 209, 246, 0.36);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(234, 246, 255, 0.76));
  box-shadow: 0 10px 18px rgba(39, 119, 182, 0.08);
}

.dashboard-highlight.secondary {
  background: linear-gradient(180deg, rgba(215, 245, 255, 0.94), rgba(229, 255, 246, 0.82));
}

.dashboard-alert.good {
  border-color: rgba(91, 199, 147, 0.35);
}

.dashboard-alert.warn {
  border-color: rgba(255, 199, 90, 0.35);
}

.dashboard-table-row {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(234, 246, 255, 0.74));
}

.dashboard-meter {
  background: linear-gradient(180deg, rgba(193, 233, 255, 0.74), rgba(225, 244, 255, 0.92));
  box-shadow: inset 0 3px 8px rgba(38, 108, 165, 0.12);
}

.dashboard-input {
  border: 1px solid rgba(152, 211, 246, 0.54);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 249, 255, 0.94));
  color: #234c73;
}

.dashboard-input:focus {
  border-color: rgba(67, 174, 235, 0.6);
  box-shadow: 0 0 0 4px rgba(89, 212, 255, 0.14);
}

.dashboard-loading-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(232, 246, 255, 0.86));
}

@media (max-width: 1080px) {
  .dashboard-action-item {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .dashboard-action-icon {
    width: 44px;
    height: 44px;
  }

  .owner-workspace,
  .owner-overview-grid {
    grid-template-columns: 1fr;
  }

  .owner-sidebar {
    position: static;
    height: auto;
  }

  .owner-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .owner-kpi-strip,
  .owner-stat-grid,
  .institution-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .institution-plan-card.recommended {
    transform: none;
  }
}

@media (max-width: 680px) {
  .owner-dashboard-panel {
    padding: 10px;
  }

  .owner-topline,
  .owner-module-head {
    flex-direction: column;
  }

  .owner-nav,
  .owner-kpi-strip,
  .owner-stat-grid,
  .institution-plan-grid {
    grid-template-columns: 1fr;
  }

  .institution-plan-hero,
  .institution-plan-signal,
  .institution-plan-proof {
    flex-direction: column;
    align-items: stretch;
  }
}

/* =========================
   START SCREEN REFERENCE
========================= */
.start-screen-ref {
  background:
    radial-gradient(circle at 14% 14%, rgba(255, 244, 185, 0.34), transparent 16%),
    linear-gradient(180deg, #9ae8ff 0%, #49b8ef 32%, #1674bd 78%, #0f4b88 100%);
}

.start-screen-ref .start-v3-shell,
.start-screen-ref .start-v3-hero,
.start-screen-ref .start-v3-card,
.start-screen-ref .start-v3-role-list,
.start-screen-ref .start-v3-form,
.start-screen-ref .start-kicker,
.start-screen-ref .start-hero-note,
.start-screen-ref .start-route-glow,
.start-screen-ref .start-coin,
.start-screen-ref .start-foam,
.start-screen-ref .start-star,
.start-screen-ref .start-gull,
.start-screen-ref .start-mini-stats,
.start-screen-ref .start-spotlight-card,
.start-screen-ref .start-access-grid,
.start-screen-ref .start-hero-grid,
.start-screen-ref .start-overlay,
.start-screen-ref .start-panel {
  display: none;
}

.start-ref-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(420px, 0.9fr);
  gap: 18px;
  padding: 14px;
}

.start-ref-hero,
.start-ref-guide,
.start-ref-login {
  border-radius: 26px;
  box-shadow:
    0 18px 48px rgba(0,0,0,0.14),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.start-ref-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 28px);
  padding: 38px 34px 32px;
  background:
    radial-gradient(circle at 82% 14%, rgba(255, 240, 164, 0.38), transparent 16%),
    linear-gradient(180deg, #29a8f5 0%, #2eb9f5 26%, #17a0e3 46%, #1390db 58%, #0c74c7 72%, #0b5bb0 88%, #0a4a95 100%);
}

.start-ref-side {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
}

.start-ref-guide {
  padding: 22px 22px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(245,249,255,0.96));
  border: 1px solid rgba(19, 60, 103, 0.08);
}

.start-ref-login {
  padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(246,250,255,0.97));
  border: 1px solid rgba(19, 60, 103, 0.08);
}

.start-ref-topchips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.start-ref-chip {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 16px 28px rgba(0,0,0,0.16);
}

.start-ref-chip.dark {
  background: linear-gradient(180deg, #143f7c, #0f2f5f);
  color: #f7fbff;
}

.start-ref-chip.cyan {
  background: linear-gradient(180deg, #1db7e6, #128ecc);
  color: #f6fbff;
}

.start-ref-copy {
  position: relative;
  z-index: 2;
  max-width: 610px;
  margin-top: 34px;
}

.start-ref-copy h1 {
  margin: 0;
  display: grid;
  gap: 2px;
  font-size: clamp(56px, 6vw, 98px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: #ffffff;
  text-shadow: 0 4px 0 rgba(13, 60, 109, 0.28), 0 12px 24px rgba(0,0,0,0.18);
}

.start-ref-copy h1 .accent {
  color: #ffd34b;
  text-shadow: 0 4px 0 rgba(172, 108, 13, 0.34), 0 12px 24px rgba(0,0,0,0.14);
}

.start-ref-copy p {
  margin: 18px 0 0;
  max-width: 16ch;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  color: #eef8ff;
  text-shadow: 0 8px 18px rgba(0,0,0,0.14);
}

/* =========================
   SUBMAP V2
========================= */
.submap-v2-topbar {
  padding: 8px 10px 5px;
}

.submap-v2-hidden-topbar {
  display: none !important;
}

.submap-v2-topbar-left,
.submap-v2-topbar-right {
  gap: 6px;
}

.submap-v2-level-pill,
.submap-v2-title-pill {
  min-height: 40px;
  padding: 0 13px;
  border-radius: 16px;
}

.submap-v2-title-pill {
  gap: 8px;
  min-width: 220px;
}

.submap-v2-pill-art {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.22));
}

.submap-v2-screen {
  flex: 1;
  min-height: 0;
  padding: 1px 8px 8px;
  position: relative;
  overflow: hidden;
}

.submap-v2-screen.submap-v2-fullscreen {
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  padding: 0;
}

.submap-v2-screen::before {
  content: "";
  position: absolute;
  inset: -24px 0 0;
  background:
    linear-gradient(180deg, rgba(10, 28, 52, 0.14), rgba(6, 16, 32, 0.18)),
    url("./img/submap-ocean-light.png") center center / cover no-repeat;
  filter: saturate(0.96) brightness(0.96) blur(0.2px);
  z-index: 0;
}

.submap-v2-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 241, 174, 0.08), transparent 14%),
    radial-gradient(circle at 88% 10%, rgba(255,255,255,0.03), transparent 12%),
    linear-gradient(180deg, rgba(8, 31, 58, 0.24), rgba(4, 14, 27, 0.32));
  pointer-events: none;
  z-index: 0;
}

.submap-v2-layout {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 12px;
  align-items: stretch;
  z-index: 1;
}

.submap-v2-fullscreen .submap-v2-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.submap-v2-stage {
  position: relative;
  min-height: 0;
  min-width: 0;
  border-radius: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.submap-v2-fullscreen .submap-v2-stage {
  min-height: 100vh;
  animation: submapStageEnter 0.78s cubic-bezier(0.2, 0.9, 0.18, 1) both;
}

.submap-v2-scene-backdrop {
  position: absolute;
  inset: -18px -12px -18px -18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.08)),
    url("./img/submap-ocean-light.png") center/cover no-repeat;
  opacity: 0.94;
  filter: saturate(0.95) brightness(0.97);
  pointer-events: none;
}

.submap-v2-fullscreen .submap-v2-scene-backdrop {
  inset: 0;
  opacity: 1;
  filter: saturate(1) brightness(0.98);
}

.submap-v2-stage::before {
  content: "";
  position: absolute;
  inset: -18px -12px -18px -18px;
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 245, 176, 0.04), transparent 16%),
    radial-gradient(circle at 88% 10%, rgba(255,255,255,0.02), transparent 12%),
    linear-gradient(180deg, rgba(8, 39, 72, 0.16), rgba(5, 19, 38, 0.24));
  pointer-events: none;
}

.submap-v2-fullscreen .submap-v2-stage::before {
  inset: 0;
}

.submap-v2-hud-card {
  position: absolute;
  top: 14px;
  z-index: 20;
  min-height: 78px;
  padding: 11px 17px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff7d8;
  background:
    radial-gradient(circle at 15% 15%, rgba(99, 219, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(19, 66, 120, 0.97), rgba(5, 28, 61, 0.98));
  border: 2px solid rgba(255, 199, 80, 0.82);
  border-radius: 18px 8px 18px 8px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.18),
    inset 0 -4px 0 rgba(0, 0, 0, 0.22),
    0 10px 22px rgba(0, 25, 54, 0.32),
    0 0 0 1px rgba(54, 211, 255, 0.18);
  animation: worldHudDrop 0.64s cubic-bezier(0.2, 0.9, 0.18, 1.08) both;
}

.submap-v2-hud-card::before,
.submap-v2-hud-card::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffe28b, #c77a18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 2px 0 rgba(72, 35, 7, 0.5),
    0 0 10px rgba(255, 207, 76, 0.45);
}

.submap-v2-hud-card::before {
  left: 8px;
  top: -8px;
}

.submap-v2-hud-card::after {
  right: 8px;
  bottom: -8px;
}

.submap-v2-hud-card-left {
  left: 28px;
  min-width: 260px;
  max-width: min(460px, 42vw);
}

.submap-v2-hud-card-right {
  right: 28px;
  min-width: 330px;
  padding: 9px 13px;
  animation-delay: 0.06s;
}

.submap-v2-hud-card .mission-guided-side-copy {
  display: grid;
  gap: 3px;
}

.submap-v2-hud-card strong {
  font-size: 18px;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.42);
}

.submap-v2-hud-card small {
  font-size: 11px;
  font-weight: 950;
  color: #bfeeff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.36);
}

.submap-v2-hud-card button {
  border: 0;
  padding: 0;
  min-width: 58px;
  display: grid;
  place-items: center;
  gap: 2px;
  color: #fff7d8;
  background: transparent;
  cursor: pointer;
}

.submap-v2-sunbeam {
  position: absolute;
  top: -6%;
  right: 10%;
  width: 18%;
  height: 36%;
  background: linear-gradient(180deg, rgba(255,255,255,0.26), rgba(255,255,255,0));
  clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
  opacity: 0.5;
  pointer-events: none;
}

.submap-v2-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.submap-v2-bird {
  position: absolute;
  width: 22px;
  height: 10px;
  border-top: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50% 50% 0 0;
  opacity: 0.78;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
  animation: submapBirdFloat 9s ease-in-out infinite;
}

.submap-v2-bird::after {
  content: "";
  position: absolute;
  left: 10px;
  top: -2px;
  width: 22px;
  height: 10px;
  border-top: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50% 50% 0 0;
}

.submap-v2-bird.bird-a { left: 22%; top: 18%; animation-delay: 0s; transform: scale(0.8); }
.submap-v2-bird.bird-b { left: 56%; top: 16%; animation-delay: -2s; transform: scale(0.72); }
.submap-v2-bird.bird-c { left: 74%; top: 20%; animation-delay: -4.5s; transform: scale(0.65); }
.submap-v2-bird.bird-d { left: 61%; top: 10%; animation-delay: -6s; transform: scale(0.55); }
.submap-v2-bird.bird-e { left: 31%; top: 12%; animation-delay: -1s; transform: scale(0.58); }
.submap-v2-bird.bird-f { left: 47%; top: 9%; animation-delay: -3s; transform: scale(0.5); }
.submap-v2-bird.bird-g { left: 66%; top: 13%; animation-delay: -5s; transform: scale(0.62); }
.submap-v2-bird.bird-h { left: 80%; top: 14%; animation-delay: -7s; transform: scale(0.54); }

.submap-v2-glow {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,0.95), rgba(255,255,255,0.05) 70%);
  box-shadow: 0 0 14px rgba(255, 248, 190, 0.5);
  opacity: 0.7;
  animation: submapGlowPulse 4.2s ease-in-out infinite;
}

.submap-v2-glow.glow-a { left: 28%; top: 39%; animation-delay: 0s; }
.submap-v2-glow.glow-b { left: 46%; top: 70%; animation-delay: -1.4s; }
.submap-v2-glow.glow-c { left: 67%; top: 58%; animation-delay: -2.3s; }
.submap-v2-glow.glow-d { left: 78%; top: 33%; animation-delay: -3.1s; }

.submap-v2-ripple {
  position: absolute;
  width: 64px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.22);
  border-top-color: rgba(255,255,255,0.35);
  border-bottom-color: rgba(255,255,255,0.08);
  opacity: 0.5;
  filter: blur(0.2px);
  animation: submapRipplePulse 5.4s ease-in-out infinite;
}

.submap-v2-ripple::after {
  content: "";
  position: absolute;
  inset: 6px 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
}

.submap-v2-ripple.ripple-a { left: 24%; top: 63%; animation-delay: 0s; transform: scale(0.72); }
.submap-v2-ripple.ripple-b { left: 52%; top: 60%; animation-delay: -1.2s; transform: scale(0.82); }
.submap-v2-ripple.ripple-c { left: 70%; top: 77%; animation-delay: -2.5s; transform: scale(0.66); }
.submap-v2-ripple.ripple-d { left: 83%; top: 49%; animation-delay: -3.3s; transform: scale(0.58); }
.submap-v2-ripple.ripple-e { left: 37%; top: 82%; animation-delay: -4.1s; transform: scale(0.88); }

.submap-v2-breeze {
  position: absolute;
  width: 96px;
  height: 18px;
  border-top: 2px solid rgba(255,255,255,0.22);
  border-radius: 50%;
  filter: blur(0.2px);
  opacity: 0.55;
  animation: submapBreezeShift 7s ease-in-out infinite;
}

.submap-v2-breeze::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 18px;
  width: 52px;
  height: 12px;
  border-top: 2px solid rgba(255,255,255,0.16);
  border-radius: 50%;
}

.submap-v2-breeze.breeze-a { left: 8%; bottom: 20%; animation-delay: 0s; }
.submap-v2-breeze.breeze-b { left: 40%; bottom: 12%; animation-delay: -2s; transform: scale(0.8); }
.submap-v2-breeze.breeze-c { left: 64%; bottom: 24%; animation-delay: -4s; transform: scale(0.72); }

.submap-v2-node-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.submap-v2-node {
  position: absolute;
  transform: translate(-50%, -50%);
  animation: submapNodeArrive 0.72s cubic-bezier(0.2, 0.9, 0.18, 1.08) both;
  animation-delay: calc(var(--node-order, 0) * 70ms + 0.12s);
}

.submap-v2-node::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 96%;
  height: 28%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(7, 34, 57, 0.82), rgba(7, 34, 57, 0) 74%);
  filter: blur(14px);
  pointer-events: none;
}

.submap-v2-node::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: 102%;
  height: 74%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  pointer-events: none;
  opacity: 1;
}

.submap-v2-node.is-available::after {
  background: radial-gradient(circle, rgba(86, 236, 158, 0.34), rgba(86, 236, 158, 0) 72%);
}

.submap-v2-node.is-completed::after {
  background: radial-gradient(circle, rgba(255, 214, 104, 0.34), rgba(255, 214, 104, 0) 72%);
}

.submap-v2-node.is-locked::after {
  background: radial-gradient(circle, rgba(135, 191, 255, 0.28), rgba(135, 191, 255, 0) 74%);
}

.submap-v2-node-aura,
.submap-v2-node-focus-ring {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  pointer-events: none;
}

.submap-v2-node-aura {
  width: 108%;
  height: 84%;
  border: 4px solid rgba(255,255,255,0.46);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    0 0 32px rgba(255,255,255,0.16);
  opacity: 0.92;
}

.submap-v2-node-focus-ring {
  width: 116%;
  height: 92%;
  border: 2px dashed rgba(255,255,255,0.26);
  opacity: 0.5;
}

.submap-v2-node.is-available .submap-v2-node-aura {
  border-color: rgba(114, 246, 177, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    0 0 26px rgba(114, 246, 177, 0.28);
}

.submap-v2-node.is-completed .submap-v2-node-aura {
  border-color: rgba(255, 220, 118, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    0 0 26px rgba(255, 220, 118, 0.26);
}

.submap-v2-node.is-locked .submap-v2-node-aura {
  border-color: rgba(151, 202, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.24),
    0 0 24px rgba(151, 202, 255, 0.18);
}

.submap-v2-node-button::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12%;
  width: 68%;
  height: 18%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.24),
    0 10px 18px rgba(0,0,0,0.12);
  opacity: 0.92;
  pointer-events: none;
}

.submap-v2-node-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
  animation: submapNodeFloat 4.6s ease-in-out infinite;
  animation-delay: calc(var(--node-order, 0) * -420ms);
}

.submap-v2-node-button:hover,
.submap-v2-node-button:focus-visible {
  transform: translateY(-6px) scale(1.025);
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.2));
  outline: none;
}

.submap-v2-node-art {
  width: 100%;
  display: block;
  object-fit: contain;
  filter:
    drop-shadow(0 16px 18px rgba(0, 0, 0, 0.18))
    drop-shadow(0 0 24px rgba(255, 255, 255, 0.14));
}

.submap-v2-node-badge {
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 4px solid rgba(255,255,255,0.94);
  background: linear-gradient(180deg, #1f4f93, #10294f);
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  box-shadow:
    0 16px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.submap-v2-node.is-selected .submap-v2-node-badge {
  background: linear-gradient(180deg, #51d86a, #198c35);
  box-shadow:
    0 0 0 7px rgba(255, 235, 135, 0.38),
    0 18px 26px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.submap-v2-node.is-completed .submap-v2-node-badge {
  background: linear-gradient(180deg, #5cc788, #1b8651);
}

.submap-v2-node.is-locked .submap-v2-node-badge {
  background: linear-gradient(180deg, #617da6, #364d71);
}

.submap-v2-node-status {
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(15, 43, 84, 0.96), rgba(8, 23, 44, 0.94));
  color: #eef9ff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.16);
}

.submap-v2-node-lock {
  position: absolute;
  right: 12%;
  top: 14%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #17385f, #0d213d);
  box-shadow: 0 12px 16px rgba(0, 0, 0, 0.18);
  font-size: 14px;
}

.submap-v2-stage-callout {
  position: absolute;
  left: 14px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 45, 86, 0.96), rgba(8, 25, 48, 0.96));
  border: 1px solid rgba(255, 228, 151, 0.28);
  color: #f6fbff;
  font-size: 13px;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 34px rgba(0, 0, 0, 0.18);
  z-index: 8;
  max-width: 228px;
}

@keyframes submapBirdFloat {
  0%,
  100% {
    transform: translateX(0) translateY(0) scale(var(--bird-scale, 1));
  }

  50% {
    transform: translateX(26px) translateY(-10px) scale(var(--bird-scale, 1));
  }
}

@keyframes submapGlowPulse {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.4;
  }

  50% {
    transform: scale(1.28);
    opacity: 0.9;
  }
}

@keyframes submapBreezeShift {
  0%,
  100% {
    transform: translateX(0) translateY(0);
    opacity: 0.28;
  }

  50% {
    transform: translateX(18px) translateY(-4px);
    opacity: 0.62;
  }
}

@keyframes submapRipplePulse {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.24;
  }

  50% {
    transform: scale(1.18);
    opacity: 0.58;
  }
}

@keyframes submapStageEnter {
  0% {
    opacity: 0;
    transform: scale(1.012);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes submapPanelSlide {
  0% {
    opacity: 0;
    transform: translateX(22px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes submapNodeArrive {
  0% {
    opacity: 0;
    transform: translate(-50%, -44%) scale(0.88);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes submapNodeFloat {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -5px;
  }
}

.submap-v2-callout-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #dbefff);
  color: #144372;
  font-size: 18px;
}

.submap-v2-sidebar {
  display: grid;
  gap: 10px;
  align-content: start;
}

.submap-v2-fullscreen .submap-v2-sidebar {
  position: absolute;
  top: 96px;
  right: 0;
  bottom: 0;
  width: min(340px, 25vw);
  padding: 0 0 18px 10px;
  z-index: 12;
  align-content: start;
  overflow: visible;
  pointer-events: none;
}

.submap-v2-fullscreen .submap-v2-sidebar > * {
  pointer-events: auto;
}

.submap-v2-fullscreen .submap-v2-sidebar .submap-v2-card {
  box-sizing: border-box;
  width: 100%;
}

.submap-v2-card {
  position: relative;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(136, 197, 255, 0.22);
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.1), transparent 24%),
    radial-gradient(circle at bottom left, rgba(102, 217, 255, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(12, 39, 74, 0.92), rgba(7, 23, 46, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 20px 38px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255,255,255,0.04);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.submap-v2-fullscreen .submap-v2-card {
  border-color: rgba(255, 199, 80, 0.46);
  border-radius: 18px 0 0 8px;
  background:
    radial-gradient(circle at top right, rgba(99, 219, 255, 0.13), transparent 26%),
    linear-gradient(180deg, rgba(13, 47, 88, 0.94), rgba(5, 24, 51, 0.96));
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.13),
    inset 0 -4px 0 rgba(0, 0, 0, 0.18),
    0 18px 34px rgba(0, 22, 52, 0.28);
  animation: submapPanelSlide 0.7s cubic-bezier(0.2, 0.9, 0.18, 1) both;
}

.submap-v2-fullscreen .submap-v2-selected-card,
.submap-v2-fullscreen .submap-v2-reward-card,
.submap-v2-fullscreen .submap-v2-adventure-card {
  display: none;
}

.submap-v2-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 160, 0.12), transparent 70%);
  pointer-events: none;
}

.submap-v2-card::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}

.submap-v2-card .eyebrow {
  margin-bottom: 8px;
  color: #9fd1ff;
  font-size: 11px;
}

.submap-v2-world-card {
  padding: 12px;
}

.submap-v2-world-head,
.submap-v2-adventure-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66px;
  gap: 10px;
  align-items: center;
}

.submap-v2-world-card h1,
.submap-v2-selected-copy h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.submap-v2-world-card p,
.submap-v2-selected-copy p,
.submap-v2-adventure-body p {
  margin: 6px 0 0;
  color: #d7e9f8;
  line-height: 1.34;
  font-size: 11px;
}

.submap-v2-world-art,
.submap-v2-adventure-art {
  width: 100%;
  object-fit: contain;
  justify-self: end;
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.22));
}

.submap-v2-guide-card {
  position: relative;
  display: grid;
  justify-items: end;
  min-height: 194px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.submap-v2-fullscreen .submap-v2-guide-card {
  min-height: 230px;
  margin-top: 34px;
  padding-right: 12px;
  justify-items: end;
}

.submap-v2-guide-card::before,
.submap-v2-guide-card::after {
  display: none;
}

.submap-v2-guide-copy {
  position: absolute;
  z-index: 6;
  top: 0;
  right: 134px;
  width: min(330px, calc(100vw - 760px));
  min-width: 280px;
  padding: 14px;
  border-radius: 20px;
  border-color: rgba(255, 220, 132, 0.26);
  background:
    radial-gradient(circle at 100% 20%, rgba(255, 220, 132, 0.13), transparent 28%),
    linear-gradient(180deg, rgba(15, 46, 82, 0.92), rgba(8, 26, 50, 0.96));
  border: 1px solid rgba(255, 220, 132, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 22px 42px rgba(0,0,0,0.26);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(10px, 8px, 0) scale(0.96);
  transform-origin: right 50%;
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(.2,.9,.25,1);
}

.submap-v2-fullscreen .submap-v2-guide-copy {
  top: 28px;
  right: 114px;
  width: min(330px, 30vw);
  min-width: 260px;
}

.submap-v2-fullscreen .submap-v2-guide-copy::after {
  top: 76px;
}

.submap-v2-guide-copy::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 96px;
  width: 24px;
  height: 24px;
  background: rgba(8, 26, 50, 0.96);
  border-right: 1px solid rgba(255, 220, 132, 0.2);
  border-bottom: 1px solid rgba(255, 220, 132, 0.2);
  transform: rotate(-45deg);
}

.submap-v2-guide-card:hover .submap-v2-guide-copy,
.submap-v2-guide-card:focus-within .submap-v2-guide-copy,
.submap-v2-guide-card.is-open .submap-v2-guide-copy {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.submap-v2-guide-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.submap-v2-guide-step {
  flex: 0 0 auto;
  min-width: 42px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #11365a;
  font-size: 12px;
  font-weight: 950;
  text-align: center;
  background: linear-gradient(180deg, #ffe08a, #ffc764);
  box-shadow: 0 8px 14px rgba(0,0,0,0.18);
}

.submap-v2-guide-card h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff6cf;
  font-size: 18px;
  line-height: 1.05;
}

.submap-v2-guide-card p {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: #e4f3ff;
  font-size: 12px;
  line-height: 1.42;
}

.submap-v2-guide-robot-button {
  position: relative;
  z-index: 5;
  width: 148px;
  min-height: 184px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff6cf;
  font-weight: 950;
  cursor: pointer;
  filter: drop-shadow(0 18px 18px rgba(0,0,0,0.24));
}

.submap-v2-guide-robot-button::before,
.submap-v2-guide-robot-button::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.submap-v2-guide-robot-button::before {
  left: 16px;
  right: 10px;
  bottom: 18px;
  height: 34px;
  background: radial-gradient(circle, rgba(115, 238, 255, 0.34), rgba(115, 238, 255, 0));
  filter: blur(2px);
  animation: missionAssistantPulse 2.8s ease-in-out infinite;
}

.submap-v2-guide-robot-button::after {
  left: 24px;
  right: 24px;
  top: 18px;
  bottom: 28px;
  border: 1px solid rgba(120, 224, 255, 0.24);
  box-shadow: 0 0 26px rgba(120, 224, 255, 0.16);
  animation: submapGuideAura 3.6s ease-in-out infinite;
}

.submap-v2-guide-robot {
  position: relative;
  z-index: 1;
  display: block;
  width: 138px;
  margin-left: auto;
  animation: submapGuideRobotFloat 3.8s ease-in-out infinite;
}

.submap-v2-guide-robot-button span {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(8, 31, 56, 0.86);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 10px 18px rgba(0,0,0,0.2);
}

.submap-v2-dialog-mission {
  position: relative;
  z-index: 1;
  display: none;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  padding: 9px;
  border-radius: 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.09);
}

.submap-v2-dialog-mission h3 {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.05;
}

.submap-v2-dialog-footer {
  position: relative;
  z-index: 1;
  display: none;
  gap: 10px;
  margin-top: 10px;
}

.submap-v2-guide-card.is-final .submap-v2-dialog-mission,
.submap-v2-guide-card.is-final .submap-v2-dialog-footer {
  display: grid;
}

.submap-v2-guide-next-btn {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 14px;
  color: #123553;
  font-weight: 950;
  cursor: pointer;
  background: linear-gradient(180deg, #ffe69c, #ffc865);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.62),
    0 12px 18px rgba(0,0,0,0.18);
}

.submap-v2-guide-next-btn:hover,
.submap-v2-guide-next-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 16px 22px rgba(0,0,0,0.22);
}

.submap-v2-selected-card,
.submap-v2-reward-card,
.submap-v2-adventure-card {
  display: none;
}

.submap-v2-progress-chip {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(46, 130, 245, 0.28), rgba(17, 61, 124, 0.22));
  border: 1px solid rgba(98, 177, 255, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 14px 20px rgba(0,0,0,0.12);
}

.submap-v2-progress-chip span {
  color: #a9d9ff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 9px;
}

.submap-v2-progress-chip strong {
  font-size: 16px;
  color: #ffffff;
}

.submap-v2-selected-card.is-available {
  border-color: rgba(83, 226, 138, 0.28);
}

.submap-v2-selected-card.is-completed {
  border-color: rgba(255, 221, 126, 0.28);
}

.submap-v2-selected-card.is-locked {
  border-color: rgba(163, 186, 215, 0.22);
}

.submap-v2-selected-body {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 54px;
  gap: 7px;
  align-items: center;
}

.submap-v2-selected-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #5ddc4b, #26983a);
  border: 6px solid rgba(255,255,255,0.94);
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  box-shadow:
    0 0 0 5px rgba(255, 238, 144, 0.24),
    0 18px 26px rgba(0, 0, 0, 0.18);
}

.submap-v2-selected-copy {
  padding: 2px 0;
}

.submap-v2-selected-robot {
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.22));
}

.submap-v2-selected-status {
  font-size: 9px;
}

.submap-v2-selected-status strong {
  color: #8bf59d;
}

.submap-v2-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.submap-v2-enter-btn,
.submap-v2-back-btn {
  min-height: 34px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 14px 24px rgba(0,0,0,0.16);
}

.submap-v2-reward-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.submap-v2-reward-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 8px;
  border-radius: 12px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.08), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 12px 18px rgba(0,0,0,0.12);
}

.submap-v2-reward-pill strong {
  font-size: 15px;
  color: #ffffff;
}

.submap-v2-adventure-body {
  grid-template-columns: minmax(0, 1fr) 64px;
}

@media (max-width: 1180px) {
  .submap-v2-layout {
    grid-template-columns: 1fr;
  }

  .submap-v2-stage {
    min-height: 60vh;
  }

  .submap-v2-guide-card {
    justify-items: start;
    min-height: 202px;
  }

  .submap-v2-guide-copy {
    left: 136px;
    right: auto;
    width: min(330px, calc(100vw - 190px));
    min-width: 0;
    transform-origin: left 50%;
  }

  .submap-v2-guide-copy::after {
    left: -12px;
    right: auto;
    transform: rotate(135deg);
  }
}

@media (max-width: 760px) {
  .submap-v2-screen {
    padding: 8px 12px 14px;
  }

  .submap-v2-topbar {
    padding: 16px 12px 10px;
  }

  .submap-v2-title-pill {
    min-width: 0;
    width: 100%;
  }

  .submap-v2-stage {
    min-height: 74vh;
  }

  .submap-v2-selected-body,
  .submap-v2-world-head,
  .submap-v2-adventure-body {
    grid-template-columns: 1fr;
  }

  .submap-v2-selected-number {
    width: 72px;
    height: 72px;
    font-size: 34px;
  }

  .submap-v2-action-row,
  .submap-v2-reward-grid {
    grid-template-columns: 1fr;
  }

  .submap-v2-stage-callout {
    right: 18px;
    left: 18px;
    bottom: 18px;
    font-size: 16px;
  }

  .submap-v2-guide-card {
    min-height: 298px;
  }

  .submap-v2-guide-copy {
    top: 166px;
    left: 0;
    width: 100%;
  }

  .submap-v2-guide-copy::after {
    left: 46px;
    top: -12px;
    transform: rotate(-135deg);
  }
}

.start-ref-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.start-ref-pill {
  padding: 14px 18px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 14px 22px rgba(0,0,0,0.14);
}

.start-ref-pill.green { background: linear-gradient(180deg, #44bb81, #2b9866); }
.start-ref-pill.blue { background: linear-gradient(180deg, #2e8df3, #2275db); }
.start-ref-pill.purple { background: linear-gradient(180deg, #8e6aea, #6f53cc); }

.start-ref-cta-note {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  padding: 16px 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(9, 54, 110, 0.92), rgba(8, 43, 92, 0.96));
  color: #f3fbff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 16px 26px rgba(0,0,0,0.16);
}

.start-ref-side-title {
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 900;
  color: #1d3560;
  margin-bottom: 12px;
}

.start-ref-side-title.small {
  margin-bottom: 8px;
  color: #2e6ca6;
}

.start-guide-item {
  display: grid;
  grid-template-columns: 34px 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid rgba(26, 62, 110, 0.08);
}

.start-guide-item:first-of-type {
  border-top: none;
  padding-top: 2px;
}

.start-guide-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
  color: #213965;
  background: linear-gradient(180deg, #ffd761, #ffbf2f);
}

.start-guide-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #e9f1fb);
  border: 1px solid rgba(33, 58, 93, 0.1);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  position: relative;
}

.guide-aa::before {
  content: "Aa";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 900;
  color: #1d3560;
}

.guide-target::before,
.guide-target::after { content: ""; position: absolute; border-radius: 50%; }
.guide-target::before { inset: 11px; border: 4px solid #1d3560; }
.guide-target::after { width: 12px; height: 12px; background: #1d3560; left: 21px; top: 21px; }

.guide-hand::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 12px;
  width: 18px;
  height: 28px;
  border-radius: 10px 10px 6px 6px;
  background: #1d3560;
  box-shadow: -8px 8px 0 -3px #1d3560, 8px 4px 0 -4px #1d3560;
}

.guide-land::before,
.guide-land::after { content: ""; position: absolute; }
.guide-land::before {
  left: 11px;
  bottom: 14px;
  width: 30px;
  height: 18px;
  background: linear-gradient(180deg, #57c87d, #2e9e58);
  clip-path: polygon(0 100%, 34% 30%, 52% 58%, 74% 8%, 100% 100%);
}
.guide-land::after {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #51b9ec;
  right: 9px;
  bottom: 10px;
}

.guide-palette::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 13px;
  width: 30px;
  height: 28px;
  border-radius: 50% 50% 42% 42%;
  background: #2f7dda;
  clip-path: ellipse(52% 46% at 50% 50%);
}

.guide-palette::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 20px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 20% 20%, #ffd55c 0 18%, transparent 20%),
    radial-gradient(circle at 70% 26%, #7df08f 0 18%, transparent 20%),
    radial-gradient(circle at 36% 72%, #ff8a5f 0 18%, transparent 20%),
    radial-gradient(circle at 78% 72%, #9c83ff 0 18%, transparent 20%);
}

.start-guide-copy { display: grid; gap: 4px; }
.start-guide-copy strong { color: #152d55; font-size: 16px; }
.start-guide-copy span { color: #49627f; line-height: 1.45; }

.start-ref-login-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.start-ref-login-head h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1;
  color: #16305a;
}

.start-ref-login-head p {
  margin: 0;
  color: #527090;
  line-height: 1.5;
}

.start-login-link {
  border: none;
  background: linear-gradient(180deg, #eff7ff, #dfeeff);
  color: #26639d;
  font-weight: 900;
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: 0 10px 18px rgba(0,0,0,0.06);
  cursor: pointer;
}

.start-ref-access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.start-access-card {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  min-height: 186px;
  padding: 14px 12px 16px;
  border-radius: 20px;
  border: 1px solid rgba(32, 61, 104, 0.12);
  background: linear-gradient(180deg, #fefefe, #f3f8ff);
  box-shadow: 0 14px 24px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.start-access-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(0,0,0,0.1);
}

.start-access-card.active {
  border-color: rgba(67, 165, 255, 0.34);
  box-shadow: 0 18px 30px rgba(0,0,0,0.1), 0 0 0 4px rgba(67, 165, 255, 0.08);
}

.start-access-card strong { color: #17325c; font-size: 16px; }
.start-access-card span { color: #526f8d; line-height: 1.35; }

.start-access-arrow {
  margin-top: auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(180deg, #2f8df5, #1d6eda);
  font-size: 20px;
  font-weight: 900;
}

.start-access-icon {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(225,238,250,0.96));
  border: 1px solid rgba(27, 53, 94, 0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

.start-access-icon .icon-core,
.start-access-icon .icon-detail { position: absolute; display: block; }

.start-access-icon-student .icon-core {
  left: 26px; top: 22px; width: 32px; height: 32px; border-radius: 50%;
  background: radial-gradient(circle at 34% 34%, #fff2b4, #f0c65f 62%, #b87b1e);
}
.start-access-icon-student .icon-detail-a {
  left: 37px; top: 12px; width: 10px; height: 16px; border-radius: 10px; background: #ffffff;
}
.start-access-icon-student .icon-detail-b {
  left: 35px; top: 32px; width: 14px; height: 14px; border: 3px solid #ffffff; border-radius: 50%;
}
.start-access-icon-student .icon-detail-c {
  left: 49px; top: 45px; width: 14px; height: 4px; border-radius: 999px; background: #ffffff; transform: rotate(34deg);
}

.start-access-icon-parent { background: linear-gradient(180deg, #eefbe8, #dff3d2); }
.start-access-icon-parent .icon-core {
  left: 24px; top: 34px; width: 36px; height: 24px; border-radius: 8px; background: linear-gradient(180deg, #ffd77f, #d78d29);
}
.start-access-icon-parent .icon-detail-a {
  left: 20px; top: 24px; width: 42px; height: 22px; clip-path: polygon(50% 0%, 100% 100%, 0 100%); background: #ef8a4d;
}
.start-access-icon-parent .icon-detail-b,
.start-access-icon-parent .icon-detail-c {
  top: 38px; width: 12px; height: 28px; border-radius: 12px 12px 4px 4px; background: linear-gradient(180deg, #8df286, #3cab4a);
}
.start-access-icon-parent .icon-detail-b { left: 10px; }
.start-access-icon-parent .icon-detail-c { right: 10px; }

.start-access-icon-institution { background: linear-gradient(180deg, #f5f0ff, #ece8ff); }
.start-access-icon-institution .icon-core {
  left: 21px; top: 34px; width: 42px; height: 24px; border-radius: 8px; background: linear-gradient(180deg, #f2e4d2, #cdb8a0);
}
.start-access-icon-institution .icon-detail-a {
  left: 18px; top: 24px; width: 48px; height: 18px; clip-path: polygon(50% 0%, 100% 100%, 0 100%); background: #ee8a56;
}
.start-access-icon-institution .icon-detail-b,
.start-access-icon-institution .icon-detail-c {
  top: 27px; width: 8px; height: 18px; border-radius: 4px 4px 0 0; background: #dccfc4;
}
.start-access-icon-institution .icon-detail-b { left: 25px; }
.start-access-icon-institution .icon-detail-c { right: 25px; }

.start-ref-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.start-ref-form .start-input {
  height: 54px;
  border-radius: 16px;
  border-color: rgba(24, 56, 101, 0.12);
  background: linear-gradient(180deg, #ffffff, #eef5ff);
  color: #193057;
}

.start-ref-form .start-input::placeholder { color: #7d95b1; }
.start-ref-form .start-input:focus {
  border-color: rgba(42, 140, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.24), 0 0 0 4px rgba(42, 140, 255, 0.08);
}

.start-ref-submit {
  margin-top: 6px;
  height: 56px;
  border-radius: 18px;
  font-size: 18px;
}

.start-screen-ref .start-role-note {
  color: #507094;
  max-width: none;
}

.start-ref-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.start-ref-trust span {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(34, 91, 156, 0.06);
  color: #35577f;
  font-size: 13px;
  font-weight: 800;
}

.start-ref-sky-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 84% 14%, rgba(255, 248, 188, 0.36), transparent 12%), radial-gradient(circle at 72% 62%, rgba(255,255,255,0.12), transparent 20%);
  pointer-events: none;
}

.start-ref-water-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 35%;
  height: 4px;
  background: rgba(255,255,255,0.2);
}

.start-ref-cloud {
  position: absolute;
  width: 120px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,0.62);
}

.start-ref-cloud::before,
.start-ref-cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.72);
}

.start-ref-cloud::before {
  width: 44px;
  height: 44px;
  left: 14px;
  top: -16px;
}

.start-ref-cloud::after {
  width: 54px;
  height: 54px;
  right: 16px;
  top: -18px;
}

.start-ref-hero .cloud-a { right: 22%; top: 24%; transform: scale(0.7); }
.start-ref-hero .cloud-b { right: 8%; top: 36%; transform: scale(0.9); }
.start-ref-hero .cloud-c { right: 28%; top: 66%; transform: scale(1.1); }

.start-ref-sun {
  position: absolute;
  right: 10%;
  top: 9%;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,245,182,0.98), rgba(255,223,112,0.72) 58%, rgba(255,223,112,0) 74%);
  box-shadow: 0 0 50px rgba(255,223,112,0.26);
}

.start-ref-birds,
.start-ref-birds::before,
.start-ref-birds::after {
  position: absolute;
  width: 24px;
  height: 12px;
  border-top: 4px solid rgba(255,255,255,0.92);
  border-radius: 50%;
}

.start-ref-birds { right: 13%; top: 28%; }
.start-ref-birds::before,
.start-ref-birds::after { content: ""; }
.start-ref-birds::before { left: -92px; top: 110px; transform: scale(0.9); }
.start-ref-birds::after { left: -34px; top: 34px; transform: scale(0.72); }

.start-scenic-callout {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 250px;
  padding: 10px 14px;
  border-radius: 18px;
  color: #f5fbff;
  background: rgba(18, 121, 209, 0.38);
  border: 1px solid rgba(255,255,255,0.34);
  backdrop-filter: blur(8px);
  font-weight: 700;
}

.start-scenic-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffd761, #ffbf2f);
  color: #1b3156;
  font-weight: 900;
  flex: none;
}

.callout-a { right: 20%; top: 68px; }
.callout-b { left: 26px; top: 50%; }
.callout-c { left: 44%; bottom: 24px; }

.start-ref-island {
  position: absolute;
  border-radius: 50%;
  box-shadow: inset 0 6px 0 rgba(255,255,255,0.18), 0 26px 30px rgba(0,0,0,0.16);
}

.start-ref-island .palm {
  position: absolute;
  bottom: 24px;
  width: 10px;
  height: 62px;
  border-radius: 999px;
  background: linear-gradient(180deg, #986127, #683a17);
}

.start-ref-island .palm::before,
.start-ref-island .palm::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -14px;
  width: 46px;
  height: 16px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(90deg, #89ef81, #37aa4a);
}

.start-ref-island .palm::before { transform: translateX(-8px) rotate(-30deg); }
.start-ref-island .palm::after { transform: translateX(-36px) rotate(30deg); }

.island-small-left {
  left: 8%;
  bottom: 38px;
  width: 220px;
  height: 120px;
  background: radial-gradient(circle at 50% 40%, #78dc61 0, #55c04f 40%, #2f9344 72%, transparent 73%), radial-gradient(ellipse at 50% 74%, #f5d57f 0, #d6ab55 50%, #8b5d25 74%, #5f3815 100%);
}

.island-small-left .palm-a { left: 62px; }
.island-small-left .palm-b { left: 102px; height: 54px; }
.island-small-left .hut {
  position: absolute;
  left: 120px;
  bottom: 34px;
  width: 40px;
  height: 24px;
  background: #d7764a;
  border-radius: 8px;
}

.island-small-left .hut::before {
  content: "";
  position: absolute;
  left: -5px;
  top: -16px;
  width: 50px;
  height: 18px;
  clip-path: polygon(50% 0%, 100% 100%, 0 100%);
  background: #ef8a4d;
}

.island-main {
  left: 44%;
  bottom: 42px;
  width: 264px;
  height: 138px;
  background: radial-gradient(circle at 50% 36%, #7ee467 0, #5fc554 40%, #33944a 70%, transparent 71%), radial-gradient(ellipse at 50% 74%, #f5d58b 0, #ddb567 44%, #98682a 74%, #673d18 100%);
}

.island-main .palm-c { left: 54px; }
.island-main .palm-d { left: 176px; height: 56px; }
.island-main .dock {
  position: absolute;
  left: 88px;
  bottom: 24px;
  width: 92px;
  height: 18px;
  background: linear-gradient(180deg, #ba8343, #8b571f);
  border-radius: 10px;
}

.island-main .telescope {
  position: absolute;
  left: 116px;
  bottom: 52px;
  width: 42px;
  height: 8px;
  background: #f2ba42;
  transform: rotate(-18deg);
  border-radius: 999px;
}

.island-main .map-roll {
  position: absolute;
  left: 142px;
  bottom: 38px;
  width: 42px;
  height: 32px;
  background: #ffe8b3;
  border-radius: 6px;
}

.island-main .treasure {
  position: absolute;
  left: 100px;
  bottom: 36px;
  width: 28px;
  height: 22px;
  background: linear-gradient(180deg, #6e3f17, #43220b);
  border-radius: 8px;
}

.island-waterfall {
  right: 13%;
  bottom: 140px;
  width: 240px;
  height: 300px;
  background: none;
  box-shadow: none;
}

.island-waterfall .mountain {
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0%, 67% 20%, 72% 37%, 84% 56%, 75% 100%, 24% 100%, 14% 64%, 24% 42%, 34% 26%);
  background: linear-gradient(180deg, #6fa873, #3c7148 56%, #285437);
}

.island-waterfall .waterfall {
  position: absolute;
  left: 104px;
  top: 80px;
  width: 34px;
  height: 168px;
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(128,217,255,0.82));
  border-radius: 20px;
  box-shadow: 0 0 18px rgba(190,241,255,0.22);
}

.island-waterfall .flag {
  position: absolute;
  right: 12px;
  bottom: 32px;
  width: 46px;
  height: 30px;
  background: #ffb31f;
  clip-path: polygon(0 0, 100% 18%, 72% 50%, 100% 82%, 0 100%);
  border-radius: 2px;
}

.start-ref-turtle {
  position: absolute;
  right: 20%;
  bottom: 22px;
  width: 86px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, #80d15f, #3f9b43);
}

.start-ref-turtle::before,
.start-ref-turtle::after {
  content: "";
  position: absolute;
  background: #72bf57;
  border-radius: 50%;
}

.start-ref-turtle::before { left: -10px; top: 10px; width: 22px; height: 22px; }
.start-ref-turtle::after { right: -8px; top: 8px; width: 18px; height: 18px; }

.start-ref-fish {
  position: absolute;
  width: 36px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7fe4ff, #2ab2e1);
  opacity: 0.8;
}

.start-ref-fish::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 2px;
  width: 12px;
  height: 12px;
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  background: inherit;
}

.fish-a { left: 2%; bottom: 112px; }
.fish-b { left: 36%; bottom: 78px; }
.fish-c { right: 22%; bottom: 96px; }

.start-ref-bubbles {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.44);
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.36), rgba(255,255,255,0.02));
}

.bubble-a { left: 12%; bottom: 64px; }
.bubble-b { left: 25%; bottom: 98px; }
.bubble-c { left: 46%; bottom: 76px; }

@media (max-width: 1280px) {
  .start-ref-shell {
    grid-template-columns: 1fr;
  }

  .start-ref-hero {
    min-height: 760px;
  }
}

@media (max-width: 720px) {
  .start-ref-shell {
    padding: 10px;
    gap: 10px;
  }

  .start-ref-hero,
  .start-ref-guide,
  .start-ref-login {
    border-radius: 22px;
  }

  .start-ref-hero {
    min-height: 640px;
    padding: 24px 20px 20px;
  }

  .start-ref-copy h1 {
    font-size: 54px;
  }

  .start-ref-copy p {
    font-size: 20px;
  }

  .start-ref-pill-row,
  .start-ref-trust,
  .start-ref-topchips {
    gap: 8px;
  }

  .start-ref-access-grid {
    grid-template-columns: 1fr;
  }

  .start-access-card {
    min-height: 144px;
  }

  .callout-a,
  .callout-b,
  .callout-c {
    display: none;
  }

  .island-waterfall {
    right: 4%;
    transform: scale(0.82);
    transform-origin: bottom right;
  }
}

/* =========================
   START SCREEN USING ART
========================= */
.start-art-screen {
  min-height: 100vh;
  padding: 14px;
  background:
    radial-gradient(circle at top left, rgba(255, 245, 198, 0.72), transparent 22%),
    linear-gradient(180deg, #eaf5ff, #d5e9fb);
}

.start-art-board {
  position: relative;
  max-width: 1660px;
  margin: 0 auto;
  aspect-ratio: 1770 / 1000;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 11% 18%, rgba(255, 236, 167, 0.32), transparent 16%),
    radial-gradient(circle at 63% 8%, rgba(255, 255, 255, 0.14), transparent 18%),
    linear-gradient(180deg, #90e4ff 0%, #53c6f7 36%, #1d92dd 68%, #065dba 100%);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.18),
    inset 0 2px 0 rgba(255,255,255,0.55);
}

.start-art-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.start-art-sky-glow,
.start-art-sun,
.start-art-cloud,
.start-art-bird,
.start-art-wave,
.start-art-foam,
.start-art-fish,
.start-art-bubble,
.start-art-asset {
  position: absolute;
}

.start-art-sky-glow {
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.85;
}

.start-art-sky-glow.glow-left {
  left: -4%;
  top: -3%;
  width: 28%;
  height: 36%;
  background: radial-gradient(circle, rgba(255, 247, 186, 0.55), rgba(255, 247, 186, 0));
}

.start-art-sky-glow.glow-right {
  right: 22%;
  top: 3%;
  width: 18%;
  height: 20%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
}

.start-art-sun {
  right: 36%;
  top: 9%;
  width: 7.8%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #fff8d2 0%, #ffe889 54%, rgba(255, 232, 137, 0.05) 76%);
  box-shadow:
    0 0 26px rgba(255, 236, 160, 0.55),
    0 0 56px rgba(255, 230, 134, 0.3);
}

.start-art-cloud {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  filter: drop-shadow(0 12px 18px rgba(0, 76, 132, 0.08));
}

.start-art-cloud::before,
.start-art-cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.start-art-cloud::before {
  left: 14%;
  top: -46%;
  width: 34%;
  height: 100%;
}

.start-art-cloud::after {
  right: 12%;
  top: -36%;
  width: 38%;
  height: 108%;
}

.cloud-a {
  top: 19%;
  left: 45%;
  width: 8.6%;
  height: 3%;
  animation: startCloudDrift 12s ease-in-out infinite;
}

.cloud-b {
  top: 28%;
  right: 31%;
  width: 10.8%;
  height: 3.5%;
  opacity: 0.95;
  animation: startCloudDrift 16s ease-in-out infinite reverse;
}

.cloud-c {
  top: 15%;
  right: 18%;
  width: 7.2%;
  height: 2.7%;
  opacity: 0.8;
  animation: startCloudDrift 14s ease-in-out infinite;
}

.start-art-bird {
  width: 2.4%;
  height: 1.2%;
  border-top: 3px solid rgba(255,255,255,0.92);
  border-radius: 50%;
  opacity: 0.8;
}

.start-art-bird::after {
  content: "";
  position: absolute;
  left: 46%;
  top: -3px;
  width: 100%;
  height: 100%;
  border-top: 3px solid rgba(255,255,255,0.92);
  border-radius: 50%;
}

.bird-a {
  top: 23%;
  right: 20%;
  animation: startBirdFloat 7s ease-in-out infinite;
}

.bird-b {
  top: 33%;
  right: 40%;
  transform: scale(0.9);
  animation: startBirdFloat 8s ease-in-out infinite reverse;
}

.bird-c {
  top: 18%;
  right: 10%;
  transform: scale(0.72);
  animation: startBirdFloat 9s ease-in-out infinite;
}

.start-art-sea {
  position: absolute;
  inset: 46% 0 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(43, 178, 236, 0.18) 10%, rgba(4, 107, 188, 0.18) 24%, rgba(0, 68, 136, 0) 100%);
}

.start-art-sea::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -3.6%;
  height: 8%;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.04) 36%, rgba(0,0,0,0) 100%);
  opacity: 0.9;
}

.start-art-sea::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  top: 2.8%;
  height: 10%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(255,255,255,0.12), rgba(255,255,255,0) 72%);
  filter: blur(8px);
  opacity: 0.75;
}

.start-art-wave {
  left: -8%;
  width: 116%;
  border-radius: 48% 52% 0 0;
}

.wave-back {
  bottom: -2%;
  height: 54%;
  background: linear-gradient(180deg, rgba(0, 162, 230, 0.2), rgba(0, 108, 197, 0.12));
  animation: startWaterBob 7.8s ease-in-out infinite;
}

.wave-mid {
  bottom: -6%;
  height: 48%;
  background:
    radial-gradient(circle at 20% 24%, rgba(255,255,255,0.15), transparent 10%),
    radial-gradient(circle at 70% 34%, rgba(255,255,255,0.16), transparent 12%),
    linear-gradient(180deg, rgba(17, 154, 231, 0.28), rgba(6, 101, 188, 0.22));
  animation: startWaterBob 5.8s ease-in-out infinite reverse;
}

.wave-front {
  bottom: -12%;
  height: 56%;
  background:
    linear-gradient(180deg, rgba(24, 152, 235, 0.88), rgba(7, 97, 187, 0.98));
}

.wave-front::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 4%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.26), rgba(255,255,255,0));
  opacity: 0.8;
}

.start-art-foam {
  height: 1.1%;
  border-radius: 999px;
  background: rgba(255,255,255,0.4);
  filter: blur(0.2px);
}

.foam-a { left: 8%; bottom: 33%; width: 18%; animation: startFoamShift 6s ease-in-out infinite; }
.foam-b { left: 32%; bottom: 30%; width: 14%; animation: startFoamShift 7s ease-in-out infinite reverse; }
.foam-c { left: 54%; bottom: 28%; width: 18%; animation: startFoamShift 5.8s ease-in-out infinite; }
.foam-d { right: 14%; bottom: 31%; width: 12%; animation: startFoamShift 6.4s ease-in-out infinite reverse; }

.start-art-fish {
  bottom: 7%;
  width: 2.4%;
  height: 1.4%;
  border-radius: 999px;
  background: linear-gradient(90deg, #88f4ff, #38c1f1);
  opacity: 0.75;
}

.start-art-fish::before {
  content: "";
  position: absolute;
  right: -22%;
  top: 10%;
  width: 34%;
  height: 78%;
  background: inherit;
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

.start-art-fish::after {
  content: "";
  position: absolute;
  left: 14%;
  top: 34%;
  width: 8%;
  height: 16%;
  border-radius: 50%;
  background: #07507d;
}

.fish-a { left: 7%; animation: startFishSwim 14s linear infinite; }
.fish-b { left: 21%; bottom: 11%; transform: scale(0.78) scaleX(-1); animation: startFishSwimReverse 12s linear infinite; }
.fish-c { left: 44%; bottom: 10%; transform: scale(0.72); animation: startFishSwim 10s linear infinite; }
.fish-d { left: 68%; bottom: 12%; transform: scale(0.84) scaleX(-1); animation: startFishSwimReverse 15s linear infinite; }
.fish-e { left: 84%; bottom: 9%; transform: scale(0.66); animation: startFishSwim 11s linear infinite; }

.start-art-bubble {
  bottom: 6%;
  width: 1.2%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.42);
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.36), rgba(255,255,255,0.02));
}

.bubble-a { left: 12%; animation: startBubbleRise 8s linear infinite; }
.bubble-b { left: 58%; animation: startBubbleRise 7s linear infinite 2s; transform: scale(0.7); }
.bubble-c { right: 16%; animation: startBubbleRise 9s linear infinite 1s; transform: scale(0.82); }

.start-art-asset {
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 16px 28px rgba(0, 74, 121, 0.16));
}

.start-art-island-shadow,
.start-art-island-foam {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.start-art-island-shadow {
  background: radial-gradient(ellipse at center, rgba(0, 72, 131, 0.28), rgba(0, 72, 131, 0) 72%);
  filter: blur(10px);
}

.start-art-island-foam {
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.72), rgba(255,255,255,0) 72%);
  filter: blur(2px);
  opacity: 0.95;
}

.shadow-treasure {
  left: 40.4%;
  bottom: 22.2%;
  width: 14%;
  height: 4.2%;
  z-index: 1;
}

.foam-treasure-ring {
  left: 39.2%;
  bottom: 23.6%;
  width: 16.2%;
  height: 5%;
  z-index: 2;
}

.shadow-waterfall {
  right: 24.1%;
  bottom: 28.2%;
  width: 18%;
  height: 5.4%;
  z-index: 1;
}

.foam-waterfall-ring {
  right: 22.7%;
  bottom: 29.8%;
  width: 20.8%;
  height: 6.2%;
  z-index: 2;
}

.shadow-turtle {
  left: 25.6%;
  bottom: 14.4%;
  width: 6.2%;
  height: 2.6%;
  z-index: 3;
  animation: startTurtleShadowDrift 18s ease-in-out infinite;
}

.start-art-waterfall {
  right: 24.2%;
  bottom: 31.5%;
  width: 20.5%;
  animation: startIslandFloat 7.5s ease-in-out infinite;
  z-index: 1;
  filter:
    drop-shadow(0 20px 26px rgba(0, 55, 109, 0.2))
    drop-shadow(0 0 18px rgba(255,255,255,0.08));
}

.start-art-treasure {
  left: 39%;
  bottom: 25.5%;
  width: 15.5%;
  animation: startIslandFloat 6s ease-in-out infinite reverse;
  z-index: 2;
  filter:
    drop-shadow(0 18px 24px rgba(0, 55, 109, 0.18))
    drop-shadow(0 0 16px rgba(255,244,198,0.1));
}

.start-art-turtle {
  left: 24.8%;
  bottom: 16.4%;
  width: 8.2%;
  transform-origin: center center;
  animation: startTurtleSwim 18s ease-in-out infinite;
  z-index: 4;
  filter:
    drop-shadow(0 10px 18px rgba(0, 56, 106, 0.22));
}

.start-art-overlay {
  position: absolute;
  inset: 0;
  color: #ffffff;
}

.start-art-chip {
  position: absolute;
  top: 4%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  font-size: clamp(14px, 1vw, 20px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 14px 28px rgba(0,0,0,0.16);
}

.start-art-chip.chip-map {
  left: 42.4%;
  top: 6.3%;
  min-width: 190px;
  justify-content: center;
  color: #f8fdff;
  background: linear-gradient(180deg, rgba(18, 171, 218, 0.96), rgba(14, 138, 190, 0.96));
}

.start-art-hero {
  position: absolute;
  left: 3.8%;
  top: 13%;
  width: 32%;
  padding: 26px 26px 24px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(188, 231, 255, 0.42), rgba(112, 196, 243, 0.2));
  border: 1px solid rgba(255,255,255,0.32);
  backdrop-filter: blur(8px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    0 20px 38px rgba(0, 68, 124, 0.16);
}

.start-art-hero h1 {
  margin: 0;
  display: grid;
  gap: 0.1em;
  font-size: clamp(34px, 3.65vw, 72px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-weight: 900;
  color: #ffffff;
  text-shadow:
    0 0.06em 0 rgba(18, 62, 111, 0.24),
    0 0.16em 0.3em rgba(0,0,0,0.18);
}

.start-art-hero h1 .accent {
  color: #ffcf48;
  text-shadow:
    0 0.06em 0 rgba(167, 109, 16, 0.34),
    0 0.16em 0.3em rgba(0,0,0,0.16);
}

.start-art-hero p {
  margin: 1rem 0 0;
  max-width: 94%;
  font-size: clamp(14px, 1vw, 18px);
  line-height: 1.1;
  font-weight: 700;
  color: #edf8ff;
  text-shadow: 0 10px 18px rgba(0,0,0,0.14);
  white-space: nowrap;
}

.start-art-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.start-art-pill {
  padding: 0.82em 1.12em;
  border-radius: 999px;
  font-weight: 900;
  font-size: clamp(12px, 0.82vw, 16px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 10px 20px rgba(0,0,0,0.14);
}

.start-art-pill.green { background: linear-gradient(180deg, #43ba80, #2d9767); }
.start-art-pill.blue { background: linear-gradient(180deg, #318ef5, #236fda); }
.start-art-pill.purple { background: linear-gradient(180deg, #8c6ae8, #6e52c8); }

.start-art-note {
  margin-top: 1.35rem;
  display: inline-flex;
  align-items: center;
  padding: 0.92em 1.18em;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(14, 58, 117, 0.96), rgba(9, 41, 90, 0.98));
  color: #f7fbff;
  font-weight: 800;
  font-size: clamp(12px, 0.82vw, 16px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 12px 22px rgba(0,0,0,0.14);
}

.start-art-side-label {
  margin-bottom: 0.5rem;
  font-size: clamp(11px, 0.82vw, 16px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 900;
  color: #2d6da7;
}

.start-art-side-label.small {
  margin-bottom: 0.3rem;
}

.start-art-login-panel {
  position: absolute;
  right: 3%;
  top: 5.8%;
  width: 25.5%;
  color: #183157;
  padding: 22px 24px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.66), transparent 18%),
    linear-gradient(180deg, rgba(255,255,255,0.86), rgba(239,246,255,0.94));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    0 18px 42px rgba(41, 92, 145, 0.12);
}

.start-art-login-panel.chooser {
  display: grid;
  gap: 10px;
  padding: 20px 20px 18px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.72), transparent 22%),
    radial-gradient(circle at 8% 0%, rgba(255, 221, 120, 0.22), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(239,246,255,0.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.66),
    0 24px 48px rgba(41, 92, 145, 0.14);
}

.start-art-login-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.start-art-back-link {
  border: none;
  background: transparent;
  color: #2f78c9;
  font-weight: 900;
  font-size: clamp(11px, 0.78vw, 14px);
  cursor: pointer;
  padding: 0;
}

.start-art-back-link:hover {
  text-decoration: underline;
}

.start-art-login-panel h2 {
  margin: 0;
  font-size: clamp(30px, 2.28vw, 44px);
  line-height: 0.96;
  color: #183057;
}

.start-art-login-panel p {
  margin: 0.5rem 0 0;
  color: #577393;
  font-size: clamp(13px, 0.9vw, 17px);
  line-height: 1.35;
}

.start-art-login-row {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.65rem;
}

.start-art-login-link {
  border: none;
  border-radius: 999px;
  padding: 0.82em 1.15em;
  font-weight: 900;
  font-size: clamp(12px, 0.88vw, 16px);
  color: #2c6aa1;
  background: linear-gradient(180deg, #f2f8ff, #dfebf8);
  box-shadow: 0 8px 16px rgba(0,0,0,0.06);
  cursor: pointer;
}

.start-art-login-link.secondary {
  color: #476988;
  background: linear-gradient(180deg, #ffffff, #eff5fb);
}

.start-art-form {
  display: grid;
  gap: 0.38rem;
  margin-top: 0.65rem;
}

.start-art-form .start-field-label {
  color: #35597c;
  font-size: clamp(11px, 0.8vw, 15px);
}

.start-art-form .start-input {
  height: clamp(36px, 3.5vw, 42px);
  border-radius: 16px;
  border-color: rgba(23, 55, 97, 0.12);
  background: linear-gradient(180deg, #ffffff, #edf5ff);
  color: #173057;
  font-size: clamp(12px, 0.88vw, 16px);
}

.start-art-form .start-input::placeholder {
  color: #7e95af;
}

.start-art-form .start-input:focus {
  border-color: rgba(42, 140, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.24),
    0 0 0 4px rgba(42, 140, 255, 0.08);
}

.start-art-submit {
  margin-top: 0.3rem;
  height: clamp(38px, 3.7vw, 44px);
  border-radius: 18px;
  font-size: clamp(14px, 0.92vw, 17px);
}

.start-art-role-note {
  color: #507094;
  max-width: none;
  font-size: clamp(10px, 0.72vw, 13px);
  margin-top: 0;
  line-height: 1.18;
}

.start-art-form-error {
  min-height: 1.2em;
  color: #b24b4b;
  font-size: clamp(10px, 0.72vw, 13px);
  font-weight: 800;
}

.start-art-access-panel {
  position: absolute;
  right: 3%;
  bottom: 2.2%;
  width: 25.5%;
  padding: 12px 12px 10px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(241,247,255,0.92));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.54),
    0 18px 34px rgba(41, 92, 145, 0.1);
}

.start-art-access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.start-art-access-grid.chooser-grid {
  margin-top: 4px;
  gap: 10px;
}

.start-art-role-card {
  min-height: 92px;
  border: 1px solid rgba(28, 58, 102, 0.12);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.84), rgba(246,250,255,0.98));
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  padding: 8px 7px 7px;
  text-align: center;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 3px;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.chooser-grid .start-art-role-card {
  min-height: 104px;
  padding: 10px 10px 10px;
  gap: 5px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top center, rgba(255,255,255,0.88), rgba(255,255,255,0.78) 42%, rgba(241,247,255,0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.92),
    0 18px 34px rgba(30, 89, 145, 0.12),
    0 0 0 1px rgba(255,255,255,0.42);
}

.start-art-role-icon {
  width: 30px;
  height: 30px;
  border-radius: 14px;
  position: relative;
  display: block;
  background: linear-gradient(180deg, #dff4ff, #b9e3ff);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    0 6px 12px rgba(20, 85, 140, 0.14);
}

.chooser-grid .start-art-role-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,0.92), rgba(255,255,255,0.28) 38%, rgba(170,225,255,0.9) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 12px 22px rgba(23, 102, 164, 0.16);
}

.start-art-role-icon.student::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 9px;
  width: 20px;
  height: 20px;
  border: 3px solid #2f78c9;
  border-radius: 50%;
  box-sizing: border-box;
}

.start-art-role-icon.student::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 10px;
  height: 4px;
  border-radius: 999px;
  background: #2f78c9;
  transform: rotate(42deg);
}

.chooser-grid .start-art-role-icon.student::before {
  left: 10px;
  top: 10px;
  width: 20px;
  height: 20px;
  border-width: 3px;
}

.chooser-grid .start-art-role-icon.student::after {
  right: 9px;
  bottom: 10px;
  width: 10px;
  height: 4px;
}

.start-art-role-icon.parent::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35a264;
  box-shadow: 11px 0 0 #35a264, 5.5px 10px 0 2px #7ccf93;
}

.start-art-role-icon.parent::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 26px;
  height: 12px;
  border-radius: 10px 10px 8px 8px;
  background: linear-gradient(180deg, #89dda5, #4fb575);
}

.chooser-grid .start-art-role-icon.parent::before {
  left: 10px;
  top: 11px;
  width: 8px;
  height: 8px;
  box-shadow: 10px 0 0 #35a264, 5px 10px 0 3px #7ccf93;
}

.chooser-grid .start-art-role-icon.parent::after {
  left: 9px;
  bottom: 9px;
  width: 24px;
  height: 11px;
}

.start-art-role-icon.teacher::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 24px;
  height: 18px;
  border-radius: 8px;
  background: linear-gradient(180deg, #7ac2ff, #2d84d9);
}

.start-art-role-icon.teacher::after {
  content: "";
  position: absolute;
  left: 15px;
  bottom: 7px;
  width: 12px;
  height: 14px;
  border-radius: 3px;
  background: #ffffff;
  box-shadow:
    inset 0 -2px 0 rgba(30, 88, 143, 0.12),
    0 -8px 0 -4px #ffd766;
}

.chooser-grid .start-art-role-icon.teacher::before {
  left: 9px;
  top: 10px;
  width: 24px;
  height: 18px;
  border-radius: 8px;
}

.chooser-grid .start-art-role-icon.teacher::after {
  left: 15px;
  bottom: 8px;
  width: 12px;
  height: 14px;
  box-shadow:
    inset 0 -2px 0 rgba(30, 88, 143, 0.12),
    0 -8px 0 -4px #ffd766;
}

.start-art-role-icon.institution::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 26px;
  height: 10px;
  background: #ee9358;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.start-art-role-icon.institution::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 18px;
  width: 20px;
  height: 12px;
  border-radius: 4px;
  background: #f2e5d4;
  box-shadow:
    inset 0 -2px 0 rgba(110, 84, 52, 0.14),
    -5px 0 0 -1px #f2e5d4,
    5px 0 0 -1px #f2e5d4;
}

.chooser-grid .start-art-role-icon.institution::before {
  left: 8px;
  top: 10px;
  width: 26px;
  height: 10px;
}

.chooser-grid .start-art-role-icon.institution::after {
  left: 11px;
  top: 18px;
  width: 20px;
  height: 12px;
  box-shadow:
    inset 0 -2px 0 rgba(110, 84, 52, 0.14),
    -5px 0 0 -1px #f2e5d4,
    5px 0 0 -1px #f2e5d4;
}

.start-art-role-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(0,0,0,0.1);
}

.chooser-grid .start-art-role-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.94),
    0 26px 42px rgba(26, 98, 156, 0.16),
    0 0 0 1px rgba(255,255,255,0.5);
}

.start-art-role-card.active {
  border-color: rgba(71, 165, 255, 0.34);
  box-shadow:
    0 16px 28px rgba(0,0,0,0.1),
    0 0 0 4px rgba(71, 165, 255, 0.08);
}

.chooser-grid .start-art-role-card.active {
  border-color: rgba(65, 170, 255, 0.44);
  background:
    radial-gradient(circle at top center, rgba(255,255,255,0.96), rgba(242,248,255,0.92) 46%, rgba(226,242,255,0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.98),
    0 26px 44px rgba(26, 98, 156, 0.18),
    0 0 0 5px rgba(76, 172, 255, 0.12);
}

.start-art-role-card strong {
  color: #17325c;
  font-size: clamp(9px, 0.62vw, 12px);
}

.chooser-grid .start-art-role-card strong {
  font-size: clamp(12px, 0.82vw, 16px);
  line-height: 1;
}

.start-art-role-card span {
  color: #56718e;
  font-size: clamp(6px, 0.4vw, 8px);
  line-height: 1.02;
}

.chooser-grid .start-art-role-card span {
  font-size: clamp(8px, 0.54vw, 10px);
  line-height: 1.1;
  max-width: 16ch;
}

.start-art-role-demo {
  margin: 0;
  font-style: normal;
  color: #2d6ea7;
  font-size: clamp(6px, 0.38vw, 7px);
  font-weight: 800;
  line-height: 1.15;
}

.chooser-grid .start-art-role-demo {
  margin-top: auto;
  font-size: clamp(7px, 0.46vw, 9px);
  line-height: 1.1;
  color: #245f96;
}

.start-art-role-arrow {
  margin-top: auto;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #2f8df4, #1d6eda);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
}

.chooser-grid .start-art-role-arrow {
  width: 22px;
  height: 22px;
  font-size: 11px;
  box-shadow:
    0 10px 18px rgba(26, 98, 156, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

@keyframes startCloudDrift {
  0%,
  100% { transform: translateX(0); }
  50% { transform: translateX(22px); }
}

@keyframes startBirdFloat {
  0%,
  100% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(14px) translateY(-6px); }
}

@keyframes startWaterBob {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes startFoamShift {
  0%,
  100% { transform: translateX(0); opacity: 0.36; }
  50% { transform: translateX(18px); opacity: 0.58; }
}

@keyframes startFishSwim {
  0% { transform: translateX(0); }
  50% { transform: translateX(80px) translateY(-8px); }
  100% { transform: translateX(0); }
}

@keyframes startFishSwimReverse {
  0% { transform: scaleX(-1) translateX(0); }
  50% { transform: scaleX(-1) translateX(70px) translateY(8px); }
  100% { transform: scaleX(-1) translateX(0); }
}

@keyframes startBubbleRise {
  0% { transform: translateY(0) scale(0.78); opacity: 0; }
  18% { opacity: 0.72; }
  100% { transform: translateY(-210px) scale(1.16); opacity: 0; }
}

@keyframes startIslandFloat {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes startTurtleSwim {
  0% {
    transform: translate3d(0, 0, 0) scaleX(-1) rotate(-6deg);
  }

  18% {
    transform: translate3d(120px, -26px, 0) scaleX(-1) rotate(-2deg);
  }

  34% {
    transform: translate3d(230px, -6px, 0) scaleX(-1) rotate(4deg);
  }

  38% {
    transform: translate3d(244px, -2px, 0) scaleX(-1) rotate(3deg);
  }

  42% {
    transform: translate3d(248px, 6px, 0) scaleX(-0.35) rotate(1deg);
  }

  46% {
    transform: translate3d(242px, 12px, 0) scaleX(1) rotate(2deg);
  }

  58% {
    transform: translate3d(110px, 42px, 0) scaleX(1) rotate(-1deg);
  }

  74% {
    transform: translate3d(-30px, 16px, 0) scaleX(1) rotate(-4deg);
  }

  78% {
    transform: translate3d(-46px, 8px, 0) scaleX(1) rotate(-3deg);
  }

  82% {
    transform: translate3d(-52px, 0, 0) scaleX(0.35) rotate(-2deg);
  }

  86% {
    transform: translate3d(-44px, -6px, 0) scaleX(-1) rotate(-3deg);
  }

  100% {
    transform: translate3d(0, 0, 0) scaleX(-1) rotate(-6deg);
  }
}

@keyframes startTurtleShadowDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.28;
  }

  18% {
    transform: translate3d(120px, -10px, 0) scale(1.06);
    opacity: 0.24;
  }

  34% {
    transform: translate3d(230px, -2px, 0) scale(1.1);
    opacity: 0.2;
  }

  42% {
    transform: translate3d(250px, 5px, 0) scale(1.08);
    opacity: 0.18;
  }

  58% {
    transform: translate3d(110px, 20px, 0) scale(1.02);
    opacity: 0.24;
  }

  74% {
    transform: translate3d(-30px, 8px, 0) scale(0.98);
    opacity: 0.26;
  }

  84% {
    transform: translate3d(-54px, -4px, 0) scale(0.96);
    opacity: 0.24;
  }

  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.28;
  }
}

@media (max-width: 1280px) {
  .start-art-screen {
    padding: 0;
  }

  .start-art-board {
    border-radius: 0;
    aspect-ratio: auto;
    min-height: 100vh;
  }
}

@media (max-width: 980px) {
  .start-art-board {
    min-height: auto;
    aspect-ratio: auto;
    box-shadow: none;
  }

  .start-art-overlay {
    position: static;
    display: grid;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(180deg, #8fe5ff 0%, #36afe7 40%, #0f6ab9 100%);
  }

  .start-art-scene {
    position: relative;
    min-height: 340px;
  }

  .start-art-hero,
  .start-art-login-panel,
  .start-art-access-panel {
    position: static;
  }

  .start-art-chip {
    position: absolute;
    left: 50%;
    top: 16px;
    transform: translateX(-50%);
  }

  .start-art-hero {
    width: auto;
    margin-top: 124px;
    padding: 18px;
  }

  .start-art-waterfall {
    right: 18%;
    bottom: 31%;
    width: 23%;
  }

  .start-art-treasure {
    left: 36.5%;
    bottom: 25%;
    width: 18%;
  }

  .start-art-turtle {
    left: 21%;
    bottom: 16%;
    width: 10%;
  }

  .shadow-treasure {
    left: 38.6%;
    bottom: 21.6%;
    width: 16%;
    height: 4.8%;
  }

  .foam-treasure-ring {
    left: 37.6%;
    bottom: 23%;
    width: 18%;
    height: 5.6%;
  }

  .shadow-waterfall {
    right: 18.2%;
    bottom: 27.8%;
    width: 20%;
    height: 5.8%;
  }

  .foam-waterfall-ring {
    right: 16.8%;
    bottom: 29.4%;
    width: 23%;
    height: 6.6%;
  }

  .shadow-turtle {
    left: 22%;
    bottom: 14%;
    width: 7.8%;
    height: 2.8%;
  }

  .start-art-login-panel,
  .start-art-access-panel {
    width: auto;
  }

  .start-art-login-panel,
  .start-art-access-panel {
    padding: 20px;
    border-radius: 22px;
    background: rgba(255,255,255,0.94);
  }

  .start-art-access-grid {
    grid-template-columns: 1fr 1fr;
  }

  .start-art-role-card {
    min-height: 144px;
  }

  .chooser-grid .start-art-role-card {
    min-height: 108px;
    padding: 10px;
  }

  .chooser-grid .start-art-role-icon {
    width: 40px;
    height: 40px;
  }
}

/* =========================
   START ART REFRESH
========================= */
.start-art-screen {
  min-height: 100vh;
  padding: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 246, 201, 0.28), transparent 18%),
    linear-gradient(180deg, #cceeff 0%, #88d4f6 32%, #2a9cdb 72%, #146aa9 100%);
}

.start-art-board {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  background: #7ecff3;
}

.start-art-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.start-art-backdrop,
.start-art-backdrop-tint,
.start-art-light-rays,
.start-art-boat-wrap,
.start-art-boat-shadow,
.start-art-boat-wake,
.start-art-glimmer {
  position: absolute;
}

.start-art-backdrop {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  user-select: none;
  pointer-events: none;
  filter: saturate(1.02) contrast(1.02);
  transform: scale(1.018);
  transform-origin: center center;
  animation: startBackdropParallax 18s ease-in-out infinite;
}

.start-art-backdrop-tint {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 56, 105, 0.18) 0%, rgba(6, 56, 105, 0.08) 30%, rgba(255,255,255,0) 54%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0, 74, 138, 0.08) 52%, rgba(2, 47, 92, 0.16) 100%);
}

.start-art-sky-glow {
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.85;
}

.start-art-sky-glow.glow-left {
  left: -3%;
  top: -6%;
  width: 26%;
  height: 28%;
  background: radial-gradient(circle, rgba(255, 245, 194, 0.72), rgba(255, 245, 194, 0));
}

.start-art-sky-glow.glow-right {
  right: -2%;
  top: 10%;
  width: 20%;
  height: 22%;
  background: radial-gradient(circle, rgba(255,255,255,0.24), rgba(255,255,255,0));
}

.start-art-light-rays {
  right: 9%;
  top: -2%;
  width: 28%;
  height: 44%;
  background: linear-gradient(180deg, rgba(255, 248, 214, 0.22), rgba(255, 248, 214, 0));
  clip-path: polygon(68% 0, 78% 0, 100% 100%, 30% 100%);
  opacity: 0.72;
  filter: blur(10px);
  transform-origin: top center;
  animation: startLightRayDrift 8s ease-in-out infinite;
}

.start-art-bird {
  width: 1.8%;
  height: 0.9%;
  border-top: 2px solid rgba(255,255,255,0.92);
  border-radius: 50%;
  opacity: 0.8;
  filter: drop-shadow(0 4px 8px rgba(20, 97, 143, 0.14));
}

.start-art-bird::after {
  content: "";
  position: absolute;
  left: 48%;
  top: -2px;
  width: 100%;
  height: 100%;
  border-top: inherit;
  border-radius: inherit;
}

.bird-a { left: 35%; top: 20%; animation: startBirdCruise 20s linear infinite; }
.bird-b { left: 46%; top: 26%; transform: scale(0.76); animation: startBirdCruise 25s linear infinite -6s; }
.bird-c { left: 59%; top: 18%; transform: scale(1.04); animation: startBirdCruise 23s linear infinite -10s; }
.bird-d { left: 52%; top: 23%; transform: scale(0.62); animation: startBirdCruiseFar 28s linear infinite -9s; }
.bird-e { left: 40%; top: 24%; transform: scale(0.5); animation: startBirdCruiseFar 31s linear infinite -16s; }
.bird-f { left: 65%; top: 21%; transform: scale(0.84); animation: startBirdCruise 27s linear infinite -14s; }
.bird-g { left: 55%; top: 28%; transform: scale(0.7); animation: startBirdCruiseFar 26s linear infinite -4s; }
.bird-h { left: 71%; top: 24%; transform: scale(0.58); animation: startBirdCruiseFar 30s linear infinite -11s; }
.bird-i { left: 61%; top: 30%; transform: scale(0.9); animation: startBirdCruise 24s linear infinite -7s; }
.bird-j { left: 48%; top: 19%; transform: scale(0.48); animation: startBirdCruiseFar 33s linear infinite -20s; }

.start-art-sea {
  position: absolute;
  inset: 56% 0 0;
  overflow: hidden;
  animation: startSeaPan 14s ease-in-out infinite;
}

.start-art-wave {
  left: -10%;
  width: 120%;
  border-radius: 48% 52% 0 0;
  opacity: 0.22;
}

.wave-back {
  bottom: 0;
  height: 28%;
  background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
  animation: startWaveShift 16s ease-in-out infinite;
}

.wave-mid {
  bottom: 8%;
  height: 24%;
  background: linear-gradient(180deg, rgba(145, 233, 255, 0.16), rgba(145, 233, 255, 0));
  animation: startWaveShift 12s ease-in-out infinite reverse;
}

.wave-front {
  bottom: -2%;
  height: 20%;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0));
  animation: startWaveShift 10s ease-in-out infinite;
}

.start-art-foam {
  height: 1%;
  border-radius: 999px;
  background: rgba(255,255,255,0.36);
  filter: blur(0.25px);
  animation: startFoamPulse 6s ease-in-out infinite;
}

.foam-a { left: 43%; top: 24%; width: 8%; }
.foam-b { left: 59%; top: 30%; width: 7%; animation-delay: -1.5s; }
.foam-c { left: 72%; top: 42%; width: 5%; animation-delay: -2.4s; }
.foam-d { left: 83%; top: 23%; width: 6%; animation-delay: -3.1s; }

.start-art-glimmer {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.92), rgba(255,255,255,0));
  box-shadow: 0 0 18px rgba(168, 245, 255, 0.32);
  animation: startSeaTwinkle 3.8s ease-in-out infinite;
}

.glimmer-a { left: 47%; top: 34%; }
.glimmer-b { left: 62%; top: 46%; animation-delay: -1.4s; transform: scale(0.72); }
.glimmer-c { left: 74%; top: 40%; animation-delay: -2.1s; transform: scale(0.84); }
.glimmer-d { left: 88%; top: 30%; animation-delay: -3s; transform: scale(0.66); }

.start-art-boat-wrap {
  left: 43.8%;
  top: 68.8%;
  width: 5.4%;
  min-width: 92px;
  z-index: 2;
  animation: startBoatSail 17s ease-in-out infinite;
}

.start-art-boat {
  position: relative;
  width: 100%;
  display: block;
  filter:
    drop-shadow(0 14px 18px rgba(0, 53, 102, 0.22))
    drop-shadow(0 0 14px rgba(255,255,255,0.08));
  animation: startBoatBob 4.6s ease-in-out infinite;
}

.start-art-boat-shadow {
  left: 50%;
  bottom: -18%;
  width: 88%;
  height: 12%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 70, 120, 0.28), rgba(0, 70, 120, 0));
  filter: blur(8px);
}

.start-art-boat-wake {
  left: 50%;
  bottom: 4%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.36), rgba(255,255,255,0));
  filter: blur(0.4px);
  opacity: 0.82;
}

.wake-a {
  width: 54%;
  transform: translateX(-22%);
  animation: startBoatWake 2.8s ease-in-out infinite;
}

.wake-b {
  width: 42%;
  transform: translateX(-10%);
  bottom: 0;
  animation: startBoatWake 3.4s ease-in-out infinite -1s;
}

.wake-c {
  width: 28%;
  transform: translateX(4%);
  bottom: -4%;
  animation: startBoatWake 3.1s ease-in-out infinite -1.8s;
}

.start-art-overlay {
  position: absolute;
  inset: 0;
  color: #ffffff;
}

.start-art-chip.chip-map {
  left: 43.2%;
  top: 6.5%;
  min-width: 224px;
  min-height: 54px;
  border: 1px solid rgba(255,255,255,0.14);
  background:
    linear-gradient(180deg, rgba(18, 136, 192, 0.96), rgba(10, 113, 172, 0.96));
  box-shadow:
    0 18px 28px rgba(0,0,0,0.16),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

.start-art-hero {
  left: 3.6%;
  top: 15%;
  width: 32.5%;
  padding: 28px 28px 24px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05)),
    linear-gradient(180deg, rgba(27, 130, 190, 0.22), rgba(8, 84, 146, 0.22));
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow:
    0 26px 44px rgba(0,0,0,0.16),
    inset 0 1px 0 rgba(255,255,255,0.14);
  backdrop-filter: blur(14px);
  animation: startPanelEnterLeft 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both, startPanelFloat 9s ease-in-out infinite 1s;
}

.start-art-hero h1 {
  font-size: clamp(40px, 4.2vw, 82px);
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-shadow: 0 12px 24px rgba(0,0,0,0.16);
}

.start-art-hero p {
  margin: 1rem 0 0;
  max-width: 92%;
  font-size: clamp(18px, 1.1vw, 20px);
  line-height: 1.3;
  color: #eff8ff;
  text-shadow: 0 8px 20px rgba(0,0,0,0.14);
}

.start-art-pill-row {
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.start-art-pill {
  padding: 0.78em 1.14em;
  border: 1px solid rgba(255,255,255,0.14);
}

.start-art-note {
  margin-top: 1.5rem;
  padding: 1em 1.22em;
  background: linear-gradient(180deg, rgba(18, 63, 110, 0.92), rgba(11, 42, 84, 0.92));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    0 16px 24px rgba(0,0,0,0.16),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.start-art-login-panel {
  right: 2.6%;
  top: 6%;
  width: 25.4%;
  padding: 24px 24px 22px;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,0.22);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(246, 250, 255, 0.92));
  box-shadow:
    0 28px 48px rgba(0,0,0,0.14),
    inset 0 1px 0 rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  animation: startPanelEnterRight 0.95s cubic-bezier(0.2, 0.7, 0.2, 1) both, startPanelFloat 10s ease-in-out infinite 1.2s;
}

.start-art-login-panel h2 {
  font-size: clamp(34px, 2.4vw, 48px);
  letter-spacing: -0.05em;
}

.start-art-login-panel p {
  margin-top: 0.65rem;
  color: #55728f;
  font-size: clamp(14px, 0.96vw, 18px);
  line-height: 1.45;
}

.start-art-login-row {
  gap: 0.8rem;
  margin-top: 1rem;
}

.start-art-login-link {
  padding: 0.84em 1.22em;
  box-shadow: 0 12px 18px rgba(0,0,0,0.08);
}

.start-art-form {
  gap: 0.56rem;
  margin-top: 0.95rem;
}

.start-art-form .start-field-label {
  margin-bottom: 0.24rem;
  color: #3a6188;
}

.start-art-form .start-input {
  height: clamp(48px, 3.8vw, 56px);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

.start-art-submit {
  margin-top: 0.6rem;
  height: clamp(50px, 4vw, 58px);
  border-radius: 20px;
  font-size: clamp(18px, 1vw, 20px);
  box-shadow:
    0 18px 28px rgba(47, 201, 160, 0.24),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

.start-art-role-note {
  margin-top: 0.3rem;
  color: #547396;
  font-size: clamp(12px, 0.82vw, 14px);
  line-height: 1.35;
}

.start-art-form-error {
  margin-top: 0.18rem;
  min-height: 1.4em;
}

.start-art-register-panel {
  width: min(32%, 460px);
  top: 4%;
  max-height: 90%;
  overflow: auto;
}

/* Full screen layout for institutions */
.institution-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: block;
  overflow-y: auto;
  background:
    radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.25), transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.12), transparent 45%),
    linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #dbeafe 100%);
  padding: 0;
}

.institution-modal-backdrop {
  display: none;
}

.institution-modal-panel {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: visible;
  color: #0f172a;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: clamp(24px, 4vw, 56px) clamp(20px, 3vw, 40px);
}

.institution-modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 24px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.institution-modal-top h2 {
  max-width: 820px;
  margin: 8px 0 0;
  color: #0c1a30;
  font-size: clamp(32px, 3.8vw, 54px);
  line-height: 1.05;
  font-weight: 700;
  text-shadow: none;
}

.institution-modal-close {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 50%;
  cursor: pointer;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  font-size: 28px;
  line-height: 1;
  transition: all 0.2s ease;
}

.institution-modal-close:hover {
  background: rgba(15, 23, 42, 0.05);
  transform: scale(1.05);
}

.institution-modal-body {
  overflow: visible;
  padding: 32px 0 0 0;
}

.institution-modal-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding-bottom: 32px;
}

.institution-modal-intro p {
  max-width: 820px;
  color: #334155;
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.5;
}

.institution-modal-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.institution-modal-proof span {
  padding: 8px 16px;
  border-radius: 999px;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.15);
  font-size: 13px;
  font-weight: 700;
}

.institution-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0 40px;
}

.institution-value-item {
  padding: 24px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.institution-value-item:hover {
  transform: translateY(-2px);
  border-color: rgba(2, 132, 199, 0.25);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.institution-value-item strong {
  display: block;
  font-size: 18px;
  color: #0f172a;
  font-weight: 700;
  margin-bottom: 8px;
}

.institution-value-item span {
  display: block;
  color: #475569;
  font-size: 14px;
  line-height: 1.45;
}

.institution-modal-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.35fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 40px;
}

.institution-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.institution-flow strong {
  font-size: 16px;
  color: #0f172a;
  font-weight: 700;
  margin-bottom: 4px;
}

.institution-flow span {
  display: block;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.04);
  border-radius: 10px;
}

.institution-plan-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.institution-plan-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  text-align: left;
  cursor: pointer;
  color: #334155;
  font-family: inherit;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.institution-plan-card:hover {
  transform: translateY(-4px);
  border-color: rgba(2, 132, 199, 0.3);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.institution-plan-card.featured {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.06) 0%, rgba(255, 255, 255, 0.65) 100%);
  border: 2px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.08);
}

.institution-plan-card.featured:hover {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.1) 0%, rgba(255, 255, 255, 0.8) 100%);
  border-color: rgba(16, 185, 129, 0.75);
  box-shadow: 0 16px 36px rgba(16, 185, 129, 0.12);
}

.institution-plan-card h3 {
  margin: 12px 0 8px;
  font-size: 22px;
  color: #0f172a;
  font-weight: 700;
}

.institution-plan-card p {
  color: #475569;
  font-size: 13.5px;
  line-height: 1.45;
  margin-bottom: 16px;
  flex: 1;
}

.institution-plan-card strong {
  font-size: 14px;
  color: #0284c7;
  font-weight: 700;
  display: block;
  margin-top: auto;
  margin-bottom: 8px;
}

.institution-plan-card.featured strong {
  color: #10b981;
}

.institution-plan-card em {
  display: inline-block;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 12px;
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transition: all 0.2s;
  color: #0f172a;
}

.institution-plan-card.featured em {
  background: #10b981;
  color: #ffffff;
}

.institution-plan-card:hover em {
  background: rgba(15, 23, 42, 0.12);
}

.institution-plan-card.featured:hover em {
  background: #059669;
}

.institution-landing-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 24px 0 0 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.institution-landing-actions .start-art-submit {
  font-size: 15px;
  margin-top: 0;
}

.institution-landing-actions .btn-secondary {
  color: #173057;
  background: linear-gradient(180deg, #f8fcff, #d9ebff);
  border: 1px solid rgba(47, 102, 154, 0.16);
  box-shadow:
    0 12px 24px rgba(34, 78, 125, 0.14),
    inset 0 1px 0 rgba(255,255,255,0.72);
}

.start-art-login-panel .btn-secondary.start-art-submit {
  color: #173057;
  background: linear-gradient(180deg, #f8fcff, #d9ebff);
  border: 1px solid rgba(47, 102, 154, 0.18);
  box-shadow:
    0 14px 24px rgba(34, 78, 125, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.74);
}

.start-art-login-panel.chooser {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.82), transparent 22%),
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(245,249,255,0.94));
}

.chooser-grid .start-art-role-card {
  min-height: 112px;
  padding: 12px 12px 10px;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  animation: startRoleCardEnter 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.chooser-grid .start-art-role-card:hover {
  transform: translateY(-6px) scale(1.018);
}

.chooser-grid .start-art-role-card::before {
  content: "";
  position: absolute;
  inset: -20% auto -20% -40%;
  width: 42%;
  background: linear-gradient(115deg, rgba(255,255,255,0), rgba(255,255,255,0.56), rgba(255,255,255,0));
  transform: rotate(12deg) translateX(-180%);
  opacity: 0;
  pointer-events: none;
}

.chooser-grid .start-art-role-card:hover::before {
  opacity: 1;
  animation: startRoleCardSheen 0.95s ease forwards;
}

.chooser-grid .start-art-role-card:nth-child(1) { animation-delay: 0.08s; }
.chooser-grid .start-art-role-card:nth-child(2) { animation-delay: 0.16s; }
.chooser-grid .start-art-role-card:nth-child(3) { animation-delay: 0.24s; }
.chooser-grid .start-art-role-card:nth-child(4) { animation-delay: 0.32s; }

.start-art-role-card.active {
  border-color: rgba(78, 182, 255, 0.44);
  box-shadow:
    0 18px 28px rgba(0,0,0,0.1),
    0 0 0 4px rgba(78, 182, 255, 0.1);
}

@keyframes startLightRayDrift {
  0%,
  100% {
    opacity: 0.5;
    transform: rotate(-3deg) scaleY(0.96);
  }

  50% {
    opacity: 0.86;
    transform: rotate(2deg) scaleY(1.04);
  }
}

@keyframes startBackdropParallax {
  0%,
  100% {
    transform: scale(1.018) translate3d(0, 0, 0);
  }

  50% {
    transform: scale(1.03) translate3d(-0.7%, -0.45%, 0);
  }
}

@keyframes startSeaPan {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(0.35%);
  }
}

@keyframes startBirdCruise {
  0% {
    transform: translateX(0) translateY(0) scale(1);
  }

  25% {
    transform: translateX(34px) translateY(-8px) scale(1.04);
  }

  50% {
    transform: translateX(72px) translateY(3px) scale(0.98);
  }

  75% {
    transform: translateX(104px) translateY(-10px) scale(1.02);
  }

  100% {
    transform: translateX(138px) translateY(0) scale(1);
  }
}

@keyframes startBirdCruiseFar {
  0% {
    transform: translateX(0) translateY(0) scale(0.7);
  }

  50% {
    transform: translateX(90px) translateY(-8px) scale(0.76);
  }

  100% {
    transform: translateX(168px) translateY(2px) scale(0.68);
  }
}

@keyframes startWaveShift {
  0%,
  100% {
    transform: translateX(0) scaleX(1);
  }

  50% {
    transform: translateX(-1.8%) scaleX(1.03);
  }
}

@keyframes startFoamPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleX(0.96);
  }

  50% {
    opacity: 0.72;
    transform: scaleX(1.08);
  }
}

@keyframes startSeaTwinkle {
  0%,
  100% {
    opacity: 0.18;
    transform: scale(0.72);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes startBoatSail {
  0%,
  100% {
    transform: translateX(0) translateY(0);
  }

  25% {
    transform: translateX(-12px) translateY(1px);
  }

  50% {
    transform: translateX(-26px) translateY(-3px);
  }

  75% {
    transform: translateX(-8px) translateY(3px);
  }
}

@keyframes startBoatBob {
  0%,
  100% {
    transform: rotate(-1.2deg) translateY(0);
  }

  50% {
    transform: rotate(1.6deg) translateY(-5px);
  }
}

@keyframes startBoatWake {
  0% {
    opacity: 0.12;
    transform: translateX(-18%) scaleX(0.84);
  }

  50% {
    opacity: 0.66;
    transform: translateX(-6%) scaleX(1.06);
  }

  100% {
    opacity: 0.1;
    transform: translateX(6%) scaleX(1.22);
  }
}

@keyframes startPanelEnterLeft {
  0% {
    opacity: 0;
    transform: translate3d(-26px, 18px, 0) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes startPanelEnterRight {
  0% {
    opacity: 0;
    transform: translate3d(26px, 16px, 0) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes startPanelFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes startRoleCardEnter {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes startRoleCardSheen {
  0% {
    transform: rotate(12deg) translateX(-180%);
  }

  100% {
    transform: rotate(12deg) translateX(430%);
  }
}

@media (max-width: 1080px) {
  .start-art-overlay {
    position: static;
    display: grid;
    gap: 18px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(114, 205, 244, 0.94), rgba(25, 120, 191, 0.96));
  }

  .start-art-board {
    min-height: 100vh;
  }

  .start-art-scene {
    position: relative;
    min-height: 420px;
  }

  .start-art-hero,
  .start-art-login-panel {
    position: static;
    width: auto;
  }

  .institution-modal {
    position: fixed;
  }

  .start-art-chip.chip-map {
    left: 50%;
    transform: translateX(-50%);
    top: 18px;
  }

  .start-art-hero {
    margin-top: 110px;
  }
}

@media (max-width: 720px) {
  .start-art-scene {
    min-height: 320px;
  }

  .start-art-overlay {
    padding: 14px;
  }

  .start-art-hero,
  .start-art-login-panel {
    border-radius: 24px;
    padding: 18px;
  }

  .institution-modal {
    padding: 0;
  }

  .institution-modal-panel {
    max-height: none;
    border-radius: 0;
  }

  .start-art-register-panel {
    width: auto;
    max-height: none;
    overflow: visible;
  }

  .institution-modal-top,
  .institution-modal-body,
  .institution-landing-actions {
    padding-left: 18px;
    padding-right: 18px;
  }

  .institution-modal-top h2 {
    font-size: 34px;
  }

  .institution-modal-intro,
  .institution-modal-grid,
  .institution-value-grid,
  .institution-plan-list,
  .institution-landing-actions {
    grid-template-columns: 1fr;
  }

  .institution-modal-proof {
    justify-content: flex-start;
  }

  .start-art-hero h1 {
    font-size: 42px;
  }

  .start-art-chip.chip-map {
    min-width: 178px;
    min-height: 46px;
    font-size: 14px;
  }

  .start-art-boat-wrap {
    left: 45%;
    top: 70%;
    width: 12%;
    min-width: 74px;
  }
}

/* =========================
   START SCREEN POLISH V2
========================= */
.start-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: stretch;
}

.start-copy-zone {
  display: grid;
  gap: 18px;
}

.start-mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.start-mini-stat {
  min-width: 148px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.start-mini-stat strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 6px;
}

.start-mini-stat span {
  color: #d3e4f2;
  font-weight: 700;
  line-height: 1.35;
}

.start-spotlight-card {
  align-self: stretch;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at top right, rgba(242,195,91,0.12), transparent 28%),
    linear-gradient(180deg, rgba(9,24,43,0.8), rgba(7,18,32,0.88));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 18px 34px rgba(0,0,0,0.18);
}

.start-spotlight-card h2,
.start-form-topline h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
}

.start-access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: 18px;
  margin-top: 24px;
}

.start-role-grid {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.role-card {
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

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

.role-card-copy span {
  color: #d5e7f4;
  line-height: 1.5;
}

.role-card-icon {
  position: relative;
  width: 74px;
  height: 74px;
  display: block;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 12px 24px rgba(0,0,0,0.18);
}

.icon-core,
.icon-detail {
  position: absolute;
  display: block;
}

.role-card-icon-student .icon-core {
  left: 18px;
  top: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff1b4, #f0c65d 62%, #b97a19);
}

.role-card-icon-student .icon-detail-a {
  left: 31px;
  top: 6px;
  width: 12px;
  height: 18px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #dce9f3);
}

.role-card-icon-student .icon-detail-b {
  left: 28px;
  top: 26px;
  width: 18px;
  height: 18px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 69, 113, 0.18);
}

.role-card-icon-student .icon-detail-c {
  left: 45px;
  top: 42px;
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: #ffffff;
  transform: rotate(38deg);
}

.role-card-icon-parent .icon-core {
  left: 20px;
  top: 26px;
  width: 34px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffd77f, #d99025);
}

.role-card-icon-parent .icon-detail-a {
  left: 16px;
  top: 18px;
  width: 42px;
  height: 22px;
  background: #e06c43;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.role-card-icon-parent .icon-detail-b {
  left: 30px;
  top: 36px;
  width: 9px;
  height: 14px;
  border-radius: 4px;
  background: #8e4f1f;
}

.role-card-icon-parent .icon-detail-c {
  left: 8px;
  top: 34px;
  width: 14px;
  height: 28px;
  border-radius: 12px 12px 3px 3px;
  background: linear-gradient(180deg, #8df384, #37a749);
  box-shadow: 46px 0 0 0 #8df384;
}

.role-card-icon-institution .icon-core {
  left: 16px;
  top: 28px;
  width: 42px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f2e4d0, #c5b29b);
}

.role-card-icon-institution .icon-detail-a {
  left: 12px;
  top: 18px;
  width: 50px;
  height: 16px;
  background: #da6e48;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.role-card-icon-institution .icon-detail-b {
  left: 18px;
  top: 22px;
  width: 8px;
  height: 18px;
  border-radius: 4px 4px 0 0;
  background: #d9cdc0;
  box-shadow: 28px 0 0 0 #d9cdc0;
}

.role-card-icon-institution .icon-detail-c {
  left: 31px;
  top: 38px;
  width: 10px;
  height: 14px;
  border-radius: 3px;
  background: #7a4e26;
}

.start-form-card {
  margin-top: 0;
  background:
    radial-gradient(circle at top right, rgba(89,212,255,0.09), transparent 22%),
    linear-gradient(180deg, rgba(9,24,43,0.78), rgba(7,18,32,0.86));
}

.start-form-topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.start-login-chip {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
  color: #0d3129;
  background: linear-gradient(180deg, #ffe39a, #f2c35b);
  box-shadow:
    0 14px 24px rgba(242,195,91,0.2),
    inset 0 1px 0 rgba(255,255,255,0.24);
}

.start-cta-btn {
  min-width: 220px;
  justify-self: start;
}

.start-helper-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.start-helper-pill {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  color: #d9e9f5;
  font-size: 13px;
  font-weight: 800;
}

.start-foam,
.start-star,
.start-gull {
  position: absolute;
}

.start-foam {
  bottom: 20%;
  width: 80px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  filter: blur(0.4px);
  animation: foamDrift 7s ease-in-out infinite;
}

.foam-a { left: 18%; }
.foam-b { left: 52%; width: 62px; bottom: 17%; animation-delay: -2s; }
.foam-c { left: 78%; width: 56px; bottom: 19%; animation-delay: -4s; }

.start-star {
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, rgba(255,240,175,0.95), rgba(255,240,175,0));
  box-shadow: 0 0 14px rgba(255,240,175,0.32);
  animation: starBlink 3.4s ease-in-out infinite;
}

.star-a { left: 58%; top: 29%; }
.star-b { left: 72%; top: 24%; animation-delay: -1s; }
.star-c { left: 27%; top: 34%; animation-delay: -2.1s; }

.start-gull {
  width: 24px;
  height: 12px;
  border-top: 3px solid rgba(255,255,255,0.86);
  border-radius: 50%;
  opacity: 0.75;
}

.start-gull::after {
  content: "";
  position: absolute;
  left: 12px;
  top: -3px;
  width: 24px;
  height: 12px;
  border-top: 3px solid rgba(255,255,255,0.86);
  border-radius: 50%;
}

.gull-a { top: 18%; left: 28%; animation: gullFloat 8s ease-in-out infinite; }
.gull-b { top: 21%; left: 34%; transform: scale(0.7); animation: gullFloat 7s ease-in-out infinite reverse; }

@keyframes foamDrift {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.22;
  }

  50% {
    transform: translateX(18px);
    opacity: 0.34;
  }
}

@keyframes starBlink {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes gullFloat {
  0%,
  100% {
    transform: translateX(0) translateY(0);
  }

  50% {
    transform: translateX(16px) translateY(-6px);
  }
}

@media (max-width: 1080px) {
  .start-hero-grid,
  .start-access-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .start-hero-grid,
  .start-access-grid {
    grid-template-columns: 1fr;
  }

  .role-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .role-card-icon {
    width: 64px;
    height: 64px;
  }
}

/* =========================
   START SCREEN V3
========================= */
.start-screen-v3 .start-overlay,
.start-screen-v3 .start-panel,
.start-screen-v3 .start-hero-grid,
.start-screen-v3 .start-access-grid,
.start-screen-v3 .start-form-card,
.start-screen-v3 .start-helper-row,
.start-screen-v3 .start-spotlight-card,
.start-screen-v3 .start-mini-stats {
  display: none;
}

.start-v3-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: center;
  padding: 40px 48px;
}

.start-v3-hero {
  max-width: 560px;
  align-self: start;
  margin-top: 22px;
}

.start-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(18, 56, 90, 0.84), rgba(10, 32, 54, 0.84));
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff1b9;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 14px 24px rgba(0,0,0,0.18);
}

.start-v3-hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(44px, 5vw, 78px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-wrap: balance;
  text-shadow:
    0 3px 0 rgba(8, 46, 78, 0.26),
    0 18px 36px rgba(0,0,0,0.18);
}

.start-v3-hero p {
  margin: 0;
  max-width: 28ch;
  font-size: 24px;
  line-height: 1.18;
  color: #e3f1fb;
}

.start-hero-note {
  margin-top: 16px;
  color: #f4fbff;
  font-weight: 800;
  font-size: 18px;
  text-shadow: 0 8px 18px rgba(0,0,0,0.14);
}

.start-v3-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.start-v3-stats span {
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(20, 58, 95, 0.88), rgba(11, 33, 56, 0.84));
  border: 1px solid rgba(255,255,255,0.16);
  color: #f1f8ff;
  font-weight: 800;
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 14px 20px rgba(0,0,0,0.16);
}

.start-v3-card {
  width: 100%;
  padding: 24px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.14);
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.07), transparent 24%),
    radial-gradient(circle at 10% 0%, rgba(255, 219, 121, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(18, 41, 66, 0.94), rgba(9, 22, 39, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 26px 70px rgba(0,0,0,0.34),
    0 0 0 6px rgba(9, 31, 53, 0.12);
  backdrop-filter: blur(16px);
}

.start-v3-card-top {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.start-v3-card-top h2 {
  margin: 6px 0 8px;
  font-size: 34px;
  line-height: 0.98;
  color: #f8fbff;
}

.start-v3-card-top p {
  margin: 0;
  color: #cfe2f1;
  line-height: 1.5;
}

.start-v3-role-list {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.start-v3-role-list .role-card {
  grid-template-columns: 64px minmax(0, 1fr);
  min-height: 88px;
  padding: 14px 16px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 10px 18px rgba(0,0,0,0.14);
}

.start-v3-role-list .role-card.active {
  border-color: rgba(255, 203, 89, 0.72);
  background:
    linear-gradient(180deg, rgba(39, 118, 112, 0.74), rgba(17, 72, 74, 0.66));
  box-shadow:
    inset 0 0 0 1px rgba(255, 203, 89, 0.22),
    0 16px 26px rgba(0,0,0,0.18),
    0 0 22px rgba(255, 203, 89, 0.1);
}

.start-v3-role-list .role-card strong {
  font-size: 17px;
}

.start-v3-role-list .role-card-copy span {
  font-size: 14px;
}

.start-v3-role-list .role-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
}

.start-v3-form {
  display: grid;
  gap: 12px;
  padding-top: 6px;
}

.start-v3-form .start-input {
  height: 54px;
}

.start-v3-form .start-role-note {
  margin-top: 2px;
}

.start-v3-form .start-cta-btn {
  width: 100%;
  min-width: 0;
  margin-top: 4px;
  height: 56px;
  font-size: 18px;
  border-radius: 18px;
}

.start-screen-v3 .start-badge {
  background: linear-gradient(180deg, rgba(23,51,81,0.76), rgba(14,31,51,0.78));
  color: #ffe6a6;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 14px 20px rgba(0,0,0,0.14);
}

.start-screen-v3 .start-input {
  border-color: rgba(255,255,255,0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
}

.start-screen-v3 .start-input:focus {
  border-color: rgba(255, 214, 110, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 0 0 4px rgba(255, 214, 110, 0.1);
}

.start-route-glow,
.start-coin {
  position: absolute;
}

.start-route-glow {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,223,148,0), rgba(255,223,148,0.48), rgba(255,223,148,0));
  filter: blur(0.2px);
  opacity: 0.64;
}

.route-a {
  left: 18%;
  bottom: 24%;
  width: 18%;
  transform: rotate(-8deg);
}

.route-b {
  left: 43%;
  bottom: 23%;
  width: 20%;
  transform: rotate(4deg);
}

.start-coin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff5c3, #f3c44f 62%, #b37a1f);
  box-shadow: 0 0 16px rgba(243,196,79,0.28);
  animation: coinBounce 2.8s ease-in-out infinite;
}

.coin-a {
  left: 33%;
  bottom: 26%;
}

.coin-b {
  left: 46%;
  bottom: 21%;
  animation-delay: -0.8s;
}

.coin-c {
  left: 59%;
  bottom: 25%;
  animation-delay: -1.6s;
}

@keyframes coinBounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 1080px) {
  .start-v3-shell {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .start-v3-hero {
    max-width: 100%;
    margin-top: 0;
  }

  .start-v3-card {
    max-width: 520px;
  }
}

@media (max-width: 720px) {
  .start-v3-shell {
    padding: 18px 14px 22px;
    gap: 18px;
  }

  .start-v3-hero h1 {
    font-size: 42px;
  }

  .start-v3-hero p {
    font-size: 18px;
    max-width: 100%;
  }

  .start-hero-note {
    font-size: 16px;
  }

  .start-v3-card {
    padding: 18px;
    border-radius: 24px;
  }

  .start-v3-card-top h2 {
    font-size: 28px;
  }
}

.mission-screen-path-guided {
  height: calc(100vh - 82px);
  min-height: 640px;
  padding: 0;
  overflow: hidden;
}

.mission-screen-path-guided::before {
  background:
    linear-gradient(180deg, rgba(0, 22, 44, 0.02), rgba(0, 38, 65, 0.08)),
    url("./img/path-guided-bg.png") center center / cover no-repeat;
}

.mission-screen-path-guided::after {
  background:
    radial-gradient(circle at 58% 14%, rgba(255, 246, 174, 0.16), transparent 9%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(4, 25, 48, 0.12));
}

.mission-screen-path-guided .mission-panel {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
}

.mission-screen-path-guided .mission-hero,
.mission-screen-path-guided .mission-assistant {
  display: none;
}

.mission-guided-stage {
  position: relative;
  height: 100%;
  min-height: 640px;
  isolation: isolate;
}

.mission-guided-top {
  position: absolute;
  z-index: 6;
  top: -18px;
  left: 50%;
  width: min(47vw, 650px);
  min-width: 520px;
  transform: translateX(-50%);
  pointer-events: none;
}

.mission-guided-top > img,
.mission-guided-panel-img,
.mission-guided-board-img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.mission-guided-top-copy {
  position: absolute;
  inset: 9% 10% 20%;
  display: grid;
  align-content: center;
  justify-items: center;
  color: #fff9df;
  text-align: center;
  text-shadow: 0 3px 0 rgba(49, 24, 7, 0.8), 0 6px 12px rgba(0, 0, 0, 0.38);
}

.mission-guided-top-copy h1 {
  margin: 0;
  font-size: clamp(34px, 3.5vw, 54px);
  line-height: 0.95;
  color: #ffd95b;
  letter-spacing: 0;
}

.mission-guided-top-copy p {
  margin: 7px 0 10px;
  font-size: clamp(16px, 1.35vw, 24px);
  font-weight: 950;
}

.mission-guided-progress {
  display: grid;
  grid-template-columns: auto auto minmax(140px, 250px) auto;
  align-items: center;
  gap: 10px;
  width: min(78%, 500px);
  font-size: 20px;
  font-weight: 950;
}

.mission-guided-star {
  width: 34px;
  height: 34px;
  background: radial-gradient(circle at 35% 30%, #fff8b7, #ffd13f 48%, #bf690b 76%);
  clip-path: polygon(50% 4%, 61% 36%, 95% 36%, 67% 56%, 78% 91%, 50% 70%, 22% 91%, 33% 56%, 5% 36%, 39% 36%);
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.35));
}

.mission-guided-progress-track {
  height: 34px;
  padding: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #082346, #03172e);
  box-shadow:
    inset 0 2px 7px rgba(0, 0, 0, 0.65),
    0 0 0 2px rgba(133, 199, 255, 0.38);
}

.mission-guided-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(180deg, #b8ff54, #49da16 58%, #15960c);
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.48), 0 0 12px rgba(118, 242, 42, 0.5);
  transition: width 0.28s ease;
}

.mission-guided-board-wrap {
  position: absolute;
  z-index: 2;
  left: clamp(18px, 3vw, 54px);
  bottom: clamp(26px, 4vh, 48px);
  width: min(54vw, 780px);
  min-width: 560px;
  filter: drop-shadow(0 24px 22px rgba(0, 27, 54, 0.36));
}

.mission-guided-player {
  position: absolute;
  left: var(--tile-x);
  top: var(--tile-y);
  z-index: 5;
  width: 12.5%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 28%;
  background: radial-gradient(circle, rgba(103, 252, 255, 0.42), rgba(0, 168, 255, 0.16) 48%, transparent 72%);
  box-shadow: 0 0 0 4px rgba(91, 245, 255, 0.7), 0 0 24px rgba(63, 235, 255, 0.84);
  transition: left 0.35s ease, top 0.35s ease, transform 0.22s ease;
  animation: guidedTokenFloat 2.1s ease-in-out infinite;
}

.mission-guided-player img {
  width: 114%;
  transform: translateY(-8%);
  filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.35));
}

.mission-guided-player.facing-left img {
  transform: translateY(-8%) scaleX(-1);
}

.mission-guided-player.is-running {
  animation: guidedTokenRun 0.48s ease-in-out infinite;
}

.mission-guided-current-arrow {
  position: absolute;
  left: calc(var(--tile-x) + 6.2%);
  top: calc(var(--tile-y) + 1.3%);
  z-index: 4;
  width: 70px;
  height: 42px;
  transform: translate(-50%, -50%);
  opacity: 0.96;
  filter: drop-shadow(0 4px 2px rgba(105, 49, 0, 0.38));
}

.mission-guided-current-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fff7bb, #ffb21e 62%, #d67800);
  clip-path: polygon(0 31%, 60% 31%, 60% 0, 100% 50%, 60% 100%, 60% 69%, 0 69%);
  animation: guidedArrowPulse 1s ease-in-out infinite;
}

.mission-guided-command-shell {
  position: absolute;
  z-index: 4;
  right: clamp(20px, 4.2vw, 78px);
  top: clamp(138px, 20vh, 185px);
  width: min(41vw, 600px);
  min-width: 450px;
  filter: drop-shadow(0 18px 16px rgba(0, 18, 37, 0.42));
}

.mission-guided-command-bank {
  position: absolute;
  inset: 24% 9% 9%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 3%;
}

.mission-guided-command-btn,
.mission-guided-run,
.mission-guided-small-action {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease;
}

.mission-guided-command-btn:hover,
.mission-guided-run:hover,
.mission-guided-small-action:hover {
  transform: translateY(-4px) scale(1.03);
  filter: drop-shadow(0 0 16px rgba(255, 236, 124, 0.54));
}

.mission-guided-command-btn:active,
.mission-guided-run:active,
.mission-guided-small-action:active {
  transform: translateY(1px) scale(0.98);
}

.mission-guided-command-btn img,
.mission-guided-run img,
.mission-guided-small-action img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.mission-guided-route-shell {
  position: absolute;
  z-index: 4;
  right: clamp(18px, 4.5vw, 82px);
  top: clamp(380px, 55vh, 460px);
  width: min(41vw, 610px);
  min-width: 460px;
  filter: drop-shadow(0 18px 16px rgba(0, 18, 37, 0.4));
}

.mission-guided-route-list {
  position: absolute;
  inset: 26% 7.5% 11%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2%;
}

.mission-guided-route-slot {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 17%;
  border: 3px dashed rgba(148, 202, 255, 0.44);
  background: rgba(13, 39, 69, 0.48);
  box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.45);
}

.mission-guided-route-slot > span {
  position: absolute;
  top: -18px;
  left: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  border-radius: 999px;
  color: #fffce8;
  font-weight: 950;
  background: linear-gradient(180deg, #15375e, #081d38);
  border: 2px solid rgba(255, 240, 155, 0.86);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.mission-guided-route-slot img {
  width: 118%;
  max-width: none;
  filter: drop-shadow(0 8px 6px rgba(0, 0, 0, 0.34));
}

.mission-guided-route-slot i {
  width: 42%;
  aspect-ratio: 1;
  opacity: 0.42;
  background: #85a8c8;
  clip-path: polygon(50% 3%, 61% 36%, 96% 36%, 67% 57%, 78% 92%, 50% 71%, 22% 92%, 33% 57%, 4% 36%, 39% 36%);
}

.mission-guided-route-slot.active {
  border-style: solid;
  border-color: rgba(255, 231, 97, 0.95);
  box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.45), 0 0 18px rgba(255, 221, 68, 0.58);
}

.mission-guided-actions-panel {
  position: absolute;
  z-index: 5;
  right: clamp(24px, 4.8vw, 88px);
  bottom: clamp(22px, 4vh, 40px);
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 96px 96px;
  align-items: end;
  gap: 10px;
  width: min(42vw, 620px);
}

.mission-guided-run {
  align-self: center;
  animation: guidedRunGlow 1.8s ease-in-out infinite;
}

.mission-guided-small-action {
  align-self: end;
}

.mission-guided-helper {
  position: absolute;
  z-index: 6;
  left: clamp(10px, 1.5vw, 24px);
  bottom: 0;
  display: grid;
  grid-template-columns: 190px minmax(180px, 280px);
  align-items: end;
  gap: 6px;
  pointer-events: none;
}

.mission-guided-helper img {
  width: 210px;
  transform: translateY(8px);
  filter: drop-shadow(0 14px 12px rgba(0, 0, 0, 0.36));
}

.mission-guided-helper div {
  position: relative;
  margin-bottom: 34px;
  padding: 18px 20px 20px;
  border-radius: 14px;
  color: #2d1902;
  background: linear-gradient(180deg, #fff7df, #ffe5ad);
  border: 3px solid rgba(211, 142, 40, 0.54);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.75),
    0 12px 20px rgba(77, 43, 6, 0.22);
}

.mission-guided-helper div::before {
  content: "";
  position: absolute;
  left: -18px;
  bottom: 34px;
  border-style: solid;
  border-width: 12px 20px 12px 0;
  border-color: transparent #ffe9ba transparent transparent;
}

.mission-guided-helper strong,
.mission-guided-helper span {
  display: block;
}

.mission-guided-helper strong {
  font-size: 22px;
  line-height: 1.1;
  color: #2d1902;
}

.mission-guided-helper span {
  margin-top: 6px;
  font-weight: 900;
  line-height: 1.25;
  color: #103d6b;
}

.mission-screen-path-guided .mission-actions {
  position: absolute;
  z-index: 7;
  right: clamp(24px, 4.8vw, 88px);
  bottom: clamp(122px, 18vh, 168px);
  gap: 8px;
  margin: 0;
  padding: 0;
}

.mission-screen-path-guided .mission-actions .btn {
  min-width: 100px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 16px;
}

.mission-screen-path-guided .mission-actions #validateMissionBtn {
  color: #062316;
  background: linear-gradient(180deg, #9ff7cc, #36dd99);
  box-shadow: 0 10px 18px rgba(0, 58, 50, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

@keyframes guidedTokenFloat {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0) rotate(-1deg);
  }

  50% {
    transform: translate(-50%, -50%) translateY(-8px) rotate(2deg);
  }
}

@keyframes guidedTokenRun {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0) scale(1) rotate(-2deg);
  }

  50% {
    transform: translate(-50%, -50%) translateY(-18px) scale(1.1) rotate(4deg);
  }
}

@keyframes guidedArrowPulse {
  0%,
  100% {
    transform: translateX(0);
    filter: brightness(1);
  }

  50% {
    transform: translateX(8px);
    filter: brightness(1.18);
  }
}

@keyframes guidedRunGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(255, 212, 38, 0.28));
  }

  50% {
    filter: drop-shadow(0 0 24px rgba(255, 236, 92, 0.66));
  }
}

@media (max-width: 1120px) {
  .mission-screen-path-guided {
    height: auto;
    min-height: calc(100vh - 82px);
    overflow: auto;
  }

  .mission-screen-path-guided .mission-panel,
  .mission-guided-stage {
    height: auto;
    min-height: 980px;
  }

  .mission-guided-top {
    min-width: 0;
    width: min(92vw, 650px);
  }

  .mission-guided-board-wrap,
  .mission-guided-command-shell,
  .mission-guided-route-shell,
  .mission-guided-actions-panel,
  .mission-screen-path-guided .mission-actions {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: min(92vw, 720px);
    min-width: 0;
    margin-inline: auto;
  }

  .mission-guided-board-wrap {
    margin-top: 128px;
  }

  .mission-guided-command-shell,
  .mission-guided-route-shell {
    margin-top: 12px;
  }

  .mission-guided-actions-panel {
    width: min(92vw, 620px);
    margin-top: 10px;
  }

  .mission-screen-path-guided .mission-actions {
    justify-content: center;
    margin-top: 10px;
    padding-bottom: 18px;
  }

  .mission-guided-helper {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(92vw, 520px);
    margin: 0 auto;
  }
}

.mission-screen-path-guided .mission-guided-top {
  top: 0;
  width: min(36vw, 500px);
  min-width: 390px;
}

.mission-screen-path-guided .mission-guided-top-copy h1 {
  font-size: clamp(26px, 2.65vw, 40px);
}

.mission-screen-path-guided .mission-guided-top-copy p {
  font-size: clamp(12px, 0.98vw, 16px);
}

.mission-screen-path-guided .mission-guided-progress {
  grid-template-columns: auto auto minmax(92px, 160px) auto;
  gap: 7px;
  font-size: 15px;
}

.mission-screen-path-guided .mission-guided-star {
  width: 24px;
  height: 24px;
}

.mission-screen-path-guided .mission-guided-progress-track {
  height: 24px;
}

.mission-screen-path-guided .mission-guided-board-wrap {
  left: clamp(34px, 5.2vw, 74px);
  bottom: clamp(28px, 5vh, 54px);
  width: min(43vw, 610px);
}

.mission-screen-path-guided .mission-guided-player {
  width: 11.2%;
}

.mission-screen-path-guided .mission-guided-current-arrow {
  width: 54px;
  height: 32px;
}

.mission-screen-path-guided .mission-guided-command-shell {
  right: clamp(84px, 9vw, 150px);
  top: clamp(145px, 21vh, 162px);
  width: min(29vw, 390px);
  min-width: 315px;
}

.mission-screen-path-guided .mission-guided-route-shell {
  right: clamp(91px, 9.8vw, 158px);
  top: clamp(344px, 51vh, 372px);
  width: min(28.5vw, 385px);
  min-width: 310px;
}

.mission-screen-path-guided .mission-guided-actions-panel {
  right: clamp(96px, 10vw, 164px);
  bottom: clamp(34px, 6vh, 54px);
  width: min(28.5vw, 390px);
  grid-template-columns: minmax(160px, 1fr) 58px 58px;
  gap: 6px;
}

.mission-screen-path-guided .mission-guided-status {
  left: clamp(210px, 18vw, 260px);
  bottom: clamp(18px, 4vh, 36px);
  width: min(260px, 21vw);
  padding: 11px 13px;
  font-size: 13px;
}

.mission-screen-path-guided .mission-assistant {
  left: 18px;
  right: auto;
  top: 12px;
  bottom: auto;
  z-index: 11;
}

.mission-screen-path-guided .mission-assistant-trigger {
  width: 90px;
  height: 90px;
}

.mission-screen-path-guided .mission-assistant-trigger img {
  width: 98px;
  transform: translate(-4px, -8px) scaleX(-1);
}

.mission-screen-path-guided .mission-assistant:hover .mission-assistant-trigger img,
.mission-screen-path-guided .mission-assistant.open .mission-assistant-trigger img {
  transform: translate(-4px, -13px) scaleX(-1) scale(1.04);
}

.mission-screen-path-guided .mission-assistant-bubble {
  left: 84px;
  right: auto;
  top: 18px;
  bottom: auto;
  width: min(300px, 30vw);
  transform-origin: top left;
}

.mission-screen-path-guided .mission-assistant-bubble::after {
  left: -12px;
  right: auto;
  top: 46px;
  bottom: auto;
}

@media (max-width: 1120px) {
  .mission-screen-path-guided .mission-assistant {
    top: 10px;
    left: 12px;
    bottom: auto;
  }

  .mission-screen-path-guided .mission-guided-status {
    width: min(82vw, 320px);
  }
}

@media (max-width: 720px) {
  .mission-guided-actions-panel {
    grid-template-columns: 1fr 74px 74px;
  }

  .mission-guided-helper {
    grid-template-columns: 120px 1fr;
  }

  .mission-guided-helper img {
    width: 135px;
  }

  .mission-guided-helper strong {
    font-size: 18px;
  }

  .mission-guided-current-arrow {
    width: 46px;
    height: 28px;
  }
}

.mission-screen-path-guided {
  height: 100vh;
  min-height: 680px;
}

.mission-screen-path-guided .mission-assistant {
  display: block;
  right: auto;
  left: 22px;
  bottom: 12px;
  z-index: 10;
}

.mission-screen-path-guided .mission-assistant-trigger {
  width: 118px;
  height: 118px;
}

.mission-screen-path-guided .mission-assistant-trigger img {
  width: 126px;
  transform: translate(-6px, -10px);
}

.mission-screen-path-guided .mission-assistant-bubble {
  right: auto;
  left: 104px;
  bottom: 64px;
  width: min(330px, 32vw);
  transform-origin: bottom left;
}

.mission-screen-path-guided .mission-assistant-bubble::after {
  right: auto;
  left: -12px;
  transform: rotate(45deg);
}

.mission-screen-path-guided .mission-assistant:hover .mission-assistant-trigger img,
.mission-screen-path-guided .mission-assistant.open .mission-assistant-trigger img {
  transform: translate(-6px, -16px) scale(1.04);
}

.mission-screen-path-guided .mission-guided-top {
  top: 8px;
  width: min(42vw, 560px);
  min-width: 430px;
}

.mission-screen-path-guided .mission-guided-top-copy h1 {
  font-size: clamp(30px, 3.1vw, 46px);
}

.mission-screen-path-guided .mission-guided-top-copy p {
  margin-top: 4px;
  margin-bottom: 7px;
  font-size: clamp(13px, 1.15vw, 18px);
}

.mission-screen-path-guided .mission-guided-progress {
  grid-template-columns: auto auto minmax(110px, 190px) auto;
  gap: 8px;
  width: min(74%, 420px);
  font-size: 17px;
}

.mission-screen-path-guided .mission-guided-star {
  width: 28px;
  height: 28px;
}

.mission-screen-path-guided .mission-guided-progress-track {
  height: 28px;
}

.mission-screen-path-guided .mission-guided-board-wrap {
  left: clamp(18px, 3.2vw, 48px);
  bottom: clamp(18px, 3vh, 34px);
  width: min(50vw, 690px);
  min-width: 0;
}

.mission-screen-path-guided .mission-guided-command-shell {
  right: clamp(22px, 4.6vw, 72px);
  top: clamp(148px, 22vh, 176px);
  width: min(37vw, 505px);
  min-width: 395px;
}

.mission-screen-path-guided .mission-guided-route-shell {
  right: clamp(30px, 5.2vw, 84px);
  top: clamp(390px, 57vh, 430px);
  width: min(36.5vw, 510px);
  min-width: 390px;
}

.mission-screen-path-guided .mission-guided-actions-panel {
  right: clamp(36px, 5.6vw, 92px);
  bottom: clamp(18px, 3vh, 28px);
  width: min(37vw, 520px);
  grid-template-columns: minmax(210px, 1fr) 78px 78px;
  gap: 8px;
}

.mission-screen-path-guided .mission-guided-status {
  position: absolute;
  z-index: 5;
  left: clamp(210px, 19vw, 285px);
  bottom: clamp(16px, 4vh, 38px);
  width: min(310px, 25vw);
  padding: 14px 16px;
  border-radius: 14px;
  color: #2d1902;
  font-weight: 950;
  line-height: 1.2;
  background: linear-gradient(180deg, #fff7df, #ffe5ad);
  border: 3px solid rgba(211, 142, 40, 0.54);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.75),
    0 12px 20px rgba(77, 43, 6, 0.22);
}

@media (max-width: 1120px) {
  .mission-screen-path-guided {
    height: auto;
  }

  .mission-screen-path-guided .mission-guided-top {
    width: min(86vw, 560px);
    min-width: 0;
  }

  .mission-screen-path-guided .mission-guided-command-shell,
  .mission-screen-path-guided .mission-guided-route-shell {
    min-width: 0;
  }

  .mission-screen-path-guided .mission-guided-status {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(86vw, 380px);
    margin: 14px auto 0;
  }

  .mission-screen-path-guided .mission-assistant {
    left: 14px;
    bottom: 14px;
  }
}

/* Final Camino guiado scale pass: override earlier clamp/min-width rules. */
.mission-screen-path-guided .mission-guided-top {
  top: 4px !important;
  width: min(32vw, 435px) !important;
  min-width: 0 !important;
}

.mission-screen-path-guided .mission-guided-top-copy h1 {
  font-size: clamp(23px, 2.35vw, 34px) !important;
}

.mission-screen-path-guided .mission-guided-top-copy p {
  font-size: clamp(10px, 0.88vw, 13px) !important;
}

.mission-screen-path-guided .mission-guided-progress {
  grid-template-columns: auto auto minmax(70px, 130px) auto !important;
  gap: 5px !important;
  width: min(70%, 330px) !important;
  font-size: 13px !important;
}

.mission-screen-path-guided .mission-guided-star {
  width: 20px !important;
  height: 20px !important;
}

.mission-screen-path-guided .mission-guided-progress-track {
  height: 20px !important;
  padding: 3px !important;
}

.mission-screen-path-guided .mission-guided-board-wrap {
  left: clamp(95px, 10vw, 140px) !important;
  bottom: clamp(42px, 7vh, 72px) !important;
  width: min(39vw, 545px) !important;
  min-width: 0 !important;
}

.mission-screen-path-guided .mission-guided-player {
  width: 10% !important;
}

.mission-screen-path-guided .mission-guided-current-arrow {
  width: 42px !important;
  height: 25px !important;
}

.mission-screen-path-guided .mission-guided-command-shell {
  right: clamp(330px, 28vw, 420px) !important;
  top: clamp(170px, 25vh, 190px) !important;
  width: min(24vw, 325px) !important;
  min-width: 0 !important;
}

.mission-screen-path-guided .mission-guided-route-shell {
  right: clamp(335px, 28.5vw, 425px) !important;
  top: clamp(336px, 50vh, 365px) !important;
  width: min(23.5vw, 320px) !important;
  min-width: 0 !important;
}

.mission-screen-path-guided .mission-guided-route-slot > span {
  top: -13px !important;
  width: 24px !important;
  height: 24px !important;
  font-size: 12px !important;
}

.mission-screen-path-guided .mission-guided-actions-panel {
  right: clamp(340px, 29vw, 430px) !important;
  bottom: clamp(36px, 6vh, 52px) !important;
  width: min(23.5vw, 320px) !important;
  grid-template-columns: minmax(130px, 1fr) 54px 54px !important;
  gap: 5px !important;
}

.mission-screen-path-guided .mission-guided-route-list {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 1.4% !important;
}

.mission-screen-path-guided .mission-guided-small-action {
  width: 54px !important;
  aspect-ratio: 1 !important;
  display: grid !important;
  place-items: center !important;
  overflow: visible !important;
}

.mission-screen-path-guided .mission-guided-small-action img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.mission-guided-skate-trail {
  position: absolute;
  left: calc(20.4% + (var(--path-col) * 17.2%));
  top: calc(18% + (var(--path-row) * 19%) + 3.5%);
  z-index: 3;
  width: 9%;
  height: 4.2%;
  transform: translate(-50%, -50%) rotate(-8deg);
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 22% 50%, rgba(255, 255, 255, 0.95), transparent 34%),
    radial-gradient(ellipse at 54% 50%, rgba(126, 243, 255, 0.78), transparent 48%),
    linear-gradient(90deg, transparent, rgba(87, 229, 255, 0.58), transparent);
  filter: blur(0.2px) drop-shadow(0 0 8px rgba(84, 233, 255, 0.64));
  opacity: 0.72;
  animation: guidedTrailFade 1.4s ease-in-out infinite;
}

.mission-guided-skate-trail.trail-1 {
  transform: translate(-50%, -50%) rotate(7deg);
  animation-delay: 0.14s;
}

.mission-guided-skate-trail.trail-2 {
  transform: translate(-50%, -50%) rotate(-3deg);
  animation-delay: 0.28s;
}

.mission-guided-skate-trail.trail-3 {
  transform: translate(-50%, -50%) rotate(10deg);
  animation-delay: 0.42s;
}

.mission-guided-player.is-running::before {
  content: "";
  position: absolute;
  left: -34%;
  top: 58%;
  width: 88%;
  height: 22%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(117, 245, 255, 0), rgba(117, 245, 255, 0.82), rgba(255, 255, 255, 0));
  filter: blur(2px);
  animation: guidedSkateJet 0.34s ease-in-out infinite;
}

.mission-guided-goal-burst {
  position: absolute;
  left: calc(20.4% + (3 * 17.2%));
  top: calc(18% + (2 * 19%));
  z-index: 6;
  width: 18%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 8%, rgba(255, 229, 86, 0.9) 9% 18%, rgba(92, 241, 255, 0.34) 20% 48%, transparent 62%);
  box-shadow:
    0 0 24px rgba(255, 231, 88, 0.9),
    0 0 52px rgba(78, 232, 255, 0.5);
  animation: guidedGoalBurst 1.25s ease-out infinite;
  pointer-events: none;
}

.mission-guided-stage-complete .mission-guided-player {
  box-shadow: 0 0 0 5px rgba(255, 238, 98, 0.88), 0 0 28px rgba(255, 232, 91, 0.9);
  animation: guidedGoalDance 0.78s ease-in-out infinite !important;
}

@keyframes guidedTrailFade {
  0%,
  100% {
    opacity: 0.38;
    transform: translate(-50%, -50%) scaleX(0.78);
  }

  50% {
    opacity: 0.86;
    transform: translate(-50%, -50%) scaleX(1.08);
  }
}

@keyframes guidedSkateJet {
  0%,
  100% {
    opacity: 0.34;
    transform: translateX(4px) scaleX(0.72);
  }

  50% {
    opacity: 0.92;
    transform: translateX(-6px) scaleX(1.08);
  }
}

@keyframes guidedGoalBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.55) rotate(0deg);
  }

  38% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.35) rotate(25deg);
  }
}

@keyframes guidedGoalDance {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0) rotate(-5deg) scale(1.03);
  }

  50% {
    transform: translate(-50%, -50%) translateY(-13px) rotate(6deg) scale(1.1);
  }
}

.mission-screen-path-guided .mission-guided-status {
  left: clamp(190px, 16vw, 235px) !important;
  bottom: clamp(24px, 5vh, 42px) !important;
  width: min(230px, 19vw) !important;
  padding: 9px 11px !important;
  font-size: 12px !important;
}

.mission-screen-path-guided .mission-assistant {
  top: auto !important;
  left: auto !important;
  right: 22px !important;
  bottom: 92px !important;
}

.mission-screen-path-guided .mission-assistant-trigger {
  width: 66px !important;
  height: 66px !important;
}

.mission-screen-path-guided .mission-assistant-trigger img {
  width: 76px !important;
  transform: translate(-5px, -7px) scaleX(-1) !important;
}

.mission-screen-path-guided .mission-assistant:hover .mission-assistant-trigger img,
.mission-screen-path-guided .mission-assistant.open .mission-assistant-trigger img {
  transform: translate(-5px, -10px) scaleX(-1) scale(1.04) !important;
}

.mission-screen-path-guided .mission-assistant-bubble {
  left: auto !important;
  right: 66px !important;
  top: auto !important;
  bottom: auto !important;
  width: min(270px, 28vw) !important;
}

.mission-screen-path-guided .mission-assistant-bubble::after {
  left: auto !important;
  right: -12px !important;
}

.mission-guided-tile-pulse,
.mission-guided-blocked-burst {
  position: absolute;
  left: calc(20.4% + (var(--path-col) * 17.2%));
  top: calc(18% + (var(--path-row) * 19%));
  z-index: 2;
  width: 13.2%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 20%;
  pointer-events: none;
}

.mission-guided-tile-pulse {
  background:
    radial-gradient(circle at 50% 50%, rgba(131, 255, 216, 0.36), rgba(43, 216, 255, 0.16) 48%, transparent 72%);
  box-shadow:
    inset 0 0 20px rgba(120, 255, 208, 0.16),
    0 0 18px rgba(49, 224, 255, 0.46);
  animation: guidedTileWake 1.9s ease-in-out infinite;
}

.mission-guided-tile-pulse.pulse-1 {
  animation-delay: 0.12s;
}

.mission-guided-tile-pulse.pulse-2 {
  animation-delay: 0.24s;
}

.mission-guided-tile-pulse.pulse-3 {
  animation-delay: 0.36s;
}

.mission-guided-blocked-burst {
  z-index: 7;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 8%, rgba(255, 91, 68, 0.8) 9% 18%, rgba(255, 183, 79, 0.34) 22% 46%, transparent 64%);
  box-shadow:
    0 0 20px rgba(255, 102, 74, 0.82),
    0 0 40px rgba(255, 210, 92, 0.45);
  animation: guidedBlockedPop 0.72s ease-out infinite;
}

.mission-guided-stage::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 6%;
  bottom: 3%;
  width: 44%;
  height: 48%;
  pointer-events: none;
  background:
    radial-gradient(circle at 34% 84%, rgba(97, 245, 255, 0.16), transparent 5%),
    radial-gradient(circle at 46% 84%, rgba(97, 245, 255, 0.11), transparent 4%),
    radial-gradient(circle at 46% 65%, rgba(97, 245, 255, 0.1), transparent 4%);
  animation: guidedBoardMagic 3.4s ease-in-out infinite;
}

@keyframes guidedTileWake {
  0%,
  100% {
    opacity: 0.28;
    transform: translate(-50%, -50%) scale(0.9);
  }

  50% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(1.06);
  }
}

@keyframes guidedBlockedPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.45);
  }

  38% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.18);
  }
}

@keyframes guidedBoardMagic {
  0%,
  100% {
    opacity: 0.32;
    filter: blur(0);
  }

  50% {
    opacity: 0.7;
    filter: blur(1px);
  }
}

/* Camino guiado polish pass: calibrated board anchors, side plaques, and breathing room. */
.mission-screen-path-guided .mission-guided-command-shell {
  right: clamp(260px, 21.5vw, 330px) !important;
  top: clamp(188px, 27vh, 206px) !important;
  width: min(24vw, 325px) !important;
  min-width: 0 !important;
}

.mission-screen-path-guided .mission-guided-route-shell {
  right: clamp(265px, 22vw, 335px) !important;
  top: clamp(360px, 53vh, 390px) !important;
  width: min(23.5vw, 320px) !important;
  min-width: 0 !important;
}

.mission-screen-path-guided .mission-guided-actions-panel {
  right: clamp(270px, 22.5vw, 340px) !important;
  bottom: clamp(58px, 8vh, 78px) !important;
  width: min(23.5vw, 320px) !important;
  grid-template-columns: minmax(146px, 1fr) 62px 62px !important;
  gap: 14px !important;
}

.mission-screen-path-guided .mission-guided-status {
  left: clamp(210px, 17vw, 255px) !important;
  bottom: clamp(22px, 4vh, 34px) !important;
  width: min(250px, 20vw) !important;
  padding: 9px 11px !important;
  font-size: 12px !important;
}

.mission-screen-path-guided .mission-assistant {
  top: auto !important;
  left: auto !important;
  right: 34px !important;
  bottom: 58px !important;
}

.mission-screen-path-guided .mission-assistant-trigger {
  width: 142px !important;
  height: 142px !important;
}

.mission-screen-path-guided .mission-assistant-trigger img {
  width: 154px !important;
  transform: translate(-10px, -16px) !important;
}

.mission-screen-path-guided .mission-assistant:hover .mission-assistant-trigger img,
.mission-screen-path-guided .mission-assistant.open .mission-assistant-trigger img {
  transform: translate(-10px, -24px) scale(1.04) !important;
}

.mission-screen-path-guided .mission-assistant-bubble {
  left: auto !important;
  right: 136px !important;
  top: auto !important;
  bottom: 20px !important;
  width: min(285px, 28vw) !important;
}

.mission-screen-path-guided .mission-assistant-bubble::after {
  left: auto !important;
  right: -12px !important;
}

.mission-guided-skate-trail,
.mission-guided-tile-pulse,
.mission-guided-blocked-burst,
.mission-guided-goal-burst {
  left: var(--tile-x) !important;
  top: var(--tile-y) !important;
}

.mission-screen-path-guided .mission-guided-side-card {
  position: absolute;
  z-index: 7;
  top: 14px;
  min-height: 78px;
  padding: 11px 17px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff7d8;
  background: linear-gradient(180deg, rgba(17, 57, 104, 0.96), rgba(5, 28, 61, 0.98));
  border: 2px solid rgba(255, 199, 80, 0.82);
  border-radius: 18px 8px 18px 8px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.18),
    inset 0 -4px 0 rgba(0, 0, 0, 0.22),
    0 10px 22px rgba(0, 25, 54, 0.32),
    0 0 0 1px rgba(54, 211, 255, 0.18);
}

.mission-screen-path-guided .mission-guided-side-card::before,
.mission-screen-path-guided .mission-guided-side-card::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffe28b, #c77a18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 0 rgba(72, 35, 7, 0.5);
}

.mission-screen-path-guided .mission-guided-side-card::before {
  left: 8px;
  top: -8px;
}

.mission-screen-path-guided .mission-guided-side-card::after {
  right: 8px;
  bottom: -8px;
}

.mission-screen-path-guided .mission-guided-side-card-left {
  left: 28px;
  min-width: 238px;
}

.mission-screen-path-guided .mission-guided-side-card-right {
  right: 28px;
  min-width: 190px;
  padding: 9px 13px;
}

.mission-screen-path-guided .mission-guided-side-copy {
  display: grid;
  gap: 3px;
}

.mission-screen-path-guided .mission-guided-side-card strong {
  font-size: 18px;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.42);
}

.mission-screen-path-guided .mission-guided-side-card small {
  font-size: 11px;
  font-weight: 950;
  color: #bfeeff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.36);
}

.mission-screen-path-guided .mission-guided-side-card b {
  min-width: 60px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 999px;
  color: #321b04;
  text-align: center;
  background: linear-gradient(180deg, #ffe66f, #f4a51d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.mission-screen-path-guided .mission-guided-side-card button {
  border: 0;
  padding: 0;
  min-width: 58px;
  display: grid;
  place-items: center;
  gap: 2px;
  color: #fff7d8;
  background: transparent;
  cursor: pointer;
}

.mission-guided-wallet {
  display: grid;
  gap: 6px;
  min-width: 88px;
}

.mission-guided-wallet span {
  min-height: 28px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  border-radius: 999px;
  color: #fff7d8;
  font-weight: 950;
  background: linear-gradient(180deg, rgba(27, 79, 133, 0.92), rgba(7, 35, 77, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 3px 0 rgba(0, 18, 52, 0.38);
}

.mission-screen-path-guided .mission-guided-side-card button:hover {
  filter: brightness(1.12) drop-shadow(0 0 8px rgba(255, 220, 86, 0.45));
}

.mission-guided-map-icon,
.mission-guided-gear-icon,
.mission-guided-back-icon {
  width: 42px;
  height: 42px;
  display: block;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 30%, #fffbd0, transparent 22%),
    linear-gradient(180deg, #37c7ff, #0b69c5);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.42),
    0 4px 0 rgba(0, 24, 60, 0.42);
}

.mission-guided-map-icon.ui-icon-wrap,
.mission-guided-gear-icon.ui-icon-wrap,
.mission-guided-back-icon.ui-icon-wrap,
.mission-guided-grid-icon.ui-icon-wrap {
  display: inline-grid;
  place-items: center;
  color: #fff7d8;
}

.mission-guided-map-icon.ui-icon-wrap .ui-icon,
.mission-guided-gear-icon.ui-icon-wrap .ui-icon,
.mission-guided-back-icon.ui-icon-wrap .ui-icon,
.mission-guided-grid-icon.ui-icon-wrap .ui-icon {
  width: 22px;
  height: 22px;
}

.mission-guided-map-icon::before,
.mission-guided-gear-icon::before,
.mission-guided-back-icon::before {
  content: "";
  display: block;
  width: 58%;
  height: 58%;
  margin: 21%;
  background: #fff7d8;
}

.mission-guided-map-icon::before {
  clip-path: polygon(7% 20%, 35% 8%, 65% 20%, 93% 8%, 93% 80%, 65% 92%, 35% 80%, 7% 92%);
}

.mission-guided-gear-icon::before {
  clip-path: polygon(44% 0, 56% 0, 61% 18%, 76% 9%, 91% 24%, 82% 39%, 100% 44%, 100% 56%, 82% 61%, 91% 76%, 76% 91%, 61% 82%, 56% 100%, 44% 100%, 39% 82%, 24% 91%, 9% 76%, 18% 61%, 0 56%, 0 44%, 18% 39%, 9% 24%, 24% 9%, 39% 18%);
}

.mission-guided-back-icon::before {
  clip-path: polygon(42% 8%, 7% 50%, 42% 92%, 42% 66%, 92% 66%, 92% 34%, 42% 34%);
}

.mission-guided-coin-icon,
.mission-guided-gem-icon {
  display: inline-block;
  flex: 0 0 auto;
}

.mission-guided-coin-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 30%, #fff4a8, transparent 28%),
    linear-gradient(180deg, #ffd85f, #e58b12);
  box-shadow: inset 0 -2px 0 rgba(123, 62, 5, 0.32), 0 2px 0 rgba(0, 0, 0, 0.25);
}

.mission-guided-gem-icon {
  width: 18px;
  height: 18px;
  background:
    radial-gradient(circle at 35% 25%, #e8fbff, transparent 22%),
    linear-gradient(180deg, #78ecff, #168dda);
  clip-path: polygon(50% 0, 92% 28%, 77% 100%, 23% 100%, 8% 28%);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.22);
}

/* Camino guiado bottom polish: keep the route HUD readable and away from the OS bar. */
.mission-screen-path-guided .mission-guided-route-shell {
  top: clamp(338px, 48vh, 358px) !important;
  z-index: 5 !important;
  overflow: visible !important;
}

.start-art-role-icon.ui-icon-wrap {
  display: inline-grid;
  place-items: center;
  color: #1d78bd;
}

.start-art-role-icon.ui-icon-wrap .ui-icon,
.start-art-role-arrow .ui-icon {
  width: 20px;
  height: 20px;
}

.mission-screen-path-guided .mission-guided-route-shell .mission-guided-panel-img {
  filter:
    drop-shadow(0 13px 11px rgba(0, 18, 46, 0.38))
    drop-shadow(0 0 10px rgba(69, 212, 255, 0.16));
}

.mission-screen-path-guided .mission-guided-route-list {
  inset: 39% 9.5% 23% !important;
  gap: 1.1% !important;
}

.mission-screen-path-guided .mission-guided-route-slot {
  border-width: 2px !important;
  background:
    linear-gradient(180deg, rgba(12, 44, 82, 0.78), rgba(7, 27, 58, 0.72)) !important;
  box-shadow:
    inset 0 1px 7px rgba(0, 0, 0, 0.45),
    inset 0 -8px 16px rgba(80, 201, 255, 0.05) !important;
}

.mission-screen-path-guided .mission-guided-route-slot > span {
  top: 2px !important;
  z-index: 3 !important;
  width: 18px !important;
  height: 18px !important;
  font-size: 10px !important;
  border-width: 2px !important;
}

.mission-screen-path-guided .mission-guided-route-slot i {
  width: 30% !important;
}

.mission-screen-path-guided .mission-guided-actions-panel {
  bottom: clamp(76px, 11vh, 96px) !important;
  grid-template-columns: minmax(150px, 1fr) 56px 56px !important;
  gap: 16px !important;
  align-items: center !important;
  z-index: 9 !important;
}

.mission-screen-path-guided .mission-guided-route-slot img {
  width: 105% !important;
}

.mission-screen-path-guided .mission-guided-run {
  transform: translateY(-2px) !important;
}

.mission-screen-path-guided .mission-guided-run:hover {
  transform: translateY(-6px) scale(1.03) !important;
}

.mission-screen-path-guided .mission-guided-small-action {
  width: 56px !important;
  aspect-ratio: 1 !important;
  display: grid !important;
  place-items: center !important;
  filter: drop-shadow(0 7px 6px rgba(0, 18, 44, 0.34));
}

.mission-screen-path-guided .mission-guided-small-action img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.mission-screen-path-guided .mission-guided-status {
  display: none !important;
}

.mission-screen-path-guided .mission-guided-side-card {
  background:
    radial-gradient(circle at 15% 15%, rgba(99, 219, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(19, 66, 120, 0.97), rgba(5, 28, 61, 0.98)) !important;
}

.mission-screen-path-guided .mission-guided-side-card::before,
.mission-screen-path-guided .mission-guided-side-card::after {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 2px 0 rgba(72, 35, 7, 0.5),
    0 0 10px rgba(255, 207, 76, 0.45) !important;
}

.mission-guided-wallet span {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 3px 0 rgba(0, 18, 52, 0.38),
    0 0 0 1px rgba(79, 198, 255, 0.16) !important;
}

.mission-screen-path-guided .mission-guided-top-copy {
  inset: 18% 12% 18% !important;
  align-content: center !important;
  padding-top: 0 !important;
}

.mission-screen-path-guided .mission-guided-top-copy h1 {
  font-size: clamp(23px, 2.1vw, 29px) !important;
  line-height: 1.04 !important;
  font-weight: 950 !important;
  color: #ffe071 !important;
  text-shadow:
    0 2px 0 rgba(92, 42, 4, 0.9),
    0 5px 9px rgba(0, 0, 0, 0.42) !important;
}

.mission-screen-path-guided .mission-guided-top-copy p {
  margin: 7px 0 8px !important;
  font-size: clamp(10px, 0.82vw, 12px) !important;
  line-height: 1.18 !important;
}

.mission-screen-path-guided .mission-guided-progress {
  grid-template-columns: auto auto minmax(86px, 128px) auto !important;
  width: min(76%, 330px) !important;
}

.mission-screen-path-guided .mission-guided-progress b {
  white-space: nowrap !important;
}

.mission-screen-first-steps {
  height: 100vh !important;
  min-height: 680px !important;
}

.mission-screen-order-full {
  height: 100vh !important;
  min-height: 680px !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.mission-screen-order-full::before {
  position: absolute !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(3, 35, 67, 0.18)),
    url("./img/mission-order-correct-bg.png") center center / cover no-repeat !important;
}

.mission-screen-create-algorithm::before {
  background:
    linear-gradient(180deg, rgba(3, 13, 27, 0.16), rgba(2, 12, 24, 0.3)),
    radial-gradient(circle at 50% 24%, rgba(54, 206, 255, 0.12), transparent 36%),
    url("./img/mission-algorithm-cave-bg.png") center center / cover no-repeat !important;
}

.mission-screen-order-full .mission-panel {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.mission-screen-order-full .mission-hero {
  display: none;
}

.mission-reorder-full-stage .mission-guided-top {
  top: 4px !important;
  width: min(34vw, 460px) !important;
  min-width: 0 !important;
}

.mission-reorder-full-stage .mission-guided-top-copy {
  inset: 17% 12% 18% !important;
}

.mission-reorder-full-stage .mission-guided-top-copy h1 {
  font-size: clamp(23px, 2.05vw, 30px) !important;
}

.mission-reorder-full-stage .mission-guided-top-copy p {
  max-width: 34ch;
  margin: 6px 0 8px !important;
}

.mission-reorder-full-stage .mission-reorder-shell-art {
  position: absolute;
  inset: 0;
  margin: 0;
}

.mission-reorder-full-stage .mission-stage-banner-arcade,
.mission-reorder-full-stage .mission-reorder-progress-panel {
  display: none !important;
}

.mission-reorder-full-stage .mission-reorder-playfield {
  position: absolute;
  inset: 0;
  min-height: 0;
  margin: 0;
}

.mission-reorder-full-stage .mission-reorder-ocean {
  background:
    radial-gradient(circle at 43% 48%, rgba(255, 245, 174, 0.12), transparent 10%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(4, 24, 48, 0.08));
}

.mission-reorder-full-stage .mission-reorder-track-image {
  left: clamp(120px, 14vw, 210px);
  right: clamp(150px, 17vw, 240px);
  bottom: clamp(24px, 4vh, 42px);
  z-index: 2;
}

.mission-reorder-full-stage .mission-reorder-lane-art {
  left: clamp(70px, 6vw, 100px) !important;
  right: clamp(210px, 17vw, 260px) !important;
  top: auto !important;
  bottom: clamp(276px, 42vh, 310px) !important;
  z-index: 5;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(8px, 1vw, 14px);
  padding: 0;
}

.mission-reorder-full-stage .mission-sequence-card-art,
.mission-reorder-full-stage .mission-sequence-card-frame {
  min-height: clamp(128px, 18vh, 154px) !important;
}

.mission-reorder-full-stage .mission-sequence-card-frame {
  border-radius: 14px;
  border-width: 3px;
}

.mission-reorder-full-stage .mission-sequence-art-wrap {
  width: clamp(50px, 5vw, 64px);
  height: clamp(50px, 5vw, 64px);
}

.mission-reorder-full-stage .mission-sequence-card-art strong {
  font-size: clamp(10px, 0.82vw, 12px);
}

.mission-reorder-full-stage .mission-reorder-popover {
  bottom: clamp(205px, 30vh, 255px);
}

.mission-reorder-full-actions {
  right: clamp(360px, 29vw, 450px) !important;
  top: auto !important;
  bottom: clamp(22px, 4vh, 36px) !important;
  width: min(18vw, 220px) !important;
  display: block !important;
  z-index: 9 !important;
}

.mission-order-steps-stage .mission-guided-top {
  width: min(35vw, 485px) !important;
}

.mission-order-steps-stage .mission-guided-top-copy {
  inset: 18% 12% 18% !important;
}

.mission-order-steps-stage .mission-guided-top-copy h1 {
  font-size: clamp(22px, 1.85vw, 27px) !important;
}

.mission-order-steps-stage .mission-guided-top-copy p {
  max-width: 38ch;
  font-size: clamp(9px, 0.72vw, 10px) !important;
  line-height: 1.12 !important;
}

.mission-order-steps-stage .mission-guided-progress {
  grid-template-columns: auto auto minmax(84px, 118px) auto !important;
  width: min(78%, 320px) !important;
}

.mission-order-steps-stage .mission-guided-progress b {
  white-space: nowrap !important;
}

.mission-order-steps-stage .mission-reorder-track-image {
  left: clamp(105px, 11vw, 165px);
  right: clamp(105px, 11vw, 165px);
  bottom: clamp(32px, 5vh, 50px);
}

.mission-order-steps-stage .mission-reorder-lane-art {
  left: clamp(72px, 6vw, 100px) !important;
  right: clamp(255px, 20vw, 315px) !important;
  bottom: clamp(154px, 22vh, 178px) !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(8px, 1vw, 13px) !important;
}

.mission-order-steps-stage .mission-sequence-card-art,
.mission-order-steps-stage .mission-sequence-card-frame {
  min-height: clamp(106px, 15vh, 128px) !important;
}

.mission-order-steps-stage .mission-sequence-art-wrap {
  width: clamp(42px, 4.2vw, 54px);
  height: clamp(42px, 4.2vw, 54px);
}

.mission-order-steps-stage .mission-sequence-card-art strong {
  font-size: clamp(9px, 0.76vw, 11px);
}

.mission-order-steps-stage .mission-reorder-popover {
  bottom: clamp(320px, 48vh, 370px);
}

.mission-order-steps-stage .mission-reorder-full-actions {
  right: clamp(330px, 26vw, 410px) !important;
  bottom: clamp(46px, 9vh, 70px) !important;
}

.mission-algorithm-stage .mission-guided-top {
  width: min(45vw, 620px) !important;
}

.mission-algorithm-stage .mission-guided-top-copy {
  inset: 16% 13% 17% !important;
}

.mission-algorithm-stage .mission-guided-top-copy h1 {
  font-size: clamp(21px, 1.7vw, 26px) !important;
}

.mission-algorithm-stage .mission-guided-top-copy p {
  max-width: 46ch;
  margin: 3px 0 7px !important;
  font-size: clamp(9px, 0.7vw, 10px) !important;
  line-height: 1.14 !important;
}

.mission-algorithm-stage .mission-guided-progress {
  width: min(86%, 430px) !important;
  grid-template-columns: auto max-content minmax(150px, 1fr) max-content !important;
  gap: 8px !important;
}

.mission-algorithm-stage .mission-guided-progress strong,
.mission-algorithm-stage .mission-guided-progress b {
  white-space: nowrap !important;
}

.mission-algorithm-stage .mission-reorder-track-image {
  left: clamp(112px, 11vw, 170px);
  right: clamp(112px, 11vw, 170px);
  bottom: clamp(-118px, -14vh, -82px);
  opacity: 0.92;
}

.mission-algorithm-stage .mission-reorder-lane-art {
  left: clamp(58px, 5vw, 84px) !important;
  right: clamp(172px, 14vw, 230px) !important;
  bottom: clamp(234px, 37vh, 268px) !important;
  grid-template-columns: repeat(5, minmax(116px, 1fr)) !important;
  gap: clamp(8px, 1vw, 13px) !important;
}

.mission-algorithm-stage .mission-sequence-card-art,
.mission-algorithm-stage .mission-sequence-card-frame {
  min-height: clamp(128px, 17vh, 152px) !important;
}

.mission-algorithm-stage .mission-sequence-card-frame {
  padding: clamp(9px, 1vw, 12px);
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 248, 198, 0.52), transparent 48%),
    linear-gradient(180deg, rgba(255, 251, 222, 0.94), rgba(255, 232, 174, 0.9));
}

.mission-algorithm-stage .mission-sequence-art-wrap {
  width: clamp(66px, 6.8vw, 96px);
  height: clamp(54px, 5.9vw, 84px);
}

.mission-algorithm-stage .mission-sequence-art-wrap img {
  transform: scale(1.08);
}

.mission-algorithm-stage .mission-sequence-card-art:hover .mission-sequence-art-wrap img {
  transform: scale(1.18) rotate(-1deg);
}

.mission-algorithm-stage .mission-sequence-card-art strong {
  max-width: 16ch;
  font-size: clamp(9px, 0.74vw, 11px);
  line-height: 1.05;
}

.mission-algorithm-stage .mission-sequence-label {
  font-size: 8px;
}

.mission-algorithm-stage .mission-reorder-popover {
  bottom: clamp(315px, 47vh, 365px);
}

.mission-algorithm-stage .mission-reorder-full-actions {
  right: clamp(315px, 25vw, 395px) !important;
  bottom: clamp(28px, 6vh, 46px) !important;
}

.mission-screen-order-full .mission-guided-side-card {
  position: absolute;
  z-index: 7;
  top: 14px;
  min-height: 78px;
  padding: 11px 17px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff7d8;
  background:
    radial-gradient(circle at 15% 15%, rgba(99, 219, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(19, 66, 120, 0.97), rgba(5, 28, 61, 0.98));
  border: 2px solid rgba(255, 199, 80, 0.82);
  border-radius: 18px 8px 18px 8px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.18),
    inset 0 -4px 0 rgba(0, 0, 0, 0.22),
    0 10px 22px rgba(0, 25, 54, 0.32),
    0 0 0 1px rgba(54, 211, 255, 0.18);
}

.mission-screen-order-full .mission-guided-side-card::before,
.mission-screen-order-full .mission-guided-side-card::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffe28b, #c77a18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 2px 0 rgba(72, 35, 7, 0.5),
    0 0 10px rgba(255, 207, 76, 0.45);
}

.mission-screen-order-full .mission-guided-side-card::before {
  left: 8px;
  top: -8px;
}

.mission-screen-order-full .mission-guided-side-card::after {
  right: 8px;
  bottom: -8px;
}

.mission-screen-order-full .mission-guided-side-card-left {
  left: 28px;
  min-width: 238px;
}

.mission-screen-order-full .mission-guided-side-card-right {
  right: 28px;
  min-width: 190px;
  padding: 9px 13px;
}

.mission-screen-order-full .mission-guided-side-copy {
  display: grid;
  gap: 3px;
}

.mission-screen-order-full .mission-guided-side-card strong {
  font-size: 18px;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.42);
}

.mission-screen-order-full .mission-guided-side-card small {
  font-size: 11px;
  font-weight: 950;
  color: #bfeeff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.36);
}

.mission-screen-order-full .mission-guided-side-card b {
  min-width: 60px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 999px;
  color: #321b04;
  text-align: center;
  background: linear-gradient(180deg, #ffe66f, #f4a51d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.mission-screen-order-full .mission-guided-side-card button {
  border: 0;
  padding: 0;
  min-width: 58px;
  display: grid;
  place-items: center;
  gap: 2px;
  color: #fff7d8;
  background: transparent;
  cursor: pointer;
}

@media (min-width: 1121px) and (max-height: 760px) {
  .mission-screen-create-algorithm,
  .mission-screen-create-algorithm .mission-panel,
  .mission-screen-create-algorithm .mission-guided-stage {
    height: 100vh !important;
    min-height: 0 !important;
  }

  .mission-algorithm-stage .mission-guided-top {
    top: -6px !important;
    width: min(45vw, 620px) !important;
  }

  .mission-algorithm-stage .mission-guided-progress {
    width: min(86%, 430px) !important;
    grid-template-columns: auto max-content minmax(150px, 1fr) max-content !important;
  }

  .mission-algorithm-stage .mission-guided-progress strong,
  .mission-algorithm-stage .mission-guided-progress b {
    white-space: nowrap !important;
  }

  .mission-algorithm-stage .mission-reorder-track-image {
    left: clamp(92px, 10vw, 145px);
    right: clamp(92px, 10vw, 145px);
    bottom: clamp(-128px, -15vh, -92px);
  }

  .mission-algorithm-stage .mission-reorder-lane-art {
    left: clamp(54px, 5vw, 76px) !important;
    right: clamp(156px, 13vw, 205px) !important;
    bottom: clamp(216px, 35vh, 238px) !important;
    gap: 8px !important;
  }

  .mission-algorithm-stage .mission-sequence-card-art,
  .mission-algorithm-stage .mission-sequence-card-frame {
    min-height: clamp(112px, 15vh, 126px) !important;
  }

  .mission-algorithm-stage .mission-sequence-art-wrap {
    width: clamp(54px, 5.5vw, 76px);
    height: clamp(46px, 5vw, 68px);
  }

  .mission-algorithm-stage .mission-reorder-full-actions {
    bottom: clamp(18px, 4vh, 30px) !important;
  }
}

.mission-screen-error-hunt::before {
  background:
    linear-gradient(180deg, rgba(0, 22, 44, 0.02), rgba(0, 38, 65, 0.08)),
    url("./img/mission4-kitchen-bg.png") center center / cover no-repeat;
}

.mission-screen-error-hunt .mission-panel {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
}

.mission-error-hunt-stage {
  position: relative;
  height: 100%;
  min-height: 640px;
  isolation: isolate;
}

.mission-error-hunt-workbench {
  position: absolute;
  left: clamp(44px, 5vw, 84px);
  right: clamp(330px, 30vw, 430px);
  top: clamp(190px, 25vh, 226px);
  bottom: clamp(70px, 11vh, 96px);
  z-index: 4;
  display: grid;
  align-content: center;
}

.mission-error-hunt-counter {
  position: absolute;
  inset: 4% 2% 6%;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 238, 169, 0.18), rgba(5, 36, 64, 0.18)),
    linear-gradient(180deg, rgba(12, 67, 104, 0.24), rgba(4, 29, 56, 0.44));
  border: 2px solid rgba(255, 207, 88, 0.34);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.16),
    inset 0 -8px 0 rgba(0, 0, 0, 0.18),
    0 18px 34px rgba(0, 23, 51, 0.18);
  overflow: hidden;
}

.mission-error-hunt-counter::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 11%;
  height: 28%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(154, 92, 35, 0.82), rgba(91, 50, 21, 0.92));
  box-shadow:
    inset 0 3px 0 rgba(255, 219, 138, 0.2),
    0 16px 24px rgba(0, 0, 0, 0.18);
}

.mission-error-hunt-jar {
  position: absolute;
  right: 8%;
  bottom: 19%;
  width: 86px;
  height: 112px;
  border-radius: 20px 20px 28px 28px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.28), transparent 22%),
    linear-gradient(180deg, rgba(255, 249, 204, 0.62), rgba(247, 193, 61, 0.82));
  border: 4px solid rgba(206, 240, 255, 0.72);
  box-shadow: 0 18px 24px rgba(0, 0, 0, 0.18), inset 0 -10px 0 rgba(219, 135, 22, 0.22);
  animation: missionJarGlow 3.2s ease-in-out infinite;
}

.mission-error-hunt-lemon {
  position: absolute;
  width: 42px;
  height: 34px;
  border-radius: 55% 45% 55% 45%;
  background: radial-gradient(circle at 32% 30%, #fff7a3, #ffd63f 48%, #e59a17);
  border: 2px solid rgba(125, 82, 10, 0.18);
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.18);
  animation: missionLemonBounce 3.4s ease-in-out infinite;
}

.mission-error-hunt-lemon.lemon-a {
  left: 9%;
  bottom: 25%;
}

.mission-error-hunt-lemon.lemon-b {
  left: 15%;
  bottom: 20%;
  animation-delay: -1.1s;
  transform: scale(0.86) rotate(-12deg);
}

.mission-error-hunt-spoon {
  position: absolute;
  right: 20%;
  bottom: 28%;
  width: 110px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f9fbff, #8aa8be);
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.2);
  transform: rotate(-18deg);
}

.mission-error-hunt-options {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
  align-items: stretch;
}

.mission-error-route {
  position: relative;
  min-height: clamp(230px, 33vh, 296px);
  padding: 18px 14px 16px;
  border: 3px solid rgba(255, 210, 96, 0.62);
  border-radius: 8px;
  color: #4a2b07;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.84), transparent 38%),
    linear-gradient(180deg, #fff7d9, #f4dfaa);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.72),
    inset 0 -6px 0 rgba(179, 112, 28, 0.18),
    0 18px 26px rgba(0, 27, 54, 0.26);
  cursor: pointer;
  transform-origin: center bottom;
  animation: missionRecipeEnter 0.66s cubic-bezier(0.2, 0.9, 0.18, 1.08) both;
  animation-delay: calc(var(--route-index, 0) * 100ms + 0.12s);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.mission-error-route:hover,
.mission-error-route:focus-visible {
  outline: none;
  transform: translateY(-8px) rotate(-1deg);
  filter: brightness(1.04);
}

.mission-error-route.selected {
  border-color: rgba(116, 244, 126, 0.95);
  box-shadow:
    0 0 0 6px rgba(255, 236, 126, 0.34),
    inset 0 2px 0 rgba(255, 255, 255, 0.8),
    inset 0 -6px 0 rgba(50, 146, 54, 0.16),
    0 24px 34px rgba(0, 27, 54, 0.32);
  transform: translateY(-10px) scale(1.02);
}

.mission-error-route-tag {
  min-height: 28px;
  padding: 6px 11px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff7dc;
  font-weight: 950;
  font-size: 12px;
  background: linear-gradient(180deg, #174d86, #08264d);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.2);
}

.mission-error-route-flow {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.mission-error-step {
  min-height: 38px;
  padding: 6px 8px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 6px 12px rgba(83, 51, 10, 0.12);
}

.mission-error-step i,
.mission-error-preview-steps i {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff7d9;
  font-style: normal;
  font-weight: 950;
  background: linear-gradient(180deg, #27ad62, #126939);
}

.mission-error-step strong {
  font-size: clamp(11px, 0.98vw, 14px);
  line-height: 1.05;
}

.mission-error-arrow {
  width: 22px;
  height: 12px;
  justify-self: center;
  background: linear-gradient(90deg, transparent 0 20%, rgba(49, 28, 5, 0.32) 20% 80%, transparent 80%);
  clip-path: polygon(0 35%, 62% 35%, 62% 0, 100% 50%, 62% 100%, 62% 65%, 0 65%);
}

.mission-error-hunt-preview {
  position: absolute;
  z-index: 5;
  right: clamp(42px, 4vw, 70px);
  bottom: clamp(122px, 18vh, 158px);
  width: min(310px, 25vw);
  display: grid;
  justify-items: center;
  gap: 4px;
}

.mission-error-preview-card {
  width: 100%;
  padding: 13px;
  border: 2px solid rgba(255, 199, 80, 0.58);
  border-radius: 8px;
  color: #f7fbff;
  background: linear-gradient(180deg, rgba(18, 61, 108, 0.96), rgba(5, 28, 61, 0.98));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.13), 0 14px 24px rgba(0, 20, 46, 0.28);
}

.mission-error-preview-card p {
  margin: 6px 0 0;
  color: #d6ebff;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.mission-error-preview-steps {
  display: grid;
  gap: 7px;
}

.mission-error-preview-steps span {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  animation: missionRecipeStepPulse 1.9s ease-in-out infinite;
  animation-delay: calc(var(--step-index, 0) * 180ms);
}

.mission-error-preview-steps b {
  font-size: 12px;
  line-height: 1.1;
}

.mission-error-hunt-actions {
  left: auto !important;
  right: clamp(62px, 6vw, 100px) !important;
  bottom: clamp(26px, 5vh, 40px) !important;
  width: min(260px, 22vw) !important;
  grid-template-columns: minmax(0, 1fr) !important;
  transform: none !important;
  z-index: 8;
}

.mission-error-hunt-actions .mission-first-steps-run:disabled {
  filter: saturate(0.6) brightness(0.82);
  opacity: 0.72;
  cursor: default;
}

@keyframes missionRecipeEnter {
  0% {
    opacity: 0;
    transform: translateY(18px) rotate(2deg) scale(0.92);
  }

  100% {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
  }
}

@keyframes missionRecipeStepPulse {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(4px);
  }
}

@keyframes missionJarGlow {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.12);
  }
}

@keyframes missionLemonBounce {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -8px;
  }
}

.mission-first-steps-run {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 18px;
  color: #fff7d8;
  font-size: clamp(14px, 1.1vw, 17px);
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, #ffd85a, #f09a18 58%, #c56605);
  border: 3px solid rgba(255, 245, 154, 0.86);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.42),
    0 7px 0 rgba(126, 56, 3, 0.72),
    0 14px 18px rgba(0, 22, 52, 0.28),
    0 0 18px rgba(255, 214, 74, 0.34);
  text-shadow: 0 2px 0 rgba(104, 45, 3, 0.72);
  transition: transform 0.14s ease, filter 0.14s ease;
}

.mission-first-steps-run:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
}

.mission-screen-first-steps .mission-assistant {
  display: grid !important;
  right: clamp(8px, 1vw, 18px) !important;
  bottom: clamp(44px, 7vh, 70px) !important;
}

.mission-screen-first-steps .mission-assistant-trigger {
  width: 124px !important;
  height: 124px !important;
}

.mission-screen-first-steps .mission-assistant-trigger img {
  width: 138px !important;
  transform: translate(-8px, -12px) !important;
}

.mission-screen-first-steps .mission-assistant:hover .mission-assistant-trigger img,
.mission-screen-first-steps .mission-assistant.open .mission-assistant-trigger img {
  transform: translate(-8px, -18px) scale(1.03) !important;
}

.mission-screen-first-steps .mission-assistant-bubble {
  right: 116px !important;
  bottom: 16px !important;
}

/* Camino guiado fantasy aura and lighthouse sweep. */
.mission-screen-path-guided .mission-guided-player {
  background:
    radial-gradient(circle at 50% 58%, rgba(255, 242, 141, 0.38), rgba(255, 132, 33, 0.2) 42%, transparent 72%) !important;
  box-shadow:
    0 0 0 3px rgba(255, 218, 82, 0.56),
    0 0 18px rgba(255, 152, 43, 0.78),
    0 0 32px rgba(255, 74, 21, 0.34) !important;
}

.mission-screen-path-guided .mission-guided-player::before {
  content: "" !important;
  position: absolute !important;
  inset: -18% -12% -8% !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  height: auto !important;
  z-index: -1;
  border-radius: 44% 56% 50% 50%;
  background:
    radial-gradient(circle at 50% 78%, rgba(255, 245, 164, 0.74), transparent 18%),
    conic-gradient(from 0deg, rgba(255, 209, 72, 0), rgba(255, 126, 32, 0.68), rgba(255, 58, 24, 0.44), rgba(255, 209, 72, 0));
  filter: blur(1px) drop-shadow(0 0 10px rgba(255, 120, 25, 0.66));
  opacity: 0.88;
  clip-path: polygon(50% 0, 61% 27%, 78% 10%, 72% 42%, 96% 35%, 76% 58%, 94% 72%, 65% 70%, 58% 100%, 46% 72%, 18% 91%, 31% 62%, 3% 57%, 27% 43%, 14% 18%, 38% 30%);
  animation: guidedFireAura 1.3s ease-in-out infinite;
}

.mission-screen-path-guided .mission-guided-player::after {
  background:
    radial-gradient(ellipse, rgba(83, 31, 0, 0.34), transparent 72%) !important;
}

.mission-screen-path-guided .mission-guided-player.is-running::before {
  inset: -24% -18% -12% !important;
  background:
    radial-gradient(circle at 50% 78%, rgba(255, 250, 184, 0.82), transparent 17%),
    conic-gradient(from 20deg, rgba(255, 209, 72, 0), rgba(255, 151, 38, 0.84), rgba(255, 52, 23, 0.54), rgba(255, 209, 72, 0));
  animation: guidedFireAuraRun 0.42s ease-in-out infinite !important;
}

.mission-guided-lighthouse-beam {
  position: absolute;
  left: calc(var(--tile-x) + 7%);
  top: calc(var(--tile-y) - 21%);
  z-index: 4;
  width: 50%;
  height: 16%;
  transform-origin: 0 50%;
  transform: rotate(-18deg);
  pointer-events: none;
  opacity: 0.72;
  background:
    linear-gradient(90deg, rgba(255, 244, 166, 0.62), rgba(255, 244, 166, 0.22) 45%, rgba(255, 244, 166, 0) 100%);
  clip-path: polygon(0 42%, 100% 0, 100% 100%, 0 58%);
  filter: blur(1px) drop-shadow(0 0 12px rgba(255, 231, 98, 0.52));
  mix-blend-mode: screen;
  animation: guidedLighthouseSweep 4.2s ease-in-out infinite;
}

.mission-guided-lighthouse-beam::after {
  content: "";
  position: absolute;
  left: -10px;
  top: 32%;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 245, 0.95), rgba(255, 202, 55, 0.72), transparent 72%);
  animation: guidedLighthousePulse 1.2s ease-in-out infinite;
}

@keyframes guidedFireAura {
  0%,
  100% {
    transform: scale(0.94) rotate(-4deg);
    opacity: 0.72;
  }

  50% {
    transform: scale(1.08) rotate(5deg);
    opacity: 0.98;
  }
}

@keyframes guidedFireAuraRun {
  0%,
  100% {
    transform: scale(0.98) rotate(-10deg);
    opacity: 0.82;
  }

  50% {
    transform: scale(1.16) rotate(12deg);
    opacity: 1;
  }
}

@keyframes guidedLighthouseSweep {
  0%,
  100% {
    transform: rotate(-34deg) scaleX(0.82);
    opacity: 0.32;
  }

  45% {
    transform: rotate(18deg) scaleX(1.08);
    opacity: 0.78;
  }

  60% {
    transform: rotate(26deg) scaleX(0.9);
    opacity: 0.42;
  }
}

@keyframes guidedLighthousePulse {
  0%,
  100% {
    transform: scale(0.82);
    opacity: 0.72;
  }

  50% {
    transform: scale(1.22);
    opacity: 1;
  }
}

.mission-guided-birds,
.mission-guided-fish-layer,
.mission-guided-boat-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.mission-guided-birds {
  z-index: 1;
}

.mission-guided-birds span {
  position: absolute;
  width: 28px;
  height: 12px;
  opacity: 0.7;
  animation: missionGuidedBirdCruise 18s linear infinite;
}

.mission-guided-birds span::before,
.mission-guided-birds span::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 14px;
  height: 8px;
  border-top: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
}

.mission-guided-birds span::before {
  left: 0;
  transform: rotate(15deg);
}

.mission-guided-birds span::after {
  right: 0;
  transform: rotate(-15deg);
}

.mission-guided-birds .bird-a { left: -5%; top: 16%; animation-duration: 24s; }
.mission-guided-birds .bird-b { left: 28%; top: 11%; transform: scale(0.75); animation-duration: 28s; animation-delay: -8s; }
.mission-guided-birds .bird-c { left: 62%; top: 20%; transform: scale(0.62); animation-duration: 26s; animation-delay: -14s; }
.mission-guided-birds .bird-d { left: 80%; top: 14%; transform: scale(0.88); animation-duration: 30s; animation-delay: -4s; }

.mission-guided-fish-layer {
  z-index: 1;
}

.mission-guided-fish-layer span {
  position: absolute;
  width: 48px;
  height: 16px;
  opacity: 0.22;
  border-radius: 999px 60% 60% 999px;
  background: linear-gradient(90deg, rgba(131, 242, 255, 0), rgba(181, 255, 244, 0.7), rgba(42, 181, 229, 0.22));
  filter: blur(0.4px);
  animation: missionGuidedFishSwim 16s linear infinite;
}

.mission-guided-fish-layer span::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 3px;
  width: 12px;
  height: 10px;
  background: rgba(181, 255, 244, 0.48);
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

.mission-guided-fish-layer .fish-a { left: 2%; top: 58%; animation-duration: 18s; }
.mission-guided-fish-layer .fish-b { left: 48%; top: 68%; transform: scale(0.7) scaleX(-1); animation-duration: 14s; animation-delay: -5s; }
.mission-guided-fish-layer .fish-c { left: 76%; top: 50%; transform: scale(0.55); animation-duration: 20s; animation-delay: -10s; }

.mission-guided-boat-wrap {
  z-index: 2;
  inset: auto 0 0 0;
  height: 44%;
  overflow: visible;
  animation: missionGuidedBoatTravel 28s linear infinite;
}

.mission-guided-boat {
  position: absolute;
  left: -180px;
  bottom: 42%;
  width: 118px;
  transform: scaleX(-1) rotate(-2deg);
  filter: drop-shadow(0 18px 10px rgba(0, 35, 65, 0.26));
  animation: missionGuidedBoatBob 3.2s ease-in-out infinite;
}

.mission-guided-boat-wake {
  position: absolute;
  left: -185px;
  bottom: calc(42% - 10px);
  width: 96px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(206, 255, 255, 0.55), rgba(255, 255, 255, 0));
  filter: blur(2px);
  animation: missionGuidedWake 1.6s ease-in-out infinite;
}

.mission-guided-boat-wake.wake-b {
  width: 66px;
  bottom: calc(42% - 22px);
  animation-delay: -0.6s;
}

@keyframes missionGuidedBirdCruise {
  0% {
    transform: translateX(-80px) translateY(0) scale(var(--bird-scale, 1));
  }

  100% {
    transform: translateX(118vw) translateY(-14px) scale(var(--bird-scale, 1));
  }
}

@keyframes missionGuidedFishSwim {
  0% {
    transform: translateX(-90px);
  }

  100% {
    transform: translateX(108vw);
  }
}

@keyframes missionGuidedBoatTravel {
  0% {
    transform: translateX(-12vw);
    opacity: 0;
  }

  8%,
  86% {
    opacity: 0.92;
  }

  100% {
    transform: translateX(118vw);
    opacity: 0;
  }
}

@keyframes missionGuidedBoatBob {
  0%,
  100% {
    transform: scaleX(-1) translateY(0) rotate(-2deg);
  }

  50% {
    transform: scaleX(-1) translateY(-8px) rotate(2deg);
  }
}

@keyframes missionGuidedWake {
  0%,
  100% {
    opacity: 0.22;
    transform: scaleX(0.78);
  }

  50% {
    opacity: 0.62;
    transform: scaleX(1.15);
  }
}

/* Camino guiado boat pass: larger ship crossing through an open water lane. */
.mission-guided-boat-wrap {
  inset: 0 !important;
  height: 100% !important;
  z-index: 1 !important;
  animation-duration: 34s !important;
}

.mission-guided-boat {
  width: 190px !important;
  bottom: auto !important;
  top: 31% !important;
  left: -220px !important;
}

.mission-guided-boat-wake {
  width: 150px !important;
  bottom: auto !important;
  top: calc(31% + 92px) !important;
  left: -218px !important;
}

.mission-guided-boat-wake.wake-b {
  width: 105px !important;
  bottom: auto !important;
  top: calc(31% + 108px) !important;
}

.mission-screen-path-guided .mission-assistant {
  right: 12px !important;
  bottom: 145px !important;
}

.mission-screen-path-guided .mission-assistant-bubble {
  right: 136px !important;
  bottom: 26px !important;
}

.mission-screen-path-guided .mission-guided-player {
  transition:
    left 0.34s cubic-bezier(0.2, 0.88, 0.26, 1.12),
    top 0.34s cubic-bezier(0.2, 0.88, 0.26, 1.12),
    transform 0.2s ease !important;
}

.mission-guided-player::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2%;
  width: 86%;
  height: 18%;
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(0, 27, 49, 0.34), transparent 72%);
  transform: translateX(-50%);
  animation: guidedRobotShadow 2.1s ease-in-out infinite;
  z-index: -1;
}

.mission-guided-player.is-running img {
  animation: guidedRobotStride 0.34s ease-in-out infinite;
}

.mission-guided-player.is-running::after {
  animation: guidedRobotRunShadow 0.34s ease-in-out infinite;
}

.mission-guided-player.is-running::before {
  width: 112% !important;
  height: 28% !important;
  left: -48% !important;
  top: 68% !important;
  background:
    radial-gradient(ellipse at 28% 45%, rgba(255, 255, 255, 0.88), transparent 30%),
    linear-gradient(90deg, rgba(117, 245, 255, 0), rgba(117, 245, 255, 0.92), rgba(255, 255, 255, 0));
}

.mission-guided-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 48% 43%, rgba(255, 255, 255, 0.18), transparent 3%),
    radial-gradient(circle at 58% 70%, rgba(150, 255, 247, 0.14), transparent 4%),
    radial-gradient(circle at 38% 73%, rgba(255, 255, 255, 0.16), transparent 2.4%),
    linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.07) 36%, transparent 52%);
  mix-blend-mode: screen;
  opacity: 0.72;
  animation: missionGuidedWaterGleam 8s ease-in-out infinite;
}

.mission-screen-path-guided .mission-guided-board-wrap,
.mission-screen-path-guided .mission-guided-command-shell,
.mission-screen-path-guided .mission-guided-route-shell,
.mission-screen-path-guided .mission-guided-actions-panel,
.mission-screen-path-guided .mission-guided-side-card,
.mission-screen-path-guided .mission-assistant {
  z-index: 4;
}

.mission-screen-path-guided .mission-guided-command-shell,
.mission-screen-path-guided .mission-guided-route-shell {
  z-index: 5 !important;
}

.mission-screen-path-guided .mission-guided-actions-panel {
  z-index: 9 !important;
}

.mission-screen-path-guided .mission-guided-side-card {
  z-index: 7 !important;
}

.mission-screen-path-guided .mission-assistant {
  z-index: 10 !important;
}

.mission-screen-error-hunt .mission-error-hunt-actions {
  left: auto !important;
  right: clamp(58px, 6vw, 92px) !important;
  bottom: clamp(24px, 5vh, 38px) !important;
  width: min(250px, 21vw) !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
  align-items: center !important;
}

.mission-screen-final-path .mission-guided-stage {
  min-height: 0;
}

.mission-screen-final-path .mission-guided-top {
  top: 12px !important;
  width: min(34vw, 470px) !important;
}

.mission-screen-final-path .mission-guided-top-copy h1 {
  font-size: clamp(20px, 1.7vw, 25px) !important;
  line-height: 1.02 !important;
  max-width: 15ch;
}

.mission-screen-final-path .mission-guided-top-copy p {
  width: min(88%, 360px);
  margin-top: 3px !important;
  margin-bottom: 5px !important;
  font-size: clamp(8px, 0.72vw, 10px) !important;
  line-height: 1.16 !important;
}

.mission-screen-final-path .mission-guided-progress {
  grid-template-columns: auto auto minmax(72px, 116px) auto !important;
  font-size: 12px !important;
}

.mission-screen-final-path .mission-guided-star {
  width: 18px !important;
  height: 18px !important;
}

.mission-screen-final-path .mission-guided-progress-track {
  height: 18px !important;
}

.mission-screen-final-path .mission-guided-board-wrap {
  left: clamp(42px, 4.8vw, 70px) !important;
  bottom: clamp(8px, 2vh, 18px) !important;
  width: min(45vw, 615px) !important;
  overflow: visible;
}

.mission-screen-final-path .mission-guided-board-img {
  position: relative;
  z-index: 2;
}

.mission-screen-final-path .mission-guided-player {
  width: 8.6% !important;
}

.mission-screen-final-path .mission-guided-current-arrow {
  left: calc(var(--tile-x) + 4.6%) !important;
  width: 44px !important;
  height: 26px !important;
}

.mission-screen-final-path .mission-guided-lighthouse-beam {
  width: 34%;
  height: 12%;
  opacity: 0.52;
}

.mission-screen-final-path .mission-guided-command-shell {
  right: clamp(46px, 5.5vw, 86px) !important;
  top: clamp(142px, 21vh, 158px) !important;
  width: min(27vw, 365px) !important;
}

.mission-screen-final-path .mission-guided-route-shell {
  right: clamp(48px, 5.8vw, 90px) !important;
  top: clamp(302px, 45vh, 326px) !important;
  width: min(28vw, 382px) !important;
}

.mission-screen-final-path .mission-guided-route-list {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 1.2% !important;
}

.mission-screen-final-path .mission-guided-route-slot {
  border-width: 2px;
}

.mission-screen-final-path .mission-guided-route-slot > span {
  top: -12px !important;
  width: 22px !important;
  height: 22px !important;
  font-size: 11px !important;
}

.mission-screen-final-path .mission-guided-actions-panel {
  right: clamp(52px, 6vw, 94px) !important;
  bottom: clamp(54px, 8vh, 70px) !important;
  width: min(28vw, 382px) !important;
  grid-template-columns: minmax(138px, 1fr) 48px 48px !important;
}

.mission-screen-final-path .mission-assistant {
  display: grid !important;
  left: clamp(590px, 46vw, 630px) !important;
  right: auto !important;
  bottom: clamp(18px, 3vh, 30px) !important;
  justify-items: start !important;
  z-index: 8 !important;
}

.mission-screen-final-path .mission-assistant-trigger {
  width: 98px !important;
  height: auto !important;
}

.mission-screen-final-path .mission-assistant-trigger img {
  width: 104px !important;
  transform: translate(-2px, -4px) !important;
}

.mission-screen-final-path .mission-assistant-bubble {
  left: 68px !important;
  right: auto !important;
  bottom: 76px !important;
  width: min(230px, 19vw) !important;
  padding: 12px 13px !important;
  transform-origin: bottom left !important;
}

.mission-screen-final-path .mission-assistant-bubble::after {
  left: 22px !important;
  right: auto !important;
}

.mission-screen-final-path .mission-assistant-bubble strong {
  font-size: 16px !important;
}

.mission-screen-final-path .mission-assistant-bubble p,
.mission-screen-final-path .mission-assistant-bubble small {
  font-size: 11px !important;
  line-height: 1.3 !important;
}

.mission-screen-final-path .mission-assistant-actions {
  display: none !important;
}

.mission-screen-final-path .mission-guided-side-card-left .mission-guided-side-copy strong {
  font-size: clamp(16px, 1.45vw, 21px);
}

@media (max-width: 1120px) {
  .mission-screen-final-path .mission-guided-board-wrap {
    width: min(92vw, 760px) !important;
    margin-top: 128px;
  }

  .mission-screen-final-path .mission-guided-board-img-echo {
    display: none;
  }

  .mission-screen-final-path .mission-guided-command-shell,
  .mission-screen-final-path .mission-guided-route-shell,
  .mission-screen-final-path .mission-guided-actions-panel {
    width: min(92vw, 520px) !important;
  }
}

@keyframes guidedRobotStride {
  0%,
  100% {
    transform: translateY(-8%) rotate(-5deg) scale(1);
  }

  50% {
    transform: translateY(-22%) rotate(7deg) scale(1.08);
  }
}

@keyframes guidedRobotShadow {
  0%,
  100% {
    opacity: 0.36;
    transform: translateX(-50%) scaleX(0.92);
  }

  50% {
    opacity: 0.22;
    transform: translateX(-50%) scaleX(0.72);
  }
}

@keyframes guidedRobotRunShadow {
  0%,
  100% {
    opacity: 0.38;
    transform: translateX(-50%) scaleX(1.02);
  }

  50% {
    opacity: 0.18;
    transform: translateX(-50%) scaleX(0.62);
  }
}

@keyframes missionGuidedWaterGleam {
  0%,
  100% {
    opacity: 0.42;
    transform: translateX(-2%);
  }

  50% {
    opacity: 0.76;
    transform: translateX(2%);
  }
}

/* =========================
   UX polish and text fit pass
========================= */
button,
input,
select,
textarea {
  font: inherit;
}

.btn,
.pill,
.sidebar-card,
.dashboard-card,
.dashboard-hero,
.dashboard-mini-item,
.dashboard-table-row,
.mission-card,
.mission-panel,
.start-art-hero,
.start-art-login-panel,
.start-art-role-card,
.institution-modal-panel {
  overflow-wrap: anywhere;
  word-break: normal;
}

.btn,
.pill,
.start-art-submit,
.start-art-login-link,
.start-art-back-link,
.dashboard-role-tab,
.dashboard-action-item,
.dashboard-jump-card {
  min-width: 0;
  white-space: normal;
}

.start-art-screen {
  min-height: 100vh;
  padding: clamp(10px, 2vw, 22px);
  overflow: auto;
}

.start-art-board {
  min-height: min(860px, calc(100vh - 28px));
  border-radius: clamp(20px, 2.2vw, 30px);
}

.start-art-overlay {
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 520px);
  min-height: inherit;
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
  padding: clamp(18px, 4vw, 54px);
}

.start-art-overlay > .start-art-hero {
  max-width: 470px;
  padding: clamp(22px, 2.3vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 236, 156, 0.25), transparent 30%),
    linear-gradient(180deg, rgba(8, 48, 82, 0.86), rgba(4, 28, 54, 0.92));
  backdrop-filter: blur(24px) saturate(1.2);
  box-shadow:
    0 24px 48px rgba(4, 57, 108, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.start-art-overlay > .start-art-hero h1 {
  max-width: 100%;
  font-size: clamp(40px, 4.2vw, 62px);
  line-height: 0.98;
  letter-spacing: 0;
}

.start-art-overlay > .start-art-hero p {
  max-width: 38ch;
  font-size: clamp(15px, 1.18vw, 18px);
  line-height: 1.5;
  white-space: normal !important;
}

.start-art-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.start-art-pill {
  max-width: 100%;
  padding: 0.68em 0.94em;
  border-radius: 999px;
  font-size: clamp(11px, 0.82vw, 13px);
  line-height: 1.15;
}

.start-art-overlay > .start-art-hero .start-art-note {
  max-width: 39ch;
  font-size: clamp(12px, 0.9vw, 14px);
  line-height: 1.42;
}

.start-art-overlay > .start-art-login-panel {
  max-width: 520px;
  border-radius: 24px;
}

.start-art-login-panel.chooser {
  padding: clamp(18px, 2vw, 24px);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 219, 118, 0.2), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(233, 248, 255, 0.94));
  box-shadow:
    0 24px 46px rgba(18, 95, 154, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.start-art-login-panel.chooser h2 {
  max-width: 12ch;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.05;
  letter-spacing: 0;
}

.start-art-login-panel.chooser > p {
  max-width: 42ch;
  font-size: clamp(13px, 0.96vw, 15px);
  line-height: 1.48;
}

.chooser-grid.start-art-access-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.chooser-grid .start-art-role-card,
.chooser-grid .start-art-role-card:nth-child(5) {
  min-height: 92px;
  grid-column: auto;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  align-content: start;
  align-items: start;
  gap: 6px 12px;
  padding: 14px;
  border-radius: 16px;
}

.chooser-grid .start-art-role-icon {
  grid-row: 1 / 4;
  width: 42px;
  height: 42px;
}

.chooser-grid .start-art-role-card strong,
.chooser-grid .start-art-role-card > span:not(.start-art-role-icon):not(.start-art-role-arrow),
.chooser-grid .start-art-role-demo {
  grid-column: 2;
  min-width: 0;
}

.chooser-grid .start-art-role-card strong {
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.18;
}

.chooser-grid .start-art-role-card > span:not(.start-art-role-icon):not(.start-art-role-arrow) {
  font-size: clamp(11px, 0.85vw, 13px);
  line-height: 1.35;
}

.chooser-grid .start-art-role-demo {
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.25;
}

.chooser-grid .start-art-role-arrow {
  right: 10px;
  bottom: 10px;
  width: 28px;
  height: 28px;
}

.start-art-login-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.start-art-login-link {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.15;
}

.start-art-form .start-input,
.dashboard-input {
  min-width: 0;
  text-overflow: ellipsis;
}

.start-art-submit {
  height: auto;
  min-height: 52px;
  padding: 12px 16px;
  font-size: clamp(15px, 1vw, 18px);
  line-height: 1.16;
}

.dashboard-hero h1,
.dashboard-card h2,
.mission-title,
.mission-panel h1,
.sidebar-card h1 {
  line-height: 1.12;
  letter-spacing: 0;
}

.dashboard-card.stat strong,
.dashboard-table-row strong,
.dashboard-mini-item strong,
.stat-box strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 1080px) {
  .start-art-board {
    aspect-ratio: auto;
    min-height: 100vh;
  }

  .start-art-overlay {
    grid-template-columns: 1fr;
    overflow: visible;
    align-content: start;
    background:
      linear-gradient(180deg, rgba(102, 194, 238, 0.88), rgba(24, 116, 190, 0.93));
  }

  .start-art-scene {
    min-height: 340px;
  }

  .start-art-hero {
    margin-top: 64px;
  }

  .start-art-overlay > .start-art-hero,
  .start-art-overlay > .start-art-login-panel {
    width: min(100%, 620px);
    max-width: min(100%, 620px);
  }
}

@media (max-width: 680px) {
  .start-art-screen {
    padding: 0;
  }

  .start-art-board {
    border-radius: 0;
  }

  .start-art-overlay {
    padding: 14px;
  }

  .start-art-scene {
    min-height: 260px;
  }

  .start-art-hero {
    margin-top: 42px;
  }

  .start-art-overlay > .start-art-hero h1 {
    font-size: clamp(34px, 13vw, 48px);
  }

  .chooser-grid.start-art-access-grid {
    grid-template-columns: 1fr;
  }

  .chooser-grid .start-art-role-card,
  .chooser-grid .start-art-role-card:nth-child(5) {
    min-height: 94px;
    grid-template-columns: 42px minmax(0, 1fr) 28px;
    grid-template-rows: auto auto auto;
    align-items: center;
  }

  .chooser-grid .start-art-role-arrow {
    position: static;
    grid-column: 3;
    grid-row: 1 / 4;
    place-self: center;
  }

  .start-art-login-row {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Minimal access cards
========================= */
.chooser-grid.start-art-access-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.chooser-grid .start-art-role-card,
.chooser-grid .start-art-role-card:nth-child(5) {
  --role-accent: #2f86d8;
  --role-accent-soft: rgba(47, 134, 216, 0.1);
  isolation: isolate;
  min-height: 94px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 26px;
  grid-template-rows: 1fr;
  align-items: start;
  gap: 12px;
  padding: 15px 16px;
  color: #18395d;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 252, 255, 0.9));
  border: 1px solid rgba(113, 163, 204, 0.34);
  box-shadow:
    0 10px 22px rgba(24, 93, 152, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  overflow: hidden;
}

.chooser-grid .start-art-role-card[data-role-card="parent"] {
  --role-accent: #20a47b;
  --role-accent-soft: rgba(32, 164, 123, 0.1);
}

.chooser-grid .start-art-role-card[data-role-card="teacher"] {
  --role-accent: #376edc;
  --role-accent-soft: rgba(55, 110, 220, 0.1);
}

.chooser-grid .start-art-role-card[data-role-card="institution"] {
  --role-accent: #c87935;
  --role-accent-soft: rgba(200, 121, 53, 0.12);
}

.chooser-grid .start-art-role-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background:
    radial-gradient(circle at 0% 0%, var(--role-accent-soft), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 248, 255, 0.96));
  transform: none;
  animation: none;
  transition: opacity 0.18s ease;
}

.chooser-grid .start-art-role-card:hover::before,
.chooser-grid .start-art-role-card.active::before {
  opacity: 1;
}

.chooser-grid .start-art-role-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--role-accent), white 42%);
  box-shadow:
    0 16px 28px rgba(24, 93, 152, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.chooser-grid .start-art-role-card.active {
  border-color: color-mix(in srgb, var(--role-accent), white 26%);
  background:
    radial-gradient(circle at 0% 0%, var(--role-accent-soft), transparent 44%),
    linear-gradient(180deg, #ffffff, #f0f8ff);
  box-shadow:
    0 16px 30px rgba(24, 93, 152, 0.14),
    0 0 0 3px color-mix(in srgb, var(--role-accent), transparent 82%),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.chooser-grid .start-art-role-icon {
  grid-column: 1;
  grid-row: 1;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: var(--role-accent);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid color-mix(in srgb, var(--role-accent), transparent 78%);
  box-shadow: none;
}

.chooser-grid .start-art-role-icon .ui-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.chooser-grid .start-art-role-copy {
  grid-column: 2;
  display: grid;
  min-width: 0;
  max-width: none !important;
  gap: 5px;
  text-align: left;
}

.chooser-grid .start-art-role-copy > span {
  max-width: none !important;
}

.chooser-grid .start-art-role-card strong,
.chooser-grid .start-art-role-card > span:not(.start-art-role-icon):not(.start-art-role-arrow),
.chooser-grid .start-art-role-demo {
  grid-column: auto;
}

.chooser-grid .start-art-role-card strong {
  color: #16375c;
  font-size: 16px;
  line-height: 1.16;
  font-weight: 850;
}

.chooser-grid .start-art-role-copy > span {
  color: #536f8e;
  font-size: 13px;
  line-height: 1.35;
}

.chooser-grid .start-art-role-demo {
  width: fit-content;
  max-width: 100%;
  margin-top: 4px;
  padding: 4px 7px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--role-accent), #12345b 34%);
  background: var(--role-accent-soft);
  font-size: 10px;
  line-height: 1.15;
  font-style: normal;
  font-weight: 800;
}

.chooser-grid .start-art-role-arrow {
  position: static;
  grid-column: 3;
  grid-row: 1;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  color: var(--role-accent);
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: 0.78;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.chooser-grid .start-art-role-arrow .ui-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.chooser-grid .start-art-role-card:hover .start-art-role-arrow,
.chooser-grid .start-art-role-card.active .start-art-role-arrow {
  opacity: 1;
  transform: translateX(2px);
}

@media (max-width: 680px) {
  .chooser-grid .start-art-role-card,
  .chooser-grid .start-art-role-card:nth-child(5) {
    min-height: 104px;
    grid-template-columns: 38px minmax(0, 1fr) 24px;
    padding: 14px;
  }

  .chooser-grid .start-art-role-icon {
    width: 36px;
    height: 36px;
  }

  .chooser-grid .start-art-role-copy > span {
    font-size: 12px;
  }
}

/* =========================
   Access chooser refinement
========================= */
.start-art-overlay > .start-art-login-panel.chooser {
  width: min(100%, 560px);
  max-width: 560px;
  max-height: none;
  overflow: visible;
  padding: 24px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 224, 142, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 255, 0.96));
  box-shadow:
    0 24px 48px rgba(18, 83, 139, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.start-art-login-panel.chooser h2 {
  max-width: 14ch;
  margin-top: 12px;
  font-size: clamp(30px, 2.7vw, 38px);
  line-height: 1.04;
}

.start-art-login-panel.chooser > p {
  max-width: 46ch;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.chooser-grid.start-art-access-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.chooser-grid .start-art-role-card,
.chooser-grid .start-art-role-card:nth-child(5) {
  --role-accent: #2679c9;
  --role-accent-soft: rgba(38, 121, 201, 0.08);
  min-height: 122px;
  grid-template-columns: 30px minmax(0, 1fr) 18px;
  align-items: start;
  gap: 10px;
  padding: 15px;
  border-radius: 14px;
  border: 1px solid rgba(95, 143, 184, 0.28);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 8px 18px rgba(27, 88, 143, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.chooser-grid .start-art-role-card[data-role-card] {
  --role-accent: #2679c9;
  --role-accent-soft: rgba(38, 121, 201, 0.08);
}

.chooser-grid .start-art-role-card::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 248, 255, 0.96));
}

.chooser-grid .start-art-role-card:hover {
  transform: translateY(-2px);
  border-color: rgba(38, 121, 201, 0.42);
  box-shadow:
    0 14px 24px rgba(27, 88, 143, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.chooser-grid .start-art-role-card.active {
  border-color: rgba(38, 121, 201, 0.66);
  background:
    linear-gradient(180deg, #ffffff, #eff8ff);
  box-shadow:
    0 12px 24px rgba(27, 88, 143, 0.11),
    0 0 0 3px rgba(38, 121, 201, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.chooser-grid .start-art-role-icon {
  grid-column: 1;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: #2679c9;
  background: transparent;
  box-shadow: none;
}

.chooser-grid .start-art-role-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chooser-grid .start-art-role-copy {
  gap: 6px;
}

.chooser-grid .start-art-role-card strong {
  color: #17385d;
  font-size: 15px;
  line-height: 1.18;
}

.chooser-grid .start-art-role-copy > span {
  color: #587593;
  font-size: 12px;
  line-height: 1.35;
}

.chooser-grid .start-art-role-demo {
  width: auto;
  margin-top: 3px;
  padding: 0;
  border-radius: 0;
  color: #3974aa;
  background: transparent;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 750;
}

.chooser-grid .start-art-role-arrow {
  grid-column: 3;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: #6c91b5;
  opacity: 0.72;
}

.chooser-grid .start-art-role-arrow svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chooser-grid .start-art-role-card:hover .start-art-role-arrow,
.chooser-grid .start-art-role-card.active .start-art-role-arrow {
  color: #2679c9;
}

@media (max-width: 680px) {
  .start-art-overlay > .start-art-login-panel.chooser {
    padding: 20px;
    overflow: visible;
  }

  .chooser-grid.start-art-access-grid {
    grid-template-columns: 1fr;
  }

  .chooser-grid .start-art-role-card,
  .chooser-grid .start-art-role-card:nth-child(5) {
    min-height: 96px;
    grid-template-columns: 30px minmax(0, 1fr) 18px;
  }
}

/* Student-only game cursor. */
body.student-game-cursor,
body.student-game-cursor * {
  cursor: url("./img/student-game-cursor.png") 5 3, auto !important;
}

/* Mission 4: visual lemonade routes. */
.mission-screen-error-hunt::before {
  background:
    linear-gradient(180deg, rgba(0, 34, 58, 0.04), rgba(0, 38, 65, 0.16)),
    url("./img/mission4-kitchen-bg.png") center center / cover no-repeat;
}

.mission-screen-error-hunt .mission-error-hunt-counter {
  display: none;
}

.mission-screen-error-hunt .mission-error-hunt-workbench {
  left: clamp(34px, 4vw, 68px);
  right: clamp(320px, 28vw, 410px);
  top: clamp(180px, 23vh, 214px);
  bottom: clamp(48px, 8vh, 72px);
  align-content: end;
}

.mission-screen-error-hunt .mission-error-hunt-options {
  gap: clamp(10px, 1.2vw, 16px);
}

.mission-screen-error-hunt .mission-error-route {
  min-height: clamp(300px, 45vh, 370px);
  padding: 14px 12px 13px;
  border-color: rgba(119, 73, 24, 0.42);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.88), transparent 42%),
    linear-gradient(180deg, rgba(255, 249, 222, 0.97), rgba(244, 222, 165, 0.96));
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.78),
    inset 0 -6px 0 rgba(153, 92, 24, 0.16),
    0 16px 24px rgba(61, 31, 8, 0.2);
}

.mission-screen-error-hunt .mission-error-route-tag {
  background: linear-gradient(180deg, #4d8c39, #245522);
}

.mission-screen-error-hunt .mission-error-route-flow {
  margin-top: 10px;
  gap: 5px;
}

.mission-screen-error-hunt .mission-error-step {
  min-height: 64px;
  grid-template-columns: 22px 68px minmax(0, 1fr);
  gap: 6px;
  padding: 4px 6px;
  border: 1px solid rgba(138, 91, 34, 0.12);
  background: rgba(255, 255, 255, 0.54);
}

.mission-screen-error-hunt .mission-error-step i {
  width: 22px;
  height: 22px;
  font-size: 11px;
}

.mission-screen-error-hunt .mission-error-step img {
  width: 68px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 5px 5px rgba(77, 42, 9, 0.16));
}

.mission-screen-error-hunt .mission-error-step strong {
  font-size: clamp(10px, 0.82vw, 12px);
  line-height: 1.1;
}

.mission-screen-error-hunt .mission-error-arrow {
  height: 8px;
}

.mission-screen-error-hunt .mission-error-preview-steps span {
  grid-template-columns: 22px 48px minmax(0, 1fr);
  gap: 6px;
}

.mission-screen-error-hunt .mission-error-preview-steps i {
  width: 22px;
  height: 22px;
  font-size: 11px;
}

.mission-screen-error-hunt .mission-error-preview-steps img {
  width: 48px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.18));
}

.mission-screen-error-hunt .mission-error-hunt-preview {
  top: clamp(170px, 23vh, 205px) !important;
  bottom: auto !important;
}

@media (max-width: 1120px) {
  .mission-screen-error-hunt .mission-error-hunt-workbench {
    position: relative;
    inset: auto;
    width: min(94vw, 920px);
    margin: 180px auto 20px;
  }

  .mission-screen-error-hunt .mission-error-hunt-options {
    grid-template-columns: 1fr;
  }

  .mission-screen-error-hunt .mission-error-route {
    min-height: 0;
  }
}

/* Mission 4: fit short desktop viewports without clipping the CTA. */
.mission-screen-error-hunt,
.mission-screen-error-hunt .mission-panel,
.mission-screen-error-hunt .mission-error-hunt-stage {
  min-height: 0 !important;
}

.mission-screen-error-hunt:has(.mission-assistant.open) .mission-error-hunt-preview {
  opacity: 0;
  pointer-events: none;
}

.mission-screen-error-hunt .mission-error-hunt-preview {
  transition: opacity 0.18s ease;
}

.mission-screen-error-hunt .mission-error-hunt-actions .mission-first-steps-run:disabled {
  opacity: 0.84;
  filter: saturate(0.72) brightness(0.9);
}

@media (min-width: 1121px) and (max-height: 760px) {
  .mission-screen-error-hunt,
  .mission-screen-error-hunt .mission-panel,
  .mission-screen-error-hunt .mission-error-hunt-stage {
    height: 100vh !important;
    min-height: 0 !important;
  }

  .mission-screen-error-hunt .mission-guided-top {
    top: -8px !important;
    width: min(34vw, 450px) !important;
  }

  .mission-screen-error-hunt .mission-guided-top-copy h1 {
    font-size: clamp(24px, 2.35vw, 34px) !important;
  }

  .mission-screen-error-hunt .mission-guided-top-copy p {
    margin-top: 2px !important;
    margin-bottom: 5px !important;
    font-size: clamp(10px, 0.82vw, 12px) !important;
  }

  .mission-screen-error-hunt .mission-guided-progress {
    width: min(72%, 310px) !important;
    font-size: 12px !important;
  }

  .mission-screen-error-hunt .mission-error-hunt-workbench {
    left: clamp(30px, 3.8vw, 58px);
    right: clamp(310px, 27vw, 390px);
    top: clamp(190px, 29vh, 220px);
    bottom: 50px;
  }

  .mission-screen-error-hunt .mission-error-route {
    min-height: 0;
    height: min(50vh, 340px);
    padding: 11px 10px 10px;
  }

  .mission-screen-error-hunt .mission-error-route-tag {
    min-height: 24px;
    padding: 4px 10px;
    font-size: 11px;
  }

  .mission-screen-error-hunt .mission-error-route-flow {
    margin-top: 8px;
    gap: 3px;
  }

  .mission-screen-error-hunt .mission-error-step {
    min-height: 52px;
    grid-template-columns: 20px 54px minmax(0, 1fr);
    padding: 3px 5px;
  }

  .mission-screen-error-hunt .mission-error-step i {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .mission-screen-error-hunt .mission-error-step img {
    width: 54px;
    height: 46px;
  }

  .mission-screen-error-hunt .mission-error-step strong {
    font-size: 11px;
  }

  .mission-screen-error-hunt .mission-error-arrow {
    height: 5px;
  }

  .mission-screen-error-hunt .mission-error-hunt-preview {
    top: clamp(145px, 22vh, 170px) !important;
    right: clamp(30px, 3vw, 48px);
    width: min(285px, 23vw);
  }

  .mission-screen-error-hunt .mission-error-preview-card {
    padding: 11px;
  }

  .mission-screen-error-hunt .mission-error-preview-steps {
    gap: 4px;
  }

  .mission-screen-error-hunt .mission-error-preview-steps span {
    grid-template-columns: 20px 40px minmax(0, 1fr);
  }

  .mission-screen-error-hunt .mission-error-preview-steps img {
    width: 40px;
    height: 34px;
  }

  .mission-screen-error-hunt .mission-error-hunt-actions {
    right: clamp(42px, 4vw, 64px) !important;
    bottom: 10px !important;
    width: min(250px, 21vw) !important;
  }

  .mission-screen-error-hunt .mission-error-hunt-actions .mission-first-steps-run {
    min-height: 50px;
  }

  .mission-screen-error-hunt .mission-assistant {
    right: 14px !important;
    bottom: 72px !important;
  }

  .mission-screen-error-hunt .mission-assistant-bubble {
    width: min(270px, 25vw) !important;
    top: auto !important;
    right: 80px !important;
    bottom: -58px !important;
    max-height: calc(100vh - 20px);
    overflow: auto;
  }
}

/* Mission 5: visual obstacle-route expedition. */
.mission-screen-obstacle-routes {
  height: 100vh;
  min-height: 620px;
  background:
    linear-gradient(180deg, rgba(0, 58, 112, 0.06), rgba(0, 38, 82, 0.22)),
    url("./img/mission5-ocean-bg.png?v=1") center center / 100% 100% no-repeat,
    #05a6e7;
}

.mission-screen-obstacle-routes::before {
  background: transparent;
}

.mission-screen-obstacle-routes::after {
  background:
    radial-gradient(circle at 48% 18%, rgba(255, 242, 166, 0.18), transparent 13%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(4, 28, 68, 0.22));
}

.mission-screen-obstacle-routes,
.mission-screen-obstacle-routes .mission-panel,
.mission-screen-obstacle-routes .mission5-stage {
  min-height: 0 !important;
}

.mission-screen-obstacle-routes .mission-panel,
.mission-screen-obstacle-routes .mission5-stage {
  height: 100% !important;
}

.mission-screen-obstacle-routes .mission-hero,
.mission-screen-obstacle-routes .mission-assistant {
  display: none !important;
}

.mission5-stage {
  position: relative;
  width: 100%;
  height: 100%;
  isolation: isolate;
  overflow: hidden;
}

.mission5-water-sheen {
  position: absolute;
  inset: 70px 0 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      -8deg,
      rgba(255, 255, 255, 0) 0 42px,
      rgba(255, 255, 255, 0.1) 44px 48px,
      rgba(255, 255, 255, 0) 54px 96px
    );
  opacity: 0.32;
  mix-blend-mode: screen;
  animation: mission5WaterDrift 12s linear infinite;
}

.mission5-board {
  position: absolute;
  z-index: 2;
  left: clamp(14px, 1.6vw, 26px);
  right: clamp(330px, 29vw, 420px);
  top: clamp(96px, 12vh, 116px);
  bottom: clamp(22px, 3vh, 36px);
}

.mission5-route {
  position: absolute;
  left: 0;
  right: 0;
  height: 28%;
  --track-top: 50%;
  border: 0;
  border-radius: 22px;
  color: #fff;
  cursor: pointer;
  background: transparent;
  filter: drop-shadow(0 16px 16px rgba(1, 41, 79, 0.24));
  transition: transform 0.18s ease, filter 0.18s ease;
}

.mission5-route-a {
  top: 0;
  --track-top: 48%;
}

.mission5-route-b {
  top: 33%;
  --track-top: 48%;
}

.mission5-route-c {
  top: 66%;
  --track-top: 48%;
}

.mission5-route:hover,
.mission5-route.selected {
  transform: translateY(-2px);
  filter: drop-shadow(0 19px 22px rgba(1, 35, 78, 0.32));
}

.mission5-route::before {
  content: none;
}

.mission5-trail-segment {
  position: absolute;
  z-index: 3;
  left: var(--trail-x);
  top: var(--trail-y);
  width: var(--trail-w);
  height: var(--trail-h);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 3px, transparent 4px) 0 50% / 32px 100% repeat,
    linear-gradient(90deg, rgba(64, 225, 255, 0), rgba(108, 241, 255, 0.34), rgba(93, 255, 112, 0.26), rgba(64, 225, 255, 0));
  box-shadow:
    0 0 18px rgba(56, 222, 255, 0.34),
    inset 0 0 18px rgba(255, 255, 255, 0.1);
  opacity: 0.72;
  animation: mission5TrailDrift 3.2s linear infinite;
  animation-delay: calc(var(--trail-delay) * -0.3s);
}

.mission5-route-b .mission5-trail-segment {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.62) 0 3px, transparent 4px) 0 50% / 32px 100% repeat,
    linear-gradient(90deg, rgba(64, 225, 255, 0), rgba(118, 255, 88, 0.46), rgba(118, 255, 88, 0.28), rgba(64, 225, 255, 0));
  box-shadow:
    0 0 22px rgba(104, 255, 92, 0.35),
    inset 0 0 18px rgba(255, 255, 255, 0.12);
}

.mission5-route-glow {
  position: absolute;
  inset: 18% 5% 12% 6%;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(26, 198, 255, 0.1), transparent 68%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mission5-route.selected .mission5-route-glow {
  opacity: 1;
}

.mission5-route.is-correct .mission5-route-glow {
  background: radial-gradient(ellipse at center, rgba(116, 255, 93, 0.42), transparent 72%);
}

.mission5-route.is-danger .mission5-route-glow {
  background: radial-gradient(ellipse at center, rgba(255, 86, 58, 0.28), transparent 72%);
}

.mission5-route-label {
  display: none;
}

.mission5-route-b .mission5-route-label {
  background: linear-gradient(180deg, rgba(84, 218, 89, 0.96), rgba(35, 126, 44, 0.96));
}

.mission5-route-c .mission5-route-label {
  background: linear-gradient(180deg, rgba(193, 103, 255, 0.96), rgba(119, 45, 189, 0.96));
}

.mission5-start-island,
.mission5-goal-island,
.mission5-hazard {
  position: absolute;
  z-index: 3;
  left: var(--asset-x);
  top: var(--asset-y);
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
}

.mission5-start-island {
  width: clamp(116px, 13vw, 184px);
}

.mission5-goal-island {
  width: clamp(126px, 14vw, 198px);
}

.mission5-hazard {
  z-index: 8;
  width: clamp(82px, 8.6vw, 118px);
}

.mission5-hazard img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 8px rgba(0, 33, 60, 0.3));
}

.mission5-hazard-whirlpool {
  width: clamp(104px, 10.4vw, 142px);
  animation: none;
}

.mission5-tile {
  position: absolute;
  z-index: 6;
  left: var(--tile-x);
  top: var(--tile-y);
  width: clamp(50px, 5.2vw, 70px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.mission5-tile::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  background: rgba(103, 242, 255, 0.42);
  filter: blur(12px);
  opacity: 0.42;
  animation: mission5Pulse 2.4s ease-in-out infinite;
  animation-delay: calc(var(--tile-delay) * 0.13s);
}

.mission5-route-b .mission5-tile::before {
  background: rgba(112, 255, 84, 0.34);
}

.mission5-hazard::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 54%;
  width: 128%;
  height: 62%;
  border: 2px dashed rgba(255, 236, 157, 0.7);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 16px rgba(255, 206, 72, 0.26);
}

.mission5-hazard-whirlpool::before {
  width: 110%;
  height: 74%;
}

.mission5-tile-base,
.mission5-tile-arrow {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.mission5-tile-base {
  filter: drop-shadow(0 7px 8px rgba(0, 39, 72, 0.32));
}

.mission5-tile-arrow {
  inset: 18%;
  width: 64%;
  height: 64%;
  transform: rotate(var(--arrow-rotation));
  filter: drop-shadow(0 2px 2px rgba(0, 44, 82, 0.28));
}

.mission5-route-robot {
  position: absolute;
  z-index: 9;
  left: var(--robot-start-x);
  top: var(--robot-start-y);
  width: clamp(42px, 4.4vw, 62px);
  transform: translate(-50%, -78%);
  pointer-events: none;
  filter: drop-shadow(0 8px 8px rgba(0, 31, 63, 0.3));
  display: none;
  opacity: 0;
}

.mission5-route:hover .mission5-route-robot,
.mission5-route.selected .mission5-route-robot {
  opacity: 0;
}

.mission5-route.selected .mission5-route-robot {
  animation: none;
}

.mission5-route-result {
  position: absolute;
  z-index: 10;
  left: var(--robot-end-x);
  top: var(--robot-end-y);
  width: clamp(34px, 3.5vw, 48px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: linear-gradient(180deg, #ff684f, #c72d23);
  box-shadow: 0 9px 14px rgba(52, 12, 8, 0.24);
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
}

.mission5-route-result svg {
  width: 68%;
  height: 68%;
  stroke-width: 4;
}

.mission5-route.is-correct .mission5-route-result {
  background: linear-gradient(180deg, #75ea69, #289d38);
  box-shadow: 0 0 0 8px rgba(120, 255, 92, 0.18), 0 10px 16px rgba(15, 88, 26, 0.22);
}

.mission5-route.selected .mission5-route-result {
  animation: mission5ResultPop 0.32s 1.05s ease-out both;
}

.mission5-route-caption {
  position: absolute;
  z-index: 9;
  left: clamp(96px, 7.8vw, 124px);
  top: clamp(90px, 17vh, 122px);
  bottom: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 43, 87, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 14px rgba(0, 30, 70, 0.22);
  backdrop-filter: blur(10px);
  text-align: left;
}

.mission5-route-caption strong {
  font-size: clamp(13px, 1.1vw, 16px);
}

.mission5-route-caption small {
  max-width: 190px;
  overflow: hidden;
  color: rgba(224, 244, 255, 0.9);
  font-size: clamp(10px, 0.9vw, 12px);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mission5-hud {
  position: absolute;
  z-index: 12;
  right: clamp(14px, 1.8vw, 28px);
  top: clamp(112px, 14vh, 132px);
  bottom: clamp(24px, 3vh, 36px);
  width: clamp(300px, 26vw, 382px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(18px, 2.1vh, 26px) clamp(18px, 2vw, 26px);
  border: 3px solid rgba(235, 178, 72, 0.92);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 21%, rgba(0, 160, 255, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(7, 56, 111, 0.98), rgba(4, 32, 70, 0.98));
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.16),
    inset 0 -7px 0 rgba(0, 13, 43, 0.28),
    0 20px 34px rgba(0, 30, 72, 0.38);
  color: #fff;
  text-align: center;
}

.mission5-hud-eyebrow {
  color: #ffd361;
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 900;
  text-transform: uppercase;
}

.mission5-hud h1 {
  max-width: 320px;
  margin: 7px 0 9px;
  font-size: clamp(28px, 2.7vw, 42px);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.mission5-hud-rule {
  width: min(74%, 240px);
  height: 2px;
  margin: 0 0 12px;
  background: linear-gradient(90deg, transparent, rgba(255, 211, 97, 0.86), transparent);
}

.mission5-hud-dialog {
  position: relative;
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  background: rgba(7, 40, 79, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  text-align: left;
}

.mission5-hud-dialog p {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 850;
  line-height: 1.35;
}

.mission5-robot-wrap {
  flex: 1 1 auto;
  display: grid;
  place-items: end center;
  width: 100%;
  min-height: 142px;
  margin: 4px 0 0;
}

.mission5-robot-wrap img {
  width: min(68%, 218px);
  max-height: min(32vh, 260px);
  object-fit: contain;
  filter: drop-shadow(0 18px 16px rgba(0, 14, 42, 0.35));
}

.mission5-answer {
  width: 100%;
  margin-top: auto;
}

.mission5-answer p {
  margin: 4px 0 12px;
  color: #ffd361;
  font-size: clamp(16px, 1.5vw, 23px);
  font-weight: 950;
}

.mission5-answer-picks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.mission5-answer-picks span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: linear-gradient(180deg, #5fc9ff, #1264c8);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 8px 12px rgba(0, 16, 48, 0.24);
  font-size: clamp(27px, 3vw, 42px);
  font-weight: 950;
  opacity: 0.58;
}

.mission5-answer-picks span:nth-child(2) {
  background: linear-gradient(180deg, #91ee65, #2a9e35);
}

.mission5-answer-picks span:nth-child(3) {
  background: linear-gradient(180deg, #c47bff, #7630c5);
}

.mission5-answer-picks span.active {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.2), 0 10px 16px rgba(0, 16, 48, 0.28);
}

.mission5-submit {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px 12px;
  line-height: 1;
  border-color: rgba(255, 209, 77, 0.9);
  background: linear-gradient(180deg, #66db63, #168236);
  box-shadow: 0 0 0 5px rgba(98, 255, 103, 0.18), inset 0 2px 0 rgba(255, 255, 255, 0.42), 0 12px 18px rgba(2, 33, 39, 0.34);
}

.mission5-submit:disabled {
  opacity: 0.66;
  filter: saturate(0.74);
}

.mission5-submit .ui-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.mission5-footer-hint {
  display: none;
}

.mission5-scene-bit {
  position: absolute;
  z-index: 11;
  left: min(66vw, 880px);
  top: 56%;
  width: clamp(100px, 8.5vw, 132px);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  cursor: pointer;
  animation: mission5BitFloat 3.4s ease-in-out infinite;
}

.mission5-scene-bit:hover img,
.mission5-scene-bit:focus-visible img {
  filter:
    drop-shadow(0 0 18px rgba(76, 214, 255, 0.42))
    drop-shadow(0 16px 14px rgba(0, 28, 62, 0.34));
}

.mission5-scene-bit:focus-visible {
  outline: 3px solid rgba(255, 216, 92, 0.9);
  outline-offset: 8px;
  border-radius: 18px;
}

.mission5-scene-bit::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 80%;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(10, 194, 255, 0.38), transparent 68%);
  transform: translateX(-50%);
  filter: blur(4px);
}

.mission5-scene-bit img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 14px rgba(0, 28, 62, 0.34));
}

.mission5-bit-bubble {
  position: absolute;
  z-index: 3;
  right: calc(100% + 14px);
  top: 4px;
  width: min(270px, 23vw);
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 0%, rgba(68, 184, 255, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(8, 55, 106, 0.95), rgba(4, 30, 68, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 16px 22px rgba(0, 27, 62, 0.28);
  color: #fff;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px) translateY(4px) scale(0.96);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.mission5-bit-bubble::after {
  content: "";
  position: absolute;
  right: -9px;
  top: 28px;
  width: 18px;
  height: 18px;
  background: rgba(5, 39, 83, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  transform: rotate(45deg);
}

.mission5-bit-bubble strong,
.mission5-bit-bubble span {
  display: block;
}

.mission5-bit-bubble strong {
  margin-bottom: 5px;
  color: #ffd361;
  font-size: clamp(12px, 0.95vw, 14px);
  text-transform: uppercase;
}

.mission5-bit-bubble span {
  font-size: clamp(12px, 0.95vw, 14px);
  font-weight: 800;
  line-height: 1.35;
}

.mission5-scene-bit:hover .mission5-bit-bubble,
.mission5-scene-bit:focus-visible .mission5-bit-bubble {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
}

.mission5-footer-hint .ui-icon-wrap {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffdd75, #c77b17);
}

.mission5-footer-hint strong {
  min-width: 0;
  font-size: clamp(12px, 1vw, 16px);
  line-height: 1.15;
}

@keyframes mission5WaterDrift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 220px 80px;
  }
}

@keyframes mission5Pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.82;
    transform: scale(1.05);
  }
}

@keyframes mission5TrailDrift {
  from {
    background-position: 0 50%, 0 0;
  }
  to {
    background-position: 64px 50%, 0 0;
  }
}

@keyframes mission5BitFloat {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0) rotate(-1deg);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-10px) rotate(1deg);
  }
}

@keyframes mission5Whirlpool {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes mission5RobotTravel {
  0% {
    left: var(--robot-start-x);
    top: var(--robot-start-y);
    transform: translate(-50%, -78%) scale(0.92);
  }
  100% {
    left: var(--robot-end-x);
    top: var(--robot-end-y);
    transform: translate(-50%, -78%) scale(1);
  }
}

@keyframes mission5ResultPop {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.55);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 1120px) {
  .mission-screen-obstacle-routes {
    min-height: 720px;
  }

  .mission5-board {
    right: 18px;
    top: 86px;
    bottom: 250px;
  }

  .mission5-hud {
    left: 18px;
    right: 18px;
    top: auto;
    bottom: 16px;
    width: auto;
    min-height: 210px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px minmax(220px, 0.9fr);
    align-items: center;
    gap: 14px;
    padding: 16px;
  }

  .mission5-hud h1 {
    margin: 5px 0;
    font-size: 28px;
  }

  .mission5-hud-rule {
    display: none;
  }

  .mission5-hud-dialog {
    grid-column: 1;
  }

  .mission5-robot-wrap {
    grid-column: 2;
    min-height: 0;
    margin: 0;
  }

  .mission5-robot-wrap img {
    width: 126px;
    max-height: 150px;
  }

  .mission5-answer {
    grid-column: 3;
  }
}

@media (min-width: 1121px) and (max-height: 760px) {
  .mission-screen-obstacle-routes {
    height: 100vh !important;
    min-height: 0 !important;
  }

  .mission5-board {
    top: 102px;
    bottom: 20px;
    right: clamp(315px, 28vw, 390px);
  }

  .mission5-hud {
    top: 106px;
    bottom: 14px;
    width: clamp(292px, 25vw, 350px);
    padding: 15px 18px;
    border-radius: 24px;
  }

  .mission5-hud h1 {
    font-size: clamp(26px, 2.35vw, 34px);
  }

  .mission5-hud-dialog {
    padding: 12px 14px;
  }

  .mission5-hud-dialog p {
    font-size: 13px;
  }

  .mission5-robot-wrap {
    display: none;
  }

  .mission5-robot-wrap img {
    width: 58px !important;
    max-height: 60px !important;
  }

  .mission5-answer p {
    margin-bottom: 8px;
    font-size: 17px;
  }

  .mission5-answer-picks {
    gap: 9px;
    margin-bottom: 12px;
  }

  .mission5-submit {
    min-height: 54px;
    padding-top: 13px;
    padding-bottom: 14px;
  }

  .mission5-scene-bit {
    left: min(66vw, 880px);
    top: 56%;
    width: clamp(90px, 7.5vw, 108px);
  }

  .mission5-bit-bubble {
    right: calc(100% + 12px);
    width: min(245px, 22vw);
    padding: 11px 13px;
  }

  .mission5-start-island {
    width: clamp(104px, 11vw, 150px);
  }

  .mission5-goal-island {
    width: clamp(112px, 12vw, 164px);
  }

  .mission5-tile {
    width: clamp(42px, 4.6vw, 62px);
  }

  .mission5-hazard {
    width: clamp(62px, 6.5vw, 88px);
  }

  .mission5-hazard-whirlpool {
    width: clamp(72px, 7.5vw, 100px);
  }

  .mission5-footer-hint {
    max-width: 300px;
    padding: 8px 13px;
  }
}

/* Institutional pages and start footer final overrides */
.legal-page-root,
.legal-page-root body,
body.legal-page-body {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.legal-page-root body::before,
.legal-page-root body::after,
body.legal-page-body::before,
body.legal-page-body::after {
  display: none;
}

body.legal-page-body {
  color: #17314f;
  background:
    radial-gradient(circle at 12% 10%, rgba(42, 166, 235, 0.18), transparent 34%),
    linear-gradient(180deg, #f4fbff 0%, #e7f2fb 100%);
}

body.legal-page-body .legal-page {
  padding-bottom: max(64px, env(safe-area-inset-bottom));
}

.start-art-board > .start-site-footer {
  position: absolute;
  left: clamp(18px, 3vw, 44px);
  right: clamp(18px, 3vw, 44px);
  bottom: clamp(12px, 2vw, 24px);
  z-index: 8;
  padding: 12px 16px;
  color: #eaf6ff;
  background: rgba(7, 24, 47, 0.56);
  border: 1px solid rgba(202, 235, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(6, 22, 44, 0.24);
  backdrop-filter: blur(12px);
}

.start-art-board > .start-site-footer .start-site-footer-inner {
  max-width: none;
}

.start-art-board > .start-site-footer .start-site-footer-brand p {
  max-width: 620px;
}

.start-art-board > .start-site-footer .start-site-footer-links a {
  color: #f7fcff;
  font-size: 0.82rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.22);
}

.start-art-board > .start-art-overlay {
  padding-bottom: clamp(108px, 11vh, 140px);
}

@media (max-width: 920px) {
  .start-art-board > .start-site-footer {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .start-art-board > .start-art-overlay {
    padding-bottom: clamp(24px, 6vw, 42px);
  }
}

/* Start footer should read as page content, not as a floating HUD. */
.start-art-screen > .start-site-footer {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 32px));
  margin: 14px auto 24px;
  padding: 14px 6px 18px;
  color: #113557;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(231, 247, 255, 0.32);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.start-art-screen > .start-site-footer .start-site-footer-inner {
  width: 100%;
  padding: 0;
}

.start-art-screen > .start-site-footer .start-site-footer-brand strong {
  color: rgba(248, 253, 255, 0.96);
  font-size: 0.98rem;
  text-shadow: 0 1px 8px rgba(5, 36, 69, 0.32);
}

.start-art-screen > .start-site-footer .start-site-footer-brand p {
  max-width: 620px;
  color: rgba(230, 246, 255, 0.92);
  font-weight: 650;
  text-shadow: 0 1px 8px rgba(5, 36, 69, 0.26);
}

.start-art-screen > .start-site-footer .start-site-footer-brand small {
  color: rgba(217, 238, 250, 0.72);
  font-weight: 600;
  text-shadow: 0 1px 7px rgba(5, 36, 69, 0.22);
}

.start-art-screen > .start-site-footer .start-site-footer-links a {
  display: inline-flex;
  min-height: auto;
  align-items: center;
  padding: 0;
  color: rgba(245, 252, 255, 0.92);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(245, 252, 255, 0.36);
  border-radius: 0;
  text-shadow: 0 1px 8px rgba(5, 36, 69, 0.28);
  box-shadow: none;
}

.start-art-screen > .start-site-footer .start-site-footer-links a:hover {
  color: #ffffff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.72);
}

.legal-page-wide {
  width: min(1080px, calc(100% - 32px));
}

.legal-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  align-items: end;
  gap: clamp(22px, 5vw, 54px);
}

.legal-hero-card {
  padding: 22px;
  color: #eaf7ff;
  background: linear-gradient(180deg, rgba(9, 90, 154, 0.92), rgba(7, 49, 94, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(19, 70, 118, 0.22);
}

.legal-hero-card strong,
.legal-hero-card span {
  display: block;
}

.legal-hero-card strong {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 1.05rem;
}

.legal-hero-card span {
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  line-height: 1.35;
}

.legal-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 28px;
}

.legal-feature-grid article {
  padding: 18px;
  background: rgba(237, 248, 255, 0.82);
  border: 1px solid rgba(80, 150, 205, 0.22);
  border-radius: 8px;
}

.legal-feature-grid h3 {
  margin: 0 0 8px;
  color: #0c355f;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.legal-feature-grid p {
  margin: 0;
}

.legal-step-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 30px;
}

.legal-step-list div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid rgba(84, 151, 203, 0.22);
  border-radius: 8px;
}

.legal-step-list b {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  color: #07345e;
  background: #dff4ff;
  border-radius: 8px;
  font-size: 0.92rem;
}

.legal-step-list span {
  color: #315372;
  line-height: 1.55;
}

.legal-cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 28px 0;
  padding: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #0a69b2, #12b88f);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(13, 109, 158, 0.24);
}

.legal-cta-band strong,
.legal-cta-band span {
  display: block;
}

.legal-cta-band strong {
  font-size: 1.08rem;
}

.legal-cta-band span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.45;
}

.legal-cta-band a {
  flex: 0 0 auto;
  padding: 10px 16px;
  color: #07345e;
  font-weight: 950;
  text-decoration: none;
  background: #ffffff;
  border-radius: 8px;
}

@media (max-width: 820px) {
  .legal-hero-split,
  .legal-feature-grid {
    grid-template-columns: 1fr;
  }

  .legal-step-list div {
    grid-template-columns: 1fr;
  }

  .legal-step-list b {
    justify-content: flex-start;
  }

  .legal-cta-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ==========================================================================
   CLEAN LIGHT THEME REDESIGN FOR ROLE WORKSPACES (TEACHER, PARENT, INSTITUTION)
   ========================================================================== */

.role-teacher-workspace .owner-sidebar,
.role-parent-workspace .owner-sidebar,
.role-institution-workspace .owner-sidebar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(240, 248, 255, 0.95)) !important;
  border: 1px solid rgba(147, 214, 255, 0.4) !important;
  box-shadow: 0 16px 32px rgba(27, 102, 163, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

.role-teacher-workspace .owner-sidebar-brand,
.role-parent-workspace .owner-sidebar-brand,
.role-institution-workspace .owner-sidebar-brand {
  border-bottom: 1px solid rgba(147, 214, 255, 0.4) !important;
}

.role-teacher-workspace .owner-sidebar-brand strong,
.role-parent-workspace .owner-sidebar-brand strong,
.role-institution-workspace .owner-sidebar-brand strong {
  color: #163c67 !important;
}

.role-teacher-workspace .owner-sidebar-brand span:last-child,
.role-parent-workspace .owner-sidebar-brand span:last-child,
.role-institution-workspace .owner-sidebar-brand span:last-child {
  color: #547697 !important;
}

.role-teacher-workspace .owner-nav-item,
.role-parent-workspace .owner-nav-item,
.role-institution-workspace .owner-nav-item {
  color: #406283 !important;
}

.role-teacher-workspace .owner-nav-item strong,
.role-parent-workspace .owner-nav-item strong,
.role-institution-workspace .owner-nav-item strong {
  color: #23476c !important;
}

.role-teacher-workspace .owner-nav-item small,
.role-parent-workspace .owner-nav-item small,
.role-institution-workspace .owner-nav-item small {
  color: #6082a5 !important;
}

.role-teacher-workspace .owner-nav-icon,
.role-parent-workspace .owner-nav-icon,
.role-institution-workspace .owner-nav-icon {
  background: rgba(147, 214, 255, 0.16) !important;
  color: #1d79c8 !important;
}

.role-teacher-workspace .owner-nav-icon .dashboard-svg-icon,
.role-parent-workspace .owner-nav-icon .dashboard-svg-icon,
.role-institution-workspace .owner-nav-icon .dashboard-svg-icon {
  color: #1d79c8 !important;
  fill: #1d79c8 !important;
}

.role-teacher-workspace .owner-nav-item:hover,
.role-parent-workspace .owner-nav-item:hover,
.role-institution-workspace .owner-nav-item:hover {
  background: rgba(147, 214, 255, 0.12) !important;
  border-color: rgba(147, 214, 255, 0.36) !important;
  transform: translateX(3px) !important;
}

.role-teacher-workspace .owner-nav-item.active,
.role-parent-workspace .owner-nav-item.active,
.role-institution-workspace .owner-nav-item.active {
  color: #ffffff !important;
  border-color: #1d79c8 !important;
  background: linear-gradient(180deg, #1d79c8, #1868ae) !important;
  box-shadow: 0 8px 18px rgba(27, 102, 163, 0.22) !important;
}

.role-teacher-workspace .owner-nav-item.active strong,
.role-parent-workspace .owner-nav-item.active strong,
.role-institution-workspace .owner-nav-item.active strong {
  color: #ffffff !important;
}

.role-teacher-workspace .owner-nav-item.active small,
.role-parent-workspace .owner-nav-item.active small,
.role-institution-workspace .owner-nav-item.active small {
  color: #dceeff !important;
}

.role-teacher-workspace .owner-nav-item.active .owner-nav-icon,
.role-parent-workspace .owner-nav-item.active .owner-nav-icon,
.role-institution-workspace .owner-nav-item.active .owner-nav-icon {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

/* Light background overrides for inputs, table rows, and list items in light dashboards */
.dashboard-screen .dashboard-table-row {
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(147, 214, 255, 0.36) !important;
  box-shadow: 0 4px 12px rgba(27, 102, 163, 0.04) !important;
  color: #1d4062 !important;
}

.dashboard-screen .dashboard-mini-item {
  background: rgba(255, 255, 255, 0.64) !important;
  border: 1px solid rgba(147, 214, 255, 0.3) !important;
  color: #173e69 !important;
}

.dashboard-screen .dashboard-mini-item.warn {
  background: rgba(255, 238, 220, 0.82) !important;
  border: 1px solid rgba(230, 154, 82, 0.36) !important;
}

.dashboard-screen .dashboard-input {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(147, 214, 255, 0.45) !important;
  color: #173e69 !important;
}

.dashboard-screen .dashboard-input:focus {
  border-color: #1d79c8 !important;
  box-shadow: 0 0 0 4px rgba(29, 121, 200, 0.12) !important;
}

.dashboard-screen select.dashboard-input {
  color: #173e69 !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23173e69' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 36px;
  appearance: none;
  -webkit-appearance: none;
}

.dashboard-screen select.dashboard-input option {
  background: #ffffff;
  color: #173e69;
}

/* ==========================================================================
   MOBILE UX IMPROVEMENTS (COMPACT GUIDE CARD WHEN CLOSED)
   ========================================================================== */

@media (max-width: 760px) {
  .submap-v2-guide-card {
    min-height: 84px !important;
    transition: min-height 0.22s ease-in-out;
    margin-top: 14px;
  }
  .submap-v2-guide-card.is-open {
    min-height: 320px !important;
  }
}

/* ==========================================================================
   MICRO-INTERACTIONS (NODE PULSING & CURRENCY BOUNCE)
   ========================================================================== */

.submap-v2-node.is-available .submap-v2-node-aura {
  animation: nodePulse 2.2s infinite ease-in-out !important;
}

@keyframes nodePulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.92;
    border-color: rgba(114, 246, 177, 0.72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 0 18px rgba(114, 246, 177, 0.28);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 1;
    border-color: rgba(114, 246, 177, 1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 0 34px rgba(114, 246, 177, 0.64);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.92;
    border-color: rgba(114, 246, 177, 0.72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 0 18px rgba(114, 246, 177, 0.28);
  }
}

/* Currency Pill micro-scale animation */
.currency-pill {
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.currency-pill:hover {
  transform: scale(1.06) translateY(-1px) !important;
}

/* ==========================================================================
   MISSION ASSISTANT (BIT DIALOGUE OVERLAY) UX/UI CORRECTIONS
   ========================================================================== */

.mission-assistant {
  position: fixed !important;
  z-index: 99999 !important;
}

.mission-assistant-bubble {
  z-index: 100000 !important;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.38),
    0 0 32px rgba(92, 232, 255, 0.22),
    0 0 18px rgba(255, 212, 95, 0.16) !important;
}

.mission-screen-path-guided .mission-assistant {
  position: fixed !important;
  z-index: 99999 !important;
}

/* Premium custom Loops Simulation styles */
.mission-loop-game {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
  min-height: 520px;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .mission-loop-game {
    grid-template-columns: 1fr;
  }
}

.mission-loop-board-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, rgba(12, 36, 66, 0.9) 0%, rgba(5, 15, 30, 0.98) 100%);
  border: 2px solid rgba(89, 212, 255, 0.25);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.5),
    inset 0 0 32px rgba(89, 212, 255, 0.1);
  position: relative;
  overflow: hidden;
}

/* Nautical Cockpit Panel (Captain's Console) */
.mission-loop-control-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(135deg, rgba(16, 28, 48, 0.92) 0%, rgba(9, 16, 30, 0.98) 100%);
  border: 2px solid rgba(242, 195, 91, 0.25);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.6),
    inset 0 0 24px rgba(242, 195, 91, 0.05);
}

.mission-helper {
  font-family: Quicksand, sans-serif;
  font-size: 14px;
  color: #b0c9e0;
  line-height: 1.5;
  margin: 0;
  text-align: center;
  border-bottom: 1px dashed rgba(89, 212, 255, 0.15);
  padding-bottom: 12px;
}

/* Submarine Console Dials & Layout */
.mission-loop-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 10px 0;
}

.mission-loop-card {
  background: rgba(8, 14, 26, 0.6);
  border: 1px solid rgba(89, 212, 255, 0.12);
  border-radius: 20px;
  padding: 16px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.4);
}

.mission-loop-card .eyebrow {
  font-family: Fredoka, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #f2c35b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mission-loop-card .eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #f2c35b;
  border-radius: 50%;
  box-shadow: 0 0 6px #f2c35b;
}

.mission-loop-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Submarine Copper Dials */
.mission-loop-choice {
  flex: 1 1 calc(50% - 8px);
  min-width: 110px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(242, 195, 91, 0.2);
  background: linear-gradient(180deg, #112035 0%, #0b1524 100%);
  color: #b0d8ff;
  font-family: Fredoka, sans-serif;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.mission-loop-choice:hover:not(.disabled) {
  border-color: #59d4ff;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(89, 212, 255, 0.2);
}

.mission-loop-choice.selected {
  border-color: #f2c35b;
  color: #fff;
  background: linear-gradient(180deg, rgba(242, 195, 91, 0.25) 0%, rgba(128, 81, 17, 0.3) 100%);
  box-shadow: 
    0 4px 12px rgba(242, 195, 91, 0.25),
    inset 0 0 10px rgba(242, 195, 91, 0.15);
  animation: choiceGlowPulse 2s ease-in-out infinite alternate;
}

@keyframes choiceGlowPulse {
  from { border-color: rgba(242, 195, 91, 0.4); box-shadow: 0 0 8px rgba(242, 195, 91, 0.15); }
  to { border-color: rgba(242, 195, 91, 0.8); box-shadow: 0 0 16px rgba(242, 195, 91, 0.4); }
}

.loop-choice-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  position: relative;
  transition: all 0.25s;
}

.mission-loop-choice.selected .loop-choice-bullet {
  background: #f2c35b;
  border-color: #fff;
  box-shadow: 0 0 8px #f2c35b;
}

.mission-loop-choice.selected .loop-choice-bullet::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: #fff;
}

/* Hologram Preview Box */
.mission-loop-preview {
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.captain-preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #59d4ff;
  font-family: Fredoka, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sonar-ping {
  width: 8px;
  height: 8px;
  background: #59d4ff;
  border-radius: 50%;
  position: relative;
  display: inline-block;
}

.sonar-ping::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid #59d4ff;
  animation: sonarRing 1.6s infinite ease-out;
}

@keyframes sonarRing {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.captain-preview-hologram {
  background: linear-gradient(180deg, rgba(6, 20, 38, 0.9) 0%, rgba(2, 8, 18, 0.96) 100%);
  border: 1px solid rgba(89, 212, 255, 0.2);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 
    inset 0 0 20px rgba(89, 212, 255, 0.1),
    0 4px 15px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

.captain-preview-hologram::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(89, 212, 255, 0.02) 0px,
    rgba(89, 212, 255, 0.02) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
}

.captain-hologram-gear {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  color: #f2c35b;
}

.gear-svg {
  width: 60px;
  height: 60px;
  animation: gearSpin 8s linear infinite;
  filter: drop-shadow(0 0 6px rgba(242, 195, 91, 0.3));
}

@keyframes gearSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.gear-number {
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: Fredoka, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 6px rgba(255,255,255,0.8);
}

.gear-label {
  font-family: Quicksand, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 6px;
  color: #f2c35b;
}

.captain-hologram-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow-connector {
  width: 44px;
  filter: drop-shadow(0 0 4px rgba(89,212,255,0.4));
  animation: arrowPulse 1.5s ease-in-out infinite alternate;
}

@keyframes arrowPulse {
  from { opacity: 0.5; transform: scaleX(0.9); }
  to { opacity: 1; transform: scaleX(1.1); }
}

.captain-hologram-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #59d4ff;
  max-width: 140px;
  text-align: center;
}

.action-icon-socket {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(89, 212, 255, 0.08);
  border: 2px dashed rgba(89, 212, 255, 0.4);
  display: grid;
  place-items: center;
  color: #59d4ff;
  filter: drop-shadow(0 0 8px rgba(89, 212, 255, 0.2));
  transition: all 0.3s;
}

.action-icon-socket svg {
  width: 32px;
  height: 32px;
  stroke-width: 2.2;
}

.captain-hologram-action .action-label {
  font-family: Fredoka, sans-serif;
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
  color: #b0d8ff;
  text-shadow: 0 0 4px rgba(89,212,255,0.2);
}

/* Radar Sonar Track (Steps track at the bottom) */
.mission-loop-track {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  padding: 12px;
  background: rgba(8, 14, 26, 0.4);
  border: 1px solid rgba(89, 212, 255, 0.08);
  border-radius: 16px;
}

.mission-loop-step {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #5d7e9e;
  font-family: Fredoka, sans-serif;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.mission-loop-step.active {
  background: radial-gradient(circle, #0284c7 0%, #075985 100%);
  border-color: #59d4ff;
  color: #fff;
  box-shadow: 
    0 0 15px rgba(89, 212, 255, 0.6),
    inset 0 0 6px rgba(255,255,255,0.4);
  transform: scale(1.18);
}

.mission-loop-step.active::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(89, 212, 255, 0.4);
  animation: stepRadarExpand 1s infinite linear;
}

@keyframes stepRadarExpand {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.mission-loop-step.done {
  background: radial-gradient(circle, #059669 0%, #065f46 100%);
  border-color: #34d399;
  color: #fff;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.3);
}

/* Loop Simulation Container */
.loop-sim-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 2;
  padding: 30px;
  box-sizing: border-box;
}

.loop-sim-title {
  font-family: Fredoka, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  animation: bannerEntry 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.loop-sim-title svg {
  width: 24px;
  height: 24px;
  color: #38bdf8;
  filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.5));
}

.loop-sim-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-grow: 1;
  width: 100%;
  min-height: 220px;
  position: relative;
}

.loop-sim-status-msg {
  font-family: Quicksand, sans-serif;
  font-size: 15px;
  color: #e0f2fe;
  text-align: center;
  min-height: 30px;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 24px;
  border-radius: 24px;
  border: 1.5px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  letter-spacing: 0.5px;
  animation: pulseLight 2s infinite alternate ease-in-out;
}
@keyframes pulseLight {
  from { box-shadow: 0 4px 15px rgba(56, 189, 248, 0.15); border-color: rgba(56, 189, 248, 0.2); }
  to { box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35); border-color: rgba(56, 189, 248, 0.45); }
}

/* --- MISSION 2: Baldosas del Eco --- */
.loop-sim-walk .loop-sim-stage {
  background: radial-gradient(ellipse at bottom, rgba(56, 189, 248, 0.15) 0%, transparent 75%);
}

.loop-sim-tile {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(20, 35, 60, 0.85) 0%, rgba(10, 18, 32, 0.95) 100%);
  border: 2px solid rgba(56, 189, 248, 0.25);
  display: grid;
  place-items: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 8px 20px rgba(0,0,0,0.45),
    inset 0 2px 4px rgba(255,255,255,0.05);
}

/* Pathway connection indicator */
.loop-sim-tile:not(:last-of-type)::after {
  content: '';
  position: absolute;
  right: -22px;
  top: calc(50% - 3px);
  width: 22px;
  height: 6px;
  background: rgba(56, 189, 248, 0.2);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.1);
  z-index: 1;
}

.loop-sim-tile.start {
  border-color: #38bdf8;
  box-shadow: 
    0 0 20px rgba(56, 189, 248, 0.35),
    0 8px 20px rgba(0,0,0,0.45);
}

.loop-sim-tile.goal {
  border-color: #fbbf24;
  box-shadow: 
    0 0 24px rgba(251, 191, 36, 0.4),
    0 8px 20px rgba(0,0,0,0.45);
}

.loop-sim-tile.has-robot {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(6, 78, 59, 0.5) 100%);
  border-color: #34d399;
  box-shadow: 
    0 0 25px rgba(52, 211, 153, 0.6),
    0 8px 20px rgba(0,0,0,0.45);
  transform: scale(1.05);
}

/* Glowing Runes inside tiles */
.loop-sim-tile::before {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1.5px solid rgba(89, 212, 255, 0.15);
  border-radius: 50%;
  transform: rotate(45deg);
  pointer-events: none;
}

.loop-sim-tile.has-robot::before {
  border-color: rgba(52, 211, 153, 0.5);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.4);
}

.loop-sim-tile-index {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  font-family: Fredoka, sans-serif;
  font-weight: 700;
}

.loop-sim-robot-sprite {
  width: 50px;
  height: 50px;
  object-fit: contain;
  animation: robotPremiumBounce 0.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.5));
  z-index: 3;
}

@keyframes robotPremiumBounce {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-8px) scale(1.05); }
}

.loop-sim-star {
  font-size: 22px;
  z-index: 2;
  animation: starPremiumPulse 1.2s ease-in-out infinite alternate;
}

@keyframes starPremiumPulse {
  from { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 2px rgba(242, 195, 91, 0.5)); }
  to { transform: scale(1.22) rotate(15deg); filter: drop-shadow(0 0 10px rgba(242, 195, 91, 0.9)); }
}

/* Ostra Marina instead of just star */
.oyster-goal {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
}

.oyster-goal svg {
  width: 46px;
  height: 46px;
  fill: #fbbf24;
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.6));
  animation: oysterFloat 2s ease-in-out infinite alternate;
}

@keyframes oysterFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px) rotate(5deg); }
}

/* Bubble stream animation */
.bubble-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(89, 212, 255, 0.25);
  border: 0.5px solid rgba(255,255,255,0.4);
  bottom: 0px;
  pointer-events: none;
  animation: bubbleRise 1.2s infinite ease-in;
}

@keyframes bubbleRise {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  20% { opacity: 0.8; }
  100% { transform: translateY(-80px) translateX(var(--x-drift, 10px)) scale(1.2); opacity: 0; }
}

/* --- MISSION 4: El Invernadero Melódico --- */
.loop-sim-garden {
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.08) 0%, transparent 80%);
}

.garden-shelf {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.25) 0%, rgba(120, 80, 43, 0.35) 75%, rgba(67, 40, 15, 0.75) 100%);
  border-bottom: 5px solid #d97706;
  box-shadow: 
    0 12px 28px rgba(0,0,0,0.5),
    0 2px 0 rgba(255,255,255,0.05);
  padding: 24px 30px 6px;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
}

.loop-sim-pot {
  width: 74px;
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  padding-bottom: 8px;
  border-radius: 16px 16px 10px 10px;
  background: linear-gradient(180deg, rgba(30, 45, 70, 0.6) 0%, rgba(15, 25, 45, 0.85) 100%);
  border: 2px solid rgba(255,255,255,0.08);
  box-shadow: 0 6px 12px rgba(0,0,0,0.45);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.loop-sim-pot::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 28px;
  background: linear-gradient(180deg, #ea580c, #c2410c);
  border-radius: 0 0 8px 8px;
  border-top: 2px solid rgba(255,255,255,0.15);
}

.loop-sim-pot.current {
  border-color: #38bdf8;
  box-shadow: 
    0 0 20px rgba(56, 189, 248, 0.45),
    0 6px 12px rgba(0,0,0,0.4);
}

.loop-sim-pot.watered {
  border-color: #34d399;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 25, 45, 0.85) 100%);
  box-shadow: 
    0 0 20px rgba(52, 211, 153, 0.35),
    0 6px 12px rgba(0,0,0,0.4);
}

/* SVG Growing Plant */
.plant-svg {
  width: 48px;
  height: 60px;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: bottom center;
}

.loop-sim-pot.watered .plant-svg {
  transform: scale(1.22);
}

.plant-stem {
  stroke: #10b981;
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: growStem 0.8s ease-out forwards;
}

@keyframes growStem {
  to { stroke-dashoffset: 0; }
}

.plant-leaf {
  fill: #34d399;
  transform: scale(0);
  transform-origin: 22px 36px;
  animation: growLeaves 0.4s 0.6s ease-out forwards;
}

.leaf-right {
  transform-origin: 22px 36px;
}

@keyframes growLeaves {
  to { transform: scale(1); }
}

.plant-flower {
  transform: scale(0);
  transform-origin: 22px 14px;
  animation: growFlower 0.6s 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes growFlower {
  to { transform: scale(1); }
}

/* Watering can & droplets animation */
.watering-can-svg {
  width: 44px;
  height: 34px;
  position: absolute;
  top: -48px;
  z-index: 10;
  fill: #fbbf24;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.5));
  animation: wateringCanTilt 0.8s infinite ease-in-out alternate;
  transform-origin: right bottom;
}

@keyframes wateringCanTilt {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-6px) rotate(-28deg); }
}

.rain-particle {
  position: absolute;
  width: 2px;
  height: 8px;
  background: #38bdf8;
  border-radius: 1px;
  top: -15px;
  left: 22px;
  opacity: 0.8;
  animation: rainDropFall 0.5s infinite linear;
}

@keyframes rainDropFall {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(34px); opacity: 0; }
}

/* Floating Music Notes */
.music-note-particle {
  position: absolute;
  font-size: 20px;
  pointer-events: none;
  animation: musicFloatUp 1.8s ease-out forwards;
  z-index: 10;
}

@keyframes musicFloatUp {
  0% { transform: translateY(20px) translateX(0) scale(0.6) rotate(0deg); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(-70px) translateX(var(--drift-x, 15px)) scale(1.1) rotate(var(--rot, 20deg)); opacity: 0; }
}

.loop-sim-pot-index {
  position: absolute;
  bottom: 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  font-family: Fredoka, sans-serif;
  font-weight: 700;
  z-index: 5;
}

/* --- MISSION 6: El Generador del Eco --- */
.loop-sim-windmill {
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.08) 0%, transparent 80%);
}

.loop-sim-windmill .loop-sim-stage {
  gap: 40px;
}

.loop-sim-windmill-body {
  width: 100px;
  height: 140px;
  background: linear-gradient(180deg, #334155 0%, #1e293b 50%, #0f172a 100%);
  border: 4px solid #ea580c;
  border-radius: 50px 50px 18px 18px;
  position: relative;
  box-shadow: 
    0 12px 32px rgba(0,0,0,0.6),
    inset 0 0 20px rgba(0,0,0,0.5);
  margin-right: 60px;
}

.loop-sim-windmill-blades {
  width: 140px;
  height: 140px;
  position: absolute;
  top: -50px;
  left: -20px;
  display: grid;
  place-items: center;
}

.windmill-rotor-center {
  width: 24px;
  height: 24px;
  background: #fbbf24;
  border-radius: 50%;
  position: absolute;
  z-index: 5;
  box-shadow: 0 0 10px #fbbf24;
}

.blade {
  position: absolute;
  width: 16px;
  height: 68px;
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  border-radius: 8px;
  transform-origin: bottom center;
  bottom: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.blade::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 26px;
  background: rgba(255,255,255,0.25);
  border-radius: 4px;
}

/* Electric Cables */
.electric-cables-svg {
  position: absolute;
  top: 30px;
  left: 70px;
  width: 140px;
  height: 120px;
  pointer-events: none;
  z-index: 1;
}

.cable-wire {
  stroke: rgba(255,255,255,0.12);
  stroke-width: 3;
  fill: none;
  stroke-dasharray: 4 4;
}

.cable-wire.active {
  stroke: #fbbf24;
  stroke-dasharray: 6 3;
  animation: electricPulse 0.8s infinite linear;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.8));
}

@keyframes electricPulse {
  to { stroke-dashoffset: -18px; }
}

.loop-sim-bulbs-track {
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 2;
}

.loop-sim-bulb {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(30,41,59,0.85), rgba(15,23,42,0.95));
  border: 2px solid rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  position: relative;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 12px rgba(0,0,0,0.45);
}

.loop-sim-bulb.lit {
  background: radial-gradient(circle, rgba(254, 240, 138, 0.3) 0%, rgba(234, 179, 8, 0.1) 100%);
  border-color: #fbbf24;
  box-shadow: 
    0 0 30px rgba(251, 191, 36, 0.6),
    inset 0 0 12px rgba(251, 191, 36, 0.3);
}

/* Beautiful SVG Bulb */
.bulb-svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #475569;
  stroke-width: 1.8;
  transition: all 0.35s;
}

.loop-sim-bulb.lit .bulb-svg {
  stroke: #fbbf24;
  fill: rgba(251, 191, 36, 0.15);
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6));
}

.bulb-glow-circle {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(254, 240, 138, 0.25);
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.35s;
}

.loop-sim-bulb.lit .bulb-glow-circle {
  opacity: 1;
  animation: bulbGlowBeat 1s ease-in-out infinite alternate;
}

@keyframes bulbGlowBeat {
  from { transform: scale(0.9); opacity: 0.6; }
  to { transform: scale(1.3); opacity: 0.9; }
}

.loop-sim-bulb-index {
  position: absolute;
  bottom: -4px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 9px;
  color: rgba(255,255,255,0.7);
  font-family: Fredoka, sans-serif;
  font-weight: 700;
  z-index: 5;
}

/* --- MISSION 7: Circuito del Templo (Final) --- */
.loop-sim-circuit-track {
  width: 200px;
  height: 200px;
  border: 4px dashed rgba(56, 189, 248, 0.3);
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  animation: compassRotate 15s linear infinite;
  box-shadow: 
    inset 0 0 40px rgba(56, 189, 248, 0.1),
    0 0 20px rgba(0,0,0,0.4);
}

@keyframes compassRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loop-sim-circle-node {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(47,55,75,0.9), rgba(15,23,42,0.98));
  border: 2px solid rgba(255,255,255,0.1);
  display: grid;
  place-items: center;
  font-family: Fredoka, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #64748b;
  transition: all 0.4s;
  box-shadow: 0 6px 12px rgba(0,0,0,0.45);
  transform: rotate(0);
}

.loop-sim-circle-node.node-0 { top: -25px; left: calc(50% - 25px); }
.loop-sim-circle-node.node-1 { top: calc(50% - 25px); right: -25px; }
.loop-sim-circle-node.node-2 { bottom: -25px; left: calc(50% - 25px); }
.loop-sim-circle-node.node-3 { top: calc(50% - 25px); left: -25px; }

.loop-sim-circle-node.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25) 0%, rgba(2, 132, 199, 0.45) 100%);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 
    0 0 20px rgba(56, 189, 248, 0.5),
    inset 0 0 10px rgba(56, 189, 248, 0.2);
}

.loop-sim-circle-node.current {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.35) 0%, rgba(6, 95, 70, 0.55) 100%);
  border-color: #34d399;
  color: #ffffff;
  box-shadow: 
    0 0 25px rgba(16, 185, 129, 0.65),
    inset 0 0 12px rgba(16, 185, 129, 0.35);
}

.node-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(89, 212, 255, 0);
  transition: all 0.4s;
}

.loop-sim-circle-node.active .node-glow {
  border-color: rgba(56, 189, 248, 0.5);
  animation: compassNodePulse 1.2s infinite ease-out;
}

@keyframes compassNodePulse {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* Hover-drone Jellyfish instead of just 🤖 */
.guardian-drone {
  position: absolute;
  z-index: 5;
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.5));
  animation: droneHover 0.6s infinite alternate ease-in-out;
}

@keyframes droneHover {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

/* Sea temple water portal in the center */
.temple-portal {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, rgba(3, 105, 161, 0.7) 100%);
  border: 3px solid rgba(89, 212, 255, 0.5);
  position: relative;
  z-index: 1;
  overflow: hidden;
  box-shadow: 
    0 0 30px rgba(89, 212, 255, 0.4),
    inset 0 0 15px rgba(89, 212, 255, 0.25);
}

.temple-portal::before {
  content: '';
  position: absolute;
  inset: -10px;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(89, 212, 255, 0.4) 50%,
    transparent 100%
  );
  animation: portalSpin 3s infinite linear;
}

.temple-portal.active {
  background: conic-gradient(
    from 0deg,
    #38bdf8,
    #0284c7,
    #10b981,
    #38bdf8
  );
  border-color: #fff;
  box-shadow: 
    0 0 32px rgba(56, 189, 248, 0.8),
    inset 0 0 15px rgba(255,255,255,0.4);
}

.temple-portal.active::before {
  display: none;
}

@keyframes portalSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* --- LOOP FULLSCREEN LAYOUT & SIMULATIONS --- */
.mission-screen-loop-fullscreen {
  height: 100vh !important;
  min-height: 640px;
  padding: 0 !important;
  overflow: hidden !important;
  position: relative;
}

.mission-screen-loop-fullscreen::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: 
    linear-gradient(180deg, rgba(6, 20, 38, 0.4), rgba(4, 15, 30, 0.85)),
    url("./img/path-guided-bg.png") center center / cover no-repeat;
}

.mission-screen-loop-fullscreen::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at center, rgba(16, 36, 66, 0.25) 0%, rgba(5, 15, 30, 0.75) 100%);
  pointer-events: none;
}

.mission-screen-loop-fullscreen .mission-panel {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
  box-shadow: none !important;
}

.mission-screen-loop-fullscreen .mission-hero {
  display: none !important;
}

.mission-loop-fullscreen-stage {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
  position: relative;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .mission-loop-fullscreen-stage {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
}

.mission-loop-visual-arena {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  position: relative;
  background: transparent;
  border-right: 1.5px solid rgba(89, 212, 255, 0.15);
  box-shadow: inset -10px 0 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.mission-loop-hud-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  background: linear-gradient(135deg, rgba(15, 32, 60, 0.97) 0%, rgba(8, 18, 40, 0.98) 100%);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  gap: 20px;
  position: relative;
}

.mission-loop-hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(89, 212, 255, 0.1);
  padding-bottom: 14px;
}

.mission-loop-hud-header .wallet {
  display: flex;
  gap: 12px;
}

.mission-loop-hud-header .wallet span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: Fredoka, sans-serif;
  font-size: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
}

.mission-loop-hud-header #guidedBackToSubmapBtn {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-family: Fredoka, sans-serif;
  font-weight: 600;
  font-size: 12px;
  padding: 6px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.mission-loop-hud-header #guidedBackToSubmapBtn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 6px 12px rgba(239, 68, 68, 0.3);
}

.mission-loop-hud-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  margin-top: 10px;
}

.mission-loop-hud-body h1 {
  font-family: Fredoka, sans-serif;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  color: #59d4ff;
  text-shadow: 0 0 10px rgba(89, 212, 255, 0.25);
  margin: 0;
}

.mission-loop-hud-body .mission-prompt {
  font-family: Quicksand, sans-serif;
  font-size: 15px;
  color: #c0d8ff;
  line-height: 1.5;
  margin: 0;
  background: rgba(0, 0, 0, 0.2);
  padding: 12px 16px;
  border-radius: 16px;
  border-left: 4px solid #f2c35b;
}

.mission-loop-hud-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.mission-loop-hud-submit {
  flex-grow: 1;
  padding: 14px 20px;
  border-radius: 16px;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #fff;
  font-family: Fredoka, sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mission-loop-hud-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.mission-loop-hud-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #334155;
  box-shadow: none;
}



/* === MISSION 3: EL FARO DE DESTELLOS === */
.lighthouse-stage {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #070b19 0%, #0f172a 60%, #1e1b4b 100%);
}

/* Aurora Borealis effect */
.aurora-band {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 60%;
  background: radial-gradient(ellipse at 50% 0%, rgba(16, 185, 129, 0.15) 0%, rgba(14, 165, 233, 0.15) 40%, transparent 70%);
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
}
.aurora-band-1 {
  animation: auroraFlow1 12s ease-in-out infinite alternate;
}
.aurora-band-2 {
  background: radial-gradient(ellipse at 30% 20%, rgba(168, 85, 247, 0.15) 0%, rgba(236, 72, 153, 0.1) 40%, transparent 75%);
  animation: auroraFlow2 18s ease-in-out infinite alternate;
}

@keyframes auroraFlow1 {
  0% { transform: translate(-20%, -10%) skewX(-15deg) scaleY(1); }
  100% { transform: translate(10%, 10%) skewX(15deg) scaleY(1.3); }
}
@keyframes auroraFlow2 {
  0% { transform: translate(10%, -5%) skewX(10deg) scaleY(1.2); }
  100% { transform: translate(-15%, 5%) skewX(-10deg) scaleY(0.9); }
}

/* Starry Night elements */
.twinkle-star {
  position: absolute;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 8px #ffffff;
  z-index: 1;
  pointer-events: none;
  animation: starTwinkleAnim 1.8s infinite alternate ease-in-out;
}
@keyframes starTwinkleAnim {
  0% { opacity: 0.3; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 12px rgba(255, 255, 255, 0.9); }
}

.shooting-star {
  position: absolute;
  width: 2px;
  height: 50px;
  background: linear-gradient(to top, rgba(255,255,255,0.9), transparent);
  transform: rotate(-35deg);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  animation: shootStarAnim 10s infinite linear;
}
@keyframes shootStarAnim {
  0% { transform: translate(150px, -50px) rotate(-35deg); opacity: 0; }
  8% { opacity: 1; }
  15% { transform: translate(-100px, 200px) rotate(-35deg); opacity: 0; }
  100% { transform: translate(-100px, 200px) rotate(-35deg); opacity: 0; }
}

/* Glowing Moon */
.night-moon {
  position: absolute;
  top: 10%;
  right: 12%;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle at 30% 30%, #fffef0 0%, #e2e8f0 70%, #cbd5e1 100%);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(254, 243, 199, 0.4), 0 0 80px rgba(254, 243, 199, 0.2);
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.moon-crater {
  position: absolute;
  background: rgba(100, 116, 139, 0.15);
  border-radius: 50%;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.2);
}
.moon-crater-1 { width: 14px; height: 14px; top: 25%; left: 25%; }
.moon-crater-2 { width: 8px; height: 8px; top: 60%; left: 45%; }
.moon-crater-3 { width: 18px; height: 10px; top: 45%; left: 65%; transform: rotate(15deg); }

/* Night Ocean */
.night-ocean {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.night-wave {
  position: absolute;
  left: -20%;
  width: 140%;
  height: 100%;
  border-radius: 43%;
  opacity: 0.8;
}
.night-wave-1 {
  bottom: -40px;
  background: rgba(15, 23, 42, 0.9);
  animation: nightWaveMove 12s infinite linear;
}
.night-wave-2 {
  bottom: -48px;
  background: rgba(30, 27, 75, 0.95);
  animation: nightWaveMove 8s infinite linear reverse;
}
@keyframes nightWaveMove {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Cliff & Grass */
.cliff-crags {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 95px;
  z-index: 3;
  pointer-events: none;
}
.cliff-path {
  fill: #1a233a;
  stroke: rgba(255,255,255,0.08);
  stroke-width: 1px;
}
.cliff-detail {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 2px;
  stroke-linecap: round;
}
.cliff-grass-patches {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  height: 40px;
  z-index: 4;
  pointer-events: none;
}
.cliff-grass {
  position: absolute;
  font-size: 20px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  animation: grassSway 4s ease-in-out infinite alternate;
  transform-origin: bottom center;
}
@keyframes grassSway {
  0% { transform: rotate(-3deg); }
  100% { transform: rotate(5deg); }
}

/* Fireflies */
.night-firefly {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #fef08a;
  border-radius: 50%;
  box-shadow: 0 0 8px #fef08a, 0 0 15px #fef08a;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  animation: fireflyFloat 6s infinite ease-in-out;
}
@keyframes fireflyFloat {
  0% { opacity: 0; transform: translate(0, 0) scale(0.8); }
  30% { opacity: 0.8; }
  70% { opacity: 0.8; }
  100% { opacity: 0; transform: translate(30px, -40px) scale(0.6); }
}

/* Lighthouse Tower & Platform */
.lighthouse-tower {
  width: 50px;
  height: 180px;
  position: absolute;
  bottom: 45px;
  left: 12%;
  z-index: 4;
  background: #e2e8f0;
  border-radius: 3px 3px 0 0;
  box-shadow: 10px 0 20px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.lighthouse-stripe {
  width: 100%;
  height: 60px;
  background: #ef4444;
}
.lighthouse-stripe:nth-child(2) {
  background: #ffffff;
}
.lighthouse-stripe:nth-child(3) {
  background: #ef4444;
}
.lighthouse-window {
  position: absolute;
  width: 8px;
  height: 14px;
  background: #fef08a;
  box-shadow: 0 0 8px #fef08a;
  border-radius: 4px 4px 0 0;
  left: calc(50% - 4px);
  z-index: 5;
}
.lh-win-1 { top: 40px; }
.lh-win-2 { top: 110px; }

.lighthouse-base-platform {
  position: absolute;
  width: 74px;
  height: 12px;
  background: #334155;
  border-radius: 4px;
  bottom: 45px;
  left: calc(12% - 12px);
  z-index: 4;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.05);
}

.lighthouse-cabin {
  position: absolute;
  width: 42px;
  height: 35px;
  background: rgba(30, 41, 59, 0.4);
  border: 3px solid #475569;
  border-radius: 4px;
  top: -35px;
  left: calc(50% - 21px);
  z-index: 6;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(2px);
}
.lighthouse-roof {
  position: absolute;
  top: -62px;
  left: calc(50% - 25px);
  width: 0;
  height: 0;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-bottom: 28px solid #b91c1c;
  z-index: 6;
  filter: drop-shadow(0 -2px 5px rgba(0,0,0,0.3));
}
.lighthouse-lens {
  width: 16px;
  height: 16px;
  background: #fffbdf;
  border-radius: 50%;
  box-shadow: 0 0 25px #fbbf24;
  z-index: 7;
  animation: lensFlashAnim 3s infinite ease-in-out;
}
@keyframes lensFlashAnim {
  0%, 100% { transform: scale(0.9); box-shadow: 0 0 15px #fbbf24; }
  50% { transform: scale(1.15); box-shadow: 0 0 35px #fffbdf, 0 0 60px #fbbf24; }
}

.lighthouse-beam {
  position: absolute;
  width: 350px;
  height: 180px;
  top: -100px;
  z-index: 8;
  pointer-events: none;
  transform-origin: 20px 100px;
  opacity: 0.75;
}
.lighthouse-beam-left {
  left: -330px;
  background: radial-gradient(ellipse at right, rgba(254, 240, 138, 0.45) 0%, rgba(254, 240, 138, 0.1) 40%, transparent 75%);
  clip-path: polygon(0 20%, 100% 50%, 0 80%);
  animation: beamRotateLeft 8s ease-in-out infinite alternate;
}
.lighthouse-beam-right {
  left: 20px;
  background: radial-gradient(ellipse at left, rgba(254, 240, 138, 0.45) 0%, rgba(254, 240, 138, 0.1) 40%, transparent 75%);
  clip-path: polygon(100% 20%, 0 50%, 100% 80%);
  animation: beamRotateRight 8s ease-in-out infinite alternate;
}
@keyframes beamRotateLeft {
  0% { transform: rotate(-10deg); opacity: 0.4; }
  50% { opacity: 0.85; }
  100% { transform: rotate(10deg); opacity: 0.4; }
}
@keyframes beamRotateRight {
  0% { transform: rotate(10deg); opacity: 0.4; }
  50% { opacity: 0.85; }
  100% { transform: rotate(-10deg); opacity: 0.4; }
}

/* Glassmorphism Title Banner */
.lighthouse-title-banner {
  position: absolute;
  top: 15px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: #ffffff;
  font-family: Fredoka, sans-serif;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  z-index: 10;
  animation: bannerEntry 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.lighthouse-title-icon {
  font-size: 20px;
  animation: bounceSlow 3s infinite ease-in-out;
}

/* === MISSION 5: LA BATERÍA DE BIT === */
.battery-stage {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #111827 0%, #1e1b4b 50%, #0f172a 100%);
  padding-bottom: 20px;
}

.lab-workshop {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(30, 41, 59, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(30, 41, 59, 0.3) 0%, transparent 50%);
  z-index: 0;
}

.lab-grid-overlay {
  position: absolute;
  inset: 0;
  background-size: 30px 30px;
  background-image: 
    linear-gradient(to right, rgba(99, 102, 241, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
  z-index: 1;
  pointer-events: none;
}

/* Submarine Portholes */
.lab-porthole {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 6px solid #b45309;
  box-shadow: 
    inset 0 4px 10px rgba(0,0,0,0.8),
    0 4px 15px rgba(0,0,0,0.6),
    0 0 0 2px rgba(245, 158, 11, 0.2);
  z-index: 2;
  overflow: hidden;
}
.lab-porthole-1 {
  top: 15%;
  left: 8%;
}
.lab-porthole-2 {
  top: 25%;
  right: 8%;
}
.porthole-water {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  z-index: 1;
}
.porthole-fish {
  position: absolute;
  font-size: 16px;
  z-index: 2;
  animation: fishSwim1 10s linear infinite;
  white-space: nowrap;
}
.porthole-fish-2 {
  animation: fishSwim2 14s linear infinite;
}

@keyframes fishSwim1 {
  0% { transform: translate(-20px, 30px) scaleX(1); }
  49% { transform: translate(90px, 15px) scaleX(1); }
  50% { transform: translate(90px, 15px) scaleX(-1); }
  99% { transform: translate(-20px, 30px) scaleX(-1); }
  100% { transform: translate(-20px, 30px) scaleX(1); }
}
@keyframes fishSwim2 {
  0% { transform: translate(90px, 40px) scaleX(-1); }
  49% { transform: translate(-20px, 10px) scaleX(-1); }
  50% { transform: translate(-20px, 10px) scaleX(1); }
  99% { transform: translate(90px, 40px) scaleX(1); }
  100% { transform: translate(90px, 40px) scaleX(-1); }
}

/* Copper Pipes Layout */
.pipes-layout {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.pipe-line {
  fill: none;
  stroke: #c2410c;
  stroke-width: 8px;
  stroke-linecap: round;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
}
.pipe-joint {
  fill: #ea580c;
  stroke: #7c2d12;
  stroke-width: 2px;
}
.pipe-valve {
  fill: #ef4444;
  stroke: #991b1b;
  stroke-width: 1px;
  transform-origin: center;
  animation: valvePulse 4s infinite ease-in-out alternate;
}
@keyframes valvePulse {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(15deg); }
}

/* Pressure Gauges */
.gauge-gauge {
  position: absolute;
  width: 45px;
  height: 45px;
  background: radial-gradient(circle, #f8fafc 0%, #e2e8f0 80%, #94a3b8 100%);
  border: 3px solid #475569;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}
.gauge-gauge-1 {
  top: 15%;
  left: 35%;
}
.gauge-gauge-2 {
  bottom: 25%;
  right: 32%;
}
.gauge-arrow {
  position: absolute;
  width: 2px;
  height: 18px;
  background: #dc2626;
  bottom: 50%;
  left: calc(50% - 1px);
  transform-origin: bottom center;
  animation: gaugeWiggle 2.5s infinite ease-in-out;
}
.gauge-label {
  position: absolute;
  bottom: 4px;
  font-size: 7px;
  color: #475569;
  font-weight: 700;
  font-family: monospace;
}
@keyframes gaugeWiggle {
  0%, 100% { transform: rotate(-40deg); }
  50% { transform: rotate(20deg); }
  75% { transform: rotate(5deg); }
}

/* Steam Puffs escaping */
.steam-puff-effect {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  filter: blur(5px);
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  animation: steamRiseAnim 3s infinite ease-out;
}
@keyframes steamRiseAnim {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  15% { opacity: 0.6; }
  50% { transform: translateY(-40px) scale(1.2); opacity: 0.3; }
  100% { transform: translateY(-80px) scale(1.8); opacity: 0; }
}

/* Underwater / Lab bubbles */
.lab-bubble {
  position: absolute;
  bottom: -10px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  animation: bubbleRiseAnim 7s infinite linear;
}
@keyframes bubbleRiseAnim {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-320px) translateX(30px); opacity: 0; }
}

/* Electric Sparks */
.electric-spark {
  position: absolute;
  width: 15px;
  height: 15px;
  background: #38bdf8;
  clip-path: polygon(50% 0%, 100% 50%, 50% 60%, 80% 100%, 0% 50%, 40% 40%);
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 10px #38bdf8;
  animation: sparkFlash 5s infinite steps(1);
}
@keyframes sparkFlash {
  0%, 95%, 100% { opacity: 0; }
  96%, 98% { opacity: 0.95; transform: scale(1.2) rotate(15deg); }
  97%, 99% { opacity: 0.8; transform: scale(0.8) rotate(-10deg); }
}

/* Warning Light Dome */
.lab-warning-light {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 20px;
  background: #475569;
  border-radius: 16px 16px 0 0;
  border: 2px solid #334155;
  z-index: 4;
}
.lab-warning-light.light-green {
  background: #10b981;
  box-shadow: 0 0 20px 8px rgba(16, 185, 129, 0.7);
  animation: lightPulseGreen 1.5s infinite alternate ease-in-out;
}
.lab-warning-light.light-red {
  background: #ef4444;
  box-shadow: 0 0 20px 8px rgba(239, 68, 68, 0.7);
  animation: lightPulseRed 0.6s infinite alternate ease-in-out;
}
@keyframes lightPulseGreen {
  from { opacity: 0.6; box-shadow: 0 0 10px 4px rgba(16, 185, 129, 0.4); }
  to { opacity: 1; box-shadow: 0 0 25px 12px rgba(16, 185, 129, 0.85); }
}
@keyframes lightPulseRed {
  from { opacity: 0.5; box-shadow: 0 0 8px 3px rgba(239, 68, 68, 0.3); }
  to { opacity: 1; box-shadow: 0 0 30px 15px rgba(239, 68, 68, 0.95); }
}

/* Battery Upgrade styling */
.battery-cylinder {
  width: 100px;
  height: 180px;
  border: 6px solid #e2e8f0;
  border-radius: 18px;
  position: relative;
  padding: 10px;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  background: rgba(15, 23, 42, 0.75);
  box-shadow: 
    inset 0 8px 16px rgba(0,0,0,0.6),
    0 12px 36px rgba(0,0,0,0.7),
    0 0 0 3px rgba(255,255,255,0.05);
  backdrop-filter: blur(4px);
  z-index: 5;
  transition: border-color 0.5s ease;
}
.battery-cylinder::before {
  content: '';
  position: absolute;
  top: -15px;
  left: calc(50% - 18px);
  width: 36px;
  height: 10px;
  background: #e2e8f0;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.3);
}

.battery-cell-segment {
  width: 100%;
  height: 36px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255,255,255,0.02);
}

/* Battery States */
.battery-cylinder.state-full {
  border-color: #34d399;
}
.battery-cylinder.state-full::before {
  background: #34d399;
}
.battery-cylinder.state-full .battery-cell-segment {
  background: linear-gradient(90deg, #10b981 0%, #34d399 50%, #059669 100%);
  box-shadow: 
    0 0 15px rgba(16, 185, 129, 0.6),
    inset 0 2px 4px rgba(255,255,255,0.4);
  border-color: rgba(255,255,255,0.15);
}

.battery-cylinder.state-empty {
  border-color: #f87171;
}
.battery-cylinder.state-empty::before {
  background: #f87171;
}
.battery-cylinder.state-empty .battery-cell-segment:first-child {
  background: linear-gradient(90deg, #ef4444 0%, #f87171 50%, #b91c1c 100%);
  box-shadow: 
    0 0 15px rgba(239, 68, 68, 0.6),
    inset 0 2px 4px rgba(255,255,255,0.4);
  border-color: rgba(255,255,255,0.15);
  animation: batteryAlertFlash 0.4s infinite alternate ease-in-out;
}

.battery-energy-glow {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  z-index: -1;
  background: transparent;
  transition: background 0.5s ease;
}
.battery-cylinder.state-full .battery-energy-glow {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
  animation: energyPulse 3s infinite ease-in-out alternate;
}
@keyframes energyPulse {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* Robot HUD inside lab */
.battery-bit-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}
.battery-bit-sprite {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  transition: transform 0.3s ease;
}
.battery-bit-sprite:hover {
  transform: scale(1.05);
}

/* Status Banner inside Lab */
.lab-title-banner {
  position: absolute;
  top: 15px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: #ffffff;
  font-family: Fredoka, sans-serif;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  z-index: 10;
  animation: bannerEntry 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.lab-title-icon {
  font-size: 20px;
  animation: bounceSlow 3s infinite ease-in-out;
}




/* --- PREMIUM GAME STYLE FOR MULTIPLE CHOICE SIMULATIONS --- */
/* === MISSION 1: TROPICAL BEACH PARADISE === */
.beach-stage {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  padding-bottom: 10px;
}

/* ---- SKY ---- */
.beach-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    #1a73e8 0%,
    #4fc3f7 25%,
    #81d4fa 40%,
    #b3e5fc 55%,
    #fff9c4 70%,
    #ffcc80 82%,
    #ff8a65 92%,
    #ef5350 100%
  );
}

/* ---- SUN ---- */
.beach-sun {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, #fff9c4 0%, #ffee58 30%, #ffa726 70%, transparent 100%);
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 60px 20px rgba(255, 183, 77, 0.6), 0 0 120px 40px rgba(255, 152, 0, 0.3);
  animation: sunPulse 4s infinite ease-in-out alternate;
}

.beach-sun-rays {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  z-index: 0;
  background: radial-gradient(circle, rgba(255, 245, 157, 0.35) 0%, transparent 65%);
  animation: sunRaysSpin 20s linear infinite;
  pointer-events: none;
}

@keyframes sunPulse {
  0% { transform: translateX(-50%) scale(1); box-shadow: 0 0 60px 20px rgba(255, 183, 77, 0.6), 0 0 120px 40px rgba(255, 152, 0, 0.3); }
  100% { transform: translateX(-50%) scale(1.08); box-shadow: 0 0 80px 30px rgba(255, 183, 77, 0.7), 0 0 160px 50px rgba(255, 152, 0, 0.4); }
}

@keyframes sunRaysSpin {
  0% { transform: translateX(-50%) rotate(0deg); }
  100% { transform: translateX(-50%) rotate(360deg); }
}

/* ---- CLOUDS ---- */
.beach-cloud {
  position: absolute;
  width: 120px;
  height: 40px;
  z-index: 2;
  pointer-events: none;
  animation: cloudFloat 30s linear infinite;
  opacity: 0.9;
}

.beach-cloud::before,
.beach-cloud::after {
  content: '';
  position: absolute;
  background: #fff;
  border-radius: 50%;
}

.beach-cloud::before {
  width: 80px;
  height: 35px;
  bottom: 0;
  left: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.beach-cloud::after {
  width: 50px;
  height: 50px;
  bottom: 8px;
  left: 35px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.beach-cloud-0::before { background: #fff; }
.beach-cloud-1::before { background: rgba(255,255,255,0.85); }
.beach-cloud-2::before { background: rgba(255,255,255,0.7); }
.beach-cloud-3::before { background: rgba(255,255,255,0.6); }
.beach-cloud-0::after { background: #fff; }
.beach-cloud-1::after { background: rgba(255,255,255,0.85); }
.beach-cloud-2::after { background: rgba(255,255,255,0.7); }
.beach-cloud-3::after { background: rgba(255,255,255,0.6); }

@keyframes cloudFloat {
  0% { left: -180px; }
  100% { left: calc(100% + 50px); }
}

/* ---- SEAGULLS ---- */
.beach-seagull {
  position: absolute;
  z-index: 3;
  width: 18px;
  height: 6px;
  pointer-events: none;
  animation: seagullFly 18s linear infinite;
}

.beach-seagull::before,
.beach-seagull::after {
  content: '';
  position: absolute;
  width: 9px;
  height: 3px;
  background: #37474f;
  border-radius: 50% 50% 0 0;
  top: 0;
}

.beach-seagull::before {
  left: 0;
  transform: rotate(-25deg);
  transform-origin: bottom right;
  animation: seagullWingL 0.5s infinite alternate ease-in-out;
}

.beach-seagull::after {
  right: 0;
  transform: rotate(25deg);
  transform-origin: bottom left;
  animation: seagullWingR 0.5s infinite alternate ease-in-out;
}

@keyframes seagullFly {
  0% { left: -30px; }
  100% { left: calc(100% + 30px); }
}

@keyframes seagullWingL {
  0% { transform: rotate(-25deg); }
  100% { transform: rotate(-45deg); }
}

@keyframes seagullWingR {
  0% { transform: rotate(25deg); }
  100% { transform: rotate(45deg); }
}

/* ---- SPARKLE PARTICLES ---- */
.beach-sparkle {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  z-index: 5;
  pointer-events: none;
  animation: sparkleFloat 3s infinite ease-in-out alternate;
  box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.8);
}

@keyframes sparkleFloat {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  50% { opacity: 1; transform: translateY(-8px) scale(1.2); }
  100% { opacity: 0; transform: translateY(-16px) scale(0.3); }
}

/* ---- OCEAN ---- */
.beach-ocean {
  position: absolute;
  bottom: 100px;
  left: 0;
  width: 100%;
  height: calc(100% - 200px);
  z-index: 1;
  background: linear-gradient(180deg, rgba(3, 169, 244, 0.0) 0%, #0288d1 40%, #01579b 100%);
  overflow: hidden;
}

.beach-wave {
  position: absolute;
  width: 200%;
  left: -50%;
  border-radius: 45%;
}

.beach-wave-1 {
  bottom: -5px;
  height: 60px;
  background: rgba(3, 169, 244, 0.5);
  animation: waveRoll 5s infinite ease-in-out;
}

.beach-wave-2 {
  bottom: -15px;
  height: 50px;
  background: rgba(2, 136, 209, 0.4);
  animation: waveRoll 7s infinite ease-in-out reverse;
}

.beach-wave-3 {
  bottom: -25px;
  height: 45px;
  background: rgba(1, 87, 155, 0.3);
  animation: waveRoll 9s infinite ease-in-out;
}

@keyframes waveRoll {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  50% { transform: translateX(4%) rotate(1deg); }
}

/* ---- FOAM LINE ---- */
.beach-foam-line {
  position: absolute;
  bottom: 95px;
  left: 0;
  width: 100%;
  height: 14px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 50% 50% 0 0 / 10px 10px 0 0;
  filter: blur(2px);
  animation: foamPulse 3s infinite ease-in-out alternate;
}

@keyframes foamPulse {
  0% { transform: scaleY(0.7) translateY(4px); opacity: 0.5; }
  100% { transform: scaleY(1.3) translateY(-2px); opacity: 0.9; }
}

/* ---- SAND ---- */
.beach-sands {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 110px;
  background: linear-gradient(180deg, #ffe082 0%, #ffd54f 30%, #ffca28 60%, #d4a017 100%);
  z-index: 4;
  border-top: 3px solid rgba(255, 224, 130, 0.8);
  box-shadow: inset 0 10px 20px rgba(139, 100, 0, 0.15);
}

.beach-sand-detail {
  position: absolute;
  font-size: 18px;
  z-index: 5;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
  animation: sandDetailBob 4s infinite ease-in-out alternate;
}

.sand-shell-1 { bottom: 20px; left: 8%; animation-delay: 0s; }
.sand-shell-2 { bottom: 35px; left: 28%; animation-delay: 0.8s; }
.sand-shell-3 { bottom: 15px; right: 12%; animation-delay: 1.6s; }
.sand-starfish { bottom: 30px; right: 30%; animation-delay: 2.4s; }

@keyframes sandDetailBob {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-3px) rotate(5deg); }
}

/* ---- PALM TREES ---- */
.palm-tree {
  position: absolute;
  bottom: 50px;
  width: 130px;
  height: 240px;
  z-index: 6;
  pointer-events: none;
}

.palm-tree-left {
  left: -10px;
  transform: scaleX(-1);
}

.palm-tree-right {
  right: -10px;
}

.palm-leaves path {
  transform-origin: center;
  animation: palmLeavesSway 3s infinite ease-in-out alternate;
}

.palm-leaves path:nth-child(2) { animation-delay: 0.3s; }
.palm-leaves path:nth-child(3) { animation-delay: 0.6s; }
.palm-leaves path:nth-child(4) { animation-delay: 0.9s; }
.palm-leaves path:nth-child(5) { animation-delay: 1.2s; }

@keyframes palmLeavesSway {
  0% { transform: rotate(-4deg) translateX(-2px); }
  100% { transform: rotate(4deg) translateX(2px); }
}

/* ---- SHIP SILHOUETTE ---- */
.beach-ship-silhouette {
  position: absolute;
  bottom: 150px;
  right: 60px;
  width: 50px;
  height: 22px;
  z-index: 2;
  opacity: 0.3;
  animation: shipFloat 6s infinite ease-in-out alternate;
}

.beach-ship-silhouette::before {
  content: '⛵';
  font-size: 28px;
  position: absolute;
  bottom: 0;
  filter: grayscale(0.3);
}

@keyframes shipFloat {
  0% { transform: translateY(0) translateX(0); }
  100% { transform: translateY(-4px) translateX(6px); }
}

/* ---- CRABS ---- */
.crabs-group {
  display: flex;
  gap: 40px;
  z-index: 7;
  margin-bottom: 10px;
}

.crab-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.crab-shadow {
  width: 60px;
  height: 10px;
  background: rgba(0,0,0,0.15);
  border-radius: 50%;
  position: absolute;
  bottom: 28px;
  z-index: -1;
  filter: blur(3px);
}

.crab-svg {
  width: 110px;
  height: 90px;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.35));
  transform-origin: bottom center;
  transition: transform 0.2s;
}

.crab-1 .crab-svg {
  animation: crabDanceJump 1.2s infinite ease-in-out;
}

.crab-2 .crab-svg {
  animation: crabDanceSlide 1.2s infinite ease-in-out;
}

.crab-3 .crab-svg {
  animation: crabDanceJumpSlide 1.2s infinite ease-in-out;
}

@keyframes crabDanceJump {
  0%, 100% { transform: translateY(0) scaleY(1); }
  30% { transform: translateY(-25px) scaleY(0.92) scaleX(1.05); }
  60% { transform: translateY(-5px) scaleY(1.05); }
}

@keyframes crabDanceSlide {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(18px) rotate(8deg); }
  50% { transform: translateX(0) rotate(0deg); }
  75% { transform: translateX(-18px) rotate(-8deg); }
}

@keyframes crabDanceJumpSlide {
  0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
  25% { transform: translateY(-20px) translateX(-12px) rotate(-12deg); }
  50% { transform: translateY(0) translateX(0) rotate(0deg); }
  75% { transform: translateY(-15px) translateX(12px) rotate(12deg); }
}

/* ---- BEACH GAME TITLE BANNER ---- */
.beach-title-banner {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.08) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 8px 22px;
  font-family: Fredoka, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  animation: bannerBounce 3s infinite ease-in-out;
  white-space: nowrap;
}

.beach-title-icon {
  font-size: 20px;
  animation: iconBounce 1.5s infinite ease-in-out alternate;
}

@keyframes bannerBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-4px); }
}

@keyframes iconBounce {
  0% { transform: scale(1) rotate(-5deg); }
  100% { transform: scale(1.15) rotate(5deg); }
}

/* Wood Sign Labels (Rustic style) */
.wood-sign {
  background: linear-gradient(180deg, #a0612a 0%, #7c4a1e 50%, #5c3510 100%);
  border: 2px solid #3e2209;
  border-radius: 8px;
  box-shadow: 
    0 6px 12px rgba(0,0,0,0.5), 
    inset 0 2px 4px rgba(255,255,255,0.2),
    inset 0 -2px 4px rgba(0,0,0,0.3);
  font-family: Fredoka, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #fef08a;
  padding: 5px 16px;
  text-shadow: 0 1.5px 0 #3e2209;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
  border-bottom-width: 4px;
  position: relative;
}

.wood-sign::before,
.wood-sign::after {
  content: '';
  width: 5px;
  height: 5px;
  background: radial-gradient(circle at 35% 35%, #f2c35b, #b8860b);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.6);
  border: 0.5px solid #451a03;
}

/* --- LIGHTHOUSE ARENA CRAGS --- */
.cliff-crags {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100px;
  z-index: 1;
}

.cliff-path {
  fill: #1e293b;
  stroke: #0f172a;
  stroke-width: 2.5;
}

.twinkle-star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #fff;
  border-radius: 50%;
  z-index: 2;
  animation: starTwinkle 1.8s infinite ease-in-out alternate;
  box-shadow: 0 0 6px #fff;
}

@keyframes starTwinkle {
  0% { opacity: 0.2; transform: scale(0.7); }
  100% { opacity: 1; transform: scale(1.3); }
}

/* --- SUBMARINE LAB / STEAM WORKSHOP (M5) --- */
.lab-workshop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: 
    linear-gradient(180deg, rgba(13, 27, 42, 0.95), rgba(6, 13, 23, 0.98));
}

.pipes-layout {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.pipe-line {
  stroke: #b45309;
  stroke-width: 8;
  stroke-linecap: round;
  fill: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.pipe-joint {
  fill: #d97706;
  stroke: #78350f;
  stroke-width: 1.5;
}

.gauge-gauge {
  position: absolute;
  top: 40px;
  left: 40px;
  width: 44px;
  height: 44px;
  background: radial-gradient(circle, #f8fafc 0%, #cbd5e1 100%);
  border: 3px solid #78350f;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 
    0 4px 8px rgba(0,0,0,0.5),
    inset 0 0 6px rgba(0,0,0,0.2);
}

.gauge-arrow {
  position: absolute;
  top: calc(50% - 1.5px);
  left: 50%;
  width: 16px;
  height: 3px;
  background: #dc2626;
  transform-origin: left center;
  transform: rotate(45deg);
  animation: gaugeVibrate 1.2s infinite ease-in-out alternate;
}

@keyframes gaugeVibrate {
  0% { transform: rotate(15deg); }
  100% { transform: rotate(75deg); }
}

/* Steam particles */
.steam-puff-effect {
  position: absolute;
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  filter: blur(5px);
  animation: steamPuff 2s infinite linear;
  pointer-events: none;
  z-index: 2;
}

@keyframes steamPuff {
  0% { transform: translateY(0) scale(0.4); opacity: 0; }
  30% { opacity: 0.5; }
  100% { transform: translateY(-70px) translateX(20px) scale(1.6); opacity: 0; }
}

/* --- HUD CABINET METALLIC OVERLAY --- */
.hud-rivet {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle at 35% 35%, #cbd5e1 0%, #64748b 100%);
  border-radius: 50%;
  border: 1px solid #1e293b;
  box-shadow: 
    inset -1px -1px 2px rgba(0,0,0,0.7),
    1px 1px 2px rgba(255,255,255,0.15);
  z-index: 10;
  pointer-events: none;
}

.hud-rivet-tl { top: 12px; left: 12px; }
.hud-rivet-tr { top: 12px; right: 12px; }
.hud-rivet-bl { bottom: 12px; left: 12px; }
.hud-rivet-br { bottom: 12px; right: 12px; }

.mission-loop-hud-sidebar {
  border-left: 3px solid rgba(242, 195, 91, 0.45) !important;
  position: relative;
}

/* Submarine Dial Volver Button */
.mission-loop-hud-header #guidedBackToSubmapBtn {
  background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%) !important;
  border: 2px solid #7f1d1d !important;
  border-radius: 14px !important;
  font-family: Fredoka, sans-serif !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 8px 18px !important;
  box-shadow: 
    0 4px 10px rgba(0,0,0,0.4),
    inset 0 1px 3px rgba(255,255,255,0.2) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.mission-loop-hud-header #guidedBackToSubmapBtn:hover {
  transform: translateY(-2px) scale(1.04);
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%) !important;
  box-shadow: 
    0 6px 15px rgba(239, 68, 68, 0.35),
    inset 0 1px 3px rgba(255,255,255,0.3) !important;
}

.mission-loop-hud-header #guidedBackToSubmapBtn:active {
  transform: translateY(1px);
}
