/* Big screens: 🍳 kitchen display (kitchen.html) and 📺 token TV (tokens.html). */
:root { --bg: #14100d; --card: #221a14; --line: #3a2d22; --text: #f6ecdc; --muted: #b5a18a; --gold: #e8c27c; --green: #3ccf6a; --amber: #f0a94a; --red: #ff5a52; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: Inter, "League Spartan", system-ui, sans-serif; }
.sc-top { display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: #0d0a08; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.sc-top h1 { margin: 0; font-family: "League Spartan", Inter, sans-serif; font-size: 22px; letter-spacing: .02em; }
.sc-top .sc-brand { color: var(--gold); font-weight: 800; letter-spacing: .2em; font-size: 13px; text-transform: uppercase; }
.sc-top .sc-sp { flex: 1; }
.sc-top .sc-clock { font-variant-numeric: tabular-nums; font-size: 20px; color: var(--muted); }
.sc-btn { height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: #2a2019; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.sc-btn:hover { background: #352820; }
.sc-btn.on { background: var(--gold); color: #1d120b; border-color: var(--gold); }
.sc-login { max-width: 380px; margin: 12vh auto; padding: 24px; background: var(--card); border-radius: 18px; border: 1px solid var(--line); }
.sc-login h2 { margin: 0 0 6px; }
.sc-login p { color: var(--muted); margin: 0 0 14px; font-size: 14px; }
.sc-login input { width: 100%; height: 46px; margin-bottom: 10px; border-radius: 10px; border: 1px solid var(--line); background: #15100c; color: var(--text); padding: 0 12px; font: inherit; }
.sc-login button { width: 100%; height: 48px; border: 0; border-radius: 12px; background: var(--gold); color: #1d120b; font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; }
.sc-err { color: var(--red); font-size: 14px; }
.sc-empty { text-align: center; color: var(--muted); font-size: 22px; padding: 18vh 20px; }
.sc-off { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); background: var(--red); color: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 700; }
[hidden] { display: none !important; }

/* 🍳 Kitchen tickets */
.kd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; padding: 16px; align-items: start; }
.kd-t { background: var(--card); border: 2px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; animation: kdIn .3s ease; }
@keyframes kdIn { from { transform: scale(.96); opacity: 0; } }
.kd-t header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 14px; background: #2d231b; }
.kd-t header b { font-size: 22px; font-family: "League Spartan", sans-serif; }
.kd-t header span { font-size: 14px; color: var(--muted); }
.kd-time { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 20px; }
.kd-t.warn { border-color: var(--amber); } .kd-t.warn .kd-time { color: var(--amber); }
.kd-t.late { border-color: var(--red); } .kd-t.late .kd-time { color: var(--red); } .kd-t.late header { background: #3a1714; }
.kd-t.is-new { border-style: dashed; opacity: .75; }
.kd-t ul { list-style: none; margin: 0; padding: 6px 14px; }
.kd-t li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 19px; cursor: pointer; user-select: none; }
.kd-t li b { min-width: 34px; color: var(--gold); }
.kd-t li small { display: block; font-size: 14px; color: var(--muted); }
.kd-t li.done { opacity: .35; text-decoration: line-through; }
.kd-note { margin: 4px 14px 8px; padding: 8px 10px; border-radius: 10px; background: #3b2c12; color: #ffd98c; font-size: 15px; }
.kd-t footer { padding: 10px 14px 14px; margin-top: auto; }
.kd-t footer button { width: 100%; height: 52px; border: 0; border-radius: 12px; background: var(--green); color: #062a12; font: inherit; font-weight: 800; font-size: 18px; cursor: pointer; }
.kd-t.is-new footer button { background: #3a3027; color: var(--muted); }

/* 📺 Token TV: preparing on the left, ready (big, green) on the right */
.tv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); min-height: calc(100vh - 66px); padding-bottom: 54px; }
.tv section { padding: 3vh 2.4vw; display: flex; flex-direction: column; gap: 2.2vh; }
.tv h2 { margin: 0; display: flex; align-items: center; gap: 14px; font-family: "League Spartan", sans-serif; font-size: clamp(26px, 3.4vw, 54px); letter-spacing: .01em; }
.tv .prep h2 { color: var(--gold); }
.tv .ready { background: radial-gradient(120% 80% at 70% 0%, #14361f 0%, #0b1d11 70%); }
.tv .ready h2 { color: var(--green); }
.tv-count { font-size: .5em; min-width: 1.6em; padding: .15em .5em; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--text); text-align: center; }
.tv-count:empty { display: none; }
.tv-grid { display: grid; gap: 1.6vh 1.2vw; align-content: start; }
.prep .tv-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.ready .tv-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.tv-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); animation: tvIn .35s ease; }
@keyframes tvIn { from { transform: translateY(8px); opacity: 0; } }
.tv-card.recv { border-style: dashed; border-color: #6a5640; }
.tv-card.cook { border-color: #5b4428; }
.tv-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tv-num { font-family: "League Spartan", sans-serif; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; font-size: clamp(40px, 4.6vw, 80px); color: var(--text); }
.tv-where { font-size: clamp(15px, 1.4vw, 22px); font-weight: 700; color: var(--muted); text-align: right; }
.tv-chip { align-self: flex-start; padding: 5px 12px; border-radius: 999px; font-size: clamp(13px, 1.1vw, 17px); font-weight: 800; letter-spacing: .02em; }
.tv-chip.recv { background: #3b2c12; color: #ffd98c; }
.tv-chip.cook { background: #3a2a14; color: var(--amber); }
.tv-chip.done { background: #062a12; color: #b8f5c9; }
.tv-items { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tv-items li { display: flex; gap: 8px; font-size: clamp(14px, 1.25vw, 20px); line-height: 1.3; color: #e9dcc8; }
.tv-items li b { min-width: 2.2em; color: var(--gold); font-variant-numeric: tabular-nums; }
.tv-items li.more { color: var(--muted); font-style: italic; }
.tv-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 4px; }
.tv-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--amber), var(--gold)); transition: width 1s linear; }
.tv-card.ready { background: var(--green); border-color: var(--green); color: #062a12; box-shadow: 0 18px 40px rgba(60, 207, 106, .18); }
.tv-card.ready .tv-num { color: #062a12; font-size: clamp(56px, 6.4vw, 120px); }
.tv-card.ready .tv-where { color: #0b3d1b; }
.tv-card.ready .tv-items li { color: #0b3d1b; }
.tv-card.ready .tv-items li b { color: #062a12; }
.tv-card.ready.fresh { animation: tvIn .35s ease, tvFlash 1s ease-in-out .35s 6; }
@keyframes tvFlash { 50% { background: #ffffff; transform: scale(1.03); } }
.tv-empty { margin: 4vh 0 0; font-size: clamp(16px, 1.6vw, 24px); color: var(--muted); }
.ready .tv-empty { color: #8fd3a5; }
.tv-more { margin: 0; color: var(--muted); font-weight: 700; }
.tv-foot { position: fixed; bottom: 0; left: 0; right: 0; padding: 12px 18px; background: #0d0a08; color: var(--muted); font-size: clamp(14px, 1.5vw, 22px); text-align: center; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .tv { grid-template-columns: 1fr; } }
