/*
 * Cezalı 101 — css/lobby.css  (docs/LOBBY_REDESIGN.md §3 and §6 "Parlak kartlar"; loaded after css/salons.css)
 *
 * The lobby room of js/ui/lobbyshell.js (C101.LobbyShell) and the atoms every lobby screen shares:
 *   the room      .lb-wrap > .lb > .lb-top (the top bar) + .lb-body (the view) — on phones the full-stage felt
 *                 room, on desktop a 1400 × 668 panel over the dimmed menu. It is a dialog of ui.js Modals
 *                 (.modal-wrap.lb-wrap > .modal.lb) restyled by class. The view on top names itself twice:
 *                 .lb[data-view="salon"] and .lb-body.lb-v-salon. The stage carries .lb-open while it is open.
 *   the top bar   .lb-back / .lb-leave, .lb-ttl, .lb-cfg (settings pills), .lb-bonus (the daily-bonus pill: the
 *                 gift, the amount, a pip), .lb-lv (level capsule + XP bar), .lb-bal (balance; its emerald plus
 *                 opens Çip Mağazası), .lb-vipbuy (the main menu's VIP button). The bar's pills are not scoped to
 *                 .lb-top: the main menu's .menu-bar (css/style.css) draws the same ones
 *   atoms         .coin (Art.coin), .xbar (progress), .dot (live), .dt (a day tile), .tg / .tg-team / .tg-warn /
 *                 .tg-stake / .soon (pills), .av (an avatar disc), .gl (a paper card), .pz (the prize card)
 *                 — and .lvl (css/salons.css), .seg / .btn / .icon-btn (css/style.css; re-cut here inside the room)
 *   buttons       inside the room and its sheets every .btn is a chunky glossy button with a solid bottom edge:
 *                 .btn-gold (play), .btn-emerald (go in, more chips), .btn-sapphire (the other ways), .btn-glass
 *                 (a cream paper button); .seg is a track pressed into the paper, its chosen cell a teal pill
 *   sheets        a dialog that belongs to the lobby (Masa Aç, Kodla Katıl, Cüzdan, Çip Geçmişi, Çip Yetmiyor)
 *                 carries .lb-sheet on its box: a paper sheet under a felt ribbon (its head)
 * A dialog that belongs to the lobby puts class "lbm" on its body for the same --pad / --gap / --rad; every
 * dialog opened over the room gets the darker backdrop by itself. The page never scrolls (body: touch-action
 * none): a list that scrolls inside a view needs "overflow-y: auto; touch-action: pan-y" itself.
 * The screens own their prefixes in their own files: hm- sv- ma- (css/salons.css), wl2- st- pk- fc- nc-
 * (css/store.css), wt- (css/room.css).
 *
 * Base rules = the 1600 × 900 desktop stage; ".is-phone" = the ~800 × 390 phone stage (as css/style.css).
 * Owner rules: touch targets >= 44px on phones; plain shapes (discs, tiles, lozenges). Performance
 * (PERF_PLAN): NO keyframes in this file, transitions only on opacity / transform, no filter and no
 * backdrop-filter (the glass buttons inside the room lose theirs: the room behind them is opaque); depth is
 * layered gradients and box-shadows painted once.
 */

/* --- the palette: the game's own colours, as tokens -------------------------------------------------------
   Direction A's paper cards and glossy buttons, pulled to the game: the felt of the menu and the table for the
   floor, the cream of the tiles for the paper, the walnut and brass of the rack for the edges, the gold of
   "Oyna" for the play buttons, the emerald of "Seri Diz" for going in, the sapphire of "Çift Diz" for the
   other ways. Every colour of the palette that the lobby's screens share comes from here; white, black and a
   few one-off tints (a highlight, a shade) stay literal where they are used. */
