button, [role="button"], select, summary, input:not([type="checkbox"], [type="radio"]) { min-height: 2rem; }
* { box-sizing: border-box; }
:root {
  color-scheme: dark;
  --bg: #0d1f16;
  --panel: #1a2e24;
  --panel2: #22382c;
  --ink: #eef3ec;
  --ink-dim: #9db4a5;
  --line: #33523f;
  --accent: #d3382c;
  --accent-ink: #ffffff;
  --gold: #d8b45a;
  --felt: #6f7f45;
  --felt-deep: #4c5a2e;
  --felt-line: rgba(255,255,255,.16);
  --tile: #f8f5ea;
  --tile-edge: #c9c4ae;
  --tile-shadow: #9aa78f;
  --man: #274b8f;
  --pin: #b3312c;
  --sou: #1e7a46;
  --honor: #26261f;
  --back: #dfa63e;
  --chip: #22382c;
}
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(ellipse 120% 60% at 50% 0%, #173626 0%, var(--bg) 55%) fixed, var(--bg);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: 880px; margin: 0 auto; padding: 6px 8px 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

/* ---------- top bar ---------- */
.topbar {
  display: flex; flex-wrap: nowrap; gap: 6px; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.settai-box { display: flex; align-items: center; gap: 6px; min-width: 0; }
.settai-box .lbl { font-size: 11px; font-weight: 900; color: var(--ink-dim); white-space: nowrap; }
.seg { display: flex; gap: 4px; }
.seg button {
  min-height: 32px; border-radius: 6px; border: 1.5px solid var(--line);
  background: var(--panel2); color: var(--ink); font: inherit; font-weight: 900; font-size: 12.5px; cursor: pointer;
  padding: 2px 10px; white-space: nowrap;
}
.seg button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.meta-box { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.meta-box .round { font-family: "Shippori Mincho B1", serif; font-weight: 800; font-size: 16px; white-space: nowrap; }
.meta-box button {
  font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer;
  background: none; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-dim); min-height: 30px; padding: 2px 8px; white-space: nowrap;
}

/* ---------- nakanai (no-call) toggle ---------- */
.naki-toggle {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  min-height: 32px; padding: 3px 9px 3px 4px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--panel2); color: var(--ink-dim);
  font: inherit; font-weight: 900; font-size: 12.5px; cursor: pointer; white-space: nowrap;
}
.naki-toggle .track {
  width: 32px; height: 19px; border-radius: 999px; background: #41503f; position: relative; flex: 0 0 auto;
  transition: background .15s ease;
}
.naki-toggle .track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px;
  border-radius: 50%; background: #eef3ec; transition: left .15s ease;
}
.naki-toggle .state { font-size: 11px; min-width: 24px; text-align: left; letter-spacing: .04em; }
.naki-toggle.on { border-color: var(--gold); color: var(--gold); background: var(--panel); }
.naki-toggle.on .track { background: var(--gold); }
.naki-toggle.on .track::after { left: 15px; background: #241a02; }
