:root {
  --bg: #08111f;
  --panel: rgba(8, 18, 34, 0.76);
  --panel-strong: rgba(6, 14, 28, 0.92);
  --line: rgba(135, 255, 227, 0.22);
  --text: #edf6ff;
  --muted: #8fa6c4;
  --cyan: #78f5ff;
  --teal: #55ffca;
  --orange: #ff8c42;
  --red: #ff5666;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --font-body: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-display: "Bahnschrift", "Trebuchet MS", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(57, 137, 255, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 140, 66, 0.14), transparent 24%),
    linear-gradient(135deg, #04101c, #091a2d 48%, #060d18);
  color: var(--text);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  padding: 28px;
}

.background-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.4;
  pointer-events: none;
}

.background-glow-a {
  width: 320px;
  height: 320px;
  top: -40px;
  left: -80px;
  background: rgba(85, 255, 202, 0.15);
}

.background-glow-b {
  width: 260px;
  height: 260px;
  right: -40px;
  bottom: 8%;
  background: rgba(255, 140, 66, 0.16);
}

.layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(340px, 0.9fr);
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(10, 24, 44, 0.92), rgba(8, 18, 34, 0.78));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 85%);
  pointer-events: none;
}

.intro-panel {
  padding: 42px;
  animation: slideUp 900ms ease both;
}

.game-panel {
  padding: 28px;
  animation: slideUp 900ms ease 120ms both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(120, 245, 255, 0.09);
  border: 1px solid rgba(120, 245, 255, 0.16);
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: var(--font-display);
}

.intro-panel h1 {
  margin: 20px 0 16px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.intro-panel h1 span {
  display: block;
  margin-top: 14px;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.2;
  color: var(--cyan);
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.lead {
  max-width: 62ch;
  margin: 0 0 28px;
  color: #d7e7ff;
  font-size: 17px;
  line-height: 1.9;
}

.stat-grid,
.bio-grid {
  display: grid;
  gap: 16px;
}

.stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}

.stat-card,
.bio-card,
.quote-box,
.status-bar,
.score-chip,
.overlay-card {
  background: rgba(4, 10, 22, 0.55);
  border: 1px solid rgba(135, 255, 227, 0.13);
}

.stat-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 32px);
  color: var(--teal);
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
}

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

.bio-card {
  min-height: 170px;
  padding: 20px;
  border-radius: 22px;
}

.bio-card:last-child {
  grid-column: span 2;
}

.bio-card h2,
.game-panel h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-family: var(--font-display);
}

.bio-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tag-list li {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(120, 245, 255, 0.09);
  color: #d5fefe;
  border: 1px solid rgba(120, 245, 255, 0.12);
  font-size: 14px;
}

.quote-box {
  position: relative;
  margin-top: 20px;
  padding: 24px 24px 24px 68px;
  border-radius: 22px;
}

.quote-box p {
  margin: 0;
  color: #f8fcff;
  line-height: 1.8;
  font-size: 16px;
}

.quote-mark {
  position: absolute;
  top: 12px;
  left: 22px;
  color: var(--orange);
  font-size: 46px;
  line-height: 1;
  font-family: var(--font-display);
}

.game-head,
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.scoreboard {
  display: flex;
  gap: 12px;
}

.score-chip {
  min-width: 96px;
  padding: 12px 14px;
  border-radius: 18px;
  text-align: right;
}

.score-chip span,
.status-block span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.score-chip strong,
.status-block strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 24px;
}

.game-stage {
  position: relative;
  margin-top: 20px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(120, 245, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(10, 25, 49, 0.8), rgba(4, 9, 22, 0.95)),
    radial-gradient(circle at top, rgba(120, 245, 255, 0.15), transparent 38%);
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 460 / 620;
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 10, 24, 0.28);
  backdrop-filter: blur(5px);
}

.game-overlay.hidden {
  display: none;
}

.overlay-card {
  width: min(100%, 360px);
  padding: 24px;
  border-radius: 24px;
  text-align: center;
}

.overlay-kicker {
  margin: 0 0 10px;
  color: var(--teal);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
}

.overlay-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 28px;
}

.overlay-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.arcade-button,
.touch-button {
  border: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.arcade-button {
  min-width: 170px;
  padding: 14px 20px;
  border-radius: 999px;
  color: #04111f;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  font-family: var(--font-display);
  font-size: 15px;
  box-shadow: 0 14px 28px rgba(120, 245, 255, 0.24);
}

.arcade-button:hover,
.touch-button:hover {
  transform: translateY(-2px);
}

.control-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.touch-button {
  flex: 1;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(8, 18, 34, 0.76);
  color: var(--text);
  border: 1px solid rgba(120, 245, 255, 0.14);
  font-family: var(--font-display);
  font-size: 20px;
}

.touch-button-fire {
  background: linear-gradient(135deg, rgba(255, 86, 102, 0.9), rgba(255, 140, 66, 0.9));
}

.status-bar {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 20px;
}

.status-block strong {
  font-size: 16px;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

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

@media (max-width: 1080px) {
  .layout {
    grid-template-columns: 1fr;
  }

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

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

  .intro-panel,
  .game-panel {
    padding: 20px;
  }

  .bio-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .bio-card:last-child {
    grid-column: span 1;
  }

  .game-head,
  .status-bar,
  .scoreboard {
    flex-direction: column;
    align-items: stretch;
  }
}
