/* Polaris client-fresh — base.css
   Values extracted verbatim from the locked design HTML
   (lobby_lock + table_lock, 2026-09-29). */

@font-face { font-family: 'Manrope'; src: url('../assets/fonts/manrope-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../assets/fonts/manrope-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../assets/fonts/manrope-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../assets/fonts/manrope-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('../assets/fonts/sora-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('../assets/fonts/sora-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../assets/fonts/montserrat-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
/* Display font = Manrope (owner pick A, 2026-10-05). The old serif names are
   kept as aliases so every heading switches at once; size-adjust keeps the
   old sizes looking right (the serifs ran small). */
@font-face { font-family: 'Cinzel'; src: url('../assets/fonts/manrope-800.woff2') format('woff2'); font-weight: 100 900; size-adjust: 92%; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('../assets/fonts/archivo-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('../assets/fonts/archivo-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('../assets/fonts/archivo-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('../assets/fonts/archivo-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('../assets/fonts/manrope-700.woff2') format('woff2'); font-weight: 100 900; size-adjust: 88%; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('../assets/fonts/barlow-condensed-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }

/* The hidden attribute must always win: several blocks (login two-step,
   app tabs) set display:flex in CSS, which silently defeats it. */
[hidden] { display: none !important; }

:root {
  /* gold accents (locked) */
  --gold-1: #fbeed0;   /* gradient top   */
  --gold-2: #e3c58a;   /* gradient mid   */
  --gold-3: #a9803f;   /* gradient bottom */
  --gold-line: #c9a463;
  --gold-btn-a: #ecd6a6;
  --gold-btn-b: #c9a463;
  --gold-btn-ink: #1c1406;
  --sel-outline: #b79a5c;   /* selected state: 1px outline on #141414/#1a1710 */
  /* text (locked) */
  --ink: #f2f2f2;
  --ink-muted: #8c8c8c;
  --ink-dim: #a0a0a0;
  /* surfaces (locked) */
  --card: #0e0e0e;
  --card-border: #1c1c1c;
  --hairline: #252525;
  --chip-gold: #ffd66b;     /* stack / pot gold (table lock) */
  --green: #2fd682;         /* your accent */
  --amber: #ffc233;         /* other acting */
  --red: #ff4d5e;
  --felt-ring: #1fb56c;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #06080c;      /* desktop void around the phone shell */
  font-family: 'Manrope', sans-serif;
  color: #f2f2f2;
  -webkit-font-smoothing: antialiased;
}
a { color: #e3c58a; } a:hover { color: #fbeed0; }
button, input, select { font-family: inherit; }
button { cursor: pointer; }
img { -webkit-user-drag: none; }
.num { font-family: 'Sora', sans-serif; }

/* ---------- app shell: phone frame, 390-560, centered 544 on desktop ---- */
#frame {
  position: relative;
  width: 100%;
  max-width: 544px;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  /* locked page background (01_home body) */
  background:
    repeating-linear-gradient(100deg, #ffffff05 0 1px, transparent 1px 3px),
    repeating-linear-gradient(10deg, #00000022 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at 85% 8%, #1E1E21 0%, transparent 55%),
    radial-gradient(ellipse at 10% 95%, #18181B 0%, transparent 50%),
    #111113;
}
@media (min-width: 560px) {
  #frame { min-height: 100dvh; box-shadow: 0 0 80px #000c; }
}
/* Tablets and wide windows (owner rule 2026-10-06: the app must fit the
   device, never a phone strip in the middle of an iPad). The frame fills
   the screen; fixed bars and lists read --app-w; sheets stay a readable
   width (--sheet-w) centred. */
:root { --app-w: 544px; --sheet-w: 560px; }
@media (min-width: 740px) {
  :root { --app-w: 100%; --sheet-w: 640px; }
  #frame { max-width: none; box-shadow: none; }
}
.arcs { position: absolute; left: 0; top: 0; width: 100%; height: 330px; pointer-events: none; }

/* ---------- views ---------- */
main[data-view] { display: none; }
main[data-view].on { display: block; }
/* the visible tab fills the column so the bottom rail docks to the window
   bottom on ANY height (desktop windows are taller than the phone frame);
   without this the rail sits right after short content with dead space
   below it — owner report 2026-10-03 */
#app-scroll .app-tab { flex: 1 1 auto; }
.scroll { position: relative; overflow-y: auto; overscroll-behavior: contain; }

/* ---------- gold gradient text (locked) ---------- */
.gold-text {
  background: linear-gradient(180deg, #fbeed0 0%, #e3c58a 45%, #a9803f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h1.gold, .title-gold {
  font-family: 'Cinzel', serif; font-weight: 600; letter-spacing: .5px;
  filter: drop-shadow(0 1px 0 #000);
}

/* ---------- buttons ---------- */
.btn-gold {                                   /* wizard Next (locked 10) */
  height: 48px; border-radius: 12px; border: none;
  background: linear-gradient(180deg, #ecd6a6, #c9a463);
  color: #1c1406; font-size: 14.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; text-decoration: none;
}
.btn-gold-tall {                              /* Enter Polaris (locked 06) */
  height: 52px; border-radius: 12px; border: none;
  background: linear-gradient(180deg, #fbeed0, #d8b774 55%, #b08a3e);
  color: #231805; font-size: 15px; font-weight: 800;
  box-shadow: 0 6px 14px #0009, inset 0 1px 0 #fff8;
  display: flex; align-items: center; justify-content: center; text-decoration: none;
}
.btn-gold-pill {                              /* + New table (locked 08) */
  height: 30px; padding: 0 12px; border-radius: 10px; border: none;
  background: linear-gradient(180deg, #fbeed0, #d8b774 55%, #b08a3e);
  box-shadow: 0 4px 10px #0009, inset 0 1px 0 #fff8;
  color: #231805; font-size: 12px; font-weight: 800; white-space: nowrap;
  display: flex; align-items: center; gap: 5px;
}
.btn-gold-fat {                               /* gold confirm button (green/red variants below) */
  height: 48px; border-radius: 14px; font-size: 15px; font-weight: 800; border: none; color: #1A1406;
  background: linear-gradient(180deg, #E7C873, #C9A162); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
}
.btn-green { background: linear-gradient(180deg, #2fd682, #138a4a); color: #04210f; }
.btn-red   { background: linear-gradient(180deg, #b42a33, #7a141b); color: #fff; }
.btn-outline {                                /* wizard Back (locked 10) */
  flex: 1 1 0; height: 48px; border-radius: 12px; border: 1px solid #333;
  background: #0e0e0e; color: #f2f2f2; font-size: 14.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; text-decoration: none;
}
.btn:disabled, button:disabled { opacity: .45; cursor: not-allowed; }

/* icon button (locked: menu / bell / back) */
.icon-btn {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  border: 1px solid #252525; background: #0d0d0dcc; color: #f2f2f2;
  display: flex; align-items: center; justify-content: center; padding: 0;
  position: relative; text-decoration: none;
}
.badge-dot {
  position: absolute; right: -3px; top: -3px; min-width: 16px; height: 16px;
  border-radius: 8px; background: #ff4d5e; color: #fff; font-size: 9.5px;
  font-weight: 800; display: flex; align-items: center; justify-content: center;
  border: 2px solid #080808;
}

/* ---------- fields (locked LG7) ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label span.lbl {
  font-family: 'Montserrat', sans-serif; font-size: 8.5px; letter-spacing: 2.4px; color: #a0a0a0;
}
.field .in {
  height: 46px; border-radius: 11px;
  background: linear-gradient(180deg, #050505, #0e0e0e);
  border: 1px solid #2e2e2e;
  box-shadow: inset 0 2px 4px #000c, 0 1px 0 #ffffff10;
  display: flex; align-items: center; padding: 0 12px; gap: 8px;
}
.field .in:focus-within { border-color: #c9a463; }
.field input {
  flex-grow: 1; border: none; background: transparent; color: #f2f2f2;
  font-size: 14px; outline: none;
}

/* section card (locked wizard) */
.panel {
  border-radius: 14px; padding: 2px 14px 4px;
  background: #0e0e0e; border: 1px solid #1c1c1c;
}
.panel > .cap {
  padding: 11px 0 3px; font-family: 'Montserrat', sans-serif;
  font-size: 9px; font-weight: 500; letter-spacing: 2.4px; color: #8c8c8c;
}

/* segmented control (locked wizard format toggle) */
.seg {
  display: flex; gap: 3px; padding: 3px; border-radius: 11px;
  background: #0a0a0a; border: 1px solid #232323;
}
.seg button {
  flex-grow: 1; height: 30px; border-radius: 8px; border: none;
  font-size: 12px; font-weight: 800; white-space: nowrap;
  background: transparent; color: #8c8c8c; box-shadow: none;
}
.seg button.on { background: #1e1e1e; color: #f2f2f2; box-shadow: 0 0 0 1px #333; }
.seg button:disabled { color: #444; text-decoration: line-through; }

/* filter chips (locked 01_home) */
.chip {
  height: 30px; padding: 0 12px; border-radius: 15px;
  border: 1px solid #252525; background: transparent; color: #a6a6a6;
  font-size: 12px; font-weight: 700; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
}
.chip.on { border-color: #c9a463; background: #161616; color: #e3c58a; }
.chip .n { font-family: 'Sora', sans-serif; font-size: 10.5px; opacity: .75; }

/* checkbox pill (locked 08 controls row) */
.ck {
  display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  color: #f2f2f2; white-space: nowrap; cursor: pointer; user-select: none;
}
.ck .box {
  width: 16px; height: 16px; border-radius: 5px; border: 1px solid #3a3a3a;
  background: #0b0b0b; display: flex; align-items: center; justify-content: center;
}
.ck.on .box {
  border-color: #c9a463;
  background: linear-gradient(180deg, #fbeed0 0%, #e3c58a 45%, #a9803f 100%);
}
.ck.on .box::after { content: "✓"; color: #1a1206; font-size: 10px; font-weight: 900; line-height: 1; }

/* ---------- bottom rails ---------- */
.rail {
  position: sticky; bottom: 0; z-index: 40; display: flex; align-items: flex-end;
  background: linear-gradient(180deg, #0e0e0e, #060606);
  border-top: 1px solid #252525;
}
.rail a {
  position: relative; flex-grow: 1; display: flex; flex-direction: column;
  align-items: center; gap: 3px; padding: 10px 0 12px;
  color: #8c8c8c; text-decoration: none; font-size: 10.5px; font-weight: 700;
  letter-spacing: .5px;
}
.rail a.on { color: #e3c58a; }
.rail a.on::before {
  content: ''; position: absolute; top: 0; left: 32%; right: 32%; height: 2px; background: #e3c58a;
}

/* ---------- misc ---------- */
.avatar-ring {
  border-radius: 50%; border: 1.5px solid #c9a463;
  background: radial-gradient(circle at 50% 30%, #232323, #000 75%);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: 0 0 0 2px #0a0a0a;
}
.avatar-ring img { width: 70%; height: 70%; object-fit: cover; border-radius: 50%; }

/* toasts */
#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: 92px; z-index: 200; display: flex; flex-direction: column; gap: 8px; width: min(90vw, 420px); pointer-events: none; }
.toast { padding: 10px 16px; border-radius: 12px; background: #161a22f2; border: 1px solid #2c3542; color: #f2f2f2; font-size: 13px; font-weight: 600; box-shadow: 0 8px 20px #000a; }
.toast.error { border-color: #7a2a33; color: #ffb9c0; }
.toast.ok { border-color: #1f6b45; color: #b5f2cf; }

/* modal sheet (locked guest gate sheet) */
.scrim { position: fixed; inset: 0; background: #000000a8; z-index: 60; }
.sheet {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 70;
  width: 100%; max-width: var(--sheet-w); box-sizing: border-box; max-height: 88dvh; overflow-y: auto;
  border-radius: 22px 22px 0 0; background: #1A1A1D; border-top: 1px solid #2E2E33;
  box-shadow: 0 -20px 40px rgba(0,0,0,.7); color: #F2EFEA;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: #3A3A3F; margin: 10px auto 0; }

/* generic header row used across screens */
.toprow { display: flex; align-items: center; gap: 8px; padding: 14px 12px 0; position: relative; }
.toprow .midtitle {
  flex-grow: 1; display: flex; justify-content: center; align-items: center; gap: 8px;
  font-family: 'Montserrat', sans-serif; font-size: 10px; letter-spacing: 3.5px; color: #e3c58a;
}
.empty-note { padding: 28px 24px; text-align: center; color: #8c8c8c; font-size: 13px; line-height: 1.5; }
.spin { width: 22px; height: 22px; margin: 40px auto; border-radius: 50%; border: 2px solid #2a2a2a; border-top-color: #c9a463; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Desktop windows run taller than the 844 phone frame: scale the whole
   frame up so text stays legible (owner rule 2026-10-03: text must be
   legible). The table view opts out — its felt geometry is computed in
   CSS pixels and must not be rescaled under the seats. */
@media (min-height: 950px) and (min-width: 480px) {
  #frame { zoom: 1.15; min-height: calc(100dvh / 1.15); }
  /* inline min-heights must shrink with the zoom or the frame overflows */
  #app-scroll, main[data-view="club"] .scroll { min-height: calc(100dvh / 1.15) !important; }
  main[data-view="table"] { zoom: .87; }
}
@media (min-height: 1150px) and (min-width: 540px) {
  #frame { zoom: 1.28; min-height: calc(100dvh / 1.28); }
  #app-scroll, main[data-view="club"] .scroll { min-height: calc(100dvh / 1.28) !important; }
  main[data-view="table"] { zoom: .781; }
}

/* No visible scrollbars anywhere (owner rule 2026-10-03: they look cheap
   in the desktop shell). Scrolling still works — wheel, touch, drag. */
::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }
html, body, .scroll, #app-scroll, #frame { scrollbar-width: none; -ms-overflow-style: none; }

/* Owner rule 2026-10-03: the page itself never scrolls — the window IS the
   app. Only inner lists (club list, lobby tables, store) scroll; the frame
   is exactly the viewport height. */
html, body { height: 100%; overflow: hidden; }
#frame { height: 100dvh; min-height: 0; }
@media (min-height: 950px) and (min-width: 480px) {
  #frame { height: calc(100dvh / 1.15); min-height: 0; }
}
@media (min-height: 1150px) and (min-width: 540px) {
  #frame { height: calc(100dvh / 1.28); min-height: 0; }
}
