/* ============================================================
   SEKA 36 — luxury dark theme
   Palette: #090B0F bg · #141820 panels · #104B35 felt
            #E5BD61 gold · #F5F0E5 text · #AAA08D secondary
            #D92D42 red suits
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --bg: #090B0F;
  --panel: #141820;
  --panel-2: #1B2029;
  --felt: #104B35;
  --felt-dark: #0B3627;
  --gold: #E5BD61;
  --gold-dim: #A8873F;
  --text: #F5F0E5;
  --text-2: #AAA08D;
  --red: #D92D42;
  --green-ok: #4CAF7D;
  --radius: 14px;
}

html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}

.screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.hidden { display: none !important; }

/* ---------- Brand ---------- */
.brand { text-align: center; padding: 48px 16px 24px; }
.brand-logo {
  font-family: 'Cinzel', serif;
  font-size: clamp(44px, 8vw, 72px);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-shadow: 0 0 40px rgba(229, 189, 97, 0.25);
}
.brand-logo span { color: var(--text); font-weight: 600; }
.brand-sub { color: var(--text-2); margin-top: 6px; letter-spacing: 0.2em; text-transform: uppercase; font-size: 12px; }

/* ---------- Lobby ---------- */
.lobby-grid {
  display: grid; grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 20px; width: min(1040px, 94vw); margin: 0 auto; flex: 1;
  align-content: start; padding-bottom: 24px;
}
.panel {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid rgba(229, 189, 97, 0.18);
  border-radius: var(--radius);
  padding: 22px;
}
.panel h2 { font-family: 'Cinzel', serif; color: var(--gold); font-size: 20px; margin-bottom: 16px; letter-spacing: 0.06em; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.panel-head h2 { margin-bottom: 0; }

.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px; letter-spacing: 0.08em; text-transform: uppercase; }
input, select {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: #0D1117; border: 1px solid #2A3140; color: var(--text);
  font-size: 15px; outline: none; transition: border-color .2s;
}
input:focus, select:focus { border-color: var(--gold-dim); }
select { width: auto; }

.btn {
  border: 1px solid transparent; border-radius: 10px; padding: 12px 20px;
  font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: transform .12s ease, box-shadow .2s, opacity .2s, background .2s;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
.btn-gold {
  background: linear-gradient(180deg, #F0CD7C, var(--gold) 60%, #C49A45);
  color: #221A08; box-shadow: 0 2px 14px rgba(229, 189, 97, 0.25);
}
.btn-gold:hover:not(:disabled) { box-shadow: 0 4px 22px rgba(229, 189, 97, 0.4); }
.btn-ghost { background: transparent; border-color: #333B4A; color: var(--text-2); }
.btn-ghost:hover:not(:disabled) { border-color: var(--gold-dim); color: var(--text); }
.btn-block { width: 100%; }
.btn-big { padding: 14px 34px; font-size: 17px; }
.form-error { color: var(--red); font-size: 13px; min-height: 18px; margin-top: 8px; }

.conn { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-2); }
.conn .dot { width: 8px; height: 8px; border-radius: 50%; background: #666; transition: background .3s; }
.conn.online .dot { background: var(--green-ok); box-shadow: 0 0 8px var(--green-ok); }
.conn.offline .dot { background: var(--red); }

.player-chip { color: var(--text-2); font-size: 13px; margin: 10px 0 14px; }
.player-chip b { color: var(--gold); }

.create-row { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.create-row input { flex: 1; min-width: 140px; }
.create-row .btn { white-space: nowrap; }

.table-list { display: flex; flex-direction: column; gap: 10px; min-height: 160px; }
.table-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #0D1117; border: 1px solid #232A38; border-radius: 12px; padding: 14px 16px;
  transition: border-color .2s;
}
.table-row:hover { border-color: var(--gold-dim); }
.table-row .t-name { font-weight: 600; }
.table-row .t-meta { font-size: 12px; color: var(--text-2); margin-top: 3px; }
.t-badge { font-size: 11px; padding: 3px 9px; border-radius: 20px; letter-spacing: .06em; text-transform: uppercase; }
.t-badge.waiting { background: rgba(76, 175, 125, 0.15); color: var(--green-ok); }
.t-badge.playing { background: rgba(229, 189, 97, 0.12); color: var(--gold); }
.empty-state { text-align: center; color: var(--text-2); padding: 36px 0; }
.empty-icon { font-size: 40px; color: var(--gold-dim); margin-bottom: 10px; }
.lobby-foot { text-align: center; color: #4A5162; font-size: 12px; padding: 18px; letter-spacing: .1em; }

/* ---------- Game screen ---------- */
.game-topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px; border-bottom: 1px solid #1C2230; background: rgba(20, 24, 32, 0.7);
  backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 30;
}
.game-title { display: flex; align-items: baseline; gap: 12px; }
.mini-logo { font-family: 'Cinzel', serif; color: var(--gold); font-weight: 700; letter-spacing: .1em; }
#table-title { color: var(--text-2); font-size: 14px; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-right .btn { padding: 8px 14px; font-size: 13px; }

.table-area { flex: 1; display: flex; align-items: center; justify-content: center; padding: 18px 10px 6px; min-height: 380px; }
.table-felt {
  position: relative;
  width: min(880px, 96vw);
  height: clamp(340px, 46vh, 460px);
  border-radius: 50% / 50%;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(255,255,255,0.06), transparent 55%),
    radial-gradient(ellipse at center, var(--felt) 0%, var(--felt-dark) 78%);
  border: 10px solid #1E1408;
  outline: 3px solid var(--gold-dim);
  outline-offset: -12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), inset 0 0 60px rgba(0,0,0,0.35);
}

.table-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; pointer-events: none;
}
.pot-label { font-size: 11px; letter-spacing: .35em; color: rgba(245,240,229,.6); }
.pot-amount {
  font-family: 'Cinzel', serif; font-size: clamp(30px, 5vw, 46px); font-weight: 700; color: var(--gold);
  text-shadow: 0 2px 18px rgba(0,0,0,.5); transition: transform .15s;
}
.pot-amount.bump { transform: scale(1.15); }
.round-info { color: rgba(245,240,229,.75); font-size: 13px; margin-top: 4px; }
.status-line { color: var(--gold); font-size: 13px; margin-top: 6px; min-height: 18px; max-width: 70%; }

/* ---------- Seats ---------- */
#seats { position: absolute; inset: 0; }
.seat {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  width: 132px; text-align: center; transition: opacity .3s;
}
.seat-card-row { display: flex; gap: 5px; min-height: 62px; align-items: center; }
.seat-plate {
  background: rgba(13, 17, 23, 0.92); border: 1px solid #2A3140; border-radius: 10px;
  padding: 6px 12px; min-width: 112px;
}
.seat-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.seat-balance { font-size: 12px; color: var(--gold); }
.seat-tags { display: flex; gap: 4px; justify-content: center; }
.tag { font-size: 10px; padding: 1px 7px; border-radius: 12px; background: #232A38; color: var(--text-2); letter-spacing: .05em; }
.tag.host { color: var(--gold); border: 1px solid var(--gold-dim); background: transparent; }
.tag.off { color: var(--red); border: 1px solid rgba(217,45,66,.4); background: transparent; }
.tag.state { color: var(--text-2); }
.seat.turn .seat-plate {
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(229, 189, 97, 0.45);
  animation: turnPulse 1.6s ease-in-out infinite;
}
@keyframes turnPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(229,189,97,.35); }
  50% { box-shadow: 0 0 26px rgba(229,189,97,.65); }
}
.seat.inactive { opacity: 0.38; filter: grayscale(0.6); }
.seat.me .seat-plate { border-color: var(--gold-dim); }

/* ---------- Cards ---------- */
.card {
  width: 44px; height: 62px; border-radius: 6px; position: relative;
  background: linear-gradient(160deg, #FFFFFF, #ECE7DB);
  color: #181818; box-shadow: 0 3px 8px rgba(0,0,0,.45);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 4px 5px; font-weight: 700; user-select: none;
  transform-style: preserve-3d; transition: transform .35s ease;
}
.card .c-rank { font-size: 15px; line-height: 1; }
.card .c-suit { font-size: 15px; line-height: 1; }
.card .c-center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.card.red { color: var(--red); }
.card.back {
  background:
    linear-gradient(135deg, rgba(229,189,97,.25) 0%, transparent 40%),
    repeating-linear-gradient(45deg, #17253A 0 6px, #101A2A 6px 12px);
  border: 1px solid var(--gold-dim);
}
.card.back::after {
  content: 'S36'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif; font-size: 11px; color: rgba(229,189,97,.75); letter-spacing: .1em;
}
.card.sm { width: 34px; height: 48px; }
.card.sm .c-rank { font-size: 12px; } .card.sm .c-suit { font-size: 12px; } .card.sm .c-center { font-size: 16px; }

/* ---------- My cards ---------- */
.my-area { padding: 4px 10px 2px; text-align: center; }
.my-cards { display: flex; justify-content: center; gap: 12px; min-height: 96px; }
.my-cards .card { width: 68px; height: 96px; cursor: pointer; border-radius: 9px; }
.my-cards .card .c-rank { font-size: 20px; } .my-cards .card .c-suit { font-size: 20px; } .my-cards .card .c-center { font-size: 34px; }
.my-cards .card.flipped { transform: rotateY(180deg); }
.my-cards .card:hover { transform: translateY(-6px); }
.my-hint { color: var(--text-2); font-size: 12px; margin-top: 6px; min-height: 16px; }

/* ---------- Actions ---------- */
.action-bar {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
  padding: 10px 12px 14px;
}
.btn-action {
  background: linear-gradient(180deg, #232B3A, #171D29);
  border: 1px solid #333D50; color: var(--text);
  padding: 12px 18px; font-size: 14px; min-width: 92px;
}
.btn-action:hover:not(:disabled) { border-color: var(--gold-dim); }
.btn-seka { border-color: var(--gold-dim); color: var(--gold); }
.btn-pas { border-color: rgba(217,45,66,.5); color: #E87E8C; }
.host-bar { display: flex; justify-content: center; padding: 8px 0 16px; }

/* ---------- Feed ---------- */
.feed {
  max-height: 110px; overflow-y: auto; padding: 8px 18px 14px;
  border-top: 1px solid #1C2230; font-size: 12.5px; color: var(--text-2);
  display: flex; flex-direction: column; gap: 3px;
}
.feed .f-item { opacity: 0; animation: fadeIn .3s forwards; }
@keyframes fadeIn { to { opacity: 1; } }

/* ---------- Modals ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(4, 6, 10, 0.78); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 2000000; padding: 18px;
}
.modal {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--gold-dim); border-radius: var(--radius);
  padding: 26px; width: min(420px, 92vw); text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.modal-wide { width: min(560px, 94vw); }
.modal h3 { font-family: 'Cinzel', serif; color: var(--gold); margin-bottom: 12px; letter-spacing: .06em; }
.modal p { color: var(--text-2); font-size: 14px; line-height: 1.5; }
.modal-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.reveals { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; max-height: 40vh; overflow-y: auto; }
.reveal-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #0D1117; border-radius: 10px; padding: 8px 12px; }
.reveal-row .r-name { font-size: 13px; font-weight: 600; }
.reveal-row .r-cards { display: flex; gap: 4px; }
.reveal-row .r-score { color: var(--gold); font-weight: 700; font-size: 14px; min-width: 26px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1B2230; border: 1px solid var(--gold-dim); color: var(--text);
  padding: 11px 20px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; z-index: 200; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { border-color: var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .lobby-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .table-felt { height: 300px; border-width: 7px; outline-offset: -9px; }
  .seat { width: 100px; }
  .seat-plate { min-width: 92px; padding: 4px 8px; }
  .seat-name { font-size: 11px; max-width: 88px; }
  .seat-balance { font-size: 11px; }
  .seat-card-row .card { width: 24px; height: 34px; border-radius: 4px; }
  .seat-card-row .card.back::after { content: ''; }
  .my-cards .card { width: 58px; height: 84px; }
  .btn-action { min-width: 0; flex: 1 1 28%; padding: 11px 6px; font-size: 13px; }
  .action-bar { gap: 6px; }
  .pot-amount { font-size: 28px; }
  .game-topbar { padding: 10px 12px; }
  #table-title { display: none; }
}


/* SEKA36 premium table polish */
.seat {
  z-index: 3;
  gap: 7px;
}
.seat::before {
  content: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  font-size: 31px;
  line-height: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #3d4653, #10151d 72%);
  border: 2px solid #b99a53;
  box-shadow: 0 5px 14px #0009, inset 0 0 0 2px #ffffff12;
}
.seat.me::before {
  border-color: #f4d17b;
  box-shadow: 0 0 18px #d9ad4b66, 0 5px 14px #0009;
}
.seat.turn::before {
  animation: avatarTurnGlow 1.5s ease-in-out infinite;
}
.seat-plate {
  box-shadow: 0 6px 16px #0006;
  backdrop-filter: blur(5px);
}
.table-felt {
  background:
    radial-gradient(ellipse at 50% 45%, #176b49 0%, #0d4b34 53%, #082d22 100%);
}
.table-felt::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid #d4b56855;
  border-radius: inherit;
  pointer-events: none;
}
.table-center { z-index: 1; }
#seats { z-index: 2; pointer-events: none; }
.seat { pointer-events: auto; }
.flying-chip {
  position: absolute;
  z-index: 8;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 4px dashed #fff0bd;
  background: #c79a35;
  box-shadow: 0 3px 7px #0009, inset 0 0 0 2px #8b621d;
  pointer-events: none;
}
.flying-chip:nth-child(2n) { background: #bd4545; border-color: #ffe2e2; }
.flying-chip:nth-child(3n) { background: #e8e4d8; border-color: #777; }
@keyframes chipToPot {
  0% { opacity: 0; transform: translate(-50%,-50%) scale(.65) rotate(0); }
  15% { opacity: 1; }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(1.08) rotate(220deg); }
}
@keyframes avatarTurnGlow {
  0%,100% { box-shadow: 0 0 5px #d9ad4b33; }
  50% { box-shadow: 0 0 20px #f1c45b99; }
}
@media (max-width: 600px) {
  .seat::before { width: 36px; height: 36px; font-size: 24px; }
  .seat { gap: 4px; }
}


/* SEKA36 layout correction */
.seat {
  width: 112px;
  gap: 4px;
  z-index: 3;
}
.seat::before {
  width: 34px;
  height: 34px;
  font-size: 22px;
  flex: 0 0 34px;
}
.seat-card-row {
  min-height: 40px;
  gap: 3px;
}
.seat-card-row .card {
  width: 25px;
  height: 36px;
}
.seat-plate {
  min-width: 90px;
  max-width: 110px;
  padding: 4px 7px;
}
.seat-name {
  max-width: 96px;
  font-size: 12px;
}
.table-center {
  z-index: 1;
}
#seats {
  z-index: 2;
  pointer-events: none;
}
.seat {
  pointer-events: auto;
}
.flying-chip {
  animation: none !important;
}
@media (max-width: 600px) {
  .table-area { min-height: 320px; padding-top: 12px; }
  .table-felt { height: 300px; }
  .seat { width: 88px; }
  .seat::before { width: 29px; height: 29px; font-size: 19px; }
  .seat-plate { min-width: 78px; padding: 3px 5px; }
  .seat-name { max-width: 82px; font-size: 11px; }
}

/* SPECTATOR BAR STYLE */
.spectator-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 16px;
  padding: 12px 14px;
  border: 1px solid rgba(212, 175, 55, .4);
  border-radius: 12px;
  background: rgba(0, 0, 0, .3);
  color: #f5d76e;
}
.spectator-bar.hidden {
  display: none !important;
}
.spectator-bar button:disabled {
  opacity: .55;
  cursor: not-allowed;
}
@media (max-width: 600px) {
  .spectator-bar {
    margin: 10px;
    padding: 10px;
    flex-wrap: wrap;
  }
}
/* END SPECTATOR BAR STYLE */


/* WATCH BUTTON MOBILE FIX */
.table-row {
  flex-wrap: wrap;
}
.table-row > div:last-child {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.table-row .watch-table-btn,
.table-row .join-table-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .table-row {
    align-items: flex-start;
  }
  .table-row > div:last-child {
    width: 100%;
    justify-content: flex-start;
  }
}
/* END WATCH BUTTON MOBILE FIX */

/* SEKA36 PREMIUM BLACK & GOLD — test v1 */
.seat {
  width: 112px;
  gap: 5px;
  z-index: 3;
}

.seat::before {
  content: none;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  font-size: 26px;
  line-height: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #343946 0%, #151821 68%, #080a0f 100%);
  border: 2px solid #b99a53;
  box-shadow: 0 4px 14px #000b, inset 0 0 0 2px #ffffff0c;
  transition: border-color .2s, box-shadow .2s;
}

.seat.me::before {
  border-color: #f5d77e;
  box-shadow: 0 0 12px #e8bd5866, 0 4px 14px #000b;
}

.seat.turn::before {
  border-color: #ffe29a;
  animation: avatarTurnGlow 1.3s ease-in-out infinite;
}

.seat-plate {
  box-sizing: border-box;
  min-width: 90px;
  max-width: 110px;
  padding: 5px 7px;
  border: 1px solid #75602f;
  border-radius: 10px;
  background: linear-gradient(145deg, #1b1d23f5, #08090df7);
  box-shadow: 0 5px 16px #0009, inset 0 1px 0 #ffffff0b;
  backdrop-filter: blur(5px);
}

.seat-name {
  max-width: 96px;
  color: #f6f0e2;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seat-balance {
  color: #f0cc70;
  font-size: 12px;
  font-weight: 700;
}

.seat.turn .seat-plate {
  border-color: #f3cc6b;
  box-shadow: 0 0 16px #e5bd6155, inset 0 0 8px #e5bd6110;
}

.seat.me .seat-plate {
  border-color: #b99a53;
}

@keyframes avatarTurnGlow {
  0%, 100% {
    box-shadow: 0 0 5px #d9ad4b44, 0 4px 14px #000b;
  }
  50% {
    box-shadow: 0 0 22px #f1c45bcc, 0 4px 14px #000b;
  }
}

@media (max-width: 600px) {
  .seat {
    width: 88px;
    gap: 4px;
  }

  .seat::before {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    font-size: 20px;
  }

  .seat-plate {
    min-width: 76px;
    max-width: 88px;
    padding: 4px 5px;
    border-radius: 8px;
  }

  .seat-name {
    max-width: 78px;
    font-size: 11px;
  }

  .seat-balance {
    font-size: 11px;
  }
}
/* END SEKA36 PREMIUM BLACK & GOLD */

/* SEKA36: real seat layout, occupied and empty chairs */
#seats { overflow: visible; }

.seat {
  width: 100px;
  gap: 3px;
  transform: translate(-50%, -50%);
}

.seat-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #b99a53;
  background: radial-gradient(circle at 35% 25%, #343946, #10131a 72%);
  box-shadow: 0 4px 14px #000b;
  font-size: 23px;
  box-sizing: border-box;
}

.seat.turn .seat-avatar {
  border-color: #ffe29a;
  animation: avatarTurnGlow 1.3s ease-in-out infinite;
}

.seat.me .seat-avatar { border-color: #f5d77e; }

.seat.empty {
  opacity: .75;
  pointer-events: none;
}

.seat-chair {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px dashed #b99a5377;
  border-radius: 50%;
  background: #11151dcc;
  font-size: 25px;
}

.empty-plate {
  min-width: 68px;
  max-width: 88px;
  padding: 3px 5px;
  border-style: dashed;
  border-color: #b99a534d;
  background: #0b0d12cc;
}

.seat.empty .seat-name {
  color: #b5a578;
  font-size: 10px;
  font-weight: 500;
}

@media (max-width: 600px) {
  .seat { width: 78px; gap: 2px; }
  .seat-avatar, .seat-chair {
    width: 30px;
    height: 30px;
    font-size: 19px;
  }
  .seat-plate {
    min-width: 68px;
    max-width: 78px;
    padding: 3px 4px;
  }
  .seat-name { max-width: 70px; font-size: 10px; }
  .seat-balance { font-size: 10px; }
}


/* SEKA 36 profile cabinet — premium black & gold */
.profile-toolbar { display:flex; justify-content:flex-end; margin:12px 0; }
.profile-panel {
  margin-top:14px; padding:20px; border:1px solid #8f743d66; border-radius:16px;
  background:linear-gradient(145deg,#171b24,#0d1016); box-shadow:0 12px 32px #0005;
}
.profile-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.profile-heading h2 { margin:5px 0 14px; color:#f3d88e; }
.profile-kicker { color:#c7a85a; font-size:10px; letter-spacing:2px; }
.profile-summary { display:flex; align-items:center; gap:16px; padding:16px; margin:8px 0 18px;
  border:1px solid #b99a5338; border-radius:14px; background:#090c12; }
.profile-avatar { width:86px; height:86px; object-fit:cover; border:2px solid #d6b45c;
  border-radius:50%; background:#141820; }
.profile-username { color:#fff0c0; font-size:20px; font-weight:700; overflow-wrap:anywhere; }
.profile-muted { color:#a7adba; font-size:12px; line-height:1.6; }
.profile-balance-label { color:#c4c8d0; font-size:12px; margin-top:8px; }
.profile-balance { color:#f1d17a; font-size:24px; font-weight:800; }
.profile-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.profile-card { min-width:0; padding:14px; border:1px solid #b99a5333; border-radius:12px; background:#10141c; }
.profile-card h3,.profile-history h3 { margin:0 0 12px; color:#f0d58c; font-size:15px; }
.profile-card .field { margin:10px 0; }
.profile-card input { max-width:100%; box-sizing:border-box; }
.profile-history { margin-top:20px; }
.profile-history-list { display:grid; gap:8px; }
.profile-history-row { display:flex; justify-content:space-between; align-items:center; gap:12px;
  padding:11px 12px; border:1px solid #b99a532b; border-radius:10px; background:#0d1118; }
.profile-status { padding:4px 8px; border-radius:20px; font-size:11px; white-space:nowrap; }
.status-pending { color:#f2d17b; background:#8b6b1e30; }
.status-approved { color:#8be0ad; background:#23784630; }
.status-rejected { color:#ffaaa5; background:#8a303030; }
.profile-transaction-amount { color:#f1d17a; font-weight:700; white-space:nowrap; }
.profile-message { margin-top:12px; color:#8ee0ad; font-size:13px; overflow-wrap:anywhere; }
.profile-message.error { color:#ffaaa5; }
@media (max-width:600px) {
  .profile-panel { padding:12px; }
  .profile-grid { grid-template-columns:minmax(0,1fr); }
  .profile-summary { padding:11px; gap:11px; }
  .profile-avatar { width:66px; height:66px; }
  .profile-username { font-size:17px; }
  .profile-balance { font-size:20px; }
  .profile-history-row { align-items:flex-start; }
}

/* SEKA 36 — Emerald & Gold Premium Table */
.table-felt {
  border: 5px solid #b99548 !important;
  border-radius: 48% / 38% !important;
  background:
    radial-gradient(ellipse at 50% 40%, #176b47 0%, #0d5035 58%, #073824 100%) !important;
  box-shadow:
    0 0 0 3px #382b17,
    0 0 0 6px #b99548,
    0 16px 36px #0009,
    inset 0 0 35px #001b10 !important;
}

.seat-avatar {
  overflow: hidden !important;
  border: 2px solid #d8b45e !important;
  background: radial-gradient(circle at 30% 25%, #294c3b, #091a12 75%) !important;
  box-shadow:
    0 3px 12px #0009,
    inset 0 0 0 1px #fff2 !important;
}

.seat-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.seat.me .seat-avatar {
  border-color: #ffe39a !important;
  box-shadow: 0 0 0 2px #b9954866, 0 0 16px #e9c86b66 !important;
}

.seat-plate {
  border: 1px solid #b99548 !important;
  border-radius: 10px !important;
  background: linear-gradient(145deg, #17241dF5, #08130df7) !important;
  box-shadow: 0 5px 16px #0008, inset 0 1px 0 #fff1 !important;
}

.seat-name {
  color: #fff4d6 !important;
  font-weight: 700 !important;
}

.seat-balance {
  color: #f1d17a !important;
  font-weight: 800 !important;
}

.seat.empty .seat-chair {
  color: #d5b56b;
  border-color: #b9954877;
  background: #0a2118dd;
}

@media (max-width: 600px) {
  .table-felt {
    border-width: 3px !important;
    box-shadow: 0 0 0 2px #382b17, 0 0 0 4px #b99548,
      0 10px 22px #0008, inset 0 0 22px #001b10 !important;
  }
}


/* SEKA36_DYNAMIC_TABLE_SIZE_V1 */
.table-felt {
  width: min(var(--seka-table-width, 880px), calc(100vw - 32px)) !important;
  height: var(--seka-table-height, 390px) !important;
  box-sizing: border-box;
}
.table-area {
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 600px) {
  .table-felt {
    width: calc(100vw - 24px) !important;
    height: var(--seka-table-mobile-height, 280px) !important;
  }
}

/* SEKA36_FINAL_DYNAMIC_TABLE */
.table-felt {
  width: min(var(--seka-table-width, 880px), calc(100vw - 32px)) !important;
  height: var(--seka-table-height, 390px) !important;
  box-sizing: border-box;
}
@media (max-width: 600px) {
  .table-felt {
    width: calc(100vw - 24px) !important;
    height: var(--seka-table-mobile-height, 270px) !important;
  }
}


/* SEKA 36: deposit card number and copy button */
.deposit-card-number {
  margin: 14px 0 18px;
  padding: 14px;
  border: 1px solid rgba(236, 194, 93, 0.42);
  border-radius: 12px;
  background: rgba(236, 194, 93, 0.06);
}
.deposit-card-label {
  margin-bottom: 8px;
  color: #e8c36d;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.deposit-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.deposit-card-row strong {
  font-size: clamp(19px, 4.5vw, 25px);
  line-height: 1.4;
  letter-spacing: 1px;
  overflow-wrap: anywhere;
  color: #fff;
}
.deposit-copy-btn {
  flex-shrink: 0;
  padding: 9px 13px;
  min-height: 40px;
}
#deposit-copy-message {
  display: block;
  margin-top: 8px;
  color: #e8c36d;
  font-size: 13px;
}


/* SEKA 36: opened cards in the center of the table */
.table-stake {
  margin-top: 8px;
  color: #f5c45b;
  font-size: 13px;
  font-weight: 700;
}
.center-reveals {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  max-width: min(360px, 90%);
  max-height: 145px;
  overflow-y: auto;
  margin: 8px auto 0;
}
.center-reveals:empty { display: none; }
.center-reveals-title {
  color: #f5c45b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}
.center-reveal-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 3px 7px;
  border: 1px solid rgba(245,196,91,.4);
  border-radius: 8px;
  background: rgba(5,20,15,.88);
  font-size: 12px;
}
.center-reveal-name {
  max-width: 75px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.center-reveal-cards {
  display: flex;
  gap: 3px;
}
.center-reveal-row > strong { color: #f5c45b; }

/* SEKA36_FIX_PLAYER_PLATE_OVERLAPPING_CARDS */
.seat:not(.empty) .seat-plate {
  transform: translateY(-45px);
}

/* Classic playing-card face styling */
.card.classic-card {
  overflow: hidden;
  border: 1px solid #c9c4b8;
  background: linear-gradient(145deg, #fff 0%, #fffdf7 65%, #eee9df 100%);
  color: #171717;
  padding: 3px;
  font-family: Georgia, "Times New Roman", serif;
}
.card.classic-card.red { color: #c62828; }
.card.classic-card .c-corner {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: .88;
  z-index: 2;
}
.card.classic-card .c-top { top: 4px; left: 4px; }
.card.classic-card .c-bottom {
  right: 4px;
  bottom: 4px;
  transform: rotate(180deg);
}
.card.classic-card .c-rank { font-size: 17px; font-weight: 700; }
.card.classic-card .c-suit { font-size: 13px; }
.card.classic-card .c-center {
  font-size: 36px;
  text-shadow: 0 1px 0 rgba(0,0,0,.08);
}
.card.classic-card .ace-center { font-size: 48px; }
.card.classic-card .c-court {
  position: absolute;
  inset: 22% 13%;
  border: 2px double currentColor;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, transparent 0 5px, rgba(180,150,90,.12) 5px 7px);
}
.card.classic-card .court-crown { font-size: 27px; line-height: 1; }
.card.classic-card .court-letter { font-size: 23px; font-weight: bold; }
.card.classic-card .court-suit { font-size: 21px; }
.card.classic-card.sm .c-corner { top: 3px; left: 3px; }
.card.classic-card.sm .c-bottom { top: auto; left: auto; right: 3px; bottom: 3px; }
.card.classic-card.sm .c-rank { font-size: 12px; }
.card.classic-card.sm .c-suit { font-size: 10px; }
.card.classic-card.sm .c-center { font-size: 23px; }
.card.classic-card.sm .ace-center { font-size: 30px; }
.card.classic-card.sm .c-court { inset: 23% 12%; }
.card.classic-card.sm .court-crown { font-size: 17px; }
.card.classic-card.sm .court-letter { font-size: 15px; }
.card.classic-card.sm .court-suit { font-size: 13px; }
.my-cards .card.classic-card .c-rank { font-size: 21px; }
.my-cards .card.classic-card .c-suit { font-size: 17px; }
.my-cards .card.classic-card .c-center { font-size: 39px; }
.my-cards .card.classic-card .ace-center { font-size: 51px; }
.my-cards .card.classic-card .court-crown { font-size: 31px; }
.my-cards .card.classic-card .court-letter { font-size: 27px; }
.my-cards .card.classic-card .court-suit { font-size: 23px; }

/* SEKA 36 — kartların masanın mərkəzindən paylanması */
.seka-flying-card {
  position: fixed !important;
  z-index: 99999 !important;
  margin: 0 !important;
  pointer-events: none !important;
  transform-origin: center center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .5);
  will-change: transform, opacity;
}

/* Depozit düyməsi oyun modallarının arxasında qalmalıdır. */
.game-deposit-bar {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}
#game-deposit-btn {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
}

/* Kor Xod və Artır məbləğ seçimi */
.range-stepper {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 12px 0;
}
.range-stepper button {
  min-width: 44px;
  min-height: 42px;
  padding: 6px;
  font-size: 22px;
  line-height: 1;
}
.range-stepper input[type="range"] {
  width: 100%;
  min-width: 0;
  margin: 0;
}

/* Profile history accordions */
.profile-history-accordion {
  margin-top: 12px;
  border: 1px solid #b99a5333;
  border-radius: 12px;
  background: #10141c;
  overflow: hidden;
}
.profile-history-accordion > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  color: #f0d58c;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.profile-history-accordion > summary::-webkit-details-marker {
  display: none;
}
.profile-history-accordion > summary::marker {
  content: "";
}
.profile-history-accordion[open] > summary {
  border-bottom: 1px solid #b99a5333;
}
.profile-history-accordion .history-chevron {
  color: #f1d17a;
  font-size: 18px;
  line-height: 1;
}
.profile-history-accordion[open] .history-chevron {
  transform: rotate(45deg);
}
.profile-history-accordion .profile-history-list {
  padding: 12px;
}

/* Compact profile settings accordions */
.profile-settings-accordions {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}
.profile-settings-accordions .profile-history-accordion {
  margin-top: 0;
}
.profile-accordion-body {
  padding: 10px;
}
.profile-accordion-body .profile-card {
  padding: 4px;
  border: 0;
  background: transparent;
}

/* Profile finance action accordions */
.profile-action-accordion {
  margin: 10px 0;
  overflow: hidden;
}
.profile-action-accordion > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  color: #f0d58c;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.profile-action-accordion > summary::-webkit-details-marker {
  display: none;
}
.profile-action-accordion > summary::marker {
  content: "";
}
.profile-action-accordion[open] > summary {
  border-bottom: 1px solid #b99a5333;
}
.profile-action-accordion .profile-accordion-body {
  padding: 10px;
}
.profile-action-accordion .profile-accordion-body > form {
  margin: 0;
}

/* SEKA36: kart dəstəsi BANK yazısının üstündə, mərkəzdə */
.deck-pile {
  position: absolute;
  left: 50%;
  top: 18%;
  right: auto;
  width: 64px;
  height: 80px;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
}
.deck-pile .deck-card {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 62px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(229,189,97,.25), transparent 40%),
    repeating-linear-gradient(45deg, #17253A 0 6px, #101A2A 6px 12px);
  border: 1px solid var(--gold-dim);
  box-shadow: 0 3px 8px #0008;
}
.deck-pile .deck-card:nth-child(1) { transform: translate(7px, 8px) rotate(8deg); }
.deck-pile .deck-card:nth-child(2) { transform: translate(3px, 4px) rotate(4deg); }
.deck-pile .deck-card:nth-child(3) { transform: rotate(-2deg); }
.deck-pile .deck-count {
  position: absolute;
  top: 69px;
  left: -3px;
  width: 64px;
  text-align: center;
  white-space: nowrap;
  color: #f4d17b;
  font-size: 11px;
  font-weight: 700;
  text-shadow: 0 1px 4px #000;
}
.deck-pile.empty { opacity: .35; }
@media (max-width: 640px) {
  .deck-pile {
    left: 50%;
    right: auto;
    top: 18%;
    transform: translate(-50%, -50%) scale(.72);
    transform-origin: center center;
  }
}

/* Depozit düyməsi oyun masasının yuxarı sağında */
.game-deposit-top {
  position: relative;
  z-index: 5;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
}
@media (max-width: 640px) {
  .game-topbar .topbar-right {
    gap: 6px;
  }
  .game-deposit-top,
  #leave-table-btn {
    padding: 7px 9px;
    font-size: 11px;
  }
  .game-topbar .conn {
    display: none;
  }
}


/* Public game-event notices */
.kor-xod-toast {
  position: absolute;
  z-index: 20;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: 82%;
  padding: 10px 18px;
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: rgba(10, 14, 12, .94);
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0,0,0,.4);
  pointer-events: none;
}

.deposit-status {
  width: min(880px, 96vw);
  margin: 8px auto;
  padding: 10px 14px;
  border: 1px solid var(--gold-dim);
  border-radius: 10px;
  background: rgba(20, 23, 28, .95);
  color: var(--gold);
  font-size: 13px;
  text-align: center;
}

.range-control {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.range-control input[type="range"] {
  flex: 1;
  min-width: 0;
  width: 100%;
  cursor: pointer;
  accent-color: var(--gold);
}

.range-step {
  flex: 0 0 42px;
  width: 42px;
  height: 38px;
  border: 1px solid var(--gold-dim);
  border-radius: 9px;
  background: #171a20;
  color: var(--gold);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.range-step:active {
  transform: scale(.96);
  background: #29251c;
}

.range-step:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* SEKA 36 welcome splash */
#seka36-welcome {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #061b27;
  opacity: 1;
  transition: opacity .6s ease, visibility .6s ease;
}
#seka36-welcome .welcome-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #061b27;
}
#seka36-welcome .welcome-loader {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: max(28px, env(safe-area-inset-bottom));
  z-index: 1;
  padding: 14px 16px;
  border: 1px solid rgba(255, 211, 104, .45);
  border-radius: 14px;
  background: rgba(3, 15, 25, .88);
  box-shadow: 0 0 24px rgba(255, 188, 52, .16);
}
#seka36-welcome .welcome-loader-track {
  height: 10px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255,255,255,.16);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.5);
}
#seka36-welcome .welcome-loader-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a85b00, #ffe78b, #d69a22);
  box-shadow: 0 0 12px rgba(255,210,87,.9);
  animation: seka36-loading-fill 5s linear forwards;
}
#seka36-welcome .welcome-loader-caption {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: #ffe6a0;
  font: 700 13px Inter, sans-serif;
  letter-spacing: 1px;
}
#seka36-welcome .welcome-loading-text {
  margin-top: 6px;
  text-align: center;
  color: #fff4d1;
  font: 500 12px Inter, sans-serif;
}
#seka36-welcome.welcome-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@keyframes seka36-loading-fill {
  from { width: 0; }
  to { width: 100%; }
}
@media (max-width: 600px) {
  #seka36-welcome .welcome-loader {
    left: 6%;
    right: 6%;
    bottom: max(20px, env(safe-area-inset-bottom));
  }
  #seka36-welcome .welcome-art {
    object-fit: contain;
  }
}
@media (prefers-reduced-motion: reduce) {
  #seka36-welcome .welcome-loader-fill {
    animation-duration: 5s;
  }
}

/* SEKA36 Baxisma reveal panel */
#baxisma-result:not(.hidden) {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1200;
  width: min(520px, 94vw);
  max-height: 82vh;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 16px;
  border: 1px solid #b89445;
  border-radius: 14px;
  background: #171717;
  color: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .75);
}

#baxisma-result h3 {
  margin: 0 0 12px;
  color: #e8c36a;
}

#baxisma-result .baxisma-hand {
  padding: 10px 0;
  border-top: 1px solid rgba(232, 195, 106, .3);
}

#baxisma-result .baxisma-hand p {
  margin: 0 0 8px;
  font-weight: 600;
}

#baxisma-result .seat-card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 40px;
}

#baxisma-result > p:last-child {
  margin: 12px 0 0;
  line-height: 1.5;
}


/* SEKA36_WHATSAPP_SUPPORT_PATCH */
.profile-toolbar { align-items:center; gap:10px; flex-wrap:wrap; }
.btn-whatsapp {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:42px; box-sizing:border-box; padding:10px 15px;
  border:1px solid #25d366; border-radius:10px;
  background:#128c4a; color:#fff; text-decoration:none; font-weight:700;
  font-family:inherit; cursor:pointer; transition:background .15s ease;
}
.btn-whatsapp:hover { background:#0e783e; }
.btn-whatsapp svg { width:20px; height:20px; fill:currentColor; flex:none; }
.btn-whatsapp.is-unconfigured { opacity:.75; }
@media (max-width:480px) {
  .profile-toolbar { justify-content:space-between; gap:8px; }
  .btn-whatsapp, #profile-open-btn { flex:1; padding:10px 8px; font-size:13px; }
}

/* SEKA36 image-based card faces */
.card.image-card {
  display: block;
  padding: 0;
  overflow: hidden;
  background: #f5efdf;
  border: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,.35);
}

.card.image-card::before {
  content: none;
}

.card.image-card .card-face-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  border-radius: inherit;
  pointer-events: none;
  user-select: none;
}

/* SEKA 36 table music */
.table-music {
  width: min(880px, 94vw);
  margin: 12px auto;
  padding: 12px;
  border: 1px solid rgba(213,174,87,.35);
  border-radius: 12px;
  background: rgba(16,20,28,.94);
  box-sizing: border-box;
}
.music-heading,.music-local-controls,.music-controls {
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
}
.music-heading { justify-content:space-between; margin-bottom:10px; }
.music-heading strong { color:var(--gold); letter-spacing:.06em; }
#music-status,#music-local-note { color:var(--text-2); font-size:12px; }
.music-controls { margin-bottom:10px; }
#music-url {
  flex:1; min-width:180px; width:100%; box-sizing:border-box;
  padding:10px; border-radius:8px; border:1px solid #394150;
  background:#10141c; color:#fff; font:inherit;
}
.music-player-wrap { position:relative; width:100%; max-width:360px; margin-top:10px; }
.music-player-wrap iframe { display:block; width:100%; aspect-ratio:16/9; border:0; border-radius:8px; }
.music-player-wrap.is-hidden { display:none; }
@media(max-width:480px) {
  .table-music { padding:10px; }
  .music-controls .btn { flex:1; }
}

/* SEKA 36 - hazır profil avatarları */
.profile-avatar-picker-title {
  margin: 0 0 12px;
  color: #e5bd61;
  font-weight: 700;
}

.profile-avatar-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.profile-avatar-option {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 3px;
  overflow: hidden;
  border: 2px solid rgba(229, 189, 97, 0.3);
  border-radius: 50%;
  background: #141820;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.profile-avatar-option img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-avatar-option:hover {
  transform: scale(1.04);
  border-color: #e5bd61;
}

.profile-avatar-option.selected {
  border-color: #f5d77e;
  box-shadow: 0 0 0 3px rgba(245, 215, 126, 0.2);
}

.profile-avatar-option:focus-visible {
  outline: 2px solid #f5d77e;
  outline-offset: 3px;
}

#profile-avatar-picker-message {
  margin: 12px 0 0;
  font-size: 13px;
}

@media (max-width: 480px) {
  .profile-avatar-picker {
    gap: 9px;
  }

  .profile-avatar-option {
    padding: 2px;
  }
}


/* SEKA36_REAL_TABLE_IMAGES_V1
   Fotoşəkildə boş stullar artıq təsvir olunduğuna görə
   köhnə boş stul ikonlarını təkrar göstərmə. */
.table-felt.real-table-background .seat.empty {
  display: none !important;
}


/* SEKA36_TABLE_CARDS_ON_FELT_V1 */
#table-felt .table-my-area {
  position: absolute;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  z-index: 5;
  width: max-content;
  max-width: 90%;
  padding: 0;
  pointer-events: none;
}
#table-felt .table-my-area .my-cards {
  min-height: 0;
  gap: 5px;
  justify-content: center;
}
#table-felt .table-my-area .my-cards .card {
  width: 39px;
  height: 56px;
  border-radius: 5px;
  cursor: pointer;
  pointer-events: auto;
}
#table-felt .table-my-area .my-hint {
  margin-top: 3px;
  font-size: 10px;
  text-shadow: 0 1px 3px #000;
}
#table-felt .seat {
  overflow: visible;
}
#table-felt .seat-card-row {
  position: absolute;
  z-index: 4;
  min-height: 0;
  gap: 3px;
  justify-content: center;
  pointer-events: none;
}
#table-felt .seat-card-row .card {
  width: 25px;
  height: 36px;
  flex: 0 0 auto;
}
#table-felt .seat[data-side="bottom"] .seat-card-row {
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
}
#table-felt .seat[data-side="top"] .seat-card-row {
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
}
#table-felt .seat[data-side="left"] .seat-card-row {
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
}
#table-felt .seat[data-side="right"] .seat-card-row {
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
}
@media (max-width: 600px) {
  #table-felt .table-my-area { bottom: 13%; }
  #table-felt .table-my-area .my-cards .card {
    width: 25px;
    height: 36px;
  }
  #table-felt .seat-card-row .card {
    width: 20px;
    height: 29px;
  }
}

/* SEKA36_REAL_DECK_IMAGE_V1 */
#table-felt #deck-pile {
  position: absolute !important;
  left: 50% !important;
  top: 25% !important;
  right: auto !important;
  width: 96px !important;
  height: 88px !important;
  transform: translate(-50%, -50%) !important;
  transform-origin: center center;
  background-image: url('/images/cards/seka36-deck.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 4 !important;
  opacity: 1 !important;
  pointer-events: none;
}

#table-felt #deck-pile.empty {
  opacity: .45 !important;
}

#table-felt #deck-pile .deck-card {
  display: none !important;
}

#table-felt #deck-pile .deck-count {
  top: auto !important;
  left: 50% !important;
  bottom: -12px !important;
  transform: translateX(-50%);
  width: max-content !important;
  font-size: 10px !important;
}

@media (max-width: 600px) {
  #table-felt #deck-pile {
    width: 70px !important;
    height: 65px !important;
    top: 25% !important;
  }
}


/* SEKA36_CENTER_DECK_LAYOUT_V2 */
/* Dəstəni yaşıl səthin yuxarı mərkəzinə yerləşdir. */
#table-felt #deck-pile {
  left: 50% !important;
  top: 32% !important;
  width: 78px !important;
  height: 72px !important;
  transform: translate(-50%, -50%) !important;
  z-index: 4 !important;
}

/* Bank və raund məlumatları bir mərkəzdə, səliqəli şaquli sıra. */
#table-felt .table-center {
  inset: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  padding: 0 12px !important;
  z-index: 1 !important;
  overflow: visible !important;
}

#table-felt .table-center .pot-label,
#table-felt .table-center .pot-amount,
#table-felt .table-center .round-info,
#table-felt .table-center .status-line,
#table-felt .table-center .table-stake {
  position: relative !important;
  inset: auto !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
  line-height: 1.25 !important;
}

#table-felt .table-center .pot-label {
  font-size: 10px !important;
  letter-spacing: .25em !important;
}

#table-felt .table-center .pot-amount {
  font-size: clamp(28px, 4vw, 40px) !important;
}

#table-felt .table-center .round-info,
#table-felt .table-center .status-line,
#table-felt .table-center .table-stake {
  font-size: 12px !important;
  max-width: 90% !important;
  text-align: center !important;
}

#table-felt .table-center .center-reveals {
  margin: 4px auto 0 !important;
  max-height: 90px !important;
}

@media (max-width: 600px) {
  #table-felt #deck-pile {
    top: 32% !important;
    width: 58px !important;
    height: 54px !important;
  }

  #table-felt .table-center .pot-amount {
    font-size: 27px !important;
  }

  #table-felt .table-center .round-info,
  #table-felt .table-center .status-line,
  #table-felt .table-center .table-stake {
    font-size: 10px !important;
  }
}


/* SEKA36_REFERENCE_LAYOUT_V3 */

/* Dəstə yaşıl səthin sol tərəfində */
#table-felt #deck-pile {
  left: 30% !important;
  top: 49% !important;
  width: 70px !important;
  height: 62px !important;
  transform: translate(-50%, -50%) !important;
  z-index: 4 !important;
  background-size: contain !important;
}

/* Bank yalnız bir mərkəzi blokda, məlumatlar alt-alta */
#table-felt > .table-center {
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  transform: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 0 10px !important;
  z-index: 2 !important;
}

#table-felt > .table-center .pot-label,
#table-felt > .table-center .pot-amount,
#table-felt > .table-center .round-info,
#table-felt > .table-center .status-line,
#table-felt > .table-center .table-stake {
  position: static !important;
  margin: 0 !important;
  transform: none !important;
  flex: 0 0 auto !important;
  text-align: center !important;
  line-height: 1.25 !important;
}

#table-felt > .table-center .pot-label {
  font-size: 11px !important;
}

#table-felt > .table-center .pot-amount {
  font-size: clamp(30px, 4vw, 42px) !important;
}

#table-felt > .table-center .round-info,
#table-felt > .table-center .status-line,
#table-felt > .table-center .table-stake {
  font-size: 12px !important;
  max-width: 90% !important;
}

#table-felt > .table-center .center-reveals:empty {
  display: none !important;
}

@media (max-width: 600px) {
  #table-felt #deck-pile {
    left: 29% !important;
    top: 48% !important;
    width: 50px !important;
    height: 45px !important;
  }

  #table-felt > .table-center .pot-amount {
    font-size: 27px !important;
  }

  #table-felt > .table-center .round-info,
  #table-felt > .table-center .status-line,
  #table-felt > .table-center .table-stake {
    font-size: 10px !important;
  }
}

/* SEKA36_OWN_CARDS_TABLE_PERSPECTIVE_V1 */
#table-felt .table-my-area {
  position: absolute !important;
  left: 50% !important;
  bottom: 8% !important;
  top: auto !important;
  transform: translateX(-50%) perspective(650px) rotateX(12deg) !important;
  transform-origin: center bottom !important;
  z-index: 6 !important;
  width: max-content !important;
  max-width: 92% !important;
  padding: 0 !important;
  pointer-events: none !important;
}

#table-felt .table-my-area .my-cards {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 0 !important;
}

#table-felt .table-my-area .my-cards .card {
  width: 39px !important;
  height: 56px !important;
  flex: 0 0 auto !important;
  border-radius: 5px !important;
  transform-origin: center bottom !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  box-shadow: 0 4px 8px #0008 !important;
}

#table-felt .table-my-area .my-cards .card:nth-child(1) {
  transform: rotate(-5deg) translateY(2px);
}

#table-felt .table-my-area .my-cards .card:nth-child(2) {
  transform: translateY(-2px);
}

#table-felt .table-my-area .my-cards .card:nth-child(3) {
  transform: rotate(5deg) translateY(2px);
}

#table-felt .table-my-area .my-cards .card:hover {
  transform: translateY(-8px) !important;
}

#table-felt .table-my-area .my-hint {
  margin-top: 5px !important;
  font-size: 10px !important;
  text-align: center !important;
  text-shadow: 0 1px 3px #000 !important;
}

@media (max-width: 600px) {
  #table-felt .table-my-area {
    bottom: 8% !important;
  }

  #table-felt .table-my-area .my-cards {
    gap: 4px !important;
  }

  #table-felt .table-my-area .my-cards .card {
    width: 25px !important;
    height: 36px !important;
  }
}

/* SEKA36_OWN_CARDS_FELT_POSITION_FINAL */
#table-felt .table-my-area {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: 40% !important;
  transform: translateX(-50%) perspective(650px) rotateX(8deg) !important;
  transform-origin: center bottom !important;
  z-index: 12 !important;
  width: max-content !important;
  max-width: 92% !important;
  padding: 0 !important;
  pointer-events: none !important;
}

#table-felt .table-my-area .my-cards {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 0 !important;
}

#table-felt .table-my-area .my-cards .card {
  width: 39px !important;
  height: 56px !important;
  flex: 0 0 auto !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  box-shadow: 0 3px 8px #0008 !important;
}

#table-felt .table-my-area .my-cards .card:nth-child(1) {
  transform: rotate(-4deg) translateY(2px);
}

#table-felt .table-my-area .my-cards .card:nth-child(2) {
  transform: translateY(-3px);
}

#table-felt .table-my-area .my-cards .card:nth-child(3) {
  transform: rotate(4deg) translateY(2px);
}

#table-felt .table-my-area .my-hint {
  margin-top: 4px !important;
  text-align: center !important;
  font-size: 10px !important;
  text-shadow: 0 1px 3px #000 !important;
}

@media (max-width: 600px) {
  #table-felt .table-my-area {
    bottom: 32% !important;
    max-width: 96% !important;
  }

  #table-felt .table-my-area .my-cards {
    gap: 4px !important;
  }

  #table-felt .table-my-area .my-cards .card {
    width: 25px !important;
    height: 36px !important;
  }
}
/* END SEKA36_OWN_CARDS_FELT_POSITION_FINAL */

/* SEKA36_OPPONENT_CARDS_ON_FELT_V1 */
#table-felt .seat:not(.me) {
  overflow: visible !important;
}

#table-felt .seat:not(.me) .seat-card-row {
  position: absolute !important;
  z-index: 8 !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  justify-content: center !important;
  gap: 3px !important;
  min-height: 0 !important;
  pointer-events: none !important;
}

/* Üst tərəfdəki rəqiblərin kartları masanın aşağısına */
#table-felt .seat[data-side="top"]:not(.me) .seat-card-row {
  top: calc(100% + 95px) !important;
}

/* Sol və sağ rəqiblərin kartları masanın mərkəzinə tərəf */
#table-felt .seat[data-side="left"]:not(.me) .seat-card-row {
  top: calc(50% + 30px) !important;
  left: calc(100% + 85px) !important;
}

#table-felt .seat[data-side="right"]:not(.me) .seat-card-row {
  top: calc(50% + 30px) !important;
  left: auto !important;
  right: calc(100% + 85px) !important;
}

#table-felt .seat:not(.me) .seat-card-row .card {
  width: 25px !important;
  height: 36px !important;
  flex: 0 0 auto !important;
}

@media (max-width: 600px) {
  #table-felt .seat[data-side="top"]:not(.me) .seat-card-row {
    top: calc(100% + 58px) !important;
  }

  #table-felt .seat[data-side="left"]:not(.me) .seat-card-row {
    top: calc(50% + 20px) !important;
    left: calc(100% + 35px) !important;
  }

  #table-felt .seat[data-side="right"]:not(.me) .seat-card-row {
    top: calc(50% + 20px) !important;
    right: calc(100% + 35px) !important;
  }

  #table-felt .seat:not(.me) .seat-card-row .card {
    width: 20px !important;
    height: 29px !important;
  }
}
/* END SEKA36_OPPONENT_CARDS_ON_FELT_V1 */


/* SEKA36_TABLE_COORDINATE_OPPONENT_CARDS_V1 */
#table-felt > .table-opponent-cards {
  position: absolute !important;
  z-index: 7 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  min-height: 0 !important;
  left: 50% !important;
  top: 27% !important;
  transform: translate(-50%, 0) !important;
  pointer-events: none !important;
}

#table-felt > .table-opponent-cards .card {
  width: 25px !important;
  height: 36px !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}

@media (max-width: 600px) {
  #table-felt > .table-opponent-cards .card {
    width: 20px !important;
    height: 29px !important;
  }
}
/* END SEKA36_TABLE_COORDINATE_OPPONENT_CARDS_V1 */

/* SEKA36_CARD_LAYOUT_ROUND_FIX_V1 */
#table-felt .table-my-area {
  bottom: 8% !important;
}
@media (max-width: 600px) {
  #table-felt .table-my-area {
    bottom: 8% !important;
  }
}
/* END SEKA36_CARD_LAYOUT_ROUND_FIX_V1 */

/* SEKA36_MY_CARDS_BELOW_CENTER_TEXT_V1 */
#table-felt .table-my-area {
  left: 50% !important;
  top: auto !important;
  bottom: 3% !important;
  transform: translateX(-50%) !important;
  z-index: 6 !important;
}
#table-felt .table-my-area .my-hint {
  margin-top: 2px !important;
}
@media (max-width: 600px) {
  #table-felt .table-my-area {
    bottom: 3% !important;
  }
}
/* END SEKA36_MY_CARDS_BELOW_CENTER_TEXT_V1 */

/* SEKA36_OWN_CARDS_IN_GAP_V1 */
/* Öz kartlarını masanın altına, masa ilə düymələr arasındakı boşluğa çıxar */
#table-felt .table-my-area {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: -19% !important;
  transform: translateX(-50%) !important;
  transform-origin: center center !important;
  z-index: 30 !important;
  width: max-content !important;
  max-width: 95% !important;
  pointer-events: none !important;
}

#table-felt .table-my-area .my-cards {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
}

#table-felt .table-my-area .my-cards .card {
  width: 39px !important;
  height: 56px !important;
  flex: 0 0 auto !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  box-shadow: 0 3px 8px #0009 !important;
}

#table-felt .table-my-area .my-hint {
  margin-top: 3px !important;
  text-align: center !important;
  font-size: 10px !important;
}

@media (max-width: 600px) {
  #table-felt .table-my-area {
    bottom: -16% !important;
  }

  #table-felt .table-my-area .my-cards {
    gap: 4px !important;
  }

  #table-felt .table-my-area .my-cards .card {
    width: 25px !important;
    height: 36px !important;
  }
}
/* END SEKA36_OWN_CARDS_IN_GAP_V1 */

/* ===== SEKA 36 PREMIUM TOPBAR ANIMATION ===== */

.game-topbar .mini-logo {
  position: relative;
  display: inline-block;
  background: linear-gradient(
    110deg,
    #b8892d 0%,
    #f9df88 25%,
    #fff2bd 42%,
    #d5a63f 58%,
    #f8df91 75%,
    #b8892d 100%
  );
  background-size: 220% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sekaGoldShimmer 5s ease-in-out infinite;
}

.game-topbar .game-deposit-top {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(221, 176, 77, .16);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.game-topbar .game-deposit-top::after {
  content: "";
  position: absolute;
  top: -60%;
  bottom: -60%;
  left: -75%;
  width: 42%;
  transform: skewX(-22deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, .48),
    transparent
  );
  animation: sekaDepositShine 4.5s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

.game-topbar .game-deposit-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 24px rgba(221, 176, 77, .32);
  filter: brightness(1.06);
}

.game-topbar #leave-table-btn {
  transition: border-color .25s ease, color .25s ease,
              background-color .25s ease, transform .25s ease;
}

.game-topbar #leave-table-btn:hover {
  border-color: rgba(232, 190, 91, .75);
  color: #f3d58a;
  background-color: rgba(218, 174, 75, .08);
  transform: translateY(-1px);
}

@keyframes sekaGoldShimmer {
  0%, 100% { background-position: 100% center; }
  50% { background-position: 0% center; }
}

@keyframes sekaDepositShine {
  0%, 65% { left: -75%; }
  88%, 100% { left: 140%; }
}

@media (prefers-reduced-motion: reduce) {
  .game-topbar .mini-logo,
  .game-topbar .game-deposit-top::after {
    animation: none !important;
  }

  .game-topbar .game-deposit-top,
  .game-topbar #leave-table-btn {
    transition: none !important;
  }
}

/* ===== END TOPBAR ANIMATION ===== */

/* SEKA 36 — TOP BUTTON PREMIUM MOTION */
.game-topbar .game-deposit-top {
  animation: sekaDepositPulse 3.2s ease-in-out infinite;
  will-change: box-shadow;
}

.game-topbar #leave-table-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.game-topbar #leave-table-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(238, 197, 99, 0);
  pointer-events: none;
  transition: border-color .3s ease, box-shadow .3s ease;
}

.game-topbar #leave-table-btn:hover::before {
  border-color: rgba(238, 197, 99, .8);
  box-shadow: inset 0 0 14px rgba(238, 197, 99, .09);
}

.game-topbar #leave-table-btn:hover {
  transform: translateY(-2px);
  color: #f5d98e;
}

@keyframes sekaDepositPulse {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(221, 176, 77, .14);
  }
  50% {
    box-shadow:
      0 4px 23px rgba(221, 176, 77, .34),
      0 0 9px rgba(255, 221, 135, .13);
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-topbar .game-deposit-top {
    animation: none !important;
  }
}
/* END SEKA 36 TOP BUTTON PREMIUM MOTION */

/* SEKA 36 — MASADAN CIX PREMIUM EFFECT */
.game-topbar #leave-table-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(213, 166, 63, .42);
  background: linear-gradient(115deg, #111318, #1b1b19, #111318);
  background-size: 200% 100%;
  color: #c9c0ae;
  box-shadow: 0 0 0 rgba(218, 174, 75, 0);
  transition:
    color .28s ease,
    border-color .28s ease,
    box-shadow .28s ease,
    transform .28s ease,
    background-position .5s ease;
}

.game-topbar #leave-table-btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -30%;
  bottom: -30%;
  left: -100%;
  width: 55%;
  transform: skewX(-24deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 220, 139, .20),
    transparent
  );
  animation: sekaLeaveShimmer 5s ease-in-out infinite;
  pointer-events: none;
}

.game-topbar #leave-table-btn:hover {
  color: #f6d98d;
  border-color: #d9ae4b;
  background-position: 100% 50%;
  box-shadow:
    0 0 17px rgba(218, 174, 75, .18),
    inset 0 0 12px rgba(218, 174, 75, .06);
  transform: translateY(-2px);
}

.game-topbar #leave-table-btn:active {
  transform: translateY(1px) scale(.97);
}

@keyframes sekaLeaveShimmer {
  0%, 72% { left: -100%; }
  92%, 100% { left: 150%; }
}

@media (prefers-reduced-motion: reduce) {
  .game-topbar #leave-table-btn,
  .game-topbar #leave-table-btn::after {
    animation: none !important;
    transition: none !important;
  }
}

/* END MASADAN CIX EFFECT */

/* ===== SEKA 36 GAME ACTION BUTTONS ===== */

/* Bank, Davam et, Artır, Aç, Baxışma, SEKA, BOL və Pas */
#game-screen .game-controls button,
#game-screen .game-actions button,
#game-screen .action-buttons button,
#game-screen .game-bottom button,
#game-screen button[id*="bank"],
#game-screen button[id*="continue"],
#game-screen button[id*="artir"],
#game-screen button[id*="seka"],
#game-screen button[id*="bol"] {
  transition:
    transform .22s ease,
    box-shadow .25s ease,
    border-color .25s ease,
    filter .25s ease;
}

/* Ümumi hover effekti */
#game-screen .game-controls button:hover:not(:disabled),
#game-screen .game-actions button:hover:not(:disabled),
#game-screen .action-buttons button:hover:not(:disabled),
#game-screen .game-bottom button:hover:not(:disabled),
#game-screen button[id*="bank"]:hover:not(:disabled),
#game-screen button[id*="continue"]:hover:not(:disabled),
#game-screen button[id*="artir"]:hover:not(:disabled),
#game-screen button[id*="seka"]:hover:not(:disabled),
#game-screen button[id*="bol"]:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 5px 16px rgba(218, 174, 75, .2);
}

/* Klik zamanı yüngül basılma */
#game-screen .game-controls button:active:not(:disabled),
#game-screen .game-actions button:active:not(:disabled),
#game-screen .action-buttons button:active:not(:disabled),
#game-screen .game-bottom button:active:not(:disabled) {
  transform: scale(.97);
}

/* SEKA düyməsi — xüsusi qızılı vurğu */
#game-screen button[id*="seka"] {
  border-color: rgba(225, 181, 76, .55);
}

#game-screen button[id*="seka"]:hover:not(:disabled) {
  box-shadow:
    0 0 18px rgba(225, 181, 76, .3),
    inset 0 0 10px rgba(225, 181, 76, .08);
}

/* BOL düyməsi — zərif qızılı kontur */
#game-screen button[id*="bol"]:hover:not(:disabled) {
  border-color: rgba(235, 202, 120, .8);
}

/* Söndürülmüş düymələr hərəkət etməsin */
#game-screen button:disabled {
  transform: none !important;
  filter: none;
  box-shadow: none;
  cursor: not-allowed;
}

/* Hərəkət həssaslığı olan istifadəçilər üçün */
@media (prefers-reduced-motion: reduce) {
  #game-screen button {
    transition: none !important;
  }
}

/* ===== END GAME ACTION BUTTONS ===== */

/* ===== SEKA 36 ACTION BAR — PREMIUM ANIMATION ===== */

#action-bar .btn-action {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform .22s ease,
    box-shadow .25s ease,
    border-color .25s ease,
    color .25s ease,
    filter .25s ease;
}

#action-bar .btn-action::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -40%;
  bottom: -40%;
  left: -85%;
  width: 45%;
  transform: skewX(-23deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 225, 151, .23),
    transparent
  );
  pointer-events: none;
  animation: sekaActionShimmer 6s ease-in-out infinite;
}

#action-bar .btn-action:hover:not(:disabled) {
  transform: translateY(-2px);
  color: #f4d78c;
  border-color: rgba(226, 184, 89, .75);
  box-shadow:
    0 5px 17px rgba(218, 174, 75, .17),
    inset 0 0 10px rgba(218, 174, 75, .05);
  filter: brightness(1.08);
}

#action-bar .btn-action:active:not(:disabled) {
  transform: translateY(1px) scale(.97);
  box-shadow: inset 0 2px 7px rgba(0, 0, 0, .25);
}

#action-bar .btn-action:disabled {
  animation: none;
  transform: none;
  filter: none;
  box-shadow: none;
}

#action-bar .btn-action:disabled::after {
  animation: none;
}

/* SEKA — xüsusi qızılı vurğu */
#action-bar .btn-seka {
  border-color: rgba(225, 181, 76, .55);
  box-shadow: inset 0 0 12px rgba(225, 181, 76, .035);
}

#action-bar .btn-seka:hover:not(:disabled) {
  box-shadow:
    0 0 19px rgba(225, 181, 76, .25),
    inset 0 0 12px rgba(225, 181, 76, .09);
}

/* BOL — incə qızılı işıq */
#action-bar [data-action="bol"]:hover:not(:disabled) {
  box-shadow:
    0 0 16px rgba(238, 202, 116, .19),
    inset 0 0 9px rgba(238, 202, 116, .06);
}

@keyframes sekaActionShimmer {
  0%, 75% { left: -85%; }
  93%, 100% { left: 145%; }
}

@media (prefers-reduced-motion: reduce) {
  #action-bar .btn-action,
  #action-bar .btn-action::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== END ACTION BAR ANIMATION ===== */

/* ===== ALWAYS VISIBLE ANIMATION — ALL GAME BUTTONS ===== */

#action-bar .btn-action {
  position: relative !important;
  animation: sekaButtonGlow 2.4s ease-in-out infinite !important;
  transition: transform .2s ease, filter .2s ease !important;
}

#action-bar .btn-action::after {
  content: "" !important;
  position: absolute !important;
  z-index: 1 !important;
  top: 0 !important;
  bottom: 0 !important;
  left: -90% !important;
  width: 45% !important;
  background: linear-gradient(
    105deg,
    transparent,
    rgba(255, 224, 150, .28),
    transparent
  ) !important;
  transform: skewX(-20deg) !important;
  pointer-events: none !important;
  animation: sekaButtonSweep 3.6s ease-in-out infinite !important;
}

#action-bar .btn-action:nth-child(2)::after { animation-delay: .25s !important; }
#action-bar .btn-action:nth-child(3)::after { animation-delay: .5s !important; }
#action-bar .btn-action:nth-child(4)::after { animation-delay: .75s !important; }
#action-bar .btn-action:nth-child(5)::after { animation-delay: 1s !important; }
#action-bar .btn-action:nth-child(6)::after { animation-delay: 1.25s !important; }
#action-bar .btn-action:nth-child(7)::after { animation-delay: 1.5s !important; }
#action-bar .btn-action:nth-child(8)::after { animation-delay: 1.75s !important; }

#action-bar .btn-action:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.15) !important;
}

#action-bar .btn-action.btn-seka {
  animation: sekaSpecialGlow 2s ease-in-out infinite !important;
}

@keyframes sekaButtonGlow {
  0%, 100% {
    box-shadow: 0 0 3px rgba(218, 174, 75, .10);
    border-color: rgba(218, 174, 75, .22);
  }
  50% {
    box-shadow:
      0 0 13px rgba(218, 174, 75, .32),
      inset 0 0 8px rgba(218, 174, 75, .08);
    border-color: rgba(238, 202, 116, .65);
  }
}

@keyframes sekaSpecialGlow {
  0%, 100% {
    box-shadow: 0 0 6px rgba(238, 190, 73, .20);
  }
  50% {
    box-shadow:
      0 0 20px rgba(238, 190, 73, .48),
      inset 0 0 12px rgba(238, 190, 73, .14);
  }
}

@keyframes sekaButtonSweep {
  0%, 10% { left: -90%; }
  65%, 100% { left: 150%; }
}

@media (prefers-reduced-motion: reduce) {
  #action-bar .btn-action,
  #action-bar .btn-action::after {
    animation: none !important;
  }
}

/* ===== END ALWAYS VISIBLE BUTTON ANIMATION ===== */

/* SEKA36: animated money notes on the felt */
#table-felt #money-stack-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

#table-felt .money-note {
  position: absolute;
  width: clamp(76px, 12vw, 118px);
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  opacity: 0;
  filter: drop-shadow(0 5px 4px rgba(0,0,0,.45));
  border-radius: 3px;
  will-change: left, top, transform, opacity;
}

@media (max-width: 600px) {
  #table-felt .money-note {
    width: 76px;
  }
}

/* SEKA36: two-sided money animation placement */
#table-felt #money-stack-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

#table-felt .money-note {
  position: absolute;
  width: clamp(76px, 11vw, 108px);
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  opacity: 0;
  border-radius: 3px;
  filter: drop-shadow(0 5px 4px rgba(0,0,0,.45));
  will-change: left, top, transform, opacity;
}

@media (max-width: 600px) {
  #table-felt .money-note { width: 68px; }
}

/* SEKA36 money animation placement fix */
#table-felt {
  position: relative;
  overflow: hidden;
}
#table-felt #money-stack-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}
#table-felt .money-note {
  position: absolute;
  width: clamp(54px, 8vw, 82px);
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  opacity: 0;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.38));
  border-radius: 3px;
  will-change: left, top, transform, opacity;
}
@media (max-width: 600px) {
  #table-felt .money-note {
    width: 52px;
  }
}

/* SEKA36: telefonda əskinasları kiçilt və bank məbləğini açıq saxla */
@media (max-width: 600px) {
  #table-felt .money-note {
    width: 44px;
  }
}


/* SEKA36 LOBBY PREMIUM MICRO-ANIMATIONS */
#tables-panel {
  animation: sekaLobbyAppear .65s cubic-bezier(.2,.7,.25,1) both;
}

#tables-panel > .panel-head h2,
#tables-panel .profile-kicker,
.lobby-foot {
  animation: sekaGoldShimmer 5s ease-in-out infinite;
}

#support-whatsapp-btn,
#profile-open-btn {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  transition: transform .22s ease, box-shadow .28s ease,
              filter .25s ease, border-color .25s ease;
  animation: sekaLobbyButtonIn .55s ease both;
}

#support-whatsapp-btn { animation-delay: .08s; }
#profile-open-btn { animation-delay: .16s; }

#support-whatsapp-btn:hover,
#profile-open-btn:hover {
  transform: translateY(-3px) scale(1.015);
  filter: brightness(1.08);
  box-shadow: 0 7px 22px rgba(225,181,76,.22);
}

#support-whatsapp-btn:active,
#profile-open-btn:active {
  transform: scale(.97);
}

#support-whatsapp-btn svg {
  transition: transform .3s ease;
}
#support-whatsapp-btn:hover svg {
  transform: rotate(-8deg) scale(1.08);
}

#profile-open-btn {
  box-shadow: 0 4px 14px rgba(218,174,75,.12);
}

#tables-panel input,
#tables-panel select,
#tables-panel input[type="range"] {
  transition: border-color .22s ease, box-shadow .22s ease,
              background-color .22s ease;
}

#tables-panel input:focus,
#tables-panel select:focus {
  outline: none;
  border-color: rgba(230,190,94,.75);
  box-shadow: 0 0 0 3px rgba(225,181,76,.11);
}

#tables-panel input[type="range"] {
  accent-color: #e5bd5d;
  cursor: pointer;
}

#tables-panel .btn {
  transition: transform .2s ease, box-shadow .25s ease,
              filter .22s ease;
}

#tables-panel .btn:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 5px 16px rgba(225,181,76,.16);
}

#tables-panel .btn:active:not(:disabled) {
  transform: scale(.975);
}

/* Otaq siyahısındakı kartlar — müxtəlif mövcud sinif adlarını dəstəkləyir. */
#tables-panel .table-card,
#tables-panel .room-card,
#tables-panel .table-item,
#tables-panel .room-item,
#tables-panel [data-table-id],
#tables-panel [data-room-id] {
  transition: transform .25s ease, border-color .25s ease,
              box-shadow .28s ease, background-color .25s ease;
  animation: sekaRoomCardIn .48s ease both;
}

#tables-panel .table-card:hover,
#tables-panel .room-card:hover,
#tables-panel .table-item:hover,
#tables-panel .room-item:hover,
#tables-panel [data-table-id]:hover,
#tables-panel [data-room-id]:hover {
  transform: translateY(-3px);
  border-color: rgba(225,181,76,.45);
  box-shadow: 0 8px 22px rgba(0,0,0,.2),
              0 0 14px rgba(225,181,76,.07);
}

@keyframes sekaLobbyAppear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sekaLobbyButtonIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sekaRoomCardIn {
  from { opacity: .65; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sekaGoldShimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  #tables-panel,
  #tables-panel *,
  #tables-panel *::before,
  #tables-panel *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* SEKA36 LOBBY FINAL ANIMATIONS */
#lobby-screen .brand-logo {
  display: inline-block;
  animation: sekaFinalLogo 1.8s ease-in-out infinite !important;
}
#lobby-screen .brand-sub {
  animation: sekaFinalSubtitle 2.8s ease-in-out infinite !important;
}
#lobby-screen #support-whatsapp-btn,
#lobby-screen #profile-open-btn,
#lobby-screen #tables-panel #create-table-btn {
  animation: sekaFinalButton 2s ease-in-out infinite !important;
  transition: transform .22s ease, filter .22s ease,
              box-shadow .22s ease !important;
}
#lobby-screen #support-whatsapp-btn svg {
  animation: sekaFinalIcon 2.2s ease-in-out infinite !important;
}
#lobby-screen #table-list > .table-row {
  animation: sekaFinalRoom .7s ease-out both !important;
  transition: transform .22s ease, box-shadow .22s ease !important;
}
#lobby-screen #table-list > .table-row:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 0 20px rgba(230,190,94,.45) !important;
}
#lobby-screen .btn:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.035);
  filter: brightness(1.2);
  box-shadow: 0 0 18px rgba(230,190,94,.45);
}
#lobby-screen #table-list > .table-row:nth-child(2) { animation-delay: .08s !important; }
#lobby-screen #table-list > .table-row:nth-child(3) { animation-delay: .16s !important; }
#lobby-screen #table-list > .table-row:nth-child(4) { animation-delay: .24s !important; }
#lobby-screen #table-list > .table-row:nth-child(5) { animation-delay: .32s !important; }

@keyframes sekaFinalLogo {
  0%, 100% { filter: brightness(1); text-shadow: 0 0 2px rgba(230,190,94,.2); }
  50% { filter: brightness(1.65); text-shadow: 0 0 24px rgba(255,205,80,.95), 0 0 42px rgba(230,160,30,.6); }
}
@keyframes sekaFinalSubtitle {
  0%, 100% { opacity: .65; }
  50% { opacity: 1; }
}
@keyframes sekaFinalButton {
  0%, 100% { box-shadow: 0 0 3px rgba(230,190,94,.12); filter: brightness(1); }
  50% { box-shadow: 0 0 22px rgba(230,190,94,.65); filter: brightness(1.18); }
}
@keyframes sekaFinalIcon {
  0%, 80%, 100% { transform: scale(1) rotate(0); }
  88% { transform: scale(1.2) rotate(-8deg); }
}
@keyframes sekaFinalRoom {
  from { opacity: .15; transform: translateY(20px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* SEKA36_MOBILE_OWN_CARDS_LARGER_V1 */
@media (max-width: 600px) {
  #table-felt .table-my-area {
    max-width: 96% !important;
  }

  #table-felt .table-my-area .my-cards {
    gap: 7px !important;
    justify-content: center !important;
    align-items: center !important;
  }

  #table-felt .table-my-area .my-cards .card {
    width: 42px !important;
    height: 60px !important;
    min-width: 42px !important;
    flex: 0 0 42px !important;
    border-radius: 6px !important;
  }
}
/* END SEKA36_MOBILE_OWN_CARDS_LARGER_V1 */


/* Şəxsi açılmış kartın xal nişanı */
#my-cards .card-private-points {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 5;
  min-width: 23px;
  height: 23px;
  padding: 2px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8b45c;
  border-radius: 50%;
  background: #17120a;
  color: #f5d47c;
  font: 800 12px/1 Arial, sans-serif;
  box-shadow: 0 1px 5px rgba(0,0,0,.4);
  pointer-events: none;
}


/* SEKA36 - two-player final round result popup */
.round-result-overlay:not(.hidden) {
  position: fixed;
  inset: 0;
  z-index: 3000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(5px);
}

.round-result-panel {
  width: min(520px, 94vw);
  aspect-ratio: 1 / 1;
  max-height: 90dvh;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-align: center;
  color: #fff;
  background: linear-gradient(160deg, #202020, #090909);
  border: 2px solid #b89445;
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .8);
}

.round-result-panel h2 {
  margin: 0;
  color: #e8c36a;
  font-size: clamp(17px, 4vw, 23px);
  letter-spacing: .07em;
}

.round-result-hands {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.round-result-hand {
  flex: 1;
  min-width: 0;
  padding: 10px 5px;
  border: 1px solid rgba(232, 195, 106, .35);
  border-radius: 10px;
  background: rgba(0, 0, 0, .35);
}

.round-result-player-name {
  margin-bottom: 8px;
  color: #f5d98c;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.round-result-cards {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.round-result-score {
  margin-top: 8px;
  font-weight: 800;
  font-size: 17px;
  color: #fff;
}

.round-result-winner {
  color: #f5d98c;
  font-weight: 900;
  font-size: clamp(16px, 4vw, 21px);
  overflow-wrap: anywhere;
}

.round-result-payout {
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

@media (max-width: 480px) {
  .round-result-panel {
    padding: 14px 9px;
    gap: 9px;
  }
  .round-result-hands {
    gap: 6px;
  }
  .round-result-hand {
    padding: 8px 3px;
  }
  .round-result-cards {
    gap: 2px;
  }
}
