/* PlayRound "Igraonica": same tokens as the iOS theme (AppLook.igraonica, Theme.playColors). */
:root {
  --paper: #FFF8EE; --card: #FFFFFF; --card-2: #F3E9D9; --ink: #1E1B2E; --muted: #6B6680; --line: #F0E6D6;
  --orange: #E4572E; --orange-lip: #A8341A; --red: #D7263D; --green: #1F8A3E;
  --radius: 20px;
  font-family: Nunito, system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); -webkit-tap-highlight-color: transparent; }
/* Native feel: no text selection, iOS Copy/Look Up callout, magnifier or image drag anywhere (games, cards, tables).
   Only real text fields stay selectable/editable. */
html, body, body * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
img, svg, canvas, a { -webkit-user-drag: none; user-drag: none; }
input, textarea, [contenteditable=""], [contenteditable="true"] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
input[type="range"], input[type="checkbox"], input[type="radio"], input[type="button"], input[type="submit"] { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
button, input { font: inherit; color: inherit; }
a { color: var(--orange); }
.screen { max-width: 560px; margin: 0 auto; min-height: 100dvh; padding: calc(env(safe-area-inset-top) + 20px) 20px calc(env(safe-area-inset-bottom) + 24px); display: flex; flex-direction: column; gap: 16px; }
h1 { margin: 0; font-size: 30px; font-weight: 900; line-height: 1.1; }
h2 { margin: 0; font-size: 20px; font-weight: 900; }
.h-small { font-size: 21px; }
.muted { color: var(--muted); } .strong { font-weight: 800; } .small { font-size: 14px; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.top { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-top: 6px; }
.avatar { width: 46px; height: 46px; border-radius: 23px; border: 3px solid var(--ink); background: #FFC53D; display: grid; place-items: center; font-size: 22px; }
.btn { min-height: 48px; padding: 0 20px; border: 0; border-radius: 16px; font-weight: 900; font-size: 17px; cursor: pointer; transition: transform .08s; }
.btn:active { transform: translateY(4px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 5px 0 var(--orange-lip); }
.btn-primary:active { box-shadow: 0 1px 0 var(--orange-lip); }
.btn-plain { background: var(--card); border: 2px solid var(--line); box-shadow: 0 4px 0 #E2D4BE; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); font-size: 26px; font-weight: 900; cursor: pointer; }
.field { min-height: 48px; padding: 0 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); font-size: 16px; }
.field:focus { outline: 3px solid #FFC53D; border-color: transparent; }
.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); }
.list { display: flex; flex-direction: column; gap: 10px; }
.row-card { display: flex; align-items: center; gap: 12px; padding: 12px; text-align: left; cursor: pointer; }
.row-card .title { display: block; font-weight: 900; font-size: 17px; }
.row-card .muted { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emoji-tile { width: 52px; height: 52px; border-radius: 16px; background: var(--card-2); display: grid; place-items: center; font-size: 28px; flex: none; }
.badge { background: var(--red); color: #fff; font-weight: 900; font-size: 13px; border-radius: 10px; padding: 3px 8px; }
.live-card { width: 100%; text-align: left; border: 0; border-radius: 22px; padding: 16px 18px; color: #fff; background: var(--orange); box-shadow: 0 5px 0 var(--orange-lip); cursor: pointer; }
.live-dot { font-size: 13px; font-weight: 900; letter-spacing: .08em; }
.live-dot::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 5px; background: #fff; margin-right: 8px; }
.live-title { font-size: 21px; font-weight: 900; margin-top: 6px; } .live-sub { font-weight: 700; opacity: .9; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.game-tile { min-height: 96px; border-radius: 20px; padding: 14px; background: var(--c); box-shadow: 0 5px 0 var(--lip); color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.game-name { font-size: 18px; font-weight: 900; } .game-tag { font-size: 12px; font-weight: 800; opacity: .9; }
.note { margin: 0; padding: 12px 14px; border-radius: 16px; background: #FFE9B0; font-weight: 700; font-size: 14px; }
.chat-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.msg { align-self: flex-start; max-width: 78%; } .msg.mine { align-self: flex-end; }
.msg-name { font-size: 12px; font-weight: 800; color: var(--muted); margin: 0 0 2px 6px; }
.bubble { background: var(--card); border: 2px solid var(--line); border-radius: 20px; padding: 9px 14px; font-size: 16px; overflow-wrap: anywhere; }
.msg.mine .bubble { background: var(--orange); border-color: var(--orange); color: #fff; }
.msg-system { align-self: center; background: var(--card-2); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 800; }
.composer { display: flex; gap: 8px; }
.login { align-items: center; justify-content: center; text-align: center; }
.logo { width: 96px; height: 96px; border-radius: 28px; background: var(--orange); color: #fff; font-size: 56px; font-weight: 900; display: grid; place-items: center; box-shadow: 0 6px 0 var(--orange-lip); }
.lead { font-size: 18px; font-weight: 700; color: var(--muted); margin: 0 0 8px; }
.google-slot { min-height: 48px; display: flex; justify-content: center; }
.legal { font-size: 13px; }
.toast { position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 12px); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 800; z-index: 10; max-width: 90vw; }
.stack { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.center { text-align: center; } .pad { padding: 10px 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 0; border-radius: 14px; padding: 10px 16px; font-weight: 900; color: #fff; background: var(--c); box-shadow: 0 4px 0 var(--lip); cursor: pointer; }
.res-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.emoji-tile.sm { width: 38px; height: 38px; font-size: 20px; border-radius: 12px; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 14px; }
.results { padding: 14px 16px; }
.countdown { font-size: 44px; font-weight: 900; text-align: center; margin-top: 30vh; }
/* Game tables stay dark, as on iOS (SessionView forces dark). */
.session { background: #0F1A14; color: #F4EBDD; max-width: none; }
.session .icon-btn { background: #1E2A23; border-color: #2C3A31; color: #F4EBDD; }
.session .card { background: #18241D; border-color: #2C3A31; }
.session .btn-plain { background: #1E2A23; border-color: #2C3A31; box-shadow: 0 4px 0 #0A110D; }
.session .muted { color: #A9B5AC; }
.felt { flex: 1; display: flex; flex-direction: column; padding: 14px; border-radius: 28px; background: radial-gradient(circle at 50% 40%, #1F7A45, #0F4D2B); box-shadow: inset 0 0 0 6px #3B2416; }
.felt-in { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; max-width: 760px; margin: 0 auto; }
.seat { display: flex; flex-direction: column; align-items: center; padding: 6px 14px; border-radius: 14px; background: rgba(0,0,0,.25); }
.seat.on { outline: 3px solid #FFC53D; }
.seat-name { font-weight: 900; } .seat-stat { font-size: 13px; opacity: .85; }
.felt-note { font-size: 14px; opacity: .9; min-height: 18px; text-align: center; }
.round-end { background: #FFC53D; color: #1E1B2E; font-weight: 900; padding: 8px 16px; border-radius: 999px; }
.table-cards { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; min-height: 92px; align-items: center; flex: 1; }
.hand { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.hand.opp .pcard { width: 34px; height: 50px; }
.pcard { width: 62px; height: 90px; border-radius: 10px; background: #FFFDF8; color: #1E1B2E; border: 1px solid #D8CDBA; box-shadow: 0 3px 0 rgba(0,0,0,.35); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 900; padding: 0; }
.pcard.small { width: 52px; height: 76px; }
.pcard.red { color: #D7263D; }
.pcard .pc-rank { font-size: 22px; line-height: 1; } .pcard .pc-suit { font-size: 24px; line-height: 1; }
button.pcard { cursor: pointer; transition: transform .1s; }
button.pcard:not(:disabled):hover { transform: translateY(-8px); }
button.pcard:disabled { opacity: .7; cursor: default; }
.pcard.back { background: repeating-linear-gradient(45deg, #E4572E 0 6px, #C9441F 6px 12px); border: 3px solid #FFFDF8; }
.stackc { display: flex; flex-direction: column; gap: 10px; align-items: stretch; width: 100%; }
.center-row { justify-content: center; }
.opps { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.oppseat { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.oppseat.folded { opacity: .45; }
.played { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pcard.dim { opacity: .45; } .pcard.selected { transform: translateY(-12px); outline: 3px solid #FFC53D; }
.pcard.ghost { background: transparent; border: 2px dashed rgba(255,255,255,.4); color: rgba(255,255,255,.6); box-shadow: none; font-size: 22px; }
.pcard.joker .pc-rank { font-size: 30px; }
.hand.fan { gap: 2px; } .hand.fan .pcard { width: 50px; height: 74px; }
.pile { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; color: inherit; cursor: pointer; }
.pile:disabled { cursor: default; opacity: .8; }
.pile .pcard.back { width: 52px; height: 76px; }
.melds { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.meld { display: flex; gap: 0; background: rgba(0,0,0,.2); border: 0; border-radius: 12px; padding: 6px; cursor: pointer; }
.meld .pcard { margin-right: -20px; } .meld .pcard:last-child { margin-right: 0; }
.meld:disabled { cursor: default; }
.suit-btn { font-size: 22px; min-width: 52px; }
.chips .tab { border: 0; border-radius: 12px; padding: 8px 12px; font-weight: 800; background: rgba(0,0,0,.25); color: inherit; cursor: pointer; }
.chips .tab.on { background: #FFC53D; color: #1E1B2E; }
.dice { display: flex; gap: 10px; }
.die { width: 54px; height: 54px; border-radius: 12px; background: #FFFDF8; border: 0; display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px; gap: 2px; box-shadow: 0 4px 0 rgba(0,0,0,.35); cursor: pointer; }
.die:disabled { cursor: default; }
.die span.pip { background: #1E1B2E; border-radius: 50%; }
.die.held { outline: 4px solid #FFC53D; transform: translateY(-4px); }
.sheet-wrap { width: 100%; overflow-x: auto; }
.sheet { border-collapse: collapse; margin: 0 auto; background: #FFFDF8; color: #1E1B2E; border-radius: 12px; overflow: hidden; font-size: 14px; }
.sheet th, .sheet td { border: 1px solid #E6DCC8; padding: 3px 6px; text-align: center; min-width: 34px; height: 28px; }
.sheet thead th { background: #F3E9D9; } .sheet tbody th { background: #F3E9D9; text-align: left; }
.sheet td.filled { font-weight: 800; } .sheet td.marked { background: #FFE9B0; } .sheet tr.sum td { font-weight: 900; background: #F3E9D9; }
.cell { width: 100%; border: 0; border-radius: 6px; font-weight: 900; cursor: pointer; padding: 2px 4px; }
.cell.open { background: #2BA84A; color: #fff; } .cell.announce { background: #E4572E; color: #fff; font-size: 11px; }
.letters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.letter { min-width: 46px; height: 50px; border-radius: 12px; border: 0; background: #FFFDF8; color: #1E1B2E; font-size: 22px; font-weight: 900; box-shadow: 0 4px 0 rgba(0,0,0,.35); cursor: pointer; padding: 0 10px; }
.letter:disabled { opacity: .6; } .letter.num { min-width: 58px; }
.geo-grid { display: grid; gap: 8px; width: 100%; }
.geo-row { display: flex; align-items: center; gap: 10px; } .geo-cat { width: 90px; font-weight: 800; }
.geo-row .field { flex: 1; color: #1E1B2E; }
.geo-table td { vertical-align: top; min-width: 90px; }
.geo-table td.struck div:first-child { text-decoration: line-through; opacity: .6; }
.vote { margin-top: 4px; border: 0; border-radius: 8px; padding: 3px 8px; font-size: 12px; font-weight: 800; cursor: pointer; background: #F3E9D9; }
.vote.on { background: #D7263D; color: #fff; }
@keyframes pulse { 50% { transform: scale(1.12); } }
.asoc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; }
.asoc-col { display: flex; flex-direction: column; gap: 6px; }
.asoc-field, .asoc-answer, .asoc-final { border: 0; border-radius: 10px; min-height: 40px; font-weight: 800; padding: 6px; background: #2F5FD8; color: #fff; cursor: pointer; font-size: 14px; }
.asoc-field.open { background: #FFFDF8; color: #1E1B2E; display: grid; place-items: center; text-align: center; }
.asoc-field:disabled { cursor: default; }
.asoc-answer { background: #F5A524; color: #1E1B2E; } .asoc-final { background: #E4572E; font-size: 17px; width: 100%; }
.asoc-answer.solved, .asoc-final.solved { background: #2BA84A; color: #fff; }
.asoc-answer.target, .asoc-final.target { outline: 3px solid #FFC53D; }
.kboard { display: flex; flex-direction: column; gap: 6px; }
.krow { display: flex; gap: 6px; align-items: center; }
.ktile { width: 46px; height: 46px; border-radius: 12px; background: rgba(0,0,0,.25); display: grid; place-items: center; font-size: 24px; border: 0; color: #FFC53D; }
.ktile.next { outline: 2px solid #FFC53D; } .btn-sym { background: #FFFDF8; color: #1E1B2E; cursor: pointer; box-shadow: 0 3px 0 rgba(0,0,0,.35); }
.pegs { display: grid; grid-template-columns: repeat(2, 12px); gap: 3px; margin-left: 6px; }
.peg { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.2); } .peg.red { background: #D7263D; } .peg.yellow { background: #F5C518; }
.rac-target { font-size: 54px; font-weight: 900; background: #FFFDF8; color: #1E1B2E; border-radius: 18px; padding: 4px 26px; }
.rac .field, .reci .field, .asoc .field { color: #1E1B2E; }
.pool { width: 100%; max-width: 900px; border-radius: 16px; touch-action: none; }
.scorebar { display: flex; gap: 8px; flex-wrap: wrap; } .sb { background: rgba(0,0,0,.25); padding: 4px 10px; border-radius: 999px; font-weight: 800; font-size: 13px; } .sb.me { background: #FFC53D; color: #1E1B2E; }
.plus { background: linear-gradient(135deg, #FFE9B0, #FFD07A); border-color: #F5A524; }
.plus h2 { display: flex; gap: 8px; align-items: center; }
.badge.ok { background: #1F8A3E; }
.google-btn { width: 320px; max-width: 100%; }
.btn-danger { background: #D7263D; color: #fff; box-shadow: 0 4px 0 #9A1828; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat-v { font-size: 28px; font-weight: 900; }
.switch-row { cursor: pointer; }
.switch { appearance: none; width: 52px; height: 30px; border-radius: 15px; background: #D8CDBA; position: relative; cursor: pointer; flex: none; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 12px; background: #fff; transition: left .15s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch:checked { background: #1F8A3E; } .switch:checked::after { left: 25px; }
.user-row .row { margin-top: 6px; } .user-row.is-banned { opacity: .7; border-color: #D7263D; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 11px; word-break: break-all; }
.quote { margin: 8px 0; padding: 8px 12px; border-left: 4px solid #E4572E; background: #FFF8EE; border-radius: 8px; }
.card.done { opacity: .6; }
a.btn { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.admin .chips .tab { background: #fff; border: 2px solid #F0E6D6; color: #1E1B2E; } .admin .chips .tab.on { background: #FFC53D; border-color: #FFC53D; }

/* ===== iOS Igraonica components (ported 1:1 from SwiftUI) ===== */
:root { --ink:#1E1B2E; --paper:#FFF8EE; --surface:#FFFFFF; --surface-hi:#F3E9D9; --muted:rgba(30,27,46,.62); --line:rgba(30,27,46,.10);
  --brass:#E4572E; --brass-l:#FF7A4D; --brass-d:#A8341A; --ruby:#D7263D; --emerald:#1F8A3E; --green:#1F8A3E; --red:#D7263D;
  --brand: linear-gradient(135deg, #FF7A4D, #E4572E, #A8341A); }
body { font-family: Nunito, system-ui, sans-serif; color: var(--ink); background: var(--paper); }
.disp { font-weight: 900; }
.live-bg { position: fixed; inset: 0; z-index: -1; background: var(--paper); overflow: hidden; }
.live-bg i { position: absolute; width: 110vw; height: 110vw; max-width: 900px; max-height: 900px; border-radius: 50%; filter: blur(70px); opacity: .18; animation: drift 40s ease-in-out infinite alternate; }
.live-bg i:nth-child(1) { background: #E4572E; left: -30%; top: -25%; }
.live-bg i:nth-child(2) { background: #D7263D; right: -40%; top: 0%; animation-delay: -12s; }
.live-bg i:nth-child(3) { background: #D65C29; left: 10%; top: 20%; animation-delay: -24s; opacity: .12; }
@keyframes drift { 50% { transform: translate(8%, 6%); } }
.pulse { animation: pulse-shadow 1.6s ease-in-out infinite; }
@keyframes pulse-shadow { 50% { box-shadow: 0 0 0 6px rgba(215,38,61,0); filter: brightness(1.08); } }

/* Avatar */
.av { position: relative; display: inline-grid; place-items: center; flex: none; width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle at 32% 22%, rgba(255,255,255,.45), transparent 55%), linear-gradient(135deg, var(--c0), var(--c1));
  box-shadow: inset 0 0 0 max(1px, calc(var(--s) * .035)) rgba(255,255,255,.45), 0 calc(var(--s) * .06) calc(var(--s) * .24) color-mix(in srgb, var(--c1) 45%, transparent); }
.av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.av-e { font-size: calc(var(--s) * .56); line-height: 1; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.av-ring { position: absolute; inset: calc(var(--s) * -.09); border-radius: 50%; border: max(2px, calc(var(--s) * .06)) solid var(--ring); }
.av-stack { display: inline-flex; } .av-stack .av { margin-right: calc(var(--s) * -.3); box-shadow: 0 0 0 2px #fff; }
.av-more { width: var(--s); height: var(--s); border-radius: 50%; background: var(--surface-hi); font-size: calc(var(--s) * .4); font-weight: 800; display: grid; place-items: center; }

/* GameCover */
.gc { position: relative; overflow: hidden; background: var(--tint); --u: 10px; }
.gc::before { content: ""; position: absolute; inset: 0; background: var(--tex) repeat; background-size: 256px; opacity: .9; }
.gc-scene { position: absolute; inset: 0; display: grid; place-items: center; }
.gc-lamp { position: absolute; inset: 0; background: radial-gradient(ellipse 75% 75% at 50% 15%, rgba(255,237,199,.22), transparent 70%); mix-blend-mode: screen; pointer-events: none; }
.gc-vig { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, transparent 45%, rgba(0,0,0,.55) 100%); pointer-events: none; }
.gc-fan, .gc-stack { position: relative; width: 0; height: 0; }
.gc-fan > *, .gc-stack > * { position: absolute; left: 0; top: 0; translate: -50% -50%; transform-origin: 50% 100%; }
.gc-card { width: calc(var(--u) * 2.6); aspect-ratio: .7; border-radius: calc(var(--u) * .22); box-shadow: calc(var(--u) * .08) calc(var(--u) * .2) calc(var(--u) * .5) rgba(0,0,0,.5); }
.gc-fan > .gc-card { transform-origin: 50% 100%; }
.gc-die { width: calc(var(--u) * 1.7); height: calc(var(--u) * 1.7); border-radius: calc(var(--u) * .35); background: linear-gradient(160deg, #fff, #e8e2d6); display: grid; grid-template-columns: repeat(3, 1fr); padding: calc(var(--u) * .28); gap: calc(var(--u) * .06); box-shadow: inset 0 -3px 0 rgba(0,0,0,.12), 0 calc(var(--u) * .15) calc(var(--u) * .4) rgba(0,0,0,.5); }
.gc-die.ivory { width: calc(var(--u) * 1.4); height: calc(var(--u) * 1.4); }
.gc-die i.p { border-radius: 50%; background: #1E1B2E; }
.gc-pawn { width: calc(var(--u) * 1.1); height: calc(var(--u) * 2); }
.gc-pawn::before { content: ""; position: absolute; left: 50%; top: 0; translate: -50% 0; width: calc(var(--u) * .75); height: calc(var(--u) * .75); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8, transparent 50%), var(--c); }
.gc-pawn i { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--u) * 1.3); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 70%, #000), var(--c), color-mix(in srgb, var(--c) 70%, #fff)); border-radius: 0 0 calc(var(--u) * .3) calc(var(--u) * .3); }
.gc-pawn { filter: drop-shadow(0 calc(var(--u) * .15) calc(var(--u) * .15) rgba(0,0,0,.5)); }
.gc-mica > span[class^="m"] { position: absolute; left: 0; top: 0; translate: -50% -50%; border: calc(var(--u) * .12) solid rgba(31,18,8,.75); }
.gc-mica .m1 { width: calc(var(--u) * 7); height: calc(var(--u) * 7); } .gc-mica .m2 { width: calc(var(--u) * 5); height: calc(var(--u) * 5); } .gc-mica .m3 { width: calc(var(--u) * 3); height: calc(var(--u) * 3); }
.gc-mica .mx { width: calc(var(--u) * 7); height: 0; border-width: calc(var(--u) * .06) 0 !important; } .gc-mica .my { width: 0; height: calc(var(--u) * 7); border-width: 0 calc(var(--u) * .06) !important; }
.gc-stone { width: calc(var(--u) * 1.1); height: calc(var(--u) * 1.1); border-radius: 50%; box-shadow: 0 calc(var(--u) * .1) calc(var(--u) * .24) rgba(0,0,0,.5); }
.gc-stone.w { background: radial-gradient(circle at 35% 30%, #fafafa, #b8b8b8); } .gc-stone.b { background: radial-gradient(circle at 35% 30%, #595959, #0d0d0d); }
.gc-row { display: flex; gap: calc(var(--u) * .25); align-items: center; } .gc-col { display: flex; flex-direction: column; gap: calc(var(--u) * .45); align-items: center; }
.gc-tile { width: calc(var(--u) * 1.8); height: calc(var(--u) * 1.8); border-radius: calc(var(--u) * .32); display: grid; place-items: center; font-weight: 900; font-size: calc(var(--u) * .8); color: #381F0F;
  background: linear-gradient(#FCEBC2, #E6C287); box-shadow: 0 calc(var(--u) * .13) 0 #734A24, 0 calc(var(--u) * .2) calc(var(--u) * .3) rgba(0,0,0,.45); }
.gc-tile.lit { background: linear-gradient(#FF7A4D, #F2C773); } .gc-tile.sm { width: calc(var(--u) * 1.25); height: calc(var(--u) * 1.25); font-size: calc(var(--u) * .5); }
.gc-globe { font-size: calc(var(--u) * 4.6); filter: drop-shadow(0 calc(var(--u) * .2) calc(var(--u) * .3) rgba(0,0,0,.5)); }
.gc-asoc { display: grid; grid-template-columns: repeat(4, calc(var(--u) * 1.5)); gap: calc(var(--u) * .18); }
.gc-asoc span { height: calc(var(--u) * .9); border-radius: calc(var(--u) * .14); background: linear-gradient(#384D85, #1F2952); color: rgba(255,255,255,.6); font-weight: 900; font-size: calc(var(--u) * .45); display: grid; place-items: center; box-shadow: 0 calc(var(--u) * .06) calc(var(--u) * .16) rgba(0,0,0,.4); }
.gc-asoc span.open { background: linear-gradient(#FAE6B3, #DBB36B); color: #40260D; font-size: calc(var(--u) * .32); }
.gc-komb { width: calc(var(--u) * 1.6); height: calc(var(--u) * 1.6); border-radius: calc(var(--u) * .45); background: linear-gradient(#fdfdfd, #e0e0e0); color: var(--k); font-size: calc(var(--u) * .85); font-weight: 900; display: grid; place-items: center; box-shadow: 0 calc(var(--u) * .1) 0 color-mix(in srgb, var(--k) 40%, transparent), inset 0 0 0 1.5px color-mix(in srgb, var(--k) 65%, transparent); }
.gc-pegs i { width: calc(var(--u) * .45); height: calc(var(--u) * .45); border-radius: 50%; } .gc-pegs i.r { background: #DB383D; } .gc-pegs i.y { background: #FACC40; }
.gc-target { font: 900 calc(var(--u) * 2) Georgia, serif; color: #291A0A; padding: 0 calc(var(--u) * .8); border-radius: calc(var(--u) * .3); background: linear-gradient(#F2D18C, #C79447); box-shadow: 0 calc(var(--u) * .15) calc(var(--u) * .4) rgba(0,0,0,.5); }
.gc-ball { width: calc(var(--u) * 1.05); height: calc(var(--u) * 1.05); border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), transparent 40%), var(--b); box-shadow: calc(var(--u) * .06) calc(var(--u) * .12) calc(var(--u) * .2) rgba(0,0,0,.55); }
.gc-ball.stripe { background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), transparent 40%), linear-gradient(#FFFDF5 22%, var(--b) 22% 78%, #FFFDF5 78%); }
.gc-ball b { width: 52%; height: 52%; border-radius: 50%; background: #fff; color: #111; font-size: calc(var(--u) * .34); display: grid; place-items: center; }
.gi { width: var(--s); height: var(--s); border-radius: calc(var(--s) * .24); overflow: hidden; flex: none; display: block; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 calc(var(--s) * .06) calc(var(--s) * .2) rgba(0,0,0,.4); }
.gi .gc { width: 100%; height: 100%; } .gi.dim { filter: saturate(.5); }

/* Buttons and titles */
button { -webkit-tap-highlight-color: transparent; }
.big-btn { flex: 1; border: 0; padding: 0 0 6px; background: none; cursor: pointer; font: 900 19px Nunito, sans-serif; color: #fff; }
.bb-face { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 12px; border-radius: 22px; background: var(--brand);
  box-shadow: 0 6px 0 rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.22), 0 10px 20px rgba(0,0,0,.25); text-shadow: 0 1px 0 rgba(0,0,0,.25); transition: transform .12s; }
.bb-face::after { content: ""; position: absolute; left: 8px; right: 8px; top: 3px; height: 18px; border-radius: 18px; background: rgba(255,255,255,.16); filter: blur(2px); }
.big-btn.plain .bb-face { background: linear-gradient(#34304D, #1E1B2E); color: #fff; }
.big-btn:active .bb-face { transform: translateY(5px); box-shadow: 0 1px 0 rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.22); }
.bb-ic { font-size: 22px; }
.sec-title .st-t { font-weight: 900; font-size: 22px; } .sec-title .st-s { font-weight: 500; font-size: 15px; color: var(--muted); }

/* Home */
.home { max-width: 600px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 12px) 20px 150px; display: flex; flex-direction: column; gap: 22px; }
.home-head { display: flex; align-items: center; gap: 10px; }
.home-head .hi { font-weight: 600; font-size: 19px; color: var(--muted); }
.home-head .brand { font-weight: 900; font-size: 46px; line-height: 1.05; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.streak { display: flex; gap: 4px; align-items: center; padding: 8px 14px; border-radius: 999px; background: rgba(228,87,46,.25); border: 1.5px solid var(--brass); font-weight: 900; font-size: 17px; }
.avatar-btn { border: 0; background: none; padding: 6px; cursor: pointer; }
.live-head { display: flex; align-items: center; gap: 8px; color: var(--red); font-weight: 900; font-size: 15px; }
.live-head i { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.play-again { position: relative; border: 0; padding: 0; border-radius: 24px; overflow: hidden; min-height: 132px; cursor: pointer; text-align: left; box-shadow: 0 8px 32px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.12); }
.play-again .gc { position: absolute; inset: 0; }
.play-again::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.35), transparent); }
.pa-body { position: relative; z-index: 1; display: flex; align-items: center; padding: 18px; min-height: 132px; color: #fff; }
.pa-txt { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.pa-txt .k { font-weight: 600; font-size: 15px; opacity: .75; } .pa-txt .t { font-weight: 900; font-size: 30px; } .pa-txt .g { font-weight: 700; font-size: 16px; opacity: .85; }
.pa-play { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(#FF7A4D, #E4572E, #A8341A); display: grid; place-items: center; font-size: 20px; color: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.3); }
.game-card:active, .locked-card:active, .live-session:active, .play-again:active { transform: scale(.97); }
.live-tag { position: absolute; top: -6px; right: -8px; font-size: 9px; font-weight: 900; color: #fff; background: var(--red); padding: 2px 5px; border-radius: 999px; }
.unread-badge { background: var(--ruby); color: #fff; font-size: 13px; font-weight: 900; padding: 3px 8px; border-radius: 999px; }
.online { display: flex; align-items: center; gap: 4px; color: var(--green); font-size: 12px; font-weight: 700; } .online i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.chev { color: rgba(30,27,46,.35); font-size: 26px; font-weight: 300; line-height: 1; }
.live-session { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px; border: 0; border-radius: 22px; background: var(--surface); text-align: left; cursor: pointer; color: var(--ink); box-shadow: inset 0 0 0 2px var(--gc); }
.ls-mid { flex: 1; display: flex; flex-direction: column; gap: 3px; } .ls-title { font-weight: 900; font-size: 16px; } .ls-sub { font-size: 14px; font-weight: 500; color: var(--muted); }
.ls-join { font-weight: 900; font-size: 14px; color: #fff; padding: 9px 14px; border-radius: 999px; background: var(--g); }
.bob { font-size: 56px; animation: bob 2s ease-in-out infinite; } @keyframes bob { 0%,100% { transform: rotate(-12deg) translateY(6px); } 50% { transform: rotate(12deg) translateY(-6px); } }
.showcase { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; } .showcase::-webkit-scrollbar { display: none; }
.sc-item { width: 84px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; color: var(--ink); }
.sc-item .nm { font-weight: 800; font-size: 13px; max-width: 84px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; padding: 30px 20px calc(env(safe-area-inset-bottom) + 8px); background: linear-gradient(rgba(255,248,238,0), var(--paper) 50%); }
.bottom-bar .inner { max-width: 600px; margin: 0 auto; display: flex; gap: 12px; }

/* Screen with a header (chat, admin) */
.grp { max-width: 720px; margin: 0 auto; height: var(--app-h, 100dvh); overflow: hidden; display: flex; flex-direction: column; }
.grp-top { display: flex; align-items: center; gap: 12px; padding: calc(env(safe-area-inset-top) + 6px) 16px 0; }
.circle-btn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.8); font-size: 22px; font-weight: 700; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.grp-emoji { font-size: 34px; } .grp-name { font-weight: 900; font-size: 22px; } .grp-sub { font-weight: 600; font-size: 15px; color: var(--muted); } .grp-sub.on { color: var(--green); }
.tabbar { display: flex; gap: 4px; padding: 4px; margin: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.85); }
.tabbar button { flex: 1; border: 0; background: none; padding: 11px 6px; border-radius: 999px; font: 900 16px Nunito, sans-serif; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.tabbar button.on { background: var(--brand); color: #fff; box-shadow: 0 0 20px rgba(215,38,61,.35); }
.tabbar .tb-badge { background: var(--ruby); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 999px; }
.cat-head { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; }
.cat-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; color: var(--brass-l); background: linear-gradient(135deg, var(--t0), var(--t1)); }
.cat-name { font-weight: 900; font-size: 22px; flex: 1; }
.brass-badge { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; font-weight: 900; font-size: 12px; color: #fff; background: linear-gradient(#FF7A4D, #E4572E, #A8341A); border: 0; }
.games-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.game-card { display: flex; flex-direction: column; padding: 0; border: 0; border-radius: 20px; overflow: hidden; text-align: left; background: var(--surface); cursor: pointer; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), 0 6px 24px rgba(0,0,0,.25); transition: transform .15s; }
.gcard-cover { height: 140px; }
.gcard-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; min-height: 104px; }
.gcard-title { font-weight: 900; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard-tag { font-weight: 500; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gcard-info { margin-top: auto; font-weight: 600; font-size: 13px; color: var(--brass); }
.locked-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px; min-height: 190px; border: 0; border-radius: 26px; text-align: left; cursor: pointer; color: #fff; overflow: hidden;
  background: linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,.28)), radial-gradient(circle, transparent 40%, rgba(0,0,0,.5)), var(--tex), linear-gradient(135deg, var(--t0), var(--t1)); background-size: auto, auto, 256px, auto; box-shadow: inset 0 0 0 1px rgba(228,87,46,.45), 0 8px 24px rgba(0,0,0,.45); }
.lc-top { display: flex; justify-content: space-between; align-items: flex-start; flex: 1; } .padlock { font-size: 24px; }
.lc-title { font-weight: 900; font-size: 19px; } .lc-tag { font-weight: 500; font-size: 13px; opacity: .75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lc-price { display: flex; align-items: center; gap: 6px; } .lc-forever { font-weight: 700; font-size: 11px; opacity: .7; }
.duel { width: 74px; flex: none; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; font-weight: 700; font-size: 13px; color: var(--ink); }
.send-btn { border: 0; border-radius: 999px; padding: 12px 16px; font: 900 15px Nunito, sans-serif; color: #fff; background: var(--brand); cursor: pointer; }
.chat-wrap { flex: 1; display: flex; flex-direction: column; padding: 0 16px calc(env(safe-area-inset-bottom) + 12px); min-height: 0; }
.board { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.board-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: rgba(255,255,255,.9); }
.board-row .rk { width: 28px; font-weight: 900; font-size: 18px; color: var(--brass); } .board-row .nm { flex: 1; font-weight: 800; } .board-row .pt { font-weight: 900; font-size: 18px; }
.sheet-back { position: fixed; left: 0; right: 0; top: var(--vv-top, 0px); height: var(--app-h, 100dvh); z-index: 70; background: rgba(0,0,0,.35); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.sheet-back.out { opacity: 0; transition: opacity .2s; }
.sheet-panel { width: 100%; max-width: 600px; max-height: calc(var(--app-h, 100dvh) * .88); overflow-y: auto; background: var(--paper); border-radius: 32px 32px 0 0; padding: 10px 20px calc(env(safe-area-inset-bottom) + 24px); animation: up .25s ease-out; }
@keyframes up { from { transform: translateY(40%); } } @keyframes fade { from { opacity: 0; } }
.sheet-grab { width: 40px; height: 5px; border-radius: 3px; background: rgba(30,27,46,.2); margin: 0 auto 14px; }
.sheet-title { font-weight: 900; font-size: 24px; } .sheet-form { display: flex; flex-direction: column; gap: 14px; }
.code-field { text-align: center; font: 900 28px ui-monospace, Menlo, monospace; letter-spacing: 6px; text-transform: uppercase; }
.shake { animation: shake .35s; } @keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.howto { display: flex; flex-direction: column; gap: 10px; } .howto-cover { height: 180px; border-radius: 24px; } .howto-title { font-weight: 900; font-size: 26px; }
.duel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.duel-game { border: 0; border-radius: 16px; padding: 14px; font: 900 15px Nunito, sans-serif; color: #fff; background: linear-gradient(135deg, var(--c0), var(--c1)); cursor: pointer; }
.grp .chat-list { padding: 8px 0; } .msg { display: flex; gap: 8px; align-items: flex-end; } .msg.mine { flex-direction: row-reverse; }
.grp-body { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.grp-body:has(> .chat-wrap) { overflow: hidden; }
.grp-top, .tabbar { flex: none; }
html { background: var(--paper); } body { background: transparent !important; }
.streak { gap: 6px; padding: 9px 16px; }
.pcard.img { padding: 0; border: 0; background: none; overflow: visible; box-shadow: none; }
.pcard.img img { width: 100%; height: 100%; object-fit: contain; border-radius: 8%; box-shadow: 0 3px 6px rgba(0,0,0,.4); display: block; }
.pcard.img.back { background: none; border: 0; }
.felt { background: url(/app/assets/tex/felt_green.png) repeat, radial-gradient(circle at 50% 40%, #1F7A45, #0F4D2B); background-size: 256px, auto; background-blend-mode: multiply; }
.home-head .brand { font-size: clamp(32px, 11.5vw, 46px); white-space: nowrap; overflow: hidden; } .home-head .grow { min-width: 0; }
.home-head .streak { flex: none; color: var(--ink); font-family: inherit; cursor: pointer; padding: 7px 12px; font-size: 16px; } .home-head .streak:active { transform: scale(.94); }
.home-head .avatar-btn { flex: none; padding: 2px; }
.home-head .hi { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.streak-info { align-items: center; text-align: center; } .streak-big { font-size: 64px; line-height: 1; display: flex; align-items: center; gap: 6px; } .streak-big b { font-weight: 900; font-size: 54px; color: var(--orange); }

/* Lobby (SessionView forces dark: Igraonica dark values) */
.session { background: #111318; color: #F3F0EA; padding: 0; }
.lobby { position: relative; min-height: 100dvh; display: flex; flex-direction: column; color: #F3F0EA; max-width: 640px; margin: 0 auto; width: 100%;
  background: radial-gradient(60% 40% at 20% 10%, color-mix(in srgb, var(--g0) 30%, transparent), transparent), radial-gradient(60% 40% at 90% 40%, rgba(156,122,62,.25), transparent), #111318; }
.lb-head { display: flex; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top) + 8px) 16px 14px; }
.circle-btn.sm { width: 42px; height: 42px; font-size: 16px; background: rgba(26,29,36,.8); color: #fff; font-weight: 900; }
.lb-title { text-align: center; } .lb-title .k { font-size: 12px; font-weight: 900; opacity: .7; } .lb-title .t { font-weight: 900; font-size: 15px; }
.lb-scroll { flex: 1; overflow-y: auto; padding: 0 16px 28px; display: flex; flex-direction: column; gap: 16px; }
.lb-hero { display: flex; gap: 16px; align-items: center; padding: 18px; border: 0; border-radius: 28px; color: #fff; text-align: left; cursor: pointer; box-shadow: 0 10px 40px color-mix(in srgb, var(--glow) 50%, transparent); }
.lb-hero-txt { display: flex; flex-direction: column; gap: 4px; } .lb-hero-txt .t { font-weight: 900; font-size: 26px; } .lb-hero-txt .g { font-weight: 600; font-size: 14px; opacity: .85; } .lb-hero-txt .i { font-weight: 900; font-size: 12px; opacity: .9; } .lb-hero-txt .c { font-weight: 900; font-size: 13px; margin-top: 4px; }
.lb-target { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; color: rgba(255,255,255,.8); flex-wrap: wrap; }
.lb-target button { width: 48px; height: 36px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); background: #1A1D24; color: #fff; font-weight: 900; font-size: 15px; }
.lb-target button.on { border-color: rgba(255,255,255,.6); }
.lb-players { padding: 14px; border-radius: 24px; background: rgba(26,29,36,.85); display: flex; flex-direction: column; gap: 10px; }
.lb-ptitle { font-weight: 900; font-size: 17px; }
.pill { border: 0; border-radius: 999px; padding: 7px 12px; background: #1A1D24; color: #fff; font-weight: 900; font-size: 13px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.bot-menu { display: none; gap: 8px; flex-wrap: wrap; } .bot-menu.open { display: flex; }
.bot-menu button { border: 0; border-radius: 14px; padding: 10px 12px; background: #242832; color: #fff; font-weight: 800; cursor: pointer; }
.lb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 10px; }
.lb-p { display: flex; flex-direction: column; align-items: center; gap: 5px; } .lb-p.off { opacity: .4; }
.lb-av { position: relative; } .lb-av .crown { position: absolute; top: -10px; right: -6px; font-size: 16px; }
.lb-av .x { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #D7263D; color: #fff; font-size: 11px; font-weight: 900; cursor: pointer; }
.lb-av .ok { position: absolute; bottom: -2px; right: -4px; width: 20px; height: 20px; border-radius: 50%; background: #1F8A3E; color: #fff; font-size: 12px; font-weight: 900; display: grid; place-items: center; box-shadow: 0 0 0 2px #111318; }
.lb-p .nm { font-weight: 700; font-size: 12px; max-width: 74px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-wait { width: 58px; height: 58px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.5); }
.lb-note { margin: 0; font-weight: 600; font-size: 12px; color: rgba(255,255,255,.6); }
.lb-foot { padding: 10px 16px calc(env(safe-area-inset-bottom) + 8px); background: linear-gradient(transparent, #111318 40%); }
.lb-wait-box { text-align: center; font-weight: 700; font-size: 17px; padding: 18px; border-radius: 22px; background: #1A1D24; }
.results-card { padding: 16px; border-radius: 28px; background: rgba(26,29,36,.9); display: flex; flex-direction: column; gap: 12px; }
.rc-title { text-align: center; font-weight: 900; font-size: 28px; background: linear-gradient(135deg, #E9D3A4, #D4B072, #9C7A3E); -webkit-background-clip: text; background-clip: text; color: transparent; }
.podium { display: flex; align-items: flex-end; gap: 10px; } .pd { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pd .cr { font-size: 26px; } .pd .nm { font-weight: 900; font-size: 14px; } .pd .sc { font-weight: 900; font-size: 18px; } .pd .pt { font-size: 10px; font-weight: 700; color: #43B581; }
.pd .step { width: 100%; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); text-align: center; padding-top: 8px; font-weight: 900; font-size: 28px; color: rgba(255,255,255,.9); }
.rc-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; background: rgba(255,255,255,.05); } .rc-row.me { background: rgba(212,176,114,.25); }
.rc-row .md { width: 30px; font-weight: 900; } .rc-row .sc { font-weight: 900; font-size: 22px; }
.session .sheet-panel { color: var(--ink); }
.lb-foot .big-btn, .sheet-form .big-btn, .stackc > .big-btn { width: 100%; display: block; }

/* Game screen (GameScreen.swift) */
.game-screen { min-height: 100dvh; display: flex; flex-direction: column; gap: 10px; max-width: 640px; margin: 0 auto; width: 100%; padding-bottom: calc(env(safe-area-inset-bottom) + 6px);
  background: radial-gradient(70% 45% at 15% 0%, color-mix(in srgb, var(--g0) 35%, transparent), transparent), #111318; color: #fff; }
.hud { padding: calc(env(safe-area-inset-top) + 6px) 14px 0; display: flex; flex-direction: column; gap: 8px; }
.hud-top { display: flex; align-items: center; gap: 10px; } .hud-title { font-weight: 900; font-size: 15px; }
.circle-btn.xs { width: 36px; height: 36px; font-size: 14px; background: rgba(26,29,36,.8); color: #fff; font-weight: 900; }
.hud-scores { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.hud-p { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--sc) 25%, transparent); box-shadow: inset 0 0 0 1px var(--sc); flex: none; }
.hud-p.me { background: color-mix(in srgb, var(--sc) 55%, transparent); box-shadow: inset 0 0 0 2px var(--sc); }
.hud-p .cr { font-size: 18px; } .hud-p .nm { display: block; font-size: 11px; font-weight: 700; } .hud-p .sc { display: block; font-size: 17px; font-weight: 900; line-height: 1; }
.gv { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 0 12px; min-height: 0; }
.pstrip { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 18px; background: rgba(228,87,46,.15); transition: background .3s; }
.pstrip.on { background: rgba(228,87,46,.35); } .pstrip.on .ps-av .av { box-shadow: 0 0 0 3px #E4572E; }
.ps-name { display: block; font-weight: 800; font-size: 15px; } .ps-sub { display: block; font-weight: 700; font-size: 11px; opacity: .65; }
.ps-backs { display: flex; } .ps-backs .pcard { width: 30px; height: 42px; margin-left: -22px; }
.ps-wins { width: 44px; text-align: center; } .ps-wins b { display: block; font-size: 20px; font-weight: 900; } .ps-wins i { font-style: normal; font-size: 9px; font-weight: 800; opacity: .6; }
.ps-time { width: 30px; font-weight: 900; font-size: 17px; text-align: center; font-variant-numeric: tabular-nums; } .ps-time.low { color: #E5484D; }
.felt-table { position: relative; flex: 1; min-height: 220px; padding: 20px; border-radius: 26px; display: flex; flex-direction: column; gap: 8px;
  background: radial-gradient(circle at 50% 35%, rgba(255,255,255,.08), transparent 60%), radial-gradient(circle, transparent 50%, rgba(0,0,0,.45)), url(/app/assets/tex/felt_green.png), #0d402b; background-size: auto, auto, 256px, auto;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); transition: box-shadow .15s; }
.felt-table.flash { box-shadow: inset 0 0 0 4px #F5C518; }
.ft-head { display: flex; justify-content: space-between; font-weight: 800; font-size: 12px; opacity: .75; }
.ft-empty { flex: 1; display: grid; place-items: center; font-weight: 700; font-size: 15px; opacity: .5; }
.flow { flex: 1; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-content: center; }
.flow .pcard { height: auto; aspect-ratio: .714; cursor: pointer; transition: transform .2s; }
.pcard.selected { transform: translateY(-8px); } .pcard.selected img { box-shadow: 0 0 0 3px #F5C518, 0 0 14px #F5C518; }
.pcard { position: relative; }
.pc-idx { position: absolute; top: 3%; left: 3%; width: 34%; padding: 3% 0; border-radius: 12%; background: #fff; display: flex; flex-direction: column; align-items: center; line-height: .95; color: #0f0f1a; pointer-events: none; }
.pc-idx b { font-weight: 900; font-size: calc(var(--cw, 64px) * .27); } .pc-idx i { font-style: normal; font-weight: 700; font-size: calc(var(--cw, 64px) * .24); } .pc-idx.red { color: #DB1A29; }
.flow .pcard { --cw: 64px; } .hand-fan .pcard { --cw: 80px; }
.hand-fan { height: 128px; display: flex; justify-content: center; align-items: flex-start; }
.hand-fan .pcard { height: auto; aspect-ratio: .714; margin: 0 -10px; transform-origin: 50% 100%; cursor: pointer; transition: transform .2s; }
.hand-fan.wait { opacity: .75; } .hand-fan.wait .pcard { margin-top: 8px; }
.gv-hint { height: 18px; text-align: center; font-weight: 700; font-size: 13px; opacity: .7; }
.round-card { position: absolute; inset: 16px; margin: auto; height: fit-content; padding: 18px; border-radius: 22px; background: rgba(26,29,36,.95); display: flex; flex-direction: column; gap: 10px; animation: pop .3s; }
.rc-h { font-weight: 900; font-size: 18px; } .rc-l { display: flex; align-items: center; gap: 8px; } .rc-l b { width: 40px; text-align: right; font-size: 20px; } .rc-l b.win { color: #43B581; }
@keyframes pop { from { transform: scale(.8); opacity: 0; } }
.gv.shake { animation: shake .35s; }
.lb-crew { padding: 14px; border-radius: 24px; background: rgba(26,29,36,.85); display: flex; flex-direction: column; gap: 10px; }
.crew-row { display: flex; align-items: center; gap: 12px; }
.crew-row .dot { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: #43B581; box-shadow: 0 0 0 2px #1A1D24; }
.cr-st { display: block; font-size: 12px; font-weight: 700; opacity: .6; } .cr-st.on { color: #43B581; opacity: 1; }
.invite-btn { border: 0; border-radius: 999px; padding: 9px 14px; font: 900 14px Nunito, sans-serif; color: #fff; background: linear-gradient(135deg, #FF7A4D, #E4572E, #A8341A); cursor: pointer; }
.invite-btn:disabled { background: #242832; opacity: .8; }
.banner { position: fixed; top: calc(env(safe-area-inset-top) + 10px); left: 50%; translate: -50% 0; width: min(560px, calc(100% - 20px)); z-index: 30; display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 22px; background: #fff; color: #1E1B2E; box-shadow: 0 12px 40px rgba(0,0,0,.3); animation: down .3s ease-out; }
.banner.out { opacity: 0; transform: translateY(-20px); transition: all .25s; }
@keyframes down { from { transform: translateY(-40px); opacity: 0; } }
.bn-t { font-weight: 900; font-size: 15px; } .bn-b { font-weight: 600; font-size: 13px; color: rgba(30,27,46,.7); }
.bn-x { border: 0; background: none; font-size: 16px; color: rgba(30,27,46,.5); cursor: pointer; }
.gv-wrap { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.felt-table { background: radial-gradient(circle at 50% 35%, rgba(255,255,255,.08), transparent 60%), radial-gradient(circle, transparent 50%, rgba(0,0,0,.45)), var(--look-felt, var(--felt, url(/app/assets/tex/felt_green.png))), #0d402b; background-size: auto, auto, 256px, auto; }
.seat-row { display: flex; gap: 8px; }
.seat-chip { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 14px; background: rgba(228,87,46,.15); box-shadow: inset 0 0 0 1.5px transparent; transition: background .3s; }
.seat-chip.on { background: rgba(228,87,46,.4); box-shadow: inset 0 0 0 1.5px #E4572E; } .seat-chip.partner { box-shadow: inset 0 0 0 1.5px rgba(67,181,129,.7); }
.sc-txt { min-width: 0; } .sc-n { display: block; font-weight: 800; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sc-s { display: block; font-weight: 700; font-size: 10px; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-backs { display: flex; padding-left: 16px; } .sc-backs .pcard { width: 18px; height: 25px; margin-left: -16px; } .sc-t { font-weight: 900; font-size: 13px; } .sc-t.low { color: #E5484D; }
.trick { position: relative; flex: 1; display: grid; place-items: center; min-height: 150px; }
.trick-card { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 3px; transition: transform .3s; animation: pop .3s; }
.trick-card .pcard { height: auto; aspect-ratio: .714; --cw: 68px; }
.hand-row { display: flex; justify-content: center; gap: 6px; height: 134px; align-items: flex-start; padding-top: 10px; }
.hand-row .pcard { width: 84px; height: auto; aspect-ratio: .714; --cw: 84px; flex: 0 1 84px; min-width: 0; cursor: pointer; transition: transform .2s; }
.hand-row .pcard.lift { transform: translateY(-10px); } .hand-row .pcard.lift img { box-shadow: 0 0 12px rgba(245,197,24,.8); }
.hand-row .pcard:disabled { cursor: default; }
.decide { padding: 0 4px; }
.gv > .seat-chip { flex: none; } .trick-card .av { margin-top: 2px; }
.jamb-gv { gap: 8px; padding: 0 10px; }
.jamb-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.jchip { flex: none; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 0; background: #1A1D24; color: #F3F0EA; font: 700 13px Nunito, sans-serif; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(243,240,234,.1); }
.jchip .dot { width: 10px; height: 10px; border-radius: 50%; background: #E4572E; } .jchip b { font-weight: 900; }
.jchip.lead b { color: #E9D3A4; } .jchip.rolling { box-shadow: inset 0 0 0 2.5px #43B581; }
.jchip.on { background: linear-gradient(#E9D3A4, #D4B072, #9C7A3E); color: #111318; transform: scale(1.05); }
.jview { display: flex; gap: 6px; align-items: center; border: 0; border-radius: 999px; padding: 6px 12px; background: #242832; color: #F3F0EA; font: 700 13px Nunito, sans-serif; cursor: pointer; }
.jview b { margin-left: auto; color: #E9D3A4; font-size: 12px; }
.jamb-gv .sheet-wrap { flex: 1; overflow: auto; } .jamb-gv .sheet { width: 100%; background: #FAF7ED; border-radius: 16px; }
.jtray { display: flex; justify-content: center; gap: 10px; padding: 14px 12px 8px; border-radius: 22px; background: radial-gradient(circle, transparent 50%, rgba(0,0,0,.45)), url(/app/assets/tex/felt_green.png), #0d402b; background-size: auto, 256px, auto; }
.jdie { display: flex; flex-direction: column; align-items: center; gap: 4px; } .jdie .die { width: 54px; height: 54px; }
.jkeep { font-size: 10px; font-weight: 900; padding: 2px 6px; border-radius: 999px; color: rgba(243,240,234,.5); min-height: 16px; } .jkeep.on { background: linear-gradient(#E9D3A4, #D4B072, #9C7A3E); color: #111318; }
.jfoot { display: flex; align-items: center; gap: 10px; } .jstatus { font-weight: 700; font-size: 14px; opacity: .85; }
.roll-btn { border: 0; border-radius: 16px; padding: 12px 16px; font: 900 16px Nunito, sans-serif; color: #111318; background: linear-gradient(#E9D3A4, #D4B072, #9C7A3E); box-shadow: 0 4px 0 #6b5428; cursor: pointer; }
.roll-btn:disabled { opacity: .45; } .roll-btn small { opacity: .75; font-size: 13px; }

/* Ludo (iOS LudoGameView) */
.ludo-gv { gap: 12px; padding: 0 14px; }
.ludo-bar { display: flex; align-items: center; gap: 8px; min-height: 46px; }
.ludo-cap { display: flex; align-items: center; gap: 5px; padding: 7px 10px; border-radius: 999px; background: color-mix(in srgb, var(--surface-hi) 60%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pc) 35%, transparent); transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.ludo-cap.on { background: var(--surface-hi); box-shadow: inset 0 0 0 2.5px var(--pc), 0 0 10px color-mix(in srgb, var(--pc) 70%, transparent); transform: scale(1.08); }
.ludo-dots { display: flex; gap: 2px; } .ludo-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(30,27,46,.18); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pc) 80%, transparent); } .ludo-dots i.in { background: var(--pc); }
.ludo-time { font-family: var(--font-display, inherit); font-weight: 900; font-size: 18px; font-variant-numeric: tabular-nums; } .ludo-time.low { color: var(--ruby); }
.ludo-board3d { width: min(100%, 72vh); aspect-ratio: .95; margin: 0 auto; perspective: 900px; display: grid; place-items: center; }
.ludo-board3d.shake { animation: shake .3s; }
.ludo-tilt { position: relative; width: 94%; aspect-ratio: 1; transform: rotateX(30deg) scale(1.06); transform-style: preserve-3d; filter: drop-shadow(0 18px 18px rgba(0,0,0,.45)); }
.ludo-tilt::before { content: ''; position: absolute; inset: 0; border-radius: 4%; background: linear-gradient(#5C381F, #2E1A0D); transform: translateY(3.8%) translateZ(-1px); }
.ludo-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.ludo-pawn { position: absolute; width: 11.5%; touch-action: manipulation; aspect-ratio: 40/52; padding: 0; border: 0; background: none; transform: translate(-50%, -82%) rotateX(-30deg); transform-origin: 50% 100%; transition: left .45s ease-in-out, top .45s ease-in-out; cursor: default; }
.ludo-pawn.hop { transition: left .14s ease-in-out, top .14s ease-in-out; animation: hop .16s ease-out infinite; }
@keyframes hop { 50% { margin-top: -2.2%; } }
.ludo-pawn .pawn-svg { width: 100%; height: 100%; display: block; overflow: visible; pointer-events: none; }
.ludo-pawn.can { cursor: pointer; animation: pawnGlow .9s ease-in-out infinite; }
@keyframes pawnGlow { 0%,100% { filter: drop-shadow(0 0 2px #FFC53D); } 50% { filter: drop-shadow(0 0 9px #FFC53D) brightness(1.12); } }
.ludo-target { position: absolute; width: 7.3%; aspect-ratio: 1; border-radius: 50%; border: 2.5px dashed var(--pc); transform: translate(-50%, -50%); animation: spinT 6s linear infinite, fadeT 1.2s ease-in-out infinite; pointer-events: none; }
@keyframes spinT { to { transform: translate(-50%, -50%) rotate(360deg); } } @keyframes fadeT { 50% { opacity: .55; } }
.ludo-foot { display: flex; align-items: center; gap: 16px; padding: 0 6px; }
.ludo-die { width: 84px; height: 84px; flex: none; padding: 0; border: 0; background: none; cursor: pointer; touch-action: manipulation; } .ludo-die > * { pointer-events: none; } .ludo-die:disabled { cursor: default; }
.ludo-die.pulse { animation: diePulse 1s ease-in-out infinite; } .ludo-die.tumble { animation: tumble .6s ease-out; }
@keyframes diePulse { 50% { transform: scale(1.05); } } @keyframes tumble { from { transform: rotate3d(1, .6, .2, 0deg); } to { transform: rotate3d(1, .6, .2, 1080deg); } }
.ivory-die { position: relative; display: block; width: 100%; height: 100%; border-radius: 24%; background: linear-gradient(135deg, #fff, #F5EBD6); box-shadow: 0 5px 0 #BFAD8F, 0 0 6px color-mix(in srgb, var(--dc) 25%, transparent), 0 8px 10px rgba(0,0,0,.35); }
.ivory-die.glow { box-shadow: 0 5px 0 #BFAD8F, 0 0 16px color-mix(in srgb, var(--dc) 75%, transparent), 0 8px 10px rgba(0,0,0,.35); } .ivory-die.dim { box-shadow: 0 5px 0 #BFAD8F, 0 8px 10px rgba(0,0,0,.35); }
.ivory-die i { position: absolute; width: 17%; height: 17%; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 40% 35%, #000, #291C14); }
.ivory-die i.one { width: 24%; height: 24%; background: radial-gradient(circle at 40% 35%, #000, var(--ruby)); } .ivory-die.dim i { background: radial-gradient(circle at 40% 35%, #000, #999); }
.ludo-status { font-family: var(--font-display, inherit); font-weight: 700; font-size: 17px; }

/* Mica (iOS MicaGameView) */
.mica-gv { gap: 12px; padding: 0 14px; align-items: stretch; }
.mica-cap { gap: 6px; padding: 6px 10px; } .mc-n { font-weight: 900; font-size: 13px; font-variant-numeric: tabular-nums; } .mc-fly { font-size: 12px; }
.mica-wrap { flex: 1; min-height: 0; display: grid; place-items: center; }
.mica-grooves { position: absolute; left: 9%; top: 9%; width: 82%; height: 82%; overflow: visible; }
.mica-grooves path { fill: none; stroke-linecap: round; stroke-linejoin: round; } .mica-grooves .edge { stroke: rgba(255,255,255,.35); stroke-width: .085; } .mica-grooves .cut { stroke: #472912; stroke-width: .072; }
.mica-mill { left: 0; top: 0; width: 100%; height: 100%; transform: none !important; pointer-events: none; overflow: visible; animation: millIn 2s ease forwards; }
.mica-mill line { stroke: #FF7A4D; stroke-width: 2.2; stroke-linecap: round; filter: drop-shadow(0 0 4px #FFB020); }
@keyframes millIn { 0% { opacity: 0; } 12%, 70% { opacity: 1; } 100% { opacity: 0; } }
.mstud { width: 3.2%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FF7A4D, #E4572E 55%, #A8341A); box-shadow: 0 1px 1px rgba(0,0,0,.5); }
.mtarget { width: 7.6%; aspect-ratio: 1; border-radius: 50%; background: rgba(31,138,62,.18); box-shadow: inset 0 0 0 2.5px var(--emerald); animation: fadeT 1s ease-in-out infinite; pointer-events: none; }
.mtap { width: 13%; aspect-ratio: 1; border-radius: 50%; border: 0; padding: 0; background: transparent; cursor: default; }
.mica-hands { align-self: center; display: flex; gap: 18px; padding: 8px 12px 8px 20px; border-radius: 999px; background: url(/app/assets/tex/wood_dark.png) 0 0 / 120px, #3a2416; box-shadow: inset 0 0 0 1px rgba(0,0,0,.5); }
.mh-row { display: flex; min-width: 40px; }
.mica-status { text-align: center; font-weight: 700; font-size: 14px; }

/* Depth buttons (iOS DepthButtonStyle, compact) */
.dbtn { min-height: 44px; padding: 0 16px; border: 0; border-radius: 14px; font-weight: 900; font-size: 16px; cursor: pointer; color: #fff; transition: transform .08s, box-shadow .08s; }
.dbtn:active { transform: translateY(3px); }
.dbtn.surface { background: var(--surface-hi); color: var(--ink); box-shadow: 0 4px 0 #D9C7AA; } .dbtn.surface:active { box-shadow: 0 1px 0 #D9C7AA; }
.dbtn.emerald { background: var(--emerald); box-shadow: 0 4px 0 #125525; } .dbtn.brass { background: var(--brass); box-shadow: 0 4px 0 var(--brass-d); } .dbtn.ruby { background: var(--ruby); box-shadow: 0 4px 0 #8F1828; }
.dbtn.emerald:active, .dbtn.brass:active, .dbtn.ruby:active { box-shadow: 0 1px 0 rgba(0,0,0,.4); }

/* Remi (iOS RemiGameView) */
.remi-gv { gap: 8px; padding: 0 10px; }
.remi-seats { display: flex; gap: 6px; }
.remi-seat { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 8px; border-radius: 14px; background: color-mix(in srgb, var(--pc) 14%, transparent); box-shadow: inset 0 0 0 1.5px transparent; }
.remi-seat.on { background: color-mix(in srgb, var(--pc) 38%, transparent); box-shadow: inset 0 0 0 1.5px var(--pc); }
.rs-top { display: flex; align-items: center; gap: 4px; min-width: 0; } .rs-n { font-weight: 800; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-s { display: flex; gap: 6px; font-weight: 700; font-size: 11px; font-variant-numeric: tabular-nums; } .rs-s .ok { color: var(--emerald); } .rs-s .mut { color: var(--muted); } .rs-s .low { color: var(--ruby); }
.remi-table { padding: 18px; color: #FFF8EE; } .remi-table.shake { animation: shake .3s; }
.remi-top { display: flex; align-items: center; gap: 14px; }
.remi-deck, .remi-discard { position: relative; padding: 0; border: 0; background: none; cursor: pointer; }
.remi-deck { width: 46px; height: 62px; } .remi-deck .pcard { position: absolute; left: 0; top: 2px; }
.remi-deck.lit .pcard:last-of-type img, .remi-discard.lit img { box-shadow: 0 0 10px rgba(255,122,77,.9); }
.rd-n { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); font-weight: 900; font-size: 11px; padding: 0 6px; border-radius: 999px; background: rgba(0,0,0,.5); }
.rd-empty { display: block; width: 42px; height: 59px; border-radius: 5px; border: 1px dashed rgba(255,255,255,.35); }
.remi-info { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; font-size: 12px; } .remi-info b { font-weight: 800; } .remi-info span { font-weight: 700; color: #FF9B73; }
.remi-scroll { flex: 1; min-height: 0; overflow-y: auto; }
.remi-melds { display: flex; flex-wrap: wrap; gap: 10px; }
.remi-meld { display: flex; padding: 4px; border: 0; border-radius: 8px; background: color-mix(in srgb, var(--pc) 18%, transparent); box-shadow: inset 0 0 0 2px transparent; cursor: default; }
.remi-meld.can { box-shadow: inset 0 0 0 2px #FF7A4D; cursor: pointer; } .remi-meld .pcard + .pcard { margin-left: -24px; }
.remi-staged { display: flex; align-items: center; gap: 8px; padding: 0 8px; } .rs-groups { display: flex; gap: 8px; overflow-x: auto; }
.rs-g { display: flex; padding: 3px; border: 0; border-radius: 6px; background: rgba(228,87,46,.25); cursor: pointer; } .rs-g .pcard + .pcard { margin-left: -22px; }
.remi-staged > b { font-weight: 900; font-size: 13px; color: var(--brass-l); } .remi-staged > b.ok { color: var(--emerald); }
.remi-hand { display: flex; overflow-x: auto; padding: 20px 24px 4px; min-height: 113px; scrollbar-width: none; }
.remi-hand .pcard { flex: none; position: relative; transition: transform .25s cubic-bezier(.3,1.5,.5,1); } .remi-hand .pcard + .pcard { margin-left: -20px; }
.remi-hand .pcard.up { transform: translateY(-16px); } .remi-hand button.pcard:not(:disabled):hover { transform: none; } .remi-hand button.pcard.up:hover { transform: translateY(-16px); }
.drawn-dot { position: absolute; left: 50%; top: -10px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--brass-l); }
.remi-actions { display: flex; align-items: center; gap: 8px; min-height: 50px; }
.round-card .lose { color: var(--ruby); } .rc-w { width: 44px; text-align: right; font-weight: 700; font-size: 13px; }

/* Poker (iOS PokerGameView) */
.pk-gv { gap: 8px; padding: 0 10px; }
.pk-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 12px; opacity: .85; white-space: nowrap; overflow: hidden; } .pk-head .mut { opacity: .6; } .pk-head .low { color: var(--ruby); }
.pk-seats { display: flex; gap: 6px; }
.pk-seat { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px; border-radius: 14px; background: color-mix(in srgb, var(--surface-hi) 55%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.pk-seat.on { background: var(--surface-hi); box-shadow: inset 0 0 0 2px var(--pc), 0 0 8px color-mix(in srgb, var(--pc) 50%, transparent); } .pk-seat.out { opacity: .5; }
.pk-cards { position: relative; height: 42px; display: flex; align-items: center; } .pk-cards .pcard + .pcard { margin-left: -12px; } .pk-cards.folded .pcard { opacity: .3; }
.pk-cards .dealer-btn { position: absolute; right: -10px; top: -4px; }
.dealer-btn { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #fff; color: var(--ink); font-weight: 900; font-size: 9px; box-shadow: inset 0 0 0 1px rgba(30,27,46,.4); flex: none; }
.pk-n { max-width: 100%; font-weight: 800; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-chips { font-weight: 900; font-size: 13px; color: var(--brass); font-variant-numeric: tabular-nums; } .pk-seat.out .pk-chips { color: var(--muted); }
.pk-t { font-weight: 900; font-size: 11px; font-variant-numeric: tabular-nums; } .pk-t.big { font-size: 14px; } .pk-t.low { color: var(--ruby); }
.pk-a { font-weight: 900; font-size: 10px; white-space: nowrap; } .pk-a.fold { color: var(--muted); } .pk-a.allin { color: var(--ruby); }
.pk-hn { font-weight: 900; font-size: 9px; color: var(--brass); }
.pk-table { align-items: center; justify-content: center; gap: 12px; padding: 14px; color: #FFF8EE; } .pk-table.mine { box-shadow: inset 0 0 0 3px rgba(228,87,46,.5); }
.pk-board { display: flex; gap: 6px; } .pk-board .pcard { animation: pkDeal .45s cubic-bezier(.3,1.4,.5,1); }
.pk-board .pcard.best img { box-shadow: 0 0 0 2.5px #FF7A4D, 0 0 8px rgba(255,176,32,.7); }
@keyframes pkDeal { from { transform: translateY(-60px) scale(.3); opacity: 0; } }
.pk-slot { width: 54px; height: 76px; border-radius: 6px; border: 1.2px dashed rgba(255,248,238,.18); }
.pk-pot { display: flex; align-items: center; gap: 8px; } .pk-pot b { font-weight: 900; font-size: 18px; color: #FF9B73; } .pk-pot.dim { opacity: .4; }
.chips-st { position: relative; display: inline-block; width: var(--s); height: calc(var(--s) * 1.5); flex: none; } .chips-st.none { opacity: .25; }
.chips-st i { position: absolute; left: 0; width: var(--s); height: calc(var(--s) * .4); border-radius: 50%; outline: 1px dashed rgba(255,255,255,.85); outline-offset: -2px; } .chips-st i.r { background: #D12433; } .chips-st i.b { background: var(--brass-l); }
.pk-showdown { display: flex; flex-direction: column; gap: 4px; padding: 8px 12px; border-radius: 12px; background: rgba(30,27,46,.55); font-weight: 900; font-size: 13px; }
.pk-showdown .mut { opacity: .6; } .pk-showdown .hl { color: #FF9B73; } .pk-showdown .win { color: #43B581; }
.pk-me { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; background: color-mix(in srgb, var(--surface-hi) 60%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.pk-me.on { background: var(--surface-hi); box-shadow: inset 0 0 0 2px var(--brass-l); }
.pk-hole { display: flex; align-items: center; min-height: 98px; } .pk-hole .pcard { transform-origin: 50% 100%; } .pk-hole .pcard + .pcard { margin-left: -16px; }
.pk-mi { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.row-i { display: flex; align-items: center; gap: 6px; } .pk-mychips { font-weight: 900; font-size: 17px; color: var(--brass); }
.pk-handpill { padding: 2px 8px; border-radius: 999px; background: linear-gradient(var(--brass-l), var(--brass)); color: var(--ink); font-weight: 900; font-size: 12px; }
.pk-bet { font-weight: 700; font-size: 11px; opacity: .7; }
.pk-actions { display: flex; gap: 8px; } .pk-actions .dbtn { flex: 1; white-space: nowrap; }
.pk-wait { height: 50px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--muted); }
.pk-raise { display: flex; flex-direction: column; gap: 8px; } .pk-rv { font-weight: 900; font-size: 20px; color: var(--brass); }
.pk-q { padding: 4px 8px; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 900; font-size: 12px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.pk-slider { width: 100%; accent-color: var(--brass); }

/* On the game tables iOS uses Igraonica's dark values (the Klub palette). */
.game-screen { --ink: #F3F0EA; --paper: #111318; --surface: #1A1D24; --surface-hi: #242832; --muted: rgba(243,240,234,.62); --line: rgba(243,240,234,.10);
  --brass: #D4B072; --brass-l: #E9D3A4; --brass-d: #9C7A3E; --ruby: #E5484D; --emerald: #43B581; --green: #43B581; --red: #E5484D; }
.game-screen .dbtn.surface { box-shadow: 0 4px 0 rgba(0,0,0,.45); } .game-screen .dbtn.surface:active { box-shadow: 0 1px 0 rgba(0,0,0,.45); }
.game-screen .dbtn.brass { color: #111318; }
.pk-handpill, .dealer-btn { color: #111318 !important; }
.game-screen .ludo-dots i:not(.in) { background: rgba(243,240,234,.18); }

/* Reči (iOS ReciGameView, LetterTile, TileRack, RevealCard) */
.reci-gv { gap: 14px; padding: 0 16px; }
.rc-body { display: flex; flex-direction: column; gap: 14px; } /* iOS VStack(spacing: 14) */
.rc-controls .dbtn { display: inline-grid; place-items: center; }
.rc-top { display: flex; align-items: center; font-weight: 900; font-size: 12px; opacity: .9; } .rc-top > span:first-child { opacity: .8; }
.rc-time { font-weight: 900; font-size: 23px; font-variant-numeric: tabular-nums; } .rc-time.low { color: var(--ruby); animation: diePulse .5s infinite; }
.rc-head { display: flex; flex-direction: column; gap: 6px; }
.rc-bar { height: 8px; border-radius: 999px; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.rc-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brass-d), var(--brass-l), var(--brass)); box-shadow: 0 0 4px rgba(212,176,114,.7); transition: width .25s linear; } .rc-bar i.low { background: var(--ruby); box-shadow: 0 0 4px rgba(229,72,77,.7); }
.ltile { --ts: 48px; position: relative; display: inline-grid; place-items: center; width: var(--ts); height: var(--ts); margin-bottom: calc(var(--ts) * .07); border-radius: calc(var(--ts) * .18); flex: none; cursor: pointer; user-select: none;
  background: linear-gradient(#FCEBC2, #E6C287);
  box-shadow: 0 calc(var(--ts) * .07) 0 #734A24, inset 0 1px 0 rgba(255,255,255,.7), inset 0 0 0 .8px rgba(102,64,26,.5), 0 3px 4px rgba(0,0,0,.3); transition: transform .2s cubic-bezier(.3,1.5,.5,1); }
.ltile.lit { background: linear-gradient(var(--brass-l), #F2C773); box-shadow: 0 calc(var(--ts) * .07) 0 #734A24, inset 0 1px 0 rgba(255,255,255,.7), 0 0 10px color-mix(in srgb, var(--brass) 60%, transparent); }
.ltile b { font-family: Unbounded, Nunito, sans-serif; font-weight: 900; font-size: calc(var(--ts) * .46); color: #38210F; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.ltile.dim { opacity: .25; cursor: default; } .ltile:not(.dim):active { transform: scale(.92); }
.rc-rack { position: relative; padding: 8px 0 12px; } .rc-rack.shake { animation: shake .3s; }
.rc-picked { position: relative; z-index: 1; display: flex; justify-content: center; gap: 5px; min-height: 58px; align-items: flex-end; }
.rc-hint { height: 50px; display: grid; place-items: center; font-weight: 700; font-size: 16px; color: var(--muted); }
.rc-shelf { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; border-radius: 6px; background: linear-gradient(rgba(255,255,255,.25), transparent, rgba(0,0,0,.35)), url(/app/assets/tex/wood_warm.png) 0 0 / 120px; box-shadow: inset 0 3px 2px -1px rgba(0,0,0,.45), 0 4px 6px rgba(0,0,0,.5); }
.rc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; justify-items: center; }
.rc-controls { display: flex; justify-content: center; gap: 10px; } .rc-controls .dbtn.surface { min-width: 54px; } .rc-send { min-width: 140px; min-height: 52px; font-size: 18px; } .rc-send:disabled { opacity: .5; cursor: default; }
.rc-mine { text-align: center; font-weight: 900; font-size: 12px; color: var(--emerald); animation: pop .3s; }
.rc-others { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.rc-o { display: flex; align-items: center; gap: 6px; flex: none; padding: 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--surface-hi) 85%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pc) 80%, transparent); font-weight: 700; font-size: 13px; }
.reveal-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 8px 14px rgba(0,0,0,.4); animation: pop .35s; }
.rv-h { font-weight: 900; font-size: 18px; } .reveal-card .mut { color: var(--muted); font-weight: 600; font-size: 13px; }
.rv-row { align-self: stretch; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: rgba(17,19,24,.5); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pc) 40%, transparent); }
.rv-row.me { box-shadow: inset 0 0 0 1px rgba(212,176,114,.7); }
.rv-t { display: flex; flex-direction: column; } .rv-t small { font-weight: 700; font-size: 12px; opacity: .7; } .rv-t b { font-weight: 900; font-size: 16px; } .rv-p { font-weight: 900; font-size: 15px; color: var(--emerald); }
.rv-best { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 6px; } .rv-best small { font-weight: 700; font-size: 12px; opacity: .6; } .rv-tiles { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }

/* Geografija (iOS GeografijaGameView, NotebookPaper) */
.geo-gv { gap: 12px; padding: 0 16px; overflow: hidden; overscroll-behavior: none; }
.geo-top { display: flex; align-items: center; gap: 12px; } .rc-head.pop .ltile { animation: letterPop .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes letterPop { 40% { transform: scale(1.25) rotate(-8deg); } }
.geo-tt { display: flex; flex-direction: column; gap: 2px; } .geo-tt b { font-weight: 900; font-size: 12px; } .geo-tt span { font-weight: 700; font-size: 13px; color: var(--muted); }
.geo-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.geo-scroll { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 10px; padding-bottom: 8px; scrollbar-width: none; }
.geo-stop { padding: 9px; border-radius: 14px; text-align: center; font-weight: 900; font-size: 13px; color: #fff; background: linear-gradient(#FF6161, var(--ruby)); box-shadow: 0 0 8px rgba(229,72,77,.6); animation: pop .3s; }
.notebook { position: relative; flex: none; padding: 10px 0; border-radius: 10px; transform: rotate(-.6deg); margin: 4px 4px 0; color: #1A296B;
  background: radial-gradient(circle, transparent 40%, rgba(153,128,77,.12)), linear-gradient(#FFFAED, #F5EDD9); box-shadow: 0 6px 10px rgba(0,0,0,.45); }
.notebook::before { content: ''; position: absolute; top: 0; bottom: 0; left: 26px; width: 1.5px; background: rgba(217,64,77,.6); }
.nb-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 30px; border-bottom: 1px solid rgba(115,158,230,.45); }
.nb-emo { width: 30px; text-align: center; font-size: 22px; } .nb-col { display: flex; flex-direction: column; min-width: 0; }
.nb-col small { font-weight: 800; font-size: 10px; letter-spacing: .8px; color: rgba(217,64,77,.85); }
.nb-in { width: 100%; border: 0; padding: 0; background: transparent; font: inherit; font-weight: 700; font-size: 19px; color: #1A296B; caret-color: #1A296B; outline: none; }
.nb-in::placeholder { color: rgba(26,41,107,.25); }
.nb-mark { width: 22px; text-align: center; font-weight: 900; font-size: 15px; color: rgba(26,41,107,.25); transition: transform .3s; } .nb-mark.ok { font-size: 20px; color: #1A8C4D; transform: rotate(-8deg); }
.nb-mark.bad, .nb-mark.lang { font-size: 20px; color: #D9404D; transform: rotate(-8deg); }
.nb-mark.wait::after { content: ''; display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(26,41,107,.2); border-top-color: #1A296B; animation: spin .8s linear infinite; }
.nb-mark.pop { animation: markPop .45s cubic-bezier(.3,1.6,.5,1); } @keyframes markPop { 0% { transform: scale(.3); } 60% { transform: scale(1.35) rotate(-8deg); } }
.nb-hint { font-style: normal; font-weight: 800; font-size: 11px; color: #D9404D; } .nb-hint:empty { display: none; }
.nb-row.bad .nb-in { color: #B03040; text-decoration: line-through; text-decoration-color: rgba(217,64,77,.7); } .nb-row.good .nb-in { color: #15703F; }
.geo-stopbtn { min-height: 52px; font-size: 18px; margin-bottom: 8px; } .geo-stopbtn:disabled { opacity: .6; cursor: default; }
.geo-card { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); } .geo-card.me { box-shadow: inset 0 0 0 1.5px rgba(212,176,114,.7); }
.geo-flow { display: flex; flex-wrap: wrap; gap: 6px; }
.gc-spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; animation: spin .8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
.geo-pn { font-weight: 800; font-size: 16px; }
.geo-pt { padding: 4px 8px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.geo-pt.full { background: rgba(67,181,129,.25); box-shadow: inset 0 0 0 .8px rgba(67,181,129,.6); } .geo-pt.half { background: rgba(224,168,74,.25); box-shadow: inset 0 0 0 .8px rgba(224,168,74,.6); } .geo-pt.zero { background: rgba(229,72,77,.25); box-shadow: inset 0 0 0 .8px rgba(229,72,77,.6); }
.center { text-align: center; } .geo-scroll .mut { color: var(--muted); font-weight: 600; font-size: 13px; }

/* Asocijacije (iOS AsocijacijeGameView, AsocTile) */
.as-gv { gap: 10px; padding: 0 12px 8px; }
.as-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: var(--surface); }
.as-tb { font-weight: 800; font-size: 12px; color: var(--muted); } .as-who { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-time { font-weight: 900; font-size: 16px; font-variant-numeric: tabular-nums; } .as-time.low { color: var(--ruby); } .as-end { font-weight: 800; font-size: 14px; color: var(--brass-l); }
.as-board { display: flex; flex-direction: column; gap: 8px; } .as-board.shake { animation: shake .3s; }
.as-row { display: flex; gap: 8px; align-items: flex-start; } .as-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.as-tile { height: 40px; padding: 0 4px; border: 0; border-radius: 10px; cursor: default; color: var(--ink); background: linear-gradient(var(--surface-hi), var(--surface)); box-shadow: inset 0 0 0 1px var(--line); font: inherit; }
.as-tile.invite { cursor: pointer; box-shadow: inset 0 0 0 1.5px rgba(212,176,114,.75); }
.as-lbl { font-weight: 900; font-size: 15px; opacity: .55; } .as-tile.invite .as-lbl { opacity: .95; }
.as-tile.open { background: #F2E8D4; color: #241C14; } .as-tile.open.solved { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--pc) 90%, transparent); }
.as-tile.flip { animation: asFlip .5s cubic-bezier(.3,1.3,.5,1); } @keyframes asFlip { 0% { transform: perspective(300px) rotateY(180deg); } }
.as-clue { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 900; font-size: 13px; line-height: 1.1; }
.as-ans { display: flex; align-items: center; gap: 4px; height: 38px; padding: 0 10px; border: 0; border-radius: 10px; font: inherit; color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: left; cursor: default; }
.as-ans > span { font-weight: 900; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .as-ans small { font-weight: 800; font-size: 11px; color: var(--muted); }
.as-ans.active { cursor: pointer; box-shadow: inset 0 0 0 1px rgba(212,176,114,.7); } .as-ans.sel { box-shadow: inset 0 0 0 2.5px var(--brass-l); }
.as-ans.solved { background: var(--pc); color: #1F1710; animation: pop .35s; } .as-ans.solved > span { font-size: 14px; }
.as-final { display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; border: 0; border-radius: 14px; font: inherit; color: var(--ink); opacity: .9; background: var(--surface-hi); box-shadow: inset 0 0 0 1.2px var(--line); cursor: default; }
.as-final span { font-weight: 900; font-size: 15px; letter-spacing: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .as-final i { font-style: normal; color: var(--brass-d); }
.as-final.active { opacity: 1; cursor: pointer; box-shadow: inset 0 0 0 1.2px rgba(212,176,114,.8); } .as-final.sel { box-shadow: inset 0 0 0 2.5px var(--brass-l); }
.as-final.solved { background: linear-gradient(var(--brass-l), var(--brass), var(--brass-d)); color: #291C0D; transform: scale(1.03); box-shadow: 0 0 12px rgba(212,176,114,.6); } .as-final.solved span { font-size: 22px; letter-spacing: 1px; }
.as-controls { min-height: 50px; }
.as-wait { display: flex; align-items: center; gap: 10px; min-height: 50px; } .as-wait .mut { font-weight: 700; font-size: 14px; color: var(--muted); } .as-wait b { font-weight: 800; font-size: 15px; }
.as-guess { display: flex; gap: 8px; animation: pop .25s; }
.as-input { flex: 1; min-width: 0; height: 50px; padding: 0 14px; border: 0; border-radius: 14px; background: var(--surface-hi); color: var(--ink); font: inherit; font-weight: 700; font-size: 18px; outline: none; text-transform: uppercase; }
.as-input::placeholder { color: var(--muted); text-transform: none; }

/* Kombinacija (iOS KombinacijaGameView, KombSymbol, Pegs) */
.kb-body { display: flex; flex-direction: column; gap: 12px; }
.ksym { --ks: 44px; position: relative; display: inline-grid; place-items: center; flex: none; width: var(--ks); height: var(--ks); border-radius: calc(var(--ks) * .28);
  background: linear-gradient(#FCFCFC, #E0E0E0); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--kc) 65%, transparent), 0 calc(var(--ks) * .06) 0 color-mix(in srgb, var(--kc) 35%, transparent);
  color: var(--kc); font-weight: 900; font-size: calc(var(--ks) * .55); line-height: 1; text-shadow: 0 1px 2px color-mix(in srgb, var(--kc) 40%, transparent); cursor: default; }
.kslot { --ks: 44px; display: inline-block; flex: none; width: var(--ks); height: var(--ks); border-radius: calc(var(--ks) * .28); background: rgba(0,0,0,.3); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.kslot.on { box-shadow: inset 0 0 0 2px var(--brass-l); }
.kboard2 { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 22px; background: rgba(17,19,24,.55); box-shadow: inset 0 0 0 1px rgba(212,176,114,.3); } .kboard2.shake { animation: shake .3s; }
.krow2 { display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 14px; } .krow2.now { background: rgba(212,176,114,.14); } .krow2.now .ksym { cursor: pointer; animation: pop .25s; }
.kn { width: 14px; font-weight: 900; font-size: 12px; color: var(--muted); }
.kpegs { display: grid; grid-template-columns: 13px 13px; gap: 4px; margin-left: 4px; } .kpegs i { width: 13px; height: 13px; border-radius: 50%; background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 .5px rgba(0,0,0,.25); }
.kpegs i.x { background: var(--ruby); box-shadow: 0 0 2px var(--ruby); } .kpegs i.n { background: #FACC40; box-shadow: 0 0 2px #FACC40; }
.kpad { display: flex; flex-direction: column; gap: 10px; } .kkeys { display: flex; justify-content: center; gap: 8px; }
.kkey { padding: 0; border: 0; background: none; cursor: pointer; } .kkey .ksym { cursor: pointer; } .kkey:active { transform: scale(.92); }
.kdone { padding: 8px 0; text-align: center; font-weight: 800; font-size: 15px; color: var(--muted); } .kdone.ok { color: var(--emerald); }
.rc-o .ok { color: var(--emerald); } .kbest { display: flex; gap: 2px; } .kbest i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.2); } .kbest i.x { background: var(--ruby); }
.rv-t b.sm { font-size: 14px; } .rv-p.zero { color: var(--muted); }

/* Računica (iOS RacunicaGameView, TargetDisplay, RacReveal) */
.rac-tgt { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 0; border-radius: 20px; color: #111318;
  background: linear-gradient(var(--brass-l), var(--brass), var(--brass-d)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 4px 14px rgba(212,176,114,.45); }
.rac-tgt small { font-weight: 900; font-size: 11px; letter-spacing: 2px; opacity: .7; } .rac-tgt b { font-weight: 900; font-size: 44px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.rac-nums, .rac-ops { display: flex; gap: 7px; }
.rac-n { flex: 1; min-width: 0; min-height: 54px; border: 0; border-radius: 14px; font: inherit; font-weight: 900; font-size: 21px; color: #111318; background: linear-gradient(#FAFAFA, #DBDBDB); box-shadow: 0 2px 3px rgba(0,0,0,.35); cursor: pointer; }
.rac-n.two { font-size: 17px; } .rac-n.big { background: linear-gradient(var(--brass-l), var(--brass), var(--brass-d)); }
.rac-n.used { background: var(--surface); color: var(--muted); box-shadow: none; } .rac-n:disabled { cursor: default; } .rac-n:not(:disabled):active, .rac-op:not(:disabled):active { transform: scale(.94); }
.rac-expr { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; border-radius: 18px; background: rgba(17,19,24,.6); box-shadow: inset 0 0 0 1px rgba(212,176,114,.3); } .rac-expr.shake { animation: shake .3s; }
.rac-line { min-height: 48px; display: grid; place-items: center; text-align: center; font-weight: 900; font-size: 19px; } .rac-line.empty { font-weight: 700; font-size: 16px; color: var(--muted); }
.rac-sub { min-height: 20px; } .rac-v { font-weight: 900; font-size: 15px; color: var(--brass-l); } .rac-sub .ok { color: var(--emerald); } .rac-sub .mut { color: var(--muted); font-size: 13px; }
.rac-best { font-weight: 800; font-size: 12px; opacity: .8; } .rac-best.ok { color: var(--emerald); opacity: 1; }
.rac-op { flex: 1; min-width: 0; min-height: 50px; border: 0; border-radius: 14px; font: inherit; font-weight: 900; font-size: 20px; color: var(--ink); background: var(--surface-hi); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; } .rac-op:disabled { opacity: .6; cursor: default; }
.rac-sol { font-weight: 900; font-size: 15px; color: var(--brass-l); }

/* Bilijar (iOS BilijarGameView, PoolPlate, PowerCue, FineAimWheel, PowerMeter) */
.pool-gv { gap: 6px; padding: 0 2px 4px; }
.pool-plates { display: flex; gap: 8px; padding: 0 6px; }
.pool-plate { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 7px 10px; border-radius: 14px; background: color-mix(in srgb, var(--surface-hi) 60%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.pool-plate.on { background: var(--surface-hi); box-shadow: inset 0 0 0 2px var(--pc); }
.pp-n { font-weight: 800; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pp-t { font-weight: 900; font-size: 14px; font-variant-numeric: tabular-nums; } .pp-t.low { color: var(--ruby); }
.pp-balls { display: flex; gap: 2px; height: 21px; } .pp-open { height: 21px; display: flex; align-items: center; font-weight: 700; font-size: 11px; color: var(--muted); }
.mball { position: relative; width: 20px; height: 20px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--b); box-shadow: 0 1px 1.5px rgba(0,0,0,.5); }
.mball.stripe { background: linear-gradient(90deg, #F7F2E6 20%, var(--b) 20% 80%, #F7F2E6 80%); }
.mball b { width: 10px; height: 10px; border-radius: 50%; background: #FFFDF5; color: #111; font-size: 7px; font-weight: 900; display: grid; place-items: center; }
.mball::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.55), transparent 35%, rgba(0,0,0,.4)); }
.pool-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.pool2 { height: 100%; max-height: 74vh; max-width: calc(100% - 72px); aspect-ratio: 149 / 276; object-fit: contain; touch-action: none; filter: drop-shadow(0 8px 12px rgba(0,0,0,.55)); }
.pool-cue, .pool-wheel { position: absolute; top: 12px; width: 30px; height: 230px; border-radius: 999px; touch-action: none; cursor: ns-resize; overflow: hidden; }
.pool-cue { left: 2px; background: rgba(0,0,0,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.pool-wheel { right: 2px; background: linear-gradient(90deg, #2E2E2E, #525252, #2E2E2E); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.pool-cue.off, .pool-wheel.off { display: none; }
.pc-fill { position: absolute; left: 0; right: 0; top: 0; height: 0; opacity: .85; border-radius: 999px; background: linear-gradient(#4DE680, #FFCC33, #FF4D40); }
.pc-stick { position: absolute; left: 11px; top: 6px; width: 8px; height: 80%; border-radius: 3px; background: linear-gradient(#EDCC94, #8C5426); box-shadow: inset 0 6px 0 #4D73B3; }
.pw-ticks { position: absolute; left: 6px; right: 6px; top: -10px; bottom: -10px; background: repeating-linear-gradient(transparent 0 6px, rgba(255,255,255,.25) 6px 7.5px); }
.pool-hint { align-self: center; padding: 8px 14px; border-radius: 999px; background: rgba(0,0,0,.6); font-weight: 700; font-size: 13px; text-align: center; pointer-events: none; }
.pool-meter { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px; border-radius: 14px; background: rgba(0,0,0,.35); } .pool-meter b { font-weight: 900; font-size: 12px; }
.pm-bar { width: 180px; height: 10px; border-radius: 999px; background: rgba(0,0,0,.5); overflow: hidden; } .pm-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--emerald), #E0A84A, var(--ruby)); border-radius: 999px; }

.ltile::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: url(/app/assets/tex/wood_warm.png) 0 0 / 120px; opacity: .18; mix-blend-mode: multiply; pointer-events: none; } .ltile b { position: relative; }

/* PWA install offer */
.install-sheet { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px 4px 4px; text-align: center; }
.is-icon { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.is-t { font-weight: 900; font-size: 22px; } .is-b { font-weight: 600; font-size: 15px; color: var(--muted); max-width: 320px; }
.install-sheet .big-btn { width: 100%; margin-top: 6px; }
.is-steps { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 6px; text-align: left; }
.is-step { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--surface, #fff); box-shadow: 0 1px 0 var(--line), 0 4px 12px rgba(30,27,46,.06); font-weight: 700; font-size: 15px; animation: up .3s ease-out both; }
.is-step:nth-child(2) { animation-delay: .06s; } .is-step:nth-child(3) { animation-delay: .12s; }
.is-step b { font-weight: 900; }
.is-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(var(--brass-l), var(--brass)); color: #fff; font-weight: 900; font-size: 14px; box-shadow: 0 2px 0 var(--brass-d); }
.is-st { flex: 1; min-width: 0; }
.is-glyph { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-hi, #F3E9D9); color: #2F7BF6; }
.is-alt { font-weight: 800; font-size: 15px; color: var(--brass); text-decoration: none; padding: 4px; }
.is-later { border: 0; background: none; padding: 10px; font: inherit; font-weight: 800; font-size: 15px; color: var(--muted); cursor: pointer; }

/* Table chat and emotes (iOS EmoteBar, GameChatButton, GameChatSheet, FlyingChat, FloatingEmotes) */
.game-screen { position: relative; }
.emote-bar { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; } .emote-bar.under-table { padding: 0 12px; opacity: .85; flex: none; }
.eb-e { flex: none; width: 40px; height: 44px; border: 0; border-radius: 12px; background: rgba(255,255,255,.08); font-size: 24px; cursor: pointer; transition: transform .12s; } .eb-e:active { transform: scale(.88); }
.chat-btn { position: relative; } .chat-btn.lit { background: linear-gradient(var(--brass-l), var(--brass)) !important; }
.cb-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--ruby); color: #fff; font-size: 10px; font-weight: 900; display: grid; place-items: center; box-shadow: 0 0 0 1.5px #111318; }
.fly-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 15; }
.fly-chat { position: absolute; left: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; max-width: 300px; white-space: nowrap;
  background: rgba(17,19,24,.88); box-shadow: inset 0 0 0 1.2px rgba(212,176,114,.55), 0 4px 10px rgba(0,0,0,.45); animation: flyChat 6.5s ease-in-out forwards; }
.fly-chat.mine { background: linear-gradient(var(--brass-l), var(--brass)); color: #111318; box-shadow: 0 4px 10px rgba(0,0,0,.45); }
.fc-t { display: flex; flex-direction: column; min-width: 0; } .fc-t b { font-size: 11px; font-weight: 900; color: var(--brass-l); } .fly-chat.mine .fc-t b { color: rgba(17,19,24,.7); }
.fc-t span { font-size: 16px; font-weight: 800; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.float-emote { position: absolute; bottom: 15%; display: flex; flex-direction: column; align-items: center; animation: floatUp 2.6s ease-out forwards; }
.fe-e { font-size: 48px; line-height: 1; } .float-emote small { font-size: 11px; font-weight: 700; }
@keyframes floatUp { 0% { transform: translate(-50%, 0) scale(0); opacity: 1; } 8% { transform: translate(-50%, -12px) scale(1); } 30% { transform: translate(calc(-50% + 14px), -140px); } 60% { transform: translate(calc(-50% - 14px), -300px); opacity: .6; } 100% { transform: translate(-50%, -520px); opacity: 0; } }
.dark-sheet .sheet-panel { background: #111318; color: #F3F0EA; --ink: #F3F0EA; --surface: #1A1D24; --surface-hi: #242832; --muted: rgba(243,240,234,.62); --line: rgba(243,240,234,.10); --brass: #D4B072; --brass-l: #E9D3A4; }
.chat-sheet { display: flex; flex-direction: column; height: min(calc(var(--app-h, 100dvh) * .7), 620px); }
.cs-head { display: flex; align-items: center; padding: 6px 4px 10px; } .cs-head b { font-weight: 900; font-size: 16px; }
.cs-x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); font-weight: 900; cursor: pointer; }
.cl-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 8px 2px; }
.cl-empty { margin-top: 40px; text-align: center; font-weight: 700; font-size: 15px; color: var(--muted); } .cl-empty .big { font-size: 40px; }
.cl-sys { align-self: center; padding: 4px 12px; border-radius: 999px; background: rgba(26,29,36,.6); font-weight: 700; font-size: 12px; color: var(--muted); text-align: center; }
.cl-row { display: flex; align-items: flex-end; gap: 8px; padding-right: 50px; } .cl-row.first { margin-top: 4px; } .cl-row.mine { justify-content: flex-end; padding: 0 0 0 50px; }
.cl-col { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .cl-row.mine .cl-col { align-items: flex-end; }
.cl-n { font-weight: 900; font-size: 12px; color: var(--brass-l); }
.cl-b { padding: 9px 14px; border-radius: 18px; background: var(--surface-hi); font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
.cl-row.mine .cl-b { background: linear-gradient(var(--brass-l), var(--brass)); color: #111318; }
.cs-foot { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; }
.cs-row { display: flex; align-items: flex-end; gap: 8px; }
.cl-in { flex: 1; resize: none; padding: 11px 16px; border: 0; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: inherit; font-weight: 600; font-size: 16px; outline: none; caret-color: var(--brass-l); }
.cl-send { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: linear-gradient(var(--brass-l), var(--brass)); color: #111318; font-weight: 900; font-size: 18px; cursor: pointer; } .cl-send:disabled { opacity: .4; cursor: default; }
@keyframes flyChat { 0% { left: 100%; transform: translateX(0) scale(.8); opacity: 0; } 4% { opacity: 1; transform: translateX(-4%) scale(1); } 85% { opacity: 1; } 100% { left: 0%; transform: translateX(-100%); opacity: 0; } }

/* Store (PlusCard, category cards, PaywallSheet, LegalFooter) */
.ds-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 4px 14px rgba(30,27,46,.06); }
.store-screen { padding: 0 16px calc(env(safe-area-inset-bottom) + 24px); }
.store-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; padding: calc(env(safe-area-inset-top) + 12px) 0 12px; background: var(--paper); font-weight: 900; font-size: 17px; }
.st-done { position: absolute; right: 0; border: 0; background: none; font: inherit; font-weight: 800; font-size: 17px; color: var(--brass); cursor: pointer; }
.store-body { display: flex; flex-direction: column; gap: 22px; padding-top: 6px; }
.web-note { font-weight: 700; font-size: 14px; background: rgba(228,87,46,.08); box-shadow: inset 0 0 0 1px rgba(228,87,46,.3); }
.plus-card { font-weight: 700; font-size: 15px; } .pc-title { font-weight: 900; font-size: 22px; } .pc-l { display: flex; gap: 8px; }
.ok-pill { padding: 4px 10px; border-radius: 999px; background: var(--emerald); color: #fff; font-weight: 800; font-size: 13px; }
.pc-buy { display: flex; gap: 10px; } .pc-buy .dbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 12px; } .pc-buy small { font-weight: 700; font-size: 13px; opacity: .85; }
.ds-card .mut, .store-body .mut, .paywall .mut { color: var(--muted); font-weight: 600; font-size: 13px; } .mut.sm { font-size: 12px; }
.pr-name { font-weight: 900; font-size: 16px; } .pr-have { font-weight: 900; font-size: 13px; color: var(--brass); }
.pr-games { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; } .pr-g { flex: none; padding: 4px 8px; border-radius: 999px; background: rgba(30,27,46,.07); font-weight: 700; font-size: 12px; } .pr-g.have { color: var(--emerald); }
.single-row { flex-direction: row; align-items: center; padding: 12px; } .single-row b { font-weight: 900; font-size: 17px; }
.my-looks { width: 100%; gap: 12px; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.all-have { font-weight: 700; font-size: 15px; color: var(--brass); }
.legal-foot { text-align: center; font-weight: 600; font-size: 12px; color: var(--muted); } .legal-foot a { color: inherit; }
.paywall { display: flex; flex-direction: column; gap: 14px; padding-bottom: 10px; }
.pw-preview { position: relative; height: 220px; border-radius: 28px; display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(228,87,46,.5), 0 10px 18px rgba(0,0,0,.25);
  background: radial-gradient(circle, transparent 40%, rgba(0,0,0,.6)), url(/app/assets/tex/felt_green.png) 0 0 / 256px; }
.pw-preview.cat-board { background: radial-gradient(circle, transparent 40%, rgba(0,0,0,.6)), url(/app/assets/tex/wood_warm.png) 0 0 / 256px; } .pw-preview.cat-words { background: radial-gradient(circle, transparent 40%, rgba(0,0,0,.6)), url(/app/assets/tex/felt_blue.png) 0 0 / 256px; }
.pw-icon { filter: drop-shadow(0 10px 16px rgba(0,0,0,.5)); animation: pwFloat 4.4s ease-in-out infinite; } @keyframes pwFloat { 50% { transform: translateY(-12px) rotate3d(1, 1, 0, 12deg); } }
.pw-lock { position: absolute; right: 14px; bottom: 14px; font-size: 30px; }
.pw-title { text-align: center; font-weight: 900; font-size: 30px; } .pw-tag { text-align: center; font-weight: 500; font-size: 16px; color: var(--muted); } .pw-info { text-align: center; font-weight: 900; font-size: 13px; color: var(--brass); }
.pw-ok { text-align: center; font-weight: 900; font-size: 17px; color: var(--emerald); } .pw-buy { display: flex; flex-direction: column; gap: 10px; } .dbtn.wide { width: 100%; min-height: 56px; font-size: 18px; }
.center { text-align: center; }
.gs { display: flex; flex-direction: column; gap: 18px; padding-bottom: 8px; }
.gs-head { display: flex; align-items: center; } .gs-head b { font-weight: 900; font-size: 17px; text-align: center; padding-left: 60px; }
.gs-link { border: 0; background: none; padding: 4px 0; font: inherit; font-weight: 800; font-size: 15px; color: var(--brass); cursor: pointer; } .gs-link:disabled { opacity: .4; cursor: default; }
.gs-cap { padding: 0 16px 6px; font-weight: 700; font-size: 12px; letter-spacing: .5px; color: var(--muted); }
.gs-box { border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.gs-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 6px 16px; border: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); text-align: left; }
.gs-row + .gs-row { box-shadow: inset 0 1px 0 var(--line); } .gs-act { cursor: pointer; color: var(--brass); font-weight: 700; }
.gs-ic { width: 26px; text-align: center; } .gs-name { font-weight: 600; font-size: 17px; } .gs-on { font-weight: 800; font-size: 12px; color: var(--emerald); }
.gs-danger { justify-content: center; color: var(--ruby); font-weight: 700; cursor: pointer; }
.gs-in { border: 0; background: none; font: inherit; font-size: 17px; color: var(--ink); outline: none; min-width: 0; }

/* Profile settings (iOS SettingsBlock, BlockedPeopleBlock, MyPurchasesView) */
.set-ic { width: 28px; height: 28px; flex: none; border-radius: 8px; display: grid; place-items: center; font-size: 14px; }
a.gs-row { text-decoration: none; } button.gs-row { cursor: pointer; } .chev { font-weight: 800; font-size: 18px; color: rgba(30,27,46,.35); }
.sw { position: relative; width: 51px; height: 31px; flex: none; border: 0; border-radius: 999px; background: rgba(30,27,46,.16); cursor: pointer; transition: background .2s; }
.sw i { position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.25); transition: transform .2s; }
.sw.on { background: var(--brass); } .sw.on i { transform: translateX(20px); }
.pad-x { padding: 6px 4px 0; } .pad-y { padding: 40px 0; } .err { color: var(--ruby); font-weight: 700; }
.sign-out { border: 0; background: none; padding: 10px; font: inherit; font-weight: 600; font-size: 17px; color: var(--brass); cursor: pointer; }
.del-acc { border: 0; background: none; padding: 4px 10px 12px; font: inherit; font-size: 15px; color: var(--ruby); cursor: pointer; }
.buy-row { flex-direction: row; align-items: center; padding: 12px; } .buy-row.revoked { opacity: .6; } .buy-row b { font-weight: 900; font-size: 16px; }
.br-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: #2F5FD8; } .br-ic.cosmetic { background: linear-gradient(var(--brass-l), var(--brass)); }
.apple-btn { width: 320px; max-width: 100%; height: 44px; border: 0; border-radius: 999px; background: #000; color: #fff; font: 600 17px -apple-system, system-ui, sans-serif; cursor: pointer; }

/* Login (iOS LoginView, FloatingShapes, LogoMark) */
.login2 { position: relative; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; padding: 24px; overflow: hidden; }
.float-shapes { position: fixed; inset: 0; filter: blur(50px); pointer-events: none; }
.float-shapes i { position: absolute; width: 200px; height: 200px; border-radius: 50%; background: var(--c); opacity: .35; animation: floatShape 26s ease-in-out infinite; animation-delay: var(--d); }
@keyframes floatShape { 0% { left: 80%; top: 20%; } 25% { left: 10%; top: 60%; } 50% { left: 60%; top: 75%; } 75% { left: 20%; top: 10%; } 100% { left: 80%; top: 20%; } }
.login-mid { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.login-mid .logo-mark { animation: logoBreath 2.4s ease-in-out infinite; } @keyframes logoBreath { 50% { transform: scale(1.06); } }
.logo-mark { position: relative; width: var(--ls); height: var(--ls); display: grid; place-items: center; }
.logo-arcs { position: absolute; inset: 6%; width: 88%; height: 88%; overflow: visible; animation: logoSpin 12s linear infinite; transform: rotate(-90deg); }
@keyframes logoSpin { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
.logo-mark b { position: relative; font-weight: 900; font-size: calc(var(--ls) * .48); color: #fff; text-shadow: 0 2px 6px rgba(30,27,46,.35); }
.login-title { font-weight: 900; font-size: 43px; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-lead { margin: 10px 0 0; text-align: center; font-weight: 600; font-size: 20px; color: rgba(30,27,46,.8); }
.login-btns { position: relative; width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding-bottom: calc(env(safe-area-inset-bottom) + 8px); }
.login-btns .apple-btn, .google-btn2 { width: 100%; height: 56px; border-radius: 18px; }
.google-btn2 { display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); color: #000; font: 600 19px Nunito, sans-serif; cursor: pointer; }
.g-logo { font-weight: 900; font-size: 18px; background: linear-gradient(135deg, #4285F4, #EA4335, #FBBC05, #34A853); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-btns .google-slot { display: flex; justify-content: center; } .login-btns .legal { text-align: center; font-size: 13px; }

/* Admin (same look as the app: group top bar, tab bar, cards, grouped rows) */
.admin2 .adm-body { display: flex; flex-direction: column; gap: 16px; padding: 4px 16px calc(env(safe-area-inset-bottom) + 30px); }
.adm-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .adm-tiles { grid-template-columns: repeat(4, 1fr); } }
.adm-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 4px 14px rgba(30,27,46,.06); }
.adm-tile b { font-weight: 900; font-size: 28px; color: var(--t); line-height: 1.1; } .adm-tile span:last-child { font-weight: 700; font-size: 13px; color: var(--muted); }
.adm-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; background: color-mix(in srgb, var(--t) 15%, transparent); margin-bottom: 4px; }
.adm-pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-weight: 800; font-size: 11px; white-space: nowrap; }
.adm-pill.ok { background: rgba(31,138,62,.14); color: var(--emerald); } .adm-pill.bad { background: rgba(215,38,61,.12); color: var(--ruby); }
.adm-pill.pub { background: rgba(228,87,46,.14); color: var(--brass); } .adm-pill.wait { background: rgba(245,165,36,.18); color: #A86A0A; } .adm-pill.mut { background: rgba(30,27,46,.07); color: var(--muted); }
.adm-pill.reel { background: #E4572E; color: #fff; } .adm-pill.story { background: #8A4DFF; color: #fff; }
.adm-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-search { width: 100%; height: 46px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.adm-urow { cursor: pointer; } .adm-urow.banned { opacity: .6; } .adm-urow .adm-pill { margin-left: 2px; }
.adm-user-head { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; } .adm-user-head > b { font-weight: 900; font-size: 22px; }
.adm-empty { align-items: center; font-weight: 700; color: var(--muted); }
.adm-report.done { opacity: .65; } .adm-quote { margin: 0; padding: 10px 14px; border-radius: 14px; background: rgba(30,27,46,.05); font-weight: 600; }
.adm-acts { display: flex; flex-wrap: wrap; gap: 8px; } .adm-acts .dbtn { text-decoration: none; display: inline-flex; align-items: center; font-size: 15px; }
.adm-make { display: flex; gap: 12px; }
.adm-hook { font-weight: 900; font-size: 18px; line-height: 1.2; }
.adm-caption { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border: 0; border-radius: 14px; background: rgba(30,27,46,.05); font: inherit; font-size: 13px; text-align: left; color: var(--ink); cursor: pointer; white-space: pre-wrap; }
.err.sm { font-size: 13px; }

/* Looks at the table (iOS TableStyle / card faceEdge) */
.game-screen[data-table="table_noc"] .felt-table { box-shadow: inset 0 0 0 3px rgba(255,255,255,.55), inset 0 0 26px rgba(120,160,255,.25); }
.game-screen[data-table="table_kafana"] .felt-table { box-shadow: inset 0 0 0 3px #9E6130, inset 0 0 26px rgba(0,0,0,.4); }
.game-screen[data-cards="cards_zlato"] .pcard img { box-shadow: 0 0 0 2px #E8C068, 0 2px 4px rgba(0,0,0,.4); }
.game-screen[data-cards="cards_retro"] .pcard img { box-shadow: 0 0 0 2px #1A1A1A, 0 2px 4px rgba(0,0,0,.4); }

/* Moj izgled (iOS CosmeticsStoreView) */
.lk-legend { display: flex; gap: 14px; font-weight: 800; font-size: 12px; } .lk-legend .u { color: var(--emerald); } .lk-legend .b { color: #2F5FD8; } .lk-legend .l { color: var(--brass); }
.lk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lk-tile { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 0; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.lk-tile.use { box-shadow: inset 0 0 0 2.5px var(--emerald); }
.lk-sw { height: 84px; border-radius: 14px; display: grid; place-items: center; font-size: 40px; background-size: 160px; }
.lk-name { font-weight: 900; font-size: 15px; } .lk-state { font-weight: 800; font-size: 12px; } .lk-state.u { color: var(--emerald); } .lk-state.b { color: #2F5FD8; } .lk-state.l { color: var(--brass); }

/* Avatar frames (iOS frame looks) */
.av.fr { overflow: visible; }
.av.frame_kruna { box-shadow: 0 0 0 calc(var(--s) * .07) #E8C068, 0 0 0 calc(var(--s) * .1) #9C7A3E, 0 0 calc(var(--s) * .25) rgba(232,192,104,.6); }
.av.frame_plamen { box-shadow: 0 0 0 calc(var(--s) * .07) #FF6A1A, 0 0 0 calc(var(--s) * .1) #D6271A, 0 0 calc(var(--s) * .3) rgba(255,106,26,.75); }
.fr-top { position: absolute; left: 50%; top: calc(var(--s) * -.36); transform: translateX(-50%) rotate(-8deg); font-size: calc(var(--s) * .42); line-height: 1; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); pointer-events: none; }
.eb-e.sticker { background: linear-gradient(var(--brass-l), var(--brass)); }
.float-emote.big .fe-e { font-size: 64px; } .fe-t { padding: 2px 10px; border-radius: 999px; background: linear-gradient(#FF7A4D, #E4572E); color: #fff; font-weight: 900; font-size: 16px; transform: rotate(-6deg); box-shadow: 0 3px 0 #A8341A; }
.review-link { border: 0; background: none; font: inherit; font-weight: 700; font-size: 14px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.review-form { display: flex; flex-direction: column; gap: 10px; }
.ludo-3dwrap { flex: 1; min-height: 0; display: flex; margin: 0 -14px; } .ludo3d { flex: 1; min-height: 340px; position: relative; } .ludo3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; touch-action: manipulation; }
.ludo3d.shake { animation: shake .3s; }

/* LanguagePicker (iOS): caption, two big buttons, the selected one in the brand gradient. */
.lang-pick { display: grid; gap: 10px; padding-top: 6px; }
.lang-cap { font-size: 13px; font-weight: 700; color: var(--muted, #8A8798); padding-left: 4px; }
.lang-row { display: flex; gap: 10px; }
.lang-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 0; border-radius: 16px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); border: 0; color: inherit; font-weight: 800; font-size: 17px; cursor: pointer; }
.lang-btn.on { background: var(--brand); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.lang-flag { font-size: 22px; line-height: 1; }

/* Lobby, one card: seated players, then the rest of the group (faded, tap to call), then a seat for a robot. */
button.lb-p { border: 0; background: none; color: inherit; font: inherit; padding: 0; cursor: pointer; }
.lb-inv .lb-av > :first-child { opacity: .45; filter: saturate(.4); transition: opacity .2s, filter .2s; }
.lb-inv:hover .lb-av > :first-child, .lb-inv:active .lb-av > :first-child { opacity: .75; filter: none; }
.lb-inv .bell { position: absolute; bottom: -2px; right: -4px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #FF7A4D, #E4572E, #A8341A); box-shadow: 0 0 0 2px #1A1D24; }
.lb-inv .dot { position: absolute; left: 2px; bottom: 2px; width: 12px; height: 12px; border-radius: 50%; background: #43B581; box-shadow: 0 0 0 2px #1A1D24; }
.lb-inv .nm { opacity: .7; }
.lb-inv .st { margin-top: -4px; font-size: 11px; font-weight: 800; color: #FF8A5C; }
.lb-inv.sent .bell { background: #1F8A3E; }
.lb-inv.sent .st { color: #43B581; }
.lb-inv.sent .lb-av::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px dashed rgba(67,181,129,.8); animation: lb-spin 6s linear infinite; }
@keyframes lb-spin { to { transform: rotate(360deg); } }
.lb-bot .lb-wait { display: grid; place-items: center; font-size: 24px; opacity: .7; }
.lb-bot .nm { color: var(--muted); }
.pool-plate .pp-w { font-size: 13px; font-weight: 900; color: var(--brass-l, #E9D3A4); }
.ghost-layer { position: fixed; inset: 0; pointer-events: none; z-index: 60; }

/* ---- iOS PlayingCard / CardBack / FeltTable / popups (play/kit.ts) ---- */
.pc { position: relative; display: block; flex: none; padding: 0; border: 0; background: none; border-radius: var(--r); -webkit-user-select: none; user-select: none; touch-action: manipulation;
  box-shadow: 0 1px 1.6px rgba(0,0,0,.35), 0 calc(var(--r) * .5) calc(var(--r) * 1.6) rgba(0,0,0,.28); }
button.pc { cursor: pointer; }
.pc .pc-img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); display: block; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.18); pointer-events: none; }
.pc::after { content: ''; position: absolute; inset: 0; border-radius: var(--r); box-shadow: inset 0 0 0 .5px rgba(0,0,0,.18); pointer-events: none; }
.pc-ix { position: absolute; top: 0; left: 0; background: #fff; display: flex; flex-direction: column; align-items: center; line-height: .96; pointer-events: none; font-family: ui-rounded, 'SF Pro Rounded', Nunito, system-ui, sans-serif; }
.pc-ix b { font-weight: 900; } .pc-ix i { font-style: normal; font-weight: 700; margin-top: -.04em; }
.pc-edge { position: absolute; pointer-events: none; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.pc-back { box-shadow: 0 1px 1px rgba(0,0,0,.35); }
.pc-back::after { box-shadow: inset 0 0 0 var(--bw) rgba(255,255,255,.7); }

.felt { position: relative; border-radius: var(--R); box-shadow: 0 8px 14px rgba(0,0,0,.5); isolation: isolate; }
.felt > .ft-rail { position: absolute; inset: 0; border-radius: var(--R); background: var(--rt, transparent), var(--rail); background-blend-mode: multiply; background-size: auto, 256px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.18), inset 0 -2px 0 rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.5); }
.felt > .ft-rail::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--rt, transparent); mix-blend-mode: multiply; }
.felt > .ft-inlay-out { position: absolute; inset: 4px; border-radius: calc(var(--R) - 4px); padding: var(--iw); background: var(--inlay);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.felt > .ft-cloth { position: absolute; inset: var(--rw); border-radius: var(--ri); background: var(--cloth); background-size: 256px; overflow: hidden; box-shadow: 0 0 6px rgba(0,0,0,.7); }
.felt > .ft-cloth::before { content: ''; position: absolute; inset: 0; background: var(--tint, transparent); mix-blend-mode: multiply; opacity: .55; }
.felt > .ft-cloth::after { content: ''; position: absolute; inset: 0; background: radial-gradient(closest-side, transparent 35%, rgba(0,0,0,.6) 140%); }
.felt > .ft-inlay { position: absolute; inset: calc(var(--rw) - 1px); border-radius: calc(var(--ri) + 1px); padding: var(--iw); background: var(--inlay); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.felt > .ft-stud { position: absolute; border-radius: 50%; box-shadow: 0 1px 1px rgba(0,0,0,.5), inset 0 0 0 .5px rgba(0,0,0,.4); }
.felt > .ft-hl { position: absolute; inset: var(--rw); border-radius: var(--ri); box-shadow: inset 0 0 0 4px var(--hl); pointer-events: none; }
.felt > .ft-sparkle { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(circle at 12% 2%, #fff 0 1.5px, transparent 2.5px), radial-gradient(circle at 50% 1.5%, #fff 0 1.5px, transparent 2.5px), radial-gradient(circle at 86% 2.5%, #fff 0 1.5px, transparent 2.5px),
  radial-gradient(circle at 98.5% 40%, #fff 0 1.5px, transparent 2.5px), radial-gradient(circle at 97% 80%, #fff 0 1.5px, transparent 2.5px), radial-gradient(circle at 30% 98.5%, #fff 0 1.5px, transparent 2.5px),
  radial-gradient(circle at 70% 98%, #fff 0 1.5px, transparent 2.5px), radial-gradient(circle at 1.5% 60%, #fff 0 1.5px, transparent 2.5px); animation: twinkle 1.8s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }
.felt > .ft-body { position: relative; z-index: 1; height: 100%; }
.popup-txt { position: absolute; z-index: 40; pointer-events: none; font: 900 21px Nunito, system-ui, sans-serif; white-space: nowrap; }

/* ---- GameScreen shell (iOS GameScreen.swift) ---- */
html, body { touch-action: manipulation; overscroll-behavior: none; }
.session { position: relative; }
.game-screen { position: relative; height: var(--app-h, 100dvh); min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 10px; max-width: none; margin: 0;
  padding: env(safe-area-inset-top) 0 calc(env(safe-area-inset-bottom) + 6px); background: #111318; isolation: isolate; }
.game-screen > .hud, .game-screen > .gs-table, .game-screen > .emote-bar { position: relative; z-index: 1; width: 100%; max-width: 640px; margin: 0 auto; }
.gs-table { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.gs-table > * { flex: 1; min-height: 0; }
.gs-live-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; opacity: .8; }
.gs-live-bg .lb-blob { position: absolute; left: 0; top: 0; width: 110vw; height: 110vw; max-width: 900px; max-height: 900px; border-radius: 50%; opacity: .18; will-change: transform;
  -webkit-mask-image: radial-gradient(circle, #000 0, rgba(0,0,0,.6) 35%, transparent 70%); mask-image: radial-gradient(circle, #000 0, rgba(0,0,0,.6) 35%, transparent 70%); }
/* Moved with transform only (no blur filter, no left/top): the GPU slides them without repainting the screen under the game. */
.gs-live-bg .b0 { animation: blob0 42s linear infinite; } .gs-live-bg .b1 { animation: blob1 42s linear infinite; } .gs-live-bg .b2 { animation: blob2 42s linear infinite; }
@keyframes blob0 { 0% { transform: translate(40vw, 0vh); } 25% { transform: translate(-10vw, 30vh); } 50% { transform: translate(-30vw, 10vh); } 75% { transform: translate(10vw, -20vh); } 100% { transform: translate(40vw, 0vh); } }
@keyframes blob1 { 0% { transform: translate(-40vw, 40vh); } 25% { transform: translate(20vw, 50vh); } 50% { transform: translate(40vw, 20vh); } 75% { transform: translate(-10vw, 0vh); } 100% { transform: translate(-40vw, 40vh); } }
@keyframes blob2 { 0% { transform: translate(10vw, -10vh); } 25% { transform: translate(40vw, 20vh); } 50% { transform: translate(0vw, 50vh); } 75% { transform: translate(-30vw, 20vh); } 100% { transform: translate(10vw, -10vh); } }
@media (prefers-reduced-motion: reduce) { .gs-live-bg .lb-blob { animation: none; } }
.hud { padding: 6px 14px 0; color: #fff; display: flex; flex-direction: column; gap: 8px; }
.hud-top { display: flex; align-items: center; gap: 10px; }
.hud .circle-btn.xs { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(26,29,36,.8); color: #F3F0EA; font: 900 14px Nunito, sans-serif; display: grid; place-items: center; cursor: pointer; position: relative; }
.hud-more { font-size: 20px !important; letter-spacing: 1px; }
.hud-title { font: 900 13px Nunito, sans-serif; letter-spacing: .02em; }
.hud-menu { position: fixed; z-index: 80; min-width: 230px; background: rgba(36,40,50,.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 14px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.5); animation: fade .15s; }
.hud-menu .hm-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 16px; border: 0; background: none; color: #F3F0EA; font: 600 16px Nunito, system-ui, sans-serif; text-align: left; cursor: pointer; }
.hud-menu .hm-item + .hm-item { border-top: 1px solid rgba(255,255,255,.08); }
.hud-menu .hm-item:active { background: rgba(255,255,255,.08); }
.turn-layer { position: absolute; inset: 0; z-index: 30; pointer-events: none; }
.turn-frame { position: absolute; inset: 0; border-radius: 44px; border: 5px solid var(--tf, #4DC77A); box-shadow: 0 0 14px var(--tf, #4DC77A), inset 0 0 14px color-mix(in srgb, var(--tf, #4DC77A) 60%, transparent);
  opacity: 0; transition: opacity .3s ease-in-out; }
.turn-layer.mine .turn-frame { opacity: 1; }
.turn-frame::after { content: ''; position: absolute; inset: -5px; border-radius: inherit; border: 8px solid var(--tf, #4DC77A); opacity: 0; will-change: opacity; }
/* Breathing line (iOS 4→7 pt) done with opacity of a thicker ring, so nothing is laid out or repainted each frame. */
.turn-layer.mine:not(.clock) .turn-frame::after { animation: tfBreathe 2.1s ease-in-out infinite; }
@keyframes tfBreathe { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.turn-bar { position: absolute; top: calc(env(safe-area-inset-top) + 0px); left: 50%; transform: translateX(-50%); height: 4px; border-radius: 2px; background: var(--tf); opacity: 0; transition: width .1s linear; }
.turn-layer:not(.mine) .turn-bar { opacity: 0 !important; }
.turn-banner { position: absolute; left: 50%; top: 120px; transform: translateX(-50%) scale(.5); opacity: 0; padding: 10px 22px; border-radius: 999px; background: #43B581; color: #111318;
  font: 900 22px Nunito, sans-serif; box-shadow: 0 0 16px rgba(67,181,129,.6); white-space: nowrap; }
.turn-banner.show { animation: tbShow 1.6s forwards; }
@keyframes tbShow { 0% { opacity: 0; transform: translateX(-50%) scale(.5); } 18% { opacity: 1; transform: translateX(-50%) scale(1.06); } 26% { transform: translateX(-50%) scale(1); } 81% { opacity: 1; transform: translateX(-50%) scale(1); } 100% { opacity: 0; transform: translateX(-50%) scale(.9); } }
.cd-overlay { position: absolute; inset: 0; z-index: 50; background: rgba(0,0,0,.55); display: grid; place-items: center; color: #fff; pointer-events: none; transition: opacity .3s ease-out; }
.cd-overlay.gone { opacity: 0; }
.cd-box { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 0 30px; }
.cd-title { font: 900 25px Nunito, sans-serif; }
.cd-num { font: 900 120px/1 ui-rounded, 'SF Pro Rounded', Nunito, sans-serif; -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px var(--glow)); min-height: 120px; display: grid; place-items: center; }
.cd-num.word { font-size: 34px; min-height: 120px; }
.cd-tag { font: 600 16px Nunito, sans-serif; color: rgba(255,255,255,.85); max-width: 340px; }
.sess-loading { height: var(--app-h, 100dvh); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: #F3F0EA; background: #111318; text-align: center; padding: 0 40px; }
.sess-loading .sl-t { font: 700 18px Nunito, sans-serif; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3.5px solid rgba(255,255,255,.18); border-top-color: #fff; animation: spin .8s linear infinite; }
.spinner.sm { width: 16px; height: 16px; border-width: 2px; border-color: rgba(0,0,0,.2); border-top-color: currentColor; display: inline-block; vertical-align: middle; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.confirm-sheet .sheet-panel { padding-top: 10px; }
.confirm-box { display: flex; flex-direction: column; gap: 10px; padding-bottom: 8px; }
.cf-title { text-align: center; font: 700 14px Nunito, sans-serif; color: rgba(243,240,234,.62); padding: 4px 0 8px; }
.cf-btn { border: 0; border-radius: 14px; padding: 16px; background: #242832; color: #F3F0EA; font: 700 18px Nunito, sans-serif; cursor: pointer; }
.cf-btn.danger { color: #E5484D; }
.fly-layer { z-index: 25; }

/* ---- CosmeticsStoreView (iOS) ---- */
.store-sheet .sheet-panel { background: #111318; color: #F3F0EA; max-height: calc(var(--app-h, 100dvh) * .94); }
.cs-store { display: flex; flex-direction: column; gap: 18px; padding-bottom: 10px; }
.cs-head { display: flex; align-items: center; gap: 8px; }
.cs-title { font: 800 17px Nunito, sans-serif; }
.cs-done { border: 0; background: none; color: #E9D3A4; font: 800 17px Nunito, sans-serif; cursor: pointer; }
.cs-preview { position: relative; height: 220px; border-radius: 28px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(212,176,114,.5); }
.cs-preview > .cp { height: 100%; }
.cs-cap { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,.45); font: 900 14px Nunito, sans-serif; }
.cs-legend { display: flex; gap: 14px; font: 800 12px Nunito, sans-serif; } .cs-legend .u { color: #43B581; } .cs-legend .b { color: #6E8BD8; } .cs-legend .l { color: #D4B072; }
.ds-sec-t { font: 900 20px Nunito, sans-serif; } .ds-sec-s { font: 600 13px Nunito, sans-serif; color: rgba(243,240,234,.62); margin-top: 2px; }
.cs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.cs-tile { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 18px; background: #1A1D24; box-shadow: inset 0 0 0 1px rgba(243,240,234,.10); cursor: pointer; }
.cs-tile.sel { box-shadow: inset 0 0 0 2px #D4B072; } .cs-tile.using { box-shadow: inset 0 0 0 2px #43B581; }
.cs-tp { position: relative; height: 84px; border-radius: 14px; overflow: hidden; }
.cs-tp > .cp { height: 100%; }
.cs-badge { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #fff; }
.cs-badge.using { background: #43B581; } .cs-badge.owned { background: #6E8BD8; } .cs-badge.sale { background: #D4B072; color: #111318; }
.cs-tt { font: 900 15px Nunito, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-err { color: #E5484D; font: 700 14px Nunito, sans-serif; }
.dbtn.compact { padding: 9px 10px; font-size: 14px; width: 100%; }
.dbtn.emerald { background: #43B581; color: #111318; box-shadow: 0 3px 0 #2c7a55; } .dbtn.surface { background: #242832; color: #F3F0EA; box-shadow: 0 3px 0 #0b0c10; }
.cp { position: relative; width: 100%; }
.cp-fill { position: absolute; inset: 0; }
.cp-center { display: grid; place-items: center; }
.cp-clip { overflow: hidden; }
.cp-row { display: flex; align-items: center; justify-content: center; }
.cp-surface { background: radial-gradient(closest-side, transparent 40%, rgba(0,0,0,.55) 130%), url(/app/assets/tex/felt_green.png); background-size: auto, 256px; }
.cp-app { background: radial-gradient(circle at 50% 0%, rgba(212,176,114,.22), transparent 70%), radial-gradient(circle at 100% 100%, rgba(229,72,77,.10), transparent 60%), #111318; }
.cp-app.amber { background: radial-gradient(circle at 50% 0%, rgba(224,168,74,.3), transparent 70%), #111318; }
.cp .felt { position: absolute; inset: 0; } .cp .felt .ft-body { display: grid; place-items: center; }
.cp .ludo-art { width: 100%; height: 100%; }
.cp-pool { max-height: 100%; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.cp-stickers { display: flex; } .cp-stickers.big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 0 12px; }
.cp-sticker { display: flex; flex-direction: column; align-items: center; } .cp-sticker .e { font-size: 34px; } .cp-stickers.big .e { font-size: 46px; }
.cp-sticker b { font: 900 12px Nunito, sans-serif; color: #FFD166; text-shadow: 0 2px 0 #7a3b00; }
.lb-looks { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border-radius: 20px; border: 0; background: rgba(26,29,36,.85); box-shadow: inset 0 0 0 1px rgba(212,176,114,.35); color: #fff; text-align: left; cursor: pointer; font-family: Nunito, sans-serif; }
.lb-looks .ll-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(212,176,114,.18); font-size: 16px; }
.lb-looks b { display: block; font-weight: 900; font-size: 15px; } .lb-looks .grow span { font-weight: 600; font-size: 12px; color: rgba(255,255,255,.7); }
.lb-looks .ll-chev { color: rgba(255,255,255,.5); font-weight: 900; font-size: 18px; }
.session-layer { position: fixed; inset: 0; z-index: 30; background: #111318; overflow: hidden; animation: fade .2s; }
.session-layer > .session { height: var(--app-h, 100dvh); overflow-y: auto; overscroll-behavior: contain; }
html.in-session, html.in-session body { overflow: hidden; }
.toast { z-index: 90; } .banner { z-index: 85; }

/* ---- Tablić (TablicGameView.swift) ---- */
.gv { display: flex; flex-direction: column; gap: 10px; padding: 0 12px; min-height: 0; height: 100%; color: #fff; font-family: Nunito, system-ui, sans-serif; }
.gv-hint { height: 18px; text-align: center; font-weight: 700; font-size: 13px; color: rgba(255,255,255,.7); flex: none; }
.tb-strip { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 18px; flex: none; transition: background .35s; }
.tb-av { padding: 4px; border-radius: 50%; display: inline-flex; transition: box-shadow .35s; }
.tb-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .tb-txt b { font-weight: 800; font-size: 15px; } .tb-txt small { font-weight: 700; font-size: 11px; color: rgba(255,255,255,.65); white-space: nowrap; }
.tb-backs { display: flex; }
.tb-wins { width: 44px; display: flex; flex-direction: column; align-items: center; } .tb-wins b { font-weight: 900; font-size: 18px; line-height: 1.1; } .tb-wins small { font-weight: 800; font-size: 9px; color: rgba(255,255,255,.6); }
.tb-clock { width: 30px; text-align: center; font-weight: 900; font-size: 15px; font-variant-numeric: tabular-nums; }
.tb-felt { flex: 1; min-height: 0; }
.tb-felt > .ft-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.tb-head { display: flex; gap: 6px; font-weight: 800; font-size: 12px; color: rgba(255,255,255,.75); }
.tb-flow { flex: 1; display: flex; flex-wrap: wrap; gap: 8px; align-content: center; justify-content: center; }
.tb-flow .pc { transition: transform .4s cubic-bezier(.2,1.2,.35,1); }
.tb-empty { flex: 1; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: rgba(255,255,255,.5); }
.tb-hand { height: 128px; flex: none; display: flex; justify-content: center; align-items: flex-start; padding-top: 4px; transition: opacity .3s; }
.tb-hand .pc { transition: transform .4s cubic-bezier(.2,1.2,.35,1); }
.tb-roundend { position: absolute; left: 16px; right: 16px; top: 50%; transform: translateY(-50%); padding: 18px; border-radius: 22px; background: rgba(26,29,36,.95); display: flex; flex-direction: column; gap: 10px; z-index: 3; }
.tre-t { text-align: center; font-weight: 900; font-size: 16px; }
.tre-row { display: flex; align-items: center; gap: 8px; } .tre-row b { font-weight: 800; font-size: 15px; } .tre-row small { font-weight: 700; font-size: 12px; color: rgba(255,255,255,.7); }
.tre-p { width: 40px; text-align: right; font-weight: 900 !important; font-size: 18px !important; }
.tre-sum { text-align: center; font-weight: 700; font-size: 13px; color: rgba(255,255,255,.7); }

/* ---- Sedmica / seat chips (SedmicaGameView.swift) ---- */
.sc-row { display: flex; gap: 8px; flex: none; }
.sc-chip { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 14px; transition: background .35s, box-shadow .35s; }
.scc-t { display: flex; flex-direction: column; min-width: 0; } .scc-t b { font-weight: 800; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .scc-t small { font-weight: 700; font-size: 10px; color: rgba(255,255,255,.65); white-space: nowrap; }
.scc-backs { display: flex; } .scc-clock { font-weight: 900; font-size: 12px; font-variant-numeric: tabular-nums; }
.sd-felt { flex: 1; min-height: 0; } .sd-felt > .ft-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.sd-trick { flex: 1; position: relative; display: grid; place-items: center; }
.sd-wait { font-weight: 700; font-size: 15px; color: rgba(255,255,255,.45); }
.sd-tc { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 3px; transition: transform .4s cubic-bezier(.2,1.2,.35,1); }
.sd-hand { height: 134px; flex: none; display: flex; justify-content: center; gap: 6px; align-items: flex-start; padding-top: 10px; }
.sd-hand .pc { transition: transform .4s cubic-bezier(.2,1.2,.35,1), opacity .3s; flex: 0 1 84px; }
.sd-decide { display: flex; align-items: center; gap: 10px; flex: none; } .sd-decide b { font-weight: 800; font-size: 14px; }
.sd-pass { border: 0; border-radius: 999px; padding: 10px 16px; background: #1A1D24; color: #fff; font: 900 15px Nunito, sans-serif; cursor: pointer; }

/* ---- Šnaps (SnapsGameView.swift) ---- */
.sn-row { display: flex; align-items: center; flex: none; gap: 8px; }
.sn-seat { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; color: #F3F0EA; transition: background .3s, box-shadow .3s; }
.sn-st { display: flex; flex-direction: column; gap: 3px; } .sn-l1 { display: flex; gap: 6px; align-items: baseline; font-weight: 700; font-size: 11px; }
.sn-l1 b { font-weight: 800; font-size: 13px; } .sn-l1 .sn-pts { color: #E9D3A4; font-weight: 900; } .sn-l1 .sn-pend { color: rgba(224,168,74,.7); font-size: 11px; }
.sn-dots { display: flex; gap: 3px; } .sn-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(243,240,234,.15); } .sn-dots i.on { background: linear-gradient(#E9D3A4,#D4B072,#9C7A3E); }
.sn-clock { font-weight: 900; font-size: 15px; font-variant-numeric: tabular-nums; }
.sn-oppbacks { display: flex; align-items: flex-end; }
.sn-felt { flex: 1; min-height: 0; } .sn-felt > .ft-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.sn-trumpb { display: flex; align-items: center; gap: 4px; } .sn-trumpb i { width: 24px; height: 24px; border-radius: 50%; background: #F3F0EA; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 16px; }
.sn-mid { flex: 1; display: flex; align-items: center; gap: 18px; min-height: 0; }
.sn-stock { position: relative; width: 96px; height: 120px; display: grid; place-items: center; flex: none; }
.sn-stock > .pc-back { position: absolute; }
.sn-trump { position: absolute; transition: transform .5s ease-in-out; transform-style: preserve-3d; }
.sn-left { position: absolute; bottom: -2px; padding: 2px 7px; border-radius: 999px; background: rgba(17,19,24,.75); color: #F3F0EA; font-weight: 900; font-size: 13px; transform: translateY(0); }
.sn-lock { position: absolute; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(#E9D3A4,#D4B072,#9C7A3E); display: grid; place-items: center; font-size: 14px; transform: translate(26px, -36px); box-shadow: 0 2px 3px rgba(0,0,0,.5); }
.sn-trick { flex: 1; position: relative; display: grid; place-items: center; height: 100%; }
.sn-tc { position: absolute; transition: transform .42s cubic-bezier(.2,1.2,.35,1); }
.sn-mar { display: flex; gap: 6px; flex-wrap: wrap; } .sn-m { display: inline-flex; align-items: center; gap: 3px; padding: 4px 8px; border-radius: 999px; background: #F3F0EA; color: #111318; font-weight: 900; font-size: 11px; }
.sn-hand { height: 132px; flex: none; display: flex; justify-content: center; align-items: flex-start; padding-top: 14px; }
.sn-hand .pc { transition: transform .4s cubic-bezier(.2,1.2,.35,1), opacity .3s, filter .3s; overflow: visible; }
.sn-marriage { animation: snGlow 1.25s ease-in-out infinite; }
@keyframes snGlow { 50% { filter: drop-shadow(0 0 12px #E0A84A); } }
.sn-mtag { position: absolute; top: -8px; right: -6px; padding: 2px 5px; border-radius: 999px; background: linear-gradient(#E9D3A4,#D4B072,#9C7A3E); color: #111318; font-weight: 900; font-size: 11px; }
.sn-actions { display: flex; gap: 8px; } .sn-act { min-height: 36px; font-size: 13px; padding: 0 12px; }
.dbtn.brass { background: linear-gradient(#E9D3A4,#D4B072); color: #111318; box-shadow: 0 3px 0 #9C7A3E; }

/* ---- Belot (BelotGameView.swift) ---- */
.bl-score { display: flex; gap: 8px; flex: none; }
.bl-side { flex: 1; min-width: 0; padding: 6px 10px; border-radius: 12px; background: #1A1D24; color: #F3F0EA; display: flex; flex-direction: column; gap: 3px; }
.bl-sl { display: flex; align-items: center; gap: 4px; } .bl-sn { font-weight: 800; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .bl-st { font-weight: 900; font-size: 15px; }
.bl-bar { height: 5px; border-radius: 3px; background: rgba(243,240,234,.12); overflow: hidden; } .bl-bar i { display: block; height: 100%; border-radius: 3px; transition: width .5s; }
.bl-seat { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 16px; color: #F3F0EA; align-self: center; transition: background .3s, box-shadow .3s; }
.bl-seat.v { flex-direction: column; gap: 4px; padding: 6px; max-width: 70px; text-align: center; }
.bl-av { position: relative; display: inline-flex; } .bl-d { position: absolute; right: -4px; bottom: -2px; width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(#E9D3A4,#D4B072,#9C7A3E); color: #111318; font-size: 9px; font-weight: 900; display: grid; place-items: center; }
.bl-stx { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .bl-stx b { font-weight: 800; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .bl-stx small { font-weight: 700; font-size: 10px; color: rgba(243,240,234,.7); }
.bl-clock { font-weight: 900; font-size: 14px; font-variant-numeric: tabular-nums; }
.bl-row { flex: 1; min-height: 0; display: flex; align-items: center; gap: 6px; }
.bl-felt { flex: 1; align-self: stretch; } .bl-felt > .ft-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.bl-mid { flex: 1; position: relative; display: grid; place-items: center; min-height: 0; }
.bl-tc { position: absolute; transition: transform .42s cubic-bezier(.2,1.2,.35,1); }
.bl-bid { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; } .bl-bt { font-weight: 900; font-size: 15px; color: #F3F0EA; }
.bl-suits { display: flex; gap: 10px; } .bl-suit { width: 54px; height: 54px; border: 0; border-radius: 14px; background: #F3F0EA; font-size: 30px; font-weight: 900; box-shadow: 0 3px 4px rgba(0,0,0,.35); cursor: pointer; }
.bl-suit:active { transform: scale(.94); } .bl-pass { min-width: 120px; width: auto; }
.bl-wait { display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(243,240,234,.75); font-weight: 700; font-size: 14px; }
.bl-think { font-size: 28px; animation: diePulse 1s ease-in-out infinite; }
.bl-passes { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; } .bl-passes span { padding: 3px 7px; border-radius: 999px; background: rgba(17,19,24,.35); font-size: 11px; font-weight: 800; color: rgba(243,240,234,.6); }
.bl-hand { height: 124px; flex: none; display: flex; justify-content: center; align-items: flex-start; padding-top: 14px; }
.bl-hand .pc { transition: transform .4s cubic-bezier(.2,1.2,.35,1), opacity .3s; }
.bl-star { position: absolute; right: 3px; bottom: 3px; width: 15px; height: 15px; border-radius: 50%; background: rgba(17,19,24,.7); color: #E9D3A4; font-size: 9px; display: grid; place-items: center; }
.bl-mydecl { display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; border-radius: 999px; background: #242832; color: #F3F0EA; font-weight: 900; font-size: 12px; }

/* ---- Lorum (LorumGameView.swift) ---- */
.lr-bar { flex: none; padding: 8px 12px; border-radius: 14px; background: #1A1D24; color: #F3F0EA; display: flex; flex-direction: column; gap: 4px; }
.lr-l1 { display: flex; align-items: center; gap: 6px; } .lr-name { font-weight: 900; font-size: 18px; color: #E9D3A4; }
.lr-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(243,240,234,.15); transition: all .4s; } .lr-dot.done { background: rgba(243,240,234,.5); } .lr-dot.on { width: 10px; height: 10px; background: linear-gradient(#E9D3A4,#D4B072,#9C7A3E); }
.lr-l2 { display: flex; gap: 6px; font-weight: 700; font-size: 12px; color: rgba(243,240,234,.75); } .lr-l2 small { font-weight: 800; font-size: 11px; color: rgba(243,240,234,.62); }
.lr-passed { font-weight: 900; font-size: 10px; color: rgba(243,240,234,.62); }
.lr-layout { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lr-start { font-weight: 800; font-size: 12px; color: rgba(243,240,234,.8); } .lr-first { font-weight: 700; font-size: 13px; color: rgba(243,240,234,.6); }
.lr-suits { display: flex; gap: 8px; }
.lr-ghost { width: 56px; height: 78px; border-radius: 6px; border: 1.2px dashed rgba(243,240,234,.25); display: grid; place-items: center; font-size: 22px; font-weight: 900; }

/* ---- Jamb (JambGameView.swift) ---- */
.jamb-v { position: relative; }
.jb-opps { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 10px; flex: none; }
.jb-opps::-webkit-scrollbar { display: none; }
.jb-chip { position: relative; flex: none; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 0; background: #1A1D24; color: #F3F0EA; font-family: Nunito, sans-serif; cursor: pointer; transition: transform .3s; }
.jb-chip.on { background: linear-gradient(#E9D3A4,#D4B072,#9C7A3E); color: #111318; transform: scale(1.05); }
.jb-dot { width: 10px; height: 10px; border-radius: 50%; } .jb-dicei { font-size: 11px; animation: diePulse .6s ease-in-out infinite; }
.jb-n { font-weight: 700; font-size: 13px; white-space: nowrap; } .jb-t { font-weight: 900; font-size: 13px; } .jb-chip small { font-weight: 700; font-size: 11px; color: rgba(243,240,234,.62); } .jb-chip.on small { color: rgba(17,19,24,.6); }
.jb-eye { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); width: 15px; height: 15px; border-radius: 50%; background: #E9D3A4; color: #111318; font-size: 8px; display: grid; place-items: center; }
.jb-viewing { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-radius: 999px; background: #242832; color: #F3F0EA; font: 700 13px Nunito, sans-serif; flex: none; cursor: pointer; }
.jb-viewing b { font-weight: 900; font-size: 12px; color: #E9D3A4; }
.jb-sheet { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 5px; border-radius: 16px; background: rgb(250,247,237); box-shadow: 0 6px 10px rgba(0,0,0,.45), inset 0 0 0 1.2px rgba(41,115,204,.6); }
.js-row { flex: 1; min-height: 0; display: flex; gap: 2px; align-items: stretch; border-bottom: .5px solid rgba(41,115,204,.18); }
.js-row.head { background: rgba(41,115,204,.10); border-radius: 10px 10px 0 0; }
.js-row.sum { flex: .85; background: rgba(41,115,204,.12); }
.js-l { width: 50px; flex: none; display: flex; align-items: center; color: rgb(41,115,204); font-weight: 900; font-size: 12px; padding-left: 2px; white-space: nowrap; }
.js-row.head .js-l { font-size: 10px; } .js-row.sum .js-l { font-size: 13px; }
.js-h { flex: 1; display: grid; place-items: center; color: rgb(41,115,204); font-weight: 900; font-size: 13px; }
.js-s { flex: 1; display: grid; place-items: center; color: rgb(41,115,204); font-weight: 900; font-size: 11px; }
.jc { flex: 1; min-width: 0; margin: 1.5px 0; border: 0; border-radius: 4px; padding: 0; display: grid; place-items: center; cursor: pointer; font-family: Nunito, sans-serif; }
.jc:disabled { cursor: default; color: inherit; }
.jc-v { font-weight: 900; font-size: 13px; transition: transform .35s cubic-bezier(.2,1.6,.4,1); } .jc-v.fl { transform: scale(1.35); }
.jc-p { font-weight: 800; font-size: 12px; } .jc-a { font-size: 9px; } .jc-a.o { opacity: .8; }
.js-grand { flex: 1; min-height: 0; display: flex; align-items: center; padding: 0 6px; color: #9C7A3E; } .js-grand b { font-weight: 900; font-size: 13px; } .js-gt { font-size: 15px !important; }
.jb-tray { flex: none; display: flex; flex-direction: column; gap: 8px; }
.jb-felt > .ft-body { padding: 14px 12px 8px; }
.jb-dice { display: flex; gap: 10px; justify-content: center; }
.jb-die { flex: 1; max-width: 62px; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; padding: 0; cursor: pointer; }
.jb-keep { font: 900 10px Nunito, sans-serif; color: rgba(243,240,234,.5); padding: 2px 6px; border-radius: 999px; min-height: 16px; }
.jb-keep.on { background: linear-gradient(#E9D3A4,#D4B072,#9C7A3E); color: #111318; }
.d3 { position: relative; width: 100%; aspect-ratio: 1; display: block; transition: transform .3s cubic-bezier(.2,1.4,.4,1);
  transform: translateY(0) rotate(var(--rz)) rotate3d(1, var(--ay), 0, var(--rx)); transition: transform .5s cubic-bezier(.2,1.1,.3,1), filter .3s; filter: drop-shadow(0 3px 3px rgba(0,0,0,.45)); }
.d3.held { transform: translateY(-10px); filter: drop-shadow(0 8px 8px rgba(0,0,0,.45)); }
.d3-side { position: absolute; inset: 0; border-radius: 24%; background: rgb(199,184,158); transform: translateY(6%); }
.d3-top { position: absolute; inset: 0; border-radius: 24%; background: radial-gradient(circle at 30% 25%, #fff, rgb(245,237,219) 90%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.9); }
.d3-top i { position: absolute; width: 17%; height: 17%; border-radius: 50%; transform: translate(-50%,-50%); background: radial-gradient(circle at 0 0, rgb(89,46,20), rgb(31,13,5) 70%); }
.d3.held::after { content: ''; position: absolute; inset: -4px; border-radius: 26%; box-shadow: 0 0 0 3px #D4B072; }
.jb-bar { display: flex; align-items: center; gap: 10px; }
.jb-st { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .jb-st b { font-weight: 900; font-size: 14px; color: #F3F0EA; } .jb-st small { font-weight: 700; font-size: 12px; color: rgba(243,240,234,.62); }
.jb-roll { width: auto; min-width: 140px; } .jb-roll small { opacity: .75; font-size: 13px; }
.jb-banner { position: absolute; left: 16px; right: 16px; top: 54px; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 20px; background: #242832; box-shadow: inset 0 0 0 2px var(--bc), 0 0 18px var(--bc); pointer-events: none; animation: popIn .4s cubic-bezier(.2,1.4,.4,1); }
.jb-banner b { display: block; font-weight: 900; font-size: 20px; color: #F3F0EA; } .jb-banner small { font-weight: 700; font-size: 13px; color: rgba(243,240,234,.62); }
.jbb-i { font-size: 26px; animation: diePulse .5s ease-in-out 3; }
@keyframes popIn { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }

/* ---- Mica (MicaGameView.swift) ---- */
.mc-bar { display: flex; align-items: center; gap: 8px; flex: none; }
.mc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; color: #F3F0EA; transition: transform .35s cubic-bezier(.2,1.5,.4,1), box-shadow .3s; }
.mc-chip.on { transform: scale(1.06); } .mc-chip b { font-weight: 900; font-size: 13px; font-variant-numeric: tabular-nums; }
.mc-clock { font-weight: 900; font-size: 18px; font-variant-numeric: tabular-nums; }
.mc-board-wrap { flex: 0 1 auto; min-height: 0; display: grid; place-items: center; container-type: size; aspect-ratio: 1; width: 100%; max-height: calc(var(--app-h, 100dvh) - 300px); margin: 0 auto; }
.mc-board { position: relative; width: min(100cqw, 100cqh); aspect-ratio: 1; --stone: calc(min(100cqw, 100cqh) * .095); }
.mc-frame { position: absolute; inset: 0; border-radius: 7.5%; background: url(/app/assets/tex/wood_dark.png); background-size: 256px; box-shadow: 0 8px 14px rgba(0,0,0,.5), inset 0 0 0 1px rgba(0,0,0,.55); }
.mc-field { position: absolute; inset: 1.67%; border-radius: 4.6%; background: radial-gradient(circle, rgba(255,255,255,.10), transparent 45%, rgba(0,0,0,.25) 100%), url(/app/assets/tex/wood_warm.png), rgb(230,199,148);
  background-size: auto, 256px, auto; background-blend-mode: normal, multiply, normal; box-shadow: 0 0 4px rgba(0,0,0,.6); }
.mc-field::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: rgba(230,199,148,.55); mix-blend-mode: normal; pointer-events: none; }
.mc-grooves { position: absolute; inset: 0; width: 100%; height: 100%; }
.mc-stud { position: absolute; width: 3.2%; height: 3.2%; border-radius: 50%; transform: translate(-50%,-50%); background: radial-gradient(circle at 35% 30%, #E9D3A4, #D4B072, #9C7A3E 80%); box-shadow: 0 1px 1px rgba(0,0,0,.5); }
.mc-mill { position: absolute; height: 2.2%; border-radius: 99px; background: #E9D3A4; transform-origin: 0 50%; margin-top: -1.1%; box-shadow: 0 0 10px #E0A84A; animation: millGlow 2s forwards; z-index: 2; }
@keyframes millGlow { 0% { opacity: 0; } 12% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
.mc-target { position: absolute; width: calc(var(--stone) * .8); height: calc(var(--stone) * .8); transform: translate(-50%,-50%); border-radius: 50%; background: rgba(67,181,129,.18); box-shadow: inset 0 0 0 2.5px rgba(67,181,129,.75); animation: mcPulse 1.05s ease-in-out infinite; pointer-events: none; z-index: 2; }
@keyframes mcPulse { 50% { box-shadow: inset 0 0 0 2.5px rgba(67,181,129,1); } }
.mc-pt { position: absolute; transform: translate(-50%,-50%); z-index: 3; pointer-events: none; animation: mcIn .35s cubic-bezier(.2,1.3,.4,1); }
@keyframes mcIn { from { opacity: 0; transform: translate(-50%,-50%) scale(1.6); } }
.mc-hit { position: absolute; width: 13%; height: 13%; transform: translate(-50%,-50%); border: 0; background: none; border-radius: 50%; z-index: 4; cursor: pointer; padding: 0; }
.mc-hands { display: flex; justify-content: center; gap: 18px; padding: 8px 12px; border-radius: 999px; background: url(/app/assets/tex/wood_dark.png); background-size: 256px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.5); align-self: center; flex: none; }
.mc-hand { display: flex; min-width: 40px; }
.mc-status { text-align: center; font: 800 14px Nunito, sans-serif; color: #F3F0EA; flex: none; }
.ms { position: relative; display: inline-grid; place-items: center; width: calc(var(--s) * 1.5); height: calc(var(--s) * 1.5); flex: none; }
.ms > i { position: absolute; border-radius: 50%; }
.ms-halo { width: calc(var(--s) * 1.45); height: calc(var(--s) * 1.45); filter: blur(5px); opacity: 0; }
.ms.glow .ms-halo { background: rgba(67,181,129,.45); animation: msPulse 1.05s ease-in-out infinite; }
.ms.danger .ms-halo { width: calc(var(--s) * 1.5); height: calc(var(--s) * 1.5); background: rgba(229,72,77,.6); animation: msPulse 1.05s ease-in-out infinite; }
.ms.mill .ms-halo { width: calc(var(--s) * 1.5); height: calc(var(--s) * 1.5); background: rgba(224,168,74,.55); opacity: 1; }
@keyframes msPulse { 0%, 100% { opacity: .1; } 50% { opacity: 1; } }
.ms-shadow { width: calc(var(--s) * .98); height: calc(var(--s) * .5); background: rgba(0,0,0,.45); transform: translateY(calc(var(--s) * .3)); filter: blur(1.5px); transition: all .25s; }
.ms.lifted .ms-shadow { width: calc(var(--s) * .85); background: rgba(0,0,0,.25); transform: translateY(calc(var(--s) * .42)); filter: blur(3px); }
.ms-face { width: var(--s); height: var(--s); display: grid; place-items: center; transition: transform .25s cubic-bezier(.2,1.5,.4,1); }
.ms.light .ms-face { background: radial-gradient(circle at 35% 30%, rgb(255,247,230), rgb(235,214,173) 55%, rgb(179,148,102) 100%);
  box-shadow: inset 0 0 0 calc(var(--s) * .18) transparent, inset 0 0 0 calc(var(--s) * .06) rgba(255,255,255,.35); }
.ms.dark .ms-face { background: radial-gradient(circle at 35% 30%, rgb(140,97,66), rgb(69,38,23) 55%, rgb(26,13,8) 100%); box-shadow: inset 0 0 0 calc(var(--s) * .06) rgba(255,255,255,.12); }
.ms-face::before { content: ''; position: absolute; inset: 18%; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.18), inset 0 0 0 calc(var(--s) * .1) transparent; }
.ms.dark .ms-face::before { box-shadow: 0 0 0 1px rgba(0,0,0,.3); }
.ms-face::after { content: ''; position: absolute; inset: 28%; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.45); }
.ms.dark .ms-face::after { box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.ms.lifted .ms-face { transform: translateY(calc(var(--s) * -.18)) scale(1.12); }
.ms.glow:not(.lifted) .ms-face { animation: msBreath 1.05s ease-in-out infinite; }
@keyframes msBreath { 50% { transform: scale(1.06); } }
.ms-face b { position: relative; z-index: 1; color: rgba(255,255,255,.9); font-size: calc(var(--s) * .4); font-weight: 900; }

/* ---- Bilijar (BilijarGameView.swift): table fills, plates float over the top, controls over the rails ---- */
.pool-v { position: relative; flex: 1; min-height: 0; padding: 0 2px; display: block; }
.pool-table { position: absolute; left: 2px; right: 2px; top: 68px; bottom: 0; display: grid; place-items: center; container-type: size; }
.pool-table .pool2 { width: min(100cqw, calc(100cqh * 149 / 276)); height: auto; aspect-ratio: 149 / 276; display: block; touch-action: none; border-radius: 8px; box-shadow: 0 8px 14px rgba(0,0,0,.55); }
.pool-v .pool-plates { position: absolute; left: 6px; right: 6px; top: 0; display: flex; gap: 8px; padding: 0; z-index: 3; }
.pool-v .pool-bottom { position: absolute; left: 6px; right: 6px; bottom: 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 3; pointer-events: none; }
.pool-v .pool-cue, .pool-v .pool-wheel { top: 80px; z-index: 4; }
.pool-v .pool-cue { left: 4px; } .pool-v .pool-wheel { right: 4px; }
.pool-v .pc-stick { position: absolute; left: 11px; top: 0; width: 8px; height: 80%; border-radius: 3px; background: linear-gradient(rgb(77,115,179) 0 6px, rgb(237,204,148) 6px, rgb(140,84,38)); }
.pool-v .pc-fill { position: absolute; left: 0; right: 0; top: 0; height: 0; border-radius: 999px; opacity: .85; background: linear-gradient(rgb(77,230,128), rgb(255,204,51), rgb(255,77,64)); }
img.mball { width: 24px; height: 24px; border-radius: 50%; box-shadow: 0 1px 1.5px rgba(0,0,0,.5); }
.pool-v .pp-balls { display: flex; gap: 2px; height: 21px; align-items: center; }
/* Wide screens (computer, tablet on its side): the table lies across, the power slot and the aim wheel sit beside it. */
.pool-v.land .pool-table { left: 46px; right: 46px; top: 72px; }
.pool-v.land.nine .pool-table { top: 100px; }
.pool-v.land .pool-table .pool2 { width: min(100cqw, calc(100cqh * 276 / 149)); aspect-ratio: 276 / 149; }
.pool-v.land .pool-plates { left: 50%; right: auto; width: min(720px, calc(100% - 12px)); transform: translateX(-50%); }
.pool-v.land .pool-cue, .pool-v.land .pool-wheel { top: calc(50% - 115px + 36px); }
.pool-v.land.nine .pool-cue, .pool-v.land.nine .pool-wheel { top: calc(50% - 115px + 50px); }

/* ---- Remi (RemiGameView.swift) ---- */
.rm-seats { display: flex; gap: 6px; flex: none; }
.rm-seat { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 8px; border-radius: 14px; color: #F3F0EA; transition: background .3s, box-shadow .3s; }
.rm-n { font-weight: 800; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-info { display: flex; gap: 6px; font-weight: 700; font-size: 11px; }
.rm-mid { position: relative; flex: 1; min-height: 0; display: flex; }
.rm-felt { flex: 1; min-height: 0; } .rm-felt > .ft-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; height: 100%; box-sizing: border-box; }
.rm-top { display: flex; align-items: center; gap: 14px; flex: none; }
.rm-deck { position: relative; width: 46px; height: 62px; border: 0; background: none; padding: 0; cursor: pointer; }
.rm-left { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); padding: 0 6px; border-radius: 999px; background: rgba(0,0,0,.5); color: #F3F0EA; font: 900 11px Nunito, sans-serif; z-index: 2; }
.rm-empty { width: 42px; height: 59px; border-radius: 5px; outline: 1px dashed rgba(243,240,234,.2); }
.rm-st { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; color: #F3F0EA; text-align: right; }
.rm-st b { font-weight: 800; font-size: 12px; } .rm-st span { font-weight: 700; font-size: 12px; color: #E9D3A4; }
.rm-melds { flex: 1; min-height: 0; overflow-y: auto; }
.rm-none { text-align: center; padding-top: 24px; font-weight: 700; font-size: 13px; color: rgba(243,240,234,.5); }
.rm-flow { display: flex; flex-wrap: wrap; gap: 10px; }
.rm-meld { display: flex; padding: 4px; border-radius: 8px; cursor: pointer; transition: box-shadow .2s; }
.rm-staged { display: flex; align-items: center; gap: 8px; padding: 0 8px; flex: none; }
.rm-sg { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.rm-sgi { display: flex; padding: 3px; border-radius: 6px; background: rgba(212,176,114,.25); cursor: pointer; flex: none; }
.rm-sum { font-weight: 900; font-size: 13px; }
.rm-hand { flex: none; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.rm-hand::-webkit-scrollbar { display: none; }
.rm-hrow { display: flex; padding: 20px 24px 4px; width: max-content; }
.rm-hc { position: relative; flex: none; cursor: pointer; transition: transform .3s cubic-bezier(.2,1.4,.4,1); }
.rm-drawn { position: absolute; left: 50%; top: -10px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #E9D3A4; }
.rm-actions { display: flex; align-items: center; gap: 8px; min-height: 50px; flex: none; }
.rm-end { position: absolute; inset: 16px; margin: auto; height: max-content; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 22px; background: rgba(26,29,36,.96); box-shadow: inset 0 0 0 1px rgba(212,176,114,.5); color: #F3F0EA; z-index: 5; animation: popIn .45s cubic-bezier(.2,1.3,.4,1); }
.rm-et { text-align: center; font-weight: 900; font-size: 16px; } .rm-end .row-i b { font-size: 15px; } .rm-ep { font-size: 16px !important; font-weight: 900; } .rm-ew { width: 44px; text-align: right; font-weight: 700; font-size: 13px; }
.rm-actions .dbtn, .pk-actions .dbtn { width: auto; padding: 9px 14px; }

/* ---- Poker (PokerGameView.swift) ---- */
.pk-head { display: flex; align-items: center; gap: 8px; font: 800 12px Nunito, sans-serif; color: rgba(243,240,234,.85); white-space: nowrap; flex: none; overflow: hidden; }
.pk-head .mut, .poker-v .mut { color: rgba(243,240,234,.62); }
.pk-others { display: flex; gap: 6px; flex: none; }
.pk-seat { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px; border-radius: 14px; color: #F3F0EA; transition: background .3s, box-shadow .3s; }
.pk-sc { position: relative; height: 42px; display: flex; align-items: center; }
.pk-row { display: flex; align-items: center; }
.pk-dl { position: absolute; right: -6px; top: -4px; }
.pk-n { font-weight: 800; font-size: 11px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-c { font-weight: 900; font-size: 13px; } .pk-a { font-weight: 900; font-size: 10px; white-space: nowrap; } .pk-hn { font-weight: 900; font-size: 9px; color: #E9D3A4; white-space: nowrap; }
.pk-felt { flex: 1; min-height: 0; } .pk-felt > .ft-body { padding: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 100%; box-sizing: border-box; }
.pk-board { display: flex; gap: 6px; }
.pk-slot { width: 54px; height: 75.6px; border-radius: 6px; outline: 1.2px dashed rgba(243,240,234,.18); }
.pk-pot { display: flex; align-items: center; gap: 8px; transition: opacity .3s; } .pk-pot b { font-weight: 900; font-size: 18px; color: #E9D3A4; }
.pk-sd { display: flex; flex-direction: column; gap: 4px; padding: 8px 12px; border-radius: 12px; background: rgba(17,19,24,.55); color: #F3F0EA; animation: popIn .4s cubic-bezier(.2,1.3,.4,1); }
.pk-sdr { display: flex; gap: 6px; font-weight: 900; font-size: 13px; }
.pk-me { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; color: #F3F0EA; flex: none; transition: background .3s, box-shadow .3s; }
.pk-hole { display: flex; align-items: center; min-height: 98px; }
.pk-out { font-weight: 800; font-size: 14px; color: rgba(243,240,234,.62); }
.pk-mi { display: flex; flex-direction: column; gap: 4px; } .pk-mi b { font-weight: 800; font-size: 14px; } .pk-chips { font-size: 17px !important; font-weight: 900 !important; color: #E9D3A4; }
.pk-mi small { font-weight: 700; font-size: 11px; color: rgba(243,240,234,.7); }
.pk-hand { align-self: flex-start; padding: 2px 8px; border-radius: 999px; background: linear-gradient(#E9D3A4,#D4B072,#9C7A3E); color: #111318; font-weight: 900; font-size: 12px; }
.pk-actions { display: flex; gap: 8px; flex: none; } .pk-actions .dbtn { flex: 1; width: auto; white-space: nowrap; }
.pk-raise { display: flex; flex-direction: column; gap: 8px; flex: none; color: #F3F0EA; } .pk-raise .mut { font-weight: 700; font-size: 13px; }
.pk-rv { font-weight: 900; font-size: 20px; color: #E9D3A4; margin-left: 6px; }
.pk-q { border: 0; padding: 4px 8px; border-radius: 999px; background: #1A1D24; color: #F3F0EA; font: 900 12px Nunito, sans-serif; margin-left: 4px; cursor: pointer; }
.pk-slider { width: 100%; accent-color: #D4B072; }
.pk-wait { height: 50px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: rgba(243,240,234,.62); flex: none; }
.confetti-l { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 30; }
.confetti-l i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; animation: confFall linear forwards; }
@keyframes confFall { to { top: 110%; transform: rotate(720deg) translateX(40px); } }

/* ---- Poker (PokerGameView.swift) ---- */
.pk-head { display: flex; align-items: center; gap: 8px; font: 800 12px Nunito, sans-serif; color: rgba(243,240,234,.85); white-space: nowrap; flex: none; overflow: hidden; }
.poker-v .mut { color: rgba(243,240,234,.62); }
.pk-others { display: flex; gap: 6px; flex: none; }
.pk-seat { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px; border-radius: 14px; color: #F3F0EA; transition: background .3s, box-shadow .3s; }
.pk-sc { position: relative; height: 42px; display: flex; align-items: center; }
.pk-row { display: flex; align-items: center; }
.pk-dl { position: absolute; right: -6px; top: -4px; }
.pk-n { font-weight: 800; font-size: 11px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-c { font-weight: 900; font-size: 13px; } .pk-a { font-weight: 900; font-size: 10px; white-space: nowrap; } .pk-hn { font-weight: 900; font-size: 9px; color: #E9D3A4; white-space: nowrap; }
.pk-felt { flex: 1; min-height: 0; } .pk-felt > .ft-body { padding: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 100%; box-sizing: border-box; }
.pk-board { display: flex; gap: 6px; }
.pk-slot { width: 54px; height: 75.6px; border-radius: 6px; outline: 1.2px dashed rgba(243,240,234,.18); }
.pk-pot { display: flex; align-items: center; gap: 8px; transition: opacity .3s; } .pk-pot b { font-weight: 900; font-size: 18px; color: #E9D3A4; }
.pk-sd { display: flex; flex-direction: column; gap: 4px; padding: 8px 12px; border-radius: 12px; background: rgba(17,19,24,.55); color: #F3F0EA; animation: popIn .4s cubic-bezier(.2,1.3,.4,1); }
.pk-sdr { display: flex; gap: 6px; font-weight: 900; font-size: 13px; }
.pk-me { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; color: #F3F0EA; flex: none; transition: background .3s, box-shadow .3s; }
.pk-hole { display: flex; align-items: center; min-height: 98px; }
.pk-out { font-weight: 800; font-size: 14px; color: rgba(243,240,234,.62); }
.pk-mi { display: flex; flex-direction: column; gap: 4px; } .pk-mi b { font-weight: 800; font-size: 14px; } .pk-mi .pk-chips { font-size: 17px; font-weight: 900; color: #E9D3A4; }
.pk-mi small { font-weight: 700; font-size: 11px; color: rgba(243,240,234,.7); }
.pk-hand { align-self: flex-start; padding: 2px 8px; border-radius: 999px; background: linear-gradient(#E9D3A4,#D4B072,#9C7A3E); color: #111318; font-weight: 900; font-size: 12px; }
.pk-actions { display: flex; gap: 8px; flex: none; } .pk-actions .dbtn { flex: 1; width: auto; white-space: nowrap; }
.pk-raise { display: flex; flex-direction: column; gap: 8px; flex: none; color: #F3F0EA; } .pk-raise .mut { font-weight: 700; font-size: 13px; }
.pk-rv { font-weight: 900; font-size: 20px; color: #E9D3A4; margin-left: 6px; }
.pk-q { border: 0; padding: 4px 8px; border-radius: 999px; background: #1A1D24; color: #F3F0EA; font: 900 12px Nunito, sans-serif; margin-left: 4px; cursor: pointer; }
.pk-slider { width: 100%; accent-color: #D4B072; }
.pk-wait { height: 50px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: rgba(243,240,234,.62); flex: none; }
.confetti-l { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 30; }
.confetti-l i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; animation: confFall linear forwards; }
@keyframes confFall { to { top: 110%; transform: rotate(720deg) translateX(40px); } }
.fly-top { position: fixed; z-index: 80; top: var(--vv-top, 0); height: var(--app-h, 100dvh); }
.chat-sheet { height: min(max(calc(var(--app-h, 100dvh) * .5), 340px), calc(var(--app-h, 100dvh) - 40px)); }
/* While a game is open, the screen under it (home, group, its blurred animated background) is not drawn at all. */
html.in-session #app { visibility: hidden; }
/* Keyboard open: no safe-area gap between the message field and the keyboard. */
html.kb-open .chat-wrap { padding-bottom: 8px; }
html.kb-open .chat-sheet, html.kb-open .sheet-panel { padding-bottom: 8px; }
.admin2 .adm-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.admin2 .adm-body > * { flex-shrink: 0; }
/* Watching a match already under way */
.ls-join.watch { background: rgba(30,27,46,.08); color: var(--ink); }
.hud-watch { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: rgba(243,240,234,.14); color: #F3F0EA; font: 800 12px Nunito, sans-serif; }
.confirm-box .cf-sub { text-align: center; font: 600 13px Nunito, sans-serif; color: rgba(243,240,234,.5); margin: -4px 0 10px; }
.confirm-box .cf-title:first-child { font-size: 17px; color: #F3F0EA; }
/* Admin: in-app reel player */
.adm-player-sheet { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.adm-player { width: min(100%, calc(var(--app-h, 100dvh) * .62 * 9 / 16)); aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; background: #000; display: flex; align-items: center; justify-content: center; }
.adm-player video, .adm-player iframe { width: 100%; height: 100%; border: 0; display: block; object-fit: contain; background: #000; }
.adm-acts.center { justify-content: center; }
/* Group chat input bar = ChatView.inputBar (iOS): thin material bar, rounded field, gradient ↑ that dims while empty.
   It sits right on the keyboard and the list above shrinks with it (Instagram). */
.chat-wrap { padding: 0; }
.grp .chat-list { padding: 8px 16px 12px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.chat-bar { flex: none; display: flex; align-items: flex-end; gap: 10px; padding: 8px 12px calc(env(safe-area-inset-bottom) + 8px);
  background: rgba(255,248,238,.72); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); border-top: 1px solid rgba(30,27,46,.06); }
.chat-in { flex: 1; min-width: 0; resize: none; min-height: 46px; max-height: 120px; padding: 12px 16px; border: 0; border-radius: 22px; background: var(--card); color: var(--ink);
  font: inherit; font-size: 16px; line-height: 22px; outline: none; box-shadow: none; caret-color: #E4572E; -webkit-appearance: none; appearance: none; }
.chat-send { width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%; background: var(--brand); color: #fff; font: 900 20px Nunito, sans-serif; cursor: pointer;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .2s; }
.chat-send:disabled { transform: scale(.85); opacity: .5; cursor: default; }
html.kb-open .chat-wrap { padding-bottom: 0; }
html.kb-open .chat-bar { padding-bottom: 8px; }

/* PlayerCard: one row of player plates on top of every game (you included). Gold = on turn. */
.plc-row { display: flex; gap: 8px; flex: none; min-height: 60px; align-items: stretch; padding: 9px 2px 2px; }
.ludo-bar > .plc-row { flex: 1; min-width: 0; }
.plc { position: relative; flex: 1 1 0; min-width: 0; max-width: 220px; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 7px 10px 7px 9px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(36,40,50,.92), rgba(26,29,36,.92)); color: #F3F0EA;
  box-shadow: inset 0 0 0 1px rgba(243,240,234,.08), inset 3px 0 0 var(--pc); opacity: .78;
  transition: transform .35s cubic-bezier(.2,1.5,.4,1), box-shadow .3s, opacity .3s, background .3s; }
.plc.on { opacity: 1; transform: translateY(-1px) scale(1.03); background: linear-gradient(180deg, #2E3240, #232733);
  box-shadow: inset 0 0 0 2px #D4B072, inset 4px 0 0 var(--pc), 0 0 0 1px rgba(233,211,164,.35), 0 6px 18px rgba(212,176,114,.35); }
.plc.me:not(.on) { box-shadow: inset 0 0 0 1px rgba(212,176,114,.35), inset 3px 0 0 var(--pc); }
.pc-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pc-av { flex: none; display: inline-flex; border-radius: 50%; box-shadow: 0 0 0 2px var(--pc); }
.pc-n { flex: 1; min-width: 0; font-weight: 800; font-size: 13px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plc.on .pc-n { color: #E9D3A4; }
.pc-clock { position: absolute; top: -7px; right: -3px; z-index: 2; box-shadow: 0 2px 6px rgba(0,0,0,.45); min-width: 22px; padding: 1px 6px; border-radius: 999px; background: #D4B072; color: #111318; font-weight: 900; font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.pc-clock.low { background: #E5484D; color: #fff; animation: pcPulse .8s ease-in-out infinite; }
.pc-live { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #D4B072; box-shadow: 0 0 8px #D4B072; animation: pcPulse 1.2s ease-in-out infinite; }
@keyframes pcPulse { 50% { transform: scale(1.18); opacity: .75; } }
.pc-bot { display: flex; align-items: baseline; gap: 4px; min-width: 0; }
.pc-s { font-weight: 900; font-size: 19px; line-height: 1; font-variant-numeric: tabular-nums; }
.plc.lead .pc-s { color: #E9D3A4; }
.pc-l { font-size: 11px; font-weight: 700; color: rgba(243,240,234,.62); white-space: nowrap; }
.pc-sub { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: rgba(243,240,234,.62); white-space: nowrap; overflow: hidden; }
.pc-dots { display: inline-flex; gap: 3px; align-self: center; } .pc-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(243,240,234,.14); box-shadow: inset 0 0 0 1.5px var(--pc); }
.pc-dots i.in { background: var(--pc); box-shadow: 0 0 6px var(--pc); }
@media (max-width: 360px) { .pc-l { display: none; } .plc { padding: 6px 8px; } }
.plc-row:has(.plc:nth-child(4)) .pc-l { display: none; }
.pc-short { display: none; }
.plc-row:has(.plc:nth-child(3)) .pc-full { display: none; } .plc-row:has(.plc:nth-child(3)) .pc-short { display: inline; }
.plc-row:has(.plc:nth-child(4)) .pc-av .av { --s: 20px !important; } .plc-row:has(.plc:nth-child(4)) .plc { padding-left: 7px; padding-right: 7px; } .plc-row:has(.plc:nth-child(4)) .pc-top { gap: 4px; }

/* ---- Jedno obaveštenje (toast) za celu aplikaciju ----
   Puna tamna pločica sa zlatnim okvirom: čita se na svakoj pozadini. U igri ga ui.toast() spušta
   tačno ispod zaglavlja i kartica igrača, nikad preko njih. */
.toast { position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 12px); transform: translateX(-50%); z-index: 90;
  width: max-content; max-width: min(92vw, 420px); padding: 12px 18px; border-radius: 16px; text-align: center;
  background: linear-gradient(#2A241B, #17130E); color: #FFF4DC; border: 1.5px solid #D9B36A;
  font: 800 15px/1.3 Nunito, system-ui, sans-serif; letter-spacing: .1px;
  box-shadow: 0 12px 32px rgba(0,0,0,.65), 0 0 0 4px rgba(217,179,106,.14), inset 0 1px 0 rgba(255,236,190,.18);
  pointer-events: none; animation: toast-in .22s cubic-bezier(.2,1.3,.4,1); transition: opacity .2s, transform .2s; }
.toast.out { opacity: 0; transform: translate(-50%, -6px); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -8px) scale(.96); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }

/* ---- Jedno akciono dugme u igrama (Dalje, Pusti štih, Zatvori, Zameni, STOP, ✕, ⌫...) ----
   Sporedne akcije: tamna pločica, zlatni okvir i zlatan natpis, jasno vidljive na tamnoj čoji.
   Glavna akcija (Pošalji, Baci, Spusti) ostaje puna zlatna .dbtn.brass. */
.game-screen .dbtn.surface, .game-screen .gbtn {
  min-height: 46px; padding: 0 18px; border-radius: 14px; border: 1.5px solid #D9B36A;
  background: linear-gradient(#2E2820, #1C1814); color: #F6DFA6;
  font: 900 16px Nunito, system-ui, sans-serif; letter-spacing: .2px; cursor: pointer;
  box-shadow: 0 3px 0 #6E5426, 0 6px 16px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,236,190,.16);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; flex: none; }
.game-screen .dbtn.surface:active, .game-screen .gbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 #6E5426, 0 3px 8px rgba(0,0,0,.45); }
.game-screen .dbtn.surface:disabled, .game-screen .gbtn:disabled { opacity: .45; cursor: default; }
.game-screen .dbtn.surface.compact { min-height: 40px; padding: 8px 12px; font-size: 14px; }
.game-screen .dbtn.brass { border: 1.5px solid #F3DDAE; }
.game-screen .dbtn.brass.compact { min-height: 40px; }
.game-screen .dbtn.geo-stopbtn { min-height: 52px; font-size: 18px; }
.game-screen .dbtn.sn-act { min-height: 46px; font-size: 15px; padding: 0 14px; }

/* ===== 30.11. Store polish: PlayRound Plus mark/card, store hero, best pack, home promo, invite card on top ===== */
.plus-mark { position: relative; flex: none; width: var(--s); height: var(--s); border-radius: calc(var(--s) * .28); display: grid; place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.55), transparent 55%), linear-gradient(145deg, #FFE7A3, #F2C14E 45%, #B9832A);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55), 0 6px 18px rgba(185,131,42,.45); }
.plus-mark .pm-crown { font-size: calc(var(--s) * .52); line-height: 1; filter: drop-shadow(0 2px 2px rgba(90,50,10,.35)); }
.plus-mark .pm-plus { position: absolute; right: calc(var(--s) * -.12); bottom: calc(var(--s) * -.12); width: calc(var(--s) * .44); height: calc(var(--s) * .44); border-radius: 50%;
  display: grid; place-items: center; font-size: calc(var(--s) * .34); font-weight: 900; color: #fff; background: var(--brand); box-shadow: 0 0 0 2px #fff; line-height: 1; }

.plus-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 26px; color: #F7EFE0;
  background: radial-gradient(120% 80% at 100% 0%, rgba(242,193,78,.28), transparent 60%), linear-gradient(160deg, #2A1F33, #1A1420 60%, #120E16);
  box-shadow: inset 0 0 0 1.5px rgba(242,193,78,.55), 0 14px 30px rgba(30,20,40,.35); font-weight: 700; font-size: 15px; }
.plc-glow { position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,214,120,.35), transparent 65%); animation: plcGlow 6s ease-in-out infinite; pointer-events: none; }
@keyframes plcGlow { 50% { transform: translate(-12%, 10%) scale(1.1); opacity: .7; } }
.plc-head { position: relative; display: flex; align-items: center; gap: 14px; }
.plc-kicker { font-size: 11px; font-weight: 900; letter-spacing: 1.5px; color: #F2C14E; }
.plc-title { font-weight: 900; font-size: 24px; line-height: 1.1; background: linear-gradient(90deg, #FFF1C7, #F2C14E); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plc-sub { font-size: 13px; font-weight: 600; color: rgba(247,239,224,.7); }
.plc-perks { position: relative; display: flex; flex-direction: column; gap: 10px; }
.plc-perk { display: flex; gap: 12px; align-items: center; } .plc-perk b { display: block; font-weight: 900; font-size: 15px; } .plc-perk small { display: block; font-weight: 600; font-size: 12.5px; color: rgba(247,239,224,.66); }
.plc-ic { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; background: rgba(242,193,78,.14); box-shadow: inset 0 0 0 1px rgba(242,193,78,.35); }
.plc-buy { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plc-opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 8px 12px; border: 0; border-radius: 18px; cursor: pointer; font: inherit; color: #F7EFE0;
  background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1.5px rgba(247,239,224,.18); transition: transform .1s; }
.plc-opt:active { transform: scale(.97); }
.plc-opt.best { color: #2A1A08; background: linear-gradient(160deg, #FFE7A3, #F2C14E 55%, #D59A35); box-shadow: 0 6px 18px rgba(242,193,78,.4); }
.plc-per { font-weight: 800; font-size: 13px; opacity: .85; } .plc-price { font-weight: 900; font-size: 22px; } .plc-opt small { font-weight: 700; font-size: 11.5px; opacity: .75; }
.plc-save { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 3px 9px; border-radius: 999px; font-weight: 900; font-size: 11px; color: #fff; background: var(--brand); box-shadow: 0 3px 8px rgba(168,52,26,.4); }
.plc-note { position: relative; font-weight: 600; font-size: 12px; color: rgba(247,239,224,.62); }
.plus-card .ok-pill { position: relative; }

.store-hero { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 26px; color: #fff; background: var(--brand); box-shadow: 0 12px 26px rgba(215,38,61,.28); position: relative; overflow: hidden; }
.store-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.25) 45%, transparent 60%); transform: translateX(-100%); animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.sh-emoji { font-size: 40px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.25)); } .sh-k { font-weight: 900; font-size: 11px; letter-spacing: 1.5px; opacity: .85; }
.sh-t { font-weight: 900; font-size: 22px; line-height: 1.15; } .sh-s { font-weight: 600; font-size: 13px; opacity: .9; }
.pr-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--surface-hi); }
.pr-head { display: flex; align-items: center; gap: 12px; }
.pack-row { position: relative; } .pack-row.best { box-shadow: inset 0 0 0 2px var(--brass), 0 8px 22px rgba(228,87,46,.18); }
.best-tag { position: absolute; top: -10px; right: 16px; padding: 3px 10px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 900; font-size: 11px; }
.store-body .pc-buy .dbtn small { font-weight: 800; font-size: 14px; opacity: .95; }

/* Home promo carousel */
.promo { display: flex; flex-direction: column; gap: 8px; }
.promo-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 24px; }
.promo-track::-webkit-scrollbar { display: none; }
.promo-slide { position: relative; overflow: hidden; flex: 0 0 100%; scroll-snap-align: start; display: flex; align-items: center; gap: 14px; min-height: 118px; padding: 16px; border: 0; border-radius: 24px;
  text-align: left; cursor: pointer; font: inherit; color: #F7EFE0; background: linear-gradient(150deg, #2A1F33, #120E16); box-shadow: inset 0 0 0 1.5px rgba(242,193,78,.5); }
.promo-slide.pr-pack { background: radial-gradient(90% 90% at 0% 0%, rgba(255,122,77,.45), transparent 60%), linear-gradient(150deg, #3A1A14, #160C0A); }
.promo-slide.pr-slots { background: radial-gradient(90% 90% at 100% 100%, rgba(67,181,129,.35), transparent 60%), linear-gradient(150deg, #132A24, #0B1512); }
.promo-shine { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.14) 48%, transparent 60%); transform: translateX(-100%); animation: shine 5s ease-in-out infinite; pointer-events: none; }
.promo-art { flex: none; display: grid; place-items: center; width: 70px; } .promo-emoji { font-size: 52px; line-height: 1; filter: drop-shadow(0 4px 6px rgba(0,0,0,.4)); animation: bob 3s ease-in-out infinite; }
.promo-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.promo-txt small { font-weight: 900; font-size: 10.5px; letter-spacing: 1.4px; color: #F2C14E; }
.promo-t { font-weight: 900; font-size: 19px; line-height: 1.15; } .promo-d { font-weight: 600; font-size: 13px; color: rgba(247,239,224,.72); }
.promo-cta { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.promo-price { padding: 6px 11px; border-radius: 999px; font-weight: 900; font-size: 15px; white-space: nowrap; color: #2A1A08; background: linear-gradient(160deg, #FFE7A3, #F2C14E 55%, #D59A35); box-shadow: 0 4px 12px rgba(242,193,78,.35); }
.promo-go { font-weight: 800; font-size: 12px; color: rgba(247,239,224,.8); }
.promo-dots { display: flex; justify-content: center; gap: 6px; } .promo-dots i { width: 7px; height: 7px; border-radius: 999px; background: rgba(30,27,46,.18); transition: width .25s, background .25s; cursor: pointer; }
.promo-dots i.on { width: 20px; background: var(--brass); }
@media (max-width: 380px) { .promo-art { width: 54px; } .promo-emoji { font-size: 42px; } .promo-slide .plus-mark { --s: 50px !important; } .promo-t { font-size: 17px; } }

/* Group: invite card on top, unlock seats when full */

/* Profile: back button on top, avatar + name in one card, avatar picker in its own sheet, autosave. */
.pf-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin: -4px 0 2px; }
.pf-head b { font: 900 18px Nunito; text-align: center; }
.pf-back { justify-self: start; border: 0; background: none; color: var(--orange); font: 800 16px Nunito; padding: 8px 4px; cursor: pointer; }
.pf-id { display: flex; align-items: center; gap: 14px; padding: 14px; flex-wrap: wrap; }
.pf-av { position: relative; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
.pf-edit { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; color: #fff; background: #E4572E; box-shadow: 0 0 0 3px var(--card, #fff); }
.pf-txt { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 4px; }
.pf-name { margin: 0; font-weight: 800; }
.pf-change { flex-basis: 100%; border: 0; border-radius: 14px; padding: 10px; background: rgba(228,87,46,.12); color: #E4572E; font: 800 14px Nunito; cursor: pointer; }
.av-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; justify-items: center; padding: 4px 0 8px; }
.av-pick { border: 0; background: none; padding: 0; border-radius: 50%; cursor: pointer; transition: transform .15s; }
.av-pick:active { transform: scale(.92); }


/* Keyboard shortcuts sheet (computer) */
.keys-box { display: flex; flex-direction: column; gap: 10px; padding-bottom: 8px; color: #F3F0EA; }
.keys-box .cf-title { font-size: 17px; color: #F3F0EA; }
.keys-list { display: flex; flex-direction: column; gap: 7px; margin: 0 4px 6px; }
.keys-row { display: flex; align-items: center; gap: 14px; font: 700 14px Nunito, sans-serif; }
.keys-row kbd { flex: none; min-width: 74px; text-align: center; padding: 5px 9px; border-radius: 9px; font: 800 13px Nunito, sans-serif; color: #E9D3A4;
  background: linear-gradient(#2C303A, #1F222A); box-shadow: inset 0 -2px 0 rgba(0,0,0,.45), inset 0 0 0 1px rgba(233,211,164,.28); }

/* Admin: Pošta (support@playroundgames.com) */
.admin2 .tabbar { overflow-x: auto; scrollbar-width: none; } .admin2 .tabbar::-webkit-scrollbar { display: none; }
.admin2 .tabbar button { flex: 1 0 auto; font-size: 14px; padding: 10px 10px; }
.mail-bar, .mail-head { gap: 12px; }
.mail-subj { font-weight: 900; font-size: 19px; line-height: 1.2; word-break: break-word; }
.mail-seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.mail-seg button { flex: 1; border: 0; background: none; padding: 9px; border-radius: 999px; font: 800 14px Nunito, sans-serif; color: var(--muted); cursor: pointer; }
.mail-seg button.on { background: var(--brand); color: #fff; }
.mail-row { cursor: pointer; text-align: left; align-items: flex-start; }
.mail-av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 17px; color: #fff; background: linear-gradient(135deg, #dba84f, #a8772c); }
.mail-mid { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mail-top { display: flex; gap: 8px; align-items: baseline; }
.mail-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-row.unread .gs-name, .mail-row.unread .mail-line:not(.mut) { font-weight: 900; }
.mail-row:not(.unread) .mail-line:not(.mut) { font-weight: 600; }
.mail-dot { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--brand); }
.mail-msg { gap: 12px; } .mail-msg.out { box-shadow: inset 3px 0 0 #dba84f, inset 0 0 0 1px var(--line); }
.mail-when { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.mail-plain { white-space: pre-wrap; word-break: break-word; line-height: 1.5; }
.mail-html { width: 100%; min-height: 80px; border: 0; border-radius: 12px; background: #fff; display: block; }
.mail-files { display: flex; flex-wrap: wrap; gap: 6px; } .mail-files:empty { display: none; }
.mail-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 10px; border: 0; border-radius: 10px; background: rgba(30,27,46,.06); font: 700 13px Nunito, sans-serif; color: var(--ink); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-chip button { border: 0; background: none; font-size: 16px; color: var(--muted); cursor: pointer; padding: 0 2px; }
.mail-compose { display: flex; flex-direction: column; gap: 10px; }
.mail-lbl { width: 52px; flex: none; }
.mail-text { width: 100%; min-height: 110px; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: 16px; color: var(--ink); resize: vertical; outline: none; box-sizing: border-box; }
.mail-tools .dbtn { font-size: 13px; padding: 8px 12px; }