:root {
  /* the room: the felt */
  --lb-floor-hi: #1B6855; /* the felt under the lamp, in the middle of the room */
  --lb-floor: #0F4A3E; /* the game's deep green-teal felt (the menu's, the table's in the dark) */
  --lb-floor-lo: #072A24; /* the felt at the walls */
  --lb-felt-foot: rgba(15, 71, 60, 0.96); /* the felt at the foot of the room (a list's fade) */
  --lb-lamp: rgba(255, 214, 140, 0.2); /* the warm light from above (the menu's lamp) */
  --lb-on-felt: #d5efe5; /* light text straight on the felt (the bar's line, a list's head) */
  --lb-on-felt-2: #9cc7b9; /* quieter text on the felt */
  /* the top bar */
  --lb-bar-hi: #186350; /* the bar's felt, lit from above */
  --lb-bar-lo: #0b3a31; /* the bar's felt at its lower edge */
  --lb-brass: #d9ae5c; /* the brass line under the bar and the sheets' heads */
  --lb-well: rgba(0, 22, 18, 0.46); /* the dark wells of the bar (level, balance) */
  --lb-well-2: rgba(0, 22, 18, 0.3); /* … their lower half */
  /* paper: the cream of our tiles */
  --lb-paper-hi: #fffefa; /* the top of a card (the tile face's light) */
  --lb-paper: #fbf3e0; /* a card's body */
  --lb-paper-lo: #efddb6; /* a card's foot (the tile face in its own shade) */
  --lb-paper-rim: #fff9ec; /* the bright rim just inside a card's edge */
  --lb-brass-hair: rgba(176, 128, 52, 0.5); /* the brass hairline around a card */
  --lb-wood: #8a5a2b; /* the solid wooden edge under a card (the rack's walnut, lit) */
  --lb-wood-2: #5a3518; /* the walnut in shade (the rail's edge, a button's wood) */
  --lb-ink: #3d2810; /* text on paper */
  --lb-ink-2: #7a5c36; /* quiet text on paper */
  --lb-ink-3: #a0804a; /* labels on paper (GİRİŞ, EL SAYISI) */
  --lb-gold-ink-paper: #b0620a; /* a gold amount on paper (the first prize, Hızlı Oyun's prize, a bonus, "Devamı") */
  --lb-warn-ink: #8a4a06; /* a notice on paper (Cüzdan, Çip Mağazası) */
  --lb-track-ink: #8a6534; /* the cells of a track that are not chosen */
  --lb-card: #fff7e6; /* a white card on a sheet (switches, day cells, the prize card): its foot; its top is white */
  --lb-goldpaper-1: #fffdf2; /* gold paper — today's bonus day, the popular pack: light, middle, deep */
  --lb-goldpaper-2: #fff1cc;
  --lb-goldpaper-3: #f8dd9c;
  --lb-gold-on-felt: #ffe8a8; /* gold text on the felt (the game's title gold) */
  --lb-sunk-hi: #f2e4c3; /* a track pressed into the paper: its lower, lit half */
  --lb-sunk-lo: #e3cc9c; /* … its upper half, in the shade of the rim */
  /* buttons: light, body, deep, the solid edge */
  --lb-gold-1: #ffe9a2; /* gold — the play buttons (Hemen Oyna, Hemen Otur, Otur at a table that fits) */
  --lb-gold-2: #f7bf45;
  --lb-gold-3: #dd8e17;
  --lb-gold-4: #97560a;
  --lb-gold-ink: #3d2400; /* the dark ink on gold (as "Oyna" in the menu) */
  --lb-emerald-1: #7cedbb; /* emerald — going in (Gir, Kodla Katıl) and more chips (the plus) */
  --lb-emerald-2: #22b27c;
  --lb-emerald-3: #108658;
  --lb-emerald-4: #075a3b;
  --lb-sapphire-1: #86c5ff; /* sapphire — the other ways (Masa Aç, Özel Masa Aç, Otur at any table) */
  --lb-sapphire-2: #3083e8;
  --lb-sapphire-3: #1d5ec0;
  --lb-sapphire-4: #123f86;
  --lb-wine-1: #f0899a; /* wine — the gift (the Günlük bonus pill) */
  --lb-wine-2: #b9344b;
  --lb-wine-3: #861a30;
  --lb-wine-4: #560e1f;
  --lb-teal-1: #4ecfb4; /* felt teal — the back control, the chosen cell of a track */
  --lb-teal-2: #1a9079;
  --lb-teal-3: #106c5b;
  --lb-teal-4: #0a4a3f;
  --lb-slate-1: #a8b4af; /* green slate — a locked salon */
  --lb-slate-2: #74847e;
  --lb-slate-3: #5a6964;
  --lb-slate-4: #3a4743;
  --lb-cream-1: #ffffff; /* cream — a paper button (− / +, Kopyala, Vazgeç) */
  --lb-cream-2: #fff4da;
  --lb-cream-3: #efd9a8;
  --lb-cream-4: #b5803c;
  --lb-cream-ink: #8a5212; /* the brown ink on cream */
  --lb-amber: #e88a17; /* a count badge (the waiting tables of a stake) */
  --lb-pip: #ff6b66; /* "waiting for you" (the game's bonus dot) */
  /* the salons: ribbon (light, body, deep, the fold) and picture (light, middle, deep) — the felts of the
     salon tables (C101.Art): Çaylak emerald, Tecrübeli deep teal-blue, Usta burgundy, Efsane black and gold */
  --lb-s1-1: #7fe3a6;
  --lb-s1-2: #27a86e;
  --lb-s1-3: #167c4e;
  --lb-s1-4: #0b4d30;
  --lb-s1-w1: #a3eac0;
  --lb-s1-w2: #2ba66c;
  --lb-s1-w3: #0e5a38;
  --lb-s2-1: #78c2de;
  --lb-s2-2: #2d88b0;
  --lb-s2-3: #1b6386;
  --lb-s2-4: #0e3e58;
  --lb-s2-w1: #a4d8ea;
  --lb-s2-w2: #2e86ae;
  --lb-s2-w3: #103f5e;
  --lb-s3-1: #e88696;
  --lb-s3-2: #b83a50;
  --lb-s3-3: #88213a;
  --lb-s3-4: #4f0d1f;
  --lb-s3-w1: #f3a9b5;
  --lb-s3-w2: #ae3850;
  --lb-s3-w3: #4c0d1e;
  --lb-s4-1: #5e5643;
  --lb-s4-2: #2e2a20;
  --lb-s4-3: #17140e;
  --lb-s4-4: #000000;
  --lb-s4-w1: #74623a;
  --lb-s4-w2: #2b251a;
  --lb-s4-w3: #0b0a07;
  --lb-s4-ink: #ffe18a; /* Efsane's gold letters */
  --lb-hero-w1: #fff4cf; /* Hızlı Oyun's picture: the gold of its chip, lit */
  --lb-hero-w2: #f8c35a;
  --lb-hero-w3: #da8418;
}

