:root {
  --bg-primary: #0d1117;
  --bg-surface: #161b22;
  --bg-card: #21262d;
  --text-main: #f0f6fc;
  --text-muted: #8b949e;
  --border-subtle: #30363d;
  --accent-win: #238636;
  --accent-loss: #da3633;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-header { background: var(--bg-surface); border-bottom: 1px solid var(--border-subtle); padding: 0.75rem 1.25rem; }
.header-inner { max-width: 1000px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.back-link { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; }
.back-link:hover { color: #58a6ff; }
.logo-area { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.icon-button { background: var(--bg-card); border: 1px solid var(--border-subtle); color: #fff; padding: 0.5rem 0.75rem; border-radius: 8px; cursor: pointer; min-width: 44px; min-height: 44px; }
.game-container { max-width: 700px; margin: 1.5rem auto; padding: 0 1rem; flex: 1; display: flex; flex-direction: column; align-items: center; }
.game-header-text { text-align: center; margin-bottom: 1rem; }
.game-title { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.35rem; color: #fff; }
.game-subtitle { color: var(--text-muted); font-size: 0.95rem; }
.stats-scoreboard {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; max-width: 460px; margin-bottom: 1.25rem;
}
.stat-box {
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 0.75rem 0.5rem; text-align: center;
}
.stat-box.highlight { border-color: #f0883e; }
.stat-num { display: block; font-size: 1.5rem; font-weight: 800; color: #fff; }
.stat-label { font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.arena-card {
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 1.5rem; width: 100%; max-width: 460px; margin-bottom: 1.5rem; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.duel-display { display: flex; align-items: center; justify-content: space-around; margin-bottom: 1rem; }
.combatant { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.combatant-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.hand-display {
  width: 90px; height: 90px; background: var(--bg-card); border: 2px solid var(--border-subtle); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.75rem; transition: transform 0.2s ease;
}
.versus-badge { font-weight: 800; font-size: 1.25rem; color: #f0883e; }
.outcome-badge {
  font-size: 1.15rem; font-weight: 700; color: #58a6ff; padding: 0.5rem; border-radius: 8px; background: rgba(88,166,255,0.1);
}
.choice-buttons-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; max-width: 460px; margin-bottom: 1.25rem;
}
.choice-btn {
  background: var(--bg-card); border: 2px solid var(--border-subtle); border-radius: 14px; padding: 1rem 0.5rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; color: #fff; transition: transform 0.1s ease, border-color 0.15s ease; min-height: 80px;
}
.choice-btn:hover { border-color: #58a6ff; transform: translateY(-2px); }
.choice-btn:active { transform: translateY(2px); }
.choice-emoji { font-size: 2.2rem; }
.choice-text { font-weight: 700; font-size: 0.95rem; }
.reset-row { margin-bottom: 1.5rem; }
.action-btn { background: var(--bg-card); border: 1px solid var(--border-subtle); color: var(--text-muted); padding: 0.5rem 1rem; border-radius: 8px; cursor: pointer; font-size: 0.85rem; }
.content-block { max-width: 700px; width: 100%; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 1.75rem; line-height: 1.7; }
.article-header { border-bottom: 1px solid var(--border-subtle); padding-bottom: 1rem; margin-bottom: 1rem; }
.article-header h2 { font-size: 1.35rem; color: #fff; }
.article-meta { color: var(--text-muted); font-size: 0.85rem; }
.article-section { margin-bottom: 1.25rem; }
.article-section h3 { font-size: 1.1rem; color: #58a6ff; margin-bottom: 0.5rem; }
.article-section p { color: #c9d1d9; margin-bottom: 0.65rem; }
.article-section ul { padding-left: 1.5rem; color: #c9d1d9; margin-bottom: 0.65rem; }
.faq-accordion { display: flex; flex-direction: column; gap: 0.65rem; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 8px; padding: 0.75rem 1rem; }
.faq-question { font-weight: 600; cursor: pointer; color: #fff; }
.faq-answer { margin-top: 0.5rem; color: #8b949e; }
.site-footer { background: var(--bg-surface); border-top: 1px solid var(--border-subtle); padding: 1.5rem; text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: auto; }
