/* Seat board (BBFanGuide flow): board · zone [dots | 3×3] · claim flow · person sheet · done */
.min0 { min-width: 0; }
.btn.wide { display: flex; width: 100%; }
.center { text-align: center; }
.tiny { font-size: .72rem; line-height: 1.5; margin: 8px 0 0; }
.fine { font-size: .78rem; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; margin: 0; }
body.no-scroll { overflow: hidden; }

.board { width: min(1240px, calc(100% - 32px)); margin: 16px auto 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 1000px) {
  .board { grid-template-columns: minmax(0, 1fr) 400px; align-items: start; column-gap: 22px; }
  .board-map-card { grid-column: 1; grid-row: 1 / span 2; }
  .board-side1 { grid-column: 2; grid-row: 1; }
  .board-side2 { grid-column: 2; grid-row: 2; }
  .float-cta { display: none !important; }
}
@media (max-width: 999px) { .desktop-only { display: none !important; } }
.board-side1, .board-side2 { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.board-map-card .stage.board-map { height: auto; aspect-ratio: 1 / 1.02; min-height: 320px; border-radius: 16px; margin-top: 10px; }
.price-row { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; font-size: .8rem; font-weight: 700; }
.price-row span { display: inline-flex; align-items: center; gap: 5px; }
.price-row i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.zone-chips { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.zc { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.zc-chip { border: 1px solid rgba(249, 168, 212, .3); background: rgba(13, 4, 23, .7); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: .78rem; font-weight: 800; cursor: pointer; }
.zc-chip.has { background: var(--gold); color: #1a1300; border-color: var(--gold); }
.zc-chip:hover { border-color: var(--gold); }
.mine-card { gap: 4px; }
.mine-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--text); }
.mine-row .min0 { flex: 1; display: flex; flex-direction: column; }
.claim-btn { width: 100%; box-shadow: 0 10px 30px rgba(160, 180, 255, .25); }
.float-cta { position: fixed; left: 0; right: 0; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40; padding: 0 16px; width: min(560px, 100%); margin: 0 auto; }
body[data-route="/seats"] .foot { padding-bottom: 80px; }
.nat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.nat { display: flex; flex-direction: column; align-items: center; gap: 1px; background: rgba(255, 255, 255, .04); border-radius: 14px; padding: 8px 2px; min-width: 0; }
.nat-flag { font-size: 1.6rem; line-height: 1.2; }
.nat small { width: 100%; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .7rem; }
.minibars { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.minibars > div { display: grid; grid-template-columns: minmax(70px, 30%) 1fr auto; gap: 8px; align-items: center; font-size: .85rem; }
.minibars span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.minibars i { height: 9px; background: rgba(255, 255, 255, .08); border-radius: 999px; overflow: hidden; display: block; }
.minibars u { display: block; height: 100%; background: var(--gold); border-radius: 999px; text-decoration: none; }

/* zone screen */
.zone-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.zone-title h1 { margin: 0; }
.price-pill2 { background: var(--panel2); border: 1px solid var(--line2); border-radius: 999px; padding: 4px 12px; font-size: .8rem; font-weight: 800; }
.zone-wrap { width: min(1240px, calc(100% - 32px)); margin: 14px auto 0; display: flex; flex-direction: column; gap: 12px; padding-bottom: 90px; }
.zone-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.zone-top .desktop-only { width: 320px; }
.tabs2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); width: min(380px, 100%); }
.tabs2 button { min-height: 40px; border-radius: 12px; border: 0; background: none; color: var(--muted); font-weight: 700; cursor: pointer; }
.tabs2 button[aria-pressed="true"] { background: var(--gold); color: #1a1300; }
.dots-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.zoom-pill { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 3px; }
.zoom-pill button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; color: var(--text); cursor: pointer; display: grid; place-items: center; }
.zoom-pill span { font-size: .75rem; color: var(--muted); min-width: 38px; text-align: center; }
.court-cap { text-align: center; font-size: .72rem; letter-spacing: .2em; font-weight: 800; color: var(--muted); margin: 10px 0 4px; }
.zg-wrap.tall { max-height: 62vh; }
.zone-grid.dots { min-width: 100%; }
.chip.pick[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #1a1300; font-weight: 800; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
.chip-grid .chip, .chip-wrap .chip { min-height: 38px; }
.stepper { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.stepper > button { width: 46px; height: 46px; flex: none; border-radius: 12px; border: 1px solid var(--line2); background: #0b0d1c; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.stepper > button:disabled { opacity: .35; cursor: default; }
.stepper > b { flex: 1; text-align: center; font-size: 1.05rem; }
.seat-num { flex: 1; text-align: center; font-size: 1.4rem; font-weight: 800; height: 46px; }
.ring-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 1000px) { .ring-layout { grid-template-columns: 380px minmax(0, 1fr); align-items: start; } }

/* 3×3 ring */
.ring { width: 100%; max-width: 560px; margin: 0 auto; }
.ring-facing { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; color: var(--muted); margin: 0 0 8px; }
.ring-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ring-cell { --tc: var(--line2); min-height: 128px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 6px; border-radius: 18px; text-align: center; color: var(--text); cursor: pointer; transition: transform .12s; }
.ring-cell:enabled:active { transform: scale(.96); }
.ring-cell.taken { background: color-mix(in srgb, var(--tc) 16%, var(--panel)); border: 1px solid color-mix(in srgb, var(--tc) 55%, transparent); }
.ring-cell.free { background: transparent; border: 1px dashed var(--line2); }
.ring-cell.none { background: transparent; border: 1px solid transparent; opacity: .5; cursor: default; }
.ring-cell.center { background: linear-gradient(160deg, rgba(255, 210, 63, .22), rgba(255, 106, 19, .1)); border: 1.5px solid var(--gold); }
.ring-cell.center.taken { background: linear-gradient(160deg, color-mix(in srgb, var(--tc) 30%, transparent), rgba(255, 210, 63, .12)); }
.rc-label { font-size: .7rem; font-weight: 800; color: var(--gold); }
.ring-cell.center .rc-label { color: #fff; }
.rc-name { width: 100%; font-size: .8rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-plus { width: 46px; height: 46px; border-radius: 14px; border: 1.5px dashed rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .35); display: grid; place-items: center; font-size: 1.2rem; }
.rc-gap { height: 46px; }
.rc-free { font-size: .75rem; color: var(--muted); }
.rc-seat { font-size: .7rem; color: var(--muted); }
.rc-flag { font-size: .65rem; color: #ff9dbb; display: inline-flex; align-items: center; gap: 2px; }

/* claim flow (full screen, 3 steps) */
.claim { position: fixed; inset: 0; z-index: 120; background: var(--bg); display: flex; flex-direction: column; opacity: 0; transform: translateY(12px); transition: opacity .18s, transform .18s; }
.claim.in { opacity: 1; transform: none; }
.claim.out { opacity: 0; }
.claim-top { border-bottom: 1px solid var(--line); padding: 10px 16px; }
.claim-top-in, .claim-in { width: min(560px, 100%); margin: 0 auto; }
.claim-top-in { display: flex; align-items: center; gap: 10px; }
.claim-top-in b { flex: 1; font-size: 1.1rem; }
.steps3 { width: min(560px, 100%); margin: 8px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.steps3 .step i { display: block; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.steps3 .step.on i { background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.steps3 small { font-size: .7rem; color: var(--muted); font-weight: 700; }
.claim-scroll { flex: 1; overflow-y: auto; padding: 16px; }
.claim-body { display: flex; flex-direction: column; gap: 8px; }
.claim-label { margin: 12px 0 0; font-size: .88rem; font-weight: 800; color: var(--gold); display: flex; align-items: center; gap: 6px; }
.claim-label:first-child { margin-top: 0; }
.where { background: rgba(255, 210, 63, .08); border: 1px solid rgba(255, 210, 63, .35); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; margin-top: 10px; }
.where b { font-size: 1.15rem; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-top: 8px; cursor: pointer; }
.agree input { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.claim-foot { border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.claim-in.row { display: flex; gap: 8px; }
.claim-in.row .btn.primary { flex: 1; }
.claim-err { color: #ff9dbb; font-size: .88rem; margin: 10px 0 0; }

/* person sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 110; background: rgba(3, 4, 10, .6); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .2s; }
.sheet-wrap.in { opacity: 1; }
.sheet { width: min(560px, 100%); max-height: 88svh; overflow-y: auto; background: var(--bg2); border: 1px solid var(--line2); border-radius: 24px 24px 0 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; transform: translateY(30px); transition: transform .2s; }
.sheet-wrap.in .sheet { transform: none; }
@media (min-width: 700px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 24px; } }
.sheet-grip { width: 44px; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .2); margin: 0 auto 4px; }
.person-top { display: flex; gap: 14px; align-items: center; }
.person-nick { font-size: 1.35rem; display: block; }
.person-seat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.person-seat > div { background: #0b0d1c; border: 1px solid var(--line); border-radius: 12px; padding: 6px; text-align: center; }
.person-seat > div[style] { background: var(--pc); color: #111; }
.person-seat small { display: block; font-size: .68rem; opacity: .7; }
.person-seat b { font-family: var(--display); font-weight: 400; font-size: 1.25rem; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheet-actions .btn { padding: 11px 10px; }

/* done */
.done { width: min(560px, calc(100% - 32px)); margin: 28px auto 0; display: flex; flex-direction: column; gap: 12px; }
.done-hero { text-align: center; display: flex; flex-direction: column; align-items: center; }
.done-hero h1 { margin: 6px 0 0; font-size: 2.4rem; font-style: italic; font-weight: 800; }
.done-seat { margin: 2px 0 0; font-size: 1.15rem; font-weight: 800; }

/* ผังจุด — square dots on the TTM grid (BBFanGuide style) */
.dot-scroller { position: relative; overflow-x: auto; margin-top: 6px; container-type: inline-size; scrollbar-width: none; }
.dot-scroller::-webkit-scrollbar { display: none; }
.dotgrid { --dot: var(--dot-m, 20px); width: max-content; margin: 0 auto; display: flex; flex-direction: column; gap: 3px; }
@media (min-width: 1000px) { .dotgrid { --dot: clamp(20px, calc((100cqw - 2.5rem) / var(--n) - 4px), 40px); gap: 4px; } .mobile-only { display: none !important; } }
.dotrow { display: flex; align-items: center; gap: 2px; }
@media (min-width: 1000px) { .dotrow { gap: 4px; } }
.dotrow-label { width: 18px; flex: none; font-size: .62rem; font-weight: 800; color: var(--muted); text-align: right; padding-right: 3px; }
@media (min-width: 1000px) { .dotrow-label { width: 26px; font-size: .85rem; } }
.dot { width: var(--dot); height: var(--dot); flex: none; border-radius: 28%; border: 0; padding: 0; display: grid; place-items: center; }
.dot.gap { background: transparent; }
.dot.off { background: rgba(255, 255, 255, .05); }
.dot.free { --pc: #8b7fa8; background: color-mix(in srgb, var(--pc) 34%, transparent); color: rgba(255, 255, 255, .9); cursor: pointer; font-weight: 800; font-size: max(7px, calc(var(--dot) * .46)); letter-spacing: -.03em; line-height: 1; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); font-variant-numeric: tabular-nums; transition: filter .12s, transform .12s; }
.dot.free:hover, .dot.free:focus-visible { filter: brightness(1.5); outline: none; }
.dot.free:active { transform: scale(.9); }
.dot.free.sel { box-shadow: 0 0 0 2px var(--gold); }
.dot.taken { --tc: #fff; background: #0b0d1c; box-shadow: 0 0 0 1.5px var(--tc); cursor: pointer; overflow: hidden; }
.dot.taken .emblem { width: 100% !important; height: 100% !important; }
.dot.taken.mine { box-shadow: 0 0 0 2px var(--gold); }
.dot.flag { box-shadow: 0 0 0 2px #ff2d55 !important; }
.zoom-pill button:disabled { opacity: .35; }
.dotrow-label { position: sticky; left: 0; z-index: 1; align-self: stretch; display: flex; align-items: center; justify-content: flex-end; background: var(--panel); }
