:root {
  --bg: #0b0a0a;
  --panel: #161313;
  --panel-2: #1f1a1a;
  --line: #2e2626;
  --text: #f1ebe4;
  --muted: #9c918a;
  --red: #c8201f;
  --red-hot: #ef3a2d;
  --gold: #e3b341;
  --green: #3fb86b;
  --blue: #4a90d9;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 Inter, system-ui, sans-serif;
  background-image: radial-gradient(900px 400px at 50% -100px, rgba(200,32,31,.22), transparent);
  background-repeat: no-repeat; min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, .brand, .vs, .fighter-name { font-family: "Bebas Neue", Impact, sans-serif; letter-spacing: .04em; font-weight: 400; }
h1 { font-size: 40px; margin: 0 0 6px; line-height: 1.05; }
h2 { font-size: 26px; margin: 34px 0 12px; }
h3 { font-size: 20px; margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.wrap { width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 18px; }
.main { flex: 1; padding-top: 28px; padding-bottom: 60px; }

/* Top bar */
.topbar { border-bottom: 1px solid var(--line); background: rgba(11,10,10,.9); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(6px); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 58px; gap: 12px; flex-wrap: wrap; }
.brand { font-size: 28px; color: var(--text); }
.brand:hover { text-decoration: none; color: var(--red-hot); }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--text); font-weight: 500; font-size: 14px; }
.nav-wallet { color: var(--gold) !important; border: 1px solid var(--line); padding: 4px 10px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.subnav { background: var(--panel); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 20px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.subnav a { color: var(--muted); font-size: 14px; font-weight: 600; }
.subnav a:hover { color: var(--text); text-decoration: none; }
.footer { border-top: 1px solid var(--line); padding: 18px 0; color: var(--muted); font-size: 13px; }

/* Buttons and forms */
.btn {
  display: inline-block; background: var(--red); color: #fff !important; border: 0; border-radius: 6px;
  padding: 10px 18px; font: 600 14px Inter, sans-serif; cursor: pointer; text-decoration: none !important;
}
.btn:hover { background: var(--red-hot); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text) !important; }
.btn-ghost:hover { background: var(--panel-2); }
.btn-gold { background: var(--gold); color: #1a1405 !important; }
.btn-gold:hover { background: #f0c75c; }
.btn-block { width: 100%; text-align: center; }
label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=datetime-local], input[type=file], select {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 6px;
  padding: 10px 12px; font: 15px Inter, sans-serif;
}
input:focus, select:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: transparent; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inline-form { display: inline; }

/* Panels */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.panel + .panel { margin-top: 16px; }
.narrow { max-width: 420px; margin: 20px auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alert { padding: 12px 14px; border-radius: 6px; margin-bottom: 16px; border: 1px solid; }
.alert-success { background: rgba(63,184,107,.1); border-color: rgba(63,184,107,.4); color: #8fe0ad; }
.alert-error { background: rgba(239,58,45,.1); border-color: rgba(239,58,45,.4); color: #ff9c93; }

/* Badges */
.badge { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 4px; background: var(--panel-2); color: var(--muted); }
.badge-open, .badge-won, .badge-paid, .badge-success, .badge-active { background: rgba(63,184,107,.15); color: var(--green); }
.badge-awaiting-result, .badge-pending { background: rgba(227,179,65,.15); color: var(--gold); }
.badge-lost, .badge-rejected, .badge-failed, .badge-banned { background: rgba(239,58,45,.15); color: var(--red-hot); }
.badge-settled { background: rgba(74,144,217,.15); color: var(--blue); }

/* Fight cards */
.fight-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.fight-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: block; color: var(--text); transition: border-color .15s, transform .15s; }
.fight-card:hover { border-color: var(--red); text-decoration: none; transform: translateY(-2px); }
.fight-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 8px; }
.versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; text-align: center; }
.vs { font-size: 30px; color: var(--red-hot); }
.fighter-img { width: 92px; height: 92px; border-radius: 10px; object-fit: cover; border: 2px solid var(--line); margin: 0 auto 6px; display: block; background: var(--panel-2); }
.fighter-initial { display: flex; align-items: center; justify-content: center; font: 46px "Bebas Neue", Impact, sans-serif; color: var(--muted); }
.fighter-name { font-size: 22px; line-height: 1.1; }
.winner .fighter-img { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227,179,65,.2); }
.winner .fighter-name { color: var(--gold); }

/* Fight page */
.arena { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 28px 20px; }
.arena .fighter-img { width: 170px; height: 170px; }
.arena .fighter-initial { font-size: 90px; }
.arena .fighter-name { font-size: 34px; }
.arena .vs { font-size: 54px; }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pick input { position: absolute; opacity: 0; }
.pick span { display: block; text-align: center; padding: 14px; border: 2px solid var(--line); border-radius: 8px; cursor: pointer; font: 22px "Bebas Neue", Impact, sans-serif; letter-spacing: .04em; }
.pick input:checked + span { border-color: var(--red-hot); background: rgba(200,32,31,.18); }
.pick input:focus-visible + span { outline: 2px solid var(--gold); }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pos { color: var(--green); } .neg { color: var(--red-hot); }

/* Admin stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.stat b { display: block; font: 32px "Bebas Neue", Impact, sans-serif; letter-spacing: .03em; }
.stat span { color: var(--muted); font-size: 13px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.side { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px; text-align: center; }
.side .people { font: 64px/1 "Bebas Neue", Impact, sans-serif; color: var(--gold); margin: 8px 0 0; }
.side dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; text-align: left; margin: 14px 0; font-size: 14px; }
.side dt { color: var(--muted); } .side dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 10px; border-radius: 5px; background: var(--blue); overflow: hidden; margin: 14px 0 6px; }
.bar i { display: block; height: 100%; background: var(--red-hot); }
.bar-legend { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.mini-count { font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (max-width: 640px) {
  h1 { font-size: 32px; }
  .grid-2, .split, .form-row { grid-template-columns: 1fr; }
  .arena .fighter-img { width: 104px; height: 104px; }
  .arena .fighter-initial { font-size: 56px; }
  .arena .fighter-name { font-size: 24px; }
  .arena .vs { font-size: 36px; }
  .nav { gap: 12px; }
}

/* Fixes */
.grid-2 > .panel, .split > .panel { margin-top: 0; }
.pick label { margin: 0; color: var(--text); }

/* Admin panel */
.brand-tag { font: 700 11px Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; background: var(--gold); color: #1a1405; padding: 3px 7px; border-radius: 4px; vertical-align: middle; margin-left: 6px; }
body.admin { background-image: none; }
body.admin .topbar { border-bottom-color: var(--gold); }
.badge-processing { background: rgba(74,144,217,.15); color: var(--blue); }

/* ============ User header ============ */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(11,10,10,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.site-header-inner { display: flex; align-items: center; gap: 22px; min-height: 64px; }
.site-header .brand { flex: none; }

.site-nav { display: flex; align-items: center; gap: 4px; order: 2; }
.site-nav a { color: var(--muted); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 6px; }
.site-nav a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.site-nav a.active { color: var(--text); box-shadow: inset 0 -2px 0 var(--red-hot); border-radius: 6px 6px 0 0; }
.site-nav-user { color: var(--muted); font-size: 13px; padding: 0 4px 0 12px; }

/* Wallet block: balance + Deposit + Withdraw */
.hwallet { display: flex; align-items: center; gap: 8px; order: 3; margin-left: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 5px 6px 5px 12px; }
.hwallet-balance { display: flex; flex-direction: column; line-height: 1.15; color: var(--text); padding-right: 6px; }
.hwallet-balance:hover { text-decoration: none; }
.hwallet-label { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hwallet-balance strong { color: var(--gold); font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hwallet .btn { white-space: nowrap; }

.guest-actions { display: flex; gap: 8px; margin-left: auto; }

/* Hamburger (phones and small tablets only) */
.nav-toggle { display: none; order: 4; width: 42px; height: 42px; flex: none; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; padding: 0; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .18s, opacity .18s, top .18s; }
.nav-toggle span:nth-child(1) { top: 14px; } .nav-toggle span:nth-child(2) { top: 20px; } .nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }
.nav-toggle:focus-visible, .site-nav a:focus-visible, .hwallet a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Jumping to wallet.php#deposit / #withdraw: land below the sticky header and flash the panel */
#deposit, #withdraw { scroll-margin-top: 150px; }
#deposit:target, #withdraw:target { border-color: var(--gold); animation: panel-flash 1.4s ease-out 1; }
@keyframes panel-flash { from { box-shadow: 0 0 0 4px rgba(227,179,65,.35); } to { box-shadow: 0 0 0 0 rgba(227,179,65,0); } }

@media (max-width: 900px) {
  .site-header-inner { flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; min-height: 0; }
  .site-header .brand { order: 1; font-size: 26px; margin-right: auto; }
  .nav-toggle { display: block; order: 2; }

  /* Wallet becomes its own full-width row, always visible */
  .hwallet { order: 3; flex: 1 0 100%; margin-left: 0; padding: 8px 8px 8px 14px; }
  .hwallet-balance { margin-right: auto; }
  .hwallet .btn { padding: 9px 14px; font-size: 14px; }

  /* Links drop down under the wallet row when the hamburger is tapped */
  .site-nav { order: 5; flex: 1 0 100%; display: none; flex-direction: column; align-items: stretch; gap: 2px; border-top: 1px solid var(--line); padding-top: 8px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 12px; font-size: 16px; color: var(--text); }
  .site-nav a.active { box-shadow: inset 3px 0 0 var(--red-hot); border-radius: 0 6px 6px 0; background: var(--panel); }
  .site-nav-user { padding: 12px 12px 2px; border-top: 1px solid var(--line); margin-top: 6px; }
  .site-nav-logout { color: var(--red-hot) !important; }
}

/* ============ Phone layout for the pages ============ */
@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  .main { padding-top: 18px; padding-bottom: 40px; }
  h2 { font-size: 23px; margin-top: 26px; }
  .panel { padding: 16px; }
  .arena { padding: 20px 12px; }
  .btn { padding: 12px 18px; }
  .btn-sm { padding: 8px 12px; }
  /* 16px inputs stop iPhones zooming in when a field is tapped */
  input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=datetime-local], select { font-size: 16px; padding: 12px; }
  .pick span { padding: 16px 8px; font-size: 20px; }
  .fighter-name { font-size: 20px; }
  .fight-card .fighter-img { width: 76px; height: 76px; }
  .fight-card .fighter-initial { font-size: 38px; }
  .fight-card .vs { font-size: 24px; }
  .guest-actions .btn { padding: 8px 12px; }

  /* Tables turn into stacked cards so nothing scrolls sideways */
  .cards-on-mobile, .cards-on-mobile tbody, .cards-on-mobile tr, .cards-on-mobile td { display: block; width: 100%; }
  .cards-on-mobile tr:first-child { display: none; } /* header row */
  .cards-on-mobile tr { border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; margin-bottom: 10px; background: var(--bg); }
  .cards-on-mobile td { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); text-align: right; white-space: normal; }
  .cards-on-mobile td:last-child { border-bottom: 0; }
  .cards-on-mobile td::before { content: attr(data-label); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; text-align: left; flex: none; }
  .cards-on-mobile td.num { white-space: normal; }
}
@media (max-width: 380px) {
  .hwallet { gap: 6px; padding-left: 10px; }
  .hwallet .btn { padding: 9px 10px; }
  .site-header .brand { font-size: 24px; }
}

/* Account (desktop) vs the same links inside the phone menu */
.account { order: 4; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.account-name { color: var(--muted); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account a { color: var(--text); font-weight: 600; }
.site-nav-user, .site-nav-logout { display: none; }
.hwallet-balance { min-width: 0; }
.hwallet-balance strong { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) {
  .account { display: none; }
  .site-nav-user { display: block; }
  .site-nav-logout { display: block; }
}
@media (max-width: 380px) {
  .hwallet-balance strong { font-size: 14px; }
  .hwallet .btn { font-size: 13px; }
}
.guest-actions { order: 3; }

/* ============ Categories ============ */
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.cat { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); }
.cat:hover { text-decoration: none; border-color: var(--muted); }
.cat strong { font: 24px/1.1 "Bebas Neue", Impact, sans-serif; letter-spacing: .04em; font-weight: 400; }
.cat span { color: var(--muted); font-size: 13px; }
.cat.active { border-color: var(--red-hot); background: linear-gradient(180deg, rgba(200,32,31,.22), var(--panel)); }
.badge-playing { background: rgba(63,184,107,.15); color: var(--green); }
.badge-waiting { background: rgba(227,179,65,.15); color: var(--gold); }
.badge-finished { background: rgba(74,144,217,.15); color: var(--blue); }

/* ============ Whot lobby ============ */
.whot-resume { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-color: var(--gold); margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.chip { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; font: 600 13px Inter, sans-serif; cursor: pointer; }
.chip:hover { border-color: var(--gold); color: var(--gold); }
.rules { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.rules li { margin-bottom: 7px; }
.rules strong { color: var(--text); }
.table-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.table-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.table-stake { font: 28px/1 "Bebas Neue", Impact, sans-serif; letter-spacing: .03em; color: var(--gold); }

/* ============ Whot table ============ */
.whot { --card-w: 74px; max-width: 760px; margin: 0 auto; }
.whot-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.whot-bar strong { color: var(--gold); }
.whot-table { background: radial-gradient(120% 90% at 50% 40%, #1f4a35, #0f2a1e 70%); border: 1px solid #2b5a43; border-radius: 16px; padding: 16px; }
.whot.busy .whot-table { opacity: .85; }
.whot-player { background: rgba(0,0,0,.28); border-radius: 12px; padding: 10px 12px; }
.whot-who { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.whot-backs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-height: 38px; }
.whot-centre { display: flex; align-items: flex-start; justify-content: center; gap: 26px; padding: 22px 0 14px; }
.whot-market { background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #cfe6d9; font: 600 12px Inter, sans-serif; }
.whot-market:disabled { cursor: default; opacity: .7; }
.whot-market:not(:disabled):hover .wcard { transform: translateY(-3px); }
.whot-market.nudge .wcard { animation: nudge 1s ease-in-out infinite; box-shadow: 0 0 0 3px var(--gold); }
@keyframes nudge { 50% { transform: translateY(-5px); } }
.whot-top { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.whot-called { display: flex; align-items: center; gap: 6px; background: var(--gold); color: #1a1405; border-radius: 999px; padding: 4px 12px 4px 10px; font-size: 13px; }
.whot-called svg { width: 18px; height: 18px; fill: #7a1414; }
.whot-status { text-align: center; margin: 2px 0 14px; }
.whot-turn { font: 26px/1.1 "Bebas Neue", Impact, sans-serif; letter-spacing: .04em; color: #cfe6d9; }
.whot-turn.mine { color: var(--gold); }
.whot-timer { height: 6px; background: rgba(0,0,0,.4); border-radius: 3px; overflow: hidden; max-width: 320px; margin: 8px auto; }
.whot-timer i { display: block; height: 100%; width: 100%; background: var(--green); transition: width 1s linear; }
.whot-timer i.low { background: var(--red-hot); }
.whot-last { color: #b9d2c5 !important; min-height: 20px; }
.whot-hand { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 4px 0; }
.whot-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.whot-foot #w-error { color: #ffb4ac; text-align: right; }
.whot-picker { background: var(--panel); border: 1px solid var(--gold); border-radius: 12px; padding: 14px; text-align: center; margin-bottom: 12px; }
.whot-picker-shapes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0; }
.whot-pick { background: #f6efe1; border: 2px solid transparent; border-radius: 10px; padding: 10px 4px 6px; cursor: pointer; color: #2a1a12; font: 600 12px Inter, sans-serif; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.whot-pick svg { width: 34px; height: 34px; fill: #8c1c1c; }
.whot-pick:hover, .whot-pick:focus-visible { border-color: var(--gold); outline: none; }
.whot-waiting { text-align: center; padding: 34px 20px; }
.whot-result { text-align: center; padding: 30px 20px; }
.whot-reveal { margin: 14px 0; }
.spinner { width: 38px; height: 38px; border: 4px solid var(--line); border-top-color: var(--gold); border-radius: 50%; margin: 0 auto 14px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* A card */
.wcard { position: relative; width: var(--card-w); aspect-ratio: 5 / 7; background: #f6efe1; color: #8c1c1c; border: 2px solid #d9cdb4; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; padding: 0; font-family: Inter, sans-serif; box-shadow: 0 2px 5px rgba(0,0,0,.45); transition: transform .12s, box-shadow .12s; flex: none; }
button.wcard { cursor: pointer; }
button.wcard:disabled { cursor: default; filter: brightness(.62) saturate(.6); }
button.wcard.playable { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), 0 4px 10px rgba(0,0,0,.5); transform: translateY(-6px); }
button.wcard.playable:hover, button.wcard.playable:focus-visible { transform: translateY(-12px); outline: none; }
.wc-num { position: absolute; font-weight: 700; font-size: calc(var(--card-w) * .2); line-height: 1; }
.wc-tl { top: 5px; left: 6px; }
.wc-br { bottom: 5px; right: 6px; transform: rotate(180deg); }
.wc-shape { width: 56%; display: flex; align-items: center; justify-content: center; }
.wc-shape svg { width: 100%; fill: #8c1c1c; }
.wcard-whot { background: #8c1c1c; color: #f6efe1; border-color: #5e1010; }
.wcard-whot .wc-shape b { font: calc(var(--card-w) * .27) "Bebas Neue", Impact, sans-serif; letter-spacing: .04em; transform: rotate(-28deg); font-weight: 400; }
.wcard-back { background: repeating-linear-gradient(45deg, #8c1c1c 0 6px, #a32626 6px 12px); border-color: #f6efe1; color: #f6efe1; font: 700 10px Inter, sans-serif; letter-spacing: .1em; }
.wcard-mini { --card-w: 26px; border-width: 1px; border-radius: 4px; box-shadow: none; }
.whot-hand-small { --card-w: 46px; }
.whot-hand-small .wc-tl { top: 3px; left: 4px; } .whot-hand-small .wc-br { bottom: 3px; right: 4px; }

@media (max-width: 640px) {
  .whot { --card-w: 60px; }
  .whot-table { padding: 10px; border-radius: 12px; }
  .whot-centre { gap: 18px; padding: 16px 0 10px; }
  .whot-hand { gap: 6px; }
  .whot-picker-shapes { gap: 6px; }
  .whot-pick svg { width: 28px; height: 28px; }
  .cat { padding: 10px 12px; }
  .cat strong { font-size: 20px; }
}
@media (max-width: 380px) { .whot { --card-w: 52px; } }
.whot [hidden] { display: none !important; }

/* Waiting-for-opponent countdown */
.wait-ring { position: relative; width: 132px; height: 132px; margin: 0 auto 14px; }
.wait-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.wait-ring circle { fill: none; stroke-width: 9; }
.wait-track { stroke: var(--line); }
.wait-arc { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset 1s linear, stroke .3s; }
.wait-arc.low { stroke: var(--red-hot); }
.wait-ring span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 40px/1 "Bebas Neue", Impact, sans-serif; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.table-card.expired { opacity: .45; }
.table-card.expired form { display: none; }
.badge-expired { background: var(--panel-2); color: var(--muted); }

/* Live lobby */
.live-badge { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; margin-left: 8px; font: 700 11px Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--green); background: rgba(63,184,107,.12); padding: 3px 9px; border-radius: 999px; }
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: live-pulse 1.6s ease-in-out infinite; }
.live-badge.off { color: var(--muted); background: var(--panel-2); }
.live-badge.off i { animation: none; }
@keyframes live-pulse { 50% { opacity: .25; } }
.table-card.fresh { animation: card-in .6s ease-out; border-color: var(--gold); }
@keyframes card-in { from { opacity: 0; transform: translateY(-8px); box-shadow: 0 0 0 4px rgba(227,179,65,.35); } }
.open-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 12px; }
.open-head h2 { margin: 0; }
.open-head .live-badge { margin-left: 0; }
@media (max-width: 640px) { .open-count { flex-basis: 100%; } }
.open-create { margin-left: auto; }
.see-all { text-align: center; margin-top: 14px; }
#start-match { scroll-margin-top: 90px; }
#start-match.flash { animation: panel-flash 1.4s ease-out 1; border-color: var(--gold); }
@media (max-width: 900px) { #start-match { scroll-margin-top: 122px; } }
/* Phones: title + Live on the first line; count on the left and Create on the right underneath */
.open-break { display: none; }
@media (max-width: 640px) {
  .open-break { display: block; flex-basis: 100%; height: 0; }
  .open-count { flex: 1 1 auto; flex-basis: auto !important; }
}

/* Withdrawal hold after a deposit */
.hold-note { background: rgba(227,179,65,.08); border: 1px solid rgba(227,179,65,.35); border-radius: 10px; padding: 14px 16px; }
.hold-note strong { color: var(--gold); display: block; }
.hold-note .hold-left { font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; }
.hold-note p { margin: 10px 0 0; }
