:root {
  --gold: #d4af37;
  --gold-light: #fff1b8;
  --gold-dark: #8a6d1f;
  --parchment: #e8d6a8;
  --parchment-dark: #c9b07a;
  --ink: #2b1a0e;
  --stone: #1a1612;
  --stone-2: #26201a;
  --blood: #7a1414;
  --blood-light: #a3261f;
  --felt: #3d0d0d;
  --felt-2: #5a1414;
  --sapphire: #2b56b8;
  --ok: #4f8a3a;
  --card-w: 66px;
  --card-h: 94px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  font-family: 'MedievalSharp', serif;
  color: var(--parchment);
  background:
    radial-gradient(ellipse at top, rgba(212,175,55,.12), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(122,20,20,.25), transparent 60%),
    repeating-linear-gradient(45deg, #1d1915 0 2px, #191511 2px 4px),
    var(--stone);
  overflow-x: hidden;
}
[hidden] { display: none !important; }

h1, h2, h3, .cinzel { font-family: 'Cinzel', serif; }
.title-gold {
  font-weight: 900;
  letter-spacing: 3px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 50%, var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 #000) drop-shadow(0 0 18px rgba(212,175,55,.35));
}

/* ───── butonlar & girişler ───── */
button, .btn {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 14px;
  color: var(--parchment);
  background: linear-gradient(180deg, #5a3b1c, #2e1c0c);
  border: 2px solid var(--gold-dark);
  border-radius: 4px;
  cursor: pointer;
  text-shadow: 0 1px 1px #000;
  transition: filter .15s, transform .1s;
  white-space: nowrap;
}
button:hover:not(:disabled) { filter: brightness(1.25); }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.primary { background: linear-gradient(180deg, var(--blood-light), #4a0c0c); border-color: var(--gold); }
button.gold { background: linear-gradient(180deg, #c99a2e, #6b5214); color: #fff8dc; border-color: var(--gold-light); }
button.small { font-size: 12px; padding: 5px 8px; }
button.ghost { background: rgba(0,0,0,.25); }

input, select {
  font-family: 'MedievalSharp', serif;
  font-size: 16px;
  color: var(--ink);
  background: rgba(255,248,225,.75);
  border: 2px solid rgba(43,26,14,.45);
  border-radius: 4px;
  padding: 8px 10px;
  outline: none;
  width: 100%;
}
input:focus, select:focus { border-color: var(--blood); }
label { display: block; font-size: 14px; margin: 10px 0 4px; }
.hint { font-size: 13px; opacity: .8; }

/* parşömen panel (UO gump) */
.parchment {
  color: var(--ink);
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255,255,255,.35), transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(120,80,30,.35), transparent 60%),
    var(--parchment);
  border: 3px solid var(--gold-dark);
  border-radius: 6px;
  box-shadow: 0 0 0 2px #000, 0 12px 30px rgba(0,0,0,.8), inset 0 0 40px rgba(120,80,30,.45);
}
.parchment h2, .parchment h3 {
  margin: 0 0 10px;
  text-align: center;
  border-bottom: 2px solid rgba(43,26,14,.35);
  padding-bottom: 6px;
}
/* taş panel (UO paperdoll/gump koyu) */
.stone {
  background: linear-gradient(180deg, rgba(58,47,34,.95), rgba(30,25,19,.95));
  border: 2px solid var(--gold-dark);
  border-radius: 6px;
  box-shadow: 0 0 0 2px #000, 0 8px 22px rgba(0,0,0,.7);
}
.stone h3 {
  margin: 0;
  padding: 8px 12px;
  font-size: 15px;
  color: var(--gold);
  border-bottom: 1px solid rgba(212,175,55,.3);
  letter-spacing: 1px;
}

.icon { width: 1em; height: 1em; vertical-align: -.12em; fill: currentColor; }

/* ───── kartlar ───── */
.card {
  position: relative;
  flex: none;
  width: var(--card-w);
  height: var(--card-h);
  border-radius: 6px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.55), transparent 60%),
    linear-gradient(160deg, #f6ead0, #e3cc98);
  border: 1px solid #6b5214;
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 2px 4px 8px rgba(0,0,0,.6), inset 0 0 10px rgba(138,109,31,.35);
  color: var(--ink);
  user-select: none;
}
.card.red { color: #8b1414; }
.card .suit { fill: currentColor; }
.card .corner {
  position: absolute;
  display: flex; flex-direction: column; align-items: center;
  line-height: 1;
}
.card .corner b { font-family: 'Cinzel', serif; font-weight: 900; font-size: calc(var(--card-w) * .24); }
.card .corner .suit { width: calc(var(--card-w) * .2); height: calc(var(--card-w) * .2); margin-top: 1px; }
.card .tl { top: 4px; left: 4px; }
.card .br { bottom: 4px; right: 4px; transform: rotate(180deg); }
.card .center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.card .suit.big { width: 46%; height: 46%; filter: drop-shadow(0 1px 0 rgba(255,255,255,.5)); }
.card .face { width: 58%; height: 58%; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.card.back {
  background:
    repeating-linear-gradient(45deg, rgba(212,175,55,.12) 0 3px, transparent 3px 9px),
    repeating-linear-gradient(-45deg, rgba(212,175,55,.12) 0 3px, transparent 3px 9px),
    radial-gradient(circle, #8b1d1d, #3d0a0a);
  border: 1px solid var(--gold);
}
.card.back .back-inner {
  position: absolute; inset: 5px;
  border: 1.5px solid var(--gold);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.card.back .back-inner svg { width: 50%; height: 50%; fill: var(--gold); filter: drop-shadow(0 0 4px rgba(212,175,55,.6)); }

.cards { display: flex; min-height: var(--card-h); }
.cards .card + .card { margin-left: calc(var(--card-w) * -0.45); }
.cards.dealer .card + .card { margin-left: calc(var(--card-w) * -0.25); }

/* ───── jetonlar ───── */
.chip {
  --c1: #d4af37; --c2: #6b5214;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif; font-weight: 900; font-size: 11px;
  color: #fff8dc; text-shadow: 0 1px 2px #000;
  background:
    radial-gradient(circle, var(--c1) 0 52%, transparent 53%),
    repeating-conic-gradient(var(--c2) 0 15deg, #f4e7c3 15deg 30deg);
  border: 2px solid #000;
  box-shadow: 0 3px 6px rgba(0,0,0,.6), inset 0 0 0 3px rgba(0,0,0,.25);
  padding: 0;
  cursor: pointer;
}
.chip:hover:not(:disabled) { transform: translateY(-3px); filter: brightness(1.15); }
.chip.c0 { --c1: #b8902a; --c2: #6b5214; }
.chip.c1 { --c1: #9aa3ad; --c2: #4a5058; }
.chip.c2 { --c1: #a3261f; --c2: #4a0c0c; }
.chip.c3 { --c1: #2b56b8; --c2: #122a66; }
.chip.c4 { --c1: #3d7a34; --c2: #1d3d18; }
.chip.c5 { --c1: #5b2a7a; --c2: #2c1240; }
.bet-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 13px;
  color: var(--gold-light);
}
.bet-chip::before {
  content: '';
  width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff1b8, var(--gold) 45%, var(--gold-dark));
  box-shadow: 0 0 0 1px #000, 0 1px 3px rgba(0,0,0,.7);
}

/* ───── sayfa yerleşimi ───── */
.topbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.2));
  border-bottom: 2px solid var(--gold-dark);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .icon { width: 28px; height: 28px; fill: var(--gold); filter: drop-shadow(0 0 6px rgba(212,175,55,.5)); }
.brand .title-gold { font-family: 'Cinzel', serif; font-size: 22px; letter-spacing: 2px; }
.brand small { display: block; color: var(--parchment-dark); font-size: 13px; letter-spacing: 0; }
.phase-box { margin-left: auto; text-align: right; font-family: 'Cinzel', serif; }
.phase-box .phase { color: var(--gold); font-weight: 700; }
.phase-box .countdown { display: inline-block; min-width: 40px; color: #fff; font-size: 20px; font-weight: 900; }
.phase-box .countdown.low { color: #ff6b5b; }
.me-box { display: flex; align-items: center; gap: 10px; }
.me-box .bal { font-family: 'Cinzel', serif; font-weight: 700; color: var(--gold-light); }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  padding: 16px;
  max-width: 1500px;
  margin: 0 auto;
}
.side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* ───── masa ───── */
.felt {
  position: relative;
  min-height: 520px;
  border-radius: 48% 48% 24px 24px / 30% 30% 24px 24px;
  padding: 26px 22px 22px;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(255,255,255,.07), transparent 60%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, var(--felt-2), var(--felt) 70%);
  border: 14px solid #4a3017;
  box-shadow:
    0 0 0 3px var(--gold-dark),
    0 0 0 6px #000,
    inset 0 0 0 2px rgba(212,175,55,.45),
    inset 0 0 60px rgba(0,0,0,.75),
    0 20px 40px rgba(0,0,0,.8);
  overflow: hidden;
}
.felt::before {
  content: '';
  position: absolute;
  left: 50%; top: 48%;
  width: 220px; height: 220px;
  transform: translate(-50%, -50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='%23d4af37'%3E%3Cpath fill-rule='evenodd' d='M10.3 9a5.7 7.2 0 1 1 11.4 0a5.7 7.2 0 1 1 -11.4 0zM13.4 9a2.6 4.3 0 1 0 5.2 0a2.6 4.3 0 1 0 -5.2 0z'/%3E%3Cpath d='M4.5 15.4h23v3.8h-23zM14 17h4v13.5h-4z'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
  opacity: .06;
  pointer-events: none;
}
.dealer-zone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 150px; }
.dealer-label { font-family: 'Cinzel', serif; color: var(--gold); letter-spacing: 2px; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.total-badge {
  display: inline-block;
  min-width: 30px;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(0,0,0,.6);
  border: 1px solid var(--gold-dark);
  font-family: 'Cinzel', serif; font-weight: 900; font-size: 13px;
  color: #fff;
  text-align: center;
}
.total-badge.bust { border-color: #ff6b5b; color: #ff9b8f; }
.total-badge.bj { border-color: var(--gold); color: var(--gold-light); background: rgba(122,20,20,.8); }
.shoe {
  position: absolute; right: 14%; top: 4px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 11px; color: var(--parchment-dark);
}
.shoe .card { --card-w: 40px; --card-h: 56px; transform: rotate(8deg); }
.shoe .bar { width: 46px; height: 5px; background: rgba(0,0,0,.5); border-radius: 3px; overflow: hidden; }
.shoe .bar i { display: block; height: 100%; background: var(--gold); }
.rules-arc {
  text-align: center;
  margin: 16px auto 18px;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 2px;
  color: rgba(232,214,168,.55);
  border-top: 1px solid rgba(212,175,55,.25);
  border-bottom: 1px solid rgba(212,175,55,.25);
  padding: 6px 0;
  max-width: 620px;
}
.rules-arc b { color: var(--gold); }

.seats { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.seat {
  position: relative;
  width: 180px;
  min-height: 210px;
  padding: 10px 8px 8px;
  border-radius: 10px;
  background: rgba(0,0,0,.28);
  border: 1px dashed rgba(212,175,55,.35);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: box-shadow .2s, border-color .2s;
}
.seat.me { border: 1px solid rgba(212,175,55,.75); background: rgba(0,0,0,.38); }
.seat.turn { border: 2px solid var(--gold); box-shadow: 0 0 18px rgba(212,175,55,.65), inset 0 0 18px rgba(212,175,55,.2); }
.seat.offline, .seat.invited { opacity: .55; }
.seat .name { font-family: 'Cinzel', serif; font-weight: 700; color: var(--parchment); font-size: 14px; display: flex; align-items: center; gap: 4px; max-width: 100%; }
.seat .name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat .name .icon { flex: none; width: 16px; height: 16px; }
.seat .dot { width: 8px; height: 8px; border-radius: 50%; background: #666; flex: none; }
.seat .dot.on { background: #6fd65a; box-shadow: 0 0 6px #6fd65a; }
.seat .balance { font-size: 13px; color: var(--gold-light); }
.seat .status { font-size: 12px; color: var(--parchment-dark); min-height: 16px; text-align: center; }
.seat .hands { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.seat .hand { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px; border-radius: 6px; }
.seat .hand.active { background: rgba(212,175,55,.15); outline: 1px solid var(--gold); }
.seat .hands.multi { --card-w: 46px; --card-h: 66px; }
.seat .hand-meta { display: flex; gap: 6px; align-items: center; font-size: 12px; }
.seat .net { font-family: 'Cinzel', serif; font-weight: 900; font-size: 15px; }
.net.pos { color: #8fe07a; } .net.neg { color: #ff8b7d; } .net.zero { color: var(--parchment-dark); }

.result {
  font-family: 'Cinzel', serif; font-weight: 900; font-size: 11px; letter-spacing: 1px;
  padding: 2px 6px; border-radius: 3px; text-transform: uppercase;
  border: 1px solid currentColor;
}
.result.win, .result.blackjack { color: #8fe07a; }
.result.blackjack { color: var(--gold-light); background: rgba(122,20,20,.7); }
.result.lose, .result.bust { color: #ff8b7d; }
.result.push, .result.surrender { color: var(--parchment-dark); }

.empty-table { text-align: center; color: var(--parchment-dark); padding: 30px 10px; }

/* ───── kontroller ───── */
.controls {
  margin-top: 14px;
  min-height: 92px;
  padding: 14px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px;
}
.controls .msg { font-size: 16px; text-align: center; }
.controls .pending { font-family: 'Cinzel', serif; font-size: 20px; font-weight: 900; color: var(--gold-light); min-width: 110px; text-align: center; }
.controls .group { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: center; }
.controls .divider { width: 1px; align-self: stretch; background: rgba(212,175,55,.3); }
.controls kbd { font-size: 10px; opacity: .7; margin-left: 4px; font-family: inherit; }

/* ───── yan paneller ───── */
.host-panel { padding: 14px; }
.host-panel .row { display: flex; gap: 8px; }
.host-panel .row > * { flex: 1; }
.host-panel h4 { margin: 14px 0 6px; font-family: 'Cinzel', serif; font-size: 14px; border-bottom: 1px solid rgba(43,26,14,.3); padding-bottom: 3px; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--gold-dark); border-radius: 5px; overflow: hidden; }
.mode-switch button { border: 0; border-radius: 0; background: rgba(43,26,14,.15); color: var(--ink); text-shadow: none; }
.mode-switch button.on { background: linear-gradient(180deg, var(--blood-light), #4a0c0c); color: var(--parchment); text-shadow: 0 1px 1px #000; }
.dealer-ctrl { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.dealer-ctrl button { width: 100%; }
.link-box { margin-top: 8px; padding: 8px; background: rgba(255,248,225,.6); border: 1px dashed var(--gold-dark); border-radius: 4px; font-size: 13px; word-break: break-all; }
.plist { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.plist li { padding: 7px 0; border-bottom: 1px dotted rgba(43,26,14,.35); }
.plist .top { display: flex; justify-content: space-between; gap: 6px; align-items: center; }
.plist .meta { font-size: 12px; opacity: .85; }
.plist .acts { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.plist .acts button { font-size: 11px; padding: 3px 6px; }
.tag { font-size: 11px; padding: 1px 5px; border-radius: 3px; background: rgba(43,26,14,.2); }
.tag.on { background: #4f8a3a; color: #fff; }
.tag.left { background: #555; color: #eee; }
.ledger-sum { margin-top: 10px; font-size: 13px; padding: 8px; background: rgba(43,26,14,.12); border-radius: 4px; }
.ledger-sum b { font-family: 'Cinzel', serif; }

.log, .chat-list { list-style: none; margin: 0; padding: 8px 12px; overflow-y: auto; font-size: 13px; line-height: 1.45; }
.log { height: 190px; color: var(--parchment-dark); overscroll-behavior: contain; }
.log li { display: flex; gap: 8px; }
.log time { flex: none; color: var(--gold-dark); font-variant-numeric: tabular-nums; }
.chat-list { height: 220px; }
.chat-list .who { color: var(--gold); font-family: 'Cinzel', serif; font-weight: 700; }
.chat-list .who.host { color: #ff9b8f; }
.chat-form { display: flex; gap: 6px; padding: 8px; border-top: 1px solid rgba(212,175,55,.25); }
.chat-form input { font-size: 14px; padding: 6px 8px; }

/* ───── overlay & toast ───── */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.72);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  z-index: 50;
}
.overlay .scroll { width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 22px; }
.summary { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.summary th, .summary td { padding: 6px 4px; border-bottom: 1px dotted rgba(43,26,14,.4); text-align: right; }
.summary th:first-child, .summary td:first-child { text-align: left; }
.summary .pos { color: #2f6b22; font-weight: bold; } .summary .neg { color: #8b1414; font-weight: bold; }

.toast {
  position: fixed; left: 50%; bottom: 24px;
  transform: translateX(-50%) translateY(120px);
  padding: 10px 18px;
  background: #2e1c0c; color: var(--parchment);
  border: 2px solid var(--blood-light); border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,.7);
  transition: transform .25s;
  z-index: 60;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.ok { border-color: var(--gold); }

@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --card-w: 50px; --card-h: 72px; }
  .layout { padding: 10px 8px; }
  .felt { padding: 18px 8px; border-width: 8px; border-radius: 30% 30% 16px 16px / 14% 14% 16px 16px; }
  .seat { width: calc(50% - 8px); min-width: 140px; }
  .seats { gap: 8px; }
  .shoe { display: none; }
  .brand .title-gold { font-size: 18px; }
  .chip { width: 40px; height: 40px; font-size: 10px; }
}

a.btn { display: inline-block; text-decoration: none; }
.parchment .pos { color: #2f6b22; font-weight: bold; }
.parchment .neg { color: #8b1414; font-weight: bold; }
.layout > *, main { min-width: 0; }
.host-panel .row > * { min-width: 0; }
@media (max-width: 600px) {
  .topbar { padding: 8px 12px; gap: 6px; }
  .phase-box { margin-left: 0; text-align: left; flex: 1 1 100%; order: 3; }
  .me-box { margin-left: auto; }
  .rules-arc { font-size: 10px; letter-spacing: 1px; }
  .seat { min-width: 0; }
}

/* jeton yığınları */
.chip.c6 { --c1: #1f1f1f; --c2: #000; }
.chip.c7 { --c1: #c46a1b; --c2: #6b3408; }
.stack-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 8px; font-size: 11px; color: var(--parchment); }
.stack { display: inline-flex; align-items: center; gap: 3px; font-family: 'Cinzel', serif; font-weight: 700; }
.stack small { color: var(--parchment-dark); font-weight: 500; }
.stack.change { color: var(--parchment-dark); font-weight: 500; }
.mini {
  --c1: #b8902a; --c2: #6b5214;
  display: inline-block; width: 13px; height: 13px; border-radius: 50%;
  background: radial-gradient(circle, var(--c1) 0 50%, transparent 52%), repeating-conic-gradient(var(--c2) 0 30deg, #f4e7c3 30deg 60deg);
  box-shadow: 0 0 0 1px #000, 0 1px 2px rgba(0,0,0,.7);
}
.mini.c0 { --c1: #b8902a; --c2: #6b5214; }
.mini.c1 { --c1: #9aa3ad; --c2: #4a5058; }
.mini.c2 { --c1: #a3261f; --c2: #4a0c0c; }
.mini.c3 { --c1: #2b56b8; --c2: #122a66; }
.mini.c4 { --c1: #3d7a34; --c2: #1d3d18; }
.mini.c5 { --c1: #5b2a7a; --c2: #2c1240; }
.mini.c6 { --c1: #1f1f1f; --c2: #000; }
.mini.c7 { --c1: #c46a1b; --c2: #6b3408; }
.controls .pending .stack-row { margin-top: 4px; font-size: 12px; }
.tag.want { background: #c99a2e; color: #2b1a0e; font-weight: bold; }

/* ───── animasyon katmanı ───── */
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.fx-chip { position: fixed; width: 22px; height: 22px; will-change: transform, opacity; }
.fx-float {
  position: fixed;
  font-family: 'Cinzel', serif; font-weight: 900; font-size: 22px;
  color: var(--gold-light);
  text-shadow: 0 2px 0 #000, 0 0 12px rgba(0,0,0,.9);
  white-space: nowrap;
}
.fx-float.pos { color: #9df08a; }
.fx-float.neg { color: #ff8b7d; }

/* ───── kurpiyer ───── */
.dealer-avatar {
  position: absolute; left: 13%; top: 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  z-index: 2;
}
.dealer-avatar svg {
  width: 68px; height: 68px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--gold-dark), 0 0 0 5px #000, 0 6px 14px rgba(0,0,0,.7);
  transition: box-shadow .3s;
}
.dealer-avatar.active svg { box-shadow: 0 0 0 3px var(--gold), 0 0 0 5px #000, 0 0 22px rgba(212,175,55,.8); }
.dealer-avatar .eyes { transform-origin: 32px 25px; animation: blink 4.5s infinite; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.dealer-name { font-family: 'Cinzel', serif; font-size: 11px; color: var(--gold); letter-spacing: 1px; max-width: 110px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bubble {
  position: absolute; left: 82px; top: 4px;
  width: max-content; max-width: 240px;
  padding: 7px 11px;
  background: var(--parchment); color: var(--ink);
  border: 2px solid var(--gold-dark); border-radius: 10px;
  font-size: 14px; line-height: 1.25;
  box-shadow: 0 6px 14px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(6px) scale(.9); transform-origin: left center;
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.bubble::before {
  content: ''; position: absolute; left: -10px; top: 14px;
  border: 6px solid transparent; border-right: 8px solid var(--gold-dark);
}
.bubble.show { opacity: 1; transform: none; }

/* ───── sıra, sonuç ───── */
.seat.turn { animation: turnPulse 1.6s ease-in-out infinite; }
@keyframes turnPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(212,175,55,.45), inset 0 0 12px rgba(212,175,55,.15); }
  50% { box-shadow: 0 0 28px rgba(212,175,55,.9), inset 0 0 22px rgba(212,175,55,.3); }
}
.result { animation: pop .45s cubic-bezier(.3,1.6,.5,1) both; }
.result.blackjack { animation: pop .45s cubic-bezier(.3,1.6,.5,1) both, shine 1.2s ease-in-out .45s 2; }
@keyframes pop { from { transform: scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes shine { 50% { box-shadow: 0 0 16px var(--gold); } }
.total-badge.bust { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.want-chips { font-size: 12px; color: #ffd27a; animation: blinkText 1.4s ease-in-out infinite; }
@keyframes blinkText { 50% { opacity: .45; } }

@media (max-width: 600px) {
  .dealer-avatar { left: 2%; }
  .dealer-avatar svg { width: 50px; height: 50px; }
  .bubble { left: 58px; font-size: 12px; max-width: 150px; min-width: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  .seat.turn, .result, .want-chips, .dealer-avatar .eyes, .total-badge.bust { animation: none; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
