.board {
  --board: #B3121F;
  background: var(--board); color: var(--gold); border-radius: 0 0 14px 14px;
  box-shadow: inset 0 0 0 4px var(--board), inset 0 0 0 6px var(--gold);
  padding: 22px 18px 20px; text-align: center;
}
.board .kicker { font-size: 13px; color: var(--gold-soft); margin: 0; }
.board h1 { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.25; margin: 2px 0 0; }
.board .place { margin: 0 0 8px; color: #fff; font-size: 14px; opacity: .9; }
.board .caption { margin: 8px 0 0; font-size: 14px; color: #fff; }

.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 4; background: var(--bg); border-bottom: 1px solid var(--line); }
.finder { padding: 12px 16px; }
.finder label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.slots { display: flex; gap: 6px; align-items: center; }
.slots input {
  width: 100%; min-width: 0; height: 50px; text-align: center; font-size: 26px; font-weight: 700;
  border: 2px solid var(--line); border-radius: 8px; background: var(--surface); caret-color: var(--red);
}
.slots input:not(:placeholder-shown) { border-color: var(--red); color: var(--red); }
.slots input::placeholder { color: var(--sold); font-weight: 500; }
.clear { flex: 0 0 auto; border: 0; background: none; color: var(--red); font-weight: 600; padding: 0 4px; height: 50px; }
.opts { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 12px; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.found { margin-left: auto; font-size: 14px; color: var(--muted); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 12px 24px; }
.tk { border: 0; padding: 14px 8px 10px; text-align: center; width: 100%; background: var(--surface); border-radius: 8px; }
.tk .num { font-size: clamp(24px, 7.4vw, 32px); letter-spacing: .04em; display: block; line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums; }
.tk .qty { display: block; font-size: 13px; margin-top: 4px; color: #6B4E54; }
.tk .qty.set { color: var(--red); font-weight: 700; }
.num .hit { color: var(--red); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.num .dim { opacity: .45; }
.empty { grid-column: 1/-1; text-align: center; padding: 40px 20px; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }

.scrim { position: fixed; inset: 0; background: rgba(20,5,8,.55); z-index: 10; opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 11; max-width: 480px; margin: 0 auto;
  background: var(--surface); border-radius: 16px 16px 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateY(105%); transition: transform .25s ease; max-height: 92vh; overflow-y: auto;
}
.sheet.on { transform: none; }
.sheet .ticket { padding: 16px 10px; text-align: center; background: var(--paper); border-radius: 8px; }
.sheet .ticket .num { font-size: 42px; letter-spacing: .06em; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.avail { text-align: center; font-size: 15px; color: var(--muted); margin: 14px 0; }
.contact-lead { font-size: 15px; margin: 4px 0 10px; }
.msg-box { background: var(--paper); border-radius: 10px; padding: 12px; margin-bottom: 14px; }
.msg-box p { margin: 0 0 8px; font-size: 14px; white-space: pre-wrap; }
.btn-copy { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 6px 12px; font-size: 13px; }
#lineLink { text-decoration: none; margin-bottom: 10px; }
#contactDone { margin-top: 4px; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px);
  z-index: 20; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 10px; font-size: 15px;
  opacity: 0; transition: .25s; width: max-content; max-width: 90vw; text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
