:root {
  --bg: #0b1f17;
  --bg-card: #123324;
  --border: #1f4a34;
  --text: #eafff0;
  --text-dim: #9fc9ae;
  --accent: #d4af37;
  --accent-dim: #a9872b;
  --hit: #b5453c;
  --stand: #3c7a4f;
  --double: #c98a2c;
  --split: #3a6ea5;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.5;
}
h1, h2, h3, .brand-name { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.accent { color: var(--accent); }

.site-header { border-bottom: 1px solid var(--border); padding: 18px 0; }
.header-inner { display: flex; align-items: center; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.2rem; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; background: var(--accent); color: #1a1a1a; font-weight: 800; }

.hero { padding: 48px 0 32px; text-align: center; }
.hero-title { font-size: 2.4rem; margin: 0 0 12px; }
.hero-sub { color: var(--text-dim); max-width: 560px; margin: 0 auto 28px; }

.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.calc-card { max-width: 640px; margin: 0 auto; text-align: left; }
.calc-section { margin-bottom: 20px; }
.calc-label { font-weight: 700; margin-bottom: 8px; color: var(--accent); font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; }
.card-display { min-height: 40px; margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.chosen-card { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 8px; background: var(--accent); color: #1a1a1a; font-weight: 700; }
.placeholder { color: var(--text-dim); font-size: .9rem; }
.card-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.card-btn { background: #0e2a1e; border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 10px 0; font-weight: 700; cursor: pointer; font-size: .95rem; }
.card-btn:hover { border-color: var(--accent); }

.btn { border-radius: 10px; padding: 10px 18px; font-weight: 700; cursor: pointer; border: 1px solid var(--border); }
.btn-secondary { background: transparent; color: var(--text-dim); }
.btn-secondary:hover { color: var(--text); border-color: var(--accent); }

.hand-summary { margin-top: 18px; color: var(--text-dim); font-size: .95rem; }
.result { margin-top: 8px; }
.result-action { display: inline-block; padding: 14px 24px; border-radius: 10px; font-size: 1.4rem; font-weight: 800; }

.act-hit { background: var(--hit); color: #fff; }
.act-stand { background: var(--stand); color: #fff; }
.act-double { background: var(--double); color: #1a1a1a; }
.act-split { background: var(--split); color: #fff; }

.seo { padding: 32px 0; }
.seo-heading { font-size: 1.6rem; margin-bottom: 8px; }
.chart-note { color: var(--text-dim); margin-bottom: 20px; font-size: .92rem; }
.legend { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; flex-wrap: wrap; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 10px; margin-right: 2px; }
.swatch.act-hit { background: var(--hit); }
.swatch.act-stand { background: var(--stand); }
.swatch.act-double { background: var(--double); }
.swatch.act-split { background: var(--split); }

.table-wrap { overflow-x: auto; margin-bottom: 28px; }
.strategy-table { border-collapse: collapse; width: 100%; min-width: 560px; }
.strategy-table th, .strategy-table td { text-align: center; padding: 8px 6px; border: 1px solid var(--border); font-size: .85rem; }
.strategy-table thead th { background: #0e2a1e; color: var(--accent); }
.strategy-table tbody th { background: #0e2a1e; text-align: left; padding-left: 12px; }
.strategy-table td { font-weight: 700; }

.seo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.seo-card h3 { margin-top: 0; margin-bottom: 8px; font-size: 1.05rem; }
.seo-card p { color: var(--text-dim); margin: 6px 0; font-size: .93rem; }

.site-footer { border-top: 1px solid var(--border); padding: 24px 0; color: var(--text-dim); font-size: .85rem; }

@media (max-width: 520px) {
  .card-grid { grid-template-columns: repeat(5, 1fr); }
  .hero-title { font-size: 1.9rem; }
}
