:root {
  --bg-top: #070706;
  --bg-bottom: #141008;
  --panel: rgba(22, 20, 16, 0.84);
  --panel-strong: rgba(32, 29, 22, 0.88);
  --panel-soft: rgba(27, 24, 18, 0.92);
  --line: rgba(255, 205, 92, 0.16);
  --text: #fff4d6;
  --muted: #b8a987;
  --accent: #f3b72f;
  --accent-strong: #ffd86b;
  --accent-soft: rgba(243, 183, 47, 0.18);
  --success: #7ddc8a;
  --warning: #ffd45a;
  --error: #ff6b5f;
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.42);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.32);
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.24);
  --gold-glow: 0 0 42px rgba(255, 200, 74, 0.18);
  --gold-glow-strong: 0 0 70px rgba(255, 200, 74, 0.26);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Segoe UI Variable", "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 216, 107, 0.12), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(243, 183, 47, 0.10), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(255, 184, 47, 0.08), transparent 30%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  appearance: none;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 78%, rgba(255, 190, 65, 0.08), transparent 22%),
    radial-gradient(circle at 84% 70%, rgba(243, 183, 47, 0.06), transparent 18%),
    linear-gradient(180deg, rgba(255, 216, 107, 0.03), transparent 30%);
}

.app-shell {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 22px;
  display: grid;
  gap: 20px;
}

.panel,
.panel-soft {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg), var(--gold-glow);
  backdrop-filter: blur(16px);
}

.panel {
  background:
    linear-gradient(180deg, rgba(33, 30, 24, 0.88), rgba(17, 15, 12, 0.92));
  border-radius: var(--radius-xl);
}

.panel-soft {
  background:
    linear-gradient(180deg, rgba(31, 28, 22, 0.9), rgba(19, 17, 13, 0.94));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md), var(--gold-glow);
}

.hero-shell {
  position: relative;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.85fr);
  gap: 18px;
  align-items: stretch;
  overflow: hidden;
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -8%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 99, 0.16), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

.hero-copy,
.hero-note,
.status-console,
.mascot-copy {
  position: relative;
}

.eyebrow,
.section-kicker,
.status-kicker {
  margin: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-strong);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill,
.state-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.48rem 0.82rem;
  background: rgba(18, 16, 12, 0.82);
  border: 1px solid rgba(255, 216, 107, 0.18);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-shell h1 {
  margin: 18px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5vw, 4.1rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: transparent;
  background: linear-gradient(180deg, #fff3cf 0%, #ffd86b 42%, #c88d11 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 24px rgba(255, 211, 94, 0.08);
}

.hero-lead,
.hero-note-copy,
.status-message,
.mascot-copy p,
.action-copy {
  color: var(--muted);
  line-height: 1.58;
}

.hero-lead {
  margin: 0;
  max-width: 42rem;
  font-size: 1.02rem;
}

.hero-note {
  padding: 18px;
  display: grid;
  align-content: end;
  overflow: hidden;
}

.hero-note::before {
  content: "";
  position: absolute;
  inset: auto auto -72px -42px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(243, 183, 47, 0.18), transparent 68%);
}

.hero-note::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 216, 107, 0.08);
  pointer-events: none;
}

.hero-note-title {
  margin: 10px 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
}

.hero-note-copy {
  margin: 0;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(310px, 0.78fr);
  gap: 20px;
}

.mascot-panel,
.side-panel,
.actions-panel {
  padding: 20px;
}

.side-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

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

.panel-header.compact {
  margin-bottom: 14px;
}

.section-title {
  margin: 0.38rem 0 0;
  font-size: 1.5rem;
  line-height: 1.08;
}

.mascot-card {
  display: grid;
  gap: 18px;
}

.mascot-stage {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: end;
  justify-content: center;
  overflow: hidden;
  padding: 24px 18px 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 209, 92, 0.24), transparent 34%),
    radial-gradient(circle at 50% 70%, rgba(243, 183, 47, 0.10), transparent 42%),
    linear-gradient(180deg, rgba(38, 33, 22, 0.96), rgba(12, 11, 9, 0.98));
  border: 1px solid rgba(255, 216, 107, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), var(--gold-glow);
}

