/*
 * Cezalı 101 — css/store.css  (docs/LOBBY_REDESIGN.md §3 d–e; loaded after css/lobby.css)
 *
 * Cüzdan, Çip Mağazası and "Çip yetmiyor" of js/ui/store.js — prefixes wl2- (wallet), st- / pk- / fc- (store),
 * nc- (not enough chips). The room, the top bar and the shared atoms (.coin, .xbar, .dt, .gl, .av, .tg,
 * .soon, .pz) are css/lobby.css.
 *
 * The colours are the tokens of css/lobby.css (--lb-*): the wallet and "Çip yetmiyor" are paper sheets (.lb-sheet), the
 * store's cards and packs paper cards on the felt (.gl) — dark ink on cream, gold for chips, emerald for "more".
 *
 * Base rules = the 1600 × 900 desktop stage; ".is-phone" = the ~800 × 390 phone stage. Owner rules: touch
 * targets >= 44px on phones; plain shapes. Performance (PERF_PLAN): NO keyframes in this file, transitions
 * only on opacity / transform, no filter and no backdrop-filter.
 */

/* --- (d) Cüzdan: a sheet over the room ------------------------------------------------------------------ */
.modal-wl { width: 1020px; }
.is-phone .modal-wl { width: 744px; }
.modal-wl:focus, .modal-wl-led:focus, .modal-nc:focus { outline: none; }
/* phones: a toast that answers a tap in these screens (a claim) sits at the very top — over the dimmed bar behind
   a sheet, in the free middle of the store's bar — never over the row that was just tapped (.st-top: js/ui/store.js,
   while a sheet is open or the store is the view on top) */
