/* Yoke web app — dark, mobile-first. No framework. Design: Yoke App Design (Space Grotesk / DM Sans / JetBrains Mono). */
:root {
  --midnight: #1B0B33;
  --room: #120726;
  --pink: #FF3D8B;
  --yellow: #FFE14D;
  --violet: #7C5CFF;
  --teal: #2DB5A7;
  --red: #E5484D;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, .65);
  --soft: rgba(255, 255, 255, .75);
  --w06: rgba(255, 255, 255, .06);
  --w08: rgba(255, 255, 255, .08);
  --w10: rgba(255, 255, 255, .1);
  --w12: rgba(255, 255, 255, .12);
  --w18: rgba(255, 255, 255, .18);
  --w22: rgba(255, 255, 255, .22);
  --line: rgba(255, 255, 255, .1);
  --tile: linear-gradient(160deg, #3a1d66, #24104a);
  --glow: radial-gradient(circle at 20% 12%, rgba(255, 61, 139, .45), transparent 50%), radial-gradient(circle at 85% 70%, rgba(124, 92, 255, .5), transparent 55%), #1B0B33;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
  --f-head: "Space Grotesk", system-ui, sans-serif;
  --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--midnight); color: var(--text);
  font: 16px/1.5 var(--f-body); overflow-x: hidden;
  display: flex; flex-direction: column;
}
body.is-room { background: var(--room); }
img, svg, video { max-width: 100%; }
a { color: var(--yellow); text-underline-offset: 2px; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 5vw, 2.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.25rem, 3.6vw, 1.6rem); }
h3, .h3 { font-size: 1.15rem; }
.h4 { font-size: 1.05rem; }
h2 .ic, h3 .ic, .h4 .ic { vertical-align: -3px; margin-right: 4px; color: var(--pink); }
p { margin: 0 0 1em; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mono, .label, .eyebrow, .mono-eyebrow, .mono-note, .mono-tag { font-family: var(--f-mono); }
.label { display: block; font-size: .75rem; letter-spacing: .02em; color: var(--muted); margin-bottom: 6px; }
.eyebrow, .mono-eyebrow { color: var(--pink); font-size: .82rem; letter-spacing: .03em; margin: 0 0 .7em; }
.mono-note { font-size: .72rem; color: var(--muted); }
.mono-tag { font-size: .75rem; color: var(--pink); }
.yellow { color: var(--yellow); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--midnight); padding: 8px 12px; border-radius: 10px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.main { flex: 1 0 auto; }
.page { padding-top: 28px; padding-bottom: 48px; }
.section { padding: 40px var(--gutter); }
.section-sm { margin-top: 28px; }
.stack > * + * { margin-top: 12px; }
.grid2, .grid3 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: repeat(3, 1fr); } }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.logo-mark { display: block; flex: none; }
.logo-word { font-family: var(--f-head); font-weight: 700; font-size: 1.6rem; letter-spacing: -1px; line-height: 1; }
.brand { text-decoration: none; border-radius: 12px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(27, 11, 51, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 8px; }
.topnav { display: flex; align-items: center; gap: 6px; min-width: 0; }
.navlink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border-radius: 999px; color: var(--soft); text-decoration: none; font-weight: 700; font-size: .95rem; }
.navlink:hover { background: var(--w08); color: #fff; }
.navlink[aria-current] { color: var(--pink); }
.credits-pill { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 999px; background: rgba(255, 225, 77, .14); border: 1.5px solid var(--yellow); color: var(--yellow); text-decoration: none; font: 700 14px var(--f-mono); white-space: nowrap; }
.credits-pill:hover { color: var(--yellow); background: rgba(255, 225, 77, .22); }
@media (max-width: 420px) { .hide-sm { display: none; } }
@media (max-width: 719px) { .topbar-app { display: none; } }

/* Bottom tab bar (phones) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; height: calc(76px + env(safe-area-inset-bottom)); display: flex; justify-content: space-around; align-items: flex-start; padding-top: 10px; border-top: 1px solid var(--line); background: rgba(27, 11, 51, .96); backdrop-filter: blur(10px); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 72px; min-height: 52px; padding-top: 2px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 700; border-radius: 12px; }
.tabbar a[aria-current] { color: var(--pink); }
.tabbar a:hover { color: #fff; }
body.has-tabbar { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 720px) { .tabbar { display: none; } body.has-tabbar { padding-bottom: 0; } }

/* Buttons */
.btn {
  --bg: var(--w10); --fg: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--bg); color: var(--fg); font: 700 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform .08s ease, background .15s ease, opacity .15s; -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--fg); filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn[disabled], .btn.is-busy { opacity: .5; cursor: not-allowed; }
