:root {
  --bg-1: #07111f;
  --bg-2: #111d32;
  --panel: rgba(14, 27, 49, 0.88);
  --panel-soft: rgba(23, 43, 72, 0.9);
  --panel-strong: rgba(18, 35, 59, 0.96);
  --primary: #72e0ff;
  --primary-2: #7b7cf4;
  --accent: #ffd166;
  --gold: #ffcf5a;
  --violet: #a972ff;
  --success: #8ef0a8;
  --danger: #ff7e7e;
  --text: #eff6ff;
  --muted: #a5bfdc;
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.38);
  --character-skin: #f2c9a0;
  --character-hair: #3b271d;
  --character-outfit: #4c6af5;
  --character-pants: #2a3454;
  --character-accent: #ffd166;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top, rgba(123, 124, 244, 0.45), transparent 28%),
    radial-gradient(circle at bottom left, rgba(114, 224, 255, 0.22), transparent 34%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.8;
  z-index: 0;
}

body::before {
  width: 360px;
  height: 360px;
  top: 60px;
  left: 8%;
  background: rgba(114, 224, 255, 0.18);
}

body::after {
  width: 420px;
  height: 420px;
  right: 5%;
  bottom: 10%;
  background: rgba(169, 114, 255, 0.16);
}

button {
  font: inherit;
}

.app-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: linear-gradient(135deg, rgba(13, 26, 43, 0.92), rgba(16, 33, 53, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(4, 10, 23, 0.52), inset 0 1px 0 rgba(255,255,255,0.1);
  overflow: hidden;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -12%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(114, 224, 255, 0.24), transparent 68%);
  pointer-events: none;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary);
  font-size: 0.72rem;
}

h1 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 2vw, 3rem);
}

.stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.stat-card {
  min-width: 140px;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(31, 53, 82, 0.96), rgba(15, 24, 39, 0.96));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: inset 0 1px rgba(255,255,255,0.08), 0 14px 26px rgba(8,12,18,0.2), 0 0 0 1px rgba(114,224,255,0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(114, 224, 255, 0.48);
}

.stat-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.stat-card strong {
  font-size: 1.22rem;
}

.toolbar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.hidden {
  display: none !important;
}

.seasonal-panel,
.exclusive-panel {
  margin-bottom: 24px;
}

.season-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.season-header h2 {
  margin: 6px 0 0;
}

.season-description,
.exclusive-message {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
}

.season-benefits-list,
.exclusive-tutorials {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.season-benefits-list li,
.exclusive-tutorials li {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
}

.exclusive-tutorials {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.mini-note {
  display: block;
  margin-top: 6px;
  font-size: 0.76rem;
  opacity: 0.85;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(22, 38, 62, 0.96), rgba(14, 25, 41, 0.96));
  transform-style: preserve-3d;
  perspective: 1200px;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(114, 224, 255, 0.12), transparent 35%, rgba(169, 114, 255, 0.12));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 8px 6px;
}

.hero-copy h2 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.04em;
  text-shadow: 0 10px 20px rgba(114, 224, 255, 0.18);
}

.hero-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
}

.hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}

.hero-stat {
  min-width: 200px;
  flex: 1;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.hero-stat.accent {
  background: linear-gradient(180deg, rgba(255,209,102,0.14), rgba(255,255,255,0.02));
}

.hero-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 1.2rem;
}

.xp-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  margin-top: 10px;
}

.xp-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 18px rgba(114, 224, 255, 0.6);
}

.scene {
  position: relative;
  min-height: 330px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.18);
  background:
    radial-gradient(circle at 50% 30%, rgba(114, 224, 255, 0.2), transparent 22%),
    linear-gradient(180deg, rgba(15, 24, 40, 0.95), rgba(9, 16, 29, 0.95));
  overflow: hidden;
  display: grid;
  place-items: center;
  perspective: 1200px;
  transform-style: preserve-3d;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 16px 36px rgba(0,0,0,0.28), 0 0 30px rgba(114,224,255,0.18);
}

.scene::before {
  content: "";
  position: absolute;
  inset: 8% 8% auto auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.4), rgba(114,224,255,0.12) 38%, transparent 70%);
  filter: blur(8px);
  transform: translateZ(60px);
}

.mission-screen {
  margin-bottom: 24px;
}

.mission-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.mission-header h2 {
  margin: 6px 0 0;
}

.mission-hud {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
  color: var(--muted);
}

.mission-result {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(142, 240, 168, 0.18), rgba(255,255,255,0.04));
  border: 1px solid rgba(142, 240, 168, 0.48);
  color: var(--success);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

.mission-status {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mission-status span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.mission-coins {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}

.mission-coins span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.mission-controls {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}

#mission-canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(10, 20, 33, 0.96), rgba(20, 28, 41, 0.96));
  box-shadow: 0 20px 40px rgba(0,0,0,0.38), inset 0 0 22px rgba(114,224,255,0.08);
}

.planet-halo {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 144, 255, 0.26), rgba(15, 24, 40, 0.08) 55%, transparent 70%);
  border: 1px solid rgba(114, 224, 255, 0.25);
  box-shadow: inset 0 0 40px rgba(114, 224, 255, 0.16), 0 0 38px rgba(114,224,255,0.18);
  animation: haloPulse 5s ease-in-out infinite;
  transform: translateZ(30px);
}

.character-3d {
  position: relative;
  width: 220px;
  height: 280px;
  transform-style: preserve-3d;
  animation: characterFloat 4s ease-in-out infinite;
}

.character-shadow {
  position: absolute;
  bottom: 8px;
  left: 34px;
  width: 150px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  filter: blur(10px);
  animation: shadowPulse 4s ease-in-out infinite;
}

.character-head {
  position: absolute;
  top: 18px;
  left: 66px;
  width: 88px;
  height: 100px;
  border-radius: 42% 42% 48% 48%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--character-skin) 90%, white), var(--character-skin));
  border: 4px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset -10px -12px 18px rgba(126, 84, 42, 0.2), 0 18px 30px rgba(0,0,0,0.28);
  transform: translateZ(52px);
}

.character-hair {
  position: absolute;
  left: 4px;
  right: 4px;
  top: -10px;
  height: 32px;
  border-radius: 46% 46% 30% 30%;
  background: linear-gradient(180deg, var(--character-hair), color-mix(in srgb, var(--character-hair) 78%, black));
  box-shadow: inset 0 -6px 10px rgba(0,0,0,0.2);
}

.character-face {
  position: absolute;
  inset: 18px 12px 12px;
  border-radius: 42% 42% 50% 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.04));
}

.eye {
  position: absolute;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1e242d;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.12);
}

.eye-left {
  left: 18px;
}

.eye-right {
  right: 18px;
}

.mouth {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 24px;
  height: 12px;
  margin-left: -12px;
  border-bottom: 3px solid rgba(107, 46, 31, 0.7);
  border-radius: 0 0 18px 18px;
}

.character-body {
  position: absolute;
  top: 110px;
  left: 50px;
  width: 120px;
  height: 118px;
  border-radius: 26px 26px 22px 22px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--character-outfit) 90%, white), var(--character-outfit));
  border: 4px solid rgba(255,255,255,0.35);
  box-shadow: inset -12px -10px 18px rgba(0,0,0,0.22), 0 18px 28px rgba(15, 22, 37, 0.25);
  transform: translateZ(26px);
}

.character-cape,
.character-visor,
.character-weapon {
  position: absolute;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.character-cape {
  top: 120px;
  left: 38px;
  width: 144px;
  height: 118px;
  border-radius: 36px 36px 22px 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(123,124,244,0.65));
  border: 3px solid rgba(255,255,255,0.3);
  transform: translateZ(8px);
  box-shadow: inset 0 -10px 22px rgba(0,0,0,0.18);
}

.character-visor {
  top: 62px;
  left: 50%;
  width: 82px;
  height: 16px;
  margin-left: -41px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.44), var(--accessory-accent));
  border: 2px solid rgba(255,255,255,0.4);
  box-shadow: 0 0 16px rgba(114,224,255,0.24);
  transform: translateZ(70px);
}

.character-weapon {
  top: 128px;
  right: 18px;
  width: 18px;
  height: 72px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.34), rgba(27,36,48,0.95));
  border: 2px solid rgba(255,255,255,0.28);
  box-shadow: inset 0 0 10px rgba(255,255,255,0.1);
  transform: translateZ(38px) rotate(-10deg);
}

.character-3d[data-accessory='visor'] .character-visor,
.character-3d[data-accessory='capa'] .character-cape,
.character-3d[data-accessory='arma'] .character-weapon {
  opacity: 1;
}

.character-3d[data-accessory='botas'] .shoe {
  background: linear-gradient(180deg, var(--accessory-accent), rgba(18,22,31,0.95));
}

.character-jacket {
  position: absolute;
  inset: 10px 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(0,0,0,0.08));
  border: 2px solid rgba(255,255,255,0.24);
}

.character-badge {
  position: absolute;
  right: 22px;
  top: 20px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--character-accent), color-mix(in srgb, var(--character-accent) 70%, gold));
  box-shadow: 0 0 18px rgba(255, 209, 102, 0.7);
}

