:root {
  --bg: #100c08;
  --panel: rgba(28, 19, 12, 0.88);
  --panel-strong: rgba(44, 29, 17, 0.92);
  --text: #f9e8c8;
  --muted: #c6aa78;
  --line: rgba(255, 220, 150, 0.2);
  --accent: #ffd58a;
  --accent-2: #c88a2a;
  --danger: #ff8a8a;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
}

body.theme-light {
  --bg: #f7efe2;
  --panel: rgba(255, 250, 238, 0.92);
  --panel-strong: rgba(255, 247, 226, 0.96);
  --text: #2f1f14;
  --muted: #7b6045;
  --line: rgba(75, 43, 18, 0.18);
  --accent: #ad6f19;
  --accent-2: #f1c16e;
}

body.theme-cyber {
  --bg: #090914;
  --panel: rgba(12, 13, 32, 0.9);
  --panel-strong: rgba(18, 20, 52, 0.95);
  --text: #e9f2ff;
  --muted: #92a7c8;
  --line: rgba(120, 180, 255, 0.22);
  --accent: #72f1ff;
  --accent-2: #ad74ff;
}

body.theme-dark {
  --bg: #050505;
  --panel: rgba(14, 14, 14, 0.92);
  --panel-strong: rgba(24, 24, 24, 0.96);
  --text: #f1f1f1;
  --muted: #aaa;
  --line: rgba(255, 255, 255, 0.15);
  --accent: #e9be70;
  --accent-2: #7d5520;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 213, 138, 0.18), transparent 36%),
    linear-gradient(180deg, var(--bg), #050505 120%);
}

a { color: inherit; text-decoration: none; }

button, input, select {
  font: inherit;
}

button, .button-link {
  border: 0;
  border-radius: 14px;
  padding: 11px 14px;
  color: #261707;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  font-weight: 800;
  cursor: pointer;
}

button:active, .button-link:active { transform: translateY(1px) scale(0.99); }

input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

input:focus, select:focus { border-color: var(--accent); }

.shell {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 0;
}

.card, .hero-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.card { padding: 26px; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--muted);
  background: rgba(255,255,255,0.06);
}

.nav-links a:hover { color: var(--text); border-color: var(--accent); }

.subpage-header, .topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}

h1 { margin: 0; font-size: clamp(30px, 5vw, 44px); letter-spacing: 3px; }
h2 { margin: 0 0 16px; font-size: 20px; }
p { color: var(--muted); }

.status {
  min-height: 24px;
  color: var(--accent);
  text-align: center;
}

.float-text {
  position: fixed;
  z-index: 20;
  pointer-events: none;
  color: var(--accent);
  font-weight: 900;
  text-shadow: 0 4px 18px rgba(0,0,0,0.45);
  animation: floatUp .8s ease forwards;
}

@keyframes floatUp {
  from { opacity: 1; transform: translate(-50%, 0) scale(1); }
  to { opacity: 0; transform: translate(-50%, -60px) scale(1.28); }
}

@media (max-width: 720px) {
  .subpage-header, .topbar { flex-direction: column; }
  .card { padding: 20px; border-radius: 22px; }
}
