:root {
  /* Sade tema: koyu antrasit zemin, zümrüt çuha, yumuşak altın vurgu */
  --bg1: #121519;
  --bg2: #08090b;
  --surface: #14171c;
  --surface2: #1b1f26;
  --gold: #e9bc5a;
  --gold2: #c99a3a;
  --text: #eef1f5;
  --muted: #8c96a3;
  --panel: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.09);
  --red: #e5484d;
  --green: #30a46c;
  --blue: #3e7bfa;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  color: var(--text);
  background: radial-gradient(ellipse at 50% 30%, #3a1f6b 0%, var(--bg1) 45%, var(--bg2) 100%);
  overflow: hidden;
}
/* masa ekranı: loş kumarhane salonu */
body:has(#game:not(.hidden)) {
  background:
    radial-gradient(ellipse 55% 50% at 50% 55%, rgba(255, 210, 150, .13), transparent 72%),
    repeating-linear-gradient(45deg, rgba(120, 20, 30, .07) 0 2px, transparent 2px 22px),
    repeating-linear-gradient(-45deg, rgba(120, 20, 30, .07) 0 2px, transparent 2px 22px),
    radial-gradient(ellipse at 50% 60%, #2a1418 0%, #160b10 55%, #07050a 100%);
}
.hidden { display: none !important; }
.s-red { color: var(--red); }

/* ---------- butonlar ---------- */
.btn {
  font: inherit; font-weight: 700; color: var(--text); cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; padding: 0.55em 1.1em;
  background: linear-gradient(#3b2a5e, #271a42);
  box-shadow: 0 2px 0 rgba(0,0,0,.35);
  transition: transform .08s, filter .15s;
}
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; filter: none; }
.btn.small { padding: .4em .8em; font-size: .85em; }
.btn.gold { background: linear-gradient(#ffd866, var(--gold2)); color: #3a2400; border-color: #ffe08a; }
.btn.red { background: linear-gradient(#e2434f, #9d1525); border-color: #f0707b; }
.btn.green { background: linear-gradient(#3fd486, #198a4d); border-color: #79e8ae; }
.btn.blue { background: linear-gradient(#4c8df0, #2557b8); border-color: #86b2f7; }

/* ---------- giriş ---------- */
.screen { height: 100%; }
#join { display: grid; place-items: center; }
.join-card {
  text-align: center; padding: 48px 56px; border-radius: 24px;
  background: rgba(20, 10, 40, .7); border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.logo { font-size: 44px; font-weight: 800; letter-spacing: -.01em; color: var(--gold); text-shadow: 0 3px 0 #7a4a00, 0 8px 24px rgba(245,197,66,.35); }
.sub { color: var(--muted); margin: 10px 0 28px; }
#authForm { display: flex; flex-direction: column; gap: 10px; width: min(320px, 80vw); margin: 0 auto; }
#authForm input, #authForm .btn { width: 100%; font-size: 17px; }
.auth-tabs { display: flex; gap: 6px; justify-content: center; margin-bottom: 16px; }
.auth-tab { font: inherit; font-weight: 700; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: .4em 1.1em; cursor: pointer; }
.auth-tab.active { color: #3a2400; background: linear-gradient(#ffd866, var(--gold2)); border-color: #ffe08a; }
.auth-hint { margin-top: 14px; }
input {
  font: inherit; color: var(--text); background: rgba(0,0,0,.35);
  border: 1px solid var(--line); border-radius: 10px; padding: .6em .9em; outline: none;
}
input:focus { border-color: var(--gold); }

/* ---------- oyun yerleşimi ---------- */
/* minmax(0, 1fr): içerik (ör. uzun tek satırlık bilgi) sayfayı ekrandan geniş yapamaz. Aksi hâlde telefon tarayıcısı
   taşan sayfayı sığdırmak için uzaklaştırır ve her şey küçük görünür. */
#game { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: 100%; height: 100dvh; }
#game > * { min-width: 0; }
.topbar {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 16px;
  padding: 10px 18px; background: rgba(8,5,10,.55); border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(6px); position: relative; z-index: 10;
}
.brand { font-weight: 800; color: var(--gold); font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info { flex: 1; min-width: 0; color: var(--muted); font-size: 14px; display: flex; gap: 14px; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
.info b { color: var(--text); }
.tb-actions { display: flex; gap: 8px; flex-wrap: nowrap; justify-content: flex-end; flex: none; }
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; }
.table-area { flex: 1; display: grid; place-items: center; padding: 3% 4% 1%; min-height: 0; position: relative; }
/* arka plandaki bulanık salon ışıkları ve kenar kararması */
.table-area::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; filter: blur(3px); opacity: .55;
  background:
    radial-gradient(circle at 6% 14%, rgba(255,190,110,.55) 0 .5%, transparent 3%),
    radial-gradient(circle at 15% 8%, rgba(255,140,90,.45) 0 .4%, transparent 2.5%),
    radial-gradient(circle at 88% 10%, rgba(255,200,120,.5) 0 .5%, transparent 3%),
    radial-gradient(circle at 95% 22%, rgba(120,160,255,.35) 0 .4%, transparent 2.5%),
    radial-gradient(circle at 4% 78%, rgba(255,120,120,.3) 0 .4%, transparent 2.5%),
    radial-gradient(circle at 96% 84%, rgba(255,190,110,.35) 0 .5%, transparent 3%);
}
.table-area::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 55%, rgba(0,0,0,.65) 100%);
}

/* ---------- masa ---------- */
.table { position: relative; width: 100%; aspect-ratio: 2.05 / 1; font-size: 12px; margin-top: 1em; }
.table-shadow {
  position: absolute; inset: 10% 7% 1% 7%; border-radius: 999px; z-index: 0;
  background: rgba(0,0,0,.85); filter: blur(2.2em); transform: translateY(2.2em);
}
/* dolgulu deri kenar + dikiş */
.rail {
  position: absolute; inset: 7% 6%; z-index: 1; border-radius: 999px; padding: 2.1em;
  background:
    radial-gradient(ellipse 70% 40% at 50% 8%, rgba(255,255,255,.14), transparent 70%),
    radial-gradient(ellipse at 50% 50%, #3d2216 0%, #2b170e 60%, #1a0c07 100%);
  box-shadow:
    inset 0 .35em .5em rgba(255,255,255,.12),
    inset 0 -.6em 1em rgba(0,0,0,.65),
    0 1.2em 2.5em rgba(0,0,0,.6);
}
.rail::before {
  content: ""; position: absolute; inset: .75em; border-radius: 999px; pointer-events: none;
  border: .12em dashed rgba(255, 226, 190, .28);
}
/* cilalı ahşap şerit */
.wood {
  width: 100%; height: 100%; border-radius: 999px; padding: .6em;
  background:
    repeating-linear-gradient(100deg, rgba(0,0,0,.08) 0 .3em, transparent .3em 1.1em),
    linear-gradient(160deg, #d79a58 0%, #9a5f2c 35%, #c1843f 55%, #6e3f19 100%);
  box-shadow: inset 0 0 0 .1em rgba(0,0,0,.45), inset 0 .15em .2em rgba(255,255,255,.35);
}
/* dokulu çuha */
.felt {
  position: relative; width: 100%; height: 100%; border-radius: 999px;
  /* düz, dokusuz çuha: ortada ışık alan açık yeşilden kenarlara doğru yumuşakça koyulaşan geçiş */
  background:
    radial-gradient(ellipse 55% 50% at 50% 45%, rgba(255,255,255,.07), transparent 70%),
    radial-gradient(ellipse 75% 70% at 50% 45%, #2fae68 0%, #23924f 35%, #187a40 62%, #0f5f31 85%, #0a4a26 100%);
  box-shadow: inset 0 0 3.5em rgba(0,0,0,.6), inset 0 .5em 1em rgba(0,0,0,.55);
}
.bet-line {
  position: absolute; inset: 13% 9%; border-radius: 999px; pointer-events: none;
  border: .14em solid rgba(255,255,255,.13);
  box-shadow: 0 0 0 .5em rgba(255,255,255,.025);
}
.center {
  position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .8em; width: 60%;
}
.pot {
  display: flex; align-items: flex-end; gap: .5em; min-height: 2.6em;
  font-weight: 800; font-size: 1.2em; color: var(--gold);
}
.pot span { background: rgba(0,0,0,.5); border-radius: 999px; padding: .2em .9em; text-shadow: 0 1px 2px #000; }
.pot:empty { visibility: hidden; }
.board { display: flex; gap: .55em; min-height: 8.8em; }
.banner {
  font-weight: 800; font-size: 1.2em; text-align: center; min-height: 1.4em;
  text-shadow: 0 2px 4px rgba(0,0,0,.6);
}
.banner .win { color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.banner .muted { color: rgba(255,255,255,.75); font-weight: 600; }

/* ---------- kartlar ---------- */
.card {
  --w: 4.4em;
  width: var(--w); height: calc(var(--w) * 1.4);
  position: relative; display: inline-block; flex: none; user-select: none;
  perspective: 40em;
}
.card .ci { position: absolute; inset: 0; transform-style: preserve-3d; }
.card.down .ci { transform: rotateY(180deg); }
.card .cf {
  position: absolute; inset: 0; border-radius: calc(var(--w) * .064); overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 .2em .55em rgba(0,0,0,.45);
}
.card .front, .card .back { background: transparent; }
.card .back { transform: rotateY(180deg); }
.cface { display: block; width: 100%; height: 100%; }
.board .card { --w: 6.2em; }
.card.hl { translate: none; }
.card.hl .cf { box-shadow: 0 0 0 .2em var(--gold), 0 0 1.2em rgba(245,197,66,.85); }
.card.dim .front { filter: brightness(.6); }

/* ---------- duyuru & deste ---------- */
.banner .ann {
  display: inline-block; background: rgba(255,255,255,.93); color: #1f1533; text-shadow: none;
  padding: .15em .9em; border-radius: 1em; box-shadow: 0 .3em .8em rgba(0,0,0,.4); animation: pop .25s ease-out;
}
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.deck { position: absolute; left: 50%; top: 13.5%; z-index: 2; width: 2.6em; height: 3.6em; transform: translateX(-50%) rotate(-8deg); }
.deck i {
  position: absolute; inset: 0; border-radius: .3em; border: .15em solid #fbf7ee;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.13) 0 .12em, transparent .12em .35em), linear-gradient(160deg, #c22a40, #6b0a19);
  box-shadow: 0 .1em .3em rgba(0,0,0,.5);
}
.deck i:nth-child(2) { transform: translate(.12em, -.12em); }
.deck i:nth-child(3) { transform: translate(.24em, -.24em); }
.fly-chip {
  position: fixed; z-index: 40; width: 1.4em; height: 1.4em; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #fff 0 28%, transparent 30%), repeating-conic-gradient(#d8263a 0 30deg, #fff 30deg 45deg);
  border: .1em solid #7a0f1a; box-shadow: 0 .15em .3em rgba(0,0,0,.5);
}

/* ---------- koltuklar ----------
   Oyuncu kutusu sabit ölçülüdür: kamera açılsa, isim uzun olsa, etiket çıksa da boyutu değişmez.
   Tüm etiketler (son hamle, el adı, kazanç, süre) kutunun İÇİNDEDİR; hiçbir şey dışarı taşmaz.
   Kartlar kutunun üstünde, kutuya değmeden durur. */
.seat {
  position: absolute; transform: translate(-50%, -50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; width: 14em;
}
.seat .hole { display: flex; gap: .25em; height: 5.1em; align-items: flex-end; justify-content: center; margin-bottom: .3em; }
.seat .hole .card { --w: 3.6em; }
.seat.me .hole { height: 7.4em; }
.seat.me .hole .card { --w: 5.2em; }
.seat .hole .card.hl { translate: none; }
.plate {
  position: relative; display: flex; align-items: center; gap: .55em;
  width: 100%; height: 6.2em; padding: .35em .55em; overflow: hidden;
  background: linear-gradient(rgba(34,28,40,.94), rgba(14,11,18,.96)); border: .12em solid rgba(255,255,255,.14);
  border-radius: 1em; box-shadow: 0 .5em 1.2em rgba(0,0,0,.6), inset 0 .1em 0 rgba(255,255,255,.08);
}
.avatar {
  position: relative; overflow: hidden; flex: none;
  width: 5.4em; height: 5.4em; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 1em; color: #fff; border: .15em solid rgba(255,255,255,.5);
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.avatar > span { font-size: 1.6em; } /* harf avatarı da büyük alanı doldursun */
.pinfo { min-width: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: .08em; line-height: 1.2; }
.pname, .pchips, .pline { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pname { font-weight: 700; font-size: 1.05em; }
.pchips { color: var(--gold); font-weight: 800; font-size: 1em; }
.pchips::before { content: "● "; color: #e8a516; font-size: .8em; }
.pchips .won { color: #7af0a8; margin-left: .3em; }
.pline { height: 1.3em; font-size: .85em; color: var(--muted); }
.pline.hand { color: var(--gold); font-weight: 700; }
.tag { display: inline-block; border-radius: .5em; padding: 0 .5em; font-weight: 700; color: #fff; background: #4c3b73; }
.tag.fold { background: #555; }
.tag.raise, .tag.bet { background: #c77a12; }
.tag.call, .tag.check { background: #2466c2; }
.tag.allin { background: var(--red); }
.tag.sb, .tag.bb { background: #5b4a86; }
/* süre çubuğu kutunun alt kenarının içinde */
.timer { position: absolute; left: .7em; right: .7em; bottom: .18em; height: .28em; border-radius: 1em; background: rgba(0,0,0,.5); overflow: hidden; visibility: hidden; }
.timer i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #39d98a, #f5c542); border-radius: 1em; }
.timer i.low { background: var(--red); }
.seat.turn .timer { visibility: visible; }
.seat.turn .plate { border-color: var(--gold); box-shadow: 0 0 0 .2em rgba(245,197,66,.35), 0 0 1.6em rgba(245,197,66,.5); }
.seat.folded .plate, .seat.out .plate { opacity: .5; }
.seat.folded .hole { opacity: .35; }
.seat.winner .plate { border-color: var(--gold); animation: glow 1s ease-in-out infinite alternate; }
@keyframes glow { from { box-shadow: 0 0 .6em rgba(245,197,66,.4); } to { box-shadow: 0 0 2.2em rgba(245,197,66,.95); } }
.seat.empty .plate { justify-content: center; opacity: .35; border-style: dashed; background: rgba(0,0,0,.25); }
.seat.empty .status { font-size: .95em; color: var(--muted); }
.seat.empty.clickable .plate { opacity: .8; cursor: pointer; }
.seat.empty.clickable .plate:hover { border-color: var(--gold); }

/* ---------- bahis çipleri & krupiye düğmesi ---------- */
.bet {
  position: absolute; transform: translate(-50%, -50%); display: flex; align-items: flex-end; gap: .35em;
  white-space: nowrap; z-index: 4; font-weight: 800; font-size: 1.05em;
}
.bet .amt { background: rgba(0,0,0,.55); border-radius: 999px; padding: .1em .6em; text-shadow: 0 1px 2px #000; }
/* gerçek çip yığınları (hafif açıdan görünen çipler) */
.stacks { display: flex; align-items: flex-end; gap: .15em; }
.stack { position: relative; width: 1.7em; }
.pchip {
  position: absolute; left: 0; width: 1.7em; height: 1em; border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 50%, var(--c) 0 33%, rgba(255,255,255,.9) 34% 39%, transparent 40%),
    repeating-conic-gradient(from 10deg, var(--c) 0 22deg, #f4f1ea 22deg 34deg);
  box-shadow: 0 .16em 0 color-mix(in srgb, var(--c) 65%, #000), 0 .22em .3em rgba(0,0,0,.5);
}
.dealer span { font-size: .42em; letter-spacing: .08em; }
.dealer {
  position: absolute; transform: translate(-50%, -50%); z-index: 4;
  width: 2.6em; height: 2.6em; border-radius: 50%; color: #1a1a1a;
  background: radial-gradient(circle at 40% 35%, #ffffff, #e6e2d8 70%, #c9c3b6);
  display: grid; place-items: center; font-weight: 800; font-size: 1em;
  box-shadow: 0 .18em 0 #9c968a, 0 .3em .5em rgba(0,0,0,.55); border: .12em solid #fff;
}

/* ---------- hamle çubuğu ---------- */
.actionbar {
  box-sizing: border-box; align-content: center;
  min-height: 92px; padding: 12px 20px; display: flex; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.45));
  flex-wrap: wrap;
}
.actionbar .msg { color: var(--muted); font-size: 15px; }
.actionbar .msg b { color: var(--text); }
.actionbar .big { font-size: 17px; min-width: 130px; padding: .7em 1.2em; }
.raise-box { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.35); padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); }
.presets { display: flex; gap: 6px; }
.presets .btn { padding: .35em .6em; font-size: 13px; }
.raise-box input[type=range] { width: 170px; accent-color: var(--gold); }
.raise-box input[type=number] { width: 100px; }
.my-hand { color: var(--gold); font-weight: 700; font-size: 15px; }

/* ---------- yan panel ---------- */
/* ---------- modal, toast ---------- */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; z-index: 50; }
.modal-card { background: #21163a; border: 1px solid var(--line); border-radius: 16px; padding: 24px 28px; width: 340px; display: flex; flex-direction: column; gap: 12px; }
.modal-card h3 { margin: 0 0 4px; color: var(--gold); }
.modal-card label { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.modal-card input { width: 130px; }
.modal-card .row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.hint { color: var(--muted); font-size: 12.5px; margin: 0; }
.toast {
  position: fixed; left: 50%; top: 70px; transform: translateX(-50%); z-index: 60;
  background: #b3283a; padding: 10px 18px; border-radius: 10px; font-weight: 700; box-shadow: 0 8px 20px rgba(0,0,0,.4);
}
.conn { position: fixed; left: 0; right: 0; top: 0; background: #b3283a; text-align: center; padding: 6px; z-index: 70; font-weight: 700; }

@media (max-width: 900px) {
  .brand { display: none; }
}

/* ---------- lobi ---------- */
#lobby { display: flex; flex-direction: column; }
.lobby-body { padding: 28px 36px; overflow-y: auto; }
.lobby-body h2 { margin: 0 0 4px; color: var(--gold); }
.table-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 18px; }
.tcard {
  background: linear-gradient(160deg, rgba(47,160,90,.22), rgba(0,0,0,.35)); border: 1px solid var(--line);
  border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.tc-head { display: flex; justify-content: space-between; align-items: center; font-size: 18px; }
.badge { font-size: 12px; padding: 3px 9px; border-radius: 99px; background: rgba(255,255,255,.12); color: var(--muted); font-weight: 700; }
.badge.live { background: rgba(47,191,113,.25); color: #7af0b0; }
.tc-dots { display: flex; gap: 6px; }
.tc-dots i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); }
.tc-dots i.on { background: var(--gold); border-color: var(--gold); }
.tc-info { color: var(--muted); font-size: 13.5px; }
.tc-names { font-size: 13.5px; min-height: 1.2em; }
.tc-btns { display: flex; gap: 8px; margin-top: 4px; }
.tc-btns .btn { flex: 1; }

/* ---------- görüntülü sohbet ---------- */
.media-btns { display: flex; gap: 6px; }
.btn.media { font-size: 16px; padding: .3em .6em; }
.btn.media.off { background: linear-gradient(#7a1f2a, #4d121a); border-color: #b3283a; }
.avatar { position: relative; overflow: hidden; }
.avatar.has-video { border-radius: .8em; background: #000 !important; }
.avatar.has-video > span { display: none; }
.vid { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.vid.mirror { transform: scaleX(-1); }
.avatar .vid { position: absolute; inset: 0; }
.muted-ic { position: absolute; right: .1em; bottom: .1em; font-style: normal; font-size: .7em; z-index: 2; line-height: 1; }
.avatar.speaking, .spec.speaking { box-shadow: 0 0 0 .2em #39d98a, 0 0 1em rgba(57,217,138,.8); border-color: #39d98a; }
.spec-strip { position: absolute; top: 12px; left: 14px; z-index: 20; display: flex; flex-direction: column; gap: 8px; max-height: 70%; overflow-y: auto; }
.spec-strip:empty { display: none; }
.spec { position: relative; width: 120px; height: 90px; border-radius: 10px; overflow: hidden; background: #241a3d; border: 2px solid var(--line); display: grid; place-items: center; }
.spec .vid { position: absolute; inset: 0; }
.spec-name { position: relative; z-index: 1; font-size: 12px; font-weight: 700; background: rgba(0,0,0,.55); padding: 1px 6px; border-radius: 6px; align-self: end; margin-bottom: 4px; }
.media-holder { position: fixed; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; left: -10px; top: -10px; }

/* =================================================================
   Duyarlı tasarım: telefon, tablet, bilgisayar
   ================================================================= */
button, .btn, input[type=range] { touch-action: manipulation; }
#lobby { height: 100dvh; }
.topbar { padding-top: max(10px, env(safe-area-inset-top)); padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
.actionbar { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.modal-card { width: min(340px, 92vw); }

/* dikey (telefon) masa */
.table.portrait { aspect-ratio: 1 / 1.45; }
/* yatay masada alttaki (senin) kartların masa kenarından taşan kısmı için pay */
.table:not(.portrait) { margin-top: 3.5em; margin-bottom: 5.5em; }
.table.portrait .rail { inset: 7% 14%; }
.table.portrait .center { width: 50%; top: 50%; }
.table.portrait .seat { width: 12.8em; }
.banner { max-width: 100%; }
.table.portrait .board .card { --w: 5em; }
.table.portrait .bet-line { inset: 9% 12%; }
.table.portrait .bet { flex-direction: column; align-items: center; gap: .2em; }
.table.portrait .table-shadow { inset: 9% 15% 2% 15%; }

/* dokunmatik ekranlar: büyük dokunma alanları, klavye ipuçları gizli */
@media (hover: none), (pointer: coarse) {
  .btn { min-height: 40px; }
  .raise-box input[type=range] { height: 30px; }
}

/* telefon ve küçük tabletler */
@media (max-width: 720px) {
  .topbar { gap: 8px; padding-top: max(6px, env(safe-area-inset-top)); padding-bottom: 6px; flex-wrap: wrap; }
  .topbar .lbl { display: none; }
  .topbar .brand { font-size: 16px; display: block; flex: 1 1 auto; min-width: 0; }
  .info { order: 9; flex-basis: 100%; font-size: 12px; gap: 10px; }
  .tb-actions { gap: 4px; margin-left: auto; }
  .media-btns { gap: 4px; flex: none; }
  .topbar .btn.small { min-width: 34px; padding: .35em .5em; }
  .table-area { padding: 1% 1% 0; }
  .actionbar { gap: 8px; padding: 8px 10px max(8px, env(safe-area-inset-bottom)); min-height: 0; }
  .actionbar .msg { font-size: 13px; text-align: center; }
  .actionbar .big { flex: 1 1 40%; min-width: 0; font-size: 16px; padding: .75em .5em; }
  .my-hand { flex-basis: 100%; text-align: center; font-size: 14px; }
  .raise-box { flex: 1 1 100%; flex-wrap: wrap; gap: 8px; padding: 8px; }
  .presets { flex: 1 1 100%; }
  .presets .btn { flex: 1; font-size: 13px; }
  .raise-box input[type=range] { flex: 1 1 auto; width: auto; min-width: 0; }
  .raise-box input[type=number] { width: 90px; }
  .raise-box #rBtn { flex: 1 1 100%; }
  .join-card { padding: 28px 18px; width: min(420px, 92vw); }
  .logo { font-size: 30px; }
  .lobby-body { padding: 16px; }
  .table-list { grid-template-columns: 1fr; gap: 12px; }
  .toast { top: auto; bottom: 90px; max-width: 92vw; text-align: center; }
}

/* ---------- lobi: hesap kartı ve sıralama ---------- */
.lobby-top { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 26px; align-items: stretch; }
.lobby-top .table-list { display: block; }
.lobby-top .tcard { height: 100%; box-sizing: border-box; }
.acct-card, .leader-card { background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.ac-label { color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.ac-chips { color: var(--gold); font-size: 34px; font-weight: 800; }
.ac-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 14px; margin-top: 6px; }
.ac-stats b { color: var(--text); }
.ac-note { margin-top: 10px; font-size: 13.5px; color: #ffd27a; }
.lb-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.lb-row b { color: var(--gold); }
.lb-row.me span { color: var(--gold); font-weight: 700; }
@media (max-width: 720px) { .lobby-top { grid-template-columns: 1fr; } .ac-chips { font-size: 28px; } }

/* ---------- hamle düğmeleri: üstte hamle, altta miktar ---------- */
.actionbar .big { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; }
.actionbar .big small { font-size: .78em; font-weight: 800; opacity: .95; text-transform: none; letter-spacing: 0; margin-top: .1em; }
.actionbar .big { position: relative; }
.my-hand { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.15; }
.my-hand small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
/* ön seçim kutuları */
.pre { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pre-opt {
  font: inherit; font-weight: 700; font-size: 14px; color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; padding: .5em .9em; border-radius: 10px;
  background: rgba(0,0,0,.35); border: 1px solid var(--line);
}
.pre-opt i { width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--muted); display: inline-block; }
.pre-opt.on { border-color: var(--gold); background: rgba(245,197,66,.14); }
.pre-opt.on i { background: var(--gold); border-color: var(--gold); box-shadow: inset 0 0 0 2px #2a1f00; }
@media (max-width: 720px) { .pre { flex: 1 1 100%; } .pre-opt { flex: 1; justify-content: center; font-size: 13px; padding: .55em .4em; } }

/* ---------- kazanma kutlaması ---------- */
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 80; }
.win-splash {
  position: fixed; left: 50%; top: 16%; z-index: 81; pointer-events: none; text-align: center;
  padding: 18px 38px 16px; border-radius: 22px; min-width: min(420px, 86vw); max-width: 92vw;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,216,102,.35), transparent 70%), linear-gradient(rgba(36,22,8,.94), rgba(18,10,4,.94));
  border: 2px solid #f5c542; box-shadow: 0 0 0 4px rgba(245,197,66,.18), 0 0 60px rgba(245,197,66,.55), 0 20px 50px rgba(0,0,0,.6);
  opacity: 0; transform: translate(-50%, -10px) scale(.6); visibility: hidden;
}
.win-splash.show { visibility: visible; animation: splash-in .55s cubic-bezier(.2,1.4,.35,1) forwards, splash-out .5s ease-in 2.7s forwards; }
@keyframes splash-in { from { opacity: 0; transform: translate(-50%, -10px) scale(.6); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes splash-out { to { opacity: 0; transform: translate(-50%, -16px) scale(.92); } }
.ws-title { font-size: clamp(30px, 6vw, 52px); font-weight: 800; color: #ffd866; letter-spacing: .02em;
  text-shadow: 0 3px 0 #7a4a00, 0 0 24px rgba(245,197,66,.8); animation: shine 1.2s ease-in-out infinite alternate; }
.ws-amount { font-size: clamp(24px, 4.5vw, 38px); font-weight: 800; color: #7af0a8; text-shadow: 0 2px 0 #0b3d22; margin-top: 2px; }
.ws-hand { font-size: clamp(14px, 2.2vw, 18px); font-weight: 700; color: #fff; opacity: .9; margin-top: 4px; }
@keyframes shine { from { filter: brightness(1); } to { filter: brightness(1.25); } }
@media (prefers-reduced-motion: reduce) { .win-splash.show { animation: none; opacity: 1; transform: translate(-50%, 0); } .ws-title { animation: none; } }

/* orta boy ekranlar: üst çubuk tek satıra sığsın diye düğmelerde sadece simge (yazı üzerine gelince görünür) */
@media (max-width: 1100px) {
  .topbar .lbl { display: none; }
  .topbar { gap: 10px; }
  .info { gap: 10px; font-size: 13px; }
}

/* ---------- oyuncu listesi (lobi + masadaki pencere) ---------- */
.plist { display: flex; flex-direction: column; background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.prow { display: grid; grid-template-columns: 2em minmax(0, 1fr) 7.5em 6.5em; align-items: center; gap: 10px; padding: 9px 16px; font-size: 14px; border-top: 1px solid rgba(255,255,255,.05); }
.plist.admin .prow { grid-template-columns: 2em minmax(0, 1fr) 7.5em 6.5em 17.5em; }
.prow.head { border-top: 0; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; background: rgba(255,255,255,.03); }
.prow.me { background: rgba(242,194,48,.07); }
.pr-rank { color: var(--muted); text-align: right; }
.pr-name { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.pn { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.pn1 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pr-name b { overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.prow.me .pr-name b { color: var(--gold); }
.pr-name .dot { width: 8px; height: 8px; border-radius: 50%; background: #5b5368; flex: none; }
.prow.on .pr-name .dot { background: #3ddc84; box-shadow: 0 0 6px #3ddc84aa; }
.pr-badge { flex: none; font-style: normal; font-size: 11px; font-weight: 700; color: #1a1208; background: var(--gold); border-radius: 6px; padding: 1px 6px; }
.pr-badge[hidden] { display: none; }
.pr-where { color: var(--muted); font-size: 12px; }
.pr-chips { color: var(--gold); font-weight: 700; text-align: right; }
.pr-wins { text-align: right; }
.pr-wins small { color: var(--muted); }
.pr-give { display: flex; gap: 6px; justify-content: flex-end; }
.pr-give [hidden] { display: none; }
.pr-give .btn.red { background: linear-gradient(#a3283a, #6e1422); border-color: #c33a4c; }
.pr-give input { width: 6.5em; min-width: 0; padding: .35em .5em; font-size: 13px; }
.users-card { width: min(820px, 94vw); max-height: 86vh; }
.users-card .plist { overflow-y: auto; min-height: 0; }
.mc-head { display: flex; justify-content: space-between; align-items: center; }
.mc-head h3 { margin: 0; }
@media (max-width: 720px) {
  .prow, .plist.admin .prow { grid-template-columns: 1.6em minmax(0, 1fr) auto; gap: 4px 8px; padding: 9px 12px; }
  .prow .pr-wins { grid-column: 2; text-align: left; font-size: 12px; }
  .prow .pr-chips { grid-column: 3; grid-row: 1; }
  .prow.head span:nth-child(4), .prow.head span:nth-child(5) { display: none; }
  .pr-give { grid-column: 2 / 4; justify-content: flex-start; }
  .pr-give input { flex: 1; }
}
/* Dar telefon: tek masa olduğu için masa adı gizlenir, düğmeler tek satıra sığar */
@media (max-width: 440px) {
  #game .topbar .brand { display: none; }
  #game .topbar .tb-actions, #game .topbar .media-btns { gap: 3px; }
  #game .topbar .btn.small { min-width: 32px; padding: .3em .42em; }
}

/* Ayarlar: hazır blinds seçenekleri */
.blind-presets { display: flex; flex-direction: column; gap: 6px; }
.blind-presets > span { color: var(--muted); font-size: 13px; }
#blindPresets { display: flex; flex-wrap: wrap; gap: 6px; }
#blindPresets .btn { flex: 1 1 auto; padding: .4em .5em; font-size: 13px; }
#blindPresets .btn.on { background: var(--gold); color: #1a1208; border-color: var(--gold); }

/* Buy-in / çip ekleme penceresi */
.buy-card { width: min(380px, 92vw); }
.buy-info { color: var(--muted); font-size: 13px; line-height: 1.5; }
.buy-info b { color: var(--text, #fff); }
.buy-amount { text-align: center; font-size: 30px; font-weight: 800; color: var(--gold); margin: 4px 0 -2px; }
.buy-card input[type=range] { width: 100%; }
.buy-row { display: flex; gap: 8px; align-items: center; }
.buy-row .presets { flex: 1; }
.buy-row .presets .btn { flex: 1; }
.modal-card .buy-row input[type=number] { width: 8.5em; }

/* =================================================================
   Yan çevrilmiş telefon (alçak yatay ekran)
   Hamle düğmeleri sağda dikey sütunda; masa bütün yüksekliği kullanır ve
   kartlar/oyuncu kutuları masaya göre daha iri çizilir (JS: .table.phone, 64em genişlik).
   ================================================================= */
@media (orientation: landscape) and (max-height: 520px) {
  .topbar { flex-wrap: nowrap; gap: 8px; padding-top: max(3px, env(safe-area-inset-top)); padding-bottom: 3px; }
  #game .topbar .brand { display: none; }
  .topbar .lbl { display: none; }
  .info { order: 0; flex: 1 1 auto; flex-basis: auto; font-size: 12px; gap: 10px; }
  .topbar .btn.small { min-width: 32px; min-height: 32px; padding: .2em .45em; }
  .btn.media { font-size: 15px; }
  .main { flex-direction: row; }
  .table-area { padding: 0 .5% 0 max(1%, env(safe-area-inset-left)); }
  .actionbar {
    flex: 0 0 auto; width: clamp(138px, 21vw, 196px); height: auto !important; min-height: 0;
    flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; align-items: stretch; gap: 5px;
    padding: 6px max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) 6px;
    background: linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,.5)); overflow-y: auto;
  }
  .actionbar .big { flex: 0 0 auto; width: 100%; min-width: 0; padding: .42em .4em; min-height: 0; font-size: 14px; }
  /* sütun içeriği ortalanır ama sığmazsa üstten taşmaz (otomatik kenar boşlukları sıfıra iner, kaydırılabilir) */
  .actionbar > :first-child { margin-top: auto; }
  .actionbar > :last-child { margin-bottom: auto; }
  .my-hand { display: flex; flex: 0 0 auto; flex-basis: auto; font-size: 12px; text-align: center; }
  .raise-box { flex: 0 0 auto; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 5px; padding: 5px; }
  .presets { flex: 0 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .presets .btn { min-height: 27px; padding: .1em .1em; font-size: 11.5px; }
  .raise-box input[type=range] { width: 100%; min-width: 0; flex: 0 0 auto; height: 26px; }
  .raise-box input[type=number] { display: none; }
  .raise-box #rBtn { flex: 0 0 auto; }
  .pre { flex: 0 0 auto; flex-direction: column; gap: 5px; }
  .pre-opt { flex: 0 0 auto; justify-content: flex-start; font-size: 12.5px; padding: .45em .55em; }
  .actionbar .msg { font-size: 12.5px; text-align: center; }
  .spec { width: 72px; height: 54px; }
  .spec-strip { top: 6px; left: 6px; gap: 5px; }
  .toast { top: auto; bottom: 14px; max-width: 70vw; text-align: center; }
  .win-splash { top: 8%; padding: 10px 24px 10px; }

  /* masa: geniş oval, iri masa kartları, kompakt oyuncu kutuları.
     Rakip kartları kutunun arkasından üst kısmı görünecek şekilde durur (köşedeki değer/simge okunur);
     senin kartların kutunun sağında, büyük. */
  .table.phone { aspect-ratio: 2.5 / 1; margin: 3.4em 0 2.4em; }
  .table.phone .rail { inset: 6% 5%; padding: 1.6em; }
  .table.phone .deck { display: none; }
  .table.phone .center { width: 56%; gap: .25em; top: 45%; }
  .table.phone .pot { min-height: 2em; font-size: 1.05em; }
  .table.phone .board { gap: .4em; min-height: 8.3em; }
  .table.phone .board .card { --w: 5.6em; }
  .table.phone .banner { font-size: 1.05em; max-width: 100%; }
  .table.phone .seat { width: 11.4em; }
  .table.phone .seat:not(.me) .hole { position: absolute; left: 50%; bottom: calc(100% - 2em); transform: translateX(-50%); height: auto; margin: 0; z-index: 0; }
  .table.phone .seat:not(.me) .hole .card { --w: 3.4em; }
  .table.phone .plate { z-index: 1; height: 4.6em; padding: .3em .45em; gap: .45em; border-radius: .8em; }
  .table.phone .seat.me { width: auto; flex-direction: row-reverse; align-items: center; gap: .45em; }
  .table.phone .seat.me .plate { width: 11.4em; flex: none; }
  .table.phone .seat.me .hole { height: auto; margin: 0; }
  .table.phone .seat.me .hole .card { --w: 5em; }
  .table.phone .avatar { width: 3.9em; height: 3.9em; }
  .table.phone .avatar > span { font-size: 1.4em; }
  .table.phone .pname { font-size: 1.1em; }
  .table.phone .pchips { font-size: 1.05em; }
  .table.phone .pline { font-size: .9em; }
  .table.phone .dealer { width: 2.2em; height: 2.2em; }
  .table.phone .bet { font-size: .95em; }
}
@media (orientation: landscape) and (max-height: 370px) {
  .actionbar .my-hand { display: none; } /* çok alçak ekranda el adı sütuna sığmaz */
}

/* Dikey telefon: hamle düğmeleri daha az yer kaplasın, masa büyüsün.
   Fold | Call | Raise yan yana; altında hazır miktarlar, en altta kaydırıcı ve miktar kutusu. */
@media (max-width: 720px) and (orientation: portrait) {
  .actionbar { gap: 6px; padding-top: 6px; }
  .actionbar .raise-box { display: contents; }
  .actionbar .my-hand { order: 0; flex: 1 1 100%; font-size: 13px; }
  .actionbar .big { order: 1; flex: 1 1 0; min-width: 0; font-size: 15px; padding: .6em .3em; }
  .actionbar .raise-box .btn.gold.big { order: 1; flex: 1 1 0; }
  .actionbar .raise-box #rBtn { order: 1; flex: 1 1 0; } /* eski 720px kuralındaki #rBtn genişliğini ez */
  .actionbar .presets { order: 2; flex: 1 1 100%; }
  .actionbar .presets .btn { min-height: 34px; padding: .2em .3em; }
  .actionbar .raise-box input[type=range] { order: 3; flex: 1 1 auto; min-width: 0; height: 30px; }
  .actionbar .raise-box input[type=number] { order: 3; width: 92px; }
  .actionbar .pre { order: 1; }
  .actionbar .msg { order: 2; flex: 1 1 100%; }
}

/* =================================================================
   SADE TEMA — sadece görünüm (renk, yüzey, gölge, yazı kalınlığı).
   Ölçü ve konumlar değişmez; yukarıdaki yerleşim kuralları geçerlidir.
   ================================================================= */
body { background: radial-gradient(ellipse 120% 90% at 50% 0%, #1a1e24 0%, var(--bg1) 45%, var(--bg2) 100%); }
body:has(#game:not(.hidden)) { background: radial-gradient(ellipse 80% 70% at 50% 50%, #161a1f 0%, #0c0e11 60%, #07080a 100%); }
.table-area::before { display: none; }           /* bulanık salon ışıkları yok */
.table-area::after { background: radial-gradient(ellipse 80% 75% at 50% 50%, transparent 60%, rgba(0,0,0,.45) 100%); }

/* düğmeler: düz, kabartmasız */
.btn { font-weight: 600; background: var(--surface2); border: 1px solid var(--line); box-shadow: none; border-radius: 10px; transition: background .15s, border-color .15s, transform .08s, filter .15s; }
.btn:hover { filter: none; background: #232833; border-color: rgba(255,255,255,.16); }
.btn.gold { background: var(--gold); color: #1c1407; border-color: transparent; }
.btn.gold:hover { background: #f1c86b; }
.btn.red { background: var(--red); color: #fff; border-color: transparent; }
.btn.red:hover { background: #ec5d62; }
.btn.green { background: var(--green); border-color: transparent; }
.btn.green:hover { background: #38b679; }
.btn.blue { background: var(--blue); border-color: transparent; }
.btn.blue:hover { background: #5a8ffb; }
.btn.media.off { background: rgba(229,72,77,.16); border-color: rgba(229,72,77,.45); color: #ff9ea1; }
.topbar .btn.small:not(.gold):not(.green):not(.red) { background: transparent; }
.topbar .btn.small:not(.gold):not(.green):not(.red):hover { background: rgba(255,255,255,.06); }
.topbar .btn.small.media.off { background: rgba(229,72,77,.16); } /* kapalı mikrofon/kamera kırmızımsı kalsın */
.actionbar .big { text-transform: none; letter-spacing: .01em; font-weight: 700; }
.actionbar .big small { font-weight: 600; opacity: .85; }

/* üst çubuk ve yazılar */
.topbar { background: rgba(10,12,15,.72); border-bottom: 1px solid var(--line); }
.brand { color: var(--text); font-weight: 700; }
.logo { color: var(--text); font-weight: 700; text-shadow: none; letter-spacing: -.02em; }
.logo span:not(.s-red) { color: var(--gold); }
.join-card { background: rgba(20,23,28,.86); border-color: var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.45); backdrop-filter: blur(8px); }
.auth-tab { font-weight: 600; }
.auth-tab.active { background: var(--gold); color: #1c1407; border-color: transparent; }
input { background: rgba(255,255,255,.04); border-color: var(--line); }
input:focus { border-color: var(--gold); background: rgba(255,255,255,.06); }

/* masa: ince koyu kenar, ahşap ve dikiş yok, zümrüt çuha */
.rail {
  background: linear-gradient(#22262d, #121418);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 -.4em .8em rgba(0,0,0,.5), 0 1.4em 3em rgba(0,0,0,.55);
}
.rail::before { display: none; }
.wood { background: none; box-shadow: none; padding: .35em; }
.felt {
  background:
    radial-gradient(ellipse 60% 55% at 50% 42%, rgba(255,255,255,.06), transparent 70%),
    radial-gradient(ellipse 80% 75% at 50% 45%, #1f7a55 0%, #186447 40%, #114c36 75%, #0c3a29 100%);
  box-shadow: inset 0 0 0 .12em rgba(255,255,255,.05), inset 0 0 3em rgba(0,0,0,.5);
}
.bet-line { border: .1em solid rgba(255,255,255,.08); box-shadow: none; }
.table-shadow { background: rgba(0,0,0,.7); }
.pot { font-weight: 700; }
.pot span { background: rgba(0,0,0,.42); border: 1px solid rgba(255,255,255,.06); text-shadow: none; }
.bet .amt { background: rgba(0,0,0,.45); text-shadow: none; font-weight: 700; }
.banner { font-weight: 700; text-shadow: none; }
.banner .ann { background: var(--text); color: #121519; box-shadow: 0 .3em .8em rgba(0,0,0,.35); }
.deck i { border-color: #e9edf3; background: repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 .12em, transparent .12em .35em), linear-gradient(160deg, #24334f, #141c2c); }
.dealer { background: #f4f5f7; color: #121519; box-shadow: 0 .15em .35em rgba(0,0,0,.45); border: none; }
.dealer span { font-size: .9em; letter-spacing: 0; font-weight: 800; }

/* oyuncu kutuları */
.plate { background: rgba(16,19,24,.94); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 .4em 1.2em rgba(0,0,0,.45); backdrop-filter: blur(4px); }
.avatar { border: .12em solid rgba(255,255,255,.18); font-weight: 700; text-shadow: none; }
.pname { font-weight: 600; }
.pchips { font-weight: 700; }
.pchips::before { color: var(--gold2); }
.seat.turn .plate { border-color: var(--gold); box-shadow: 0 0 0 .15em rgba(233,188,90,.25), 0 .4em 1.2em rgba(0,0,0,.45); }
.seat.winner .plate { border-color: var(--gold); }
@keyframes glow { from { box-shadow: 0 0 .4em rgba(233,188,90,.3); } to { box-shadow: 0 0 1.6em rgba(233,188,90,.75); } }
.seat.empty .plate { background: rgba(255,255,255,.02); border-style: dashed; }
.timer i { background: var(--gold); }
.timer i.low { background: var(--red); }
.tag { font-weight: 600; border-radius: .4em; background: rgba(255,255,255,.1); color: var(--text); }
.tag.fold { background: rgba(255,255,255,.08); color: var(--muted); }
.tag.raise, .tag.bet { background: rgba(233,188,90,.2); color: #f3cf7f; }
.tag.call, .tag.check { background: rgba(62,123,250,.22); color: #9bbcff; }
.tag.allin { background: rgba(229,72,77,.25); color: #ff9ea1; }
.tag.sb, .tag.bb { background: rgba(255,255,255,.1); color: #c9d0da; }
.pline.hand { color: var(--gold); font-weight: 600; }
.pchips .won { color: #5fd49a; }

/* hamle çubuğu */
.actionbar { background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.35)); }
.raise-box { background: rgba(255,255,255,.03); border-color: var(--line); }
.my-hand { color: var(--gold); font-weight: 600; }
.pre-opt { font-weight: 600; background: rgba(255,255,255,.03); }
.pre-opt.on { background: rgba(233,188,90,.12); }
.pre-opt.on i { box-shadow: inset 0 0 0 2px #1c1407; }
.raise-box input[type=range], .buy-card input[type=range] { accent-color: var(--gold); }

/* lobi, listeler, pencereler */
.acct-card, .leader-card, .plist { background: rgba(20,23,28,.7); border-color: var(--line); }
.tcard { background: linear-gradient(160deg, rgba(31,122,85,.18), rgba(20,23,28,.8) 60%); border-color: var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.lobby-body h2 { color: var(--text); font-weight: 700; }
.ac-label { font-weight: 600; }
.ac-chips { font-weight: 700; }
.ac-note { color: #e9c878; }
.badge { font-weight: 600; background: rgba(255,255,255,.07); }
.badge.live { background: rgba(48,164,108,.2); color: #6fd8a3; }
.tc-dots i.on { background: var(--green); border-color: var(--green); }
.prow.head { background: rgba(255,255,255,.02); }
.prow.me { background: rgba(233,188,90,.06); }
.pr-badge { background: var(--gold); color: #1c1407; font-weight: 600; }
.pr-give .btn.red { background: rgba(229,72,77,.16); border-color: rgba(229,72,77,.4); color: #ff9ea1; }
.pr-give .btn.red:hover { background: rgba(229,72,77,.28); }
.modal { background: rgba(4,5,7,.6); backdrop-filter: blur(3px); }
.modal-card { background: var(--surface); border-color: var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.modal-card h3 { color: var(--text); font-weight: 700; }
#blindPresets .btn.on { background: var(--gold); color: #1c1407; }
.buy-amount { font-weight: 700; }
.toast { background: #1e2229; border: 1px solid rgba(255,255,255,.12); border-left: 3px solid var(--gold); font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.conn { background: var(--red); font-weight: 600; }
.spec { background: var(--surface2); border: 1px solid var(--line); }

/* kazanma kutlaması: sade kart */
.win-splash { background: rgba(18,21,26,.96); border: 1px solid rgba(233,188,90,.6); box-shadow: 0 0 0 4px rgba(233,188,90,.08), 0 20px 50px rgba(0,0,0,.55); }
.ws-title { color: var(--gold); font-weight: 700; text-shadow: none; animation: none; letter-spacing: -.01em; }
.ws-amount { color: #5fd49a; font-weight: 700; text-shadow: none; }

/* Gerçek kart resimleri: kart kutusuyla aynı oranda (5:7); köşeleri resmin kendi yuvarlak köşeleri */
.cface.real { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
/* Okunur köşe etiketi: küçük kartlarda iri (tek köşe), büyük kartlarda iki köşede */
.card { container-type: inline-size; }
.cidx {
  position: absolute; left: 3%; top: 2%; display: none; flex-direction: column; align-items: center;
  /* sol üstteki ilk sembolü (kartın %26–40 genişliği, %15–27 yüksekliği) tamamen örter: yarım sembol görünmez */
  min-width: 41%; min-height: 30%; justify-content: center; padding: 3% 3% 4%; border-radius: 0 0 16% 0; background: #fff;
  font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 31cqw; line-height: .92;
  letter-spacing: -.06em; color: #161616; pointer-events: none;
}
.cidx i { font-style: normal; font-size: .78em; letter-spacing: 0; margin-top: .06em; }
.cidx.r { color: #c51a2a; }
/* Büyük kartlar: destenin kendi küçük köşe yazısının üstüne, gerçek kartlardaki gibi iki köşede okunur etiket */
.cidx { display: flex; left: 2.5%; top: 2%; min-width: 23%; min-height: 0; padding: 2.5% 1.5% 3%; font-size: 20cqw; border-radius: 0 0 22% 0; }
.cidx.b { left: auto; top: auto; right: 2.5%; bottom: 2%; rotate: 180deg; }
@container (max-width: 89px) {
  .cidx { left: 3%; top: 2%; min-width: 41%; min-height: 30%; padding: 3% 3% 4%; font-size: 31cqw; border-radius: 0 0 16% 0; }
  .cidx.b { display: none; }
}

/* ================= HAREKET: akıcı animasyonlar ================= */
:root { --ease-out: cubic-bezier(.2,.8,.25,1); --ease-spring: cubic-bezier(.2,.9,.3,1.25); }

/* Ekran geçişleri: giriş, lobi ve masa yumuşakça belirir */
@keyframes scr-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes zoom-in { from { opacity: 0; scale: .965; } to { opacity: 1; scale: 1; } }
.screen:not(.hidden) { animation: scr-fade .35s ease-out; }
#join:not(.hidden) .join-card { animation: rise-in .55s var(--ease-out) backwards .05s; }
#lobby:not(.hidden) .topbar { animation: scr-fade .4s ease-out backwards; }
#lobby:not(.hidden) .acct-card { animation: rise-in .5s var(--ease-out) backwards .06s; }
#lobby:not(.hidden) #tableList { animation: rise-in .5s var(--ease-out) backwards .13s; }
#lobby:not(.hidden) .lobby-body > h2, #lobby:not(.hidden) #usersHint { animation: rise-in .5s var(--ease-out) backwards .2s; }
#lobby:not(.hidden) #lobbyUsers { animation: rise-in .55s var(--ease-out) backwards .26s; }
#game:not(.hidden) .table-area { animation: zoom-in .55s var(--ease-out) backwards .05s; }
#game:not(.hidden) .actionbar { animation: rise-in .45s var(--ease-out) backwards .15s; }

/* Düğmeler: üstüne gelince hafif kalkar, basınca içeri göçer */
.btn { transition: background .18s, border-color .18s, color .18s, transform .16s var(--ease-out), box-shadow .18s, filter .18s, opacity .18s; }
@media (hover: hover) {
  .btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.28); }
}
.btn:active:not(:disabled) { transform: translateY(0) scale(.96); transition-duration: .06s; box-shadow: none; }
.tcard, .acct-card, .prow { transition: background .2s, border-color .2s, transform .2s var(--ease-out); }
@media (hover: hover) { .tcard:hover { transform: translateY(-2px); } }
.auth-tab { transition: background .2s, color .2s; }
input, select { transition: border-color .18s, box-shadow .18s, background .18s; }
input:focus { box-shadow: 0 0 0 3px rgba(233,188,90,.18); }

/* Modallar: arka plan solarak, kart yaylanarak açılır; kapanırken tersine */
@keyframes m-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes m-card { from { opacity: 0; scale: .92; translate: 0 10px; } to { opacity: 1; scale: 1; translate: 0 0; } }
.modal:not(.hidden) { animation: m-fade .2s ease-out; }
.modal:not(.hidden) .modal-card { animation: m-card .34s var(--ease-spring); }
.modal.closing { animation: m-fade .19s ease-in reverse forwards; pointer-events: none; }
.modal.closing .modal-card { animation: m-card .19s ease-in reverse forwards; }

/* Bildirim: yukarıdan kayarak gelir, solarak gider */
@keyframes toast-in { from { opacity: 0; translate: 0 -14px; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes toast-out { to { opacity: 0; translate: 0 -8px; } }
.toast:not(.hidden) { animation: toast-in .32s var(--ease-spring); }
.toast.out { animation: toast-out .22s ease-in forwards; }
.conn:not(.hidden) { animation: rise-in .3s var(--ease-out); }

/* Sıra sende: hamle düğmeleri sırayla yükselerek gelir */
@keyframes act-in { from { opacity: 0; translate: 0 12px; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }
.actionbar > .btn, .actionbar > .raise-box { animation: act-in .34s var(--ease-out) backwards; }
.actionbar > #callBtn { animation-delay: .05s; }
.actionbar > .raise-box { animation-delay: .1s; }
.actionbar > .msg, .actionbar > .pre, .actionbar > .my-hand { animation: scr-fade .3s ease-out; }
.pre-opt { transition: background .18s, border-color .18s, color .18s; }

/* Oyuncu kutuları: sıra, kazanma ve süre geçişleri yumuşak */
.plate { transition: border-color .3s, box-shadow .35s, opacity .3s, filter .3s; }
.seat.turn .plate { box-shadow: 0 0 0 .15em rgba(233,188,90,.28), 0 0 1.4em rgba(233,188,90,.22), 0 .4em 1.2em rgba(0,0,0,.45); }
.timer i { transition: background-color .4s; }
.tag, .pchips .won { display: inline-block; }
.dealer { will-change: translate; }

/* Board kartları kazanan eli gösterirken yumuşakça söner / parlar */
.card { transition: filter .35s, opacity .35s; }

/* ================= ÇİPLER: gerçekçi yığınlar ================= */
.stacks { gap: .12em; filter: drop-shadow(0 .14em .12em rgba(0,0,0,.45)); }
.stack { position: relative; width: 1.8em; }
.pchip {
  position: absolute; width: 1.8em; height: 1.05em; border-radius: 50%;
  /* yan kenar: çip renginin koyusu üzerinde beyaz şeritler */
  background:
    linear-gradient(rgba(0,0,0,.0) 45%, rgba(0,0,0,.28)),
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--c) 78%, #000) 0 .19em, var(--s) .19em .29em);
  box-shadow: 0 .03em .05em rgba(0,0,0,.4);
}
.pchip::after {
  /* üst yüz: kenarı şeritli, ortası düz renkli halka */
  content: ""; position: absolute; inset: 0; border-radius: 50%; translate: 0 -.2em;
  background:
    radial-gradient(ellipse closest-side at 38% 32%, rgba(255,255,255,.28), transparent 70%),
    radial-gradient(ellipse closest-side, var(--c) 0 49%, var(--s) 50% 55%, var(--c) 56% 71%, transparent 72%),
    repeating-conic-gradient(from 8deg, var(--c) 0 26deg, var(--s) 26deg 40deg);
  box-shadow: inset 0 -.05em .05em rgba(0,0,0,.25);
}
.bet { gap: .45em; }
.bet .amt { box-shadow: 0 .15em .4em rgba(0,0,0,.3); }
.pot { gap: .6em; }

/* uçan çip: üstten görünen gerçek çip */
.fly-chip {
  width: 1.55em; height: 1.55em; border: none; will-change: transform, opacity;
  background:
    radial-gradient(circle closest-side at 38% 32%, rgba(255,255,255,.35), transparent 70%),
    radial-gradient(circle closest-side, var(--c, #d8263a) 0 49%, var(--s, #f2eee4) 50% 56%, var(--c, #d8263a) 57% 72%, transparent 73%),
    repeating-conic-gradient(from 8deg, var(--c, #d8263a) 0 26deg, var(--s, #f2eee4) 26deg 40deg);
  box-shadow: 0 .3em .55em rgba(0,0,0,.45), inset 0 0 0 .07em rgba(0,0,0,.28);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* ================= YAZILI SOHBET ================= */
.chat-panel {
  position: fixed; top: 56px; right: 10px; z-index: 55; width: 340px; max-width: calc(100vw - 20px);
  height: min(420px, 48vh); transform-origin: 85% 0;
  display: flex; flex-direction: column; box-sizing: border-box; overflow: hidden;
  background: rgba(20,23,28,.97); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
}
@keyframes cp-in { from { opacity: 0; translate: 0 -10px; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }
.chat-panel:not(.hidden) { animation: cp-in .3s var(--ease-out); }
.chat-panel.closing { animation: cp-in .2s ease-in reverse forwards; pointer-events: none; }
.cp-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); }
.cp-head b { font-size: 15px; }
.cp-list { flex: 1; min-height: 0; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.cp-empty { color: var(--muted); font-size: 13px; text-align: center; margin: auto 0; }
.cp-msg { align-self: flex-start; max-width: 85%; background: var(--surface2); border-radius: 4px 14px 14px 14px; padding: 7px 11px; }
.cp-msg.me { align-self: flex-end; background: rgba(233,188,90,.16); border-radius: 14px 4px 14px 14px; }
.cp-msg.me .cp-name { color: var(--gold) !important; }
.cp-msg.new { animation: act-in .3s var(--ease-out); }
.cp-meta { display: flex; gap: 8px; align-items: baseline; font-size: 12px; margin-bottom: 2px; }
.cp-name { font-weight: 700; filter: brightness(1.35); }
.cp-meta time { color: var(--muted); font-size: 11px; }
.cp-text { font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.cp-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.cp-form input { flex: 1; min-width: 0; }
#chatBtn { position: relative; }
#chatBtn.on { filter: brightness(1.15); box-shadow: 0 0 0 2px rgba(233,188,90,.35); }
#chatBtn .badge {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
  border-radius: 999px; background: var(--red); color: #fff; font: 700 11px/18px system-ui, sans-serif; font-style: normal;
  box-shadow: 0 0 0 2px #121519; animation: pop .25s var(--ease-spring);
}
/* Telefon: dikeyde üstte tam genişlik (hamle düğmeleri görünür kalır); yatayda sağda dar sütun */
@media (max-width: 720px) and (orientation: portrait) { .chat-panel { top: 52px; left: 10px; right: 10px; width: auto; height: min(380px, 45vh); } }
@media (orientation: landscape) and (max-height: 520px) { .chat-panel { top: 46px; width: 300px; height: min(300px, 62vh); } .cp-list { padding: 8px; } }

/* Baloncuk: oyuncu kutusunun yanında, masanın ortasına doğru; ucu kutuyu gösterir */
.bubble {
  position: absolute; bottom: 2.2em; z-index: 30; width: max-content; max-width: 13em;
  padding: .45em .75em; border-radius: .9em; background: #fff; color: #15181d;
  font-size: 1.2em; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; white-space: normal;
  box-shadow: 0 .35em 1em rgba(0,0,0,.4); pointer-events: none;
}
.bubble::before {
  content: ""; position: absolute; bottom: .7em; width: .8em; height: .8em; background: #fff; rotate: 45deg; border-radius: .12em;
}
.bubble.r { left: calc(100% + .7em); transform-origin: 0 100%; }
.bubble.r::before { left: -.32em; }
.bubble.l { right: calc(100% + .7em); transform-origin: 100% 100%; }
.bubble.l::before { right: -.32em; }
.seat:has(.bubble) { z-index: 25; }
.bubble.out { transition: opacity .25s, scale .25s; opacity: 0; scale: .85; }
.table.phone .bubble { font-size: 1.15em; max-width: 11em; }
.table.portrait .bubble { font-size: 1.25em; max-width: 10em; }

/* ================= KRUPİYE ================= */
/* Masanın üst ortasında, rayın üzerinde durur; iki yanı boş bırakılır. Deste onun hemen sağında. */
.croupier {
  position: absolute; left: 50%; top: 4%; z-index: 5; width: 6.4em; height: 6.4em; translate: -50% -50%;
  display: flex; flex-direction: column; align-items: center;
}
.cr-avatar {
  width: 6.4em; height: 6.4em; border-radius: 50%; overflow: hidden; flex: none; background: #14231c;
  border: .2em solid var(--gold); box-shadow: 0 .45em 1.2em rgba(0,0,0,.55), 0 0 0 .35em rgba(0,0,0,.25);
  transition: box-shadow .3s, scale .3s var(--ease-spring);
}
.cr-avatar img, .cr-avatar svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.croupier.talking .cr-avatar { box-shadow: 0 .45em 1.2em rgba(0,0,0,.55), 0 0 0 .35em rgba(233,188,90,.35), 0 0 1.6em rgba(233,188,90,.45); scale: 1.04; }
.cr-name {
  position: absolute; top: calc(100% - .9em); padding: .1em .75em; border-radius: 999px; white-space: nowrap;
  background: #121519; border: .1em solid rgba(233,188,90,.55); color: var(--gold); font-weight: 700; font-size: .95em;
}
.croupier.admin { cursor: pointer; }
.croupier.admin .cr-avatar::after { content: none; }
@media (hover: hover) { .croupier.admin:hover .cr-avatar { scale: 1.05; } }

/* Krupiyenin konuşma baloncuğu: altında, ucu krupiyeyi gösterir */
.cr-bubble {
  position: absolute; top: calc(100% + 1.1em); left: 50%; translate: -50% 0; z-index: 6;
  width: max-content; max-width: 15em; padding: .5em .85em; border-radius: .9em; text-align: center;
  background: #fff; color: #15181d; font-size: 1.15em; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere;
  box-shadow: 0 .4em 1.1em rgba(0,0,0,.45); pointer-events: none; transform-origin: 50% 0;
  animation: pop .3s var(--ease-spring);
}
.cr-bubble::before { content: ""; position: absolute; top: -.35em; left: 50%; width: .8em; height: .8em; margin-left: -.4em; background: #fff; rotate: 45deg; border-radius: .12em; }
.cr-bubble.out { transition: opacity .25s, scale .25s; opacity: 0; scale: .85; }
/* deste: krupiyenin sağ elinin önünde */
.deck { left: 57%; top: 6%; transform: translateX(-50%) rotate(10deg); }

.table.portrait .croupier { top: 5%; font-size: 1.05em; }
.table.portrait .deck { left: 60%; top: 6%; }
.table.portrait .cr-bubble { max-width: 12em; font-size: 1.2em; }
.table.phone .croupier { top: 6%; font-size: .78em; }
.table.phone .cr-bubble { max-width: 30em; font-size: 1.25em; top: calc(100% + .9em); padding: .3em .8em; } /* tek satır: masa kartlarına inmez */

/* krupiye resmi penceresi */
.cr-card { align-items: stretch; }
.cr-preview { width: 9em; height: 9em; margin: 4px auto; border-radius: 50%; overflow: hidden; border: 3px solid var(--gold); background: #14231c; font-size: 16px; }
.cr-preview img, .cr-preview svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.cr-pick { justify-content: center; text-align: center; cursor: pointer; }
#crOpenBtn { align-self: stretch; }

/* ================= SES / MİKROFON / KAMERA DÜĞMELERİ ================= */
.media-btns { gap: 6px; }
.topbar .btn.small.media {
  display: inline-grid; place-items: center; width: 38px; height: 34px; padding: 0; font-size: 0;
  color: #dfe5ee; background: var(--surface2); border: 1px solid var(--line); border-radius: 10px;
}
.btn.media svg { display: block; width: 18px; height: 18px; transition: transform .2s var(--ease-spring); }
.topbar .btn.small.media:not(.off) { color: #7fe0a8; border-color: rgba(48,164,108,.45); background: rgba(48,164,108,.12); }
.topbar .btn.small.media.off { color: #ff8e92; border-color: rgba(229,72,77,.45); background: rgba(229,72,77,.12); }
@media (hover: hover) { .topbar .btn.small.media:hover:not(:disabled) svg { transform: scale(1.12); } }
.topbar .btn.small.media:active svg { transform: scale(.9); }
@keyframes media-wait { 50% { opacity: .45; } }
.topbar .btn.small.media.busy { color: var(--gold); border-color: rgba(233,188,90,.5); background: rgba(233,188,90,.12); }
.topbar .btn.small.media.busy svg { animation: media-wait 1s ease-in-out infinite; }
@media (max-width: 720px) { .topbar .btn.small.media { width: 34px; height: 32px; } .btn.media svg { width: 17px; height: 17px; } }


/* Sohbet: sarı yerine ateş kırmızısı; yazma kutusunda sarı kenarlık yok */
.cp-form input:focus { border-color: var(--line); box-shadow: none; outline: none; }
#chatBtn.btn.gold, .cp-form .btn.gold {
  background: linear-gradient(#ff5a2a, #d1160f); color: #fff; border-color: transparent;
  text-shadow: 0 1px 1px rgba(0,0,0,.25);
}
#chatBtn.btn.gold:hover, .cp-form .btn.gold:hover { background: linear-gradient(#ff6c3d, #e01f14); }
#chatBtn.on { box-shadow: 0 0 0 2px rgba(255,80,40,.45); }
#chatBtn .badge { background: #fff; color: #d1160f; }
.cp-msg.me { background: rgba(255,70,30,.16); }
.cp-msg.me .cp-name { color: #ff7a4d !important; }

/* Lobi: düğmeler ateş kırmızısı, sarı yazılar turuncu-ateş tonu */
#lobby { --gold: #ff8a4c; --gold2: #ff6a2b; }
#lobby .btn.gold {
  background: linear-gradient(#ff5a2a, #d1160f); color: #fff; border-color: transparent;
  text-shadow: 0 1px 1px rgba(0,0,0,.25);
}
#lobby .btn.gold:hover { background: linear-gradient(#ff6c3d, #e01f14); }
#lobby .btn.gold:disabled { filter: grayscale(.4) brightness(.8); }
#lobby .pr-badge { background: linear-gradient(#ff5a2a, #d1160f); color: #fff; }
#lobby .ac-note { color: #ffa27a; }
#lobby .prow.me { background: rgba(255,80,40,.08); }
#lobby input:focus { border-color: #ff5a2a; box-shadow: 0 0 0 3px rgba(255,80,40,.18); }

/* =================================================================
   PREMIUM TEMA — koyu grafit + ateş kırmızısı vurgu.
   Sadece görünüm: masa üstü yerleşim ölçüleri değişmez.
   ================================================================= */
:root {
  --fire1: #ff5a2a; --fire2: #d1160f; --ember: #ff8a4c; --ember-soft: rgba(255,90,42,.14);
  --gold: var(--ember); --gold2: #ff6a2b;
  --surface: #121418; --surface2: #1a1d23;
  --line: rgba(255,255,255,.075); --line-hi: rgba(255,255,255,.14);
  --muted: #8f97a3;
  --fire-grad: linear-gradient(180deg, #ff6533 0%, #e0280f 55%, #b8130b 100%);
  --glass: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  --shadow-lg: 0 1px 0 rgba(255,255,255,.05) inset, 0 24px 60px -18px rgba(0,0,0,.75), 0 2px 6px rgba(0,0,0,.35);
  --font-display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Display", Roboto, sans-serif;
}
body, body:has(#game:not(.hidden)) {
  background:
    radial-gradient(ellipse 70% 45% at 50% -8%, rgba(255,80,30,.13), transparent 70%),
    radial-gradient(ellipse 120% 90% at 50% 0%, #17191e 0%, #0e1013 50%, #070809 100%);
}
/* ince film grenli doku: düz siyahı "kadife" yapar */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.screen { position: relative; z-index: 1; }

/* ---------- düğmeler ---------- */
.btn { border-radius: 11px; background: var(--glass), var(--surface2); border-color: var(--line); }
.btn:hover { background: var(--glass), #22262e; border-color: var(--line-hi); }
.btn.gold, #lobby .btn.gold {
  background: var(--fire-grad); color: #fff; border: 1px solid rgba(255,150,110,.35);
  text-shadow: 0 1px 1px rgba(80,0,0,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 6px 18px -6px rgba(230,40,15,.65);
}
.btn.gold:hover, #lobby .btn.gold:hover { background: linear-gradient(180deg, #ff7748 0%, #ea3216 55%, #c4180d 100%); }
.btn.red { background: linear-gradient(180deg, #3a1a1d, #2a1215); color: #ffb4b0; border-color: rgba(255,90,80,.35); }
.btn.red:hover { background: linear-gradient(180deg, #4a1f23, #321518); }
.btn.blue { background: linear-gradient(180deg, #2a3446, #1d2533); color: #dfe8ff; border-color: rgba(140,170,255,.25); }
.btn.blue:hover { background: linear-gradient(180deg, #334059, #232d3f); }
.btn.green { background: linear-gradient(180deg, #2bb673, #1b8752); border-color: rgba(120,240,180,.3); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
#logoutBtn { background: transparent; color: #ff9d93; border-color: rgba(255,90,80,.35); }
#logoutBtn:hover { background: rgba(255,90,80,.12); }
/* masadaki hamle düğmeleri: büyük, tok */
.actionbar .big { border-radius: 14px; }
.actionbar .btn.red.big { background: linear-gradient(180deg, #2c2f36, #1c1e23); color: #e9ebef; border-color: var(--line-hi); }
.actionbar .btn.blue.big { background: linear-gradient(180deg, #2f6fe0, #1c4cb0); color: #fff; border-color: rgba(150,185,255,.35); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 6px 18px -6px rgba(40,90,220,.6); }

/* ---------- girdiler ---------- */
input { background: rgba(0,0,0,.28); border-color: var(--line); border-radius: 11px; }
input:focus { border-color: rgba(255,106,43,.7); box-shadow: 0 0 0 3px rgba(255,90,42,.16); background: rgba(0,0,0,.34); }
.cp-form input:focus { border-color: var(--line); box-shadow: none; }
input[type=range], .raise-box input[type=range], .buy-card input[type=range] { accent-color: var(--fire1); }

/* ---------- üst çubuk ---------- */
.topbar {
  background: linear-gradient(180deg, rgba(14,16,19,.9), rgba(10,11,14,.75));
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(255,110,60,.35) 30%, rgba(255,255,255,.08) 70%, transparent) 1;
  backdrop-filter: blur(14px) saturate(1.2);
}
.brand { font-family: var(--font-display); font-weight: 750; letter-spacing: -.015em; }
.brand .s-red, .logo .s-red { color: var(--fire1); filter: drop-shadow(0 0 8px rgba(255,80,30,.55)); }

/* ---------- giriş ---------- */
.join-card {
  position: relative; border-radius: 26px; padding: 52px 56px 40px;
  background: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(255,90,40,.12), transparent 70%), linear-gradient(180deg, rgba(24,26,31,.94), rgba(14,15,18,.96));
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.join-card::before { /* üst kenarda ateş çizgisi */
  content: ""; position: absolute; left: 18%; right: 18%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--fire1), transparent);
}
.logo { font-family: var(--font-display); font-weight: 800; font-size: 46px; letter-spacing: -.03em; color: #f3f4f6; }
.logo span:not(.s-red) { color: #c9ced6; }
.sub { letter-spacing: .02em; }
.auth-tabs { background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 999px; padding: 4px; width: max-content; margin: 0 auto 18px; gap: 2px; }
.auth-tab { border: 0; padding: .45em 1.3em; }
.auth-tab.active { background: var(--fire-grad); color: #fff; box-shadow: 0 4px 14px -4px rgba(230,40,15,.6); }
#authForm input { padding: .75em 1em; }
#authForm .btn { padding: .75em; margin-top: 4px; }

/* ---------- lobi ---------- */
.lobby-body { width: 100%; max-width: 1320px; margin: 0 auto; padding: 32px 36px 48px; }
.lobby-body h2 { font-family: var(--font-display); font-size: 24px; letter-spacing: -.02em; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.lobby-body h2::before { content: ""; width: 4px; height: 1em; border-radius: 4px; background: var(--fire-grad); }
#usersHint { margin-bottom: 14px; max-width: 900px; line-height: 1.5; }
.lobby-top { gap: 22px; margin-bottom: 36px; }
.acct-card, .tcard, .plist, .leader-card { position: relative; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.acct-card {
  padding: 22px 26px; overflow: hidden;
  background: radial-gradient(ellipse 80% 90% at 0% 0%, rgba(255,90,40,.13), transparent 60%), linear-gradient(180deg, #16181d, #101215);
}
.acct-card::after { /* sağ altta silik dev maça */
  content: "♠"; position: absolute; right: -6px; bottom: -52px; font-size: 200px; line-height: 1; color: rgba(255,255,255,.028); pointer-events: none;
}
.ac-label { font-size: 11.5px; letter-spacing: .16em; color: #a3abb7; }
.ac-chips {
  font-family: var(--font-display); font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
  background: linear-gradient(180deg, #ffb08a, #ff6a2b 75%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ac-stats { margin-top: 12px; gap: 8px; }
.ac-stats > * { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-size: 13px; }
.ac-note, #lobby .ac-note { color: #ffb293; background: rgba(255,90,42,.08); border: 1px solid rgba(255,90,42,.2); border-radius: 12px; padding: 8px 12px; display: inline-block; margin-top: 14px; }
.tcard {
  padding: 22px 24px; gap: 12px; overflow: hidden;
  background: radial-gradient(ellipse 70% 120% at 100% 0%, rgba(31,140,95,.22), transparent 60%), linear-gradient(180deg, #13171a, #0f1113);
}
.tc-head { font-family: var(--font-display); font-size: 21px; font-weight: 750; letter-spacing: -.02em; }
.tc-dots i { width: 13px; height: 13px; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.03); }
.tc-dots i.on { background: radial-gradient(circle at 35% 30%, #7ff0b8, #22a866); border-color: transparent; box-shadow: 0 0 8px rgba(60,220,140,.55); }
.tc-btns .btn { padding: .8em 1em; font-size: 15px; }
.plist { background: linear-gradient(180deg, #14161a, #0f1114); overflow: hidden; }
.prow { padding: 11px 18px; border-top-color: rgba(255,255,255,.045); }
.prow.head { font-size: 11px; letter-spacing: .14em; color: #8a929e; background: rgba(255,255,255,.025); padding-top: 12px; padding-bottom: 12px; }
@media (hover: hover) { .prow:not(.head):hover { background: rgba(255,255,255,.025); } }
.prow.me, #lobby .prow.me { background: linear-gradient(90deg, rgba(255,90,42,.12), rgba(255,90,42,.02) 60%); box-shadow: inset 3px 0 0 var(--fire1); }
.pr-rank { font-weight: 700; }
.pr-badge, #lobby .pr-badge { background: var(--fire-grad); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 10.5px; letter-spacing: .04em; }
.pr-chips { font-weight: 800; }
.pr-give input, .pr-give .btn.small { border-radius: 9px; }

/* ---------- pencereler ---------- */
.modal { background: rgba(3,4,6,.62); backdrop-filter: blur(6px); }
.modal-card {
  border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  background: radial-gradient(ellipse 90% 50% at 50% 0%, rgba(255,90,40,.09), transparent 70%), linear-gradient(180deg, #17191e, #111316);
}
.modal-card h3 { font-family: var(--font-display); font-size: 20px; letter-spacing: -.02em; }
#blindPresets .btn.on { background: var(--fire-grad); color: #fff; }
.toast { border-radius: 14px; border-left: 3px solid var(--fire1); background: linear-gradient(180deg, #1d2027, #16181d); }
.chat-panel { border-radius: 18px; background: linear-gradient(180deg, rgba(23,25,30,.97), rgba(15,16,19,.97)); box-shadow: var(--shadow-lg); }

/* ---------- masa ---------- */
.rail {
  background: linear-gradient(180deg, #2a2d33 0%, #17191d 45%, #0d0e10 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -.5em 1em rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.6), 0 1.8em 4em rgba(0,0,0,.65);
}
.wood { background: linear-gradient(180deg, rgba(255,120,70,.5), rgba(150,20,10,.3)); } /* çuhanın çevresinde ince ateş çizgisi */
.felt {
  background:
    radial-gradient(ellipse 55% 50% at 50% 40%, rgba(255,255,255,.07), transparent 70%),
    radial-gradient(ellipse 85% 80% at 50% 45%, #1d7a55 0%, #156246 42%, #0f4a35 75%, #0a3426 100%);
  box-shadow: inset 0 0 0 .1em rgba(0,0,0,.35), inset 0 0 4em rgba(0,0,0,.55);
}
.bet-line { border-color: rgba(255,255,255,.07); }
.plate { background: linear-gradient(180deg, rgba(26,28,34,.95), rgba(14,15,18,.95)); border-color: rgba(255,255,255,.09); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 .5em 1.4em rgba(0,0,0,.5); }
.seat.turn .plate { border-color: var(--fire1); box-shadow: 0 0 0 .15em rgba(255,90,42,.28), 0 0 1.6em rgba(255,80,30,.35), 0 .5em 1.4em rgba(0,0,0,.5); }
.seat.winner .plate { border-color: #ffb08a; }
@keyframes glow { from { box-shadow: 0 0 .4em rgba(255,110,60,.3); } to { box-shadow: 0 0 1.8em rgba(255,110,60,.75); } }
.timer i { background: linear-gradient(90deg, #ff8a4c, #ff5a2a); }
.tag.raise, .tag.bet { background: rgba(255,90,42,.2); color: #ffb293; }
.pre-opt.on { border-color: var(--fire1); background: var(--ember-soft); }
.pre-opt.on i { background: var(--fire1); border-color: var(--fire1); }
.raise-box { border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)); }
.win-splash { border-color: rgba(255,120,70,.6); box-shadow: 0 0 0 4px rgba(255,90,42,.1), 0 0 60px rgba(255,80,30,.3), 0 20px 50px rgba(0,0,0,.55); }
.ws-title { background: linear-gradient(180deg, #ffd0b5, #ff6a2b); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (max-width: 720px) {
  .lobby-body { padding: 18px 14px 32px; }
  .acct-card { padding: 18px; }
  .ac-chips { font-size: 34px; }
  .join-card { padding: 34px 20px 26px; }
  .logo { font-size: 32px; }
}

/* Masadaki "← Lobi" düğmesi: ateş kırmızısı */
#game .topbar .btn.small[data-a="exit"] { background: var(--fire-grad); color: #fff; border: 1px solid rgba(255,150,110,.35); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 6px 18px -6px rgba(230,40,15,.65); text-shadow: 0 1px 1px rgba(80,0,0,.35); }
#game .topbar .btn.small[data-a="exit"]:hover { background: linear-gradient(180deg, #ff7748 0%, #ea3216 55%, #c4180d 100%); }

/* ================= ÇİPLER v2: temiz, kumarhane çipi görünümü =================
   Yan kenar: düz renk + seyrek, iri beyaz kakmalar + silindir gölgesi.
   Üst yüz yalnızca yığının en üstündeki çipte görünür (her çipte yüz olunca kalabalık duruyordu). */
.stacks { gap: .18em; filter: drop-shadow(0 .18em .16em rgba(0,0,0,.5)); }
.pchip {
  background:
    /* silindir ışığı: ortası parlak, iki yanı koyu */
    linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 22%, rgba(255,255,255,.18) 48%, rgba(0,0,0,0) 74%, rgba(0,0,0,.45) 100%),
    /* alt kenar biraz daha koyu */
    linear-gradient(rgba(0,0,0,0) 55%, rgba(0,0,0,.3)),
    /* seyrek kakmalar: renk .42em, beyaz .16em */
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--c) 88%, #000) 0 .34em, var(--s) .34em .5em);
  box-shadow: inset 0 -.03em 0 rgba(0,0,0,.45), 0 .02em .03em rgba(0,0,0,.35);
}
.pchip::after { content: none; }
.pchip:last-child::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; translate: 0 -.2em;
  background:
    /* parlama */
    radial-gradient(ellipse 55% 45% at 36% 30%, rgba(255,255,255,.32), transparent 70%),
    /* orta göbek: açık ton, ince beyaz çizgiyle çevrili */
    radial-gradient(ellipse closest-side, color-mix(in srgb, var(--c) 78%, #fff) 0 44%, var(--s) 45% 49%, var(--c) 50% 70%, transparent 71%),
    /* dış halka: 6 eşit kakma */
    repeating-conic-gradient(from 15deg, var(--c) 0 42deg, var(--s) 42deg 60deg);
  box-shadow: inset 0 0 0 .04em rgba(0,0,0,.35), inset 0 -.06em .06em rgba(0,0,0,.25);
}
.fly-chip {
  background:
    radial-gradient(ellipse 55% 55% at 36% 30%, rgba(255,255,255,.35), transparent 70%),
    radial-gradient(circle closest-side, color-mix(in srgb, var(--c, #d8263a) 78%, #fff) 0 44%, var(--s, #f2eee4) 45% 49%, var(--c, #d8263a) 50% 70%, transparent 71%),
    repeating-conic-gradient(from 15deg, var(--c, #d8263a) 0 42deg, var(--s, #f2eee4) 42deg 60deg);
  box-shadow: 0 .3em .55em rgba(0,0,0,.45), inset 0 0 0 .06em rgba(0,0,0,.35);
}

/* ================= ÇİPLER v3: üstten bakınca gerçek çip (kakmalar, iç halka, takım sembolü) =================
   Yan kenar: çip rengi üzerinde beyaz kakmalar, silindir gölgesiyle kıvrımlı görünür; çipler arasında ince koyu çizgi.
   Üst yüz yalnızca en üstteki çipte: ::before zemin (renk + ışık), ::after beyaz desen (maske SVG). */
.stacks { gap: .14em; filter: drop-shadow(0 .2em .18em rgba(0,0,0,.55)); }
.stack { width: 1.8em; }
.pchip {
  width: 1.8em; height: 1.05em; left: 0 !important;
  background:
    linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.12) 14%, rgba(255,255,255,.22) 42%, rgba(255,255,255,.08) 58%, rgba(0,0,0,.12) 84%, rgba(0,0,0,.55) 100%),
    linear-gradient(rgba(255,255,255,0) 50%, rgba(0,0,0,.35) 100%),
    repeating-linear-gradient(90deg, var(--c) 0 .3em, var(--s) .3em .43em);
  background-position: 0 0, 0 0, .08em 0;
  box-shadow: inset 0 -.035em 0 rgba(0,0,0,.55), 0 .015em 0 rgba(0,0,0,.4);
}
.pchip::before, .pchip::after { content: none; }
.pchip:last-child::before, .pchip:last-child::after, .fly-chip::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; translate: 0 -.21em;
}
.pchip:last-child::before {
  background:
    radial-gradient(ellipse 60% 50% at 35% 28%, rgba(255,255,255,.35), transparent 70%),
    radial-gradient(ellipse closest-side, transparent 88%, rgba(0,0,0,.22) 100%),
    var(--c);
  box-shadow: inset 0 0 0 .035em rgba(0,0,0,.35);
}
.pchip:last-child::after, .fly-chip::after {
  background: var(--s);
  -webkit-mask: var(--suit) center / 100% 100% no-repeat; mask: var(--suit) center / 100% 100% no-repeat;
}
.fly-chip {
  width: 1.6em; height: 1.6em; border: none;
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.35), transparent 60%), var(--c, #d8263a);
  box-shadow: 0 .3em .55em rgba(0,0,0,.45), inset 0 0 0 .06em rgba(0,0,0,.35);
}
.fly-chip::after { translate: none; }
.stack, .fly-chip { --suit: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%20100'%3E%3Cg%20fill%3D'%23fff'%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(22.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(67.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(112.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(157.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(202.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(247.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(292.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(337.5%2050%2050)'%2F%3E%3Ccircle%20cx%3D'50'%20cy%3D'50'%20r%3D'33'%20fill%3D'none'%20stroke%3D'%23fff'%20stroke-width%3D'3.2'%2F%3E%3Cpath%20d%3D'M50%2031C44%2041%2034%2045%2036%2055C37.5%2062%2045.5%2062.5%2048%2057L45%2068H55L52%2057C54.5%2062.5%2062.5%2062%2064%2055C66%2045%2056%2041%2050%2031Z'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
.su-h { --suit: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%20100'%3E%3Cg%20fill%3D'%23fff'%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(22.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(67.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(112.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(157.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(202.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(247.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(292.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(337.5%2050%2050)'%2F%3E%3Ccircle%20cx%3D'50'%20cy%3D'50'%20r%3D'33'%20fill%3D'none'%20stroke%3D'%23fff'%20stroke-width%3D'3.2'%2F%3E%3Cpath%20d%3D'M50%2067C30%2053%2033%2036%2043%2037.5C47.5%2038%2050%2042%2050%2045C50%2042%2052.5%2038%2057%2037.5C67%2036%2070%2053%2050%2067Z'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
.su-d { --suit: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%20100'%3E%3Cg%20fill%3D'%23fff'%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(22.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(67.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(112.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(157.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(202.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(247.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(292.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(337.5%2050%2050)'%2F%3E%3Ccircle%20cx%3D'50'%20cy%3D'50'%20r%3D'33'%20fill%3D'none'%20stroke%3D'%23fff'%20stroke-width%3D'3.2'%2F%3E%3Cpath%20d%3D'M50%2032L63%2050L50%2068L37%2050Z'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
.su-s { --suit: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%20100'%3E%3Cg%20fill%3D'%23fff'%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(22.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(67.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(112.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(157.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(202.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(247.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(292.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(337.5%2050%2050)'%2F%3E%3Ccircle%20cx%3D'50'%20cy%3D'50'%20r%3D'33'%20fill%3D'none'%20stroke%3D'%23fff'%20stroke-width%3D'3.2'%2F%3E%3Cpath%20d%3D'M50%2031C44%2041%2034%2045%2036%2055C37.5%2062%2045.5%2062.5%2048%2057L45%2068H55L52%2057C54.5%2062.5%2062.5%2062%2064%2055C66%2045%2056%2041%2050%2031Z'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
.su-c { --suit: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%20100'%3E%3Cg%20fill%3D'%23fff'%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(22.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(67.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(112.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(157.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(202.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(247.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(292.5%2050%2050)'%2F%3E%3Crect%20x%3D'44'%20y%3D'1'%20width%3D'12'%20height%3D'12'%20rx%3D'1.5'%20transform%3D'rotate(337.5%2050%2050)'%2F%3E%3Ccircle%20cx%3D'50'%20cy%3D'50'%20r%3D'33'%20fill%3D'none'%20stroke%3D'%23fff'%20stroke-width%3D'3.2'%2F%3E%3Ccircle%20cx%3D'50'%20cy%3D'40'%20r%3D'7.5'%2F%3E%3Ccircle%20cx%3D'40.5'%20cy%3D'53'%20r%3D'7.5'%2F%3E%3Ccircle%20cx%3D'59.5'%20cy%3D'53'%20r%3D'7.5'%2F%3E%3Cpath%20d%3D'M48%2050L45%2068H55L52%2050Z'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }

/* ================= ÇİPLER v4: gönderilen görseldeki düz (flat) tasarım =================
   Yeşil karo, kırmızı kupa, siyah maça, lacivert sinek. Desen beyaz, sembol çipin renginde. */
.pchip:last-child::before {
  background: var(--c);
  box-shadow: inset 0 0 0 .03em rgba(0,0,0,.25);
}
.pchip:last-child::after, .fly-chip::after { background: #fff; }
.pchip {
  background:
    linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.08) 16%, rgba(255,255,255,.12) 45%, rgba(0,0,0,.08) 80%, rgba(0,0,0,.45) 100%),
    repeating-linear-gradient(90deg, var(--c) 0 .26em, #fff .26em .42em);
  background-position: 0 0, .1em 0;
}
.fly-chip { background: var(--c, #e8473b); box-shadow: 0 .3em .55em rgba(0,0,0,.45); }
.stack, .fly-chip { --suit: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%20100'%3E%3Cdefs%3E%3CclipPath%20id%3D'o'%3E%3Ccircle%20cx%3D'50'%20cy%3D'50'%20r%3D'50'%2F%3E%3C%2FclipPath%3E%3Cmask%20id%3D'm'%3E%3Crect%20width%3D'100'%20height%3D'100'%20fill%3D'%23fff'%2F%3E%3Cg%20fill%3D'%23000'%3E%3Cpath%20d%3D'M50%2038C46%2045%2039.5%2047.5%2040.5%2054C41.3%2058.5%2046.5%2059%2048.4%2055.6L46.5%2062.5H53.5L51.6%2055.6C53.5%2059%2058.7%2058.5%2059.5%2054C60.5%2047.5%2054%2045%2050%2038Z'%2F%3E%3C%2Fg%3E%3C%2Fmask%3E%3C%2Fdefs%3E%3Cg%20fill%3D'%23fff'%3E%3Cg%20clip-path%3D'url(%23o)'%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(0%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(45%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(90%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(135%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(180%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(225%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(270%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(315%2050%2050)'%2F%3E%3C%2Fg%3E%3Ccircle%20cx%3D'50'%20cy%3D'50'%20r%3D'35.5'%20fill%3D'none'%20stroke%3D'%23fff'%20stroke-width%3D'3'%2F%3E%3Ccircle%20cx%3D'50'%20cy%3D'50'%20r%3D'26'%20mask%3D'url(%23m)'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
.su-h { --suit: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%20100'%3E%3Cdefs%3E%3CclipPath%20id%3D'o'%3E%3Ccircle%20cx%3D'50'%20cy%3D'50'%20r%3D'50'%2F%3E%3C%2FclipPath%3E%3Cmask%20id%3D'm'%3E%3Crect%20width%3D'100'%20height%3D'100'%20fill%3D'%23fff'%2F%3E%3Cg%20fill%3D'%23000'%3E%3Cpath%20d%3D'M50%2063C37%2054%2038.5%2043%2044.5%2042.5C47.5%2042.3%2049.3%2044.5%2050%2046.5C50.7%2044.5%2052.5%2042.3%2055.5%2042.5C61.5%2043%2063%2054%2050%2063Z'%2F%3E%3C%2Fg%3E%3C%2Fmask%3E%3C%2Fdefs%3E%3Cg%20fill%3D'%23fff'%3E%3Cg%20clip-path%3D'url(%23o)'%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(0%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(45%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(90%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(135%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(180%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(225%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(270%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(315%2050%2050)'%2F%3E%3C%2Fg%3E%3Ccircle%20cx%3D'50'%20cy%3D'50'%20r%3D'35.5'%20fill%3D'none'%20stroke%3D'%23fff'%20stroke-width%3D'3'%2F%3E%3Ccircle%20cx%3D'50'%20cy%3D'50'%20r%3D'26'%20mask%3D'url(%23m)'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
.su-d { --suit: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%20100'%3E%3Cdefs%3E%3CclipPath%20id%3D'o'%3E%3Ccircle%20cx%3D'50'%20cy%3D'50'%20r%3D'50'%2F%3E%3C%2FclipPath%3E%3Cmask%20id%3D'm'%3E%3Crect%20width%3D'100'%20height%3D'100'%20fill%3D'%23fff'%2F%3E%3Cg%20fill%3D'%23000'%3E%3Cpath%20d%3D'M50%2038L59.5%2050L50%2062L40.5%2050Z'%2F%3E%3C%2Fg%3E%3C%2Fmask%3E%3C%2Fdefs%3E%3Cg%20fill%3D'%23fff'%3E%3Cg%20clip-path%3D'url(%23o)'%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(0%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(45%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(90%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(135%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(180%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(225%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(270%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(315%2050%2050)'%2F%3E%3C%2Fg%3E%3Ccircle%20cx%3D'50'%20cy%3D'50'%20r%3D'35.5'%20fill%3D'none'%20stroke%3D'%23fff'%20stroke-width%3D'3'%2F%3E%3Ccircle%20cx%3D'50'%20cy%3D'50'%20r%3D'26'%20mask%3D'url(%23m)'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
.su-s { --suit: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%20100'%3E%3Cdefs%3E%3CclipPath%20id%3D'o'%3E%3Ccircle%20cx%3D'50'%20cy%3D'50'%20r%3D'50'%2F%3E%3C%2FclipPath%3E%3Cmask%20id%3D'm'%3E%3Crect%20width%3D'100'%20height%3D'100'%20fill%3D'%23fff'%2F%3E%3Cg%20fill%3D'%23000'%3E%3Cpath%20d%3D'M50%2038C46%2045%2039.5%2047.5%2040.5%2054C41.3%2058.5%2046.5%2059%2048.4%2055.6L46.5%2062.5H53.5L51.6%2055.6C53.5%2059%2058.7%2058.5%2059.5%2054C60.5%2047.5%2054%2045%2050%2038Z'%2F%3E%3C%2Fg%3E%3C%2Fmask%3E%3C%2Fdefs%3E%3Cg%20fill%3D'%23fff'%3E%3Cg%20clip-path%3D'url(%23o)'%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(0%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(45%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(90%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(135%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(180%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(225%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(270%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(315%2050%2050)'%2F%3E%3C%2Fg%3E%3Ccircle%20cx%3D'50'%20cy%3D'50'%20r%3D'35.5'%20fill%3D'none'%20stroke%3D'%23fff'%20stroke-width%3D'3'%2F%3E%3Ccircle%20cx%3D'50'%20cy%3D'50'%20r%3D'26'%20mask%3D'url(%23m)'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
.su-c { --suit: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%20100'%3E%3Cdefs%3E%3CclipPath%20id%3D'o'%3E%3Ccircle%20cx%3D'50'%20cy%3D'50'%20r%3D'50'%2F%3E%3C%2FclipPath%3E%3Cmask%20id%3D'm'%3E%3Crect%20width%3D'100'%20height%3D'100'%20fill%3D'%23fff'%2F%3E%3Cg%20fill%3D'%23000'%3E%3Ccircle%20cx%3D'50'%20cy%3D'45'%20r%3D'5'%2F%3E%3Ccircle%20cx%3D'43.8'%20cy%3D'53'%20r%3D'5'%2F%3E%3Ccircle%20cx%3D'56.2'%20cy%3D'53'%20r%3D'5'%2F%3E%3Cpath%20d%3D'M48.6%2051L46.5%2062.5H53.5L51.4%2051Z'%2F%3E%3C%2Fg%3E%3C%2Fmask%3E%3C%2Fdefs%3E%3Cg%20fill%3D'%23fff'%3E%3Cg%20clip-path%3D'url(%23o)'%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(0%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(45%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(90%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(135%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(180%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(225%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(270%2050%2050)'%2F%3E%3Crect%20x%3D'43.5'%20y%3D'-1'%20width%3D'13'%20height%3D'13.5'%20transform%3D'rotate(315%2050%2050)'%2F%3E%3C%2Fg%3E%3Ccircle%20cx%3D'50'%20cy%3D'50'%20r%3D'35.5'%20fill%3D'none'%20stroke%3D'%23fff'%20stroke-width%3D'3'%2F%3E%3Ccircle%20cx%3D'50'%20cy%3D'50'%20r%3D'26'%20mask%3D'url(%23m)'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
/* Çip yüzü daha yukarıdan görünür: daire daha az basık, desen görseldeki gibi okunur */
.pchip { height: 1.35em; }
.pchip:last-child::before, .pchip:last-child::after { translate: 0 -.22em; }

/* ================= ÇİPLER v5: masaüstündeki "Poker Fişleri" resimleri =================
   Yığında açılı resim: her fiş bir öncekinin CHIP_T kadar üstünde; alttakilerin yalnızca kenarı görünür.
   Uçan çiplerde üstten resim. Eski CSS çizimi (şerit, maske) kapatıldı. */
.ck-yesil { --aci: url(/cipler/aci-yesil.webp); --ust: url(/cipler/ust-yesil.webp); }
.ck-kirmizi { --aci: url(/cipler/aci-kirmizi.webp); --ust: url(/cipler/ust-kirmizi.webp); }
.ck-siyah { --aci: url(/cipler/aci-siyah.webp); --ust: url(/cipler/ust-siyah.webp); }
.ck-lacivert { --aci: url(/cipler/aci-lacivert.webp); --ust: url(/cipler/ust-lacivert.webp); }
.ck-sari { --aci: url(/cipler/aci-sari.webp); --ust: url(/cipler/ust-sari.webp); }
.stacks { gap: .1em; filter: drop-shadow(0 .16em .14em rgba(0,0,0,.5)); }
.stack { width: 1.8em; }
.pchip, .pchip:last-child {
  width: 1.8em; height: 1.31em; left: 0 !important; border-radius: 0; box-shadow: none;
  background: var(--aci) center / 100% 100% no-repeat;
}
.pchip::before, .pchip::after, .pchip:last-child::before, .pchip:last-child::after { content: none; }
.fly-chip {
  width: 1.6em; height: 1.6em; border: none; border-radius: 50%;
  background: var(--ust, url(/cipler/ust-kirmizi.webp)) center / 100% 100% no-repeat;
  box-shadow: 0 .3em .55em rgba(0,0,0,.45);
}
.fly-chip::after { content: none; }

/* Sohbette krupiyenin mesajları: ateş tonlu kenar, adı turuncu */
.cp-msg.cr { background: linear-gradient(90deg, rgba(255,90,42,.14), rgba(255,90,42,.05)); box-shadow: inset 2px 0 0 var(--fire1); }
.cp-msg.cr .cp-name { color: #ff9a6b; }

/* ================= KUMARHANE ARKA PLANI =================
   Masa ekranında salon (slot makineleri, avizeler, halı) net; giriş ve lobide daha karanlık, yazılar okunur kalsın. */
body, body:has(#game:not(.hidden)) {
  background: linear-gradient(rgba(6,4,8,.78), rgba(6,4,8,.86)), url(/arkaplan-casino.svg) center / cover no-repeat fixed, #07040a;
}
body:has(#game:not(.hidden)) {
  background: linear-gradient(rgba(6,4,8,.18), rgba(6,4,8,.42)), url(/arkaplan-casino.svg) center / cover no-repeat fixed, #07040a;
}
body:has(#join:not(.hidden)) {
  background: linear-gradient(rgba(6,4,8,.5), rgba(6,4,8,.7)), url(/arkaplan-casino.svg) center / cover no-repeat fixed, #07040a;
}

/* Pot etiketi: tek parça hap; içteki sayının ayrı siyah arka planı yok */
.pot > span {
  display: inline-flex; align-items: baseline; gap: .45em; padding: .3em 1em;
  background: linear-gradient(180deg, rgba(10,12,14,.62), rgba(10,12,14,.48)); border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 .3em .8em rgba(0,0,0,.3);
  color: rgba(255,255,255,.72); font-weight: 600; letter-spacing: .02em;
}
.pot > span span { background: none; border: 0; padding: 0; border-radius: 0; box-shadow: none; text-shadow: none; color: #ffb07a; font-weight: 800; font-size: 1.08em; letter-spacing: 0; }
/* Arka plan daha sakin: masa ekranında biraz daha karartılır */
body:has(#game:not(.hidden)) {
  background: linear-gradient(rgba(6,4,8,.32), rgba(6,4,8,.55)), url(/arkaplan-casino.svg) center / cover no-repeat fixed, #07040a;
}

/* ================= PROFİL: görünen ad + profil resmi ================= */
.avatar .av-img, .ac-av .av-img, .pr-av .av-img, .pf-av .av-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; -webkit-user-drag: none; user-select: none; }
.avatar.has-img { background: #111 !important; }
.avatar.has-video > .av-img { display: none; }
/* lobi hesap kartı: resim + ad + düzenle */
.ac-profile { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ac-av { flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-weight: 800; font-size: 22px; color: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,.12), 0 0 0 4px rgba(255,90,42,.35); }
.ac-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.ac-who b { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-who small { color: var(--muted); font-size: 12.5px; }
.ac-profile .btn { margin-left: auto; flex: none; }
/* oyuncu listesindeki küçük resim */
.pr-av { flex: none; width: 26px; height: 26px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; }
/* Profilim penceresi */
.pf-card { width: min(400px, 92vw); }
.pf-top { display: flex; gap: 16px; align-items: center; }
.pf-av { flex: none; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: 40px; font-weight: 800; color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.12), 0 0 0 6px rgba(255,90,42,.35), 0 10px 24px rgba(0,0,0,.45); }
.pf-av-btns { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; min-width: 0; }
.pf-av-btns .hint { font-size: 12px; }
.pf-label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.pf-label input { width: 100%; }
@media (max-width: 720px) { .ac-profile .btn { padding: .35em .6em; } }
.pf-label { text-align: left; align-items: stretch; }
#pfHint { text-align: left; }

/* Lobideki beyaz kaydırma çubuğu gizli (sayfa yine kaydırılır); diğer kaydırma alanlarında ince, koyu çubuk */
.lobby-body { scrollbar-width: none; }
.lobby-body::-webkit-scrollbar { display: none; }
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }

/* ================= HESAPLAR: admin açar, ilk girişte yeni şifre ================= */
.setup-note { margin: 0 auto 14px; max-width: 340px; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; text-align: left;
  background: rgba(255,90,42,.1); border: 1px solid rgba(255,90,42,.28); color: #ffc3a6; }
#pwScreen { display: grid; place-items: center; }
#pwScreen:not(.hidden) .join-card { animation: rise-in .55s var(--ease-out) backwards .05s; }
.pw-icon { font-size: 44px; line-height: 1; margin-bottom: 6px; }
.pw-title { margin: 0; font-family: var(--font-display); font-size: 26px; letter-spacing: -.02em; }
#pwScreen .sub { max-width: 340px; margin: 10px auto 22px; line-height: 1.5; }
#pwForm { display: flex; flex-direction: column; gap: 10px; width: min(320px, 80vw); margin: 0 auto; }
#pwForm input, #pwForm .btn { width: 100%; font-size: 17px; }
#pwForm .btn { padding: .75em; margin-top: 4px; }
.pw-user { text-align: center; font-weight: 700; color: var(--muted); background: transparent !important; border-color: transparent !important; box-shadow: none !important; pointer-events: none; }
#pwLogout { color: var(--muted); }
.users-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.users-head h2 { margin-bottom: 6px; }
.plist.admin .prow { grid-template-columns: 2em minmax(0, 1fr) 7.5em 6.5em 20em; }
.pr-give [data-reset] { padding-left: .55em; padding-right: .55em; }
.ac-card { width: min(400px, 92vw); text-align: left; }
.ac-card .pf-label { margin-top: 10px; }
.ac-pw-row { display: flex; gap: 8px; }
.ac-pw-row input { flex: 1; min-width: 0; font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; }
.ac-ok { font-weight: 600; margin-bottom: 10px; }
.ac-cred { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: baseline; padding: 12px 14px; margin-bottom: 10px;
  border-radius: 12px; background: rgba(0,0,0,.3); border: 1px solid var(--line); }
.ac-cred span { color: var(--muted); font-size: 13px; }
.ac-cred b { font-size: 17px; }
.ac-cred .mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: .05em; color: #ffb07a; }
.pf-pass { margin: 4px 0 2px; text-align: left; }
.pf-pass summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: 14px; padding: 4px 0; }
.pf-pass[open] { display: flex; flex-direction: column; gap: 8px; }
.pf-pass[open] summary { margin-bottom: 2px; }
.pf-pass .btn { align-self: flex-start; }
@media (max-width: 720px) {
  .plist.admin .prow { grid-template-columns: 1.6em minmax(0, 1fr) auto; }
  .users-head .btn { padding: .4em .7em; }
}
.ac-card .pf-label { display: flex; flex-direction: column; align-items: stretch; text-align: left; }
.ac-card .ac-pw-row { width: 100%; }
.ac-card #acUser { width: 100%; }

/* Giriş: alt yazı kaldırıldı, logo ile form arasında boşluk; en alttaki ipucu biraz daha aşağıda */
#join .logo { margin-bottom: 28px; }
#join .auth-hint, #pwScreen .auth-hint { margin-top: 22px; }

/* Konuşurken oyuncu resminin etrafında yeşil çerçeve yok */
.avatar.speaking, .spec.speaking { box-shadow: none; border-color: rgba(255,255,255,.18); }

/* Lobideki masa kartı: üstüne gelince kaymaz; içindeki düğmeler sadece çok az büyür */
@media (hover: hover) {
  .tcard:hover { transform: none; }
  .tc-btns .btn:hover:not(:disabled) { transform: scale(1.03); }
}

/* Kamera katmanı: videolar oyuncu resim kutularının üstüne konumlanır (koltuklar yeniden çizilince yerinden oynamaz) */
.vid-layer { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.vid-layer .vid { position: absolute; display: none; object-fit: cover; background: #000; transition: opacity .3s; }
/* "Bet" hamle etiketi (bahis kutusunun .bet stilinden ayrı) */
.tag.act-bet { background: rgba(255,90,42,.2); color: #ffb293; }

/* yönetici satır düğmeleri: Gönder, Al, 🔑, 👑, Sil */
.plist.admin .prow { grid-template-columns: 2em minmax(0, 1fr) 7.5em 6.5em 22.5em; }
.pr-give [data-crown] { padding-left: .55em; padding-right: .55em; }
@media (max-width: 720px) { .plist.admin .prow { grid-template-columns: 1.6em minmax(0, 1fr) auto; } .pr-give { flex-wrap: wrap; } }

/* Onay penceresi */
.cf-card { width: min(380px, 92vw); text-align: center; }
.cf-icon { font-size: 40px; line-height: 1; margin-bottom: 4px; }
.cf-text { font-size: 14px; line-height: 1.55; color: #c7ccd4; margin: 4px 0 6px; }
.cf-text b { color: #fff; }
.cf-card .row { justify-content: center; }

/* ===== OKUNURLUK: masadaki yazılar ve kart numaraları daha iri ===== */
.pname { font-size: 1.3em; }                 /* oyuncu adı (önce 1.05em) */
.pchips { font-size: 1.25em; }               /* oyuncunun çipi (önce 1em) */
.pline { font-size: 1em; height: 1.3em; }    /* Fold / Call / el adı etiketi (önce .85em) */
.seat.empty .status { font-size: 1.15em; }   /* Boş / Otur */
.pot > span { font-size: 1.25em; }           /* Pot yazısı (sadece yazı; yanındaki çipler aynı boyda) */
.bet .amt { font-size: 1.24em; }             /* oyuncunun önündeki bahis miktarı (çipler aynı boyda) */
.table.phone .pname { font-size: 1.32em; }
.table.phone .pchips { font-size: 1.27em; }
/* Kart köşesindeki rakam ve simge: kalın, iri, net (uzaktan ve küçük ekranda okunur) */
.cidx {
  font-family: "Arial Black", "Segoe UI Black", "Helvetica Neue", Arial, sans-serif; font-weight: 900;
  font-size: 30cqw; min-width: 33%; letter-spacing: -.04em; color: #0b0b0b;
}
.cidx i { font-size: 1em; margin-top: .02em; }
.cidx.r { color: #d0101f; }
@container (max-width: 89px) {
  .cidx { font-size: 42cqw; min-width: 52%; min-height: 40%; }
}
/* İri isimler kesilmesin diye oyuncu kutuları biraz daha geniş */
.seat { width: 15em; }
/* Dikey ve yatay telefonda koltuk genişliği aynı kalır (yer dar); orada yazılar biraz daha az büyür */
.table.portrait .pname { font-size: 1.18em; }
.table.portrait .pchips { font-size: 1.15em; }
.table.phone .bet .amt { font-size: 1.05em; }

/* Masada beliren bilgi cümleleri daha iri: kazanan satırı / duyuru, krupiye ve oyuncu konuşma balonları, alttaki bilgi yazısı */
.banner { font-size: 1.5em; }
.table.portrait .banner { font-size: 1.2em; } /* dar dikey ekranda kazanan satırı kesilmesin */
.cr-bubble { font-size: 1.4em; max-width: 12.3em; } /* genişlik aynı (masaya göre), yazı iri: uzun cümle alt satıra geçer */
.bubble { font-size: 1.45em; max-width: 14em; }
.actionbar .msg { font-size: 18px; }
@media (max-width: 900px) { .actionbar .msg { font-size: 14px; } }

/* ===== TAM EKRAN DÜĞMESİ ===== */
.topbar .btn.small.fs-btn { color: var(--text); }
.topbar .btn.small.media.fs-btn { border-color: var(--line-hi, var(--line)); background: transparent; }
.topbar .btn.small.fs-btn svg { display: block; transition: transform .15s; }
@media (hover: hover) { .topbar .btn.small.fs-btn:hover svg { transform: scale(1.12); } }
/* Dar telefonda tam ekran düğmesi eklenince üst çubuk 3 satıra çıkmasın */
@media (max-width: 440px) {
  #game .topbar { gap: 6px; padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); }
  #game .topbar .btn.small.media { width: 32px; }
}
/* Tam ekrandayken "Küçült" düğmesi belirgin */
.topbar .btn.small.fs-btn.on, .topbar .btn.small.media.fs-btn.on { width: auto; color: #1a1208; background: var(--gold, #e9bc5a); border-color: var(--gold, #e9bc5a); font-weight: 700; display: inline-flex; align-items: center; gap: .3em; }
.topbar .btn.small.fs-btn.on:hover { filter: brightness(1.08); }
@media (max-width: 440px) { #game .topbar .btn.small.media.fs-btn.on { width: 32px; } }
.topbar .btn.small.fs-btn.on { min-width: 34px; height: 32px; padding: 0 .55em; justify-content: center; }
@media (min-width: 721px) { .topbar .btn.small.fs-btn.on { font-size: 13px; } .topbar .btn.small.fs-btn.on .lbl { display: inline; font-size: 13px; } }
@media (max-width: 440px) { #game .topbar .btn.small.media.fs-btn.on { min-width: 32px; padding: 0; } }
/* Tam ekran rehberi */
.fs-card { width: min(380px, 92vw); text-align: center; }
.fs-steps { text-align: left; margin: 4px 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.4; }
.fs-steps li::marker { color: var(--gold); font-weight: 800; }
.fs-note { font-size: 13px; }
.fs-card .row { justify-content: center; }
/* "Küçült" her ekranda okunur olsun (eski şeffaf düğme kuralını ezer) */
#lobby .topbar .btn.small.fs-btn.on, #game .topbar .btn.small.fs-btn.on {
  background: linear-gradient(180deg, #f6d27a 0%, #e9bc5a 55%, #c99a3a 100%); color: #1a1208; border: 1px solid #f6d27a;
  text-shadow: none; box-shadow: 0 4px 14px -4px rgba(233,188,90,.6); outline: none;
}
#lobby .topbar .btn.small.fs-btn.on:hover, #game .topbar .btn.small.fs-btn.on:hover { filter: brightness(1.08); background: linear-gradient(180deg, #f6d27a 0%, #e9bc5a 55%, #c99a3a 100%); }
#lobby .topbar .btn.small.fs-btn.on svg, #game .topbar .btn.small.fs-btn.on svg { stroke: #1a1208; }

/* ================= CANLI TEMA: parlak, net, uyumlu renkler =================
   Lacivert-mor salon ışığı, parlak zümrüt çuha, altın kenar, cam gibi parlak oyuncu kutuları,
   tok ve parlak hamle düğmeleri. Bütün sayılar beyaz/altın ve koyu gölgeli: her zeminde net okunur. */
:root { --vivid-gold: #ffd25a; --vivid-gold2: #f0a91c; --vivid-navy: #1c2266; --vivid-navy2: #10143f; }

/* salon: masa ekranında karanlık yerine lacivert-mor, ortada spot ışığı */
body:has(#game:not(.hidden)) {
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(120,110,255,.28), transparent 70%),
    linear-gradient(rgba(28,24,90,.55), rgba(10,10,40,.78)),
    url(/arkaplan-casino.svg) center / cover no-repeat fixed, #0c0d2a;
}
#game .topbar { background: linear-gradient(180deg, rgba(30,36,100,.92), rgba(18,22,66,.88)); border-bottom: 1px solid rgba(140,160,255,.25); box-shadow: 0 4px 16px rgba(0,0,20,.45); }
.table-area::after { background: radial-gradient(ellipse 80% 75% at 50% 50%, transparent 65%, rgba(5,5,30,.35) 100%); }

/* masa: parlak altın-ahşap kenar, canlı zümrüt çuha */
.table-shadow { background: rgba(0,0,20,.75); }
.rail {
  background:
    radial-gradient(ellipse 70% 40% at 50% 6%, rgba(255,240,200,.35), transparent 70%),
    linear-gradient(180deg, #7a4a1e 0%, #5a3414 45%, #3a1f0a 100%);
  box-shadow: inset 0 .3em .4em rgba(255,230,180,.35), inset 0 -.5em .9em rgba(0,0,0,.55), 0 0 0 .18em #c9913f, 0 0 0 .32em rgba(60,30,8,.9), 0 1.4em 3em rgba(0,0,30,.6);
}
.wood {
  background: linear-gradient(180deg, #ffe08a 0%, #e8b24a 30%, #b9781f 60%, #f3c766 100%);
  box-shadow: inset 0 0 0 .08em rgba(90,50,0,.6), inset 0 .12em .15em rgba(255,255,255,.6);
}
.felt {
  background:
    radial-gradient(ellipse 50% 42% at 50% 42%, rgba(255,255,255,.16), transparent 72%),
    radial-gradient(ellipse 78% 72% at 50% 45%, #3fd08a 0%, #26b06a 32%, #179450 60%, #0e773e 85%, #0a5e30 100%);
  box-shadow: inset 0 0 2.6em rgba(0,40,20,.55), inset 0 .4em .8em rgba(0,0,0,.35);
}
.bet-line { border-color: rgba(255,255,255,.22); box-shadow: 0 0 0 .5em rgba(255,255,255,.035); }

/* oyuncu kutuları: parlak lacivert cam, beyaz isim, altın çip */
.plate {
  background: linear-gradient(180deg, rgba(52,62,140,.96) 0%, rgba(30,36,96,.96) 55%, rgba(20,24,70,.97) 100%);
  border: 1px solid rgba(150,170,255,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 .4em 1.1em rgba(0,0,30,.55);
}
.pname { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.pchips { color: var(--vivid-gold); text-shadow: 0 1px 2px rgba(0,0,0,.75); }
.pchips::before { color: var(--vivid-gold2); }
.pline { color: #d8e0ff; }
.avatar { box-shadow: 0 0 0 .14em var(--vivid-gold), 0 0 .8em rgba(255,210,90,.45), 0 .25em .6em rgba(0,0,0,.5); }
.seat.turn .plate { border-color: var(--vivid-gold); box-shadow: 0 0 0 .16em rgba(255,210,90,.5), 0 0 1.6em rgba(255,200,60,.6), 0 .4em 1.1em rgba(0,0,30,.55); }
.seat.winner .plate { border-color: #7cffb2; box-shadow: 0 0 0 .16em rgba(124,255,178,.45), 0 0 1.6em rgba(80,255,160,.55); }
.timer i { background: linear-gradient(90deg, #ffe066, #ffb020); }

/* bahis ve pot: koyu hap üstünde parlak beyaz/altın sayı */
.bet .amt { background: rgba(10,14,50,.78); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,210,90,.55); text-shadow: 0 1px 2px #000; } /* kenarlık yerine gölge: boyut değişmesin, D pulu ile çakışmasın */
.pot > span { background: linear-gradient(180deg, rgba(20,24,80,.85), rgba(12,14,50,.85)); border: 1px solid rgba(255,210,90,.6); color: #fff; box-shadow: 0 0 1em rgba(255,210,90,.25), 0 .3em .8em rgba(0,0,0,.4); }
.pot > span span { color: var(--vivid-gold); text-shadow: 0 1px 2px rgba(0,0,0,.8); }
#banner, .banner { text-shadow: 0 1px 3px rgba(0,0,0,.85); }

/* kartlar: daha net beyaz, belirgin gölge */
.card { filter: saturate(1.15) contrast(1.05); }

/* hamle düğmeleri: parlak, tok (alt kenarı kalın, basınca iner) */
.actionbar .btn.big { border: 0; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.45); transition: transform .08s, filter .15s, box-shadow .08s; }
.actionbar .btn.big:hover:not(:disabled) { filter: brightness(1.1); }
.actionbar .btn.big:active:not(:disabled) { transform: translateY(3px); }
.actionbar .btn.red.big  { background: linear-gradient(180deg, #ff6b6b 0%, #ef3341 50%, #c81e30 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 4px 0 #8c0f1d, 0 8px 16px -4px rgba(230,40,60,.55); }
.actionbar .btn.blue.big { background: linear-gradient(180deg, #5aa8ff 0%, #2f7cf0 50%, #1b5cd0 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 4px 0 #103a8a, 0 8px 16px -4px rgba(40,110,240,.55); }
.actionbar .btn.gold.big { background: linear-gradient(180deg, #4fe39a 0%, #22c070 50%, #119a52 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 4px 0 #0a6434, 0 8px 16px -4px rgba(30,200,110,.55); }
.actionbar .btn.red.big:active:not(:disabled), .actionbar .btn.blue.big:active:not(:disabled), .actionbar .btn.gold.big:active:not(:disabled) { box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 0 rgba(0,0,0,.4); }
.raise-box { background: linear-gradient(180deg, rgba(40,48,120,.55), rgba(20,24,70,.55)); border-color: rgba(150,170,255,.3); }
.raise-box input[type=range] { accent-color: var(--vivid-gold); }
.actionbar .presets .btn { background: linear-gradient(180deg, #3a4598, #262e74); border-color: rgba(150,170,255,.4); color: #fff; }

/* Masa (oval) biraz küçük: oyuncular, kartlar ve yazılar aynı boyutta ve aynı yerde kalır */
.table .rail { inset: 10.5% 9.5%; }
.table .table-shadow { inset: 13% 11% 4% 11%; }
.table .bet-line { inset: 15.5% 12%; }
.table.portrait .rail { inset: 9.5% 17.5%; }
.table.portrait .table-shadow { inset: 11.5% 18.5% 4% 18.5%; }
.table.portrait .bet-line { inset: 11.5% 15%; }
.table.phone .rail { inset: 8.5% 7.5%; }

/* ================= PARLAK VE SADE: giriş, lobi ve masa aynı aydınlık tema =================
   Karanlık salon resmi yok; tek, sade, aydınlık lacivert zemin. Kartlar açık lacivert cam,
   yazılar beyaz, vurgu altın. Giriş kutuları beyaz: ne yazdığın net görünür. */
body, body:has(#join:not(.hidden)), body:has(#lobby:not(.hidden)), body:has(#pwScreen:not(.hidden)), body:has(#game:not(.hidden)) {
  background:
    radial-gradient(ellipse 75% 55% at 50% 0%, rgba(120,140,255,.45) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(90,60,200,.35) 0%, transparent 70%),
    linear-gradient(180deg, #2a3596 0%, #1d2675 45%, #141a55 100%) fixed;
  background-color: #141a55;
}
body::before { opacity: .03; }
:root { --text: #ffffff; --muted: #c9d1f5; --line: rgba(170,185,255,.28); --line-hi: rgba(190,205,255,.45); }
.hint, .sub, .ac-label, .prow.head { color: #c9d1f5; }

/* ortak kart görünümü */
.join-card, .acct-card, .tcard, .plist, .leader-card, .modal-card {
  background: linear-gradient(180deg, rgba(70,84,190,.72) 0%, rgba(44,54,140,.78) 100%);
  border: 1px solid rgba(170,185,255,.38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 14px 36px -10px rgba(5,8,40,.6);
}
.acct-card::after { color: rgba(255,255,255,.06); }
.join-card::before { background: linear-gradient(90deg, transparent, var(--vivid-gold), transparent); }
.logo { color: #fff; text-shadow: 0 2px 0 rgba(10,14,60,.6), 0 6px 22px rgba(120,140,255,.5); }
.logo span:not(.s-red) { color: var(--vivid-gold); }

/* giriş kutuları: beyaz zemin, koyu yazı */
input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=file]) {
  background: #fff; color: #141a55; border: 2px solid rgba(170,185,255,.6); border-radius: 12px;
}
input::placeholder { color: #7d86b8; }
input:focus { border-color: var(--vivid-gold); box-shadow: 0 0 0 3px rgba(255,210,90,.35); outline: none; }
.pw-user { background: transparent !important; color: #fff !important; border: 0 !important; }

/* ana düğme: parlak altın, koyu yazı */
.btn.gold, #lobby .btn.gold, #authForm .btn.gold, #pwForm .btn.gold, .modal-card .btn.gold {
  background: linear-gradient(180deg, #ffe27a 0%, #ffc93c 50%, #f0a91c 100%); color: #2a1a00; border: 0;
  text-shadow: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 4px 0 #b97a0e, 0 8px 18px -6px rgba(255,190,40,.6);
}
.btn.gold:hover, #lobby .btn.gold:hover, .modal-card .btn.gold:hover { background: linear-gradient(180deg, #ffe993 0%, #ffd252 50%, #f5b22a 100%); }
.btn.gold:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 1px 0 #b97a0e; }
.btn, .btn.blue { background: linear-gradient(180deg, rgba(90,106,215,.9), rgba(60,72,170,.9)); color: #fff; border-color: rgba(170,185,255,.45); }
.btn:hover { background: linear-gradient(180deg, rgba(104,120,230,.95), rgba(70,84,190,.95)); }
.btn.green { background: linear-gradient(180deg, #4fe39a, #1fb466); color: #fff; border: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 3px 0 #0a6434; }
#logoutBtn { background: rgba(255,90,90,.15); color: #ffd0d0; border-color: rgba(255,120,120,.5); }

/* üst çubuk: lobide de masa gibi lacivert */
.topbar, #lobby .topbar { background: linear-gradient(180deg, rgba(36,44,124,.95), rgba(26,32,100,.92)); border-bottom: 1px solid rgba(170,185,255,.3); }
.topbar .btn.small:not(.gold):not(.green):not(.red):not(.fs-btn) { background: rgba(255,255,255,.08); }

/* lobi içerikleri */
.lobby-body h2::before { background: linear-gradient(180deg, #ffe27a, #f0a91c); }
.ac-chips { background: linear-gradient(180deg, #ffe993, #ffc12e 75%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ac-stats > * { background: rgba(255,255,255,.1); border-color: rgba(170,185,255,.35); color: #fff; }
.ac-note, #lobby .ac-note { color: #fff3c4; background: rgba(255,200,60,.14); border-color: rgba(255,200,60,.45); }
.tcard { background: radial-gradient(ellipse 70% 120% at 100% 0%, rgba(60,220,140,.28), transparent 60%), linear-gradient(180deg, rgba(70,84,190,.72), rgba(44,54,140,.78)); }
.tc-dots i { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.1); }
.prow { border-top-color: rgba(170,185,255,.16); color: #fff; }
.prow.head { background: rgba(10,14,60,.25); }
@media (hover: hover) { .prow:not(.head):hover { background: rgba(255,255,255,.07); } }
.prow.me, #lobby .prow.me { background: linear-gradient(90deg, rgba(255,210,90,.22), rgba(255,210,90,.04) 60%); box-shadow: inset 3px 0 0 var(--vivid-gold); }
.prow .pr-chips, .pr-chips { color: var(--vivid-gold); }

/* masa ekranı: sade, aydınlık (salon resmi yok), masanın üstünde hafif spot ışığı */
body:has(#game:not(.hidden)) {
  background:
    radial-gradient(ellipse 65% 55% at 50% 45%, rgba(140,160,255,.35) 0%, transparent 72%),
    linear-gradient(180deg, #2a3596 0%, #1d2675 50%, #141a55 100%) fixed;
}
.table-area::after { background: none; }
.toast { background: linear-gradient(180deg, #3a46a8, #2a3488); color: #fff; border-left-color: var(--vivid-gold); }
.modal { background: rgba(10,14,50,.55); }
.actionbar .my-hand, .my-hand { color: var(--vivid-gold); text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.my-hand small { color: #dfe5ff; }
.actionbar .msg { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); }

/* ===== DAHA İRİ: oyuncu adı/çipi ve hazır miktar düğmeleri (telefonda okunmuyordu) ===== */
.pname { font-size: 1.42em; font-weight: 800; }
.pchips { font-size: 1.36em; }
.table.portrait .pname { font-size: 1.48em; }
.table.portrait .pchips { font-size: 1.42em; }
.table.phone .pname { font-size: 1.45em; }
.table.phone .pchips { font-size: 1.4em; }
.actionbar .presets .btn { font-size: 15px; font-weight: 800; padding: .4em .7em; }
@media (max-width: 720px) and (orientation: portrait) {
  .actionbar .presets .btn { font-size: 16px; min-height: 40px; padding: .2em .3em; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .actionbar .presets .btn { font-size: 13.5px; min-height: 29px; padding: .1em .15em; }
}
/* Dikey telefon: çip sayısı kesilmesin. Kutu biraz geniş, profil resmi biraz küçük, çipin önündeki nokta yok */
.table.portrait .seat { width: 14em; }
.table.portrait .plate .avatar { width: 4.6em; height: 4.6em; flex: 0 0 4.6em; }
.table.portrait .pchips::before { content: none; }
.table.portrait .pname, .table.portrait .pchips { letter-spacing: -.02em; }

/* Yeni deste (masaüstündeki "İskambil Destesi - 52 Kart"): kartın kendi harfi ve sembolü çok iri.
   Eski destenin küçük köşe yazısı için eklenen büyük köşe etiketi artık gereksiz, üstüne binmesin. */
.cface.real ~ .cidx { display: none; }
.cface.real { image-rendering: auto; }
.avatar.speaking, .spec.speaking { box-shadow: 0 0 0 .14em var(--vivid-gold), 0 0 .8em rgba(255,210,90,.45), 0 .25em .6em rgba(0,0,0,.5); }

/* ===== Telefonda üst çubuk düğmeleri daha iri (dokunması ve görmesi kolay) ===== */
@media (max-width: 440px) {
  #game .topbar { gap: 4px; }
  #game .topbar .tb-actions, #game .topbar .media-btns { gap: 3px; }
  #game .topbar .btn.small, #game .topbar .btn.small.media { min-width: 36px; width: 36px; height: 35px; min-height: 35px; padding: 0; font-size: 17px; display: inline-flex; align-items: center; justify-content: center; }
  #game .topbar .btn.small svg, #game .topbar .btn.small.media svg { width: 20px; height: 20px; }
  #game .topbar .btn.small.media.fs-btn.on { width: 36px; min-width: 36px; }
  #lobby .topbar .btn.small { min-width: 40px; height: 38px; font-size: 16px; padding: 0 .55em; }
  #lobby .topbar .btn.small svg { width: 21px; height: 21px; }
}
@media (max-width: 372px) {
  #game .topbar { gap: 3px; padding-left: max(6px, env(safe-area-inset-left)); padding-right: max(6px, env(safe-area-inset-right)); }
  #game .topbar .tb-actions, #game .topbar .media-btns { gap: 2px; }
  #game .topbar .btn.small, #game .topbar .btn.small.media, #game .topbar .btn.small.media.fs-btn.on { min-width: 35px; width: 35px; height: 34px; font-size: 16px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .topbar .btn.small, .topbar .btn.small.media { min-width: 38px; min-height: 36px; height: 36px; font-size: 16px; }
  .topbar .btn.small.media { width: 40px; }
  .topbar .btn.small svg { width: 20px; height: 20px; }
}

/* ===== Ana ekrana ekle şeridi (lobi) ===== */
.install-bar {
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 12px 14px; border-radius: 16px;
  background: linear-gradient(90deg, rgba(255,210,90,.22), rgba(255,210,90,.08)); border: 1px solid rgba(255,210,90,.55);
  box-shadow: 0 8px 22px -10px rgba(255,190,40,.5);
}
.install-bar.hidden { display: none; }
.install-bar .ib-ico { font-size: 28px; line-height: 1; }
.install-bar .ib-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.install-bar .ib-text b { font-size: 16px; color: #fff; }
.install-bar .ib-text small { font-size: 13px; color: #e6eaff; line-height: 1.3; }
.install-bar .btn.gold { padding: .6em 1.3em; font-size: 16px; font-weight: 800; flex: none; }
.install-bar .ib-x { background: none; border: 0; color: #dfe5ff; font-size: 18px; padding: 4px 6px; cursor: pointer; flex: none; }
#fsModal .row { gap: 10px; flex-wrap: wrap; }
