/* Degenerates Lounge — "Luxe lounge" theme: deep navy, gold accents, rounded cards */
@font-face{font-family:'Inter';font-weight:400;font-display:swap;src:url(/fonts/inter-400.woff2) format('woff2');}
@font-face{font-family:'Inter';font-weight:500;font-display:swap;src:url(/fonts/inter-500.woff2) format('woff2');}
@font-face{font-family:'Inter';font-weight:600;font-display:swap;src:url(/fonts/inter-600.woff2) format('woff2');}
@font-face{font-family:'Inter';font-weight:700;font-display:swap;src:url(/fonts/inter-700.woff2) format('woff2');}
@font-face{font-family:'Playfair Display';font-weight:700;font-display:swap;src:url(/fonts/playfair-display-700.woff2) format('woff2');}
@font-face{font-family:'Playfair Display';font-weight:700;font-style:italic;font-display:swap;src:url(/fonts/playfair-display-700-italic.woff2) format('woff2');}
:root {
  --bg: #070b18; --bg2: #0a1022; --surface: #10172e; --surface2: #161f3d; --border: #24305a; --border2: #34437a;
  --gold: #e9c873; --gold2: #c9a24a; --gold3: #6b5420; --blue: #4169e1;
  /* legacy names (also used by admin.html) */
  --g: var(--gold); --g2: var(--gold2); --g3: #2a2412;
  --text: #f4efe3; --muted: #a3abc7; --red: #ff7a7a;
  --gold-grad: linear-gradient(135deg, #f6dd94 0%, #e2b85c 45%, #b98a33 100%);
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --px: var(--sans); --mono: var(--sans);
  --r: 14px; --r-sm: 10px;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 8px 24px -12px rgba(0,0,0,.7);
  --bar: 64px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; background: radial-gradient(1200px 600px at 50% -200px, rgba(65,105,225,.22), transparent 70%), radial-gradient(800px 400px at 100% 0, rgba(233,200,115,.08), transparent 70%), var(--bg); background-attachment: fixed; color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.5; min-height: 100vh; padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom) + 24px); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--bg); }
a { color: var(--gold); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* buttons */
.btn { font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; background: var(--surface2); color: var(--text); border: 1px solid var(--border2); border-radius: 999px; padding: 0 18px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1.2; transition: transform .12s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease, filter .15s ease; }
.btn:hover { border-color: var(--gold2); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--gold-grad); color: #1a1407; border-color: transparent; box-shadow: 0 6px 18px -8px rgba(233,200,115,.6); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { color: var(--red); border-color: rgba(255,122,122,.35); background: rgba(255,122,122,.06); }
.btn.danger:hover { border-color: var(--red); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.small { min-height: 36px; font-size: 12px; padding: 0 14px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(7,11,24,.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); padding-top: env(safe-area-inset-top); }
.topbar .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.wordmark { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .28em; line-height: 1.35; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wordmark b { display: inline-block; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 20px; letter-spacing: .02em; color: var(--gold); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
#btn-search { width: 44px; min-height: 44px; padding: 0; }
.sbar { padding: 0 0 14px; }
.sbar .wrap { display: flex; gap: 8px; }
.sbar #q-clear { width: 44px; min-height: 44px; padding: 0; flex: none; }
.input { font-family: var(--sans); font-size: 16px; background: var(--bg2); color: var(--text); border: 1px solid var(--border2); border-radius: 999px; padding: 0 18px; min-height: 44px; width: 100%; transition: border-color .15s ease, box-shadow .15s ease; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233,200,115,.18); outline: none; }
.input::placeholder { color: #7480a6; letter-spacing: .06em; }

/* hero */
.hero { border-bottom: 1px solid var(--border); }
.hero .wrap { padding-top: 32px; padding-bottom: 28px; }
.headline { font-family: var(--display); font-weight: 700; font-style: italic; font-size: clamp(30px, 6vw, 52px); line-height: 1.05; letter-spacing: -.01em; text-transform: none; margin: 0 0 10px; color: var(--text); }

.tagline { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 560px; }
.stat { background: linear-gradient(180deg, var(--surface2), var(--surface)); border: 1px solid var(--border); border-radius: var(--r); padding: 12px 8px; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font-family: var(--display); font-size: 26px; line-height: 1.1; font-weight: 700; color: var(--gold); }
.stat small { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .14em; }

/* tabs + chips */
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 22px 0 14px; padding: 4px; background: var(--bg2); border: 1px solid var(--border); border-radius: 999px; }
.tab { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .06em; min-height: 44px; background: none; color: var(--muted); border: 0; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 6px; transition: background-color .15s ease, color .15s ease; }
.tab:hover { color: var(--text); }
.tab small { font-size: 11px; font-weight: 600; min-width: 22px; padding: 1px 6px; border-radius: 999px; background: rgba(255,255,255,.07); }
.tab[aria-pressed='true'] { background: var(--gold-grad); color: #1a1407; box-shadow: 0 6px 18px -10px rgba(233,200,115,.7); }
.tab[aria-pressed='true'] small { background: rgba(26,20,7,.15); }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 12px; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; scroll-snap-align: start; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .04em; min-height: 36px; padding: 0 14px; background: var(--surface); color: var(--muted); border: 1px solid var(--border); border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: border-color .15s ease, color .15s ease, background-color .15s ease; }
.chip:hover { color: var(--text); border-color: var(--border2); }
.chip small { font-size: 11px; color: var(--gold2); }
.chip[aria-pressed='true'] { color: var(--gold); border-color: var(--gold2); background: rgba(233,200,115,.1); }
.chip[aria-pressed='true'] small { color: var(--gold); }

/* list header */
.lhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 14px; min-height: 36px; }
.ltitle { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--muted); margin: 0; line-height: 1.5; }
.ltitle b { color: var(--gold); font-weight: 700; }
.day { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--gold2); margin: 24px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }

/* rows */
.list { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.row { position: relative; display: flex; align-items: center; gap: 10px; background: linear-gradient(180deg, var(--surface2), var(--surface)); border: 1px solid var(--border); border-radius: var(--r); padding: 10px 10px 10px 12px; min-height: 68px; box-shadow: var(--shadow); transition: border-color .15s ease, transform .15s ease; }
.row:hover { border-color: var(--border2); }
.row.opened .main { opacity: .55; }
.row.picked { border-color: var(--gold2); background: linear-gradient(180deg, #221f2c, #17182a); box-shadow: 0 0 0 1px rgba(233,200,115,.25), var(--shadow); }
.tick { display: none; flex: none; width: 24px; height: 24px; border: 1.5px solid var(--border2); border-radius: 7px; background: var(--bg2); place-items: center; color: #1a1407; }
.selecting .tick { display: grid; }
.row.picked .tick { background: var(--gold-grad); border-color: transparent; }
.main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 0; text-align: left; min-height: 48px; }
.fav { flex: none; width: 42px; height: 42px; display: grid; place-items: center; background: var(--bg2); border: 1px solid var(--c, var(--border)); border-radius: 12px; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--c, var(--gold)); overflow: hidden; }
.fav img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ln { min-width: 0; }
.ln b { display: flex; align-items: center; min-width: 0; font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap; }
.ln b .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ln b .badge-new, .ln b .badge-q { flex: none; }
.ln small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge-new { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .08em; background: var(--gold-grad); color: #1a1407; padding: 2px 7px; border-radius: 999px; margin-left: 8px; vertical-align: 2px; }
.star { flex: none; width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); transition: color .15s ease, border-color .15s ease; }
.star:hover { color: var(--text); border-color: var(--border2); }
.star[aria-pressed='true'] { color: var(--gold); border-color: var(--gold3); background: rgba(233,200,115,.08); }
.star[aria-pressed='true'] svg { fill: currentColor; }
.open { flex: none; min-width: 72px; }
.selecting .open { display: none; }

.empty { text-align: center; padding: 56px 10px; font-size: 15px; line-height: 1.7; color: var(--muted); display: grid; gap: 18px; justify-items: center; }
.notice { margin: 32px 0 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); font-size: 13px; color: var(--muted); }
.notice b { color: var(--text); }
.foot { text-align: center; color: var(--muted); font-size: 12px; letter-spacing: .08em; padding: 26px 10px 10px; }
.foot a { color: var(--gold); text-decoration: none; font-weight: 600; }
.foot a:hover { text-decoration: underline; }

/* bottom bars */
.bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(7,11,24,.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
.btabs { display: grid; grid-template-columns: repeat(4, 1fr); height: var(--bar); }
.btab { position: relative; background: none; border: 0; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; transition: color .15s ease; }
.btab svg.i { width: 20px; height: 20px; }
.btab[aria-pressed='true'] { color: var(--gold); }
.btab[aria-pressed='true']::before { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; border-radius: 0 0 2px 2px; background: var(--gold-grad); }
.selbar { display: flex; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--surface); }
.selbar .info { font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--gold); flex: 1; line-height: 1.5; }
.selbar .btn { flex: none; }

