/* Shop TV page. Sizes follow the screen (vh/vw) so a 32" and a 55" TV look alike. */
:root {
  --brand: #0f766e;
  --bg: #0b1120;
  --panel: #111827;
  --text: #f9fafb;
  --muted: #9ca3af;
  --line: rgba(255, 255, 255, 0.1);
  --price: #fde68a;
  --ready: #22c55e;
}
body.light {
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --price: #b45309;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", Arial, sans-serif;
  cursor: none;
}
body.pairing { cursor: default; }
.app { height: 100vh; width: 100vw; display: flex; flex-direction: column; }
.loading, .notice { margin: auto; font-size: 3vh; color: var(--muted); }

/* ---- header ---- */
.top {
  display: flex; align-items: center; gap: 1.6vw;
  padding: 1.6vh 2.4vw; background: var(--brand); color: #fff; flex: 0 0 auto;
}
.top img { height: 6vh; width: 6vh; object-fit: cover; border-radius: 1vh; background: #fff; }
.top .name { font-size: 4vh; font-weight: 800; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .clock { font-size: 3.6vh; font-weight: 700; font-variant-numeric: tabular-nums; }
.top .dot { width: 1.2vh; height: 1.2vh; border-radius: 50%; background: #fff; opacity: 0.5; }
.top .dot.off { background: #f87171; opacity: 1; }

.body { flex: 1 1 auto; display: flex; min-height: 0; }
.stage { flex: 1 1 auto; position: relative; min-width: 0; overflow: hidden; }

/* ---- menu pages ---- */
.menu { position: absolute; inset: 0; padding: 2vh 2.4vw; display: flex; flex-direction: column; gap: 1.6vh; }
.specials { display: flex; gap: 1.4vw; flex: 0 0 auto; }
.special {
  flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 1.2vw;
  background: var(--panel); border: 0.3vh solid var(--brand); border-radius: 1.6vh; padding: 1.2vh 1.2vw;
}
.special img { height: 11vh; width: 11vh; object-fit: cover; border-radius: 1.2vh; flex: 0 0 auto; }
.special .tag { font-size: 1.8vh; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: 0.1em; }
body.dark .special .tag { color: #5eead4; }
.special .n { font-size: 3.4vh; font-weight: 800; line-height: 1.15; }
.special .p { font-size: 3.4vh; font-weight: 800; color: var(--price); }
.cols { flex: 1 1 auto; display: grid; gap: 0 3vw; min-height: 0; }
.col { min-width: 0; }
.cat {
  font-size: 2.6vh; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: 0.08em;
  border-bottom: 0.3vh solid var(--brand); height: var(--row); display: flex; align-items: flex-end; padding-bottom: 0.6vh;
}
body.dark .cat { color: #5eead4; border-color: #5eead4; }
.item { display: flex; align-items: center; gap: 1vw; height: var(--row); border-bottom: 0.1vh solid var(--line); }
.item .n { flex: 1; font-size: 3vh; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .n small { color: var(--muted); font-weight: 500; font-size: 2.4vh; margin-left: 0.6vw; }
.item .star { color: var(--price); font-size: 2.4vh; }
.item .p { font-size: 3vh; font-weight: 800; color: var(--price); font-variant-numeric: tabular-nums; }
.pageno { position: absolute; right: 2.4vw; bottom: 1vh; font-size: 1.8vh; color: var(--muted); }

/* ---- slides ---- */
.slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #000; }
.slide img, .slide video { width: 100%; height: 100%; object-fit: contain; }
.slide .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2vh 3vw;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); color: #fff; font-size: 4vh; font-weight: 800;
}
.slide.text { background: var(--brand); color: #fff; flex-direction: column; text-align: center; padding: 6vh 6vw; }
.slide.text h1 { font-size: 10vh; margin: 0 0 3vh; line-height: 1.1; }
.slide.text p { font-size: 5vh; margin: 0; opacity: 0.95; }
.slide .ad { position: absolute; top: 1.6vh; right: 1.6vw; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 1.8vh; padding: 0.4vh 1vw; border-radius: 99px; }

/* ---- tokens ---- */
.tokens { flex: 0 0 28vw; background: var(--panel); border-left: 0.2vh solid var(--line); display: flex; flex-direction: column; padding: 2vh 1.6vw; gap: 2vh; }
.tokens h2 { margin: 0; font-size: 3vh; text-transform: uppercase; letter-spacing: 0.08em; }
.tokens h2.ready { color: var(--ready); }
.tokens h2.prep { color: var(--muted); }
.tokens .list { display: flex; flex-wrap: wrap; gap: 1vh 1vw; align-content: flex-start; }
.tokens .ready-list { flex: 1.4 1 0; overflow: hidden; }
.tokens .prep-list { flex: 1 1 0; overflow: hidden; }
.tok { font-size: 5vh; font-weight: 900; padding: 0.6vh 1.2vw; border-radius: 1vh; background: var(--ready); color: #052e16; font-variant-numeric: tabular-nums; }
.tok.prep { background: transparent; border: 0.25vh solid var(--muted); color: var(--text); font-size: 3.4vh; }
.tok.new { animation: pop 1s ease-in-out 6; }
@keyframes pop { 50% { transform: scale(1.15); box-shadow: 0 0 3vh var(--ready); } }

/* ---- full-screen messages and pairing ---- */
.full { margin: auto; text-align: center; padding: 4vh 4vw; max-width: 90vw; }
.full h1 { font-size: 6vh; margin: 0 0 2vh; }
.full p { font-size: 3vh; color: var(--muted); margin: 1vh 0; }
.pair .boxes { display: flex; gap: 1.2vw; justify-content: center; margin: 3vh 0; }
.pair .box { width: 9vh; height: 11vh; border-radius: 1.4vh; border: 0.4vh solid var(--muted); font-size: 7vh; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.pair .box.on { border-color: var(--brand); }
.pad { display: grid; grid-template-columns: repeat(3, 12vh); gap: 1.4vh; justify-content: center; }
.pad button {
  height: 9vh; font-size: 4.4vh; font-weight: 800; border-radius: 1.4vh; border: 0.3vh solid var(--line);
  background: var(--panel); color: var(--text); cursor: pointer;
}
.pad button:focus { outline: none; border-color: var(--brand); background: var(--brand); color: #fff; transform: scale(1.06); }
.pair .err { color: #f87171; font-size: 2.8vh; min-height: 3.6vh; }
.brandline { font-size: 2vh; color: var(--muted); margin-top: 3vh; }
