/* All In Club, izgled (faza 1)
   Ideja: privatna kartaška soba. Zelena čoja, mesingana ivica stola, bordo koža, slonovača karata. */

:root {
  --night: #0B231D;
  --night-2: #0F2E26;
  --felt: #13573F;
  --felt-deep: #0D3F2F;
  --brass: #D4AF6A;
  --brass-hi: #F0D59A;
  --brass-lo: #8C7443;
  --oxblood: #8E2A36;
  --oxblood-hi: #B23A48;
  --ivory: #F3EBDC;
  --ink: #EAE3D3;
  --muted: #9CB4A9;
  --line: rgba(212, 175, 106, 0.18);
  --glass: rgba(9, 30, 24, 0.72);
  --ok: #62C48E;
  --bad: #E36A5F;

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --nav-h: 64px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(130% 70% at 50% -12%, #1A6A4E 0%, rgba(19, 87, 63, 0.55) 30%, transparent 62%),
    radial-gradient(90% 60% at 50% 120%, #2A0F14 0%, transparent 60%),
    var(--night);
  background-attachment: fixed;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
/* tekstura čoje */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#app { position: relative; z-index: 1; min-height: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 2px; }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.pos { color: var(--ok); }
.neg { color: var(--bad); }
.muted { color: var(--muted); }
h1, h2, h3 { margin: 0; font-weight: 400; }

/* ===================== DUGMAD I POLJA ===================== */
.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: #231A08;
  background: linear-gradient(180deg, var(--brass-hi), var(--brass) 55%, #B8924F);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 -2px 0 rgba(0, 0, 0, 0.18) inset, 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease, filter 0.12s ease, opacity 0.12s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.98); filter: brightness(0.95); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.btn.ghost {
  color: var(--brass-hi);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--brass-lo);
}
.btn.danger { color: #fff; background: linear-gradient(180deg, var(--oxblood-hi), var(--oxblood)); }
.btn.quiet { color: var(--ink); background: rgba(255, 255, 255, 0.06); box-shadow: none; }
.btn.busy { position: relative; color: transparent !important; }
.btn.busy::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #231A08; border-right-color: transparent; animation: spin 0.7s linear infinite;
}
.btn.ghost.busy::after, .btn.quiet.busy::after, .btn.danger.busy::after { border-color: var(--ink); border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin: 0 0 6px 4px; font-weight: 600; }
.input, select.input, textarea.input {
  width: 100%;
  padding: 13px 16px;
  font-size: 16px; /* iPhone ne zumira */
  border-radius: var(--r-md);
  border: 1px solid rgba(212, 175, 106, 0.22);
  background: rgba(3, 18, 14, 0.55);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.input::placeholder { color: rgba(156, 180, 169, 0.6); }
.input:focus { border-color: var(--brass); background: rgba(3, 18, 14, 0.8); }
.row { display: flex; gap: 10px; align-items: center; }
.row > .grow { flex: 1; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px; }
.switch input { appearance: none; width: 50px; height: 30px; border-radius: 99px; background: rgba(255, 255, 255, 0.14); position: relative; transition: background 0.2s; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--ivory); transition: transform 0.2s; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); }
.switch input:checked { background: var(--felt); box-shadow: inset 0 0 0 1.5px var(--brass); }
.switch input:checked::after { transform: translateX(20px); background: var(--brass-hi); }

/* ===================== ŽETON I AVATAR ===================== */
.chip {
  --c: var(--oxblood);
  width: 22px; height: 22px; border-radius: 50%; flex: none; position: relative;
  background:
    radial-gradient(circle, var(--c) 0 42%, transparent 43%),
    repeating-conic-gradient(var(--ivory) 0 14deg, var(--c) 14deg 45deg);
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.35), 0 2px 4px rgba(0, 0, 0, 0.4);
}
.chip::after { content: ""; position: absolute; inset: 27%; border-radius: 50%; border: 1px dashed rgba(243, 235, 220, 0.7); }
.chip.lg { width: 44px; height: 44px; }

.av {
  --av: var(--oxblood);
  width: 38px; height: 38px; border-radius: 50%; flex: none; position: relative;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.28), transparent 55%), var(--av);
  box-shadow: 0 0 0 2px rgba(212, 175, 106, 0.55), 0 3px 8px rgba(0, 0, 0, 0.35);
}
.av b { font-family: var(--serif); font-weight: 400; font-size: 18px; color: var(--ivory); line-height: 1; }
.av i {
  position: absolute; right: -3px; bottom: -3px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--ivory); color: #1B1B1B; font-style: normal; font-size: 11px; line-height: 17px; text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.av.red i { color: var(--oxblood); }
.av.sm { width: 30px; height: 30px; }
.av.sm b { font-size: 14px; }
.av.sm i { width: 14px; height: 14px; font-size: 9px; line-height: 14px; }
.av.xl { width: 84px; height: 84px; box-shadow: 0 0 0 3px var(--brass), 0 10px 28px rgba(0, 0, 0, 0.45); }
.av.xl b { font-size: 40px; }
.av.xl i { width: 28px; height: 28px; font-size: 17px; line-height: 28px; }
.av .dot { position: absolute; left: -1px; top: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px var(--night); }

