/* ============================================================
 * The Phenomenon Game — design system
 * Dark glassmorphism, neon-green accent, rarity theming.
 * ============================================================ */

:root {
  --bg0: #05080a;
  --bg1: #0a1210;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-border: rgba(255, 255, 255, 0.09);
  --text: #eef4f1;
  --muted: #93a19c;
  --accent: #00e676;
  --accent2: #00b0ff;
  --gold: #f5c542;
  --danger: #ff5252;
  --radius: 20px;
  --radius-sm: 12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1100px 700px at 85% -10%, rgba(0, 230, 118, 0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(0, 176, 255, 0.07), transparent 55%),
    radial-gradient(1000px 800px at 50% 120%, rgba(160, 107, 255, 0.06), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 75%);
  z-index: 0;
}

.wrap { max-width: 1020px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

/* ---------------- header ---------------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 9, 10, 0.72);
  border-bottom: 1px solid var(--panel-border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 15px;
  white-space: nowrap;
}

.logo-ball {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), #7cffd0, var(--accent2), var(--accent));
  box-shadow: 0 0 22px rgba(0, 230, 118, 0.45);
  flex: none;
}

.logo small { display: block; font-weight: 500; color: var(--muted); font-size: 10.5px; letter-spacing: 0.14em; }

.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-btn {
  background: none;
  border: 1px solid var(--panel-border);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.nav-btn:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.25); transform: translateY(-1px); }

.lang-switch { display: flex; border: 1px solid var(--panel-border); border-radius: 999px; overflow: hidden; }

.lang-switch button {
  background: none;
  border: none;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-switch button:hover { color: var(--text); }

.lang-switch button.active {
  color: #04140c;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(0, 230, 118, 0.4);
}

/* ---------------- steps ---------------- */
.steps {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 14px 0 4px;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4d5a55;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.step i {
  font-style: normal;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-border);
}

.step.active {
  color: var(--text);
  border-color: rgba(0, 230, 118, 0.4);
  background: rgba(0, 230, 118, 0.08);
  box-shadow: 0 0 24px rgba(0, 230, 118, 0.12);
}

.step.active i { background: var(--accent); color: #04140c; border-color: var(--accent); }

.step.done { color: var(--accent); }
.step.done i { background: rgba(0, 230, 118, 0.15); border-color: rgba(0, 230, 118, 0.4); }

/* ---------------- panels ---------------- */
main { padding: 26px 0 40px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 38px 40px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: rise 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel h1 {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffffff, #9fdcc2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.panel .sub { color: var(--muted); font-size: 15px; margin-bottom: 26px; max-width: 640px; }

/* ---------------- forms ---------------- */
.field { display: block; margin-bottom: 18px; }

.field > span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.field input, .field select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  padding: 13px 16px;
  outline: none;
  transition: all 0.18s ease;
  appearance: none;
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.field input:focus, .field select:focus {
  border-color: rgba(0, 230, 118, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.12);
  background-color: rgba(0, 230, 118, 0.04);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------------- buttons ---------------- */
.btn {
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: 999px;
  padding: 13px 26px;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.01em;
}

.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; }

.btn-primary {
  color: #04140c;
  background: linear-gradient(135deg, var(--accent), #00c853);
  box-shadow: 0 8px 30px rgba(0, 230, 118, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(0, 230, 118, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35); }

.btn-gold {
  color: #1d1502;
  background: linear-gradient(135deg, var(--gold), #ffb300);
  box-shadow: 0 8px 30px rgba(245, 197, 66, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-gold:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(245, 197, 66, 0.45); }

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
}

.btn-ghost:hover:not(:disabled) { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); }

.btn-lg { width: 100%; margin-top: 10px; padding: 16px; font-size: 16px; }

/* ---------------- daily banner ---------------- */
.daily-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.12), rgba(255, 82, 82, 0.08));
  border: 1px solid rgba(245, 197, 66, 0.35);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 24px;
}

.daily-flame { font-size: 28px; }
.daily-banner b { display: block; font-size: 15px; }
.daily-banner span { color: var(--gold); font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; }
.daily-banner p { color: var(--muted); font-size: 13px; margin-left: auto; max-width: 380px; text-align: right; }

/* ---------------- draft ---------------- */
.round-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.round-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.dots { display: flex; gap: 7px; }
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--panel-border);
  transition: all 0.25s ease;
}
.dot.current { background: var(--accent); box-shadow: 0 0 12px rgba(0, 230, 118, 0.6); }
.dot.filled { background: rgba(0, 230, 118, 0.35); }

.picked-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.picked-chip {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.3);
  padding: 6px 12px;
  border-radius: 999px;
  animation: pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.picked-chip b { color: var(--text); }

@keyframes pop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.legend-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 16px;
  animation: pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.legend-card:hover { border-color: rgba(0, 230, 118, 0.35); transform: translateY(-3px); }

.lc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }

.lc-avatar {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #04140c;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.lc-id { min-width: 0; }
.lc-id b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-id span { color: var(--muted); font-size: 11.5px; }

.chip-pos {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--panel-border);
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.lc-attrs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 12px;
}

.la {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 5px 6px;
  text-align: center;
}

.la i { display: block; font-style: normal; font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.la b { font-size: 14px; }

.lc-traits { display: grid; gap: 8px; margin-top: auto; }

.trait-btn {
  font: inherit;
  text-align: left;
  color: var(--text);
  background: rgba(0, 230, 118, 0.06);
  border: 1px solid rgba(0, 230, 118, 0.28);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.trait-btn b { display: block; font-size: 13px; color: var(--accent); }
.trait-btn span { font-size: 11.5px; color: var(--muted); }

.trait-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 230, 118, 0.3);
}

.trait-btn:hover b, .trait-btn:hover span { color: #04140c; }

.lock-note {
  margin-top: 20px;
  text-align: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  animation: pop 0.3s ease;
}

/* ---------------- player card ---------------- */
.card-wrap { display: flex; justify-content: center; margin: 10px 0 26px; }

.pc {
  width: 340px;
  border-radius: 22px;
  padding: 26px 24px 20px;
  position: relative;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  animation: rise 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.pc::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0 46px, transparent 46px 92px),
    radial-gradient(240px 180px at 50% -10%, var(--glow), transparent 70%);
  pointer-events: none;
}

.pc > * { position: relative; }