#toasts { position: fixed; left: 50%; bottom: calc(var(--bar) + env(safe-area-inset-bottom) + 90px); transform: translateX(-50%); z-index: 1500; display: grid; gap: 8px; width: min(92vw, 520px); pointer-events: none; }
.toast { font-size: 13px; font-weight: 600; letter-spacing: .03em; line-height: 1.5; background: var(--surface2); border: 1px solid var(--gold2); border-radius: 12px; color: var(--text); padding: 12px 16px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.8); }
.toast.warn { border-color: #e0a24a; color: #ffd9a0; }


/* select all / queue */
.lactions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.badge-q { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .08em; border: 1px solid var(--gold2); color: var(--gold); padding: 1px 7px; border-radius: 999px; margin-left: 8px; vertical-align: 2px; }
.bcount { position: absolute; top: 6px; left: calc(50% + 6px); font-size: 10px; font-weight: 700; color: #1a1407; background: var(--gold-grad); padding: 1px 6px; min-width: 18px; border-radius: 999px; text-align: center; }
.bcount:empty { display: none; }
.qtools { display: grid; gap: 12px; margin: 0 0 16px; }
.qtools .qrow { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.qtools .qrow .btn { flex: 1; }
.qtools .qrow .btn.small { flex: none; }
select, .qtools select { font-family: var(--sans); font-size: 14px; font-weight: 600; background: var(--bg2); color: var(--text); border: 1px solid var(--border2); border-radius: 999px; min-height: 44px; padding: 0 14px; }
.qtools select { flex: 1; }
.qleft { font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--gold); text-align: right; line-height: 1.5; }
.btn.big { min-height: 56px; font-size: 15px; width: 100%; }
.qhint { margin: 0; font-size: 13px; color: var(--muted); }
.panel.qtools { background: linear-gradient(180deg, var(--surface2), var(--surface)); border: 1px solid var(--border); border-radius: calc(var(--r) + 4px); box-shadow: var(--shadow); padding: 16px; }

/* desktop */
@media (min-width: 761px) {
  .list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .wordmark { font-size: 12px; }
  .wordmark b { font-size: 24px; }
  .btabs { max-width: 560px; margin: 0 auto; }
  .chips { margin: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; overflow: visible; }
}
@media (min-width: 1000px) { .list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .hero .wrap { padding-top: 20px; padding-bottom: 18px; }
  .headline { font-size: 30px; margin-bottom: 6px; }
  .tagline { margin-bottom: 14px; font-size: 14px; }
  .stat { padding: 10px 6px; }
  .stat b { font-size: 22px; }
  .tabs { display: none; }
  .lhead { flex-wrap: wrap; }
  .lactions { width: 100%; justify-content: flex-start; }
}
@media (max-width: 360px) { .wordmark b { font-size: 17px; } .open { min-width: 58px; padding: 0 10px; } .headline { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.headline em { font-style: italic; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--gold); }
.logo { width: 44px; height: 44px; flex: none; display: block; filter: drop-shadow(0 0 10px rgba(233,200,115,.25)); }
@media (min-width: 761px) { .logo { width: 48px; height: 48px; } }