.character-arm {
  position: absolute;
  top: 120px;
  width: 30px;
  height: 96px;
  border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--character-skin) 96%, white), var(--character-skin));
  border: 3px solid rgba(255,255,255,0.38);
  box-shadow: inset -6px -9px 12px rgba(116, 82, 56, 0.18);
  transform-origin: top center;
}

.arm-left {
  left: 24px;
  transform: translateZ(22px) rotate(24deg);
  animation: armLeftMove 1.5s ease-in-out infinite alternate;
}

.arm-right {
  right: 24px;
  transform: translateZ(22px) rotate(-24deg);
  animation: armRightMove 1.5s ease-in-out infinite alternate;
}

.hand {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 22px;
  height: 18px;
  margin-left: -11px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--character-skin), color-mix(in srgb, var(--character-skin) 82%, brown));
}

.character-leg {
  position: absolute;
  top: 210px;
  width: 34px;
  height: 74px;
  border-radius: 16px 16px 18px 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--character-pants) 94%, white), var(--character-pants));
  border: 3px solid rgba(255,255,255,0.28);
  box-shadow: inset -8px -6px 12px rgba(0,0,0,0.18);
  transform-origin: top center;
}

.leg-left {
  left: 72px;
  transform: translateZ(18px) rotate(8deg);
  animation: legLeftMove 1.5s ease-in-out infinite alternate;
}

.leg-right {
  right: 72px;
  transform: translateZ(18px) rotate(-8deg);
  animation: legRightMove 1.5s ease-in-out infinite alternate;
}

.shoe {
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 42px;
  height: 16px;
  margin-left: -21px;
  border-radius: 14px 14px 10px 10px;
  background: linear-gradient(180deg, rgba(32,38,53,0.8), rgba(18,22,31,0.95));
}

@keyframes characterFloat {
  0%, 100% {
    transform: translateY(0px) rotateX(8deg) rotateY(-14deg);
  }
  50% {
    transform: translateY(-12px) rotateX(-6deg) rotateY(10deg);
  }
}

@keyframes haloPulse {
  0%, 100% {
    transform: scale(0.96);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes shadowPulse {
  0%, 100% {
    transform: scaleX(1);
    opacity: 0.5;
  }
  50% {
    transform: scaleX(1.18);
    opacity: 0.8;
  }
}

@keyframes armLeftMove {
  0% {
    transform: translateZ(20px) rotate(28deg);
  }
  100% {
    transform: translateZ(28px) rotate(52deg);
  }
}

@keyframes armRightMove {
  0% {
    transform: translateZ(20px) rotate(-28deg);
  }
  100% {
    transform: translateZ(28px) rotate(-52deg);
  }
}

@keyframes legLeftMove {
  0% {
    transform: translateZ(18px) rotate(10deg);
  }
  100% {
    transform: translateZ(20px) rotate(-18deg);
  }
}

@keyframes legRightMove {
  0% {
    transform: translateZ(18px) rotate(-10deg);
  }
  100% {
    transform: translateZ(20px) rotate(18deg);
  }
}

button {
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease, filter 0.2s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.08);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.primary {
  background: linear-gradient(135deg, #7de2ff 0%, #7f8bff 40%, #a966ff 100%);
  box-shadow: 0 12px 28px rgba(101, 122, 255, 0.36), 0 0 22px rgba(141, 117, 255, 0.28);
  border: 1px solid rgba(255,255,255,0.22);
}

.secondary {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 18px rgba(0,0,0,0.14);
}

.layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.panel {
  background: linear-gradient(180deg, rgba(17, 31, 51, 0.94), rgba(10, 18, 30, 0.96));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 18px 42px rgba(4, 10, 23, 0.52), inset 0 1px 0 rgba(255,255,255,0.08), 0 0 0 1px rgba(114,224,255,0.05);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(114, 224, 255, 0.06), transparent 45%, rgba(169, 114, 255, 0.06));
  pointer-events: none;
}

.wide-panel {
  grid-column: span 2;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.panel-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.planet-list,
.mission-list,
.level-list {
  display: grid;
  gap: 14px;
}

.planet-card,
.mission-card,
.level-card {
  background: linear-gradient(180deg, rgba(29, 49, 77, 0.9), rgba(16, 28, 44, 0.9));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.planet-card:hover,
.mission-card:hover,
.level-card:hover {
  transform: translateY(-2px);
  border-color: rgba(114, 224, 255, 0.44);
  box-shadow: 0 16px 28px rgba(0,0,0,0.18);
}

.character-panel,
.accessory-panel {
  margin-bottom: 24px;
}

.shop-note {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
}

.character-list,
.accessory-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.character-card,
.accessory-card {
  background: linear-gradient(180deg, rgba(26, 45, 72, 0.92), rgba(17, 29, 45, 0.92));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.character-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 120px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
}

.character-visual::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 20%, rgba(255,255,255,0.12), transparent 40%);
}

.mini-avatar {
  position: relative;
  width: 72px;
  height: 92px;
  z-index: 1;
}

.mini-head {
  position: absolute;
  top: 0;
  left: 50%;
  width: 32px;
  height: 32px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--preview-skin);
  box-shadow: inset 0 -5px rgba(0,0,0,0.08);
}

.mini-body {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 46px;
  height: 54px;
  transform: translateX(-50%);
  border-radius: 14px 14px 12px 12px;
  background: linear-gradient(180deg, var(--preview-outfit), var(--preview-pants));
  box-shadow: inset 0 -6px rgba(0,0,0,0.12);
}

.mini-body::before {
  content: "";
  position: absolute;
  inset: 10px 12px auto;
  height: 12px;
  border-radius: 8px;
  background: var(--preview-accent);
}

.mini-badge {
  position: absolute;
  top: 28px;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--preview-accent);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.12);
}

