/* ============================================================
   Bida-Vibe — flat fiesta styles (no gradients)
   ============================================================ */
html, body { background: #FFF6E5; }

:root {
  --cream: #FFF6E5;
  --paper: #FFFDF8;
  --ink: #1E1A16;
  --ink-2: #4A433C;
  --ink-3: #7A7067;
  --line: #1E1A16;
  --magenta: #E2367A;
  --magenta-soft: #FBD3E2;
  --turq: #0FA3A3;
  --turq-soft: #C9EEEC;
  --gold: #F6B21B;
  --gold-soft: #FDE7AE;
  --chili: #E4452B;
  --chili-soft: #F9D0C7;
  --leaf: #3E9B4F;
  --leaf-soft: #D3EDD5;
  --f: 'Nunito', system-ui, sans-serif;
  --f2: 'Bricolage Grotesque', 'Nunito', sans-serif;
  --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-xl: 30px;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-sm: 2px 2px 0 var(--ink);
  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --tab-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; color: var(--ink); font: 400 16px/1.55 var(--f);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; min-height: 100dvh;
}
::selection { background: var(--gold); color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--turq); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.ic { width: 20px; height: 20px; flex: none; }
h1, h2, h3, h4 { font-family: var(--f2); line-height: 1.05; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--paper); color: var(--ink); font: 800 15px/1 var(--f); letter-spacing: -.005em;
  overflow: hidden; isolation: isolate; box-shadow: var(--shadow-sm); text-decoration: none;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), color .35s var(--ease-out);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fill, var(--gold));
  transform: translateX(-101%); transition: transform .4s var(--ease-out);
}
@media (hover: hover) {
  .btn:hover { transform: translate(-2px,-2px); box-shadow: var(--shadow); }
  .btn:hover::after { transform: translateX(0); }
}
.btn:active { transform: translate(2px,2px); box-shadow: none; }
.btn--sm { min-height: 38px; padding: 8px 14px; font-size: 13.5px; }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 16.5px; }
.btn--block { width: 100%; }
.btn--ink     { background: var(--ink); color: var(--cream); --fill: var(--turq); }
.btn--magenta { background: var(--magenta); color: #fff; --fill: var(--ink); }
.btn--turq    { background: var(--turq); color: #fff; --fill: var(--ink); }
.btn--gold    { background: var(--gold); --fill: var(--paper); }
.btn--chili   { background: var(--chili); color: #fff; --fill: var(--ink); }
.btn--leaf    { background: var(--leaf); color: #fff; --fill: var(--ink); }
.btn--ghost   { background: transparent; box-shadow: none; --fill: var(--gold-soft); }
.btn--ghost:hover { box-shadow: var(--shadow-sm); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 12px;
  border: 2px solid var(--ink); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .15s var(--ease-out), box-shadow .15s;
}
.icon-btn:active { transform: translate(2px,2px); box-shadow: none; }
.icon-btn .ic { width: 18px; height: 18px; }
.icon-btn--plain { border-color: transparent; box-shadow: none; background: transparent; }

/* ---------- Bunting / papel picado ---------- */
.bunting { position: relative; height: 54px; overflow: hidden; pointer-events: none; }
.bunting svg { display: block; width: 100%; height: 100%; }
.bunting .flag { transform-box: fill-box; transform-origin: 50% 0; animation: sway 3.2s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.bunting--app { height: 30px; }

/* ---------- Landing ---------- */
.landing {
  position: fixed; inset: 0; z-index: 40; overflow-y: auto; background: var(--cream);
  display: grid; grid-template-rows: auto auto 1fr auto; padding-bottom: max(32px, env(safe-area-inset-bottom));
}
.landing .bunting--hero { height: 74px; }
.land-nav { display: flex; align-items: center; justify-content: space-between; padding: 6px 20px 0; max-width: 1200px; width: 100%; margin: 0 auto; }
.wordmark {
  font: 800 24px/1 var(--f2); letter-spacing: -.045em; color: var(--ink); text-decoration: none;
  background: none; border: 0; padding: 0;
}
.wordmark span { color: var(--magenta); }
.wordmark--sm { font-size: 21px; }
.land-hero { max-width: 1200px; width: 100%; margin: 0 auto; padding: 40px 20px 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 800 12.5px/1 var(--f); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--chili); box-shadow: 0 0 0 2px var(--ink); }
.land-h1 {
  margin: 18px 0 20px; font: 800 clamp(64px, 15vw, 168px)/.86 var(--f2); letter-spacing: -.055em;
  display: flex; flex-direction: column;
}
.land-h1 span { display: block; }
.hl-magenta { color: var(--magenta); }
.hl-turq { color: var(--turq); }
.land-sub { max-width: 34rem; font-size: clamp(16px, 1.6vw, 18.5px); color: var(--ink-2); font-weight: 600; }
.land-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.land-stats { list-style: none; display: flex; gap: 32px; margin: 36px 0 0; padding: 0; flex-wrap: wrap; }
.land-stats li { display: flex; flex-direction: column; }
.land-stats b { font: 800 40px/1 var(--f2); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.land-stats span { font: 800 11px/1.3 var(--f); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.land-cards { display: none; }
.tcard {
  border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 4px; background: var(--paper);
}
.tcard small { font: 800 11px/1 var(--f); letter-spacing: .14em; text-transform: uppercase; }
.tcard b { font: 800 20px/1.15 var(--f2); letter-spacing: -.02em; }
.tcard em { font-style: normal; font-weight: 700; font-size: 13px; color: var(--ink-2); }
.tcard--gold { background: var(--gold); }
.tcard--turq { background: var(--turq-soft); }
.tcard--magenta { background: var(--magenta); color: #fff; }
.tcard--magenta em { color: #fff; }

@media (min-width: 980px) {
  .land-hero { padding-top: 56px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); column-gap: 48px; align-items: start; }
  .land-hero > * { grid-column: 1; }
  .land-hero > .land-cards {
    grid-column: 2; grid-row: 1 / span 6; display: flex; flex-direction: column; gap: 18px; justify-self: end;
    width: min(380px, 100%); margin-top: 64px;
  }
  .tcard:nth-child(1) { transform: rotate(-3deg); }
  .tcard:nth-child(2) { transform: rotate(2deg) translateX(-30px); }
  .tcard:nth-child(3) { transform: rotate(-1.5deg) translateX(10px); }
}

/* Entrance */
.fade-up { animation: fadeUp .8s var(--ease-out) both; animation-delay: var(--d, 0s); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- App shell ---------- */
.app { min-height: 100dvh; padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 12px); }
.app-head { position: sticky; top: 0; z-index: 20; background: var(--cream); border-bottom: 2px solid var(--ink); }
.head-row { display: flex; align-items: center; gap: 12px; padding: 6px 16px 10px; }
.head-event { flex: 1; min-width: 0; font: 800 13px/1.2 var(--f); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.head-event b { color: var(--ink); }
.live-btn .ic { width: 18px; height: 18px; }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: repeat(6, 1fr);
  background: var(--paper); border-top: 2px solid var(--ink); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}
.tabs button {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; min-height: 52px;
  border: 0; background: transparent; border-radius: 14px; font: 800 11px/1 var(--f); color: var(--ink-3);
  transition: background .2s, color .2s;
}
.tabs button .ic { width: 22px; height: 22px; }
.tabs button.active { background: var(--gold); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }

.app-main { max-width: 980px; margin: 0 auto; padding: 20px 16px 24px; }
.panel { display: none; }
.panel.active { display: block; animation: fadeUp .45s var(--ease-out) both; }

.panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-head h2 { font-size: clamp(30px, 6vw, 44px); letter-spacing: -.04em; }
.panel-head p { color: var(--ink-2); font-weight: 600; margin-top: 6px; max-width: 36rem; }
.kicker { font: 800 11.5px/1 var(--f); letter-spacing: .16em; text-transform: uppercase; color: var(--magenta); margin-bottom: 8px; display: block; }

.card {
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 18px;
}
.card + .card { margin-top: 16px; }
.card h3 { font-size: 21px; margin-bottom: 4px; }
.muted { color: var(--ink-3); font-weight: 600; font-size: 14px; }
.stack > * + * { margin-top: 14px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field-label { font: 800 12px/1 var(--f); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 12px;
  background: #fff; font-weight: 700; font-size: 16px; outline: none; transition: box-shadow .15s;
}
.input:focus { box-shadow: var(--shadow-sm); }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
.grid-2 > * { min-width: 0; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* Games */
.game-filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: none; }
.game-filters::-webkit-scrollbar { display: none; }
.game-filters .chip { flex: none; white-space: nowrap; }
.game-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .game-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .game-grid { grid-template-columns: repeat(3, 1fr); } }
.gcard {
  text-align: left; padding: 0; border: 2px solid var(--ink); border-radius: var(--r-lg); background: #fff; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .2s var(--ease-out), box-shadow .2s; display: flex; flex-direction: column;
}
.gcard:hover { transform: translate(-2px,-2px); box-shadow: var(--shadow); }
.gcard .scene { border-bottom: 2px solid var(--ink); }
.gcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.gcard-body b { font: 800 19px/1.1 var(--f2); letter-spacing: -.02em; }
.gcard-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.gcard-meta span { font: 800 11.5px/1 var(--f); padding: 5px 9px; border-radius: 999px; background: var(--cream); border: 1.5px solid var(--ink); }
.energy { display: inline-flex; gap: 2px; }
.energy i { width: 7px; height: 12px; border-radius: 2px; background: var(--ink); opacity: .2; }
.energy i.on { opacity: 1; background: var(--chili); }

/* Animated scenes */
.scene { aspect-ratio: 16 / 9; width: 100%; display: block; background: var(--turq-soft); }
.scene--gold { background: var(--gold-soft); } .scene--magenta { background: var(--magenta-soft); }
.scene--leaf { background: var(--leaf-soft); } .scene--chili { background: var(--chili-soft); }
.scene svg { width: 100%; height: 100%; display: block; }
.scene text { font-family: var(--f); font-weight: 800; }

/* Game detail */
.gd-scene { border: 2px solid var(--ink); border-radius: var(--r-md); overflow: hidden; }
.gd-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: flex; flex-direction: column; gap: 8px; }
.gd-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; padding: 10px; border: 2px solid transparent; border-radius: 12px; font-weight: 600; transition: background .3s, border-color .3s; }
.gd-steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font: 800 14px/1 var(--f2); background: #fff; }
.gd-steps li.now { background: var(--gold-soft); border-color: var(--ink); }
.gd-steps li.now::before { background: var(--gold); }
.mat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mat-list li { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.mat-list input { width: 20px; height: 20px; accent-color: var(--leaf); flex: none; }
.host-lines { display: flex; flex-direction: column; gap: 10px; }
.host-line { border-left: 6px solid var(--magenta); background: var(--cream); padding: 10px 12px; border-radius: 0 12px 12px 0; font-weight: 600; }
.host-line small { display: block; font: 800 11px/1 var(--f); letter-spacing: .12em; text-transform: uppercase; color: var(--magenta); margin-bottom: 4px; }
.sec-title { font: 800 12px/1 var(--f); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 18px 0 10px; display: flex; align-items: center; gap: 8px; }
.sec-title .ic { width: 16px; height: 16px; }

/* Premium */
.locked { position: relative; }
.lock-banner {
  display: flex; gap: 14px; align-items: center; padding: 16px; border: 2px solid var(--ink); border-radius: var(--r-lg);
  background: var(--ink); color: var(--cream); margin-bottom: 18px; box-shadow: var(--shadow);
}
.lock-banner .ic { width: 28px; height: 28px; color: var(--gold); }
.lock-banner b { font: 800 17px/1.2 var(--f2); display: block; }
.lock-banner span { font-size: 13.5px; font-weight: 600; opacity: .8; }
.lock-banner .btn { margin-left: auto; flex: none; }
.badge-pro { display: inline-flex; align-items: center; gap: 4px; font: 800 10.5px/1 var(--f); letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--gold); border: 1.5px solid var(--ink); color: var(--ink); vertical-align: middle; }
.badge-pro .ic { width: 12px; height: 12px; }
.tabs button .badge-dot { position: absolute; }

/* Sound pads */
.pads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 640px) { .pads { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .pads { grid-template-columns: repeat(5, 1fr); } }
.pad {
  position: relative; aspect-ratio: 1 / 1; border: 2px solid var(--ink); border-radius: var(--r-md); background: var(--pc, var(--gold));
  box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px;
  font: 800 14px/1.1 var(--f); text-align: center; color: var(--ink); transition: transform .08s, box-shadow .08s;
  -webkit-tap-highlight-color: transparent; user-select: none; touch-action: manipulation;
}
.pad small { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.pad:active, .pad.hit { transform: translate(4px,4px); box-shadow: 0 0 0 var(--ink); }
.pad .pad-key { position: absolute; top: 6px; left: 8px; font: 800 10px/1 var(--f); opacity: .55; }
.pad .pad-del { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--ink); background: #fff; display: grid; place-items: center; }
.pad .pad-del .ic { width: 14px; height: 14px; }
.pad--add { background: #fff; border-style: dashed; box-shadow: none; }
.pad--add .ic { width: 26px; height: 26px; }
.pad.disabled { opacity: .5; }
.pc-gold { --pc: var(--gold); } .pc-turq { --pc: var(--turq-soft); } .pc-magenta { --pc: var(--magenta-soft); }
.pc-chili { --pc: var(--chili-soft); } .pc-leaf { --pc: var(--leaf-soft); } .pc-paper { --pc: #fff; }
.rec-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rec-on { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* Music */
.src-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.src-tab { min-height: 64px; border: 2px solid var(--ink); border-radius: var(--r-md); background: #fff; font: 800 13.5px/1.15 var(--f); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; }
.src-tab small { font-size: 10.5px; color: var(--ink-3); font-weight: 800; }
.src-tab.on { background: var(--turq); color: #fff; box-shadow: var(--shadow-sm); }
.src-tab.on small { color: #fff; opacity: .85; }
.yt-host { position: relative; aspect-ratio: 16/9; border: 2px solid var(--ink); border-radius: var(--r-md); overflow: hidden; background: var(--ink); }
.yt-host iframe, .yt-host > div { position: absolute; inset: 0; width: 100%; height: 100%; }
.queue { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow: auto; }
.queue li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.queue li.now { background: var(--gold-soft); }
.queue li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Sliders, toggles, notes */
.vu { height: 14px; border: 2px solid var(--cream); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.vu i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .08s linear; }
.slider-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; margin-top: 14px; }
.slider-row label { font: 800 12px/1 var(--f); letter-spacing: .1em; text-transform: uppercase; }
.slider-row output { font: 800 14px/1 var(--f2); font-variant-numeric: tabular-nums; }
.slider-row input { grid-column: 1 / -1; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 10px; border-radius: 999px; background: var(--paper); border: 2px solid var(--ink); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--gold); border: 2px solid var(--ink); }
input[type=range]::-moz-range-track { height: 10px; border-radius: 999px; background: var(--paper); border: 2px solid var(--ink); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--gold); border: 2px solid var(--ink); }
.toggle { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14px; margin-top: 12px; cursor: pointer; }
.toggle input { width: 22px; height: 22px; accent-color: var(--gold); }
.seg-ctrl { display: inline-flex; border: 2px solid var(--cream); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.seg-ctrl button { border: 0; background: transparent; color: var(--cream); font: 800 13px/1 var(--f); padding: 9px 14px; }
.seg-ctrl button.on { background: var(--gold); color: var(--ink); }
.note { font-size: 13.5px; font-weight: 600; color: var(--ink-2); background: var(--gold-soft); border: 2px dashed var(--ink); border-radius: 12px; padding: 10px 12px; }
.note code { background: #fff; border-radius: 4px; padding: 1px 5px; font-size: 12.5px; }

/* ---------- Plan (event + activity list) ---------- */
.plan-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.plan-top .field { min-width: 0; }
.plan-top .field:first-child { grid-column: 1 / -1; }
/* Date/time inputs have a built-in minimum width in some browsers — let them shrink inside their column */
.input { min-width: 0; max-width: 100%; }
input[type=date].input, input[type=time].input { -webkit-appearance: none; appearance: none; display: block; padding-right: 8px; }
input[type=date]::-webkit-date-and-time-value, input[type=time]::-webkit-date-and-time-value { text-align: left; }

/* Activity checks, notes and the highlighted next activity */
.act-check { flex: none; width: 52px; border: 0; border-right: 2px solid var(--ink); background: #fff; display: grid; place-items: center; cursor: pointer; }
.act-check::before { content: ""; grid-area: 1 / 1; width: 24px; height: 24px; border: 2.5px solid var(--ink); border-radius: 7px; background: #fff; }
.act-check .ic { grid-area: 1 / 1; width: 18px; height: 18px; color: var(--ink); position: relative; z-index: 1; }
.act.is-done .act-check::before { background: var(--leaf); }
.act.is-done .act-check .ic { color: #fff; }
.act.is-done .act-title { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--ink-3); }
.act.is-done .act-time, .act.is-done .act-min { opacity: .55; }
.act-note { grid-column: 1 / -1; display: flex; gap: 6px; align-items: flex-start; font: 600 13.5px/1.4 var(--f); color: var(--ink-2); background: var(--cream); border-radius: 8px; padding: 6px 8px; margin-top: 2px; overflow-wrap: anywhere; }
.act-note .ic { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.act.is-next { background: var(--gold-soft); border-width: 3px; box-shadow: var(--shadow); transform: scale(1.015); margin: 6px 0; }
.act.is-next .act-main { min-height: 84px; padding-top: 16px; padding-bottom: 16px; position: relative; }
.act.is-next .act-title { font-size: 20px; font-family: var(--f2); letter-spacing: -.02em; }
.act.is-next .act-time { font-size: 15px; }
.act.is-next .act-check, .act.is-next .act-move button { background: var(--gold-soft); }
.act-next-tag { position: absolute; top: -1px; left: 10px; font: 800 10.5px/1 var(--f); letter-spacing: .14em; text-transform: uppercase; background: var(--ink); color: var(--gold); padding: 4px 8px; border-radius: 0 0 8px 8px; }
.ln-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; background: rgba(255,255,255,.7); border: 2px dashed var(--ink); border-radius: 12px; font-weight: 700; font-size: 16px; }
.ln-note .ic { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.pill { cursor: pointer; }
.pill--done { background: var(--leaf); color: #fff; }
.pill--done .ic { width: 14px; height: 14px; }
.game-credit { margin-top: 16px; }
.game-credit a { color: var(--magenta); font-weight: 800; }
.talk-btn.waiting { background: var(--turq); }

/* Saved YouTube links */
.yt-add { display: flex; gap: 8px; }
.yt-add .input { flex: 1; }
.yt-add .btn { flex: none; }
.yt-head { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 8px; }
.yt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.yt-list li { display: flex; align-items: stretch; border: 2px solid var(--ink); border-radius: 14px; background: #fff; overflow: hidden; }
.yt-list li.now { background: var(--gold-soft); box-shadow: var(--shadow-sm); }
.yt-list li.locked { opacity: .55; }
.yt-play { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; background: none; text-align: left; color: var(--ink); }
.yt-play img, .yt-ph { width: 72px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 1.5px solid var(--ink); flex: none; background: var(--ink); display: grid; place-items: center; color: var(--cream); }
.yt-ph .ic { width: 18px; height: 18px; }
.yt-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.yt-t b { font: 800 14px/1.25 var(--f); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.yt-t small { font: 700 12px/1 var(--f); color: var(--ink-3); }
.yt-play > .ic { flex: none; width: 20px; height: 20px; }
.yt-del { border-left: 2px solid var(--ink); border-radius: 0; width: 46px; height: auto; }

/* Floating playlist */
.pl-fab { display: none; position: fixed; z-index: 56; right: 14px; bottom: calc(var(--tab-h) + var(--bar-h) + env(safe-area-inset-bottom) + 12px);
  align-items: center; gap: 8px; min-height: 48px; padding: 0 14px 0 16px; border: 2px solid var(--ink); border-radius: 999px; background: var(--turq); color: #fff;
  font: 800 14px/1 var(--f); box-shadow: var(--shadow); }
.pl-fab b { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 12.5px; }
body.in-app .pl-fab:not([hidden]), body.in-live .pl-fab:not([hidden]) { display: inline-flex; }
body.on-music:not(.in-live) .pl-fab, body.on-music:not(.in-live) .pl-panel { display: none !important; }
body.in-live .pl-fab { bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + 86px); }
.pl-panel { position: fixed; z-index: 57; right: 12px; left: 12px; bottom: calc(var(--tab-h) + var(--bar-h) + env(safe-area-inset-bottom) + 70px);
  max-height: min(60vh, 520px); overflow-y: auto; background: var(--cream); border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: 6px 6px 0 var(--ink); padding: 12px; animation: sheetUp .25s var(--ease-out) both; }
body.in-live .pl-panel { bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + 144px); }
.pl-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font: 800 17px/1 var(--f2); }
@media (min-width: 600px) { .pl-panel { left: auto; width: 420px; } }
@media (min-width: 1100px) {
  .pl-fab { bottom: calc(var(--bar-h) + 16px); }
  .pl-panel { bottom: calc(var(--bar-h) + 76px); }
}

/* Videoke */
.vk-top { display: grid; gap: 16px; }
@media (min-width: 760px) { .vk-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.vk-remote { background: var(--ink); color: var(--cream); }
.vk-display { background: #0d0b09; border: 2px solid #3a332d; border-radius: 14px; padding: 12px; text-align: center; }
.vk-code { display: flex; justify-content: center; gap: 6px; }
.vk-code span { width: 44px; height: 56px; border-radius: 8px; background: #1f1a15; border: 2px solid #3a332d; display: grid; place-items: center; font: 800 30px/1 var(--f2); color: var(--gold); font-variant-numeric: tabular-nums; }
.vk-title { margin-top: 10px; min-height: 40px; font: 800 15px/1.25 var(--f); color: var(--cream); }
.vk-title small { display: block; font-weight: 700; opacity: .7; font-size: 13px; }
.vk-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.vk-keys button { min-height: 56px; border-radius: 14px; border: 2px solid #3a332d; background: #2a241e; color: var(--cream); font: 800 24px/1 var(--f2); box-shadow: 0 3px 0 #000; }
.vk-keys button:active { transform: translateY(2px); box-shadow: none; }
.vk-keys .vk-k-clr { font-size: 15px; background: #3a332d; }
.vk-keys .vk-k-res { font-size: 15px; background: var(--magenta); border-color: var(--magenta); color: #fff; }
.vk-keys .vk-k-res:disabled { opacity: .4; }
.vk-queue h3 small { font-size: 14px; }
.vk-now { display: flex; gap: 10px; align-items: center; margin-top: 10px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--gold-soft); }
.vk-now .ic { color: var(--magenta); }
.vk-now b, .vk-q b, .vk-list b { display: block; font: 800 15px/1.25 var(--f); }
.vk-now small, .vk-q small, .vk-list small { display: block; font: 700 12.5px/1.3 var(--f); color: var(--ink-3); }
.vk-q, .vk-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.vk-q li, .vk-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; }
.vk-q li > div, .vk-list li > div { flex: 1; min-width: 0; }
.vk-qn { width: 26px; height: 26px; border-radius: 50%; background: var(--cream); border: 1.5px solid var(--ink); display: grid; place-items: center; font: 800 12px/1 var(--f); flex: none; }
.vk-c { flex: none; min-width: 64px; padding: 6px 8px; border-radius: 8px; background: var(--ink); color: var(--gold); font: 800 15px/1 var(--f2); text-align: center; font-variant-numeric: tabular-nums; }
.vk-search { display: flex; gap: 12px; align-items: center; }
.vk-search .input { flex: 1; }
.admin-list .vk-c { min-width: 58px; font-size: 13px; }
.admin-list b small { font-weight: 700; }
/* TV screen */
.vk-stage { position: fixed; inset: 0; z-index: 58; background: #000; color: #fff; display: grid; grid-template-rows: auto 1fr; grid-template-columns: 1fr; }
.vk-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #111; flex-wrap: wrap; border-bottom: 4px solid var(--gold); }
.vk-exit { color: #fff; border-color: #fff; }
.vk-nowbar { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 10px; }
.vk-nowbar b { display: block; font: 800 17px/1.2 var(--f2); }
.vk-nowbar small { display: block; font: 700 13px/1.3 var(--f); opacity: .8; }
.vk-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vk-fs { color: #fff; border-color: #fff; }
.vk-player { grid-row: 2; grid-column: 1; position: relative; min-height: 0; }
.vk-player iframe, .vk-player > div { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Queue on the left: separate boxes, no panel behind. Stops at 3/4 of the screen so lyrics stay visible. */
.vk-side { grid-row: 2; grid-column: 1; align-self: start; justify-self: start; z-index: 2; list-style: none; margin: 0; padding: 14px;
  display: flex; flex-direction: column; gap: 8px; max-height: 75%; overflow: hidden; pointer-events: none; width: min(300px, 42vw); }
.vk-box { display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 7px; background: #FFF6E5; color: var(--ink); border: 3px solid var(--ink);
  border-radius: 16px; box-shadow: 4px 4px 0 rgba(0,0,0,.55); animation: vkBoxIn .45s var(--ease-out) both; animation-delay: calc(var(--i) * 70ms); flex: none; }
.vk-box .vk-av { flex: none; display: grid; }
.vk-box .vk-av svg { display: block; }
.vk-bt { min-width: 0; display: grid; }
.vk-bt small { font: 800 10.5px/1 var(--f); letter-spacing: .12em; text-transform: uppercase; color: var(--chili); }
.vk-bt b { font: 800 16px/1.15 var(--f2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vk-bt em { font: 700 12.5px/1.2 var(--f); font-style: normal; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vk-box.now { background: var(--gold); padding: 9px 14px 9px 9px; transform-origin: left center; }
.vk-box.now .vk-bt small { color: var(--ink); }
.vk-box.now .vk-bt b { font-size: 20px; }
.vk-box.now .vk-av { animation: vkBob 1.2s ease-in-out infinite; }
.vk-box.vk-more { justify-content: center; font: 800 13px/1 var(--f); padding: 8px 12px; background: var(--ink); color: #fff; border-color: #fff; }
@keyframes vkBoxIn { from { opacity: 0; transform: translateX(-40px) scale(.9); } }
@keyframes vkBob { 50% { transform: translateY(-4px) rotate(-5deg); } }
@media (max-width: 599px) { .vk-side { width: min(220px, 56vw); padding: 10px; gap: 6px; } .vk-box .vk-av svg { width: 32px; height: 32px; } .vk-box.now .vk-av svg { width: 42px; height: 42px; } .vk-bt b { font-size: 14px; } .vk-box.now .vk-bt b { font-size: 16px; } }

/* "Susunod na kakanta!" intro */
.vk-intro { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; overflow: hidden; background: var(--magenta); animation: vkIn .35s var(--ease-out) both; }
.vk-intro.out { animation: vkOut .45s ease-in both; }
.vki-rays { position: absolute; left: 50%; top: 50%; width: 260vmax; height: 260vmax; margin: -130vmax 0 0 -130vmax;
  background: repeating-conic-gradient(var(--gold) 0deg 9deg, transparent 9deg 22.5deg); opacity: .5; animation: vkSpin 14s linear infinite; }
.vki-conf i { position: absolute; top: -6%; left: calc(var(--x) * 1%); width: 14px; height: 22px; background: var(--c); border: 2px solid var(--ink);
  transform: rotate(var(--r)); animation: vkFall 2.6s linear var(--d) infinite; }
.vki-card { position: relative; text-align: center; padding: clamp(16px, 3vmin, 26px) clamp(18px, 4vmin, 34px) clamp(18px, 3.4vmin, 30px); background: #FFF6E5; color: var(--ink); border: 5px solid var(--ink); border-radius: 30px;
  box-shadow: 12px 12px 0 var(--ink); max-width: min(680px, 92vw); animation: vkCardIn .6s cubic-bezier(.34,1.56,.64,1) .1s both; }
.vki-tag { display: inline-block; background: var(--ink); color: var(--gold); font: 800 clamp(13px, 2vw, 18px)/1 var(--f); letter-spacing: .16em; text-transform: uppercase;
  padding: 10px 18px; border-radius: 99px; transform: rotate(-3deg); animation: vkWiggle 1.4s ease-in-out infinite; }
.vki-av { margin: 12px auto 2px; width: clamp(84px, 22vmin, 190px); animation: vkDrop .7s cubic-bezier(.34,1.56,.64,1) .35s both, vkBob 1s ease-in-out 1.1s infinite; }
.vki-av svg { width: 100%; height: auto; display: block; }
.vki-name { font: 800 clamp(36px, min(9vw, 12vh), 104px)/1 var(--f2); color: var(--chili); text-shadow: 4px 4px 0 var(--ink); -webkit-text-stroke: 2px var(--ink); margin: 6px 0 12px; word-break: break-word; }
.vki-name span { display: inline-block; animation: vkLetter .5s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(.55s + var(--i) * 55ms); }
.vki-song { font: 800 clamp(17px, 2.6vw, 26px)/1.3 var(--f); display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.vki-song small { font-weight: 700; color: var(--ink-3); }
.vki-count { margin: 16px auto 0; min-width: clamp(64px, 13vmin, 96px); height: clamp(64px, 13vmin, 96px); padding: 0 18px; display: inline-grid; place-items: center; border-radius: 99px; background: var(--turq); color: #fff;
  border: 4px solid var(--ink); font: 800 clamp(38px, 8vmin, 58px)/1 var(--f2); box-shadow: 5px 5px 0 var(--ink); opacity: .25; }
.vki-count.pop { opacity: 1; animation: vkPop .5s cubic-bezier(.34,1.56,.64,1) both; }
.vki-count.go { background: var(--chili); font-size: clamp(34px, 6vw, 54px); }
@keyframes vkIn { from { opacity: 0; } }
@keyframes vkOut { to { opacity: 0; transform: scale(1.08); } }
@keyframes vkSpin { to { transform: rotate(360deg); } }
@keyframes vkFall { to { transform: translateY(115vh) rotate(calc(var(--r) + 540deg)); } }
@keyframes vkCardIn { from { opacity: 0; transform: scale(.4) rotate(-8deg); } }
@keyframes vkDrop { from { opacity: 0; transform: translateY(-120px) scale(.5); } }
@keyframes vkLetter { from { opacity: 0; transform: translateY(40px) scale(.3) rotate(12deg); } }
@keyframes vkWiggle { 50% { transform: rotate(3deg) scale(1.05); } }
@keyframes vkPop { from { transform: scale(1.5); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .vki-rays, .vki-conf i, .vki-av, .vki-tag, .vk-box.now .vk-av { animation: none !important; } }

/* Host library: search + dropdowns, 3 columns on tablet/PC */
.vk-search { flex-wrap: wrap; }
.vk-find { position: relative; flex: 1 1 220px; display: flex; }
.vk-find .input { flex: 1; padding-right: 40px; }
.vk-find-x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--cream); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.vk-find-x .ic { width: 14px; height: 14px; }
.vk-art-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; max-width: 230px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); font: 800 14px/1 var(--f); cursor: pointer; }
.vk-art-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vk-art-btn .ic { width: 16px; height: 16px; flex: none; }
.vk-art-btn.on { background: var(--gold); box-shadow: 2px 2px 0 var(--ink); }
.vk-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vk-tool { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; max-width: 230px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); font: 800 14px/1 var(--f); cursor: pointer; }
.vk-tool span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vk-tool .ic { width: 18px; height: 18px; flex: none; }
.vk-tool--ic { width: 44px; padding: 0; justify-content: center; }
.vk-tool.on { background: var(--gold); box-shadow: 2px 2px 0 var(--ink); }
.vk-scoretg { margin: 0 0 0 auto; }
.ml-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin: 8px 0 10px; }
.adm-chk { flex: none; width: 18px; height: 18px; accent-color: var(--magenta); margin: 0; }
.adm-sel { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; padding: 8px 10px; border-radius: 12px; background: var(--magenta-soft); border: 2px solid var(--ink); }
.adm-sel b { font: 800 14px/1 var(--f); margin-right: auto; }
.vk-letters { display: flex; gap: 6px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
@media (min-width: 900px) { .vk-letters { flex-wrap: wrap; overflow: visible; } }
.vk-letters button { flex: none; width: 36px; height: 36px; border-radius: 10px; border: 2px solid var(--ink); background: #fff; color: var(--ink); font: 800 14px/1 var(--f); cursor: pointer; padding: 0; }
.vk-letters button.on { background: var(--magenta); color: #fff; box-shadow: 2px 2px 0 var(--ink); }
.vk-fbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding: 8px 10px; background: var(--cream); border: 2px dashed var(--ink); border-radius: 12px; }
.vk-fcount { font: 700 14px/1 var(--f); }
.vk-tag { padding: 5px 10px; border-radius: 99px; background: var(--ink); color: #fff; font: 800 12.5px/1 var(--f); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vk-clear { margin-left: auto; min-height: 34px; }
.art-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; max-height: 55vh; overflow-y: auto; }
.art-list button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; text-align: left; }
.art-list button b { font: 800 15px/1.2 var(--f); }
.art-list button small { font: 700 12.5px/1 var(--f); color: var(--ink-3); flex: none; }
.art-list button.on { background: var(--gold); }
@media (min-width: 600px) { .vk-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }
.vk-list li { padding: 6px 8px; gap: 8px; }
.vk-list .vk-c { min-width: 48px; font-size: 12.5px; padding: 5px 5px; }
.vk-list b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vk-list small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vk-add { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); background: var(--gold); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; box-shadow: 2px 2px 0 var(--ink); }
.vk-add .ic { width: 16px; height: 16px; }
.vk-add:active { transform: translate(2px, 2px); box-shadow: none; }

/* Admin library: plain compact rows, 4 columns on tablet/PC */
.adm-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.adm-count { font: 800 13px/1 var(--f); padding: 6px 10px; border-radius: 99px; background: var(--cream); border: 1.5px solid var(--ink); font-variant-numeric: tabular-nums; }
.adm-count.full { background: var(--chili); color: #fff; }
.adm-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; column-gap: 18px; }
@media (min-width: 600px) { .adm-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .adm-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.adm-list li { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 3px 0; border-bottom: 1px solid rgba(30,26,22,.1); }
.adm-list li.dup .adm-c { background: var(--chili); color: #fff; }
.adm-c { flex: none; font: 800 11.5px/1 var(--f); padding: 3px 5px; border-radius: 5px; background: var(--ink); color: var(--gold); font-variant-numeric: tabular-nums; }
.adm-t { flex: 1; min-width: 0; display: grid; }
.adm-t b, .adm-t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-t b { font: 800 13px/1.25 var(--f); }
.adm-t small { font: 600 11.5px/1.2 var(--f); color: var(--ink-3); }
.adm-ic { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border: 0; background: none; color: var(--ink-3); border-radius: 6px; cursor: pointer; padding: 0; }
.adm-ic .ic { width: 15px; height: 15px; }
.adm-ic:hover { background: var(--cream); color: var(--ink); }
.adm-del:hover { color: var(--chili); }
.adm-ic:disabled { opacity: .35; cursor: default; }

/* TV queue: after the two boxes, plain fading text */
.vk-tx { flex: none; padding: 1px 6px; font: 700 14px/1.3 var(--f); color: #fff; opacity: var(--o, .6); text-shadow: 0 1px 3px #000, 0 0 8px rgba(0,0,0,.8);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: vkBoxIn .45s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
.vk-tx span { display: inline-block; min-width: 22px; font-weight: 800; color: var(--gold); }
.vk-tx b { font-weight: 800; }
.vk-tx em { font-style: normal; opacity: .85; }
.vk-tx:nth-child(3) { margin-top: 4px; }
/* QR code */
.qr-box { display: grid; place-items: center; min-height: 240px; margin-top: 14px; }
.qr-img { width: min(300px, 78vw); height: auto; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); image-rendering: pixelated; }
.qr-note { text-align: center; margin-top: 14px; }
.qr-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
/* QR on the right of the video: guests scan it to add songs. Stays in the top 3/4 (lyrics are below). */
.vk-qr { grid-row: 2; grid-column: 1; align-self: start; justify-self: end; z-index: 2; margin: clamp(14px, 10vh, 110px) 16px 0 0; max-height: 72%;
  padding: 12px 12px 10px; background: #fff; border: 4px solid var(--ink); border-radius: 18px; box-shadow: 6px 6px 0 rgba(0,0,0,.6);
  text-align: center; pointer-events: none; width: clamp(130px, 19vmin, 230px); animation: vkBoxIn .5s var(--ease-out) both; }
.vk-qr canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.vk-qr b { display: block; margin-top: 8px; font: 800 clamp(14px, 2.2vmin, 19px)/1.1 var(--f2); color: var(--chili); }
.vk-qr small { display: block; margin-top: 3px; font: 800 clamp(10px, 1.5vmin, 13px)/1.2 var(--f); color: var(--ink); }
@media (max-width: 599px) { .vk-qr { width: 104px; padding: 7px; margin: 10px 10px 0 0; } .vk-qr b { font-size: 12px; } .vk-qr small { display: none; } }

/* Card: own background */
.own-bg { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.own-sw { background-size: cover; background-position: center; }
.own-sw span { display: none; }
.own-up { margin-top: 8px; }
.own-bg label.btn, .own-up { cursor: pointer; }

/* Header remote button */
.remote-btn .ic { width: 16px; height: 16px; }
@media (max-width: 599px) { .remote-btn span { display: none; } .remote-btn { padding: 0 10px; } }
/* Singer selfie + camera */
.vk-ph { display: block; border-radius: 50%; object-fit: cover; border: 3px solid var(--ink); background: #fff; flex: none; }
.cam-wrap { position: fixed; inset: 0; z-index: 300; background: rgba(30,26,22,.72); display: grid; place-items: center; padding: 16px; }
.cam { width: min(420px, 100%); background: var(--cream); border: 3px solid var(--ink); border-radius: 22px; padding: 14px; box-shadow: 6px 6px 0 var(--ink); }
.cam-view { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #000; border: 3px solid var(--ink); }
.cam-view video, .cam-view img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-view video { transform: scaleX(-1); }
.cam-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: #fff; font: 700 15px/1.4 var(--f); }
.cam-btns { display: flex; gap: 10px; margin-top: 12px; }
.cam-btns .btn { flex: 1; justify-content: center; }

/* TV look: video fills the screen; flags, title, queue, QR and the singer sit on top of it */
.vk-stage { display: block; }
.vk-stage .vk-player { position: absolute; inset: 0; z-index: 1; }
.vk-stage .vk-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 6; background: transparent; border: 0; padding: 8px 12px;
  justify-content: space-between; align-items: flex-start; opacity: .4; transition: opacity .2s; pointer-events: none; }
.vk-stage .vk-bar > * { pointer-events: auto; }
.vk-stage .vk-bar:hover, .vk-stage .vk-bar:focus-within { opacity: 1; }
.vk-stage .vk-nowbar { visibility: hidden; flex: 1; }
.vk-stage .vk-exit, .vk-stage .vk-fs, .vk-stage .vk-btns .btn--ink { background: rgba(30,26,22,.7); color: #fff; border-color: #fff; }
.vk-flags { position: absolute; left: 0; z-index: 3; display: block; pointer-events: none; }
.vk-flags--top { top: 0; }
.vk-flags--bot { bottom: 0; transform: translateY(50%); }      /* only the top half shows: lyrics stay clear */
.vk-title { position: absolute; top: clamp(4px, 1.2vh, 14px); left: 50%; transform: translateX(-50%); z-index: 5; max-width: calc(100% - 320px);
  background: #FFF6E5; color: var(--ink); border: 4px solid var(--ink); border-radius: 18px; padding: 4px 24px 6px; text-align: center;
  box-shadow: 5px 5px 0 rgba(0,0,0,.45); pointer-events: none; }
.vk-title[hidden] { display: none; }
.vk-title b { display: block; font: 800 clamp(22px, 5.4vmin, 60px)/1.08 var(--f2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vk-title small { display: block; margin-top: 2px; font: 800 clamp(11px, 1.7vmin, 18px)/1.2 var(--f); color: var(--ink-3); }
@media (max-width: 700px) { .vk-title { max-width: calc(100% - 140px); padding: 3px 12px 4px; } }
/* Queue (left) and QR (right) start at the same line, just under the top flags */
.vk-stage .vk-side { position: absolute; top: calc(var(--flags-h, 80px) + 4px); left: 0; z-index: 4; max-height: calc(78% - var(--flags-h, 80px)); }
.vk-stage .vk-qr { position: absolute; top: calc(var(--flags-h, 80px) + 18px); right: 16px; margin: 0; z-index: 4; }
.vk-intro, .vk-score { z-index: 8; }

/* Singing stickman, bottom-left: the singer's photo or avatar is the head */
.vk-singer { position: absolute; left: clamp(8px, 2vw, 40px); bottom: clamp(6px, 2.2vh, 26px); z-index: 4; width: clamp(90px, 15vmin, 200px); pointer-events: none; }
.vk-singer[hidden] { display: none; }
.vk-sm-wrap { position: relative; transform-origin: 50% 100%; animation: vkSway 1.1s ease-in-out infinite alternate; }
.vk-sm { display: block; width: 100%; height: auto; overflow: visible; }
/* head = 60×60 of the 120×200 body; its bottom sits on the neck (y 74), overlapping a little */
.vk-sm-head { position: absolute; left: 25%; top: 9%; width: 50%; aspect-ratio: 1; transform-origin: 50% 100%; animation: vkHead .55s ease-in-out infinite alternate; }
.vk-sm-head > svg, .vk-sm-head > img { display: block; width: 100% !important; height: 100% !important; border-radius: 50%; }
.vk-sm-wave { transform-box: view-box; transform-origin: 60px 94px; animation: vkWave .55s ease-in-out infinite alternate; }
.vk-sm-l1 { transform-box: view-box; transform-origin: 60px 138px; animation: vkStep 1.1s ease-in-out infinite alternate; }
.vk-notes { position: absolute; left: 68%; top: 6%; width: 70%; height: 70%; }
.vk-notes i { position: absolute; left: 0; bottom: 30%; font: 800 clamp(18px, 3.2vmin, 36px)/1 var(--f2); font-style: normal; color: var(--gold);
  text-shadow: 2px 2px 0 var(--ink); opacity: 0; animation: vkNote 2.5s linear infinite; }
.vk-notes i:nth-child(2) { animation-delay: .5s; color: var(--magenta); }
.vk-notes i:nth-child(3) { animation-delay: 1s; color: var(--turq); }
.vk-notes i:nth-child(4) { animation-delay: 1.5s; color: #FFF6E5; }
.vk-notes i:nth-child(5) { animation-delay: 2s; color: var(--chili); }
@keyframes vkSway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@keyframes vkHead { from { transform: translateY(0) rotate(-6deg); } to { transform: translateY(-3px) rotate(6deg); } }
@keyframes vkWave { from { transform: rotate(-16deg); } to { transform: rotate(14deg); } }
@keyframes vkStep { from { transform: rotate(-6deg); } to { transform: rotate(8deg); } }
@keyframes vkNote { 0% { opacity: 0; transform: translate(0, 0) rotate(-12deg) scale(.6); } 12% { opacity: 1; } 100% { opacity: 0; transform: translate(46px, -130px) rotate(16deg) scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .vk-sm-wrap, .vk-sm-head, .vk-sm-wave, .vk-sm-l1 { animation: none; } .vk-notes i { animation-duration: 6s; } }

/* Card shown full screen on the TV */
.card-tv { position: fixed; inset: 0; z-index: 62; background: #000; display: grid; place-items: center; }
.card-tv[hidden] { display: none; }
.card-tv img { width: 100%; height: 100%; object-fit: contain; display: block; }
.card-tv-bar { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; opacity: .25; transition: opacity .2s; }
.card-tv:hover .card-tv-bar, .card-tv-bar:focus-within { opacity: 1; }
.card-canvas--tv { max-width: 640px; }
/* Scoreboard */
.sb-stage { position: fixed; inset: 0; z-index: 60; background: var(--ink); color: #fff; display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.sb-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 4px solid var(--gold); flex-wrap: wrap; }
.sb-light { color: #fff; border-color: #fff; }
.sb-title { flex: 1; min-width: 160px; text-align: center; font: 800 clamp(20px, 3.4vmin, 34px)/1.1 var(--f2); color: var(--gold); }
.sb-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.sb-grid { display: grid; gap: clamp(10px, 2vmin, 20px); padding: clamp(18px, 3vmin, 30px) clamp(10px, 2.5vmin, 26px); grid-template-columns: repeat(var(--n), minmax(0, 1fr)); grid-auto-rows: minmax(150px, 1fr); min-height: 0; overflow-y: auto; }
@media (max-width: 899px) { .sb-grid { grid-template-columns: repeat(min(var(--n), 2), minmax(0, 1fr)); overflow-y: auto; } }
.sb-tile { position: relative; display: grid; grid-template-rows: auto 1fr auto; align-items: center; text-align: center; background: var(--c); color: #fff; border: 5px solid #fff; border-radius: 26px; padding: clamp(10px, 2vmin, 22px); min-height: 0; transition: transform .2s; }
.sb-tile.lead { transform: scale(1.03); box-shadow: 0 0 0 6px var(--gold), 10px 10px 0 rgba(0,0,0,.5); }
.sb-tile.lead::before { content: "👑"; position: absolute; top: -26px; left: 50%; transform: translateX(-50%) rotate(-8deg); font-size: clamp(34px, 6vmin, 56px); }
.sb-name { font: 800 clamp(20px, 4vmin, 42px)/1.1 var(--f2); text-shadow: 3px 3px 0 rgba(0,0,0,.35); word-break: break-word; }
.sb-score { font: 800 clamp(56px, 16vmin, 220px)/1 var(--f2); font-variant-numeric: tabular-nums; text-shadow: 5px 5px 0 rgba(0,0,0,.35); }
.sb-score.pop { animation: sbPop .35s cubic-bezier(.34,1.56,.64,1); }
.sb-score.down { animation: sbDown .3s ease-out; }
@keyframes sbPop { from { transform: scale(1.45); } }
@keyframes sbDown { 30% { transform: translateY(8px) scale(.9); } }
.sb-btns { display: flex; gap: 12px; justify-content: center; }
.sb-btns button { width: clamp(52px, 9vmin, 84px); height: clamp(52px, 9vmin, 84px); border-radius: 50%; border: 4px solid var(--ink); background: #fff; color: var(--ink); font: 800 clamp(28px, 5vmin, 46px)/1 var(--f2); cursor: pointer; box-shadow: 4px 4px 0 rgba(0,0,0,.4); }
.sb-btns button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 rgba(0,0,0,.4); }
.sb-key { position: absolute; top: 10px; left: 12px; font: 800 12px/1 var(--f); padding: 4px 7px; border-radius: 6px; background: rgba(0,0,0,.28); }
@media (hover: none) { .sb-key { display: none; } }
.sb-win { position: fixed; inset: 0; z-index: 61; display: grid; place-items: center; overflow: hidden; background: var(--magenta); cursor: pointer; }
.sb-win[hidden] { display: none; }
.sb-win-card { position: relative; text-align: center; padding: 26px 40px 22px; background: #FFF6E5; color: var(--ink); border: 5px solid var(--ink); border-radius: 30px; box-shadow: 12px 12px 0 var(--ink); animation: vkCardIn .6s cubic-bezier(.34,1.56,.64,1) both; max-width: 92vw; }
.sb-win-name { font: 800 clamp(40px, 9vw, 110px)/1.05 var(--f2); margin: 14px 0 6px; -webkit-text-stroke: 2px var(--ink); text-shadow: 4px 4px 0 var(--ink); word-break: break-word; }
.sb-win-score { font: 800 clamp(20px, 3vw, 32px)/1.2 var(--f); }
.sb-win-card small { display: block; margin-top: 10px; color: var(--ink-3); font: 700 13px/1 var(--f); }
.sb-setup { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.sb-setup li { display: flex; gap: 8px; align-items: center; }
.sb-setup .input { flex: 1; }
.sb-dot { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--ink); cursor: pointer; }
body.in-sb .mbar, body.in-sb .pl-fab, body.in-sb .pl-panel { display: none !important; }
/* Videoke tab: compact queue */
.vk-qhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.vk-nowtag { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 10px; border-radius: 99px; background: var(--gold); border: 2px solid var(--ink); font: 700 12.5px/1.2 var(--f); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vk-nowtag .ic { width: 14px; height: 14px; flex: none; }
.vk-q--slim { gap: 4px; margin-top: 8px; }
@media (min-width: 760px) { .vk-q--slim { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; } }
.vk-q--slim li { padding: 4px 6px; gap: 8px; border-width: 1.5px; border-radius: 10px; }
.vk-q--slim .vk-qn { width: 20px; height: 20px; font-size: 11px; }
.vk-q--slim li > div { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.vk-q--slim b { font-size: 13.5px; flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vk-q--slim small { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vk-q--slim .admin-act .icon-btn { width: 26px; height: 26px; }
.vk-q--slim .vk-qav svg, .vk-q--slim .vk-qav img { width: 26px; height: 26px; }

/* Host reserve sheet: avatar / photo picker */
.rv-avs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.rv-avs button { width: 52px; height: 52px; padding: 2px; border-radius: 50%; border: 2.5px solid transparent; background: none; cursor: pointer; display: grid; place-items: center; }
.rv-avs button.on { border-color: var(--ink); background: var(--gold); }
.rv-avs .rv-cam { background: var(--turq-soft); border-color: var(--ink); font-size: 22px; }
.rv-avs .rv-cam.on { background: var(--gold); }

/* Camera: face oval + where the mouth goes */
.cam-guide { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cam-tip { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(30,26,22,.72); color: #fff; font: 700 12.5px/1.3 var(--f); text-align: center; }
.cam-tip[hidden] { display: none; }

/* Mouths: picked on the camera; only the "jaw" part moves (a mustache stays put) */
.vk-sm-head { overflow: visible; }
.vk-mouth, .cam-mouth { position: absolute; left: 50%; top: 72%; width: 34%; transform: translate(-50%, -50%); pointer-events: none; }
.vk-mouth svg, .cam-mouth svg { display: block; width: 100%; height: auto; overflow: visible; }
.vk-mouth .jaw, .cam-mouth.talk .jaw { transform-box: fill-box; transform-origin: 50% 25%; animation: vkJaw .32s ease-in-out infinite alternate; }
@keyframes vkJaw { 0% { transform: scaleY(.25); } 60% { transform: scaleY(1); } 100% { transform: scaleY(.55); } }
.cam-mouth { width: 30%; opacity: .9; }
.cam-mouths { display: flex; gap: 6px; margin-top: 10px; justify-content: center; flex-wrap: wrap; }
.cam-mouths button { width: 62px; padding: 6px 4px 4px; border: 2px solid transparent; border-radius: 12px; background: #fff; cursor: pointer; display: grid; justify-items: center; gap: 3px; }
.cam-mouths button.on { border-color: var(--ink); background: var(--gold); }
.cam-mouths svg { width: 40px; height: 24px; overflow: visible; }
.cam-mouths small { font: 800 10.5px/1 var(--f); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .vk-mouth .jaw, .cam-mouth.talk .jaw { animation-duration: 1s; } }
/* Game tools row (Games tab) */
.tools-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 4px 0 14px; }
.tools-row button { display: grid; justify-items: center; gap: 6px; padding: 10px 4px 8px; border: 2.5px solid var(--ink); border-radius: 16px; background: #fff; color: var(--ink); font: 800 13px/1.1 var(--f); cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.tools-row button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.tr-ic { width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--ink); display: grid; place-items: center; font-size: 22px; color: var(--ink); }
.tr-ic .ic { width: 22px; height: 22px; }
@media (max-width: 420px) { .tools-row { gap: 5px; } .tools-row button { font-size: 11.5px; padding: 8px 2px 6px; } .tr-ic { width: 34px; height: 34px; font-size: 19px; } }

/* Big TV view for raffle / dice / colours */
.tl-body { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(12px, 3vmin, 30px); padding: clamp(12px, 3vmin, 30px); min-height: 0; overflow: hidden; }
.tl-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }
.tl-go { font-size: clamp(18px, 3vmin, 30px) !important; min-height: clamp(52px, 8vmin, 80px); padding: 0 clamp(22px, 4vmin, 44px) !important; }
.tl-note { font: 700 clamp(13px, 1.8vmin, 18px)/1 var(--f); color: rgba(255,255,255,.75); }
.tl-empty { font: 700 clamp(16px, 2.6vmin, 26px)/1.4 var(--f); text-align: center; max-width: 640px; color: #fff; }
.rf-wheel-wrap { position: relative; width: min(64vmin, 92vw); aspect-ratio: 1; }
.rf-wheel-wrap canvas { width: 100%; height: 100%; display: block; }
.rf-pointer { position: absolute; left: 50%; top: -3%; width: 0; height: 0; transform: translateX(-50%); border-left: clamp(14px, 2.6vmin, 26px) solid transparent; border-right: clamp(14px, 2.6vmin, 26px) solid transparent; border-top: clamp(26px, 4.6vmin, 46px) solid #FFF6E5; filter: drop-shadow(0 3px 0 #1E1A16); }
.rf-shuffle { min-width: min(80vw, 900px); padding: clamp(18px, 4vmin, 40px) 24px; text-align: center; background: #FFF6E5; color: var(--ink); border: 5px solid #fff; border-radius: 26px; font: 800 clamp(40px, 10vmin, 120px)/1.05 var(--f2); word-break: break-word; box-shadow: 10px 10px 0 rgba(0,0,0,.4); }
.rf-shuffle.pop { animation: sbPop .18s ease-out; }
.dice-row { display: flex; gap: clamp(12px, 3vmin, 34px); flex-wrap: wrap; justify-content: center; }
.die { width: clamp(80px, 18vmin, 190px); aspect-ratio: 1; background: #FFF6E5; border: 5px solid #fff; border-radius: 22%; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 12%; gap: 4%; box-shadow: 8px 8px 0 rgba(0,0,0,.4); }
.die i { border-radius: 50%; }
.die i.on { background: var(--ink); }
.die--color { display: grid; place-items: center; padding: 6%; font: 800 clamp(14px, 2.6vmin, 28px)/1 var(--f2); }
.dice-row.rolling .die { animation: dieShake .14s linear infinite alternate; }
@keyframes dieShake { from { transform: rotate(-12deg) translateY(-6px); } to { transform: rotate(12deg) translateY(4px); } }
.dice-sum { font: 800 clamp(26px, 6vmin, 64px)/1.1 var(--f2); color: var(--gold); text-align: center; min-height: 1.1em; }
.cl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cl-chips button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 2px solid var(--ink); border-radius: 99px; background: #fff; font: 800 13px/1 var(--f); cursor: pointer; opacity: .5; }
.cl-chips button.on { opacity: 1; background: var(--gold); }
.cl-chips span { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--ink); }
.cl-big { width: min(80vw, 900px); height: min(48vh, 520px); border-radius: 30px; border: 6px solid #fff; background: #2C2C2A; color: #fff; display: grid; place-items: center; box-shadow: 10px 10px 0 rgba(0,0,0,.4); }
.cl-big span { font: 800 clamp(48px, 12vmin, 150px)/1 var(--f2); text-shadow: 3px 3px 0 rgba(0,0,0,.25); }
.cl-big.pop { animation: sbPop .4s cubic-bezier(.34,1.56,.64,1); }
.cl-mini { display: flex; gap: 8px; }
.cl-mini span { width: clamp(18px, 2.6vmin, 28px); height: clamp(18px, 2.6vmin, 28px); border-radius: 50%; border: 2px solid #fff; }

/* 3D dice: six faces around the centre of a cube */
.dice-row { perspective: 1000px; align-items: center; }
/* a slight tilt so the top and a side always show: it reads as a cube even at rest (the result is the big front face) */
.die3d-wrap { --s: clamp(84px, 18vmin, 190px); width: var(--s); height: var(--s); margin: calc(var(--s) * .18); transform-style: preserve-3d; transform: rotateX(-22deg) rotateY(28deg); }
.dice-row .die3d-wrap:nth-child(even) { transform: rotateX(-22deg) rotateY(-26deg); }
.die3d { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.df { position: absolute; inset: 0; display: grid; place-items: center; background: #FFF6E5; border: 4px solid #1E1A16; border-radius: 16%; backface-visibility: hidden; }
.df--front { transform: translateZ(calc(var(--s) / 2)); }
.df--back { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.df--right { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); background: #F3E6CC; }
.df--left { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); background: #F3E6CC; }
.df--top { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); background: #FFFDF6; }
.df--bottom { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); background: #E9D9BC; }
.df .pips { width: 74%; height: 74%; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); gap: 7%; }
.df .pips i { border-radius: 50%; }
.df .pips i.on { background: #1E1A16; }
.df--color span { font: 800 clamp(13px, 2.4vmin, 26px)/1 var(--f2); }

/* Henyo / Charades word card */
.hy-card { position: relative; width: min(88vw, 1000px); padding: clamp(20px, 4vmin, 44px); background: #FFF6E5; color: var(--ink); border: 6px solid #fff; border-radius: 30px; text-align: center; box-shadow: 10px 10px 0 rgba(0,0,0,.4); }
.hy-cat { display: inline-block; padding: 8px 24px; border-radius: 99px; background: var(--magenta); color: #fff; border: 3px solid var(--ink); font: 800 clamp(18px, 3.4vmin, 38px)/1.1 var(--f2); }
.hy-word { margin-top: clamp(14px, 3vmin, 30px); font: 800 clamp(42px, 11vmin, 140px)/1.05 var(--f2); word-break: break-word; min-height: 1.05em; }
.hy-word.pop { animation: sbPop .4s cubic-bezier(.34,1.56,.64,1); }
.hy-cover { display: none; position: absolute; left: 18px; right: 18px; bottom: 18px; top: 42%; border-radius: 20px; background: var(--ink); color: #fff; place-items: center; font: 800 clamp(16px, 2.6vmin, 28px)/1.2 var(--f); cursor: pointer; }
.hy-card.hid .hy-cover { display: grid; }
.cl-chips small { font-weight: 700; }

/* Dice: the face that landed in front pulses */
.df.win { animation: dieWin .7s ease-in-out 3; box-shadow: 0 0 0 6px var(--gold), 0 0 26px 6px rgba(246,178,27,.8); }
@keyframes dieWin { 50% { filter: brightness(1.18); box-shadow: 0 0 0 10px var(--gold), 0 0 40px 12px rgba(246,178,27,.95); } }

/* Host view / TV view switch */
.view-btn .ic { width: 16px; height: 16px; }
@media (max-width: 599px) { .view-btn span { display: none; } .view-btn { padding: 0 10px; } }
/* TV view: only what the audience needs — no setup, no controls, no app messages */
body.tv-mode #tabs button:not([data-tab="games"]):not([data-tab="videoke"]),
body.tv-mode .acct-btn, body.tv-mode .remote-btn, body.tv-mode .mbar, body.tv-mode .pl-fab, body.tv-mode .pl-panel,
body.tv-mode .toast, body.tv-mode .tools-row, body.tv-mode .game-filters { display: none !important; }
body.tv-mode .view-btn { opacity: .35; }
body.tv-mode .view-btn:hover, body.tv-mode .view-btn:focus-visible { opacity: 1; }
body.tv-mode #tabs { grid-template-columns: repeat(2, 1fr); }
body.tv-mode .head-event b { font-size: 1.15em; }

/* Videoke lobby on the TV: who's singing, the queue, and a big QR */
.tvl { display: grid; gap: clamp(16px, 3vw, 40px); align-items: start; }
@media (min-width: 760px) { .tvl:has(.tvl-qr) { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }   /* one column when there is no guest QR */
.tvl-title { font: 800 clamp(34px, 5vw, 64px)/1 var(--f2); }
.tvl-now { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 12px 16px; background: var(--gold); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 5px 5px 0 var(--ink); }
.tvl-now small { display: block; font: 800 12px/1 var(--f); letter-spacing: .1em; text-transform: uppercase; }
.tvl-now b { display: block; font: 800 clamp(22px, 2.6vw, 34px)/1.1 var(--f2); }
.tvl-now em { display: block; font: 700 clamp(14px, 1.6vw, 20px)/1.2 var(--f); font-style: normal; }
.tvl-h { margin-top: 22px; font: 800 clamp(20px, 2.2vw, 28px)/1 var(--f2); display: flex; align-items: center; gap: 10px; }
.tvl-h span { font: 800 14px/1 var(--f); padding: 5px 10px; border-radius: 99px; background: var(--ink); color: var(--gold); }
.tvl-q { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.tvl-q li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: #fff; border: 2.5px solid var(--ink); border-radius: 16px; }
.tvl-q .n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--cream); border: 2px solid var(--ink); display: grid; place-items: center; font: 800 14px/1 var(--f); }
.tvl-q li > div { min-width: 0; }
.tvl-q b { display: block; font: 800 clamp(16px, 1.8vw, 22px)/1.15 var(--f2); }
.tvl-q em { display: block; font: 700 clamp(13px, 1.4vw, 17px)/1.2 var(--f); font-style: normal; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tvl-more { margin-top: 8px; font: 800 15px/1 var(--f); color: var(--ink-3); }
.tvl-empty { margin-top: 12px; font: 700 clamp(16px, 1.8vw, 22px)/1.4 var(--f); color: var(--ink-3); }
.tvl-qr { position: sticky; top: 20px; text-align: center; background: #fff; border: 4px solid var(--ink); border-radius: 26px; padding: clamp(14px, 2vw, 24px); box-shadow: 8px 8px 0 var(--ink); }
.tvl-qr canvas { width: 100%; max-width: 420px; height: auto; display: block; margin: 0 auto; image-rendering: pixelated; }
.tvl-qr b { display: block; margin-top: 12px; font: 800 clamp(22px, 2.6vw, 34px)/1.1 var(--f2); color: var(--chili); }
.tvl-qr small { display: block; margin-top: 4px; font: 700 clamp(13px, 1.4vw, 18px)/1.3 var(--f); color: var(--ink-3); }
.vk-lock, .vk-free { display: flex; gap: 16px; align-items: flex-start; }
.vk-free { margin-top: 16px; background: #FFF6E5; }
.vk-free > .ic { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--gold); color: var(--ink); border: 2px solid var(--ink); }
/* queued count on the + button */
.vk-add.on { background: var(--leaf); color: #fff; }
.vk-cnt { font: 900 15px/1 var(--f); }
.vk-list li.queued b::after { content: ' ✓'; color: var(--leaf); }
/* locked songs: a faded peek behind the unlock card */
.vk-more { position: relative; margin-top: 10px; }
.vk-peek { opacity: .45; filter: blur(1.5px); pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(#000 0%, transparent 92%); mask-image: linear-gradient(#000 0%, transparent 92%); }
.vk-peek .vk-add { background: var(--gold-soft); color: var(--ink); }
.vk-more-card { position: absolute; inset: 0; margin: auto; height: fit-content; max-width: 420px; text-align: center;
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px 18px 20px; }
.vk-more-card > .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--gold); border: 2px solid var(--ink); }
.vk-more-card h3 { margin-top: 8px; }
.vk-more-card p { margin: 6px 0 14px; font-size: 14px; color: var(--ink-2); }
.vk-more { min-height: 320px; }
.vk-more .vk-peek { min-height: 320px; align-content: start; }
.vk-lock > .ic { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--magenta); color: #fff; border: 2px solid var(--ink); }

/* Floating game timer */
.gtimer { position: fixed; right: 14px; bottom: calc(var(--mbar-h, 84px) + 14px); z-index: 61; width: 210px; background: #FFF6E5; color: var(--ink); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); padding: 6px 8px 8px; touch-action: none; }
.gtimer[hidden] { display: none; }
.gt-head { display: flex; align-items: center; gap: 6px; cursor: grab; user-select: none; }
.gt-head b { flex: 1; font: 800 13px/1 var(--f); }
.gt-grip { font-size: 14px; color: var(--ink-3); letter-spacing: -2px; }
.gt-head button { width: 26px; height: 26px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; font: 800 16px/1 var(--f); color: var(--ink); padding: 0; }
.gt-head .ic { width: 15px; height: 15px; }
.gt-time { display: block; width: 100%; border: 0; background: none; cursor: pointer; text-align: center; font: 800 46px/1.05 var(--f2); color: var(--ink); font-variant-numeric: tabular-nums; padding: 2px 0 4px; }
.gt-btns { display: grid; grid-template-columns: 1fr 1.5fr 1fr .8fr; gap: 5px; }
.gt-btns button { min-height: 34px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; font: 800 13px/1 var(--f); cursor: pointer; color: var(--ink); }
.gt-btns .gt-play { background: var(--leaf); color: #fff; }
.gt-presets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 6px; }
.gt-presets button { min-height: 26px; padding: 0; border: 1.5px solid var(--ink); border-radius: 8px; background: #fff; font: 800 11.5px/1 var(--f); color: var(--ink); cursor: pointer; }
.gt-presets button.on { background: var(--gold); }
.gtimer.big .gt-presets button { min-height: 34px; font-size: 14px; }
.gtimer.warn { background: #FCE3DE; }
.gtimer.warn .gt-time { color: var(--chili); }
.gtimer.done { background: var(--chili); color: #fff; animation: gtFlash .5s steps(2) 6; }
.gtimer.done .gt-time, .gtimer.done .gt-head b, .gtimer.done .gt-head button { color: #fff; }
@keyframes gtFlash { 50% { background: var(--gold); } }
.gtimer.big { width: min(440px, 92vw); }
.gtimer.big .gt-time { font-size: clamp(70px, 14vmin, 140px); }
body.in-vk .gtimer, body.in-sb .gtimer { bottom: 14px; }

/* Guest link card + Brave tip */
.vk-q .vk-qav { flex: none; display: grid; }
.vk-room { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.vk-room-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--turq); color: #fff; border: 2px solid var(--ink); display: grid; place-items: center; flex: none; }
.vk-room-ic .ic { width: 22px; height: 22px; }
.vk-room-tx { flex: 1; min-width: 220px; }
.vk-room-tx p { margin-top: 4px; }
.vk-room-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.brave-tip { display: flex; gap: 8px; align-items: flex-start; }
.brave-tip .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--leaf); }
.brave-tip a { color: inherit; font-weight: 800; }
.note:has(> .ic:first-child) { display: flex; gap: 8px; align-items: flex-start; }
.note > .ic:first-child { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--leaf); }
.pro-dev { background: var(--magenta-soft); }
.pro-dev > .ic:first-child { color: var(--magenta); }
.vk-score { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; background: rgba(0,0,0,.78); }
.vk-score small { font: 800 18px/1 var(--f); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.vk-score b { font: 800 clamp(120px, 28vw, 260px)/1 var(--f2); color: #fff; font-variant-numeric: tabular-nums; }
.vk-score span { font: 800 clamp(28px, 5vw, 52px)/1 var(--f2); color: var(--magenta); }
body.in-vk .mbar, body.in-vk .pl-fab, body.in-vk .pl-panel { display: none !important; }

/* Invitation card designer */.card-layout { display: grid; gap: 20px; }
.card-preview-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.card-canvas { width: 100%; max-width: 420px; height: auto; border: 2px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow); background: #fff; }
.card-canvas--story { max-width: 320px; }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.theme-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.theme-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 14px 6px 6px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font: 800 13.5px/1 var(--f); }
.theme-chip.on { background: var(--gold); box-shadow: var(--shadow-sm); }
.theme-sw { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; }
.theme-sw span { width: 10px; height: 10px; border-radius: 50%; }
.more-themes { margin-top: 10px; }
.more-themes summary { cursor: pointer; font: 800 13px/1 var(--f); color: var(--ink-2); padding: 6px 0; }
@media (min-width: 900px) {
  .card-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .card-preview-wrap { position: sticky; top: 110px; }
}

/* Admin sound manager */
.admin-card { border-style: dashed; }
.admin-card h3 { display: flex; align-items: center; gap: 8px; }
.admin-card h3 .ic { color: var(--magenta); }
.admin-up { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.admin-up .seg-ctrl { margin-top: 0; }
.admin-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.admin-list li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; }
.admin-list b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.admin-n { width: 24px; height: 24px; border-radius: 50%; background: var(--cream); border: 1.5px solid var(--ink); display: grid; place-items: center; font: 800 12px/1 var(--f); flex: none; }
.admin-act { display: flex; flex: none; }
.admin-act .icon-btn { width: 32px; height: 32px; }
.admin-act .icon-btn:disabled { opacity: .25; }
.pill--pro { background: var(--gold); }
@media (max-width: 420px) { .admin-list li { flex-wrap: wrap; } .admin-list b { flex-basis: calc(100% - 40px); } .admin-act { margin-left: auto; } }

/* Mic permission help */
.mic-steps { margin: 10px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-weight: 700; }
.mic-steps li::marker { font-weight: 800; color: var(--magenta); }

/* In-app dialog */
.dlg-wrap { position: fixed; inset: 0; z-index: 80; background: rgba(30,26,22,.55); display: grid; place-items: center; padding: 20px; }
.dlg { width: min(420px, 100%); background: var(--cream); border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: 6px 6px 0 var(--ink); padding: 20px; animation: sheetUp .25s var(--ease-out) both; }
.dlg p { font: 800 18px/1.35 var(--f2); letter-spacing: -.01em; }
.dlg .input { margin-top: 14px; }
.dlg-actions { display: flex; gap: 10px; margin-top: 18px; }
.dlg-actions .btn { flex: 1; }
.type-strip { display: flex; gap: 8px; overflow-x: auto; padding: 14px 2px 6px; margin: 0 -2px; scrollbar-width: none; }
.type-strip::-webkit-scrollbar { display: none; }
.type-chip { flex: none; white-space: nowrap; min-height: 40px; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font: 800 14px/1 var(--f); }
.type-chip.on { background: var(--gold); box-shadow: var(--shadow-sm); }
.plan-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 18px 0 12px; }
.plan-head h2 { font-size: clamp(28px, 5vw, 40px); letter-spacing: -.04em; }
.plan-head .muted { margin-top: 4px; }
.act-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.act { display: flex; align-items: stretch; border: 2px solid var(--ink); border-left: 8px solid var(--k, var(--gold)); border-radius: 14px; background: #fff; overflow: hidden; }
.act-main { flex: 1; min-width: 0; display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 12px 10px; border: 0; background: none; text-align: left; min-height: 58px; }
.act-main:hover { background: var(--cream); }
.act-time { font: 800 13px/1.1 var(--f2); font-variant-numeric: tabular-nums; }
.act-title { font: 800 16px/1.25 var(--f); overflow-wrap: anywhere; }
.act-min { font: 800 12px/1 var(--f); color: var(--ink-3); white-space: nowrap; }
.act-game { width: 48px; flex: none; border: 0; border-left: 2px solid var(--ink); background: var(--gold-soft); display: grid; place-items: center; }
.act-move { display: flex; flex-direction: column; border-left: 2px solid var(--ink); }
.act-move button { flex: 1; width: 40px; border: 0; background: none; display: grid; place-items: center; }
.act-move button + button { border-top: 1.5px solid var(--ink); }
.act-move button:disabled { opacity: .25; }
.act-move .ic { width: 16px; height: 16px; }
.k-turq { --k: var(--turq); } .k-magenta { --k: var(--magenta); } .k-gold { --k: var(--gold); } .k-chili { --k: var(--chili); } .k-leaf { --k: var(--leaf); }
.ks-turq { --k-soft: var(--turq-soft); } .ks-magenta { --k-soft: var(--magenta-soft); } .ks-gold { --k-soft: var(--gold-soft); } .ks-chili { --k-soft: var(--chili-soft); } .ks-leaf { --k-soft: var(--leaf-soft); }
.plan-foot { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.min-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.min-row .chip { min-height: 38px; padding: 6px 12px; }
.min-row .input { width: 92px; min-height: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 2px solid var(--ink);
  border-radius: 999px; background: #fff; font: 800 14px/1 var(--f); color: var(--ink); cursor: pointer; transition: background .2s, transform .15s;
}
.chip.on { background: var(--gold); box-shadow: var(--shadow-sm); }
.chip:active { transform: translate(1px, 1px); }
.acct-btn.is-pro { background: var(--gold); }
.seg-ctrl--light { border-color: var(--ink); }
.seg-ctrl--light button { color: var(--ink); }
.pad-name { font: 800 14px/1.15 var(--f); overflow-wrap: anywhere; }
.pad-lock { position: absolute; top: 6px; right: 8px; width: 16px !important; height: 16px !important; }
.pad--add small { font: 800 10.5px/1 var(--f); color: var(--ink-3); }

/* ---------- Music bar: always on screen ---------- */
:root { --bar-h: 64px; }
.mbar { display: none; position: fixed; left: 0; right: 0; z-index: 55; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); background: var(--ink); color: var(--cream); border-top: 2px solid var(--ink); }
body.in-app .mbar, body.in-live .mbar { display: block; }
.mbar-row { display: flex; align-items: center; gap: 8px; height: var(--bar-h); padding: 0 10px; max-width: 1200px; margin: 0 auto; }
.mb-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,246,229,.35); background: transparent; color: var(--cream); display: grid; place-items: center; }
.mb-btn .ic { width: 18px; height: 18px; }
.mb-play { width: 46px; height: 46px; background: var(--gold); border-color: var(--gold); color: var(--ink); }
.mb-info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; border: 0; background: none; color: inherit; text-align: left; padding: 4px 2px; }
.mb-info b { max-width: 100%; font: 800 14px/1.2 var(--f); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-info span { max-width: 100%; font: 700 11.5px/1.3 var(--f); opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-fade { width: auto; border-radius: 999px; padding: 0 14px; gap: 6px; display: none; font: 800 13px/1 var(--f); grid-auto-flow: column; }
.mb-fade.on { background: var(--turq); border-color: var(--turq); }
.mbar .mb-vol-inline { display: none; width: 110px; flex: none; }
.mb-prev { display: none; }
.mb-more .ic { transition: transform .25s var(--ease-out); }
.mbar.open .mb-more .ic { transform: rotate(180deg); }
.talk-btn { border: 2px solid var(--ink); border-radius: 999px; background: var(--magenta); color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px;
  font: 800 15px/1 var(--f2); user-select: none; -webkit-user-select: none; touch-action: none; -webkit-tap-highlight-color: transparent; transition: background .15s, transform .1s; }
.talk-btn--bar { flex: none; height: 46px; padding: 0 16px; box-shadow: 0 3px 0 #8f1546; }
.talk-btn--bar .ic { width: 20px; height: 20px; }
.talk-btn.on { background: var(--leaf); transform: translateY(3px); box-shadow: none; }
.mbar-panel { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease-out); }
.mbar.open .mbar-panel { max-height: 70vh; overflow-y: auto; border-bottom: 2px solid rgba(255,246,229,.15); }
.mbp-grid { display: grid; gap: 14px; padding: 14px 14px 10px; max-width: 1200px; margin: 0 auto; }
.yt-dock { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.yt-dock iframe, .yt-dock > div { position: absolute; inset: 0; width: 100%; height: 100%; }
.yt-dock:empty { aspect-ratio: auto; min-height: 48px; display: grid; place-items: center; background: rgba(255,246,229,.06); }
.yt-dock:empty::before { content: "Lalabas dito ang YouTube video preview"; font: 700 12.5px/1 var(--f); opacity: .6; }
.mbp-side .slider-row { margin-top: 6px; }
.mbp-side .slider-row label, .mbp-side .field-label { color: var(--cream); }
.mbp-side .queue { max-height: 160px; }
.mbp-side .queue li { color: var(--ink); }
.mbp-side .queue li.empty { background: transparent; border-style: dashed; border-color: rgba(255,246,229,.35); color: var(--cream); cursor: default; }
.mbp-side .btn--ghost { color: var(--cream); border-color: var(--cream); }
.app { padding-bottom: calc(var(--tab-h) + var(--bar-h) + env(safe-area-inset-bottom) + 16px); }

/* ---------- Live mode ---------- */
.live { position: fixed; inset: 0; z-index: 50; background: var(--cream); display: flex; flex-direction: column; overflow: hidden;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
body.in-live .mbar { bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
.live-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 16px 10px; border-bottom: 2px solid var(--ink); }
.live-clock { font: 800 24px/1 var(--f2); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.live-count { font: 800 12px/1 var(--f); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.live-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.live-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.live-now { border: 2px solid var(--ink); border-radius: var(--r-lg); background: var(--k-soft, var(--gold-soft)); padding: 16px; box-shadow: var(--shadow); }
.live-now .ln-kind { font: 800 11.5px/1 var(--f); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.live-now h2 { font-size: clamp(30px, 6vw, 56px); letter-spacing: -.04em; margin: 8px 0 10px; }
.ln-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ln-timer { font: 800 38px/1 var(--f2); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.ln-timer.over { color: var(--chili); }
.live-script { border: 2px solid var(--ink); border-radius: var(--r-lg); background: #fff; padding: 16px; font-size: 16px; line-height: 1.5; }
.lg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lg-head b { font: 800 20px/1.1 var(--f2); }
.up-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.up-list li { display: grid; grid-template-columns: 76px 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 12px; background: var(--cream); }
.up-list span { font: 800 13px/1 var(--f2); font-variant-numeric: tabular-nums; }
.up-list b { font-size: 15px; }
.up-list small { font: 800 12px/1 var(--f); color: var(--ink-3); }
.live-side { display: flex; flex-direction: column; gap: 16px; }
.live-pads .pads { grid-template-columns: repeat(3, 1fr); }
.live-pads .pad { aspect-ratio: auto; min-height: 64px; }
.live-nav { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; padding: 10px 16px; border-top: 2px solid var(--ink); background: var(--paper); }
.live-nav .btn { min-height: 50px; white-space: nowrap; padding-left: 14px; padding-right: 14px; }

/* ---------- Sheet ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(30,26,22,.55); display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  width: 100%; max-width: 720px; max-height: 92dvh; overflow-y: auto; background: var(--cream); border: 2px solid var(--ink); border-bottom: 0;
  border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 0 18px calc(24px + env(safe-area-inset-bottom)); animation: sheetUp .38s cubic-bezier(.32,.72,0,1) both;
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 0 12px; background: var(--cream); }
.sheet-head h3 { font-size: 26px; letter-spacing: -.03em; }
.sheet-grip { width: 48px; height: 5px; border-radius: 999px; background: var(--ink); opacity: .25; margin: 10px auto 0; }
.sheet-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.sheet-actions .btn { flex: 1; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--bar-h) + 24px); z-index: 70; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--cream); padding: 12px 18px; border-radius: 999px; font-weight: 800; font-size: 14px; border: 2px solid var(--cream);
  pointer-events: none; transition: opacity .25s, transform .3s var(--ease-out); max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Premium sheet */
.pro-hero { background: var(--gold); border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); }
.pro-hero h4 { font-size: 28px; letter-spacing: -.04em; }
.pro-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; font-weight: 700; }
.pro-list li { display: flex; gap: 10px; align-items: flex-start; }
.pro-list .ic { color: var(--magenta); width: 18px; height: 18px; margin-top: 3px; }

/* ---------- Phone ---------- */
@media (max-width: 599px) {
  .src-tabs { grid-template-columns: repeat(2, 1fr); }
  .act-main { grid-template-columns: 62px minmax(0, 1fr); grid-template-rows: auto auto; row-gap: 2px; }
  .act-time { grid-row: span 2; }
  .act-min { grid-column: 2; }
  .head-event { display: none; }
  .head-row { justify-content: space-between; }
  .head-row .wordmark { margin-right: auto; }
}

/* ---------- Tablet (600–1099px): touch-first, not desktop ---------- */
@media (min-width: 600px) {
  :root { --tab-h: 72px; --bar-h: 72px; }
  .tabs { display: flex; justify-content: center; gap: 8px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); }
  .tabs button { flex: 0 1 160px; flex-direction: row; justify-content: center; gap: 8px; font-size: 15px; min-height: 54px; }
  .app-main { max-width: 900px; padding: 28px 32px 32px; }
  .act-main { grid-template-columns: 90px minmax(0, 1fr) auto; padding: 14px 14px; min-height: 64px; }
  .act-title { font-size: 17px; }
  .act-move button { width: 48px; }
  .pads { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .live-pads .pads { grid-template-columns: repeat(4, 1fr); }
  .mbar-row { gap: 10px; padding: 0 16px; }
  .mb-prev, .mb-fade { display: inline-grid; }
  .mb-btn { width: 46px; height: 46px; }
  .mb-play { width: 52px; height: 52px; }
  .mb-fade { width: auto; height: 46px; }
  .talk-btn--bar { height: 52px; padding: 0 22px; font-size: 17px; }
  .mbp-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; padding: 16px; }
  .sheet { max-width: 640px; }
  .sheet-wrap { align-items: center; padding: 24px; }
  .sheet { border-radius: var(--r-xl); border-bottom: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); max-height: 86dvh; }
  .live-top { padding: 8px 24px 12px; }
  .live-body { padding: 20px 24px; }
  .live-nav { padding: 12px 24px; grid-template-columns: 1fr 1.3fr 1fr; }
}
/* Event name + date + time on one row only when there's truly room */
@media (min-width: 960px) {
  .plan-top { grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr) minmax(0, 1fr); }
  .plan-top .field:first-child { grid-column: auto; }
}
@media (min-width: 840px) {
  .pads { grid-template-columns: repeat(5, 1fr); }
  .mbar .mb-vol-inline { display: block; }
}
/* Tablet / laptop landscape: Live mode side by side */
@media (min-width: 900px) and (orientation: landscape), (min-width: 1100px) {
  .live-body { flex-direction: row; align-items: flex-start; gap: 24px; max-width: 1400px; width: 100%; margin: 0 auto; }
  .live-main { flex: 1.4; }
  .live-side { flex: 1; position: sticky; top: 0; min-width: 320px; }
  .live-pads .pads { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Desktop (≥1100px): sidebar ---------- */
@media (min-width: 1100px) {
  :root { --bar-h: 72px; }
  .app { display: grid; grid-template-columns: 232px 1fr; grid-template-rows: auto 1fr; padding-bottom: calc(var(--bar-h) + 24px); }
  .app-head { grid-column: 1 / -1; }
  .tabs {
    position: sticky; top: 92px; align-self: start; grid-row: 2; display: flex; flex-direction: column; justify-content: flex-start; gap: 6px;
    border-top: 0; border-right: 2px solid var(--ink); background: transparent; padding: 20px 14px; height: calc(100dvh - 92px - var(--bar-h));
  }
  .tabs button { flex: none; justify-content: flex-start; gap: 12px; padding: 12px 14px; min-height: 48px; color: var(--ink-2); }
  .app-main { grid-row: 2; width: 100%; max-width: 1000px; padding: 28px 40px 40px; }
  body.in-app .mbar { bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
  .toast { bottom: calc(var(--bar-h) + 24px); }
  .live-nav { max-width: 760px; width: 100%; margin: 0 auto 12px; border: 2px solid var(--ink); border-radius: 999px; padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .bunting .flag { animation: none; }
}

/* Legal links (landing footer) and consent lines in sheets */
.land-legal { max-width: 1200px; margin: 0 auto; padding: 8px 20px 28px; text-align: center; font: 700 13px/1.5 var(--f); color: var(--ink-3); }
.land-legal a, .legal-line a { color: inherit; font-weight: 800; }
.legal-line { margin-top: 10px; text-align: center; font: 700 12px/1.45 var(--f); color: var(--ink-3); }

      /* music is paused while someone sings */
.vk-more-card .vk-more-dev { margin-top: -6px; font-size: 12.5px; font-style: italic; }
.brave-pop { display: flex; gap: 14px; align-items: center; margin: 4px 0 14px; }
.brave-pop img { flex: none; width: 64px; height: 64px; }
.brave-pop p { font: 700 15px/1.45 var(--f); }
