:root { --ace-blue: #040942; --ace-orange: #ff7200; --ink: #ff7200; --muted: #ffd0aa; --paper: #040942; --card: #0b145b; }
* { box-sizing: border-box; }
html { font-size: 14px; position: relative; min-height: 100%; }
@media (min-width: 768px) { html { font-size: 16px; } }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }

.board-shell { min-height: 100vh; max-width: 1440px; margin: auto; padding: .65rem clamp(1.25rem, 4vw, 3.5rem); display: flex; flex-direction: column; gap: .65rem; }
.board-header { display: flex; align-items: center; gap: 1.25rem; padding-bottom: .65rem; border-bottom: 1px solid rgba(255,114,0,.35); font-size: clamp(1rem, 2vw, 1.5rem); }
.brand { display: flex; align-items: center; min-width: 190px; }
.brand-logo { width: 170px; max-height: 48px; object-fit: contain; object-position: left center; }
.branch-name { flex: 1; text-align: center; color: var(--ink); font-size: clamp(1rem, 2.5vw, 1.8rem); font-weight: 700; }
.live { color: var(--ace-orange); font-size: .8em; font-weight: 700; text-align: right; }
.live small { color: var(--muted); font-size: .75em; }
.sound-toggle { border: 1px solid rgba(255,114,0,.45); border-radius: .6rem; padding: .45rem .6rem; background: var(--card); color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.sound-toggle:hover, .sound-toggle:focus { border-color: var(--ace-orange); outline: 2px solid rgba(255,114,0,.2); }
.now-panel { flex: 1; min-height: 28vh; border: 1px solid rgba(255,114,0,.25); border-radius: 1rem; background: linear-gradient(135deg, #0b145b, #14247e); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 .75rem 2.5rem rgba(0,0,0,.3); }
.now-label { letter-spacing: .2em; font-size: clamp(.8rem, 1.5vw, 1.1rem); color: var(--muted); font-weight: 700; }
.current-number { color: var(--ace-orange); font-size: clamp(7rem, 20vw, 18rem); line-height: 1; font-weight: 800; letter-spacing: .04em; }
.current-service { font-size: clamp(1rem, 2vw, 1.5rem); color: var(--ink); font-weight: 700; }
.current-subservice { font-size: clamp(1rem, 1.8vw, 1.3rem); color: var(--muted); margin-top: .35rem; }
.empty-state { color: var(--muted); font-size: clamp(1.2rem, 3vw, 2rem); }
.waiting-panel { padding: .5rem .75rem; border: 1px solid rgba(255,114,0,.25); border-radius: .85rem; background: var(--card); }
.waiting-panel h2 { margin-top: 0; font-size: 1.1rem; color: var(--ace-orange); text-transform: uppercase; letter-spacing: .12em; }
.waiting-list { display: flex; flex-wrap: wrap; gap: .75rem; }
.waiting-number { background: var(--ace-orange); color: var(--ace-blue); border-radius: .6rem; padding: .35rem .8rem; font-size: clamp(1.2rem, 3vw, 1.7rem); font-weight: 700; box-shadow: 0 .35rem .8rem rgba(0,0,0,.2); }
.board-footer { margin-top: auto; color: #819396; text-align: center; font-size: .9rem; }
.setup-message { margin: auto; padding: 2rem; border: 1px solid rgba(255,114,0,.25); border-radius: 1.25rem; background: var(--card); text-align: center; color: var(--muted); }
.setup-message h1 { color: var(--ace-orange); }
.access-panel { width: min(100%, 480px); }
.access-eyebrow { color: var(--ace-orange); font-size: .78rem; font-weight: 800; letter-spacing: .2em; }
.access-panel p { margin-bottom: 1.5rem; }
.access-form { display: grid; gap: .65rem; max-width: 360px; margin: 1.5rem auto 0; text-align: left; }
.access-form label { color: var(--muted); font-weight: 700; }
.access-form .form-control { padding: .9rem 1rem; border: 1px solid rgba(255,114,0,.45); border-radius: .65rem; background: var(--paper); color: var(--ink); }
.access-form .form-control:focus { border-color: var(--ace-orange); outline: 3px solid rgba(255,114,0,.2); box-shadow: none; }
.access-button { margin-top: .5rem; border: 0; border-radius: .75rem; padding: 1rem; background: var(--ace-orange); color: var(--ace-blue); font-size: 1rem; font-weight: 700; cursor: pointer; }
.access-button:hover { background: #ff9138; }
.access-error { margin-top: 1.25rem; padding: .8rem 1rem; border-radius: .65rem; background: #fbe5da; color: #8a3c2e; }

@media (max-width: 600px) {
  .board-shell { padding-top: .5rem; gap: .5rem; }
  .board-header { gap: .75rem; }
  .brand { min-width: 125px; }
  .brand-logo { width: 115px; max-height: 40px; }
  .branch-name { font-size: 1rem; }
  .sound-toggle { font-size: .95rem; }
  .now-panel { min-height: 28vh; }
  .current-number { font-size: clamp(6rem, 28vw, 10rem); }
}