/* ===================== PRIJAVA ===================== */
.auth {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(28px + var(--safe-t)) 22px calc(28px + var(--safe-b));
  max-width: 420px; margin: 0 auto;
}
.fan { position: relative; width: 220px; height: 150px; margin-bottom: 14px; }
.pc {
  position: absolute; left: 50%; bottom: 0; width: 76px; height: 108px; margin-left: -38px;
  border-radius: 9px;
  background: linear-gradient(160deg, #FFFBF2, var(--ivory) 60%, #E4D8C2);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15), 0 10px 22px rgba(0, 0, 0, 0.45);
  color: #15120E;
  transform-origin: 50% 120%;
  transform: rotate(var(--rot)) translateY(0);
  animation: deal 0.75s cubic-bezier(0.2, 0.9, 0.25, 1.15) both;
  animation-delay: var(--d);
}
.pc .ix { position: absolute; top: 6px; left: 7px; font-family: var(--serif); font-size: 19px; line-height: 0.95; text-align: center; }
.pc .ix small { display: block; font-size: 14px; }
.pc .big { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; }
.pc.hero { box-shadow: 0 0 0 1.5px var(--brass), 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 175, 106, 0.25); }
@keyframes deal {
  from { transform: rotate(0deg) translateY(160px) scale(0.8); opacity: 0; }
  60% { opacity: 1; }
  to { transform: rotate(var(--rot)) translateY(0) scale(1); opacity: 1; }
}
.brand {
  font-family: var(--serif);
  font-size: clamp(44px, 13vw, 58px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-align: center;
  background: linear-gradient(180deg, var(--brass-hi) 10%, var(--brass) 55%, var(--brass-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 2px 30px rgba(212, 175, 106, 0.12);
  animation: rise 0.6s 0.55s ease-out both;
}
.tagline { margin: 10px 0 26px; color: var(--muted); text-align: center; animation: rise 0.6s 0.65s ease-out both; }
.auth-card { width: 100%; animation: rise 0.6s 0.75s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 18px;
}
.seg button {
  border: 0; background: transparent; padding: 10px 8px; border-radius: 999px;
  font-weight: 700; font-size: 13.5px; color: var(--muted); position: relative; white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.seg button.on { background: var(--felt); color: var(--ivory); box-shadow: inset 0 0 0 1px rgba(212, 175, 106, 0.45); }
.seg .badge { display: inline-block; vertical-align: 1px; margin-left: 4px; min-width: 16px; height: 16px; line-height: 16px; font-size: 10px; padding: 0 4px; box-shadow: none; }
.fine { font-size: 13px; color: var(--muted); text-align: center; margin: 16px 0 0; }
.form-error { color: var(--bad); font-size: 14px; min-height: 20px; margin: -4px 4px 10px; }

/* ===================== ČEKANJE ===================== */
.wait { min-height: 100svh; display: grid; place-items: center; padding: 30px 24px; text-align: center; }
.wait h2 { font-family: var(--serif); font-size: 32px; margin: 26px 0 10px; color: var(--brass-hi); }
.wait p { color: var(--muted); max-width: 320px; margin: 0 auto 26px; }
.shuffle { position: relative; width: 76px; height: 108px; margin: 0 auto; }
.shuffle .pc { animation: shuffle 2.4s ease-in-out infinite; --rot: 0deg; transform-origin: 50% 50%; }
.shuffle .pc:nth-child(2) { animation-delay: 0.8s; }
.shuffle .pc:nth-child(3) { animation-delay: 1.6s; }
.back {
  background:
    repeating-linear-gradient(45deg, rgba(212, 175, 106, 0.35) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(-45deg, rgba(212, 175, 106, 0.35) 0 2px, transparent 2px 9px),
    var(--oxblood) !important;
  box-shadow: inset 0 0 0 4px var(--ivory), 0 10px 22px rgba(0, 0, 0, 0.45) !important;
}
@keyframes shuffle {
  0%, 100% { transform: translateX(0) rotate(0); z-index: 1; }
  25% { transform: translateX(-60px) rotate(-12deg); z-index: 3; }
  50% { transform: translateX(0) rotate(0); z-index: 3; }
}

/* ===================== OKVIR APLIKACIJE ===================== */
.shell { max-width: 560px; margin: 0 auto; min-height: 100svh; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + var(--safe-t)) 16px 10px;
  background: linear-gradient(180deg, rgba(11, 35, 29, 0.96), rgba(11, 35, 29, 0.82));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo { font-family: var(--serif); font-size: 24px; color: var(--brass-hi); line-height: 1; }
.balance {
  display: flex; align-items: center; gap: 9px;
  border: 0; border-radius: 999px; padding: 6px 14px 6px 6px;
  background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 800; font-size: 16px; color: var(--ivory);
}
.balance.pulse { animation: pulse 0.7s ease-out; }
@keyframes pulse {
  0% { box-shadow: inset 0 0 0 1px var(--line), 0 0 0 0 rgba(212, 175, 106, 0.7); }
  100% { box-shadow: inset 0 0 0 1px var(--line), 0 0 0 16px rgba(212, 175, 106, 0); }
}
.view { flex: 1; padding: 18px 16px calc(var(--nav-h) + 24px + var(--safe-b)); }
.view.flush { padding: 0; display: flex; flex-direction: column; }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding-bottom: var(--safe-b);
  background: rgba(8, 26, 21, 0.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.nav-in { max-width: 560px; margin: 0 auto; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: var(--nav-h); }
.nav button {
  border: 0; background: none; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; font-weight: 700; position: relative;
  transition: color 0.2s;
}
.nav svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav button.on { color: var(--brass-hi); }
.nav button.on::before {
  content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; border-radius: 2px;
  background: var(--brass); box-shadow: 0 0 12px var(--brass);
}
.badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--oxblood-hi); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px var(--night);
}
.nav .badge { position: absolute; top: 7px; left: calc(50% + 6px); }

.conn {
  position: fixed; top: calc(62px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 40;
  background: var(--oxblood); color: #fff; font-size: 13px; font-weight: 700;
  padding: 7px 14px; border-radius: 99px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ===================== ZAJEDNIČKI BLOKOVI ===================== */
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 2px 16px; }
.head h2 { font-family: var(--serif); font-size: 30px; color: var(--ivory); line-height: 1.05; }
.sub { font-size: 13px; color: var(--muted); font-weight: 600; margin: 22px 4px 10px; }
.panel {
  background: linear-gradient(180deg, rgba(19, 60, 48, 0.72), rgba(12, 40, 32, 0.72));
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 16px;
}
.list { display: flex; flex-direction: column; }
.item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px; border: 0; background: none; text-align: left; width: 100%;
  border-bottom: 1px solid rgba(212, 175, 106, 0.1);
}
.item:last-child { border-bottom: 0; }
.item .main { flex: 1; min-width: 0; }
.item .t { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .s { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .end { text-align: right; flex: none; }
.tag { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; vertical-align: middle; margin-left: 6px; }
.tag.admin { background: rgba(212, 175, 106, 0.18); color: var(--brass-hi); }
.tag.banned { background: rgba(227, 106, 95, 0.18); color: var(--bad); }
.empty { text-align: center; color: var(--muted); padding: 34px 20px; }
.empty .suit { font-size: 34px; color: var(--brass-lo); display: block; margin-bottom: 8px; }

/* ===================== LOBI I STOLOVI ===================== */
.strip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 18px; }
.stack { display: flex; }
.stack .av { margin-right: -10px; }
.stack .av:last-child { margin-right: 0; }
.strip .grow { flex: 1; font-size: 14px; color: var(--muted); }
.strip b { color: var(--ivory); }

.tables { display: flex; flex-direction: column; gap: 14px; }
.tbl {
  display: grid; grid-template-columns: 116px 1fr; gap: 16px; align-items: center;
  padding: 14px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(19, 60, 48, 0.75), rgba(10, 34, 27, 0.8));
  box-shadow: inset 0 0 0 1px var(--line), 0 12px 28px rgba(0, 0, 0, 0.3);
}
.tbl.closed { opacity: 0.55; }
.oval {
  position: relative; height: 74px; border-radius: 999px;
  background: radial-gradient(ellipse at 50% 40%, #1C7A57, var(--felt) 45%, var(--felt-deep));
  box-shadow: 0 0 0 5px #3B2415, 0 0 0 6.5px var(--brass), inset 0 0 18px rgba(0, 0, 0, 0.55), 0 8px 18px rgba(0, 0, 0, 0.4);
  display: grid; place-items: center; margin: 7px;
}
.oval .bl { font-family: var(--serif); font-size: 22px; color: var(--ivory); line-height: 1; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); }
.oval .seatdots { position: absolute; inset: -12px; }
.oval .seatdots i {
  position: absolute; width: 8px; height: 8px; border-radius: 50%; margin: -4px 0 0 -4px;
  background: rgba(243, 235, 220, 0.18); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}
.oval .seatdots i.taken { background: var(--brass-hi); box-shadow: 0 0 8px var(--brass); }
.tbl h3 { font-family: var(--serif); font-size: 22px; color: var(--ivory); line-height: 1.1; }
.tbl .meta { font-size: 13px; color: var(--muted); margin: 4px 0 10px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.tbl .meta b { color: var(--ink); font-weight: 700; }

/* ===================== ČET ===================== */
.chat {
  position: fixed; left: 0; right: 0; top: var(--top-h, 60px); bottom: var(--kb, 0px);
  max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; z-index: 5;
}
body.kb .nav { display: none; }
body.kb .composer { padding-bottom: 10px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-head .t { font-weight: 800; }
.chat-head .s { font-size: 12px; color: var(--muted); }
.msgs { flex: 1; overflow-y: auto; padding: 14px 14px 10px; display: flex; flex-direction: column; gap: 10px; -webkit-overflow-scrolling: touch; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 86%; animation: pop 0.22s ease-out; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.bubble {
  padding: 9px 13px; border-radius: 18px 18px 18px 6px;
  background: rgba(243, 235, 220, 0.08); box-shadow: inset 0 0 0 1px rgba(243, 235, 220, 0.06);
  word-wrap: break-word; overflow-wrap: anywhere; white-space: pre-wrap;
}
.msg.mine .bubble { border-radius: 18px 18px 6px 18px; background: linear-gradient(180deg, #2F6B52, #235843); box-shadow: inset 0 0 0 1px rgba(212, 175, 106, 0.3); }
.bubble .who { display: block; font-size: 12px; font-weight: 800; color: var(--brass-hi); margin-bottom: 2px; }
.bubble .when { display: block; font-size: 10.5px; color: var(--muted); margin-top: 3px; text-align: right; }
.day { align-self: center; font-size: 11px; color: var(--muted); font-weight: 700; padding: 3px 10px; border-radius: 99px; background: rgba(0, 0, 0, 0.25); }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(0.98); } to { opacity: 1; transform: none; } }
.composer {
  display: flex; gap: 8px; padding: 10px 12px calc(10px + var(--nav-h) + var(--safe-b));
  background: rgba(8, 26, 21, 0.9); border-top: 1px solid var(--line);
}
.composer .input { border-radius: 999px; padding: 11px 16px; }
.send {
  width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0;
  background: linear-gradient(180deg, var(--brass-hi), var(--brass)); color: #231A08;
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.send svg { width: 20px; height: 20px; fill: currentColor; }
.send:active { transform: scale(0.94); }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.06); color: var(--ink); display: grid; place-items: center; flex: none; }
.iconbtn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ===================== PROFIL ===================== */
.hero-profile { text-align: center; padding: 8px 0 4px; }
.hero-profile .av { margin: 0 auto; }
.hero-profile h2 { font-family: var(--serif); font-size: 34px; margin-top: 14px; color: var(--ivory); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.stat { padding: 14px; border-radius: var(--r-md); background: rgba(0, 0, 0, 0.22); box-shadow: inset 0 0 0 1px var(--line); }
.stat .k { font-size: 12px; color: var(--muted); font-weight: 700; }
.stat .v { font-size: 22px; font-weight: 800; margin-top: 2px; }
.stat.feature { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, rgba(212, 175, 106, 0.16), rgba(0, 0, 0, 0.2)); }
.stat.feature .v { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; color: var(--brass-hi); }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.swatches button { aspect-ratio: 1; border-radius: 50%; border: 0; background: var(--sw); box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3); position: relative; }
.swatches button.on { box-shadow: 0 0 0 2px var(--night), 0 0 0 4px var(--brass-hi); }
.swatches button span { color: var(--ivory); font-size: 15px; }

/* ===================== ADMIN ===================== */
.totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.totals .stat { padding: 10px 12px; }
.totals .stat .v { font-size: 17px; }
.req { padding: 14px; margin-bottom: 10px; }
.req .row + .row { margin-top: 12px; }
.req .msgline { font-size: 14px; color: var(--muted); margin-top: 8px; font-style: italic; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.presets button {
  border: 0; padding: 8px 12px; border-radius: 99px; font-weight: 700; font-size: 13px;
  background: rgba(212, 175, 106, 0.12); color: var(--brass-hi); box-shadow: inset 0 0 0 1px rgba(212, 175, 106, 0.3);
}
.presets button:active { background: rgba(212, 175, 106, 0.25); }
.search { margin-bottom: 8px; }
.ledger-amt { font-weight: 800; }

/* ===================== DONJI PROZOR (SHEET) ===================== */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(2, 10, 8, 0.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade 0.2s ease-out; }
.sheet {
  position: relative; width: 100%; max-width: 560px; max-height: 92svh; overflow-y: auto;
  padding: 10px 18px calc(22px + var(--safe-b));
  border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg, #16493A, var(--night-2) 140px);
  box-shadow: 0 -1px 0 var(--brass-lo), 0 -20px 50px rgba(0, 0, 0, 0.5);
  animation: slideup 0.32s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.sheet.closing { animation: slidedown 0.22s ease-in forwards; }
.sheet-bg.closing { animation: fade 0.22s ease-in reverse forwards; }
.grip { width: 42px; height: 5px; border-radius: 9px; background: rgba(243, 235, 220, 0.25); margin: 0 auto 14px; }
.sheet h3 { font-family: var(--serif); font-size: 26px; color: var(--ivory); margin-bottom: 4px; }
.sheet .lead { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.sheet-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
@keyframes slideup { from { transform: translateY(100%); } to { transform: none; } }
@keyframes slidedown { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ===================== OBAVEŠTENJA ===================== */
#toasts {
  position: fixed; top: calc(12px + var(--safe-t)); left: 0; right: 0; z-index: 90;
  display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 14px;
}
.toast {
  pointer-events: auto; max-width: 440px; width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 16px;
  background: rgba(14, 44, 35, 0.97); color: var(--ivory); font-weight: 600; font-size: 14px;
  box-shadow: inset 0 0 0 1px var(--line), 0 14px 36px rgba(0, 0, 0, 0.5);
  animation: drop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.toast.bad { box-shadow: inset 0 0 0 1px rgba(227, 106, 95, 0.6), 0 14px 36px rgba(0, 0, 0, 0.5); }
.toast.ok { box-shadow: inset 0 0 0 1px rgba(98, 196, 142, 0.6), 0 14px 36px rgba(0, 0, 0, 0.5); }
.toast .ic { font-size: 18px; flex: none; }
.toast.out { animation: lift 0.25s ease-in forwards; }
@keyframes drop { from { opacity: 0; transform: translateY(-20px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes lift { to { opacity: 0; transform: translateY(-14px); } }

/* ===================== LETEĆI ŽETONI ===================== */
.fly { position: fixed; z-index: 95; pointer-events: none; animation: fly 0.9s cubic-bezier(0.3, 0.7, 0.4, 1) forwards; }
@keyframes fly {
  0% { transform: translate(var(--x0), var(--y0)) scale(0.6); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(var(--x1), var(--y1)) scale(1); opacity: 0.2; }
}

@media (min-width: 600px) {
  .view { padding-left: 22px; padding-right: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ===================== STO (IGRA) ===================== */
body.in-table .top, body.in-table .nav { display: none; }
body.in-table { overflow: hidden; }
.tv {
  position: fixed; inset: 0; z-index: 25;
  display: flex; flex-direction: column;
  background:
    radial-gradient(120% 60% at 50% -10%, #1A6A4E 0%, rgba(19, 87, 63, 0.45) 35%, transparent 65%),
    radial-gradient(90% 50% at 50% 115%, #2A0F14 0%, transparent 60%),
    var(--night);
}
.tv-top {
  display: flex; align-items: center; gap: 8px;
  padding: calc(6px + var(--safe-t)) 8px 6px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 26, 21, 0.8);
}
.tv-title { flex: 1; min-width: 0; text-align: center; line-height: 1.1; }
.tv-title b { display: block; font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--brass-hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-title span { font-size: 12px; color: var(--muted); font-weight: 600; }
.tv-log {
  position: absolute; left: 50%; top: calc(56px + var(--safe-t)); transform: translate(-50%, -8px); z-index: 30;
  max-width: 90%; padding: 5px 12px; border-radius: 99px;
  background: rgba(4, 18, 14, 0.9); color: var(--ivory); font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: inset 0 0 0 1px var(--line); opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s;
}
.tv-log.on { opacity: 1; transform: translate(-50%, 0); }
.tv-area { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.tv-felt {
  position: absolute; left: 15%; right: 15%; top: 9%; bottom: 8%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 38%, #1E7E5A 0%, var(--felt) 45%, var(--felt-deep) 100%);
  box-shadow: 0 0 0 9px #3B2415, 0 0 0 11px var(--brass), 0 0 0 12px #2A1810, inset 0 0 40px rgba(0, 0, 0, 0.55), 0 18px 40px rgba(0, 0, 0, 0.5);
  display: grid; place-items: center;
}
.tv-felt::after {
  content: ""; position: absolute; inset: 9%; border-radius: 50%;
  border: 1.5px solid rgba(212, 175, 106, 0.16);
}
.tv-brand { font-family: var(--serif); font-size: 20px; color: rgba(212, 175, 106, 0.14); letter-spacing: 0.06em; transform: translateY(150px); user-select: none; }
.tv-center { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 78%; text-align: center; z-index: 3; pointer-events: none; }
.pot {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 8px;
  padding: 4px 12px 4px 6px; border-radius: 99px; font-size: 13px; font-weight: 700; color: var(--ivory);
  background: rgba(4, 18, 14, 0.7); box-shadow: inset 0 0 0 1px var(--line); opacity: 0; transition: opacity 0.2s;
}
.pot.on { opacity: 1; }
.pot .chip { width: 18px; height: 18px; }
.pot b { font-size: 15px; }
.board { display: flex; justify-content: center; gap: 5px; min-height: 60px; }
.card {
  --w: 42px; width: var(--w); height: calc(var(--w) * 1.42); border-radius: calc(var(--w) * 0.14);
  background: linear-gradient(160deg, #FFFCF4, var(--ivory) 65%, #E6DCC6);
  color: #17140F; position: relative; flex: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 4px 10px rgba(0, 0, 0, 0.45);
  font-family: var(--serif); line-height: 1; user-select: none;
}
.card .r { position: absolute; top: 9%; left: 12%; font-size: calc(var(--w) * 0.5); }
.card .s { position: absolute; right: 9%; bottom: 6%; font-size: calc(var(--w) * 0.52); }
.card.red { color: #B4232E; }
.card.back {
  background:
    repeating-linear-gradient(45deg, rgba(212, 175, 106, 0.4) 0 1.5px, transparent 1.5px 7px),
    repeating-linear-gradient(-45deg, rgba(212, 175, 106, 0.4) 0 1.5px, transparent 1.5px 7px),
    var(--oxblood);
  box-shadow: inset 0 0 0 3px var(--ivory), 0 0 0 1px rgba(0, 0, 0, 0.25), 0 4px 10px rgba(0, 0, 0, 0.45);
}
.card.slot { background: rgba(0, 0, 0, 0.18); box-shadow: inset 0 0 0 1.5px rgba(243, 235, 220, 0.14); }
.card.mini { --w: 26px; display: inline-block; vertical-align: middle; margin-right: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.card.hl { box-shadow: 0 0 0 2px var(--brass-hi), 0 0 18px rgba(240, 213, 154, 0.6); transform: translateY(-4px); }
.card.dim { opacity: 0.45; }
.card.flip { animation: flip 0.45s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
@keyframes flip { from { transform: rotateY(90deg) scale(0.9); opacity: 0.3; } to { transform: rotateY(0) scale(1); opacity: 1; } }
.card.deal { animation: dealcard 0.5s cubic-bezier(0.2, 0.8, 0.25, 1) both; }
@keyframes dealcard { from { transform: translate(var(--dx), var(--dy)) rotate(-20deg) scale(0.5); opacity: 0; } 30% { opacity: 1; } to { transform: none; opacity: 1; } }
.card.fresh { opacity: 0; }
.tv-msg { margin-top: 8px; font-size: 13px; color: var(--muted); font-weight: 600; min-height: 18px; }
.tv-msg.result { color: var(--ivory); font-size: 14px; line-height: 1.35; background: rgba(4, 18, 14, 0.72); border-radius: 12px; padding: 6px 10px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(212, 175, 106, 0.35); animation: pop 0.3s; }
.tv-msg.result small { display: block; color: var(--brass-hi); font-size: 12px; }
.tv-msg.result b { color: var(--brass-hi); }

/* mesta */
.tv-seats, .tv-bets, .tv-fx { position: absolute; inset: 0; }
.tv-bets { pointer-events: none; z-index: 4; }
.tv-fx { pointer-events: none; z-index: 12; }
.tv-seats { z-index: 5; pointer-events: none; }
.seat { position: absolute; width: 88px; margin-left: -44px; transform: translateY(-50%); text-align: center; pointer-events: auto; }
.seat.upper { transform: translateY(-44%); }
.seat-free { width: 14px; height: 14px; border-radius: 50%; margin: 0 auto; background: rgba(243, 235, 220, 0.12); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3); }
.seat-empty {
  width: 52px; height: 52px; border-radius: 50%; border: 1.5px dashed rgba(240, 213, 154, 0.55);
  background: rgba(4, 18, 14, 0.45); color: var(--brass-hi); font-size: 11px; font-weight: 800;
  display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0 auto; line-height: 1;
}
.seat-empty span { font-size: 18px; margin-bottom: 1px; }
.seat-empty:active { background: rgba(212, 175, 106, 0.2); }
.seat-av { position: relative; width: 52px; height: 52px; margin: 0 auto; }
.seat-av .av { width: 46px; height: 46px; position: absolute; left: 3px; top: 3px; }
.seat-av .av b { font-size: 21px; }
.seat.me .seat-av { width: 60px; height: 60px; }
.seat.me .seat-av .av { width: 54px; height: 54px; }
.seat.me .seat-av .av b { font-size: 25px; }
.ring { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); transform: rotate(-90deg); opacity: 0; }
.ring circle { fill: none; stroke: var(--brass-hi); stroke-width: 3.5; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(240, 213, 154, 0.8)); }
.seat.actor .ring { opacity: 1; }
.seat.actor .seat-av .av { box-shadow: 0 0 0 2px rgba(240, 213, 154, 0.9), 0 0 24px rgba(240, 213, 154, 0.45); }
.seat.actor.hurry .ring circle { stroke: var(--bad); filter: drop-shadow(0 0 6px rgba(227, 106, 95, 0.9)); }
.seat.actor.hurry .seat-av { animation: hurry 0.9s ease-in-out infinite; }
@keyframes hurry { 50% { transform: scale(1.06); } }
.dealer {
  position: absolute; right: -6px; top: -4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ivory); color: #1B1B1B; font-size: 11px; font-weight: 900; line-height: 20px; text-align: center;
  box-shadow: 0 0 0 1.5px var(--brass), 0 2px 5px rgba(0, 0, 0, 0.5);
}
.off { position: absolute; left: -2px; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px var(--night); }
.seat-plate {
  margin: -6px auto 0; width: 86px; padding: 3px 6px 4px; border-radius: 10px; line-height: 1.15;
  background: rgba(4, 18, 14, 0.88); box-shadow: inset 0 0 0 1px var(--line); position: relative; z-index: 2;
}
.seat-plate b { display: block; font-size: 11px; color: var(--ivory); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seat-plate span { display: block; font-size: 12px; font-weight: 800; color: var(--brass-hi); }
.seat-plate span i { font-style: normal; color: var(--muted); font-weight: 700; }
.seat-plate em { display: block; font-style: normal; font-size: 10px; color: var(--brass-hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seat.folded .seat-av, .seat.sitout .seat-av { opacity: 0.45; }
.seat.folded .seat-plate b, .seat.sitout .seat-plate b { color: var(--muted); }
.seat.allin .seat-plate span i { color: var(--bad); }
.seat.winner .seat-av .av { box-shadow: 0 0 0 3px var(--brass-hi), 0 0 30px rgba(240, 213, 154, 0.75); animation: winglow 1s ease-in-out infinite alternate; }
@keyframes winglow { to { box-shadow: 0 0 0 3px var(--brass-hi), 0 0 12px rgba(240, 213, 154, 0.4); } }
.seat.winner .seat-plate { box-shadow: inset 0 0 0 1.5px var(--brass); }
.seat.offline .seat-plate b::after { content: " (offline)"; color: var(--bad); font-weight: 700; }
.seat-cards { position: absolute; left: 50%; bottom: calc(100% - 22px); transform: translateX(-50%); display: flex; z-index: 1; }
.seat-cards .card { --w: 27px; margin: 0 -5px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 3px 8px rgba(0, 0, 0, 0.5); }
.seat-cards .card:first-child { transform: rotate(-9deg); }
.seat-cards .card:last-child { transform: rotate(9deg); }
.seat-cards .card.hl { transform: translateY(-4px); }
.seat.me .seat-cards { bottom: calc(100% - 18px); }
.seat.me .seat-cards .card { --w: 58px; margin: 0 -6px; }
.seat.me .seat-cards .card:first-child { transform: rotate(-7deg) translateY(3px); }
.seat.me .seat-cards .card:last-child { transform: rotate(7deg) translateY(3px); }
.seat.me .seat-cards .card.hl { transform: translateY(-6px); box-shadow: 0 0 0 2.5px var(--brass-hi), 0 0 22px rgba(240, 213, 154, 0.7); }
.seat.upper .seat-cards { bottom: auto; top: calc(100% - 8px); z-index: 0; }
.seat-bubble {
  position: absolute; left: 50%; top: -8px; transform: translate(-50%, -100%); z-index: 6;
  max-width: 150px; padding: 6px 10px; border-radius: 12px 12px 12px 3px;
  background: var(--ivory); color: #17140F; font-size: 12px; font-weight: 600; line-height: 1.25;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); animation: pop 0.25s; white-space: normal;
}
.seat.upper .seat-bubble { top: auto; bottom: -34px; transform: translate(-50%, 100%); border-radius: 12px 12px 3px 12px; }

/* ulozi */
.betslot { position: absolute; transform: translate(-50%, -50%); }
.bet { display: flex; flex-direction: column; align-items: center; gap: 2px; animation: pop 0.25s; }
.bamt { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 3px; border-radius: 99px; background: rgba(4, 18, 14, 0.8); color: var(--ivory); font-size: 12px; font-weight: 800; box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.bamt .chip { width: 16px; height: 16px; }
.apill { padding: 1px 8px; border-radius: 99px; background: var(--ivory); color: #17140F; font-size: 10px; font-weight: 900; letter-spacing: 0.02em; white-space: nowrap; }
.bet.allin .apill { background: var(--oxblood-hi); color: #fff; }
.bet.fold .apill { background: rgba(243, 235, 220, 0.55); }

/* efekti */
.fxi { position: absolute; transform: translate(-50%, -50%); }
.fxchip { position: absolute; width: 18px; height: 18px; left: 0; top: 0; animation: fxfly 0.55s cubic-bezier(0.25, 0.7, 0.35, 1) both; }
@keyframes fxfly { from { transform: translate(calc(var(--x0) - 9px), calc(var(--y0) - 9px)) scale(0.7); opacity: 0; } 20% { opacity: 1; } to { transform: translate(calc(var(--x1) - 9px), calc(var(--y1) - 9px)) scale(1); opacity: 1; } }
.fxwin { font-weight: 900; font-size: 20px; color: var(--brass-hi); text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); white-space: nowrap; animation: floatup 1.7s ease-out both; }
@keyframes floatup { from { transform: translateY(6px) scale(0.7); opacity: 0; } 20% { opacity: 1; transform: translateY(0) scale(1.1); } to { transform: translateY(-40px) scale(1); opacity: 0; } }
.fxemoji { font-size: 38px; animation: emojipop 2.1s ease-out both; line-height: 1; }
@keyframes emojipop { 0% { transform: scale(0.3) translateY(10px); opacity: 0; } 15% { transform: scale(1.25) translateY(0); opacity: 1; } 80% { transform: scale(1) translateY(-24px); opacity: 1; } 100% { transform: scale(0.9) translateY(-40px); opacity: 0; } }
.fxi.muck { display: flex; animation: muck 0.55s ease-in both; }
.fxi.muck .card { --w: 24px; margin: 0 -4px; }
@keyframes muck { to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.4) rotate(30deg); opacity: 0; } }

/* donja traka */
.tv-bar {
  position: relative; padding: 8px 10px calc(8px + var(--safe-b)); min-height: 74px;
  background: rgba(8, 26, 21, 0.96); border-top: 1px solid var(--line);
}
.bar-row { display: flex; align-items: center; gap: 8px; }
.bar-row.mini { margin-top: 8px; justify-content: flex-end; }
.bar-row.mini .bar-note { flex: 1; text-align: left; }
.bar-note { flex: 1; font-size: 13px; color: var(--muted); font-weight: 600; }
.bar-side { display: flex; gap: 6px; margin-left: auto; }
.barbtn { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.07); color: var(--ink); display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.barbtn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.barbtn .badge { position: absolute; top: -4px; right: -4px; }
.actions { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 8px; }
.abtn {
  border: 0; border-radius: 14px; padding: 15px 6px; font-size: 16px; font-weight: 800; color: var(--ivory);
  background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: transform 0.1s, filter 0.1s;
}
.abtn:active { transform: scale(0.97); filter: brightness(1.1); }
.abtn.fold { background: linear-gradient(180deg, var(--oxblood-hi), var(--oxblood)); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.abtn.call { background: linear-gradient(180deg, #2A7358, #1E5A44); box-shadow: inset 0 0 0 1px rgba(212, 175, 106, 0.35), 0 4px 14px rgba(0, 0, 0, 0.35); }
.abtn.raise { color: #231A08; background: linear-gradient(180deg, var(--brass-hi), var(--brass) 55%, #B8924F); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.abtn.raise.on { filter: brightness(1.08); box-shadow: 0 0 0 2px var(--ivory), 0 4px 14px rgba(0, 0, 0, 0.35); }
.abtn[disabled] { opacity: 0.5; }
.raise-panel {
  position: absolute; left: 8px; right: 8px; bottom: calc(100% + 6px); z-index: 8;
  padding: 12px; border-radius: 18px;
  background: rgba(10, 34, 27, 0.97); box-shadow: inset 0 0 0 1px var(--line), 0 -10px 30px rgba(0, 0, 0, 0.5);
  animation: slideup 0.22s ease-out;
}
.raise-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-weight: 700; color: var(--muted); }
.raise-head b { font-size: 26px; color: var(--brass-hi); }
.raise-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.stepbtn { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.08); color: var(--ivory); font-size: 22px; font-weight: 700; line-height: 1; box-shadow: inset 0 0 0 1px var(--line); }
.slider { flex: 1; width: 100%; -webkit-appearance: none; appearance: none; height: 36px; background: transparent; margin: 0; }
.slider::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--brass), rgba(255, 255, 255, 0.15)); }
.slider::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.15); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -12px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--brass-hi), var(--brass)); box-shadow: 0 0 0 2px var(--night), 0 4px 10px rgba(0, 0, 0, 0.5); }
.slider::-moz-range-thumb { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 2px var(--night), 0 4px 10px rgba(0, 0, 0, 0.5); }
.raise-panel .presets { margin: 0 0 10px; }
.raise-panel .presets button.allin { background: rgba(178, 58, 72, 0.25); color: #FFB9C0; box-shadow: inset 0 0 0 1px rgba(178, 58, 72, 0.6); }
.pre { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.prebtn { border: 0; border-radius: 12px; padding: 12px 6px; font-size: 13px; font-weight: 800; color: var(--muted); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prebtn.on { color: var(--night); background: var(--brass-hi); box-shadow: 0 0 0 2px rgba(240, 213, 154, 0.4); }
.emoji-strip { display: flex; justify-content: space-between; gap: 4px; margin-top: 8px; animation: pop 0.2s; }
.emoji-strip button { flex: 1; border: 0; border-radius: 12px; padding: 8px 0; font-size: 24px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px var(--line); }
.emoji-strip button:active { background: rgba(212, 175, 106, 0.25); }
.amt-big { text-align: center; font-size: 34px; font-weight: 800; color: var(--brass-hi); margin: 6px 0 2px; }
.presets.center { justify-content: center; }
.tchat { max-height: 42svh; overflow-y: auto; padding: 8px 4px; margin-bottom: 10px; -webkit-overflow-scrolling: touch; }
.tline { font-size: 14px; padding: 4px 0; border-bottom: 1px solid rgba(212, 175, 106, 0.08); line-height: 1.35; }
.tline b { color: var(--brass-hi); margin-right: 4px; }
.mini-board { margin-top: 4px; }
.hboard { margin: 4px 0 14px; }
.hlog { max-height: 36svh; overflow-y: auto; font-size: 13px; }
.hline { padding: 4px 6px; border-bottom: 1px solid rgba(212, 175, 106, 0.08); }
.hline b { color: var(--ivory); }
.hline.win { color: var(--brass-hi); }
.hstreet { padding: 6px; margin: 4px 0; font-weight: 800; color: var(--muted); background: rgba(0, 0, 0, 0.2); border-radius: 8px; }
.switch small { display: block; font-weight: 500; }
.seated-banner { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 14px; border-radius: var(--r-lg); background: linear-gradient(135deg, rgba(212, 175, 106, 0.2), rgba(19, 60, 48, 0.7)); box-shadow: inset 0 0 0 1.5px var(--brass-lo); }
.seated-banner .grow { flex: 1; font-weight: 700; }
.tbl .live { color: var(--ok); font-weight: 800; }
@media (max-height: 700px) {
  .seat.me .seat-cards .card { --w: 50px; }
  .card { --w: 38px; }
}

.install { display: flex; align-items: center; gap: 12px; }
.install .grow { flex: 1; min-width: 0; }
.install.compact { padding: 12px 14px; }