.stage.is-phone.st-top .toast-layer.over-modal { top: calc(var(--sa-t, 0px) + 4px); bottom: auto; justify-content: flex-start; }
.modal-wl .modal-body { padding-bottom: 10px; }
.is-phone .modal-wl .modal-body { padding-bottom: 4px; }
.wl2 { display: grid; grid-template-columns: 370px minmax(0, 1fr); gap: 24px; }
.is-phone .wl2 { grid-template-columns: 262px minmax(0, 1fr); gap: 12px; }
.wl2-l, .wl2-r { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.wl2-l { justify-content: space-between; }
.is-phone .wl2-l, .is-phone .wl2-r { gap: 7px; }
.wl2-top { display: flex; flex-direction: column; gap: 14px; }
.is-phone .wl2-top { gap: 8px; }
.wl2-bal { display: flex; align-items: center; gap: 14px; }
.wl2-bal .coin { width: 66px; height: 66px; border-radius: 50%; box-shadow: 0 6px 10px rgba(0, 0, 0, 0.45); }
.wl2-bal > div { min-width: 0; }
.wl2-bal b { display: block; font: 800 50px/1 var(--font-num); color: var(--lb-ink); white-space: nowrap; }
.wl2-bal span { display: block; margin-top: 5px; font: 700 15px/1 var(--font-body); color: var(--lb-ink-2); white-space: nowrap; }
.is-phone .wl2-bal { gap: 9px; }
.is-phone .wl2-bal .coin { width: 46px; height: 46px; }
.is-phone .wl2-bal b { font-size: 34px; }
.is-phone .wl2-bal span { margin-top: 3px; font-size: 12px; }
.wl2-shop { width: 100%; height: 56px; font-size: 22px; }
.is-phone .wl2-shop { height: 46px; font-size: 18px; }
/* chip sending (docs/TRANSFER.md §9.3): "Gönder" shares the store button's row — no extra height */
.wl2-acts { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.wl2-acts .wl2-shop { min-width: 0; padding: 0 12px; }
.wl2-send { height: 56px; padding: 0 18px; font-size: 20px; }
.is-phone .wl2-send { height: 46px; padding: 0 10px; font-size: 16px; }
/* Destek çipi while the wallet qualifies (a player who is out of chips) */
.wl2-res { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 4px 6px 8px 16px; border-radius: 16px; background: rgba(247, 191, 69, 0.14); box-shadow: inset 0 0 0 1.5px rgba(221, 142, 23, 0.4); }
.wl2-res-t { flex: 1; min-width: 0; }
.wl2-res-t b { display: block; font: 800 18px/1.15 var(--font-display); color: var(--lb-ink); }
.wl2-res-t span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 14px/1.25 var(--font-body); color: var(--lb-ink-2); }
.wl2-res-t em { font: 800 15px/1 var(--font-num); font-style: normal; color: var(--lb-gold-ink-paper); }
.wl2-res .btn { flex: none; min-width: 96px; }
.is-phone .wl2-res { gap: 6px; min-height: 48px; padding: 2px 4px 6px 10px; border-radius: 12px; }
.is-phone .wl2-res-t b { font-size: 14.5px; }
.is-phone .wl2-res-t span { font-size: 11.5px; }
.is-phone .wl2-res-t em { font-size: 12.5px; }
.is-phone .wl2-res .btn { min-width: 66px; }
/* the level box */
.wl2-box { display: flex; flex-direction: column; gap: 9px; padding: 14px 16px; 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.28), 0 1px 0 rgba(255, 255, 255, 0.95); }
.is-phone .wl2-box { gap: 5px; padding: 8px 10px; border-radius: 12px; }
.wl2-lv { display: flex; align-items: center; gap: 10px; font: 800 20px/1 var(--font-display); color: var(--lb-ink); white-space: nowrap; }
.wl2-lv .lvl { min-width: 30px; height: 30px; border-radius: 15px; font-size: 17px; box-shadow: 0 1px 0 var(--lb-gold-4); }
.wl2-lv small { margin-left: auto; font: 700 14px/1 var(--font-num); color: var(--lb-ink-2); }
.wl2-box .xbar { height: 8px; border-radius: 4px; background: rgba(120, 80, 20, 0.2); box-shadow: inset 0 1px 1px rgba(120, 80, 20, 0.35); }
.wl2-next { display: flex; align-items: center; gap: 7px; font: 700 14px/1.3 var(--font-body); color: var(--lb-ink-2); }
.wl2-next svg { flex: none; width: 16px; height: 16px; color: var(--lb-gold-ink-paper); }
.wl2-next span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.is-phone .wl2-lv { gap: 7px; font-size: 16px; }
.is-phone .wl2-lv .lvl { min-width: 24px; height: 24px; font-size: 14px; }
.is-phone .wl2-lv small { font-size: 12px; }
.is-phone .wl2-box .xbar { height: 6px; }
.is-phone .wl2-next { gap: 5px; font-size: 11.5px; }
.is-phone .wl2-next svg { width: 13px; height: 13px; }
/* the right column: the bonus days, the last movements */
.wl2-h { display: flex; align-items: center; gap: 8px; padding-top: 2px; font: 800 18px/1 var(--font-display); color: var(--lb-ink); white-space: nowrap; }
.wl2-h small { margin-left: auto; font: 700 13px/1 var(--font-body); color: var(--lb-ink-3); }
.is-phone .wl2-h { font-size: 14px; }
.is-phone .wl2-h small { font-size: 11.5px; }
.wl2-days { display: flex; align-items: stretch; gap: 8px; }
.is-phone .wl2-days { gap: 4px; }
.wl2-dy { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; flex: 1; min-width: 0; height: 74px; border-radius: 12px; background: linear-gradient(180deg, #ffffff, var(--lb-card)); box-shadow: inset 0 0 0 1.5px var(--lb-brass-hair), 0 3px 0 rgba(176, 128, 52, 0.45); }
.wl2-dy small { font: 700 12px/1 var(--font-body); color: var(--lb-ink-3); white-space: nowrap; }
.wl2-dy b { font: 800 15px/1 var(--font-num); color: var(--lb-ink-2); white-space: nowrap; }
.wl2-dy.is-done { background: linear-gradient(180deg, var(--lb-sunk-lo), var(--lb-sunk-hi)); box-shadow: inset 0 2px 3px rgba(120, 80, 20, 0.25); }
.wl2-dy.is-done b { color: var(--lb-ink-3); }
.wl2-dy.is-done small { color: var(--lb-emerald-3); }
.wl2-dy.is-now { background: linear-gradient(180deg, var(--lb-goldpaper-1) 0%, var(--lb-goldpaper-2) 50%, var(--lb-goldpaper-3) 100%); box-shadow: inset 0 0 0 2.5px var(--lb-gold-3), inset 0 3px 0 #fff, 0 4px 0 var(--lb-gold-4), 0 6px 10px rgba(90, 50, 0, 0.25); }
.wl2-dy.is-now small { color: var(--lb-ink-2); }
.wl2-dy.is-now b { font-size: 17px; color: #c62f35; }
.wl2-dy.is-next { box-shadow: inset 0 0 0 1.5px var(--lb-gold-2), 0 3px 0 rgba(176, 128, 52, 0.45); }
.wl2-dy.is-next small, .wl2-dy.is-next b { color: var(--lb-gold-ink-paper); }
.wl2-ck { display: inline-flex; width: 13px; height: 13px; color: var(--lb-emerald-3); }
.wl2-ck svg { width: 100%; height: 100%; stroke-width: 3.2; }
.is-phone .wl2-dy { height: 50px; gap: 3px; border-radius: 9px; }
.is-phone .wl2-dy small { font-size: 10px; }
.is-phone .wl2-dy b { font-size: 12px; }
.is-phone .wl2-dy.is-now { box-shadow: inset 0 0 0 2px var(--lb-gold-3), 0 3px 0 var(--lb-gold-4), 0 5px 8px rgba(90, 50, 0, 0.25); }
.is-phone .wl2-dy.is-now b { font-size: 13.5px; }
.is-phone .wl2-ck { width: 11px; height: 11px; }
.wl2-claim { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.wl2-claim > span { flex: 1; min-width: 0; font: 700 14px/1.3 var(--font-body); color: var(--lb-ink-2); }
.wl2-claim .btn { flex: none; min-width: 150px; }
.is-phone .wl2-claim { min-height: 44px; }
.is-phone .wl2-claim > span { font-size: 11.5px; }
.is-phone .wl2-claim .btn { min-width: 112px; }
/* a wallet whose gifts are closed (frozen, unverified e-mail, shared mailbox); a view that did not load */
.wl2-note { display: flex; align-items: center; gap: 12px; min-height: 74px; padding: 10px 10px 14px 16px; border-radius: 14px; background: rgba(232, 138, 23, 0.12); box-shadow: inset 0 0 0 1.5px rgba(212, 112, 15, 0.4); }
.wl2-note > span { flex: 1; min-width: 0; font: 700 16px/1.35 var(--font-body); color: var(--lb-warn-ink); }
.wl2-note .btn { flex: none; min-width: 120px; }
.is-phone .wl2-note { gap: 8px; min-height: 50px; padding: 4px 4px 8px 12px; border-radius: 11px; }
.is-phone .wl2-note > span { font-size: 13px; }
.is-phone .wl2-note .btn { min-width: 96px; }
.wl2-wait { display: flex; align-items: center; justify-content: center; min-height: 74px; font: 700 16px/1.3 var(--font-body); color: var(--lb-ink-2); }
.is-phone .wl2-wait { min-height: 50px; font-size: 13.5px; }
.wl2-root > .wl2-wait { min-height: 150px; }
.is-phone .wl2-root > .wl2-wait { min-height: 90px; }
.wl2-tx { display: flex; flex-direction: column; }
.wl2-r > .wl2-tx { min-height: 108px; }
.is-phone .wl2-r > .wl2-tx { min-height: 78px; }
/* (the room of three rows is kept only while they load: a new player's one row leaves no empty band) */
.wl2-r > .wl2-tx.is-known, .is-phone .wl2-r > .wl2-tx.is-known { min-height: 0; }
.wl2-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 36px; border-bottom: 1px solid rgba(120, 80, 20, 0.16); font: 600 15px/1.2 var(--font-body); color: var(--lb-ink); }
.wl2-row-d { color: var(--lb-ink-3); white-space: nowrap; }
.wl2-row-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl2-row b { font: 700 16px/1 var(--font-num); white-space: nowrap; }
.wl2-row b.is-up { color: var(--lb-emerald-3); }
.wl2-row b.is-down { color: #c62f35; }
.is-phone .wl2-row { grid-template-columns: 82px minmax(0, 1fr) auto; min-height: 26px; font-size: 12.5px; }
.is-phone .wl2-row b { font-size: 13.5px; }
/* a chip sending row: the other side's nickname (docs/TRANSFER.md §9.5) */
/* (inline: the row's label cuts once, at its end — never the nickname a second time, §17 U4) */
.wl2-who { font-weight: 700; }
.wl2-none { padding: 10px 0; font: 700 15px/1.3 var(--font-body); color: var(--lb-ink-3); }
.is-phone .wl2-none { padding: 6px 0; font-size: 12.5px; }
.wl2-more { align-self: flex-start; min-height: 44px; margin: -8px 0 0 -10px; padding: 0 10px; border: 0; background: none; font: 800 15px var(--font-display); color: var(--lb-gold-ink-paper); cursor: pointer; }
.wl2-more:disabled { opacity: 0.5; cursor: default; }
.is-phone .wl2-more { margin: -6px 0 0 -8px; font-size: 13.5px; }
/* "Çip Geçmişi": the whole ledger (the dialog's body scrolls) */
.wl2-led { display: flex; flex-direction: column; }
.wl2-led .wl2-more { align-self: center; margin: 4px 0 0; }
.is-phone .wl2-led .wl2-row { min-height: 30px; }

/* --- "Çip Gönder" (docs/TRANSFER.md §9.4): a paper sheet of the default width over Cüzdan. Step 1: Kime, the last
   receivers, Miktar with its fee, the quick amounts | the info line and "Devam"; step 2: the receiver's card | the three
   rows and Vazgeç · Gönder. Phones: 44 px fields with 16 px text (no zoom on focus), 44 px chips and quick amounts, 46 px
   buttons — the left column 4 × 44 + 3 × 8 = 200 px, so the sheet never scrolls on the 390 px stage --------------------- */
.modal-tr:focus { outline: none; }
.tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.is-phone .tr { gap: 12px; }
.tr-l, .tr-r { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tr-r { justify-content: space-between; }
.is-phone .tr-l, .is-phone .tr-r { gap: 8px; }
.tr-in { width: 100%; min-width: 0; }
.tr .tr-in.is-bad, .tr .tr-in.is-bad:focus { box-shadow: inset 0 2px 4px rgba(120, 80, 20, 0.28), inset 0 0 0 2px #c62f35; }
.tr-in:disabled { opacity: 0.6; }
/* (read-only while the dry run checks what was typed, §17 U3) */
.tr-in[readonly] { opacity: 0.75; }
.tr-rc { display: flex; gap: 6px; min-width: 0; }
.tr-chip { display: flex; align-items: center; gap: 6px; flex: 0 1 auto; min-width: 0; height: 44px; padding: 0 12px 0 5px; border: 0; border-radius: 22px; background: rgba(120, 80, 20, 0.1); box-shadow: inset 0 0 0 1.5px var(--lb-brass-hair); font: 700 15px/1 var(--font-body); color: var(--lb-ink); cursor: pointer; }
.tr-chip .av { flex: none; width: 34px; height: 34px; }
.tr-chip.is-vip .av { box-shadow: 0 0 0 2px #e8b23a; }
.tr-chip > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-chip:disabled { opacity: 0.6; cursor: default; }
.is-phone .tr-chip { gap: 5px; padding: 0 10px 0 5px; font-size: 13.5px; }
.is-phone .tr-chip .av { width: 32px; height: 32px; }
/* three receivers share the row equally, names only (a VIP keeps its gold, as a ring), §17 U1 */
.tr-rc.is-n3 .tr-chip, .is-phone .tr-rc.is-n3 .tr-chip { flex: 1 1 0; justify-content: center; padding: 0 8px; }
.tr-rc.is-n3 .av { display: none; }
.tr-rc.is-n3 .tr-chip.is-vip { box-shadow: inset 0 0 0 2px #e8b23a; }
.tr-amt { position: relative; }
.tr-amt .tr-in { padding-right: 104px; font-family: var(--font-num); }
.tr-fee { position: absolute; right: 14px; top: 50%; font: 700 13px/1 var(--font-body); color: var(--lb-ink-3); white-space: nowrap; pointer-events: none; transform: translateY(-50%); }
.is-phone .tr-amt .tr-in { padding-right: 88px; }
.is-phone .tr-fee { right: 10px; font-size: 12px; }
.tr-q { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tr-qb { min-width: 0; height: 46px; padding: 0 4px; font-family: var(--font-num); font-size: 16px; font-weight: 800; }
.is-phone .tr-qb { height: 44px; padding: 0 2px; font-size: 14px; }
/* the quick amount that is in Miktar (§17 U11) */
.tr .tr-qb.is-on { background: rgba(232, 178, 58, 0.3); box-shadow: inset 0 0 0 2px #b8811f; color: var(--lb-ink); }
/* off (sending closed, over the limit, a check running): flat and muted, never a raised tap target (§17 U11) */
.tr .tr-qb:disabled:not(.is-on) { background: rgba(120, 80, 20, 0.06); box-shadow: inset 0 0 0 1.5px var(--lb-brass-hair); }
.tr .tr-qb:disabled:not(.is-on)::after { opacity: 0; }
.tr .tr-in:disabled { background: rgba(120, 80, 20, 0.06); }
.tr .btn:disabled { filter: none; opacity: 0.6; cursor: default; }
.tr-info { font: 700 15px/1.35 var(--font-body); color: var(--lb-ink-2); }
.tr-info.is-wait { color: var(--lb-ink-3); }
.tr-info.is-bad { color: #b3261e; }
.is-phone .tr-info { font-size: 13px; line-height: 1.3; }
.tr-go { width: 100%; height: 56px; font-size: 22px; }
.is-phone .tr-go { height: 46px; font-size: 18px; }
/* step 2: the receiver (the gold frame of a VIP, as at the tables), the three rows, the two buttons */
.tr-who { justify-content: center; }
.tr-card { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tr-av { display: flex; flex: none; width: 64px; height: 64px; border-radius: 50%; }
.tr-av .av { width: 100%; height: 100%; }
.tr-av.is-vip { box-shadow: 0 0 0 3px #e8b23a, 0 0 0 4.5px #6b4608; }
.is-phone .tr-av { width: 48px; height: 48px; }
.tr-nm { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
/* (the whole nickname — it is what he confirms: a long one gets a smaller size and may wrap, never an ellipsis, §17 U2) */
.tr-nm b { max-width: 100%; white-space: normal; overflow-wrap: anywhere; font: 800 24px/1.1 var(--font-display); color: var(--lb-ink); }
.tr-nm b.is-long { font-size: 19px; }
.tr-nm .lvl { min-width: 28px; height: 28px; border-radius: 14px; font-size: 15px; }
.is-phone .tr-nm { gap: 4px; }
.is-phone .tr-nm b { font-size: 19px; }
.is-phone .tr-nm b.is-long { font-size: 16px; }
.is-phone .tr-nm .lvl { min-width: 24px; height: 24px; border-radius: 12px; font-size: 13px; }
.tr-note { font: 700 14px/1.35 var(--font-body); color: var(--lb-ink-3); }
.is-phone .tr-note { font-size: 12.5px; }
.tr-rows { display: flex; flex-direction: column; }
.wl2-row--tr { grid-template-columns: minmax(0, 1fr) auto; min-height: 40px; font-size: 16px; }
.wl2-row--tr b { font-size: 18px; }
.is-phone .wl2-row--tr { grid-template-columns: minmax(0, 1fr) auto; min-height: 30px; font-size: 13.5px; }
.is-phone .wl2-row--tr b { font-size: 15px; }
.tr-btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.tr-btns.is-one { grid-template-columns: minmax(0, 1fr); }
.tr-btns .btn { min-width: 0; height: 56px; padding: 0 10px; font-size: 20px; }
.is-phone .tr-btns .btn { height: 46px; font-size: 17px; }
/* (a portrait web page under 520 px: one column, the left block first) */
@media (max-width: 519px) {
  .tr { grid-template-columns: minmax(0, 1fr); }
}

/* --- (e) Çip Mağazası: a view of the room ----------------------------------------------------------------- */
.st { display: flex; flex-direction: column; gap: var(--gap); height: 100%; min-height: 0; }
.st-free { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); flex: none; }
.st-free.is-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-free.is-n1 { grid-template-columns: minmax(0, 1fr); }
.st-free.is-n0 { display: none; }
.fc { display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 96px; padding: 12px 14px 12px 16px; }
.fc-ic { position: relative; display: flex; align-items: center; justify-content: center; flex: none; width: 62px; height: 62px; border-radius: 18px; background: linear-gradient(180deg, var(--lb-sunk-lo), var(--lb-sunk-hi)); box-shadow: inset 0 2px 3px rgba(120, 80, 20, 0.3), 0 1px 0 rgba(255, 255, 255, 0.95); color: var(--lb-gold-ink-paper); }
.fc-ic > svg { width: 34px; height: 34px; }
.fc-ic .dt { width: 30px; height: 40px; font-size: 22px; line-height: 37px; }
.fc-ic .dt.is-long { font-size: 15px; }
.fc-ic .coin { width: 40px; height: 40px; }
.fc-t { flex: 1; min-width: 0; }
.fc-t b { display: block; font: 800 21px/1.15 var(--font-display); color: var(--lb-ink); white-space: nowrap; }
.fc-s { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; font: 700 14.5px/1.25 var(--font-body); color: var(--lb-ink-2); white-space: nowrap; }
.fc-s span + span::before { content: ' · '; }
.fc-s em { font: 800 15.5px/1 var(--font-num); font-style: normal; color: var(--lb-gold-ink-paper); }
.fc .btn { flex: none; min-width: 104px; }
.fc .btn:disabled, .nc-o .btn:disabled, .wl2 .btn:disabled { filter: none; opacity: 0.6; cursor: default; }
.fc .btn:disabled, .nc-o .btn:disabled { font-family: var(--font-num); font-weight: 800; color: var(--lb-ink-2); }
.fc.is-idle .fc-ic { opacity: 0.6; }
.fc-wait { flex: none; padding: 0 10px; font: 800 14px/1.2 var(--font-display); color: var(--lb-ink-3); text-align: right; }
.fc.st-note { background: linear-gradient(180deg, var(--lb-card) 0%, #ffefcf 100%); }
.st-note-t { display: block; font: 700 16px/1.35 var(--font-body); color: var(--lb-warn-ink); }
.is-phone .fc { gap: 8px; min-height: 60px; padding: 6px 7px 6px 9px; }
.is-phone .fc-ic { width: 42px; height: 42px; border-radius: 12px; }
.is-phone .fc-ic > svg { width: 22px; height: 22px; }
.is-phone .fc-ic .dt { width: 22px; height: 29px; font-size: 16px; line-height: 26px; }
.is-phone .fc-ic .dt.is-long { font-size: 11px; }
.is-phone .fc-ic .coin { width: 28px; height: 28px; }
.is-phone .fc-t b { font-size: 15px; }
.is-phone .fc-s { margin-top: 1px; font-size: 11.5px; line-height: 1.25; }
.is-phone .fc-s span { display: block; overflow: hidden; text-overflow: ellipsis; }
.is-phone .fc-s span + span::before { content: none; }
.is-phone .fc-s em { font-size: 13px; }
.is-phone .fc .btn { min-width: 66px; padding: 0 10px; font-size: 15px; }
.is-phone .fc-wait { padding: 0 4px; font-size: 11px; }
.is-phone .st-note-t { font-size: 12.5px; line-height: 1.3; }
.st-h { display: flex; align-items: center; gap: 10px; flex: none; margin: 4px 4px -4px; font: 800 21px/1 var(--font-display); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3); white-space: nowrap; }
.is-phone .st-h { gap: 7px; margin: 0 3px -3px; font-size: 14.5px; }
/* the packs in ONE row, small to large, however many the list has (eight today; the server's own list may hold 1–20):
   one column per card. Phones: a narrower gap and smaller type, so "3.000.000", "+%180" and "₺1.999,99" stay whole on
   the narrowest phone stage, 760 px */
.st-packs { flex: 1; min-height: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--gap); padding-top: 4px; }
.pk { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; min-height: 0; padding: 16px 14px 14px; text-align: center; cursor: pointer; transition: transform 0.14s var(--ease-out); }
.pk:active { transform: translateY(1px); }
/* (the picture starts under the tag's band on EVERY card — the same box everywhere, so the pictures keep one scale —
   and a large heap never reaches under "En Avantajlı", whatever the phone's shape) */
.pk-art { position: relative; flex: 1 1 0; width: 100%; min-height: 0; margin-top: 12px; overflow: hidden; }
.pk-art svg { position: absolute; left: -12.5%; top: 0; width: 125%; height: 100%; }
.pk-n { margin: 4px 0 0; font: 800 25px/1.1 var(--font-num); color: var(--lb-ink); white-space: nowrap; }
/* the two marked packs, their tag at the top edge, and "+%N bonus" under the amount (hidden, not removed, on the first pack) */
.pk.is-pop { background: linear-gradient(180deg, var(--lb-goldpaper-1) 0%, var(--lb-goldpaper-2) 45%, var(--lb-goldpaper-3) 100%); box-shadow: inset 0 0 0 2.5px var(--lb-gold-3), inset 0 3px 0 #fff, 0 6px 0 var(--lb-gold-4), 0 12px 18px rgba(0, 22, 18, 0.4); }
.pk.is-best { background: linear-gradient(180deg, #f8fffb 0%, #e2f7ea 45%, #bfe9d1 100%); box-shadow: inset 0 0 0 2.5px var(--lb-emerald-3), inset 0 3px 0 #fff, 0 6px 0 var(--lb-emerald-4), 0 12px 18px rgba(0, 22, 18, 0.4); }
.pk-tag { position: absolute; left: 50%; top: -1px; height: 26px; padding: 0 14px; border-radius: 0 0 13px 13px; font: 800 13.5px/26px var(--font-display); white-space: nowrap; transform: translateX(-50%); }
.pk.is-pop .pk-tag { background: linear-gradient(180deg, var(--lb-gold-1), var(--lb-gold-3)); color: var(--lb-gold-ink); }
.pk.is-best .pk-tag { background: linear-gradient(180deg, var(--lb-emerald-1), var(--lb-emerald-3)); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }
.pk-bonus { height: 24px; margin: 7px 0 12px; padding: 0 11px; border-radius: 12px; background: rgba(34, 178, 124, 0.16); font: 800 14px/24px var(--font-num); color: #0d7a50; white-space: nowrap; }
.pk-bonus.is-none { visibility: hidden; }
.pk-buy { width: 100%; padding: 0 6px; font-family: var(--font-num); font-weight: 800; }
/* purchases are not open: a glass button, not a gold one */
.pk-buy.is-soon { background: linear-gradient(180deg, var(--lb-sunk-lo), var(--lb-sunk-hi)); border: 0; box-shadow: none; color: var(--lb-ink-2); text-shadow: none; }
.pk-buy.is-soon::after { opacity: 0.25; }
.is-phone .pk-buy.is-soon { box-shadow: none; }
/* purchases open (the Android app, the server's store on): the gold .btn with the store's own price — a long
   price string ends in "…" instead of wrapping; while a purchase runs / the prices load the buttons are dimmed */
.pk-buy:not(.is-soon) span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* a row with a price string longer than "₺1.299,99" (js/ui/store.js priceHTML: "TRY 1,299.99", "1.299,99 TL" on a
   phone in another language): every price of the row smaller, two lines where one needs them — never "TRY 1,2…" */
.pk-buy span.is-long { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 0.8em; line-height: 1.05; letter-spacing: -0.01em; white-space: normal; overflow-wrap: anywhere; }
.pk-buy:disabled { filter: none; opacity: 0.6; }
.is-phone .st-packs { gap: 6px; padding-top: 2px; }
.is-phone .pk { padding: 8px 3px 9px; }
.is-phone .pk-art { margin-top: 11px; }
.is-phone .pk.is-pop { box-shadow: inset 0 0 0 2px var(--lb-gold-3), 0 4px 0 var(--lb-gold-4), 0 7px 10px rgba(0, 22, 18, 0.38); }
.is-phone .pk.is-best { box-shadow: inset 0 0 0 2px var(--lb-emerald-3), 0 4px 0 var(--lb-emerald-4), 0 7px 10px rgba(0, 22, 18, 0.38); }
.is-phone .pk-n { margin: 2px 0 0; font-size: 15px; letter-spacing: -0.01em; }
.is-phone .pk-tag { height: 17px; padding: 0 8px; border-radius: 0 0 9px 9px; font-size: 10px; line-height: 17px; }
/* (phones: "+%180" alone — the green pill says "bonus" — at a size that reads on eight narrow cards) */
.is-phone .pk-bonus { height: 18px; margin: 3px 0 5px; padding: 0 7px; border-radius: 9px; font-size: 12.5px; line-height: 18px; }
.is-phone .pk-bw { display: none; }
.is-phone .pk-buy { padding: 0 2px; font-size: 14.5px; }
/* more than eight packs in the row (js/ui/store.js: a longer list of the server's): smaller amounts and prices */
.st-packs.is-dense .pk-n { font-size: 20px; }
.st-packs.is-dense .pk-buy { font-size: 16px; }
.is-phone .st-packs.is-dense .pk-n { font-size: 12.5px; }
.is-phone .st-packs.is-dense .pk-buy { font-size: 12px; }
/* VIP üyelik (docs/VIP.md): the VIP card — the gem, "VIP üyelik" with its state, the perks in one line, the planned
   price on the closed glass button of the YAKINDA state (like the packs); the card itself opens the VIP sheet */
.st-vip { display: flex; flex: none; border-radius: var(--rad); background: linear-gradient(180deg, rgba(2, 32, 26, 0.5), rgba(2, 32, 26, 0.66)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.st-vip.is-on { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 2px rgba(232, 178, 58, 0.75); }
.st-vip-c { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; min-height: 62px; padding: 6px 8px 6px 16px; cursor: pointer; }
.st-vip-ic { display: flex; flex: none; width: 36px; height: 36px; }
.st-vip-ic svg { width: 100%; height: 100%; }
.st-vip-h { display: flex; flex-direction: column; flex: none; gap: 3px; }
.st-vip-h b { font: 800 22px/1 var(--font-display); color: var(--lb-gold-on-felt); white-space: nowrap; }
.st-vip-h small { font: 700 13px/1.2 var(--font-body); color: var(--lb-on-felt); opacity: 0.85; white-space: nowrap; }
.st-vip-c.is-on .st-vip-h small { color: var(--lb-gold-on-felt); opacity: 1; }
.st-vip-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 15.5px/1.3 var(--font-body); color: var(--lb-on-felt); }
.st-vip-buy { flex: none; height: 46px; padding: 0 18px; font-family: var(--font-num); font-size: 18px; font-weight: 800; }
.st-vip-c .soon { margin-right: -6px; }
/* (closed: the packs' glass button of the YAKINDA state — on the felt strip and on the VIP sheet alike) */
.st-vip-buy.is-soon, .st-vp-buy.is-soon { background: linear-gradient(180deg, var(--lb-sunk-lo), var(--lb-sunk-hi)); border: 0; box-shadow: none; color: var(--lb-ink-2); text-shadow: none; }
.st-vip-buy.is-soon::after, .st-vp-buy.is-soon::after { opacity: 0.25; }
/* (open — docs/VIP.md §6.7: the shared gold .btn-gold with the store's price; while a purchase runs it is the shared .btn:disabled) */
.is-phone .st-vip-c { gap: 8px; min-height: 48px; padding: 2px 4px 2px 10px; }
.is-phone .st-vip-ic { width: 22px; height: 22px; }
.is-phone .st-vip-h { gap: 1px; }
.is-phone .st-vip-h b { font-size: 14.5px; }
.is-phone .st-vip-h small { font-size: 10.5px; }
.is-phone .st-vip-t { font-size: 11.5px; }
.is-phone .st-vip-buy { padding: 0 10px; font-size: 14px; }
.is-phone .st-vip-c .soon { margin-right: -2px; }
.is-phone .st-vip-buy.is-soon, .is-phone .st-vp-buy.is-soon { box-shadow: none; }
/* the VIP sheet (StoreUI.openVip): a paper sheet over whatever is open */
.st-vipm { width: 640px; }
.is-phone .st-vipm { width: 560px; }
.st-vipm:focus { outline: none; }
.st-vp { display: flex; flex-direction: column; gap: 12px; }
/* (why the sheet opened — Cüzdan's gem "Gönder": "Çip gönderme VIP üyelere özel.", docs/TRANSFER.md §9.3) */
.st-vp-why { padding: 8px 12px; border-radius: 12px; background: rgba(247, 191, 69, 0.2); box-shadow: inset 0 0 0 1.5px rgba(221, 142, 23, 0.4); font: 800 16px/1.3 var(--font-display); color: #8a5a0c; }
.is-phone .st-vp-why { padding: 5px 10px; border-radius: 10px; font-size: 14px; }
.st-vp-top { display: flex; align-items: center; gap: 14px; }
.st-vp-gem { display: flex; flex: none; width: 46px; height: 46px; }
.st-vp-gem svg { width: 100%; height: 100%; }
.st-vp-st b { display: block; font: 800 21px/1.15 var(--font-display); color: var(--lb-ink); }
.st-vp.is-on .st-vp-st b { color: #8a5a0c; }
.st-vp-st small { display: block; margin-top: 3px; font: 700 13.5px/1.3 var(--font-body); color: var(--lb-ink-2); }
.st-vp-l { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 0; padding: 0; list-style: none; }
.st-vp-l li { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 8px; align-items: start; }
.st-vp-ck { display: flex; width: 20px; height: 20px; margin-top: 1px; color: #0d7a50; }
.st-vp-ck svg { width: 100%; height: 100%; stroke-width: 3; }
.st-vp-l b { font: 800 15.5px/1.25 var(--font-display); color: var(--lb-ink); }
.st-vp-l small { grid-column: 2; font: 600 12.5px/1.3 var(--font-body); color: var(--lb-ink-2); }
.st-vp-bank { color: var(--lb-ink); }
/* the foot (docs/VIP_SUB.md §7.3): the terms + links on the left, the button on the right — always in view together.
   The sheet's body scrolls the note / state / perks above it; the foot sticks to the body's bottom on the paper (its
   own bottom padding replaces the body's, so it sits flush when stuck). No mask under it: the fade would dim the terms. */
.st-vipm .modal-body { padding-bottom: 0; }
/* (the sheet's paper is flat over its last 110 px — the foot's tallest, iOS with the restore row — so the foot's own
   paper is the same colour as the sheet around it; html + .stage: above css/lobby.css's .modal.lb-sheet) */
html .stage .st-vipm { background: linear-gradient(180deg, var(--lb-paper-hi) 0%, var(--lb-paper) 30%, var(--lb-paper-lo) calc(100% - 110px)); }
html.is-phone .st-vipm .modal-body { -webkit-mask-image: none; mask-image: none; }
.st-vp-foot { position: sticky; bottom: 0; z-index: 1; display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: -4px; padding: 12px 0 18px; background: linear-gradient(180deg, transparent, var(--lb-paper-lo) 12px); }
.st-vp-terms { flex: 1; min-width: 0; font: 600 12px/1.35 var(--font-body); color: var(--lb-ink-2); }
.st-vp-tt { display: block; }
.st-vp-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin-top: 3px; }
.st-vp-dot { color: var(--lb-ink-2); }
/* a link of the foot: 16 px of text, a 44 px tall hit area (a transparent ::after: 20 px above, 8 px below — the foot's
   bottom padding on phones) and 12+ px between the two links' hit areas (2 × 8 px gap + the dot − 2 × 2 px) */
.st-vp-a { position: relative; padding: 0; border: 0; background: none; font: 700 12px/16px var(--font-body); color: var(--lb-ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.st-vp-a::after { content: ''; position: absolute; left: -2px; right: -2px; top: -20px; bottom: -8px; }
.st-vp-act { display: flex; flex: none; flex-direction: column; align-items: flex-end; }
.st-vp-btns { display: flex; align-items: center; gap: 10px; }
/* the iOS "Satın alımları geri yükle": under the button, right-aligned, its own 44 px row 12 px below the button */
.st-vp-rs { min-height: 44px; margin-top: 12px; margin-bottom: -14px; padding: 0 2px; }
.st-vp-rs::after { display: none; }
.st-vp-rs:disabled { opacity: 0.5; cursor: default; }
.st-vp-buy { min-width: 200px; font-family: var(--font-num); font-weight: 800; }
.is-phone .st-vp { gap: 7px; }
.is-phone .st-vp-gem { width: 34px; height: 34px; }
.is-phone .st-vp-st b { font-size: 17px; }
.is-phone .st-vp-st small { font-size: 12px; }
.is-phone .st-vp-l { gap: 5px 12px; }
.is-phone .st-vp-l b { font-size: 14px; }
.is-phone .st-vp-l small { font-size: 11.5px; }
/* a short phone whose sheet would scroll (StoreUI fitVipSheet): the perks keep their titles, their second lines go */
.is-phone .st-vipm.is-tight .st-vp-l small { display: none; }
.is-phone .st-vp-buy { min-width: 160px; }
.is-phone .st-vp-foot { gap: 10px; margin-top: -2px; padding: 8px 0 8px; background: linear-gradient(180deg, transparent, var(--lb-paper-lo) 8px); }
.is-phone .st-vp-terms { font-size: 11.5px; line-height: 1.3; }
.is-phone .st-vp-a { font-size: 11.5px; }
.is-phone .st-vp-rs { margin-top: 12px; margin-bottom: -8px; }

/* --- "Çip yetmiyor": the doors to chips ------------------------------------------------------------------- */
.modal-nc { width: 780px; }
.modal-nc.is-wide { width: 980px; }
.is-phone .modal-nc { width: 620px; }
.is-phone .modal-nc.is-wide { width: 744px; }
.nc { display: flex; flex-direction: column; gap: 12px; }
.nc-msg { font: 700 17px/1.4 var(--font-body); color: var(--lb-ink); }
.nc-msg b { font-family: var(--font-num); color: var(--lb-gold-ink-paper); }
.nc-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.nc-opts.is-n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nc-opts.is-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nc-opts.is-n1 { grid-template-columns: minmax(0, 280px); justify-content: center; }
.nc-o { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 14px 10px 15px; text-align: center; }
.nc-o .fc-ic { width: 54px; height: 54px; }
.nc-o b { font: 800 17px/1.15 var(--font-display); color: var(--lb-ink); white-space: nowrap; }
.nc-s { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 13.5px/1.25 var(--font-body); color: var(--lb-ink-2); }
.nc-s em { font: 800 15px/1 var(--font-num); font-style: normal; color: var(--lb-gold-ink-paper); }
.nc-o .btn { width: 100%; margin-top: 4px; }
.nc-foot { display: flex; align-items: center; justify-content: center; gap: 14px; }
.nc-foot > span { font: 700 15px/1.3 var(--font-body); color: var(--lb-ink-2); }
.nc-low { min-width: 240px; }
.is-phone .nc { gap: 7px; }
.is-phone .nc-msg { font-size: 14px; }
.is-phone .nc-opts { gap: 7px; }
.is-phone .nc-o { gap: 3px; padding: 8px 7px 11px; }
.is-phone .nc-o .fc-ic { width: 38px; height: 38px; border-radius: 11px; }
.is-phone .nc-o b { font-size: 14.5px; }
.is-phone .nc-s { font-size: 11.5px; }
.is-phone .nc-s em { font-size: 12.5px; }
.is-phone .nc-o .btn { margin-top: 2px; }
.is-phone .nc-foot { gap: 10px; }
.is-phone .nc-foot > span { font-size: 12.5px; }
.is-phone .nc-low { min-width: 200px; }