.rarity-bronze   { --glow: #cd7f32; background: linear-gradient(180deg, #3a2a1a, #1c140c); border: 1px solid rgba(205, 127, 50, 0.5); }
.rarity-silver   { --glow: #b8c4d4; background: linear-gradient(180deg, #2e3642, #141a22); border: 1px solid rgba(184, 196, 212, 0.45); }
.rarity-gold     { --glow: #f5c542; background: linear-gradient(180deg, #3d3112, #1c1708); border: 1px solid rgba(245, 197, 66, 0.5); }
.rarity-legendary{ --glow: #a06bff; background: linear-gradient(180deg, #2c1b45, #140b22); border: 1px solid rgba(160, 107, 255, 0.5); }
.rarity-phenomenon{ --glow: #00ff88; background: linear-gradient(180deg, #06231a, #040d0a); border: 1px solid rgba(0, 255, 136, 0.55); }

.pc-head { text-align: center; }
.pc-brand { font-size: 10.5px; letter-spacing: 0.34em; font-weight: 800; opacity: 0.75; margin-bottom: 14px; }
.pc-flag { font-size: 44px; line-height: 1; margin-bottom: 8px; }
.pc-name { font-size: 24px; font-weight: 800; letter-spacing: 0.02em; }
.pc-meta { font-size: 12px; opacity: 0.72; margin-top: 3px; }

.pc-ovr {
  text-align: center;
  margin: 18px auto 16px;
  width: 118px; height: 118px;
  border-radius: 50%;
  border: 3px solid var(--glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 34px color-mix(in srgb, var(--glow) 55%, transparent);
}

.pc-ovr-num { font-size: 46px; font-weight: 800; line-height: 1; }
.pc-ovr-label { font-size: 10px; letter-spacing: 0.22em; opacity: 0.8; font-weight: 700; }

.attr-row { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.attr-name { width: 74px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
.attr-bar { flex: 1; height: 6px; background: rgba(255, 255, 255, 0.12); border-radius: 99px; overflow: hidden; }
.attr-fill { display: block; height: 100%; border-radius: 99px; transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.attr-fill.p99 { background: var(--glow); box-shadow: 0 0 10px var(--glow); }
.attr-fill.p90 { background: linear-gradient(90deg, var(--glow), #c79bff); }
.attr-fill.p82 { background: linear-gradient(90deg, #f5c542, #ff9800); }
.attr-fill.p75 { background: linear-gradient(90deg, #4fc3f7, #00b0ff); }
.attr-fill.p65 { background: #8d99a6; }
.attr-val { width: 24px; text-align: right; font-size: 12.5px; font-weight: 700; }

.pc-section-title {
  font-size: 10px;
  letter-spacing: 0.26em;
  font-weight: 800;
  opacity: 0.7;
  text-transform: uppercase;
  margin: 16px 0 8px;
}

.dna-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dna-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 4px 10px 4px 4px;
  font-size: 10.5px;
}
.dna-avatar {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--glow);
  color: #04140c;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.dna-meta b { display: block; line-height: 1.1; }
.dna-meta i { font-style: normal; opacity: 0.7; }

.skill-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-chip {
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(0, 230, 118, 0.1);
  color: var(--accent);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: 999px;
  padding: 4px 10px;
}

.pc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pc-rarity { color: var(--glow); }
.pc-url { opacity: 0.55; }

/* ---------------- career ---------------- */
.career-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 18px;
}

.ch-flag { font-size: 34px; }
.career-hero b { display: block; font-size: 17px; }
.career-hero span { color: var(--muted); font-size: 13px; }

.season-list { margin-bottom: 20px; max-height: 480px; overflow-y: auto; padding-right: 4px; }

.season-row {
  display: grid;
  grid-template-columns: 44px 1fr 46px 46px 46px 46px auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  animation: fadeIn 0.35s ease;
  font-size: 13.5px;
}

.season-row:nth-child(odd) { background: rgba(255, 255, 255, 0.025); }
.season-row:hover { background: rgba(0, 230, 118, 0.05); }

@keyframes fadeIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

.sr-age { font-weight: 800; color: var(--accent); }
.sr-club { min-width: 0; }
.sr-club b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-club i { font-style: normal; color: var(--muted); font-size: 11px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fee { color: var(--gold) !important; }
.sr-rating { font-weight: 800; text-align: center; }
.sr-stat { text-align: center; color: var(--muted); }
.sr-badges { display: flex; gap: 4px; align-items: center; justify-content: flex-end; }

.trophy-chip { font-size: 13px; filter: grayscale(0.15); }
.trophy-chip.big { font-size: 16px; }
.award-count {
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
  background: rgba(245, 197, 66, 0.12);
  border-radius: 999px;
  padding: 1px 7px;
}

.sim-actions { display: flex; gap: 12px; }
.sim-actions .btn { flex: 1; margin-top: 0; }

.totals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.total-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  animation: pop 0.35s ease;
}

.total-card b { display: block; font-size: 22px; font-weight: 800; color: var(--accent); }
.total-card span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; }

/* ---------------- legacy ---------------- */
.legacy-hero {
  display: flex;
  align-items: center;
  gap: 34px;
  justify-content: center;
  margin: 6px 0 28px;
  flex-wrap: wrap;
}

.score-ring { position: relative; width: 190px; height: 190px; flex: none; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.09); stroke-width: 9; }
.ring-fg {
  fill: none;
  stroke: var(--accent);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: calc(326.7 * (1 - var(--score) / 100));
  filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.6));
  transition: stroke-dashoffset 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ring-center b { font-size: 52px; font-weight: 800; line-height: 1; }
.ring-center span { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 4px; }

.title-banner { text-align: left; }
.tb-kicker {
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.title-banner h2 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-top: 4px;
}

.title-pro h2 { color: #b8c4d4; }
.title-star h2 { color: var(--gold); }
.title-legend h2 {
  background: linear-gradient(90deg, #c79bff, #a06bff, #7c4dff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title-phenomenon h2 {
  background: linear-gradient(90deg, #7cffd0, var(--accent), var(--accent2), #7cffd0);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3.5s linear infinite;
  filter: drop-shadow(0 0 18px rgba(0, 255, 136, 0.35));
}

@keyframes shimmer { to { background-position: -220% 0; } }

.legacy-bars { display: grid; gap: 12px; margin-bottom: 28px; }

.legacy-bar-row {
  display: grid;
  grid-template-columns: 180px 1fr 120px;
  align-items: center;
  gap: 14px;
}

.lbr-label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.lbr-track { height: 10px; background: rgba(255, 255, 255, 0.07); border-radius: 99px; overflow: hidden; }
.lbr-fill {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 14px rgba(0, 230, 118, 0.4);
  animation: grow 1s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes grow { from { width: 0 !important; } }

.lbr-val { font-size: 20px; font-weight: 800; text-align: right; }
.lbr-val i { display: block; font-style: normal; font-size: 11px; color: var(--muted); font-weight: 600; }

.share-box {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 20px;
}

.share-box h3, .lb-mini h3 { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

.share-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.share-actions .btn { flex: 1; min-width: 150px; margin-top: 0; }

.saved-note { color: var(--accent); font-size: 13px; font-weight: 700; display: flex; align-items: center; }

.legacy-actions { display: flex; gap: 12px; margin-bottom: 30px; }
.legacy-actions .btn { flex: 1; margin-top: 0; }

/* ---------------- leaderboard ---------------- */
.lb-mini h3 { margin-bottom: 10px; }
.lb-tabs { display: flex; gap: 8px; margin-bottom: 12px; }

.lb-tab {
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.lb-tab.active {
  color: #04140c;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(0, 230, 118, 0.35);
}

.lb-rows { display: grid; gap: 6px; }
.lb-row {
  display: grid;
  grid-template-columns: 40px 1fr auto 56px;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  font-size: 13.5px;
}

.lb-row.me { border-color: rgba(0, 230, 118, 0.5); background: rgba(0, 230, 118, 0.07); }
.lb-rank { font-weight: 800; color: var(--muted); }
.lb-row.me .lb-rank { color: var(--accent); }
.lb-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-title { font-size: 11.5px; font-weight: 700; }
.t-pro { color: #b8c4d4; }
.t-star { color: var(--gold); }
.t-legend { color: #c79bff; }
.t-phenomenon { color: var(--accent); }
.lb-score { font-weight: 800; text-align: right; }
.lb-empty { color: var(--muted); font-size: 14px; text-align: center; padding: 18px 0; }

/* ---------------- modal ---------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal {
  width: min(560px, 100%);
  max-height: 82vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #0d1512, #0a0f0d);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  animation: pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-head h3 { font-size: 18px; letter-spacing: 0.06em; text-transform: uppercase; }

.modal-close {
  font: inherit;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}

.modal-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }

/* ---------------- seo content section ---------------- */
.seo-panel { margin-top: 26px; }
.seo-panel h2 {
  font-size: 17px;
  font-weight: 800;
  color: var(--accent);
  margin: 26px 0 12px;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.14em;
}

.seo-panel h3 {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text);
  margin: 22px 0 8px;
  letter-spacing: 0.02em;
}

.seo-panel p {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 12px;
  max-width: 760px;
}

.seo-panel ul.feature-list {
  list-style: none;
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
}

.seo-panel ul.feature-list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 760px;
}

.seo-panel ul.feature-list li::before {
  content: '⚽';
  position: absolute;
  left: 0;
  font-size: 13px;
  opacity: 0.85;
}

.seo-panel strong { color: var(--text); font-weight: 700; }

.how-list { list-style: none; counter-reset: how; display: grid; gap: 10px; }

.how-list li {
  counter-increment: how;
  position: relative;
  padding-left: 44px;
  color: var(--muted);
  font-size: 14.5px;
}

.how-list li::before {
  content: counter(how);
  position: absolute;
  left: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.4);
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seo-panel details {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  margin-bottom: 8px;
  overflow: hidden;
}

.seo-panel summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  padding: 13px 16px;
  list-style: none;
  position: relative;
  padding-right: 40px;
}

.seo-panel summary::after {
  content: '+';
  position: absolute;
  right: 16px;
  color: var(--accent);
  font-weight: 800;
}

.seo-panel details[open] summary::after { content: '–'; }

.seo-panel details p { color: var(--muted); font-size: 13.5px; padding: 0 16px 14px; }

/* ---------------- footer ---------------- */
footer {
  border-top: 1px solid var(--panel-border);
  padding: 26px 0 40px;
  margin-top: 30px;
  text-align: center;
}

footer p { color: var(--muted); font-size: 13px; }
footer .rights { font-size: 11.5px; opacity: 0.7; margin-top: 6px; }
.footer-links { margin-top: 10px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 12.5px; text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--accent); }

/* ---------------- responsive ---------------- */
@media (max-width: 860px) {
  .legend-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .panel { padding: 26px 20px; }
  .header-nav { gap: 6px; }
  .nav-btn { padding: 7px 10px; font-size: 12px; }
  .lang-switch button { padding: 7px 8px; font-size: 11.5px; }
  .step span { display: none; }
  .step { padding: 6px 10px; }
  .season-row { grid-template-columns: 38px 1fr 40px 40px 40px; }
  .season-row .sr-stat:nth-of-type(2) { display: none; }
  .season-row .sr-badges { display: none; }
  .totals-grid { grid-template-columns: repeat(2, 1fr); }
  .legacy-bar-row { grid-template-columns: 1fr; gap: 4px; }
  .lbr-val { text-align: left; }
  .daily-banner { flex-wrap: wrap; }
  .daily-banner p { text-align: left; margin-left: 0; }
}

@media (max-width: 480px) {
  .logo span { display: none; }
  .pc { width: 100%; }
}

/* ---------------- scrollbar ---------------- */
.season-list::-webkit-scrollbar, .modal::-webkit-scrollbar { width: 8px; }
.season-list::-webkit-scrollbar-thumb, .modal::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 99px;
}

/* ============================================================
 * v2 — Phenomenon Game redesign styles
 * ============================================================ */

/* ---------------- steps (3 steps) ---------------- */
.steps { gap: 10px; }

/* ---------------- hero (first screen = round 1) ---------------- */
.hero { text-align: center; margin-bottom: 26px; }
.hero-title {
  font-size: clamp(30px, 6vw, 52px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.05;
  background: linear-gradient(90deg, #ffffff, #7cffd0, #00b0ff, #ffffff);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
  margin-bottom: 12px;
}
.hero-sub {
  margin: 0 auto 22px;
  max-width: 520px;
  font-size: 16px;
  color: var(--muted);
}
.first-cta { max-width: 420px; margin: 24px auto 0; display: block; animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(0, 230, 118, 0.35); }
  50% { box-shadow: 0 8px 44px rgba(0, 230, 118, 0.65); transform: translateY(-2px); }
}
.first-hint { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 12px; letter-spacing: 0.04em; }

/* ---------------- draft head / round theme ---------------- */
.draft-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.round-theme {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.35);
  border-radius: 999px;
  padding: 7px 16px;
  font-weight: 800;
  font-size: 13.5px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.round-theme i { font-style: normal; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.round-theme.big {
  font-size: 16px;
  padding: 10px 22px;
  margin: 0 auto 6px;
  display: flex;
  justify-content: center;
}
.round-theme.big i { display: block; margin-left: 4px; }
.round-label { margin-left: auto; font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---------------- draft cards ---------------- */
.draft-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.draft-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 230, 118, 0.5);
  box-shadow: 0 14px 40px rgba(0, 230, 118, 0.18);
}
.draft-card.moment-card {
  border-color: rgba(245, 197, 66, 0.55);
  background: linear-gradient(180deg, rgba(245, 197, 66, 0.10), rgba(255, 255, 255, 0.02));
}
.draft-card.moment-card:hover { border-color: var(--gold); box-shadow: 0 14px 40px rgba(245, 197, 66, 0.22); }
.moment-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), #ffb300);
  color: #1d1502;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(245, 197, 66, 0.4);
}

.dc-head { display: flex; align-items: center; gap: 10px; }
.dc-avatar {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 19px;
  color: #04140c;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.draft-card.moment-card .dc-avatar { background: linear-gradient(135deg, var(--gold), #ff7043); }
.dc-id { min-width: 0; }
.dc-id b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-id span { color: var(--muted); font-size: 11px; }
.dc-type {
  margin-left: auto;
  flex: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.3);
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.moment-card .dc-type { color: var(--gold); border-color: rgba(245, 197, 66, 0.4); background: rgba(245, 197, 66, 0.1); }

.dc-trait {
  background: rgba(0, 230, 118, 0.09);
  border: 1px solid rgba(0, 230, 118, 0.4);
  border-radius: 12px;
  padding: 10px 14px;
  transition: all 0.16s ease;
}
.draft-card:hover .dc-trait { background: var(--accent); border-color: var(--accent); box-shadow: 0 8px 24px rgba(0, 230, 118, 0.35); }
.draft-card:hover .dc-trait b, .draft-card:hover .dc-trait i { color: #04140c; }
.dt-label {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--accent);
  margin-bottom: 2px;
}
.dc-trait b { display: block; font-size: 15px; }
.dc-trait i { font-style: normal; color: var(--muted); font-size: 12px; }
.draft-card:hover .dt-label { color: rgba(4, 20, 12, 0.7); }

.dc-alt {
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--panel-border);
  border-radius: 10px;
  padding: 7px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.dc-alt:hover { color: var(--text); border-color: rgba(0, 230, 118, 0.45); background: rgba(0, 230, 118, 0.06); }

.dc-attrs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: auto; }

/* ---------------- mini player during draft ---------------- */
.draft-mini { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.dm-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 8px 14px;
}
.dm-card b { display: block; font-size: 14px; }
.dm-card span { font-size: 11.5px; color: var(--accent); font-weight: 700; }
.dm-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.rar-glow-bronze { border-color: rgba(205, 127, 50, 0.5); }
.rar-glow-silver { border-color: rgba(184, 196, 212, 0.5); }
.rar-glow-gold { border-color: rgba(245, 197, 66, 0.5); }
.rar-glow-legendary { border-color: rgba(160, 107, 255, 0.5); }
.rar-glow-phenomenon { border-color: rgba(0, 255, 136, 0.6); box-shadow: 0 0 22px rgba(0, 255, 136, 0.25); }

/* ---------------- challenge banner ---------------- */
.challenge-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(160, 107, 255, 0.16), rgba(0, 176, 255, 0.08));
  border: 1px solid rgba(160, 107, 255, 0.4);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  margin-bottom: 20px;
  font-size: 14.5px;
  color: var(--text);
}
.challenge-banner b { color: #c79bff; }

/* ---------------- config modal ---------------- */
.config-modal { max-width: 520px; }
.config-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
}
.config-legend b { display: block; font-size: 15px; }
.config-legend i { font-style: normal; color: var(--muted); font-size: 12px; }
.config-modal h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.config-sub { color: var(--muted); font-size: 13.5px; margin: 6px 0 18px; }
.config-skip { color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.name-row { display: flex; gap: 10px; }
.name-row input { flex: 1; }
.dice { flex: none; padding: 13px 18px; }

/* ---------------- evolution overlay ---------------- */
.evo-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: radial-gradient(700px 500px at 50% 40%, rgba(0, 230, 118, 0.14), rgba(0, 0, 0, 0.88));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  cursor: pointer;
  animation: fadeIn 0.25s ease;
  text-align: center;
  padding: 24px;
}
.evo-card {
  animation: evoIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(0, 230, 118, 0.5);
  border-radius: 18px;
  padding: 20px 34px;
  box-shadow: 0 0 60px rgba(0, 230, 118, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
@keyframes evoIn {
  from { transform: translateY(60px) scale(0.5); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.evo-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: #04140c;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  margin-bottom: 4px;
}
.evo-card b { font-size: 20px; }
.evo-card i { font-style: normal; color: var(--accent); font-size: 13px; font-weight: 700; }
.evo-stats { display: grid; gap: 8px; width: min(360px, 100%); }
.evo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 10px 16px;
  animation: pop 0.4s ease both;
}
.evo-row:nth-child(2) { animation-delay: 0.1s; }
.evo-row:nth-child(3) { animation-delay: 0.18s; }
.evo-row:nth-child(4) { animation-delay: 0.26s; }
.evo-row span { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.evo-row b { font-size: 16px; color: var(--accent); }
.evo-row.evo-ovr b { color: var(--gold); }
.evo-quote { color: var(--muted); font-style: italic; font-size: 14px; max-width: 460px; }
.evo-skip { position: absolute; bottom: 18px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.35); }

/* ---------------- archetype reveal ---------------- */
.arch-reveal { text-align: center; margin-bottom: 18px; }
.arch-reveal b {
  display: block;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-top: 6px;
}
.arch-rarity {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}
.ar-common { color: #b8c4d4; background: rgba(184, 196, 212, 0.12); border: 1px solid rgba(184, 196, 212, 0.35); }
.ar-uncommon { color: #4fc3f7; background: rgba(79, 195, 247, 0.12); border: 1px solid rgba(79, 195, 247, 0.35); }
.ar-rare { color: #c79bff; background: rgba(160, 107, 255, 0.14); border: 1px solid rgba(160, 107, 255, 0.4); }
.ar-ultra { color: var(--gold); background: rgba(245, 197, 66, 0.14); border: 1px solid rgba(245, 197, 66, 0.45); box-shadow: 0 0 18px rgba(245, 197, 66, 0.25); }

.pc-arch { text-align: center; margin-bottom: 14px; }
.pc-arch b { display: block; font-size: 17px; font-weight: 800; color: #fff; margin: 6px 0 2px; }
.pc-arch i { font-style: normal; font-size: 11px; opacity: 0.7; }

/* ---------------- career acts ---------------- */
.act-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.act-head .ah-icon, .act-head > span:first-child { font-size: 34px; }
.act-head b { display: block; font-size: 19px; font-weight: 800; letter-spacing: 0.01em; }
.act-head i { font-style: normal; color: var(--muted); font-size: 13px; }
.choice-head { margin-bottom: 8px; }

.choice-grid { display: grid; gap: 12px; margin-bottom: 20px; }
.choice-card {
  font: inherit;
  text-align: left;
  display: grid;
  grid-template-columns: 46px 1fr;
  grid-template-areas: "icon title" "icon desc" "icon tags";
  gap: 2px 14px;
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 14px 18px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.16s ease;
  animation: pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.choice-card:nth-child(2) { animation-delay: 0.06s; }
.choice-card:nth-child(3) { animation-delay: 0.12s; }
.choice-card:nth-child(4) { animation-delay: 0.18s; }
.choice-card:nth-child(5) { animation-delay: 0.24s; }
.choice-card:hover {
  background: rgba(0, 230, 118, 0.09);
  border-color: rgba(0, 230, 118, 0.5);
  transform: translateX(4px);
  box-shadow: 0 10px 30px rgba(0, 230, 118, 0.12);
}
.cc-icon { grid-area: icon; font-size: 28px; text-align: center; }
.choice-card b { grid-area: title; font-size: 15.5px; }
.choice-card i { grid-area: desc; font-style: normal; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.cc-tags { grid-area: tags; display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.cc-tags em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(0, 230, 118, 0.09);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: 999px;
  padding: 2px 9px;
}

/* ---------------- timeline ---------------- */
.tl-track {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 26px 0 30px;
  position: relative;
}
.tl-track::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--gold));
  opacity: 0.5;
}
.tl-node {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
  background: rgba(5, 9, 10, 0.9);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 10px 6px;
  animation: pop 0.4s ease both;
}
.tl-node:nth-child(2) { animation-delay: 0.1s; }
.tl-node:nth-child(3) { animation-delay: 0.2s; }
.tl-node:nth-child(4) { animation-delay: 0.3s; }
.tl-node:nth-child(5) { animation-delay: 0.4s; }
.tl-icon { font-size: 22px; display: block; }
.tl-node b { display: block; font-size: 15px; color: var(--accent); }
.tl-node i { display: block; font-style: normal; font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.tl-node em { display: block; font-style: normal; font-size: 10.5px; color: var(--muted); opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------- legacy ---------------- */
.legacy-top {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.legacy-card { margin: 0; flex: none; }
.legacy-summary { flex: 1; min-width: 300px; max-width: 460px; display: flex; flex-direction: column; gap: 12px; }
.ls-arch { text-align: center; }
.arch-name {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.1;
  background: linear-gradient(90deg, #ffffff, #9fdcc2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 6px;
}
.practice-badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed var(--panel-border);
  border-radius: 999px;
  padding: 3px 10px;
  vertical-align: middle;
}
.legacy-summary .score-ring { margin: 0 auto; }
.percentile {
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.03em;
}
.legacy-summary .title-banner { text-align: center; }
.ls-meta { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ls-meta span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 4px 12px;
}
.ls-dna, .ls-skills { text-align: center; }
.ls-dna .dna-chips, .ls-skills .skill-chips { justify-content: center; }

.legacy-story { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-bottom: 22px; }
.story-hl h3, .story-regret h3 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.hl-grid { display: grid; gap: 8px; }
.hl-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 11px 16px;
  animation: pop 0.35s ease both;
}
.hl-item:nth-child(2) { animation-delay: 0.08s; }
.hl-item:nth-child(3) { animation-delay: 0.16s; }
.hl-icon { font-size: 22px; }
.hl-item b { font-size: 14.5px; }
.story-regret p {
  background: linear-gradient(135deg, rgba(255, 82, 82, 0.09), rgba(255, 82, 82, 0.03));
  border: 1px solid rgba(255, 82, 82, 0.3);
  border-radius: 12px;
  padding: 14px 16px;
  color: #ffb3a7;
  font-size: 13.5px;
  font-style: italic;
  line-height: 1.5;
}

.share-url {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  word-break: break-all;
  margin-top: 6px;
}

.challenge-result {
  text-align: center;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  margin-bottom: 18px;
}
.challenge-result.win { background: rgba(0, 230, 118, 0.1); border: 1px solid rgba(0, 230, 118, 0.4); }
.challenge-result.lose { background: rgba(255, 82, 82, 0.08); border: 1px solid rgba(255, 82, 82, 0.35); }
.challenge-result b { display: block; font-size: 16px; }
.challenge-result span { font-size: 13px; color: var(--muted); }

/* leaderboard categories */
.lb-cats { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.lb-cat {
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.lb-cat.active { color: #04140c; background: var(--accent); border-color: var(--accent); }

/* ---------------- landing strip ---------------- */
.landing { margin-top: 30px; display: grid; gap: 30px; }
.daily-strip .ds-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.1), rgba(255, 82, 82, 0.06));
  border: 1px solid rgba(245, 197, 66, 0.3);
  border-radius: var(--radius);
  padding: 16px 20px;
  flex-wrap: wrap;
}
.ds-card b { display: block; font-size: 16px; }
.ds-card span { color: var(--muted); font-size: 12.5px; }
.ds-card .btn { margin-left: auto; }
.landing-block h2 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.sample-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sample-grid .card-wrap { margin: 0; }
.sample-grid .pc { width: 100%; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.how-step {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.how-step span {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.4);
  color: var(--accent);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.how-step b { font-size: 13.5px; line-height: 1.45; }
.arch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.arch-tile {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.arch-tile b { font-size: 13.5px; }
.arch-tile i { font-style: normal; font-size: 11px; color: var(--muted); line-height: 1.4; }
.arch-tile .arch-rarity { align-self: flex-start; padding: 2px 8px; font-size: 9px; }
.mini-faq details {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  margin-bottom: 8px;
}
.mini-faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 13.5px;
  padding: 12px 16px;
  list-style: none;
  position: relative;
  padding-right: 40px;
}
.mini-faq summary::after { content: '+'; position: absolute; right: 16px; color: var(--accent); font-weight: 800; }
.mini-faq details[open] summary::after { content: '–'; }
.mini-faq details p { color: var(--muted); font-size: 12.5px; padding: 0 16px 12px; }

/* ---------------- responsive ---------------- */
@media (max-width: 980px) {
  .legacy-top { flex-direction: column; align-items: center; }
  .legacy-summary { max-width: 100%; }
  .legacy-story { grid-template-columns: 1fr; }
  .arch-grid { grid-template-columns: repeat(2, 1fr); }
  .sample-grid { grid-template-columns: 1fr; }
  .sample-grid .pc { max-width: 340px; margin: 0 auto; }
  .how-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .tl-track { flex-wrap: wrap; }
  .tl-track::before { display: none; }
  .tl-node { flex: 1 1 30%; }
}

/* ============================================================
 * v2.1 — P0/P1 remediation styles
 * ============================================================ */

/* hide marketing/SEO content while actively playing */
body.game-active .landing,
body.game-active .seo-panel { display: none; }

/* ---------------- two-zone DNA card (P1-1) ---------------- */
.dc-zone {
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.16s ease;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.03);
}
.dc-zone-primary {
  border-color: rgba(0, 230, 118, 0.4);
  background: rgba(0, 230, 118, 0.08);
}
.dc-zone-alt {
  border-style: dashed;
}
.dz-label {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 3px;
}
.dc-zone-primary .dz-label { color: var(--accent); }
.dc-zone b { display: block; font-size: 14.5px; }
.dc-zone i { font-style: normal; color: var(--muted); font-size: 11.5px; }
.dc-zone:hover { transform: translateY(-2px); }
.dc-zone-primary:hover { background: var(--accent); border-color: var(--accent); box-shadow: 0 8px 22px rgba(0, 230, 118, 0.35); }
.dc-zone-primary:hover b, .dc-zone-primary:hover i { color: #04140c; }
.dc-zone-primary:hover .dz-label { color: rgba(4, 20, 12, 0.7); }
.dc-zone-alt:hover { background: rgba(0, 176, 255, 0.14); border-color: rgba(0, 176, 255, 0.55); }
.dc-zone-alt:hover .dz-label { color: var(--accent2); }

/* ---------------- evolution DNA breakdown note (P0-3) ---------------- */
.evo-dna-note {
  font-size: 11px;
  color: var(--muted);
  max-width: 420px;
  letter-spacing: 0.02em;
}
.dna-note {
  font-size: 10.5px;
  color: var(--muted);
  opacity: 0.85;
  margin-top: 8px;
  font-style: italic;
}

/* ---------------- decision feedback card (P1-3) ---------------- */
.decision-feedback .df-card {
  animation: evoIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  background: linear-gradient(180deg, rgba(0, 176, 255, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(0, 176, 255, 0.45);
  border-radius: 18px;
  padding: 20px 34px;
  box-shadow: 0 0 50px rgba(0, 176, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 460px;
  text-align: center;
}
.df-icon { font-size: 40px; }
.df-card b { font-size: 22px; font-weight: 900; letter-spacing: 0.01em; }
.df-card i { font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: 0.24em; color: var(--accent2); }
.df-lines {
  display: grid;
  gap: 8px;
  width: min(420px, 100%);
}
.df-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 9px 16px;
  animation: pop 0.4s ease both;
}
.df-line:nth-child(2) { animation-delay: 0.07s; }
.df-line:nth-child(3) { animation-delay: 0.14s; }
.df-line:nth-child(4) { animation-delay: 0.21s; }
.df-line span { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.df-line b { font-size: 15px; color: var(--accent2); }

/* ---------------- challenge intro gate ---------------- */
.challenge-intro .challenge-card {
  width: min(520px, 100%);
  text-align: center;
  background: linear-gradient(180deg, #101a17, #0a0f0d);
  border: 1px solid rgba(0, 230, 118, 0.4);
  border-radius: 20px;
  padding: 34px 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 230, 118, 0.12);
  animation: pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ci-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: var(--accent);
  margin-bottom: 12px;
}
.challenge-card h3 {
  font-size: clamp(22px, 4.5vw, 32px);
  font-weight: 900;
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, #ffffff, #7cffd0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
.challenge-card .ci-same {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 6px;
}
.challenge-card .ci-beat {
  color: var(--gold);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 22px;
}
.challenge-card .btn { max-width: 340px; margin: 0 auto; }

/* A0 Gaming Network cross-site bar */
.a0net{display:flex;justify-content:center;align-items:center;gap:1rem;flex-wrap:wrap;padding:.4rem max(1rem,4vw);background:#0a1416;border-bottom:1px solid #2a4346;font:700 .78rem/1.3 Inter,Arial,sans-serif;color:#8ba3a8}
.a0net span{letter-spacing:.08em;text-transform:uppercase;color:#5f7374}
.a0net a{color:#7de2d1;white-space:nowrap}
.a0net a.cur{color:#ffd45c;text-decoration:underline}
.a0net a:hover{text-decoration:underline}

/* --- Upgraded Viral & Audio Features --- */
.sound-btn {
  font-size: 16px;
  padding: 6px 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  transition: all 0.2s ease;
}
.sound-btn:hover {
  background: rgba(0, 230, 118, 0.12);
  border-color: rgba(0, 230, 118, 0.4);
}

.btn-reroll {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.12), rgba(245, 197, 66, 0.04));
  border: 1px solid rgba(245, 197, 66, 0.4);
  color: var(--gold);
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-reroll:hover:not(:disabled) {
  background: var(--gold);
  color: #1a1402;
  box-shadow: 0 4px 16px rgba(245, 197, 66, 0.35);
  transform: translateY(-1px);
}
.btn-reroll:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

.draft-subbar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 6px;
}

.draft-card {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

@keyframes cardSpinIn {
  0% { opacity: 0; transform: perspective(800px) rotateY(-24deg) translateY(20px) scale(0.94); }
  100% { opacity: 1; transform: perspective(800px) rotateY(0deg) translateY(0) scale(1); }
}
.draft-card.card-spin {
  animation: cardSpinIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