.character-card:hover,
.accessory-card:hover {
  transform: translateY(-2px);
  border-color: rgba(114, 224, 255, 0.44);
  box-shadow: 0 16px 30px rgba(0,0,0,0.22);
}

.character-card.selected,
.accessory-card.selected {
  border-color: rgba(255,209,102,0.75);
  box-shadow: 0 0 0 1px rgba(255,209,102,0.4), 0 18px 30px rgba(0,0,0,0.2);
}

.character-card.locked {
  opacity: 0.72;
}

.character-card-header,
.accessory-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.character-card h3,
.accessory-card h3 {
  margin: 6px 0 0;
  font-size: 1.08rem;
}

.character-rarity {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(114, 224, 255, 0.12);
  border: 1px solid rgba(114, 224, 255, 0.34);
  color: var(--primary);
}

.character-price {
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 800;
}

.character-card p,
.accessory-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.planet-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.planet-card.locked {
  opacity: 0.58;
}

.planet-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.74rem;
  font-weight: 700;
}

.badge.discovered {
  background: rgba(142, 240, 168, 0.14);
  color: var(--success);
  border: 1px solid rgba(142, 240, 168, 0.5);
}

.badge.locked {
  background: rgba(255, 126, 126, 0.12);
  color: var(--danger);
  border: 1px solid rgba(255, 126, 126, 0.4);
}

.mission-card {
  display: grid;
  gap: 14px;
}

.mission-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.mission-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.mission-description,
.mission-meta {
  color: var(--muted);
  margin: 0;
}

.mission-meta {
  font-size: 0.86rem;
}

.mission-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reward {
  color: var(--accent);
  font-weight: 800;
}

.level-list {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.level-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.level-card h3 {
  margin: 0;
}

.level-card p {
  margin: 0;
  color: var(--muted);
}

.log-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.log-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--muted);
}

.paywall {
  position: fixed;
  inset: 0;
  background: rgba(4, 9, 18, 0.72);
  display: grid;
  place-items: center;
  padding: 24px;
}

.hidden {
  display: none;
}

.paywall-card {
  width: min(480px, 100%);
  padding: 28px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(20,33,56,0.98), rgba(11,17,28,0.98));
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 28px 70px rgba(0,0,0,0.56), 0 0 0 1px rgba(114,224,255,0.2), 0 0 22px rgba(130,120,255,0.18);
  position: relative;
  overflow: hidden;
}

.paywall-card::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -8%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(114,224,255,0.22), transparent 68%);
  pointer-events: none;
}

.paywall-card h3 {
  margin-top: 0;
  font-size: 1.6rem;
}

.paywall-card p {
  color: var(--muted);
  line-height: 1.6;
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.payment-option {
  flex: 1;
  min-width: 110px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.payment-option.active {
  background: linear-gradient(135deg, rgba(114,224,255,0.18), rgba(123,124,244,0.14));
  border-color: rgba(114,224,255,0.8);
  box-shadow: inset 0 0 0 1px rgba(114,224,255,0.2), 0 0 18px rgba(114,224,255,0.18);
}

.payment-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field-grid-small {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.payment-field input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 10px 12px;
}

.payment-group.hidden {
  display: none;
}

.paywall-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .wide-panel {
    grid-column: auto;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .stats {
    justify-content: space-between;
  }
}