/* --- the room ------------------------------------------------------------------------------------------ */
.modal-wrap.lb-wrap { background: radial-gradient(80% 80% at 50% 50%, rgba(3, 10, 12, 0.5), rgba(3, 10, 12, 0.8)); }
.lb, .lbm { --pad: 26px; --gap: 16px; --rad: 22px; }
.is-phone .lb, .is-phone .lbm { --pad: 14px; --gap: 9px; --rad: 15px; }
.modal.lb {
  width: 1400px;
  height: 668px;
  max-width: none;
  max-height: none;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--gold-hair);
  background-color: var(--lb-floor);
  /* the lamp, the faint outlines of okey tiles printed into the felt, the felt itself, the dark at the walls */
  background-image:
    radial-gradient(58% 62% at 50% -8%, var(--lb-lamp), rgba(255, 214, 140, 0) 72%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='96' viewBox='0 0 132 96'%3E%3Cg fill='none' stroke='%23FFF4D6' stroke-opacity='.06' stroke-width='1.5'%3E%3Crect x='12' y='8' width='22' height='30' rx='4'/%3E%3Crect x='15.5' y='11.5' width='15' height='16' rx='2.5' stroke-opacity='.035'/%3E%3Crect x='78' y='56' width='22' height='30' rx='4' transform='rotate(-12 89 71)'/%3E%3Crect x='96' y='6' width='18' height='25' rx='3.5' transform='rotate(14 105 18)' stroke-opacity='.045'/%3E%3Crect x='30' y='58' width='18' height='25' rx='3.5' transform='rotate(8 39 70)' stroke-opacity='.045'/%3E%3C/g%3E%3Cg fill='%23FFF4D6' fill-opacity='.06'%3E%3Ccircle cx='23' cy='32' r='2.2'/%3E%3Ccircle cx='89' cy='80' r='2.2'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 132px 96px repeat,
    radial-gradient(130% 120% at 50% 45%, rgba(0, 0, 0, 0) 58%, rgba(0, 14, 11, 0.45) 100%),
    radial-gradient(120% 110% at 50% 30%, var(--lb-floor-hi) 0%, var(--lb-floor) 45%, var(--lb-floor-lo) 100%);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font: 600 17px/1.4 var(--font-body);
  color: var(--ink);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.modal.lb:focus { outline: none; }
/* (the dialog's gold top hairline becomes the felt's grain) */
.modal.lb::before { left: 0; right: 0; top: 0; bottom: 0; height: auto; background: var(--c101-tex-felt-noise, none); opacity: 0.35; }
.modal.lb > .modal-body { display: none; } /* the room has its own two rows */
.lb .set-input { -webkit-user-select: text; user-select: text; }
.lb .btn-glass, .lbm .btn-glass { -webkit-backdrop-filter: none; backdrop-filter: none; }
.lb-sheet .btn-glass { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* phones: the whole stage, under the notch and the corners too; the rows keep clear of them themselves */
.is-phone .modal-wrap.lb-wrap { padding: 0; background: none; }
.is-phone .modal.lb { width: 100%; height: 100%; max-width: none; max-height: none; border-radius: 0; border: 0; box-shadow: none; animation: none; }
.is-phone .modal.lb { font-size: 15px; }
.is-phone .modal.lb::before { left: 0; right: 0; }
.is-phone .modal-wrap.lb-wrap.is-closing .modal.lb { animation: none; }
/* … and the menu under it stops animating (it is covered; its frames would be work for nothing) */
.stage.is-phone.lb-open .screen-menu *,
.stage.is-phone.lb-open .screen-menu *::before,
.stage.is-phone.lb-open .screen-menu *::after { animation-play-state: paused !important; }
/* desktop: the menu behind the panel keeps only its picture — its profile chip (the balance is in the room's bar)
   and its foot lines would read through the dim */
.stage.lb-open:not(.is-phone) .menu-profile, .stage.lb-open:not(.is-phone) .menu-hint, .stage.lb-open:not(.is-phone) .menu-foot { visibility: hidden; }
/* toasts answer taps inside the room: under its top bar, never over the buttons at the bottom */
.stage.lb-open:not(.is-phone) .toast-layer { top: 196px; }
.stage.is-phone.lb-open .toast-layer.over-modal { top: calc(var(--sa-t, 0px) + 56px); bottom: auto; justify-content: flex-start; }
/* a dialog over the room (Masa Aç, Cüzdan, Çip Yetmiyor, Kodla Katıl): the room steps back a little more */
.modal-wrap.lb-wrap ~ .modal-wrap { background: radial-gradient(80% 80% at 50% 50%, rgba(3, 10, 12, 0.62), rgba(3, 10, 12, 0.84)); }
/* (… and takes the keyboard as a whole when a key is pressed behind it, js/ui/lobbyshell.js: no ring around it) */
.modal-wrap.lb-wrap ~ .modal-wrap > .modal:focus, .modal-code:focus { outline: none; }

/* --- the top bar: glossy felt with a brass line, round controls, dark wells --------------------------------- */
.lb-top {
  position: relative;
  z-index: 1; /* (its shadow falls on the view) */
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  height: 70px;
  padding: 0 var(--pad);
  border-radius: 0 0 26px 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0, rgba(255, 255, 255, 0.04) 48%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(180deg, var(--lb-bar-hi) 0%, var(--lb-bar-lo) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -2px 0 var(--lb-brass), 0 6px 14px rgba(0, 14, 11, 0.4);
}
.is-phone .lb-top {
  height: calc(50px + var(--sa-t, 0px));
  gap: 8px;
  padding: calc(2px + var(--sa-t, 0px)) max(var(--pad), var(--ph-tr, 0px)) 0 max(var(--pad), var(--ph-tl, 0px));
  border-radius: 0 0 18px 18px;
}
/* back: a round glossy teal button */
.lb-top .lb-back {
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, var(--lb-teal-1) 0%, var(--lb-teal-2) 52%, var(--lb-teal-3) 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), inset 0 -3px 0 rgba(0, 0, 0, 0.18), 0 3px 0 var(--lb-teal-4), 0 5px 8px rgba(0, 0, 0, 0.25);
}
.lb-top .lb-back svg { width: 26px; height: 26px; stroke-width: 3; }
.lb-top .lb-back:active { transform: translateY(2px); }
.lb-back { width: 50px; height: 50px; }
.is-phone .lb-back { width: 44px; height: 44px; }
.is-phone .lb-top .lb-back { box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), inset 0 -3px 0 rgba(0, 0, 0, 0.18), 0 3px 0 var(--lb-teal-4); }
.is-phone .lb-top .lb-back svg { width: 23px; height: 23px; }
/* "Masadan Ayrıl" (the waiting room): the same teal, as a pill */
.lb-top .btn.lb-leave {
  --b1: var(--lb-teal-1);
  --b2: var(--lb-teal-2);
  --b3: var(--lb-teal-3);
  --b4: var(--lb-teal-4);
  border-radius: 25px;
  color: #fff;
  text-shadow: 0 1.5px 0 rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), inset 0 -3px 0 rgba(0, 0, 0, 0.18), 0 3px 0 var(--b4), 0 5px 8px rgba(0, 0, 0, 0.25);
}
.lb-top .btn.lb-leave::after { opacity: 1; }
.lb-leave { height: 50px; padding: 0 18px; }
.is-phone .lb-leave { height: 44px; padding: 0 12px; font-size: 15px; }
.is-phone .lb-top .btn.lb-leave { border-radius: 22px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), inset 0 -3px 0 rgba(0, 0, 0, 0.18), 0 3px 0 var(--b4); }
.lb-ttl { display: flex; flex-direction: column; gap: 3px; min-width: 0; margin-left: 2px; }
.lb-ttl b { display: flex; align-items: center; gap: 8px; padding-top: 4px; font: 800 32px/1 var(--font-display); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3); white-space: nowrap; }
.lb-ttl b svg { flex: none; width: 28px; height: 28px; margin-top: -4px; color: var(--gold); }
.lb-ttl span { display: flex; align-items: center; gap: 7px; font: 800 15px/1.1 var(--font-body); color: var(--lb-on-felt); white-space: nowrap; }
.is-phone .lb-ttl { gap: 1px; }
.is-phone .lb-ttl b { font-size: 22px; gap: 6px; padding-top: 3px; }
.is-phone .lb-ttl b svg { width: 19px; height: 19px; margin-top: -3px; }
.is-phone .lb-ttl span { font-size: 11.5px; gap: 5px; }
.lb-ttl span.is-warn { color: #ffd9a0; } /* a notice in place of the live line ("Bağlantı koptu …") */
.lb-sp { flex: 1; }
/* the settings of a table as pills beside the title (the waiting room) */
.lb-cfg { display: flex; gap: 6px; min-width: 0; margin-left: 6px; overflow: hidden; }
.lb-cfg .tg { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border-radius: 16px; background: var(--lb-well); box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.12); font: 800 15px/1 var(--font-num); color: var(--lb-on-felt); }
.lb-cfg .tg .coin { width: 18px; height: 18px; }
.lb-cfg .tg-stake { color: var(--lb-gold-on-felt); }
.lb-cfg .tg-team { color: #c4e2ff; }
.lb-cfg .tg-warn { color: #ffd9a0; }
.is-phone .lb-cfg { gap: 4px; margin-left: 2px; }
.is-phone .lb-cfg .tg { height: 24px; padding: 0 8px; border-radius: 12px; font-size: 12.5px; gap: 4px; }
.is-phone .lb-cfg .tg .coin { width: 14px; height: 14px; }

/* the daily-bonus pill (only while a bonus waits; one tap claims): the gift on wine, the amount in gold */
.lb-bonus {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  height: 52px;
  padding: 0 20px 0 8px;
  border: 0;
  border-radius: 26px;
  background: linear-gradient(180deg, var(--lb-wine-1) 0%, var(--lb-wine-2) 50%, var(--lb-wine-3) 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4), inset 0 -3px 0 rgba(0, 0, 0, 0.2), 0 3px 0 var(--lb-wine-4), 0 5px 8px rgba(0, 0, 0, 0.25);
  color: #fff;
  cursor: pointer;
  transition: transform 0.14s var(--ease-out), opacity 0.14s;
}
.lb-bonus:active { transform: translateY(2px); }
.lb-bonus:disabled { opacity: 0.5; cursor: default; }
.lb-gift { display: block; flex: none; width: 38px; height: 38px; }
.lb-gift svg { display: block; width: 100%; height: 100%; }
.lb-bonus-t { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.lb-bonus-t small { font: 800 12.5px/1 var(--font-body); color: #ffe4ea; white-space: nowrap; }
.lb-bonus-t b { font: 800 21px/1 var(--font-num); color: #ffe07a; text-shadow: 0 1.5px 0 rgba(80, 6, 22, 0.6); white-space: nowrap; }
/* the streak day: a red badge on the gift's corner (v2.10's day tile, in A's "waiting" pip) */
.lb-pip { position: absolute; left: 31px; top: 1px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px; background: radial-gradient(circle at 35% 30%, #ffb3ae, var(--lb-pip) 55%, #d23a33); box-shadow: 0 0 0 2px var(--lb-wine-4); font: 800 13px/21px var(--font-num); font-style: normal; color: #fff; text-align: center; text-shadow: 0 1px 0 rgba(120, 10, 10, 0.5); }
.lb-pip.is-long { font-size: 10.5px; padding: 0 3px; } /* (a streak of 100 days and more) */
.is-phone .lb-bonus { height: 44px; gap: 6px; padding: 0 13px 0 5px; border-radius: 22px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4), inset 0 -3px 0 rgba(0, 0, 0, 0.2), 0 3px 0 var(--lb-wine-4); }
.is-phone .lb-gift { width: 31px; height: 31px; }
.is-phone .lb-bonus-t { gap: 2px; }
.is-phone .lb-bonus-t small { font-size: 10.5px; }
.is-phone .lb-bonus-t b { font-size: 16px; }
.is-phone .lb-pip { left: 23px; top: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; font-size: 11px; line-height: 17px; box-shadow: 0 0 0 1.5px var(--lb-wine-4); }
.is-phone .lb-pip.is-long { font-size: 9px; padding: 0 2px; }

/* level capsule: a dark well, the gold level disc, the XP line and bar */
.lb-lv { display: inline-flex; align-items: center; gap: 10px; flex: none; height: 52px; padding: 0 18px 0 7px; border: 0; border-radius: 26px; background: linear-gradient(180deg, var(--lb-well), var(--lb-well-2)); box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.14); color: #fff; cursor: pointer; }
.lb-lv .lvl { min-width: 38px; height: 38px; border-radius: 19px; font-size: 19px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(120, 60, 0, 0.3), 0 0 0 2px rgba(255, 233, 162, 0.35); }
.lb-lv-t { display: flex; flex-direction: column; gap: 6px; }
.lb-lv-t span { font: 800 13.5px/1 var(--font-num); color: var(--lb-on-felt); white-space: nowrap; }
.lb-lv .xbar { width: 96px; height: 8px; border-radius: 4px; }
.is-phone .lb-lv { height: 44px; gap: 7px; padding: 0 12px 0 5px; border-radius: 22px; }
.is-phone .lb-lv .lvl { min-width: 32px; height: 32px; border-radius: 16px; font-size: 16px; }
.is-phone .lb-lv-t { gap: 5px; }
.is-phone .lb-lv-t span { font-size: 11px; }
.is-phone .lb-lv .xbar { width: 66px; height: 6px; }

/* balance pill: a dark well; the number opens Cüzdan, the emerald plus opens Çip Mağazası */
.lb-bal { display: inline-flex; align-items: center; flex: none; height: 52px; border-radius: 26px; background: linear-gradient(180deg, var(--lb-well), var(--lb-well-2)); box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.14); }
.lb-bal-n { display: inline-flex; align-items: center; gap: 8px; height: 100%; min-width: 44px; margin: 0; padding: 0 4px 0 9px; border: 0; border-radius: 26px; background: none; color: #fff; cursor: pointer; }
.lb-bal-n:last-child { padding-right: 18px; }
.lb-bal-n .coin { width: 32px; height: 32px; }
.lb-bal-n b { padding-top: 2px; font: 800 24px/1 var(--font-num); color: #fff; text-shadow: 0 1.5px 0 rgba(0, 0, 0, 0.3); white-space: nowrap; }
.lb-bal-plus { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.lb-bal-plus i { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(180deg, var(--lb-emerald-1) 0%, var(--lb-emerald-2) 52%, var(--lb-emerald-3) 100%); color: #fff; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), inset 0 -3px 0 rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(0, 0, 0, 0.22); transition: transform 0.14s var(--ease-out); }
.lb-bal-plus:active i { transform: scale(0.94); }
.lb-bal-plus svg { width: 24px; height: 24px; stroke-width: 3.4; }
.is-phone .lb-bal { height: 44px; border-radius: 22px; }
.is-phone .lb-bal-n { gap: 6px; padding: 0 2px 0 6px; }
.is-phone .lb-bal-n:last-child { padding-right: 13px; }
.is-phone .lb-bal-n .coin { width: 25px; height: 25px; }
.is-phone .lb-bal-n b { font-size: 18px; }
.is-phone .lb-bal-plus { width: 44px; height: 44px; }
.is-phone .lb-bal-plus i { width: 38px; height: 38px; }
.is-phone .lb-bal-plus svg { width: 20px; height: 20px; }
/* VIP üyelik (docs/VIP.md): the gem before the coin while the player's VIP is active — part of the balance button */
.lb-vip { display: flex; flex: none; width: 22px; height: 22px; margin-right: -3px; }
.lb-vip svg { width: 100%; height: 100%; }
.is-phone .lb-vip { width: 17px; height: 17px; margin-right: -2px; }
/* the main menu's VIP button (signed in, not VIP, while VIP is sold here — docs/HOME_VIP.md §H.3): a dark well with the
   gem and "VIP", a gold hairline */
.lb-vipbuy { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 52px; padding: 0 16px 0 12px; border: 0; border-radius: 26px; background: linear-gradient(180deg, var(--lb-well), var(--lb-well-2)); box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.35), 0 0 0 1.5px rgba(232, 178, 58, 0.55); color: #ffe07a; cursor: pointer; }
.lb-vipbuy:active { transform: translateY(2px); }
.lb-vipbuy .lb-vipbuy-g { display: flex; width: 24px; height: 24px; }
.lb-vipbuy .lb-vipbuy-g svg { width: 100%; height: 100%; }
.lb-vipbuy b { font: 800 19px/1 var(--font-num); letter-spacing: 0.06em; }
.is-phone .lb-vipbuy { height: 44px; padding: 0 12px 0 9px; border-radius: 22px; gap: 5px; }
.is-phone .lb-vipbuy .lb-vipbuy-g { width: 18px; height: 18px; }
.is-phone .lb-vipbuy b { font-size: 15px; }

/* --- the view ------------------------------------------------------------------------------------------------ */
.lb-body { position: relative; flex: 1; min-height: 0; padding: var(--gap) var(--pad) var(--pad); }
.is-phone .lb-body {
  padding: var(--gap) max(var(--pad), calc(var(--sa-r, 0px) + 4px)) max(10px, var(--sa-b, 0px)) max(var(--pad), calc(var(--sa-l, 0px) + 4px));
}
.lb-body.is-busy { pointer-events: none; opacity: 0.6; }

/* --- atoms ------------------------------------------------------------------------------------------------------ */
.coin { display: block; flex: none; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #62e79a; box-shadow: 0 0 0 3px rgba(98, 231, 154, 0.22); }
.is-phone .dot { width: 7px; height: 7px; box-shadow: 0 0 0 2px rgba(98, 231, 154, 0.22); }
/* a progress bar: <span class="xbar"><i style="transform:scaleX(.42)"></i></span> — a dark groove, a gold fill */
.xbar { display: block; height: 6px; border-radius: 3px; overflow: hidden; background: rgba(0, 0, 0, 0.4); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.4); }
.xbar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #e3a53a, #ffe596); transform-origin: 0 50%; }
/* a day tile: a cream okey tile with the streak day */
.dt { display: inline-block; flex: none; width: 26px; height: 34px; border-radius: 6px; background: linear-gradient(180deg, #fffdf5, #f1e3bd); box-shadow: inset 0 -3px 0 #c9b27e, 0 2px 5px rgba(0, 0, 0, 0.45); color: #c62f35; font: 800 18px/31px var(--font-num); text-align: center; }
.is-phone .dt { width: 23px; height: 30px; border-radius: 5px; font-size: 16px; line-height: 27px; }
.dt.is-long { font-size: 13px; letter-spacing: -0.03em; } /* (a streak of 100 days and more) */
.is-phone .dt.is-long { font-size: 11.5px; }
/* a paper card: the cream of the tiles, a bright rim, a brass hairline, its wooden edge under it */
.gl {
  border-radius: var(--rad);
  color: var(--lb-ink);
  background: linear-gradient(180deg, var(--lb-paper-hi) 0%, var(--lb-paper) 42%, var(--lb-paper-lo) 100%);
  box-shadow: inset 0 0 0 2px var(--lb-paper-rim), inset 0 0 0 3.5px var(--lb-brass-hair), inset 0 -5px 0 rgba(185, 138, 69, 0.16), 0 6px 0 var(--lb-wood), 0 12px 18px rgba(0, 22, 18, 0.4);
}
/* (phones paint fewer layers: the brass hairline, the wooden edge, one soft shadow — PERF_PLAN) */
.is-phone .gl { box-shadow: inset 0 0 0 1.5px var(--lb-brass-hair), 0 4px 0 var(--lb-wood), 0 7px 10px rgba(0, 22, 18, 0.38); }
/* … on a sheet (paper on paper): a white card with its brass line and a thin edge */
.lbm .gl { background: linear-gradient(180deg, #ffffff 0%, var(--lb-card) 100%); box-shadow: inset 0 0 0 1.5px var(--lb-brass-hair), 0 3px 0 rgba(176, 128, 52, 0.45), 0 5px 8px rgba(90, 60, 20, 0.12); }
/* an avatar disc: <span class="av">Art.avatar(id)</span> */
.av { display: block; flex: none; border-radius: 50%; overflow: hidden; background: #173338; }
.av svg { display: block; width: 100%; height: 100%; }
/* pills: a table's tags (only what differs) — solid little labels on the paper; "YAKINDA" */
.tg { flex: none; height: 22px; padding: 0 9px; border-radius: 8px; background: #4f6b65; font: 800 13px/22px var(--font-display); color: #fff; white-space: nowrap; }
.tg-team { background: var(--lb-sapphire-3); color: #fff; }
.tg-warn { background: #d4700f; color: #fff; }
.is-phone .tg { height: 17px; padding: 0 6px; border-radius: 6px; font-size: 10.5px; line-height: 17px; }
.soon { display: inline-block; flex: none; height: 22px; padding: 0 10px; border-radius: 11px; background: var(--lb-well); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35); font: 800 12px/22px var(--font-display); letter-spacing: 0.08em; color: var(--lb-on-felt); white-space: nowrap; }
.is-phone .soon { height: 17px; padding: 0 7px; border-radius: 9px; font-size: 10px; line-height: 17px; }

/* the prize card: who gets what (Masa Aç, the waiting room) — paper, the first place's chip in gold */
.pz { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px 12px 18px; border-radius: 18px; color: var(--lb-ink); background: linear-gradient(180deg, var(--lb-paper-hi) 0%, var(--lb-paper) 42%, var(--lb-paper-lo) 100%); box-shadow: inset 0 0 0 2px var(--lb-paper-rim), inset 0 0 0 3.5px var(--lb-brass-hair), 0 6px 0 var(--lb-wood), 0 12px 18px rgba(0, 22, 18, 0.4); }
.lbm .pz { background: linear-gradient(180deg, #ffffff 0%, var(--lb-card) 100%); box-shadow: inset 0 0 0 1.5px var(--lb-brass-hair), 0 3px 0 rgba(176, 128, 52, 0.45); }
.pz-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 800 20px/1 var(--font-display); color: var(--lb-ink); }
.pz-h small { font: 800 13px/1 var(--font-body); color: var(--lb-ink-2); }
.pz-h .seg-btn { min-width: 44px; height: 40px; padding: 0 6px; }
.pz-h .seg .seg-btn { flex: none; padding: 2px 9px 0; } /* (2 · 3 · "4 kişi": each cell as wide as its word) */
.pz-l { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.pz-l li { display: flex; align-items: center; gap: 10px; min-height: 30px; font: 700 16px/1 var(--font-body); color: var(--lb-ink-2); }
.pz-l li i { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--lb-sunk-lo); font: 800 13px/1 var(--font-num); font-style: normal; color: var(--lb-ink); }
.pz-l li b { margin-left: auto; font: 800 19px/1 var(--font-num); color: var(--lb-ink); }
.pz-l li.is-1 { color: var(--lb-ink); }
.pz-l li.is-1 i { background: linear-gradient(180deg, var(--lb-gold-1), var(--lb-gold-3)); color: var(--lb-gold-ink); box-shadow: 0 1px 0 var(--lb-gold-4); }
.pz-l li.is-1 b { font-size: 26px; color: var(--lb-gold-ink-paper); }
.pz-l li.is-0 { opacity: 0.45; }
.pz-n { font: 700 13px/1.3 var(--font-body); color: var(--lb-ink-2); }
.is-phone .pz { gap: 3px; padding: 6px 9px 7px 12px; border-radius: 13px; box-shadow: inset 0 0 0 1.5px var(--lb-brass-hair), 0 4px 0 var(--lb-wood), 0 7px 10px rgba(0, 22, 18, 0.38); }
.is-phone .lbm .pz { box-shadow: inset 0 0 0 1.5px var(--lb-brass-hair), 0 2px 0 rgba(176, 128, 52, 0.45); }
.is-phone .pz-h { font-size: 15px; }
.is-phone .pz-h small { font-size: 11.5px; }
.is-phone .pz-h .seg-btn { height: 44px; min-width: 44px; font-size: 15px; }
.is-phone .pz-l { gap: 0; }
.is-phone .pz-l li { min-height: 25px; gap: 8px; font-size: 13.5px; }
.is-phone .pz-l li i { width: 20px; height: 20px; font-size: 11.5px; }
.is-phone .pz-l li b { font-size: 15.5px; }
.is-phone .pz-l li.is-1 b { font-size: 20px; }
.is-phone .pz-n { font-size: 11.5px; }

/* --- buttons inside the room and its sheets: chunky, glossy, a solid edge under them ----------------------------
   --b1 light · --b2 body · --b3 deep · --b4 the edge. The edge is drawn under the button (box-shadow), so a button
   needs 5px (phones 4px) of room below it. */
.lb .btn, .lb-sheet .btn {
  --b1: var(--lb-slate-1);
  --b2: var(--lb-slate-2);
  --b3: var(--lb-slate-3);
  --b4: var(--lb-slate-4);
  border: 0;
  border-radius: 16px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1.5px 0 rgba(0, 0, 0, 0.28);
  background: linear-gradient(180deg, var(--b1) 0%, var(--b2) 52%, var(--b3) 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), inset 0 -3px 0 rgba(0, 0, 0, 0.16), 0 5px 0 var(--b4), 0 8px 12px rgba(0, 0, 0, 0.28);
  /* (a press moves the button; its shadows swap in one step — style.css's .btn would fade them for 180 ms) */
  transition: transform 0.14s var(--ease-out), opacity 0.14s;
}
/* the gloss over its upper half */
.lb .btn::after, .lb-sheet .btn::after { left: 6px; right: 6px; top: 3px; bottom: auto; height: 42%; border-radius: 12px 12px 7px 7px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.06)); opacity: 1; }
.lb .btn > *, .lb-sheet .btn > * { position: relative; z-index: 1; }
.lb .btn:active, .lb-sheet .btn:active { transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 0 rgba(0, 0, 0, 0.16), 0 2px 0 var(--b4), 0 3px 6px rgba(0, 0, 0, 0.28); }
.lb .btn-gold, .lb-sheet .btn-gold { --b1: var(--lb-gold-1); --b2: var(--lb-gold-2); --b3: var(--lb-gold-3); --b4: var(--lb-gold-4); color: var(--lb-gold-ink); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); }
.lb .btn-emerald, .lb-sheet .btn-emerald { --b1: var(--lb-emerald-1); --b2: var(--lb-emerald-2); --b3: var(--lb-emerald-3); --b4: var(--lb-emerald-4); }
.lb .btn-sapphire, .lb-sheet .btn-sapphire { --b1: var(--lb-sapphire-1); --b2: var(--lb-sapphire-2); --b3: var(--lb-sapphire-3); --b4: var(--lb-sapphire-4); }
/* a paper button: cream, brown ink, its wooden edge */
.lb .btn-glass, .lb-sheet .btn-glass { --b1: var(--lb-cream-1); --b2: var(--lb-cream-2); --b3: var(--lb-cream-3); --b4: var(--lb-cream-4); color: var(--lb-cream-ink); text-shadow: none; box-shadow: inset 0 -3px 0 rgba(160, 110, 40, 0.2), 0 5px 0 var(--b4), 0 8px 12px rgba(0, 0, 0, 0.22); }
.lb .btn-glass::after, .lb-sheet .btn-glass::after { opacity: 0.6; }
.lb .btn-glass:active, .lb-sheet .btn-glass:active { box-shadow: inset 0 -2px 0 rgba(160, 110, 40, 0.2), 0 2px 0 var(--b4), 0 3px 6px rgba(0, 0, 0, 0.2); }
.lb .btn:disabled, .lb-sheet .btn:disabled { transform: none; }
/* (phones: the solid edge carries the depth — no blurred shadow under a button) */
.is-phone .lb .btn, .is-phone .lb-sheet .btn { border-radius: 13px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), inset 0 -3px 0 rgba(0, 0, 0, 0.16), 0 4px 0 var(--b4); }
.is-phone .lb .btn-glass, .is-phone .lb-sheet .btn-glass { box-shadow: inset 0 -3px 0 rgba(160, 110, 40, 0.2), 0 4px 0 var(--b4); }
.is-phone .lb .btn:active, .is-phone .lb-sheet .btn:active { box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 0 rgba(0, 0, 0, 0.16), 0 1px 0 var(--b4); }
.is-phone .lb .btn-glass:active, .is-phone .lb-sheet .btn-glass:active { box-shadow: inset 0 -2px 0 rgba(160, 110, 40, 0.2), 0 1px 0 var(--b4); }
.is-phone .lb .btn::after, .is-phone .lb-sheet .btn::after { left: 5px; right: 5px; border-radius: 10px 10px 6px 6px; }

/* a track pressed into the paper (Tekli | Eşli, El sayısı, Süre, 2 · 3 · 4 kişi); the chosen cell is a teal pill */
.lb .seg, .lb-sheet .seg { display: flex; gap: 0; padding: 0; border: 0; border-radius: 16px; background: linear-gradient(180deg, var(--lb-sunk-lo), var(--lb-sunk-hi)); box-shadow: inset 0 2px 3px rgba(120, 80, 20, 0.32), 0 1px 0 rgba(255, 255, 255, 0.95); }
/* (sizes stay the screens' own: style.css .seg-btn, or the screen's sheet) */
.lb .seg-btn, .lb-sheet .seg-btn { position: relative; z-index: 0; flex: 1 1 0; min-width: 44px; padding-top: 2px; border-radius: 16px; background: none; box-shadow: none; font-family: var(--font-display); font-weight: 800; line-height: 1; color: var(--lb-track-ink); white-space: nowrap; }
.lb .seg-btn::before, .lb-sheet .seg-btn::before { content: ''; position: absolute; z-index: -1; left: 3px; right: 3px; top: 3px; bottom: 3px; border-radius: 13px; opacity: 0; background: linear-gradient(180deg, var(--lb-teal-1) 0%, var(--lb-teal-2) 55%, var(--lb-teal-3) 100%); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.5), 0 2px 0 var(--lb-teal-4); }
.lb .seg-btn:hover, .lb-sheet .seg-btn:hover { background: none; color: var(--lb-ink); }
.lb .seg-btn.is-on, .lb-sheet .seg-btn.is-on { background: none; box-shadow: none; color: #fff; text-shadow: 0 1.5px 0 rgba(0, 0, 0, 0.25); }
.lb .seg-btn.is-on::before, .lb-sheet .seg-btn.is-on::before { opacity: 1; }
.is-phone .lb .seg, .is-phone .lb-sheet .seg { border-radius: 14px; }
.is-phone .lb .seg-btn, .is-phone .lb-sheet .seg-btn { border-radius: 14px; }
.is-phone .lb .seg-btn::before, .is-phone .lb-sheet .seg-btn::before { border-radius: 11px; }

/* --- a sheet of the lobby (Masa Aç, Kodla Katıl, Cüzdan, Çip Geçmişi, Çip Yetmiyor): paper under a felt ribbon --- */
.modal.lb-sheet {
  border: 0;
  color: var(--lb-ink);
  background: linear-gradient(180deg, var(--lb-paper-hi) 0%, var(--lb-paper) 40%, var(--lb-paper-lo) 100%);
  box-shadow: inset 0 0 0 2px var(--lb-paper-rim), inset 0 0 0 3.5px var(--lb-brass-hair), 0 7px 0 var(--lb-wood), 0 30px 70px rgba(0, 0, 0, 0.6);
}
.modal.lb-sheet::before { display: none; }
.lb-sheet .modal-head {
  gap: 12px;
  padding: 12px 14px 12px 24px;
  border-radius: 24px 24px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0, rgba(255, 255, 255, 0.04) 48%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(180deg, var(--lb-bar-hi) 0%, var(--lb-bar-lo) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -2px 0 var(--lb-brass);
}
.lb-sheet .modal-title { padding-top: 3px; font-size: 30px; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3); }
.lb-sheet .modal-ic { color: var(--gold); }
.lb-sheet .modal-x { width: 46px; height: 46px; border: 0; border-radius: 50%; color: #fff; background: linear-gradient(180deg, var(--lb-well), var(--lb-well-2)); box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.14); }
.lb-sheet .modal-x:hover { color: #fff; background: linear-gradient(180deg, rgba(0, 22, 18, 0.6), rgba(0, 22, 18, 0.4)); }
.lb-sheet .modal-x svg { stroke-width: 2.6; }
.lb-sheet .modal-body { padding-top: 16px; color: var(--lb-ink); scrollbar-color: rgba(176, 128, 52, 0.55) transparent; }
.lb-sheet .modal-body::-webkit-scrollbar-thumb { background: rgba(176, 128, 52, 0.45); }
.lb-sheet .modal-msg { color: var(--lb-ink); }
.lb-sheet .modal-msg b { color: var(--lb-gold-ink-paper); }
.lb-sheet .modal-foot { padding-bottom: 26px; }
/* Kodla Katıl: the code field pressed into the paper */
.lb-sheet .set-input { border: 0; background: #fffdf6; box-shadow: inset 0 2px 4px rgba(120, 80, 20, 0.28), inset 0 0 0 1.5px var(--lb-brass-hair); color: var(--lb-ink); }
.lb-sheet .set-input:focus { box-shadow: inset 0 2px 4px rgba(120, 80, 20, 0.28), inset 0 0 0 2px var(--lb-gold-3), 0 0 0 3px rgba(247, 191, 69, 0.3); }
.lb-sheet .set-input::placeholder { color: rgba(122, 92, 54, 0.45); }
.lb-sheet .og-err { color: #b3261e; }
.is-phone .modal.lb-sheet { box-shadow: inset 0 0 0 1.5px var(--lb-brass-hair), 0 5px 0 var(--lb-wood), 0 14px 28px rgba(0, 0, 0, 0.55); }
.is-phone .lb-sheet .modal-head { gap: 8px; padding: 4px 5px 4px 16px; border-radius: 16px 16px 0 0; }
.is-phone .lb-sheet .modal-title { font-size: 21px; }
.is-phone .lb-sheet .modal-x { width: 44px; height: 44px; }
.is-phone .lb-sheet .modal-body { padding-top: 7px; }
.is-phone .lb-sheet .modal-foot { padding-bottom: 14px; }