.mascot-stage::before {
  content: "";
  position: absolute;
  inset: 10% 13% auto;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 211, 94, 0.42), rgba(255, 211, 94, 0) 72%);
  filter: blur(16px);
  z-index: 0;
}

.mascot-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: min(72%, 280px);
  height: 38px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0) 74%);
  filter: blur(10px);
  z-index: 1;
}

.mascot-image {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  max-width: 360px;
  max-height: 320px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.45));
}

.mascot-copy {
  padding: 18px 18px 4px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(32, 29, 22, 0.92), rgba(20, 18, 14, 0.95));
  border: 1px solid rgba(255, 216, 107, 0.1);
}

.mascot-copy h3 {
  margin: 10px 0 8px;
  font-size: 1.7rem;
}

.mascot-copy p {
  margin: 0;
}

.state-controls {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-button {
  border: 1px solid rgba(255, 216, 107, 0.16);
  border-radius: 999px;
  padding: 0.85rem 1.1rem;
  background: linear-gradient(180deg, rgba(24, 21, 16, 0.96), rgba(13, 12, 10, 0.96));
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.chip-button:hover,
.chip-button:focus-visible,
.action-card:hover,
.action-card:focus-visible,
.skin-item:hover,
.skin-item:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), var(--gold-glow);
  outline: none;
}

.chip-button.is-active {
  color: #161006;
  background: linear-gradient(135deg, #ffd86b, #d99612);
  border-color: transparent;
  box-shadow: var(--shadow-md), var(--gold-glow-strong);
}

.status-console {
  padding: 18px;
}

.status-message {
  margin: 0 0 16px;
  font-size: 0.98rem;
}

.status-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.status-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 216, 107, 0.12);
}

.status-list dt {
  color: var(--muted);
}

.status-list dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.skin-list {
  display: grid;
  gap: 10px;
}

.skin-item,
.action-card {
  width: 100%;
  border: 1px solid rgba(255, 216, 107, 0.12);
  cursor: pointer;
}

.skin-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0.88rem 0.95rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(28, 24, 19, 0.94), rgba(18, 16, 12, 0.96));
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.skin-item span {
  font-weight: 700;
}

.skin-item strong {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.is-unlocked strong {
  color: var(--success);
}

.is-locked strong {
  color: var(--warning);
}

.is-soon strong {
  color: var(--muted);
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.action-card {
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(31, 28, 22, 0.96), rgba(17, 15, 12, 0.98));
  box-shadow: var(--shadow-md);
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.action-card:hover,
.action-card:focus-visible {
  border-color: rgba(255, 216, 107, 0.22);
}

.action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(243, 183, 47, 0.14);
  border: 1px solid rgba(255, 216, 107, 0.16);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.action-name {
  display: block;
  margin-bottom: 8px;
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--text);
}

.action-copy {
  display: block;
  font-size: 0.94rem;
}

code {
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.95em;
  color: var(--accent-strong);
}

@media (max-width: 980px) {
  .hero-shell,
  .layout-grid {
    grid-template-columns: 1fr;
  }

  .action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding: 16px;
    gap: 16px;
  }

  .hero-shell,
  .mascot-panel,
  .side-panel,
  .actions-panel {
    padding: 16px;
  }

  .hero-shell h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .section-title {
    font-size: 1.28rem;
  }

  .mascot-stage {
    min-height: 280px;
    padding-top: 18px;
  }

  .mascot-image {
    max-height: 276px;
  }

  .state-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .action-grid,
  .state-controls {
    grid-template-columns: 1fr;
  }

  .panel-header {
    flex-direction: column;
    align-items: start;
  }

  .mascot-stage {
    min-height: 250px;
  }

  .mascot-copy h3 {
    font-size: 1.45rem;
  }
}
