/* Shared by the player page and the organiser page. Foxtail Oak palette. */
:root {
  --stone: #F5F4F1;
  --paper: #FFFFFF;
  --ink: #2A2826;
  --slate: #484848;
  --muted: #6B6660;
  --line: #DDD8CF;
  --gold: #BAA878;
  --oak: #7A6630;          /* gold dark enough for text on stone */
  --oak-soft: #EFE8D4;
  --good: #3F6B4A;
  --bad: #9B3B2E;
  --warn-bg: #F7EBD0;
  --radius: 8px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--stone); color: var(--ink);
  font: 16px/1.5 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
h1, h2, h3 { font-family: 'Marcellus', Georgia, serif; font-weight: 400; margin: 0; color: var(--slate); }
a { color: var(--oak); }
.wrap { max-width: 520px; margin: 0 auto; padding: 0 16px 48px; }
.quiet { color: var(--muted); font-size: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--radius);
  border: 1.5px solid var(--slate); background: var(--slate); color: var(--stone); font-weight: 600;
}
.btn:hover { background: #3a3a3a; }
.btn.quiet-btn { background: transparent; color: var(--slate); }
.btn.quiet-btn:hover { background: var(--oak-soft); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn.gold:hover { background: #c9b98b; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 14px; }

.brandbar {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 14px 0 12px; border-bottom: 1px solid var(--line);
}
.brandbar .mark { font-family: 'Marcellus', Georgia, serif; font-size: 19px; letter-spacing: .04em; color: var(--slate); text-decoration: none; }
.brandbar .tag { font-size: 13px; color: var(--muted); text-align: right; }

.footer {
  margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.footer .mark { font-family: 'Marcellus', Georgia, serif; font-size: 17px; color: var(--slate); letter-spacing: .04em; }
.footer p { margin: 4px 0 0; }

dialog {
  border: 0; border-radius: 12px; padding: 22px 20px; width: min(92vw, 420px);
  background: var(--paper); color: var(--ink); box-shadow: 0 12px 40px rgba(0,0,0,.28);
}
dialog::backdrop { background: rgba(40,38,36,.5); }
dialog h2 { font-size: 24px; margin-bottom: 4px; }
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  background: var(--slate); color: var(--stone); padding: 11px 18px; border-radius: 999px;
  font-size: 15px; box-shadow: 0 6px 20px rgba(0,0,0,.25); z-index: 50; max-width: 90vw; text-align: center;
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---- shared score stepper and small pieces ---- */
.step { display: inline-flex; align-items: center; }
.step button { width: 54px; height: 54px; border: 1.5px solid var(--slate); background: #fff; font-size: 26px; line-height: 1; color: var(--slate); touch-action: manipulation; }
.step button:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.step button:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.step button:active { background: var(--oak-soft); }
.step output { min-width: 62px; height: 54px; display: flex; align-items: center; justify-content: center; border-top: 1.5px solid var(--slate); border-bottom: 1.5px solid var(--slate); background: var(--stone); font: 400 28px 'Marcellus', Georgia, serif; color: var(--ink); }
.sw .srow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.sw .who { font-size: 16px; line-height: 1.3; flex: 1; }
.sw .btn { width: 100%; margin-top: 16px; min-height: 52px; font-size: 17px; }
.sw .err { color: var(--bad); font-size: 14px; min-height: 18px; margin: 6px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.chips button { min-height: 48px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: 17px; }
.chips button:active, .chips button:hover { border-color: var(--gold); background: var(--oak-soft); }
.footer a { color: var(--oak); }
.footer .row { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }
