/* ============================================================
   SCUM WEB - military dark theme
   ============================================================ */
:root {
  --bg: #0d1012;
  --bg2: #12171a;
  --panel: #171d21;
  --panel2: #1d2429;
  --line: #262f36;
  --line2: #303b43;
  --text: #dbe2e7;
  --muted: #8b98a2;
  --accent: #ff7b1a;
  --accent-soft: rgba(255, 123, 26, .14);
  --green: #37c871;
  --green-soft: rgba(55, 200, 113, .14);
  --red: #f0523f;
  --red-soft: rgba(240, 82, 63, .14);
  --gold: #ffc93c;
  --blue: #4aa8ff;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --radius: 12px;
  --sidebar-w: 236px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(255, 123, 26, .07), transparent 60%),
    var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #14100b; }

/* ---------------- sidebar ---------------- */
#sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg2), #0c0f11);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
  transition: transform .25s ease;
}

.brand { display: flex; gap: 12px; align-items: center; padding: 18px 16px 14px; border-bottom: 1px solid var(--line); }
.brand-logo {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #b34d00);
  color: #14100b; font-size: 22px; display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(255, 123, 26, .35);
  overflow: hidden; flex: 0 0 auto;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 20px; letter-spacing: 3px; }
.brand-text span { font-size: 10px; color: var(--muted); letter-spacing: 2.5px; }

nav { flex: 1; padding: 14px 10px; overflow-y: auto; }
.nav-label { font-size: 10px; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); padding: 12px 10px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin: 2px 0; border-radius: 9px;
  color: var(--text); text-decoration: none; font-size: 14px;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, transform .12s;
}
.nav-item:hover { background: var(--panel); transform: translateX(2px); }
.nav-item.active { background: var(--accent-soft); border-color: rgba(255, 123, 26, .35); color: #ffd9b5; }
.nav-ico { font-size: 16px; width: 20px; text-align: center; }

.sidebar-foot { padding: 12px; border-top: 1px solid var(--line); }

/* ---------------- topbar ---------------- */
#main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

#topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 16, 18, .8);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 30;
}
#menuToggle { display: none; }
.topbar-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.status-pill {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
  background: var(--panel); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #666; box-shadow: 0 0 0 0 rgba(55, 200, 113, .5); }
.dot.on { background: var(--green); animation: pulse 2.2s infinite; }
.dot.off { background: var(--red); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(55, 200, 113, .5); }
  70% { box-shadow: 0 0 0 8px rgba(55, 200, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(55, 200, 113, 0); }
}

.chip-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line2); border-radius: 999px;
  padding: 7px 14px; font-size: 13px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.chip-btn:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ---------------- view / layout ---------------- */
#view { padding: 24px; max-width: 1280px; width: 100%; margin: 0 auto; }

.page { animation: fadeUp .28s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.page-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; font-weight: 650; letter-spacing: .4px; }
.page-head p { color: var(--muted); font-size: 13px; }
.page-head .spacer { flex: 1; }

.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.card {
  background: linear-gradient(180deg, var(--panel), var(--bg2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 12px; }
.card .big { font-size: 34px; font-weight: 700; }
.card .sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; }

/* ---------------- buttons / inputs ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line2);
  background: var(--panel2); color: var(--text);
  border-radius: 9px; padding: 9px 16px; font-size: 13.5px;
  cursor: pointer; transition: all .15s; user-select: none; white-space: nowrap;
}
.btn:hover { border-color: var(--accent); color: #ffd9b5; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--accent), #d35f00); border-color: transparent; color: #14100b; font-weight: 600; }
.btn-primary:hover { color: #14100b; filter: brightness(1.08); }
.btn-danger { background: var(--red-soft); border-color: rgba(240, 82, 63, .5); color: #ffb3a8; }
.btn-danger:hover { border-color: var(--red); color: #ffd2ca; }
.btn-success { background: var(--green-soft); border-color: rgba(55, 200, 113, .5); color: #a7ecc4; }
.btn-success:hover { border-color: var(--green); color: #d2f8e2; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; }
.btn-lg { padding: 12px 22px; font-size: 15px; }

input, select, textarea {
  width: 100%;
  background: #0e1315;
  border: 1px solid var(--line2);
  border-radius: 9px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 123, 26, .15);
}
textarea { resize: vertical; min-height: 84px; }
label.f { display: block; font-size: 12px; color: var(--muted); margin: 10px 0 5px; letter-spacing: .4px; }

.field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.field-row > * { flex: 1; min-width: 120px; }

/* ---------------- chips / tabs / badges ---------------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  background: var(--panel); border: 1px solid var(--line2); color: var(--text);
  padding: 7px 14px; border-radius: 999px; font-size: 13px; cursor: pointer;
  transition: all .15s;
}
.chip:hover { border-color: var(--accent); }
.chip.active { background: var(--accent-soft); border-color: var(--accent); color: #ffd9b5; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; border: 1px solid var(--line2); color: var(--muted); }
.badge.green { background: var(--green-soft); border-color: rgba(55, 200, 113, .4); color: #a7ecc4; }
.badge.red { background: var(--red-soft); border-color: rgba(240, 82, 63, .4); color: #ffb3a8; }
.badge.amber { background: var(--accent-soft); border-color: rgba(255, 123, 26, .4); color: #ffd9b5; }
.badge.blue { background: rgba(74, 168, 255, .12); border-color: rgba(74, 168, 255, .4); color: #b8dcff; }

/* ---------------- tables ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line);
  background: var(--bg2); position: sticky; top: 0;
}
td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: rgba(255, 255, 255, .025); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.rank-1 td { background: rgba(255, 201, 60, .07); }
.rank-2 td { background: rgba(190, 200, 210, .05); }
.rank-3 td { background: rgba(205, 127, 50, .07); }
.medal { font-size: 16px; width: 34px; }

/* ---------------- modal ---------------- */
#modalRoot:empty { display: none; }
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5, 7, 8, .72);
  backdrop-filter: blur(3px);
  display: grid; place-items: center;
  padding: 18px;
  animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line2);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
  animation: popIn .2s cubic-bezier(.2, .9, .3, 1.2);
}
.modal.wide { max-width: 760px; }
@keyframes popIn { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 17px; font-weight: 650; flex: 1; }
.modal-x { background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; padding: 4px 8px; border-radius: 7px; }
.modal-x:hover { color: var(--text); background: var(--panel); }
.modal-body { padding: 18px 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }

/* ---------------- toasts ---------------- */
#toastRoot { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.toast {
  background: var(--panel2); border: 1px solid var(--line2); border-left: 4px solid var(--accent);
  border-radius: 10px; padding: 12px 16px; font-size: 13.5px; box-shadow: var(--shadow);
  animation: toastIn .25s ease;
  word-break: break-word;
}
.toast.ok { border-left-color: var(--green); }
.toast.err { border-left-color: var(--red); }
.toast.out { animation: toastOut .25s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* ---------------- misc ---------------- */
.muted { color: var(--muted); }
.mono { font-family: Consolas, "Cascadia Mono", monospace; }
.small { font-size: 12.5px; }
.center { text-align: center; }
.mt { margin-top: 14px; }
.mb { margin-bottom: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.grow { flex: 1; }

pre.out {
  background: #0a0d0e; border: 1px solid var(--line); border-radius: 9px;
  padding: 12px; font-size: 12.5px; white-space: pre-wrap; word-break: break-word;
  max-height: 320px; overflow-y: auto; color: #c6d2da; font-family: Consolas, monospace;
}

.skeleton {
  border-radius: 8px;
  background: linear-gradient(90deg, var(--panel) 25%, var(--panel2) 50%, var(--panel) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.empty { color: var(--muted); text-align: center; padding: 34px 12px; font-size: 13.5px; }

/* ============================================================ shop */
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 14px; }
.item-card {
  background: linear-gradient(180deg, var(--panel), var(--bg2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 8px;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.item-card:hover { transform: translateY(-3px); border-color: rgba(255, 123, 26, .45); box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.item-card .name { font-weight: 650; font-size: 15px; }
.item-card .desc { color: var(--muted); font-size: 12.5px; flex: 1; min-height: 32px; }
.item-card .price { color: var(--gold); font-weight: 700; font-size: 16px; }
.item-card.soldout { opacity: .55; }

.wallet-card { background: linear-gradient(135deg, rgba(255,201,60,.12), rgba(255,123,26,.06)); border-color: rgba(255,201,60,.3); }
.wallet-bal { font-size: 32px; font-weight: 750; color: var(--gold); }

/* ============================================================ casino */
.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.game-card {
  background: linear-gradient(160deg, var(--panel), var(--bg2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px; text-align: center; cursor: pointer;
  transition: transform .15s, border-color .15s;
}
.game-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.game-card .g-ico { font-size: 42px; margin-bottom: 8px; display: block; }
.game-card .g-name { font-weight: 650; font-size: 16px; }
.game-card .g-note { color: var(--muted); font-size: 12px; margin-top: 6px; }
.game-card.closed { opacity: .45; cursor: not-allowed; }

/* blackjack */
.bj-table { text-align: center; }
.bj-side { margin: 10px 0; }
.bj-side .who { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; }
.cards { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; min-height: 84px; }
.pcard {
  width: 58px; height: 82px; border-radius: 8px;
  background: #f4f1ea; color: #1b1b1b;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 700; font-size: 21px; line-height: 1.1;
  box-shadow: 0 4px 12px rgba(0,0,0,.45);
  animation: dealIn .3s ease both;
}
.pcard.red { color: #c22b1e; }
.pcard .suit { font-size: 17px; }
.pcard.back { background: repeating-linear-gradient(45deg, #27303a, #27303a 6px, #20272f 6px, #20272f 12px); color: transparent; border: 2px solid #39434e; }
.pcard.hidden { visibility: hidden; }
@keyframes dealIn { from { opacity: 0; transform: translateY(-16px) rotate(-8deg); } to { opacity: 1; transform: none; } }
.total-pill { display: inline-block; background: var(--panel2); border: 1px solid var(--line2); border-radius: 999px; padding: 3px 12px; font-size: 13px; margin-top: 6px; }

/* slots */
.reels { display: flex; gap: 12px; justify-content: center; margin: 14px 0; }
.reel {
  width: 92px; height: 92px; border-radius: 12px;
  background: #0b0e10; border: 1px solid var(--line2);
  display: grid; place-items: center; font-size: 46px;
  overflow: hidden; position: relative;
}
.reel.spinning { animation: reelShake .12s linear infinite; }
@keyframes reelShake { 0% { transform: translateY(-3px); } 50% { transform: translateY(3px); } 100% { transform: translateY(-3px); } }
.win-flash { animation: winFlash .7s ease 2; }
@keyframes winFlash { 50% { box-shadow: 0 0 30px rgba(255, 201, 60, .8); border-color: var(--gold); } }

/* coin flip */
.coin {
  width: 110px; height: 110px; margin: 12px auto; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9a8, #f2b21d 60%, #b87d08);
  display: grid; place-items: center; font-size: 42px; color: #6b4a02;
  box-shadow: 0 10px 30px rgba(0,0,0,.5), inset 0 -4px 10px rgba(0,0,0,.25);
}
.coin.flipping { animation: coinSpin 1s cubic-bezier(.3, .8, .4, 1); }
@keyframes coinSpin { 0% { transform: rotateY(0) scale(1); } 50% { transform: rotateY(900deg) scale(1.15); } 100% { transform: rotateY(1800deg) scale(1); } }

/* roulette */
.roulette-wrap { text-align: center; }
.wheel {
  width: 190px; height: 190px; margin: 8px auto 14px; border-radius: 50%;
  border: 6px solid #2a333b; position: relative;
  background:
    repeating-conic-gradient(#d63a2f 0deg 9.73deg, #171b1f 9.73deg 19.46deg);
  box-shadow: 0 12px 34px rgba(0,0,0,.55), inset 0 0 22px rgba(0,0,0,.6);
  transition: transform 4.2s cubic-bezier(.12, .72, .06, 1);
}
.wheel::after {
  content: attr(data-number);
  position: absolute; inset: 58px; border-radius: 50%;
  background: var(--panel2); border: 2px solid #39434e;
  display: grid; place-items: center; font-size: 34px; font-weight: 750;
  color: var(--text);
}
.wheel-ball {
  position: absolute; top: -7px; left: 50%; width: 14px; height: 14px;
  background: radial-gradient(circle at 30% 30%, #fff, #b9c2c9); border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 6px rgba(0,0,0,.6);
}
.bet-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 12px; }
.bet-opt {
  background: var(--panel2); border: 1px solid var(--line2); color: var(--text);
  border-radius: 8px; padding: 9px 6px; font-size: 12.5px; cursor: pointer; text-align: center;
  transition: all .14s;
}
.bet-opt:hover { border-color: var(--accent); transform: translateY(-2px); }
.bet-opt.red { background: rgba(214, 58, 47, .25); }
.bet-opt.black { background: rgba(10, 12, 14, .7); }
.bet-opt.green { background: rgba(55, 200, 113, .22); }
.num-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin-top: 10px; }
.num-grid .bet-opt { padding: 8px 2px; font-size: 12px; }

.result-banner { border-radius: 10px; padding: 12px; text-align: center; font-weight: 650; margin: 12px 0; }
.result-banner.win { background: var(--green-soft); border: 1px solid rgba(55,200,113,.5); color: #a7ecc4; }
.result-banner.lose { background: var(--red-soft); border: 1px solid rgba(240,82,63,.5); color: #ffb3a8; }
.result-banner.push { background: var(--accent-soft); border: 1px solid rgba(255,123,26,.5); color: #ffd9b5; }

/* map */
.map-frame { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #0b0e10; }
.map-frame img { width: 100%; display: block; }
.map-frame.busy::after {
  content: "Updating…"; position: absolute; inset: 0;
  background: rgba(8, 10, 12, .55); display: grid; place-items: center;
  font-size: 14px; color: var(--text); backdrop-filter: blur(1px);
}

/* player list */
.plist { display: flex; flex-direction: column; gap: 6px; max-height: 460px; overflow-y: auto; }
.prow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line); }
.prow .pn { font-weight: 600; font-size: 13.5px; }
.prow .pf { margin-left: auto; color: var(--gold); font-size: 12.5px; }
.pinfo { min-width: 0; }
.prow .pname { font-weight: 650; font-size: 13.5px; }
.spacer { flex: 1; min-width: 0; }
.prow-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.prow-acts .btn { white-space: nowrap; }

/* admin tabs inside pages */
.subtabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.subtab {
  background: none; border: none; color: var(--muted); font-size: 13.5px;
  padding: 9px 14px; cursor: pointer; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.subtab:hover { color: var(--text); }
.subtab.active { color: #ffd9b5; border-bottom-color: var(--accent); }

.kbd { background: var(--panel2); border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 5px; padding: 1px 7px; font-size: 12px; font-family: Consolas, monospace; }

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  #sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); }
  #sidebar.open { transform: none; box-shadow: 30px 0 80px rgba(0,0,0,.6); }
  #menuToggle { display: inline-flex; }
  #view { padding: 16px; }
}


/* ============================================================
   Role visibility (body classes set by app.js) + misc
   ============================================================ */
body:not(.is-staff) .admin-only { display: none !important; }
body:not(.is-owner) .owner-only { display: none !important; }
.sidebar-foot { display: flex; flex-direction: column; gap: 6px; }
.login-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.login-tabs .subtab { flex: 1; }
.mini-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat-cards .stat { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.table-wrap { overflow-x: auto; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.game-card { background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; cursor: pointer; transition: .15s; }
.game-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.game-card.disabled { opacity: .45; cursor: not-allowed; }
.game-card.disabled:hover { border-color: var(--line); transform: none; }
.game-card .g-ico { font-size: 34px; }
.reels { display: flex; gap: 10px; justify-content: center; margin: 12px 0; }
.reel { width: 64px; height: 64px; display: grid; place-items: center; font-size: 34px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; }
.reel.spinning { animation: reelPulse .45s infinite; }
@keyframes reelPulse { 50% { transform: scale(.92); opacity: .6; } }
.win-flash { animation: winFlash .8s; }
@keyframes winFlash { 0%,100% { box-shadow: none; } 50% { box-shadow: 0 0 0 2px var(--green); } }
.hand { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.banner { border-radius: 10px; padding: 10px 14px; text-align: center; font-weight: 600; margin-top: 10px; }
.banner.win { background: var(--green-soft); color: var(--green); }
.banner.push { background: rgba(255,201,60,.14); color: var(--gold); }
.banner.lose { background: var(--red-soft); color: var(--red); }
.console-out { background: #0a0d0f; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-family: Consolas, monospace; font-size: 12.5px; white-space: pre-wrap; max-height: 420px; overflow-y: auto; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.upload-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.preview-img { max-width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.bet-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 6px; margin-top: 10px; }
.bet-opt { padding: 8px 4px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); cursor: pointer; font-size: 12px; text-align: center; }
.bet-opt.sel { border-color: var(--accent); background: var(--accent-soft); }
.num-grid { display: grid; grid-template-columns: repeat(13, 1fr); gap: 4px; margin-top: 8px; }
.num-grid .num { padding: 6px 0; text-align: center; border-radius: 6px; font-size: 12px; cursor: pointer; border: 1px solid var(--line); background: var(--panel2); color: var(--text); }
.num-grid .num.red { background: rgba(240,82,63,.25); }
.num-grid .num.black { background: rgba(20,24,28,.9); border-color: #3a444c; }
.num-grid .num.green { background: rgba(55,200,113,.25); }
.num-grid .num.sel { outline: 2px solid var(--accent); }
.wheel { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: conic-gradient(from 0deg, #b33 0 9.7%, #222 0 19.4%, #b33 0 29.1%, #222 0 38.9%, #b33 0 48.6%, #222 0 58.3%, #b33 0 68%, #222 0 77.8%, #b33 0 87.5%, #222 0 97.2%, #2a7d4f 0 100%); border: 4px solid var(--line2); transition: transform 4.2s cubic-bezier(.16,.62,.23,1); position: relative; }
.wheel::after { content: attr(data-number); position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; font-weight: 700; color: #fff; text-shadow: 0 2px 6px #000; }
.ball { position: absolute; top: -6px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: #fff; transform: translateX(-50%); }
.pcard { width: 48px; height: 68px; border-radius: 8px; background: #fff; color: #111; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; }
.pcard.red { color: #c22; }
.pcard.back { background: linear-gradient(135deg, var(--accent-soft), var(--panel2)); border: 1px dashed var(--line2); color: var(--muted); }
.pcard .suit { font-size: 15px; }
.totals { display: flex; gap: 10px; justify-content: center; margin-top: 6px; font-size: 12px; color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 22px 8px; font-size: 13px; }
.audit-list { display: flex; flex-direction: column; gap: 6px; }
.audit-item { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; }
.audit-time { color: var(--muted); white-space: nowrap; font-size: 11.5px; }
.audit-who { color: var(--accent); white-space: nowrap; font-weight: 600; }
.audit-who.muted { color: var(--muted); font-weight: 500; font-style: italic; }
.pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px;
        padding: 2px 9px; font-size: 11px; font-weight: 600; letter-spacing: .02em;
        background: var(--panel2); border: 1px solid var(--line2); color: var(--muted);
        white-space: nowrap; }
.pill.green { background: var(--green-soft); color: var(--green); border-color: transparent; }
.pill.amber { background: rgba(255, 201, 60, .14); color: var(--gold); border-color: transparent; }
.pill.red { background: var(--red-soft); color: var(--red); border-color: transparent; }
.pill.blue { background: rgba(74, 168, 255, .15); color: var(--blue); border-color: transparent; }
.pill.owner { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.pill.admin { background: rgba(74,168,255,.15); color: var(--blue); border-color: transparent; }
.pill.player { background: var(--green-soft); color: var(--green); border-color: transparent; }

/* ============================================================
   Auth windows, account menu and shared bits the SPA relies on
   ============================================================ */
.hide { display: none !important; }

.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head h3 { font-size: 15px; font-weight: 650; }
.card-head .spacer { flex: 1; }

.f-err { color: var(--red); font-size: 12.5px; margin-top: 8px; }
.f-err:empty { display: none; }

.kv { display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
      padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kv:last-of-type { border-bottom: none; }

/* ============================================================
   Poker (Texas Hold'em)
   ============================================================ */
.pmeta { color: var(--muted); font-size: 12px; }

.poker-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px;
             background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; }
.poker-row:last-child { margin-bottom: 0; }
.poker-row .pname { font-weight: 650; font-size: 14.5px; }

.poker-wait { color: var(--muted); font-size: 13.5px; padding: 8px 2px; }

.pk-raise { display: inline-flex; align-items: center; gap: 6px; }
.pk-raise input { width: 110px; }

.pk-seat { padding: 12px 14px; margin-bottom: 8px; background: var(--panel2);
           border: 1px solid var(--line); border-radius: 10px;
           transition: border-color .15s, box-shadow .15s; }
.pk-seat:last-child { margin-bottom: 0; }
.pk-seat.acting { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-soft); }
.pk-seat.folded { opacity: .5; }
.pk-seat-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.pk-seat-top b { font-size: 14px; }
.pk-seat .hand { justify-content: flex-start; margin-bottom: 6px; }
.pk-seat .hand:empty { display: none; }

/* ============================================================
   2026 HUD refresh - deeper palette, glass panels, accent glow
   (kept at the end so it wins over the older rules above)
   ============================================================ */
:root {
  --bg: #0a0d10;
  --bg2: #0f1418;
  --panel: #141a1f;
  --panel2: #1a2228;
  --line: #222c34;
  --line2: #2e3c46;
  --text: #e3eaef;
  --muted: #8ea0ac;
  --accent: #ff7b1a;
  --accent-soft: rgba(255, 123, 26, .15);
  --gold: #ffc93c;
  --blue: #4aa8ff;
  --radius: 14px;
  --shadow: 0 18px 44px rgba(0, 0, 0, .45);
}

body {
  background:
    radial-gradient(1100px 520px at 88% -12%, rgba(255, 123, 26, .10), transparent 62%),
    radial-gradient(900px 620px at -8% 108%, rgba(74, 168, 255, .07), transparent 60%),
    linear-gradient(180deg, #0a0d10, #080a0c 55%, #0a0d10);
  background-attachment: fixed;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(130% 90% at 50% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(130% 90% at 50% 0%, #000 25%, transparent 78%);
}
#main { position: relative; z-index: 1; }

/* ---- sidebar / topbar ---- */
#sidebar {
  background:
    radial-gradient(340px 210px at 50% -4%, rgba(255, 123, 26, .12), transparent 72%),
    linear-gradient(180deg, #10161a, #090c0e);
  border-right: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 14px 0 46px -34px #000;
}
.brand { border-bottom: 1px solid rgba(255, 255, 255, .06); }
.brand-logo { box-shadow: 0 8px 22px rgba(255, 123, 26, .4), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.brand-text strong {
  background: linear-gradient(90deg, #ffffff, #ffb877);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-item { position: relative; border-radius: 10px; }
.nav-item:hover { background: rgba(255, 255, 255, .045); }
.nav-item.active {
  background: linear-gradient(90deg, rgba(255, 123, 26, .22), rgba(255, 123, 26, .04));
  border-color: rgba(255, 123, 26, .34); color: #ffddba;
  box-shadow: inset 0 0 22px rgba(255, 123, 26, .08);
}
.nav-item.active::before {
  content: ""; position: absolute; left: -1px; top: 9px; bottom: 9px; width: 3px;
  border-radius: 3px; background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.nav-ico { filter: saturate(1.05); }

#topbar {
  background: linear-gradient(180deg, rgba(12, 16, 19, .93), rgba(10, 13, 16, .74));
  backdrop-filter: blur(14px) saturate(1.25);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 12px 30px -24px #000;
}
.status-pill, .chip-btn { background: rgba(255, 255, 255, .035); border-color: rgba(255, 255, 255, .09); }
.chip-btn:hover { background: var(--accent-soft); border-color: var(--accent); }

/* ---- page header ---- */
.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: 25px; font-weight: 700; letter-spacing: .5px; display: flex; align-items: center; gap: 12px; }
.page-head h1::before {
  content: ""; width: 4px; height: 26px; border-radius: 3px; flex: none;
  background: linear-gradient(180deg, #ffb066, var(--accent));
  box-shadow: 0 0 16px rgba(255, 123, 26, .75);
}
.page-head p { max-width: 70ch; }

/* ---- cards ---- */
.card {
  background: linear-gradient(180deg, rgba(26, 34, 40, .92), rgba(16, 21, 25, .95));
  border: 1px solid rgba(255, 255, 255, .065);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 20px 46px -28px rgba(0, 0, 0, .95);
  transition: border-color .18s, box-shadow .18s;
}
.card:hover { border-color: rgba(255, 255, 255, .1); }
.card-head h3::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px;
  border-radius: 2px; background: var(--accent); vertical-align: 1px;
  box-shadow: 0 0 10px rgba(255, 123, 26, .8);
}

/* ---- stats ---- */
.stat-cards .stat {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px; padding: 14px 16px;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.stat-cards .stat::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%); opacity: .55;
}
.stat-cards .stat:hover { transform: translateY(-2px); border-color: rgba(255, 123, 26, .38); box-shadow: 0 14px 30px -20px rgba(255, 123, 26, .8); }
.stat-cards .stat .big {
  font-size: 30px; font-weight: 750; line-height: 1.15; letter-spacing: .5px;
  background: linear-gradient(180deg, #ffffff, #c8d5dd);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- buttons / chips ---- */
.btn { border-radius: 10px; }
.btn-primary {
  box-shadow: 0 10px 24px -12px rgba(255, 123, 26, .9), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.btn-primary:hover { box-shadow: 0 12px 30px -10px rgba(255, 123, 26, 1), inset 0 1px 0 rgba(255, 255, 255, .32); }
.chip { background: rgba(255, 255, 255, .03); }
.chip.active {
  background: linear-gradient(135deg, rgba(255, 123, 26, .26), rgba(255, 123, 26, .07));
  color: #ffe3c8; box-shadow: 0 8px 20px -12px rgba(255, 123, 26, .9);
}

/* ---- tables ---- */
.table-wrap { border-color: rgba(255, 255, 255, .07); background: rgba(11, 15, 18, .55); }
th {
  background: linear-gradient(180deg, #171f24, #12181c);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #93a6b3; letter-spacing: 1.4px;
}
td { border-bottom-color: rgba(255, 255, 255, .05); }
tbody tr:hover td { background: rgba(255, 123, 26, .045); }
tr.rank-1 td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
tr.rank-2 td:first-child { box-shadow: inset 3px 0 0 #b9c8d4; }
tr.rank-3 td:first-child { box-shadow: inset 3px 0 0 #cd7f32; }

/* ---- games / shop cards ---- */
.game-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border: 1px solid rgba(255, 255, 255, .07); border-radius: 14px;
}
.game-card:hover {
  border-color: rgba(255, 123, 26, .5);
  box-shadow: 0 20px 42px -24px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 123, 26, .14);
}
.item-card { border-color: rgba(255, 255, 255, .07); }

/* ---- modals / inputs ---- */
.modal {
  border-radius: 16px; border-color: rgba(255, 255, 255, .1);
  background: linear-gradient(180deg, #1c242a, #141a1f);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .72), inset 0 1px 0 rgba(255, 255, 255, .06);
}
input, select, textarea { background: #0b1013; border-color: rgba(255, 255, 255, .1); }

/* ---- scrollbars ---- */
* { scrollbar-width: thin; scrollbar-color: #2b3841 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a353d; border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #3b4c58; border: 3px solid transparent; background-clip: padding-box; }

/* ---- item thumbnails ---- */
.item-ico {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px;
  flex: none; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .09);
  background: radial-gradient(120% 120% at 30% 15%, rgba(255, 255, 255, .09), rgba(0, 0, 0, .3));
}
.item-ico.empty { border-style: dashed; background: rgba(255, 255, 255, .03); }
.item-ico img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.item-ico.sm { width: 34px; height: 34px; border-radius: 8px; }
.item-ico.lg { width: 76px; height: 76px; border-radius: 14px; }
.item-ico.lg img { padding: 7px; }
.cell-item { display: flex; align-items: center; gap: 10px; min-width: 0; }
.shop-thumb { display: flex; justify-content: center; padding: 4px 0 2px; }
.shop-thumb .item-ico { box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .95); }

/* ---- admin inventory viewer ---- */
.inv-layout { display: grid; grid-template-columns: minmax(280px, 350px) 1fr; gap: 14px; align-items: start; }
.inv-side { position: sticky; top: 12px; }
.inv-side .input { margin-bottom: 10px; }
.inv-players { display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 230px); overflow-y: auto; padding-right: 2px; }
.inv-player {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line2);
  background: var(--panel2); color: var(--text); cursor: pointer; font: inherit;
  transition: border-color .15s, background .15s, transform .15s;
}
.inv-player:hover { border-color: rgba(255, 123, 26, .55); transform: translateY(-1px); }
.inv-player.active { border-color: var(--accent); background: var(--accent-soft); }
.inv-player-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.inv-player-main b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-player-sub { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-player-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.inv-player-count { color: var(--muted); font-size: 11px; }
.inv-detail-head { margin-bottom: 14px; }
.inv-summary { display: flex; gap: 8px 22px; flex-wrap: wrap; color: var(--text); font-size: 12.5px; margin-top: 2px; }
.inv-summary b { font-weight: 650; }
.inv-warning {
  margin-top: 12px; padding: 9px 11px; border-radius: 9px; font-size: 12.5px;
  border: 1px solid rgba(255, 201, 60, .32); background: rgba(255, 201, 60, .08); color: #ffe2a1;
}
.inv-slot { margin-bottom: 14px; }
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; align-items: start; }
.inv-item {
  border: 1px solid var(--line2); border-radius: 12px; padding: 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008));
}
.inv-item.container { border-color: rgba(255, 123, 26, .32); }
.inv-item-head { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.inv-meta { min-width: 0; flex: 1; }
.inv-item-title { display: flex; align-items: flex-start; gap: 8px; }
.inv-item-title .inv-name { flex: 1; }
.inv-name { font-size: 13px; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
.inv-code { color: var(--muted); font-size: 10.5px; margin-top: 2px; overflow-wrap: anywhere; }
.inv-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.inv-badge {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 1px 7px;
  font-size: 10px; font-weight: 650; letter-spacing: .02em; color: var(--muted);
  border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); white-space: nowrap;
}
.inv-badge.container { color: #ffd9b5; border-color: rgba(255, 123, 26, .4); background: var(--accent-soft); }
.inv-badge.hotbar { color: #b8dcff; border-color: rgba(74, 168, 255, .4); background: rgba(74, 168, 255, .12); }
.inv-del { flex: none; padding: 4px 8px; font-size: 11px; }
.inv-contents { margin-top: 9px; padding-top: 7px; border-top: 1px dashed var(--line2); }
.inv-contents-label { color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.inv-child { padding: 5px 0 2px 8px; border-left: 1px solid rgba(255, 255, 255, .08); }
.inv-child-row { display: flex; align-items: flex-start; gap: 8px; }
.inv-child .inv-name { font-size: 12.5px; font-weight: 600; }
.inv-mini-del {
  flex: none; width: 20px; height: 20px; border-radius: 6px; cursor: pointer;
  border: 1px solid rgba(240, 82, 63, .45); background: var(--red-soft); color: #ffb3a8;
  font-size: 11px; line-height: 1; padding: 0;
}
.inv-mini-del:hover { border-color: var(--red); color: #ffd2ca; }
.inv-empty-inner { margin-top: 6px; color: var(--muted); font-size: 11.5px; font-style: italic; }
@media (max-width: 900px) {
  .inv-layout { grid-template-columns: 1fr; }
  .inv-side { position: static; }
  .inv-players { max-height: 260px; }
}

/* ---- Hall of Fame (rankings) ---- */
.hall {
  position: relative; overflow: hidden; margin-bottom: 16px;
  background:
    radial-gradient(720px 230px at 50% -12%, rgba(255, 201, 60, .16), transparent 70%),
    linear-gradient(180deg, #1a2126, #12171a);
  border-color: rgba(255, 201, 60, .22);
}
.hall-head {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap; margin-bottom: 16px;
  font-size: 13px; font-weight: 750; letter-spacing: 2.4px; text-transform: uppercase; color: var(--gold);
}
.hall-crown { font-size: 20px; filter: drop-shadow(0 0 12px rgba(255, 201, 60, .6)); }
.hall-sub { font-size: 11px; letter-spacing: 1.4px; color: var(--muted); font-weight: 600; text-transform: none; }
.podium { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.18fr 1fr; gap: 10px; align-items: end; }
.podium-slot {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 14px 8px 12px; border-radius: 12px 12px 8px 8px;
  border: 1px solid var(--line2);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  transition: transform .18s, box-shadow .18s;
}
.podium-slot:hover { transform: translateY(-3px); }
.podium-slot.is-empty { opacity: .22; min-height: 92px; }
.podium-slot.p1 {
  padding-top: 20px; border-color: rgba(255, 201, 60, .55);
  background: linear-gradient(180deg, rgba(255, 201, 60, .13), rgba(255, 201, 60, .03));
  box-shadow: 0 0 0 1px rgba(255, 201, 60, .12), 0 16px 44px rgba(0, 0, 0, .5), 0 0 46px rgba(255, 201, 60, .12);
}
.podium-slot.p2 { border-color: rgba(200, 214, 226, .42); background: linear-gradient(180deg, rgba(200, 214, 226, .1), rgba(200, 214, 226, .02)); }
.podium-slot.p3 { border-color: rgba(214, 138, 74, .45); background: linear-gradient(180deg, rgba(214, 138, 74, .1), rgba(214, 138, 74, .02)); }
.podium-medal { font-size: 18px; line-height: 1; }
.podium-ava {
  position: relative; overflow: hidden;
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 16px; letter-spacing: .5px; color: #20160a;
  background: linear-gradient(145deg, #d9e6f0, #93a5b4);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .45);
}
.podium-ava .ava-ini { grid-area: 1 / 1; }
.podium-ava img {
  position: absolute; inset: 0; grid-area: 1 / 1;
  width: 100%; height: 100%; object-fit: cover;
  border-radius: inherit; z-index: 1;
}
.podium-slot.p1 .podium-ava {
  width: 62px; height: 62px; font-size: 20px;
  background: linear-gradient(145deg, #ffe08a, #e09b00);
  box-shadow: 0 10px 26px rgba(255, 201, 60, .35);
}
.podium-slot.p3 .podium-ava { background: linear-gradient(145deg, #e6a877, #a5622a); color: #1d1206; }
.podium-name {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 700; font-size: 13.5px;
}
.podium-val { color: var(--gold); font-weight: 700; font-size: 12.5px; }
.podium-slot.p2 .podium-val, .podium-slot.p3 .podium-val { color: var(--text); }
.podium-base {
  margin-top: 6px; padding-top: 6px; width: 100%; text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--muted);
}

@media (max-width: 560px) {
  .podium { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .podium-slot { padding: 10px 4px 8px; }
  .podium-ava { width: 40px; height: 40px; font-size: 14px; }
  .podium-slot.p1 .podium-ava { width: 48px; height: 48px; font-size: 16px; }
  .podium-name { font-size: 11.5px; }
  .podium-val { font-size: 11px; }
}

/* ============================================================
   HALL OF FAME - animated soldiers + stage
   ============================================================ */
.hof-card {
  position: relative; overflow: hidden; padding: 34px 18px 24px;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 201, 60, .08), transparent 62%),
    linear-gradient(180deg, var(--panel), var(--bg2));
}
.hof-beam {
  position: absolute; top: -12%; width: 170px; height: 134%; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .03) 55%, transparent 78%);
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  filter: blur(6px); opacity: .4; z-index: 0;
  animation: beamSweep 7s ease-in-out infinite alternate;
}
.hof-beam-a { left: 7%; }
.hof-beam-b { right: 7%; animation-delay: -3.5s; }
@keyframes beamSweep {
  from { opacity: .16; transform: translateX(-16px); }
  to { opacity: .5; transform: translateX(16px); }
}
.hof-embers { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.hof-embers i {
  position: absolute; bottom: -10px; width: 5px; height: 5px; border-radius: 50%;
  background: #ff9d3c; box-shadow: 0 0 8px #ff7b1a; opacity: 0;
  left: calc(4% + var(--i) * 11%);
  animation: emberUp 6.5s linear infinite;
  animation-delay: calc(var(--i) * .72s);
}
@keyframes emberUp {
  0% { transform: translateY(0) scale(.6); opacity: 0; }
  12% { opacity: .85; }
  100% { transform: translateY(-370px) scale(1.1); opacity: 0; }
}
.hof-stage {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1.18fr 1fr; gap: 14px; align-items: end;
}
.hof-hero {
  display: flex; flex-direction: column; align-items: center; min-width: 0;
  animation: hofRise .8s cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes hofRise {
  from { opacity: 0; transform: translateY(48px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.hof-hero.is-empty { min-height: 150px; opacity: .2; }
.hof-sol { width: 174px; max-width: 100%; }
.hof-hero.p1 .hof-sol { width: 212px; }
.hof-sol svg { display: block; width: 100%; height: auto; overflow: visible; }

/* --- character cut-out (Hall Of Fame Characters pack, background removed) --- */
.hof-sol.hof-photo {
  width: auto; height: 320px;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .55));
  animation: photoFloat 4.6s ease-in-out infinite;
}
.hof-hero.p1 .hof-sol.hof-photo {
  width: auto; height: 385px;
  filter: drop-shadow(0 0 18px rgba(255, 201, 60, .3)) drop-shadow(0 20px 22px rgba(0, 0, 0, .6));
}
.hof-hero.p2 .hof-sol.hof-photo { filter: drop-shadow(0 0 15px rgba(213, 222, 230, .25)) drop-shadow(0 18px 20px rgba(0, 0, 0, .55)); }
.hof-hero.p3 .hof-sol.hof-photo { filter: drop-shadow(0 0 15px rgba(224, 149, 90, .28)) drop-shadow(0 18px 20px rgba(0, 0, 0, .55)); }
.hof-sol.hof-photo img { display: block; height: 100%; width: auto; max-width: 100%; }
@keyframes photoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* --- soldier figure --- */
.sol-shadow { fill: rgba(0, 0, 0, .55); animation: shadowBreathe 3.4s ease-in-out infinite; }
@keyframes shadowBreathe { 50% { opacity: .7; } }
.sol-body {
  transform-box: fill-box; transform-origin: 50% 100%;
  animation: solBreathe 3.4s ease-in-out infinite;
}
@keyframes solBreathe {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50% { transform: translateY(-2px) scaleY(1.014); }
}
.sol-skin, .sol-head { fill: #d9a06b; }
.sol-hair { stroke: #241a12; }
.sol-helm { fill: #2f3a2f; }
.sol-brim { fill: #262f26; }
.sol-visor { fill: #0e1319; }
.sol-shine { fill: var(--accent); opacity: .95; animation: visorBlink 5.5s ease-in-out infinite; }
@keyframes visorBlink { 0%, 88%, 100% { opacity: .95; } 92% { opacity: .35; } }
.sol-mask { fill: #434d3f; }
.sol-torso { fill: #3d464e; }
.sol-vest { fill: #262d34; }
.sol-strap { fill: #1d232a; }
.sol-belt { fill: #1b2127; }
.sol-rank { fill: var(--gold); }
.sol-pant { fill: #333b42; }
.sol-boot { fill: #1b1f24; }
.sol-arm {
  stroke: #3d464e; stroke-width: 15; stroke-linecap: round; stroke-linejoin: round; fill: none;
}
.sol-hand { fill: #d9a06b; stroke: #2a3239; stroke-width: 2; }

/* rifle pose: idle sway synced with muzzle flash + recoil (2.8s cycle) */
.sol-gun { transform-box: fill-box; transform-origin: 22% 60%; animation: gunCycle 2.8s ease-out infinite; }
@keyframes gunCycle {
  0%, 6% { transform: translateX(0) rotate(0deg); }
  8% { transform: translateX(-7px) rotate(-2.2deg); }
  15%, 100% { transform: translateX(0) rotate(0deg); }
}
.w-stock, .w-body, .w-barrel, .w-grip { fill: #171b1f; }
.w-body { fill: #1d232a; }
.w-sight { fill: #2a323b; }
.w-mag { fill: #23292f; }
.sol-flash { opacity: 0; transform-box: fill-box; transform-origin: 0% 50%; animation: muzzle 2.8s linear infinite; }
@keyframes muzzle {
  0%, 6% { opacity: 0; transform: scale(.55); }
  7% { opacity: 1; transform: scale(1.3); }
  9% { opacity: .85; transform: scale(.95); }
  11%, 100% { opacity: 0; transform: scale(.55); }
}
.flash { fill: #ffd166; }

/* machete pose: swing + blade glint */
.sol-blade { transform-box: fill-box; transform-origin: 50% 100%; animation: bladeSwing 4.2s ease-in-out infinite; }
@keyframes bladeSwing {
  0%, 100% { transform: rotate(0deg); }
  45% { transform: rotate(-9deg); }
  62% { transform: rotate(3deg); }
}
.w-handle { fill: #241a12; }
.w-guard { fill: #171b1f; }
.w-blade { fill: #c9d2da; }
.w-glint {
  stroke: #ffffff; stroke-width: 3; stroke-linecap: round; fill: none;
  stroke-dasharray: 62; opacity: 0;
  animation: glintRun 3.4s ease-in-out infinite;
}
@keyframes glintRun {
  0%, 34% { opacity: 0; stroke-dashoffset: 58; }
  46% { opacity: .95; stroke-dashoffset: 58; }
  66% { opacity: .95; stroke-dashoffset: -12; }
  76%, 100% { opacity: 0; stroke-dashoffset: -12; }
}

/* pedestal + nameplate */
.hof-ped {
  position: relative; z-index: 2; width: 84%; height: 44px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(0, 0, 0, .45));
  border: 1px solid rgba(255, 255, 255, .11); border-bottom: none;
  border-radius: 11px 11px 3px 3px;
  font-size: 19px; font-weight: 850; color: var(--gold);
  text-shadow: 0 0 12px rgba(255, 201, 60, .55);
  box-shadow: 0 0 32px -8px rgba(255, 201, 60, .5);
}
.hof-hero.p1 .hof-ped { height: 60px; font-size: 25px; width: 90%; }
.hof-hero.p2 .hof-ped { color: #d5dee6; text-shadow: 0 0 12px rgba(205, 215, 224, .5); box-shadow: 0 0 32px -8px rgba(205, 215, 224, .4); height: 34px; }
.hof-hero.p3 .hof-ped { color: #e0955a; text-shadow: 0 0 12px rgba(224, 149, 90, .5); box-shadow: 0 0 32px -8px rgba(224, 149, 90, .4); height: 26px; }
.hof-plate {
  position: relative; z-index: 2; width: 100%; margin-top: 9px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px 12px;
}
.hof-plate-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hof-ava {
  position: relative; overflow: hidden; flex: 0 0 auto;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
  background: linear-gradient(145deg, var(--accent), #b8531a); color: #170c02;
  border: 2px solid rgba(255, 201, 60, .55);
}
.hof-ava .ava-ini { grid-area: 1 / 1; }
.hof-ava img { grid-area: 1 / 1; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hof-hero.p1 .hof-ava { width: 50px; height: 50px; font-size: 16px; border-color: var(--gold); }
.hof-hero.p2 .hof-ava { border-color: rgba(213, 222, 230, .75); }
.hof-hero.p3 .hof-ava { border-color: rgba(224, 149, 90, .75); }
.hof-idn { min-width: 0; }
.hof-idn b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hof-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; align-items: center; }
.hof-gender {
  font-size: 12.5px; font-weight: 800; line-height: 1; letter-spacing: .4px;
  padding: 3px 8px; border-radius: 999px;
}
.hof-gender.f { background: rgba(255, 105, 180, .16); color: #ff9ecb; border: 1px solid rgba(255, 105, 180, .45); }
.hof-gender.m { background: rgba(74, 168, 255, .14); color: #8ec9ff; border: 1px solid rgba(74, 168, 255, .45); }
.hof-gender.u { background: rgba(255, 255, 255, .06); color: var(--muted); border: 1px solid var(--line2); }
.hof-pts { font-size: 11.5px; color: var(--gold); font-weight: 750; }
.hof-bar { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .07); margin-top: 10px; overflow: hidden; }
.hof-bar i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #ff9d3c, var(--gold));
  transform-origin: left center;
  animation: barGrow 1s cubic-bezier(.2, .8, .3, 1) .35s backwards;
}
.hof-hero.p2 .hof-bar i { background: linear-gradient(90deg, #8fa3b5, #d7e0e8); }
.hof-hero.p3 .hof-bar i { background: linear-gradient(90deg, #a5622a, #e0955a); }
@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hof-best {
  display: block; margin-top: 9px; font-size: 11px; color: var(--muted);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  border-radius: 8px; padding: 5px 8px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hof-mini { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.hof-mini i { display: block; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--gold)); min-width: 6px; flex: 0 0 auto; }
.hof-mini span { font-weight: 700; color: var(--gold); font-size: 12.5px; }
tr.rank-1 td { background: rgba(255, 201, 60, .05); }
tr.rank-2 td { background: rgba(213, 222, 230, .035); }
tr.rank-3 td { background: rgba(224, 149, 90, .04); }
@media (max-width: 720px) {
  .hof-stage { grid-template-columns: 1fr; gap: 20px; }
  .hof-hero.p1 { order: -1; }
  .hof-sol, .hof-hero.p1 .hof-sol { width: 178px; }
  .hof-sol.hof-photo, .hof-hero.p1 .hof-sol.hof-photo { width: auto; height: 280px; }
  .hof-beam, .hof-embers { display: none; }
}

/* ============================================================
   CASINO - marquee, reels, 3D coin, roulette orbit, felt
   ============================================================ */
body.casino-mode #main { background-image: radial-gradient(85% 45% at 50% 0%, rgba(255, 123, 26, .09), transparent 70%); }
.casino-lobby { position: relative; }
.casino-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.casino-fx span {
  position: absolute; font-size: 34px; color: #ffcf8a; opacity: .07;
  left: calc(2% + var(--fx) * 9.6%);
  animation: suitFloat 12s ease-in-out infinite;
}
.casino-fx span:nth-child(1) { top: 6%; animation-delay: 0s; }
.casino-fx span:nth-child(2) { top: 38%; animation-delay: -1.4s; font-size: 26px; }
.casino-fx span:nth-child(3) { top: 70%; animation-delay: -2.8s; }
.casino-fx span:nth-child(4) { top: 20%; animation-delay: -4.2s; font-size: 30px; }
.casino-fx span:nth-child(5) { top: 56%; animation-delay: -5.6s; }
.casino-fx span:nth-child(6) { top: 84%; animation-delay: -7s; font-size: 24px; }
.casino-fx span:nth-child(7) { top: 12%; animation-delay: -8.4s; font-size: 28px; }
.casino-fx span:nth-child(8) { top: 46%; animation-delay: -9.8s; }
.casino-fx span:nth-child(9) { top: 76%; animation-delay: -11.2s; font-size: 32px; }
.casino-fx span:nth-child(10) { top: 30%; animation-delay: -12.6s; }
@keyframes suitFloat {
  0%, 100% { transform: translateY(0) rotate(-7deg); }
  50% { transform: translateY(-26px) rotate(9deg); }
}
.casino-marquee { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.cm-line { flex: 1; height: 2px; background: linear-gradient(90deg, transparent, rgba(255, 123, 26, .8)); border-radius: 2px; }
.cm-line:last-of-type { background: linear-gradient(90deg, rgba(255, 123, 26, .8), transparent); }
.cm-text {
  font-size: 23px; font-weight: 900; letter-spacing: 5px; white-space: nowrap;
  color: #ffd9a8;
  text-shadow: 0 0 10px rgba(255, 123, 26, .9), 0 0 36px rgba(255, 123, 26, .55);
  animation: neonPulse 3.4s ease-in-out infinite;
}
@keyframes neonPulse { 0%, 100% { opacity: 1; } 50% { opacity: .7; } }
.cm-bulbs { position: relative; z-index: 2; display: flex; gap: 11px; justify-content: center; margin: 0 0 16px; }
.cm-bulbs i {
  width: 9px; height: 9px; border-radius: 50%; background: #ffd166;
  opacity: .22; box-shadow: 0 0 7px #ffb020;
  animation: bulbChase 1.1s ease-in-out infinite;
}
.cm-bulbs i:nth-child(3n+2) { animation-delay: .37s; }
.cm-bulbs i:nth-child(3n) { animation-delay: .74s; }
@keyframes bulbChase {
  0%, 70%, 100% { opacity: .2; transform: scale(.85); }
  35% { opacity: 1; transform: scale(1.18); }
}
.game-grid { position: relative; z-index: 2; }
.game-card {
  position: relative; overflow: hidden;
  animation: cardIn .55s cubic-bezier(.2, .8, .3, 1) backwards;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.game-card::after {
  content: ""; position: absolute; top: -20%; left: -85%; width: 55%; height: 140%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .14), transparent);
  transform: skewX(-16deg); transition: left .5s ease; pointer-events: none;
}
.game-card:hover::after { left: 135%; }
.game-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px -20px rgba(255, 123, 26, .6); }
.game-card .g-ico { animation: icoFloat 3.6s ease-in-out infinite; }
@keyframes icoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* slots: blur while cycling, pop when landing */
.reel.spinning { animation: reelShake .09s linear infinite; filter: blur(2px); }
.reel.landing { animation: reelLand .4s cubic-bezier(.3, 1.5, .5, 1); filter: none; }
@keyframes reelLand {
  0% { transform: scale(1.16); }
  55% { transform: scale(.97); }
  100% { transform: scale(1); }
}

/* coin flip: true 3D toss */
.coin-scene, .coin-scene-wrap { perspective: 900px; }
.coin-scene { position: relative; width: 122px; height: 122px; margin: 16px auto; }
.coin3d { position: absolute; inset: 0; transform-style: preserve-3d; }
.coin3d.settled { transform: rotateY(var(--end)); }
.coin3d:not(.settled) { animation: coinToss 1.7s cubic-bezier(.25, .72, .3, 1) both; }
@keyframes coinToss {
  0% { transform: translateY(0) rotateY(0deg); }
  38% { transform: translateY(-56px) rotateY(calc(var(--end) * .55)); }
  80% { transform: translateY(5px) rotateY(var(--end)); }
  100% { transform: translateY(0) rotateY(var(--end)); }
}
.cface {
  position: absolute; inset: 0; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 40px; font-weight: 850; color: #6b4a02;
  backface-visibility: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .55), inset 0 -5px 12px rgba(0, 0, 0, .28);
}
.cface.front { background: radial-gradient(circle at 34% 28%, #ffeaa4, #f2b21d 62%, #b87d08); }
.cface.back { background: radial-gradient(circle at 66% 72%, #ffe38f, #e2a416 60%, #a06e06); transform: rotateY(180deg); }
.banner.late { animation: popIn .45s cubic-bezier(.2, .8, .3, 1.2) 1.5s backwards; }

/* confetti burst */
.confetti { position: fixed; z-index: 320; pointer-events: none; }
.confetti span { position: absolute; font-size: 19px; animation: burstFly 1.15s cubic-bezier(.2, .7, .4, 1) forwards; }
@keyframes burstFly {
  0% { transform: translate(-50%, -50%) scale(.5) rotate(0deg); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.1) rotate(var(--rr)); opacity: 0; }
}

/* roulette: wheel + separate ball orbit + static hub */
.wheel-wrap {
  position: relative; width: 150px; height: 150px; margin: 12px auto 16px;
  border-radius: 50%; transition: filter .35s;
}
.wheel-wrap.spinning { filter: drop-shadow(0 0 20px rgba(255, 123, 26, .55)); }
.wheel-wrap .wheel {
  position: absolute; inset: 0; width: auto; height: auto; margin: 0;
  transition: transform 4.2s cubic-bezier(.12, .72, .06, 1);
}
.wheel-wrap .wheel::after { content: none; }
.wheel-orbit {
  position: absolute; inset: -5px; border-radius: 50%;
  transition: transform 4.2s cubic-bezier(.12, .72, .06, 1);
  z-index: 2; pointer-events: none;
}
.wheel-orbit .ball {
  position: absolute; top: -7px; left: 50%; width: 13px; height: 13px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #b9c2c9);
  transform: translateX(-50%); box-shadow: 0 2px 7px rgba(0, 0, 0, .7);
}
.wheel-hub {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px;
  border-radius: 50%; background: var(--panel2); border: 2px solid #39434e;
  display: grid; place-items: center; font-size: 30px; font-weight: 800;
  color: var(--text); z-index: 3; pointer-events: none;
}
.wheel-hub.pop { animation: hubPop .6s cubic-bezier(.2, .8, .3, 1.4); }
@keyframes hubPop {
  0% { transform: scale(.6); opacity: .4; }
  55% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.num-grid .num.hit {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(255, 201, 60, .8), 0 0 18px rgba(255, 201, 60, .55);
  animation: numHit .5s ease 2;
}
@keyframes numHit { 0%, 100% { transform: none; } 40% { transform: scale(1.16); } }

/* blackjack / poker felt + card choreography */
.card.felt {
  position: relative;
  background:
    radial-gradient(130% 90% at 50% -10%, rgba(255, 255, 255, .06), transparent 55%),
    radial-gradient(100% 80% at 50% 112%, rgba(0, 0, 0, .45), transparent 60%),
    linear-gradient(160deg, #1c5a3a, #123f28 55%, #0e3220);
  border-color: rgba(255, 255, 255, .13);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .45), 0 16px 44px -26px #000;
}
.card.felt::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.4px);
  background-size: 7px 7px; opacity: .7;
}
.card.felt > * { position: relative; z-index: 1; }
.card.pk-felt {
  background:
    radial-gradient(130% 90% at 50% -10%, rgba(255, 255, 255, .05), transparent 55%),
    linear-gradient(160deg, #1a4f36, #103522 60%, #0d2b1d);
  border-color: rgba(255, 255, 255, .1);
}
.hand .pcard:nth-child(2) { animation-delay: .1s; }
.hand .pcard:nth-child(3) { animation-delay: .22s; }
.hand .pcard:nth-child(4) { animation-delay: .34s; }
.hand .pcard:nth-child(5) { animation-delay: .46s; }
.pcard.flip-in { animation: cardFlip .6s cubic-bezier(.3, .8, .35, 1) both; }
@keyframes cardFlip {
  0% { transform: rotateY(88deg) scale(.94); opacity: .3; }
  55% { transform: rotateY(-12deg); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
.pk-pot { animation: potPulse 2.4s ease-in-out infinite; }
@keyframes potPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 201, 60, 0); }
  50% { box-shadow: 0 0 16px rgba(255, 201, 60, .55); border-color: var(--gold); }
}
.pk-board .pcard:nth-child(2) { animation-delay: .14s; }
.pk-board .pcard:nth-child(3) { animation-delay: .28s; }
.pk-board .pcard:nth-child(4) { animation-delay: .42s; }
.pk-board .pcard:nth-child(5) { animation-delay: .56s; }
.pk-seat.acting { animation: seatPulse 1.7s ease-in-out infinite; }
@keyframes seatPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 123, 26, 0); }
  50% { box-shadow: 0 0 18px -4px rgba(255, 123, 26, .75); }
}

/* ---- admin chest locator ---- */
.ch-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.ch-bar .input { flex: 1 1 260px; min-width: 200px; }
.ch-bar select { max-width: 260px; }
.ch-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text); cursor: pointer; white-space: nowrap; }
.ch-check input { width: auto; }
.ch-note { color: var(--muted); font-size: 12px; margin-bottom: 10px; line-height: 1.5; }
.ch-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ch-row { cursor: pointer; }
.ch-row:hover td { background: rgba(255, 123, 26, .06); }

.ch-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; font-size: 12.5px; flex-wrap: wrap; }
.ch-check select { width: auto; padding: 4px 8px; }

/* checkboxes / radios must not inherit the full-width text-input style */
input[type="checkbox"], input[type="radio"] { width: auto; padding: 0; flex: none; accent-color: var(--accent); }
.f-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

/* ---- site-wide announcement banner (all pages) ---- */
.site-banner-root { flex: 0 0 auto; }
.site-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px; font-size: 13.5px; color: #ffe7d3;
  background: linear-gradient(90deg, rgba(255, 123, 26, .22), rgba(255, 123, 26, .10));
  border-bottom: 1px solid rgba(255, 123, 26, .45);
}
.site-banner .sb-ico { font-size: 15px; }
.site-banner .sb-text { flex: 1; min-width: 0; }
.site-banner .sb-link {
  color: #ffd0a6; font-weight: 700; white-space: nowrap; text-decoration: none;
  border-bottom: 1px solid rgba(255, 208, 166, .5);
}
.site-banner .sb-link:hover { color: #fff; }
.site-banner .sb-close {
  background: transparent; border: 0; color: #ffd0a6; font-size: 19px; line-height: 1;
  cursor: pointer; padding: 2px 5px; border-radius: 6px;
}
.site-banner .sb-close:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.site-banner.kind-info {
  color: #dcedff; background: linear-gradient(90deg, rgba(74, 168, 255, .22), rgba(74, 168, 255, .09));
  border-bottom-color: rgba(74, 168, 255, .45);
}
.site-banner.kind-info .sb-link, .site-banner.kind-info .sb-close { color: #cbe6ff; }
.site-banner.kind-warning {
  color: #ffe2de; background: linear-gradient(90deg, rgba(240, 82, 63, .24), rgba(240, 82, 63, .10));
  border-bottom-color: rgba(240, 82, 63, .5);
}
.site-banner.kind-warning .sb-link, .site-banner.kind-warning .sb-close { color: #ffd3cd; }
.site-banner.kind-success {
  color: #d8ffe8; background: linear-gradient(90deg, rgba(55, 200, 113, .22), rgba(55, 200, 113, .09));
  border-bottom-color: rgba(55, 200, 113, .45);
}
.site-banner.kind-success .sb-link, .site-banner.kind-success .sb-close { color: #c9ffdd; }

/* ---- admin website/news editor ---- */
.site-editor-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.site-editor-row .form-row { margin-bottom: 0; }
.ann-row {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px;
  border: 1px solid var(--line2); border-radius: 11px; margin-bottom: 9px;
}
.ann-row .ann-main { min-width: 0; flex: 1; }
.ann-row .ann-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ann-row .ann-sub { color: var(--muted); font-size: 12px; }
.ann-row .ann-actions { display: flex; gap: 6px; flex-shrink: 0; }
.dl-edit {
  border: 1px solid var(--line2); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px;
}
.dl-edit .dl-edit-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.dl-edit .dl-edit-head strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