/* white on pink is 3.3:1 → only large bold text on pink */
.btn-primary { --bg: var(--pink); --fg: #fff; font-family: var(--f-head); font-size: 19px; box-shadow: 0 12px 28px -12px rgba(255, 61, 139, .9); }
.btn-violet { --bg: var(--violet); --fg: #fff; }
.btn-yellow { --bg: var(--yellow); --fg: var(--midnight); }
.btn-ghost { --bg: transparent; border-color: var(--w22); }
.btn-danger { --bg: rgba(229, 72, 77, .14); --fg: #ffc2c4; border-color: rgba(229, 72, 77, .55); }
.btn-sm { min-height: 44px; padding: 6px 16px; font-size: .92rem; }
.btn-primary.btn-sm { font-size: 19px; }
.btn-lg { min-height: 56px; padding: 12px 26px; }
.btn-block { width: 100%; }
.linkbtn { background: none; border: 0; color: var(--yellow); text-decoration: underline; cursor: pointer; padding: 0; font: inherit; }
.icon-btn, .sq-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--w08); color: #fff; cursor: pointer; flex: none; text-decoration: none; }
.icon-btn:hover, .sq-btn:hover { background: var(--w12); color: #fff; }

/* Cards & forms */
.card { background: var(--w06); border: 1px solid var(--line); border-radius: 20px; padding: 20px; min-width: 0; }
.field { display: block; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--w22);
  background: var(--w06); color: var(--text); font: 16px var(--f-body);
}
::placeholder { color: rgba(255, 255, 255, .55); }
textarea { resize: vertical; min-height: 96px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--soft) 50%), linear-gradient(135deg, var(--soft) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
select option { background: var(--midnight); }
input:focus, select:focus, textarea:focus { border-color: var(--violet); outline: none; box-shadow: 0 0 0 3px rgba(124, 92, 255, .4); }
.hint { display: block; font-size: .82rem; color: var(--muted); margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { width: 22px; height: 22px; min-height: 0; margin-top: 1px; flex: none; accent-color: var(--pink); }
.form-error { color: #ffc2c4; background: rgba(229, 72, 77, .14); border: 1px solid rgba(229, 72, 77, .45); padding: 10px 12px; border-radius: 12px; font-size: .92rem; margin: 10px 0 0; }
.code-input { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .2em; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; border: 1.5px solid transparent; background: var(--w08); color: var(--text); border-radius: 999px; padding: 6px 14px; font: 500 .85rem var(--f-body); cursor: pointer; }
.chip:hover { background: var(--w12); }
.chip.is-on { background: var(--pink); color: var(--midnight); font-weight: 700; }
.pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 4px 10px; font: 500 .8rem var(--f-mono); white-space: nowrap; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.list > li:last-child { border-bottom: 0; }
.list .grow { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; }
.room .banner { font-size: 13px; padding: 10px 12px; margin-bottom: 12px; }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: rgba(45, 181, 167, .14); border: 1px solid rgba(45, 181, 167, .45); margin-bottom: 14px; }
.banner-warn { background: rgba(255, 225, 77, .1); border-color: rgba(255, 225, 77, .45); }
.banner-warn .ic { color: var(--yellow); flex: none; }
.banner-err { background: rgba(229, 72, 77, .14); border-color: rgba(229, 72, 77, .5); }
.danger-card { border-color: rgba(229, 72, 77, .45); }
.sec-h { font-family: var(--f-head); font-weight: 700; font-size: 18px; margin: 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.fine { font-size: .78rem; line-height: 1.5; color: rgba(255, 255, 255, .62); margin: 10px 0 0; }

/* Glow background screens (login, welcome, landing hero) */
.glow-screen, .glow-page { background: var(--glow); }
body.is-login .main { display: flex; }
.glow-screen { flex: 1; display: flex; justify-content: center; min-height: 100vh; min-height: 100dvh; }
.login-col { width: 100%; max-width: 440px; display: flex; flex-direction: column; padding: 56px 28px 32px; }
.login-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; align-self: flex-start; border-radius: 16px; }
.login-brand .logo-word { font-size: 34px; letter-spacing: -1.5px; }
.login-hero { margin: 72px 0 40px; }
.login-h { margin: 12px 0 0; font-size: 46px; line-height: 1.02; letter-spacing: -1.5px; }
.login-sub { margin: 18px 0 0; font-size: 16px; line-height: 1.5; color: var(--soft); }
.login-actions { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.btn-provider { width: 100%; height: 54px; border-radius: 16px; border: 1.5px solid transparent; font: 700 16px var(--f-body); display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; text-decoration: none; }
.btn-provider[disabled], .btn-provider.is-busy { opacity: .55; cursor: not-allowed; }
.btn-apple { background: #fff; color: #111; }
.btn-outline { background: var(--w08); border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn-outline:hover:not([disabled]) { background: var(--w12); }
.btn-pinkline { background: rgba(255, 61, 139, .16); border-color: var(--pink); color: #fff; }
.btn-pinkline:hover:not([disabled]) { background: rgba(255, 61, 139, .26); }
.gsi-slot { min-height: 54px; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.gsi-slot > div { max-width: 100%; }
.divider { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; color: var(--muted); font: 500 12px var(--f-mono); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--w18); }
.email-form { display: flex; flex-direction: column; gap: 12px; }
.email-form input { height: 54px; border-radius: 16px; background: rgba(27, 11, 51, .55); }
.code-note { margin: 8px 0 0; }
.login-terms { margin: 6px 0 0; text-align: center; font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, .7); }
@media (min-width: 720px) {
  .login-col { padding-top: 64px; padding-bottom: 48px; }
  .glow-screen { background: radial-gradient(circle at 30% 18%, rgba(255, 61, 139, .42), transparent 45%), radial-gradient(circle at 72% 78%, rgba(124, 92, 255, .48), transparent 50%), #1B0B33; }
}
@media (max-width: 380px) { .login-h { font-size: 40px; } .login-hero { margin-top: 56px; } .login-col { padding-left: 22px; padding-right: 22px; } }

/* App screens (home, wallet, account) */
.app-page { padding-top: 28px; padding-bottom: 40px; }
@media (max-width: 719px) { .app-page { padding-top: 40px; } }
.screen-h { font-family: var(--f-head); font-weight: 700; font-size: 26px; letter-spacing: -.5px; margin: 0; }
.screen-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.screen-bar .screen-h { font-size: 24px; }
.hi { margin: 0; font-size: 13px; color: var(--muted); }
.home-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.home-head .balance-card { flex: none; }
.home-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .home-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .home .screen-h { font-size: 34px; } }
.start-card { position: relative; border-radius: 24px; padding: 22px; background: var(--pink); color: var(--midnight); display: flex; flex-direction: column; gap: 8px; box-shadow: 0 18px 40px -18px rgba(255, 61, 139, .8); }
.start-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.start-h { margin: 0; font-size: 26px; color: #fff; letter-spacing: -.3px; }
.start-plus { width: 48px; height: 48px; border: 0; padding: 0; background: none; border-radius: 50%; cursor: pointer; display: grid; place-items: center; flex: none; }
.start-plus:focus-visible { outline-color: var(--midnight); }
.start-plus.is-busy { opacity: .6; }
.start-sub { margin: 0; font-size: 14px; font-weight: 500; color: var(--midnight); }
.start-field { display: block; margin-top: 6px; }
.start-field input { min-height: 44px; height: 44px; border-radius: 14px; background: rgba(27, 11, 51, .14); border: 1.5px solid rgba(27, 11, 51, .3); color: var(--midnight); font-weight: 500; }
.start-field input::placeholder { color: rgba(27, 11, 51, .72); }
.start-field input:focus { border-color: var(--midnight); box-shadow: 0 0 0 3px rgba(27, 11, 51, .25); }
.start-card .form-error { background: rgba(27, 11, 51, .85); color: #ffc2c4; }
.start-card .form-error a { color: var(--yellow); }
.home-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.join-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.join-row { display: flex; gap: 10px; }
.join-row input { flex: 1; min-width: 0; height: 48px; }
.join-btn { flex: none; min-height: 48px; height: 48px; border-radius: 14px; padding: 0 20px; font-size: 15px; }
.room-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.room-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--w06); border: 1px solid var(--line); min-width: 0; }
.room-row .grow { flex: 1; min-width: 0; }
.room-row.is-ended { opacity: .8; }
.rr-title { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-empty { padding: 14px; border-radius: 18px; background: var(--w06); border: 1px dashed var(--w18); }
.av-stack { display: flex; flex: none; }
.av { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #fff; border: 2px solid var(--midnight); flex: none; }
.av + .av { margin-left: -10px; }
.av-more { background: var(--teal); color: var(--midnight); }
.av-sm { width: 30px; height: 30px; font-size: 11px; border: 0; }
.pill-join { height: 36px; min-width: 44px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--midnight); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; flex: none; }
.pill-join:hover { color: var(--midnight); background: var(--yellow); }

/* Credits / wallet */
.balance-card { text-decoration: none; }
.credits-big { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 999px; background: rgba(255, 225, 77, .14); border: 1.5px solid var(--yellow); color: var(--yellow); font: 700 14px var(--f-mono); white-space: nowrap; }
.credits-big:hover { color: var(--yellow); background: rgba(255, 225, 77, .22); }
.credits-big .balance-num { font: inherit; }
.wallet-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .wallet-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }
.wallet-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.balance-card.big { display: flex; flex-direction: column; border-radius: 24px; padding: 20px; background: var(--yellow); color: var(--midnight); }
.bal-label { font-size: 13px; font-weight: 700; }
.bal-line { font-family: var(--f-head); font-weight: 700; line-height: 1.05; letter-spacing: -1.5px; }
.balance-card.big .balance-num { font-size: 52px; }
.bal-unit { font-size: 22px; letter-spacing: -.5px; margin-left: 6px; }
.bal-help { font-size: 13px; margin-top: 4px; }
.bal-note { margin-top: 14px; padding-top: 12px; border-top: 1.5px dashed rgba(27, 11, 51, .4); font: 500 12px/1.4 var(--f-mono); }
.topup .sec-h { margin-bottom: 10px; }
.method-picker { display: flex; gap: 8px; margin: 0 -20px 14px; padding: 2px 20px; overflow-x: auto; scrollbar-width: none; }
.method-picker::-webkit-scrollbar { display: none; }
.method-picker .chip { flex: none; }
@media (min-width: 720px) { .method-picker { flex-wrap: wrap; margin: 0 0 14px; padding: 0; overflow: visible; } }
.method-picker .chip { min-height: 40px; font-size: 13px; }
.packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.pack { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 14px 16px; border-radius: 18px; border: 2px solid var(--w12); background: var(--w06); color: #fff; cursor: pointer; font: inherit; min-width: 0; }
.pack:hover { border-color: rgba(255, 61, 139, .6); }
.pack.is-on { background: rgba(255, 61, 139, .18); border-color: var(--pink); }
.pack-credits { font: 700 26px/1.1 var(--f-head); }
.pack-unit { font-size: 12px; color: rgba(255, 255, 255, .72); }
.pack-price { margin-top: 8px; font-weight: 700; font-size: 16px; }
.pack-min { font-size: 11px; color: var(--muted); }
.buy-btn { width: 100%; height: 56px; border-radius: 18px; border: 0; background: var(--pink); color: #fff; font: 700 19px var(--f-head); cursor: pointer; box-shadow: 0 12px 28px -12px rgba(255, 61, 139, .9); padding: 0 12px; }
.buy-btn[disabled] { opacity: .55; cursor: not-allowed; }
.buy-btn.is-busy { opacity: .7; }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.ledger li:last-child { border-bottom: 0; }
.ledger .amt { font: 700 13px var(--f-mono); text-align: right; }
.ledger .amt.pos { color: var(--teal); }
.ledger .amt.neg { color: var(--pink); }
.ledger .when { color: var(--muted); font-size: 11px; grid-column: 1 / -1; font-family: var(--f-mono); }
.ledger .note { min-width: 0; overflow-wrap: anywhere; }

/* Account */
.acct-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .acct-grid { grid-template-columns: 1fr 1fr; } }
.acct-grid .card h2 { font-size: 18px; display: flex; align-items: center; gap: 8px; margin: 0; }
.acct-grid .card h2 .ic { margin: 0; }

/* Landing */
.hero { padding: 40px 0 36px; background: var(--glow); }
.hero-in { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero-in { grid-template-columns: 1.05fr 1fr; padding-top: 40px; padding-bottom: 40px; } }
.hero h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); line-height: 1.02; letter-spacing: -1.5px; }
.hl { color: var(--pink); }
.lead { font-size: 1.1rem; color: var(--soft); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 12px; }
.stores { color: var(--muted); }
.stores a { color: var(--soft); }
.stage { background: var(--room); border: 1px solid var(--w12); border-radius: 24px; padding: 14px; box-shadow: var(--shadow); max-width: 520px; margin: 0 auto; }
.stage-player { aspect-ratio: 16/9; border-radius: 14px; background: #000; display: grid; place-items: center; border: 1px solid var(--w18); }
.stage-play { width: 64px; height: 44px; border-radius: 12px; background: var(--pink); display: grid; place-items: center; color: #fff; }
.stage-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.stage .tile { height: 64px; border-radius: 14px; display: flex; align-items: flex-end; padding: 6px; font: 500 .72rem var(--f-mono); background: var(--tile); border: 1px solid var(--w12); }
.stage .tile span { background: rgba(0, 0, 0, .5); padding: 1px 6px; border-radius: 6px; }
.stage .t1 { grid-column: span 4; height: 96px; border: 3px solid var(--pink); box-shadow: 0 0 24px rgba(255, 61, 139, .6); }
.stage-mic { display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; font: 500 .8rem var(--f-mono); color: var(--teal); }
.feature h3 { font-size: 1.2rem; }
.feature-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 61, 139, .16); color: var(--pink); margin-bottom: 12px; }
.pricing-card { display: flex; flex-direction: column; gap: 16px; background: rgba(255, 225, 77, .1); border-color: rgba(255, 225, 77, .45); }
@media (min-width: 720px) { .pricing-card { flex-direction: row; align-items: center; justify-content: space-between; } }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; margin-top: 32px; background: rgba(0, 0, 0, .18); }
.footer-top { display: grid; gap: 16px; }
@media (min-width: 720px) { .footer-top { grid-template-columns: 240px 1fr; } }
.footer-brand p { margin-top: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-links a { color: var(--soft); font-size: .9rem; display: inline-flex; align-items: center; min-height: 32px; }
.company { margin-top: 18px; color: var(--soft); overflow-wrap: anywhere; }

/* Auth-style single cards (welcome, error) */
.auth { padding-top: 40px; padding-bottom: 56px; }
.glow-page { flex: 1; }
.auth-card { max-width: 460px; margin: 0 auto; padding: 26px 22px; background: rgba(27, 11, 51, .72); border: 1px solid var(--w12); border-radius: 24px; backdrop-filter: blur(6px); }
.auth-card h1 { font-size: 32px; }
.legal-note { margin-top: 18px; }

/* Legal — readable prose */
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.legal-nav a { color: var(--soft); text-decoration: none; padding: 6px 12px; border-radius: 999px; background: var(--w06); border: 1px solid var(--line); font-size: .85rem; }
.legal-nav a:hover { background: var(--w10); color: #fff; }
.legal-nav a[aria-current] { color: var(--midnight); background: var(--yellow); border-color: var(--yellow); font-weight: 700; }
.prose { overflow-wrap: anywhere; max-width: 68ch; font-size: 17px; line-height: 1.7; color: #F2EDFA; }
.prose h1 { margin-bottom: .6em; font-size: clamp(1.9rem, 5vw, 2.6rem); }
.prose h2 { margin-top: 1.8em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose a { color: var(--yellow); }
.prose strong { color: #fff; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .95rem; }
.prose td, .prose th { border: 1px solid var(--w18); padding: 8px 12px; text-align: left; }
.prose .card { margin: 20px 0; }

/* Cookie & toast */
.cookie-note { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 18px; background: #2a1450; border: 1px solid var(--w18); box-shadow: var(--shadow); font-size: .88rem; max-width: 560px; margin: 0 auto; }
body.has-tabbar .cookie-note { bottom: calc(92px + env(safe-area-inset-bottom)); }
@media (min-width: 720px) { body.has-tabbar .cookie-note { bottom: 12px; } }
.cookie-note p { margin: 0; flex: 1 1 220px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 999px; background: #fff; color: var(--midnight); font-weight: 700; box-shadow: var(--shadow); }
body.has-tabbar .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ============================ Room ============================ */
.room-main { flex: 1 0 auto; display: flex; flex-direction: column; }
.room { width: 100%; max-width: 1400px; margin: 0 auto; padding: 14px 16px 22px; flex: 1; display: flex; flex-direction: column; }
.room-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.room-title { flex: 1; min-width: 0; }
.room-title h1 { font-size: 18px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0; }
.room-sub { display: flex; align-items: center; min-width: 0; font: 500 11px var(--f-mono); color: var(--muted); white-space: nowrap; overflow: hidden; }
.room-sub > span { overflow: hidden; text-overflow: ellipsis; }
.code-chip { display: inline-flex; align-items: center; border: 0; background: none; color: var(--muted); padding: 2px 0; cursor: pointer; font: inherit; flex: none; border-radius: 6px; }
.code-chip:hover { color: #fff; }
.room-bar-right { display: flex; align-items: center; gap: 8px; position: relative; flex: none; }
.menu { position: absolute; right: 0; top: 52px; min-width: 230px; background: #24124a; border: 1px solid var(--w18); border-radius: 16px; padding: 6px; box-shadow: var(--shadow); z-index: 30; }
.menu button { display: flex; width: 100%; align-items: center; gap: 10px; min-height: 44px; padding: 10px 12px; border: 0; background: transparent; color: var(--text); font: inherit; text-align: left; border-radius: 10px; cursor: pointer; }
.menu button:hover { background: var(--w08); }
.desk-only { display: none !important; }
.btn-outline-sm { height: 44px; padding: 0 18px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; font: 700 14px var(--f-body); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.btn-outline-sm:hover { background: var(--w08); }
.topup-pill { height: 44px; padding: 0 18px; border-radius: 12px; background: var(--yellow); color: var(--midnight); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
.topup-pill:hover { color: var(--midnight); filter: brightness(1.05); }

/* phone: single column in the design's order */
.room-body { display: flex; flex-direction: column; gap: 12px; flex: 1; min-width: 0; }
.room-stage, .room-side { display: contents; }
.pot-card { order: 1; }
.player-wrap { order: 2; }
.now-line { order: 3; }
.singer-controls { order: 4; }
.tiles { order: 5; }
.upnext { order: 6; }
.queue-panel { order: 7; }
.controls { order: 8; }
.room-note { order: 9; }

/* YouTube player: 16:9, full width, nothing drawn over it. */
.player-wrap { width: 100%; }
.player-box { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 200px; background: #000; border-radius: 14px; overflow: hidden; }
.player-box iframe, .player-box #yt-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 16px; color: var(--muted); background: #000; border: 1px dashed var(--w22); border-radius: 14px; }
.player-empty p { max-width: 320px; margin: 0; font: 500 .8rem/1.5 var(--f-mono); }
.now-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-top: -6px; }
.now-text { min-width: 0; flex: 1; }
.now-main { font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.now-label { font: 500 11px var(--f-mono); color: var(--pink); margin-right: 2px; }
.now-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.yt-attr { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, .8); white-space: nowrap; }
.yt-attr-block { margin: 2px 0 4px; }
.sync-state { font: 500 11px var(--f-mono); color: var(--teal); white-space: nowrap; flex: none; padding-top: 2px; }
.singer-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: -4px; }
.singer-controls .btn { min-height: 44px; padding: 4px 14px; font-size: 13px; border-color: var(--w18); }
.tip { display: flex; gap: 6px; align-items: center; color: var(--muted); margin: 0; flex: 1 1 200px; font-size: 11px; line-height: 1.35; }
.tip .ic { flex: none; color: var(--teal); }

/* video tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tile-spot, .tile-row { display: contents; }
.vtile { position: relative; border-radius: 16px; overflow: hidden; background: var(--tile); height: 78px; min-width: 0; border: 1px solid var(--w12); }
.vtile.is-spot { grid-column: 1 / -1; order: -1; height: 124px; border: 3px solid var(--pink); box-shadow: 0 0 24px rgba(255, 61, 139, .6); }
.vtile .vid { position: absolute; inset: 0; }
.vtile .vid video { object-fit: cover; }
.vtile .avatar { position: absolute; inset: 0; display: grid; place-items: center; }
.av-tile { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 700 14px var(--f-body); color: #fff; }
.vtile.is-spot .av-tile { width: 64px; height: 64px; font-size: 24px; }
.vtile .tag { position: absolute; left: 6px; bottom: 6px; right: 6px; display: flex; font: 500 10px var(--f-mono); white-space: nowrap; overflow: hidden; pointer-events: none; }
.vtile .tag span { background: rgba(0, 0, 0, .55); padding: 2px 6px; border-radius: 6px; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.vtile.is-spot .tag { right: 30px; }
.vtile.is-spot .tile-menu .ic { width: 26px; height: 26px; right: 8px; top: 8px; padding: 3px; }
/* whole tile is the options button; a small corner icon shows it */
.vtile .tile-menu { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: none; color: #fff; cursor: pointer; border-radius: inherit; padding: 0; }
.vtile .tile-menu .ic { position: absolute; right: 4px; top: 4px; width: 20px; height: 20px; padding: 2px; border-radius: 50%; background: rgba(0, 0, 0, .45); opacity: .85; }
.vtile .tile-menu:hover .ic, .vtile .tile-menu:focus-visible .ic { background: rgba(0, 0, 0, .75); opacity: 1; }
.vtile .tile-menu:focus-visible { outline-offset: -3px; }

/* up next + queue */
.upnext { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; border-radius: 14px; background: var(--w06); font-size: 12px; min-height: 52px; }
.upnext > .ic { color: var(--pink); flex: none; }
.upnext-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-btn { background: none; border: 0; color: var(--yellow); font: 700 12px var(--f-body); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; padding: 0 4px; min-height: 44px; display: inline-flex; align-items: center; gap: 4px; flex: none; }
.link-btn:hover { color: #fff; }
.add-sq { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--pink); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.add-sq:hover { filter: brightness(1.08); }
.add-sq[disabled] { opacity: .5; cursor: not-allowed; }
.add-sq.is-added { background: var(--teal); color: var(--midnight); }
.queue-panel { display: none; }
.queue-panel.is-open { display: block; position: fixed; inset: 0; z-index: 35; overflow-y: auto; background: var(--midnight); padding: 20px 16px 28px; }
.queue-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.queue-head .sec-h { margin-right: auto; }
.queue-head .mono-note { order: 5; flex-basis: 100%; }
.queue-panel .queue-head { flex-wrap: wrap; }
.queue { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.q-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid transparent; min-width: 0; }
.q-item.is-playing { background: rgba(255, 61, 139, .16); border-color: var(--pink); }
.q-pos { font: 700 12px var(--f-mono); color: var(--muted); width: 30px; flex: none; }
.q-item.is-playing .q-pos { color: var(--pink); }
.q-body { flex: 1; min-width: 0; }
.q-title { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.q-item.is-playing .q-title { font-weight: 700; }
.q-sub { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-acts { display: flex; align-items: center; gap: 0; flex: none; }
.q-acts button { width: 40px; height: 40px; border: 0; background: transparent; color: rgba(255, 255, 255, .7); border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.q-acts button:hover { background: var(--w08); color: #fff; }
.q-grip { color: rgba(255, 255, 255, .5); display: grid; place-items: center; width: 22px; }
.q-empty { padding: 10px; }

/* Ambag pot */
.pot-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 225, 77, .1); border: 1px solid rgba(255, 225, 77, .45); flex-wrap: wrap; }
.pot-info { flex: 1; min-width: 0; }
.pot-head { display: flex; justify-content: space-between; gap: 8px; font: 700 11px var(--f-mono); color: var(--yellow); }
.pot-title { font: inherit; margin: 0; letter-spacing: 0; }
.pot-rate { text-align: right; white-space: nowrap; }
.meter { height: 6px; border-radius: 6px; background: var(--w12); overflow: hidden; margin-top: 6px; }
.meter span { display: block; height: 100%; width: 0; background: var(--yellow); border-radius: 6px; transition: width .4s ease; }
.pot-sub { font-size: 11px; color: rgba(255, 255, 255, .7); margin: 5px 0 0; overflow-wrap: anywhere; }
.pot-form { display: flex; flex-direction: column; align-items: stretch; gap: 2px; flex: none; }
.chip-in { height: 44px; padding: 0 14px; border-radius: 12px; border: 0; background: var(--yellow); color: var(--midnight); font: 700 13px var(--f-body); cursor: pointer; white-space: nowrap; }
.chip-in:hover { filter: brightness(1.05); }
.chip-in[disabled] { opacity: .5; cursor: not-allowed; }
.chip-in-line { background: transparent; border: 1.5px solid var(--yellow); color: var(--yellow); }
.pot-more { background: none; border: 0; color: var(--yellow); font: 500 11px var(--f-body); text-decoration: underline; cursor: pointer; padding: 0; min-height: 24px; }
.pot-other { display: none; gap: 8px; }
.pot-other.is-open { display: flex; }
.pot-other input { min-height: 44px; height: 44px; flex: 1; min-width: 0; padding: 6px 12px; border-radius: 12px; }
.pot-card:has(.pot-other.is-open) .pot-form { flex: 1 1 100%; }
.desk-flex { display: none; }

/* bottom controls */
.controls { margin-top: auto; display: flex; align-items: center; gap: 8px; position: sticky; bottom: 0; z-index: 12; margin-left: -16px; margin-right: -16px; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(18, 7, 38, 0), var(--room) 30%); }
.room { padding-bottom: 0; }
.round-btn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--w10); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.round-btn:hover { background: var(--w18); }
.round-btn[aria-pressed="false"] { background: #fff; color: var(--midnight); }
.round-btn:disabled { opacity: .45; cursor: not-allowed; }
.round-leave { background: var(--red); }
.round-leave:hover { background: #f15a5f; }
.pass-pill { flex: 1; min-width: 0; height: 56px; border-radius: 999px; border: 0; background: var(--pink); color: #fff; font: 700 18.7px var(--f-head); letter-spacing: -.5px; display: flex; align-items: center; justify-content: center; padding: 0 8px; box-shadow: 0 12px 28px -10px rgba(255, 61, 139, .9); cursor: pointer; white-space: nowrap; overflow: hidden; }
.pass-pill > span:first-child { flex: none; }
.pass-to { overflow: hidden; text-overflow: ellipsis; min-width: 0; white-space: pre; }
.pass-pill:disabled { background: rgba(255, 61, 139, .35); box-shadow: none; cursor: not-allowed; }
.room-note { font-size: 12px; color: rgba(255, 255, 255, .6); margin: 0; }
@media (max-width: 400px) { .controls .round-btn { width: 48px; height: 48px; } .controls { gap: 6px; } }
@media (max-width: 370px) { .controls .round-btn { width: 44px; height: 44px; } }

/* desktop room ≥ 960px: WebRoom two-column layout */
@media (min-width: 960px) {
  .room { padding: 20px 24px 28px; }
  .room-bar { gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
  .phone-only { display: none !important; }
  .desk-only { display: inline-flex !important; }
  .room-logo .logo-word { font-size: 24px; }
  .room-title h1 { font-size: 20px; }
  .room-sub { font-size: 12px; }
  .room-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 20px; align-items: start; flex: none; }
  .room-stage, .room-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
  .tiles { order: 1; } .pot-card { order: 2; } .controls { order: 3; } .room-note { order: 4; }
  .player-box { border-radius: 18px; }
  .now-line { margin-top: 0; align-items: center; flex-wrap: wrap; }
  .now-main { font: 700 22px var(--f-head); }
  .now-label { font-size: 12px; }
  .now-sub { font-size: 13px; }
  .sync-state { font-size: 12px; }
  .upnext { display: none; }
  .queue-panel { display: block; position: static; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); padding: 16px; }
  .queue-panel .queue-head { flex-wrap: nowrap; }
  .queue-head .mono-note { order: 0; flex-basis: auto; margin-right: auto; }
  .queue-head .sec-h { margin-right: 0; }
  .queue-head .link-btn { font-size: 14px; }
  .queue { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px; }
  .q-item { padding: 12px; align-items: flex-start; flex-wrap: wrap; position: relative; }
  .q-item .q-body { flex: 1 1 140px; }
  .q-acts { margin-left: auto; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .vtile { height: 104px; border-radius: 14px; border: 0; }
  .av-tile { width: 46px; height: 46px; font-size: 16px; }
  .vtile .tag { font-size: 11px; left: 8px; bottom: 8px; }
  .vtile.is-spot { height: 200px; border-radius: 18px; box-shadow: 0 0 30px rgba(255, 61, 139, .5); }
  .vtile.is-spot .av-tile { width: 84px; height: 84px; font-size: 28px; }
  .vtile.is-spot .tag { left: 10px; bottom: 10px; font-size: 12px; }
  .pot-card { display: block; border-radius: 18px; padding: 16px; }
  .pot-head { font-size: 12px; }
  .meter { height: 8px; border-radius: 8px; margin: 10px 0 8px; }
  .pot-sub { font-size: 12px; margin: 0; }
  .pot-form { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .pot-form .chip-in { flex: 1; }
  .desk-flex { display: block; }
  .pot-other { display: flex; flex: 1 1 100%; }
  .pot-other input { height: 40px; min-height: 40px; }
  .pot-other .chip-in { height: 40px; }
  .pot-other .chip-in { flex: none; }
  .controls { margin: 0; padding: 0; gap: 10px; position: static; background: none; }
  .room { padding-bottom: 28px; }
  .controls .pass-pill { order: -1; height: 52px; }
  #btn-cam { display: none; }
  .room-note { display: block !important; }
}

/* Drawers */
.drawer { position: fixed; inset: 0; z-index: 40; background: rgba(5, 0, 15, .65); display: flex; align-items: flex-end; justify-content: center; }
.drawer-panel { width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; background: var(--midnight); border: 1px solid var(--w12); border-radius: 24px 24px 0 0; padding: 16px 20px 22px; box-shadow: var(--shadow); }
.drawer-sm { max-width: 440px; }
@media (min-width: 720px) { .drawer { align-items: center; } .drawer-panel { border-radius: 24px; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.drawer-h { margin: 0; font-size: 22px; flex: 1; }
.songs-panel .drawer-head { justify-content: flex-start; }
.songs-panel .drawer-h { font-size: 24px; }
.search-field { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 6px 0 16px; border-radius: 16px; background: var(--w08); border: 1.5px solid var(--w18); }
.search-field:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 92, 255, .4); }
.search-field > .ic { flex: none; }
.search-field input { flex: 1; min-width: 0; border: 0; background: transparent; min-height: 0; height: 48px; padding: 0; box-shadow: none; }
.search-field input:focus { box-shadow: none; }
.search-go { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--w10); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.search-go:hover { background: var(--w18); }
.singer-pick { display: flex; align-items: center; gap: 10px; margin: 12px 0 8px; }
.singer-pick select { min-height: 40px; height: 40px; padding: 4px 32px 4px 12px; width: auto; flex: 1; border-radius: 999px; }
.results { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.results li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.results img { width: 96px; height: 54px; object-fit: cover; border-radius: 10px; background: var(--tile); }
.results .r-title { font-size: 14px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.results .r-ch { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.results li.muted { display: block; }
@media (max-width: 380px) { .results li { grid-template-columns: 72px minmax(0, 1fr) auto; } .results img { width: 72px; height: 40px; } }
#pass-list li { justify-content: flex-start; }
#pass-list .av { border: 0; }
.err-page { padding-top: 72px; padding-bottom: 96px; }
.err-page h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); letter-spacing: -1.5px; }
@media (max-width: 719px) {
  #search-drawer { align-items: stretch; }
  .songs-panel { max-width: none; max-height: none; height: 100%; border-radius: 0; border: 0; padding: 20px 20px 24px; }
}
/* In the room the fixed notice would cover the call controls: show it in flow, below the room. */
body.is-room .cookie-note { position: static; margin: 0 auto 16px; width: calc(100% - 32px); }
.setup-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(255, 225, 77, .12); border: 1px solid rgba(255, 225, 77, .4); color: #FFE14D; line-height: 1.5; }
.setup-note code { color: #fff; word-break: break-all; }

/* ---- Sign-in page: 2 columns on desktop, stacked on phones ---- */
body.is-login .main { display: block; }
.auth { min-height: 100vh; min-height: 100dvh; background: radial-gradient(circle at 18% 14%, rgba(255, 61, 139, .42), transparent 46%), radial-gradient(circle at 80% 82%, rgba(124, 92, 255, .48), transparent 52%), #1B0B33; display: grid; grid-template-columns: 1fr; padding: 28px 18px 24px; gap: 26px; }
.auth-brand { min-width: 0; }
.auth-brand .login-brand .logo-word { font-size: 30px; }
.auth-hero { margin-top: 24px; }
.auth-h { margin: 8px 0 0; font-size: 34px; line-height: 1.05; letter-spacing: -1px; }
.auth-sub { margin: 12px 0 0; color: var(--soft); font-size: 15.5px; line-height: 1.5; }
.auth-points { list-style: none; padding: 0; margin: 18px 0 0; display: none; flex-direction: column; gap: 12px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--soft); font-size: 15px; line-height: 1.45; }
.auth-points strong { color: #fff; }
.auth-ic { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--w10); color: var(--yellow); }
.auth-stores { display: none; margin: 22px 0 0; color: var(--muted); font-family: var(--f-mono); }
.auth-side { min-width: 0; display: flex; justify-content: center; align-items: flex-start; }
.auth-card { width: 100%; max-width: 440px; background: rgba(18, 7, 38, .72); border: 1px solid var(--w12); border-radius: 24px; padding: 20px 18px; box-shadow: var(--shadow); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); display: flex; flex-direction: column; gap: 14px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: var(--w06); border: 1px solid var(--line); }
.auth-tab { min-height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--soft); font: 700 15px var(--f-body); cursor: pointer; }
.auth-tab.is-on { background: #fff; color: var(--midnight); }
.auth-tab:focus-visible { outline: 3px solid rgba(124, 92, 255, .6); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form > div { display: flex; flex-direction: column; gap: 14px; }
.auth-form[hidden], .auth-form > div[hidden] { display: none; }
.auth-form input { height: 50px; border-radius: 14px; background: rgba(27, 11, 51, .6); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.label-row .label { margin-bottom: 6px; }
.label-row .linkbtn { font-size: .8rem; text-decoration: none; padding: 0 0 6px; }
.label-row .linkbtn:hover { text-decoration: underline; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 52px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.pw-eye:hover, .pw-eye[aria-pressed="true"] { color: #fff; }
.btn-pink { background: var(--pink); color: #fff; box-shadow: 0 10px 24px -10px rgba(255, 61, 139, .8); }
.btn-pink:hover:not([disabled]) { filter: brightness(1.06); }
.auth-card .btn-provider { height: 50px; border-radius: 14px; font-size: 15px; }
.auth-subhead h2 { margin: 0; font-size: 22px; letter-spacing: -.4px; }
.auth-subhead p { margin: 4px 0 0; }
.auth-back { align-self: center; text-decoration: none; color: var(--soft); min-height: 36px; }
.auth-social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-social .gsi-slot { grid-column: 1 / -1; min-height: 50px; }
.auth-switch { margin: 0; text-align: center; color: var(--soft); font-size: 14.5px; }
.auth-switch[hidden] { display: none; }
.auth-switch .linkbtn { font-weight: 700; text-decoration: none; min-height: 36px; }
.auth .login-terms { margin: 0; }
.auth .divider { margin: 2px 0 0; }
.auth .setup-note, .auth .form-error { margin: 0; }
.login-foot { grid-column: 1 / -1; text-align: center; color: rgba(255, 255, 255, .55); line-height: 1.6; font-size: 12.5px; padding-top: 6px; }
.login-foot p { margin: 6px 0 0; }
.login-foot a { color: rgba(255, 255, 255, .8); }
@media (max-width: 359px) { .auth { padding-left: 14px; padding-right: 14px; } .auth-h { font-size: 30px; } .auth-card { padding: 16px 14px; } .auth-social { grid-template-columns: 1fr; } }
@media (min-width: 600px) { .auth { padding: 40px 32px 28px; } .auth-h { font-size: 42px; } .auth-points { display: flex; } .auth-brand { max-width: 560px; margin: 0 auto; width: 100%; } .auth-card { padding: 26px 24px; } }
@media (min-width: 960px) {
  .auth { grid-template-columns: minmax(0, 1.1fr) minmax(400px, .9fr); grid-template-rows: 1fr auto; align-items: center; padding: 48px clamp(32px, 5vw, 80px) 28px; column-gap: clamp(32px, 5vw, 80px); }
  .auth-brand { max-width: 560px; margin: 0; justify-self: end; }
  .auth-hero { margin-top: 56px; }
  .auth-h { font-size: clamp(46px, 4.4vw, 60px); letter-spacing: -2px; }
  .auth-sub { font-size: 17px; max-width: 30em; }
  .auth-points { margin-top: 28px; }
  .auth-stores { display: block; }
  .auth-side { justify-content: flex-start; align-items: center; }
  .auth-card { padding: 30px 28px; }
}
.auth-h { text-wrap: balance; }
