.online-page { max-width:1050px; margin-inline:auto; }
.online-heading { display:flex; align-items:end; justify-content:space-between; gap:12px; flex-wrap:wrap; margin:0 0 20px; }
.online-heading h1 { margin:0 0 6px; font-size:clamp(30px,5vw,62px); line-height:1; letter-spacing:-.06em; overflow-wrap:anywhere; }
.online-heading p { margin:0; color:var(--muted); }
.online-hero { position:relative; overflow:hidden; min-height:clamp(140px,21vw,225px); align-items:center; padding:clamp(16px,4vw,46px);
  border:1px solid var(--line); border-radius:18px; background:linear-gradient(145deg,var(--surface),var(--raised)); }
.online-hero > div { z-index:1; max-width:35rem; }
.online-brand-mark { position:absolute; inset:auto 4% -27% auto; font-size:clamp(115px,20vw,260px); color:var(--muted); opacity:.23; transform:rotate(12deg); }
.online-events { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr)); gap:12px; }
.online-event { display:flex; gap:12px; justify-content:space-between; align-items:start; flex-wrap:wrap; border:1px solid var(--line);
  border-radius:12px; padding:clamp(12px,2vw,23px); background:var(--surface); }
.online-event h2 { overflow-wrap:anywhere; margin:4px 0; font-size:clamp(18px,2.25vw,29px); }
.online-event p { margin:0; }
.online-back { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.online-status { color:var(--muted); font-size:13px; }
.online-lobby { display:flex; gap:12px; justify-content:space-between; align-items:start; flex-wrap:wrap; }
.online-lobby ol { margin:10px 0 0; padding-inline-start:1.3em; }
.table-heading h1 { font-size:clamp(26px,4.3vw,48px); }
.poker-table {
  --felt:#152b27; --poker-line:#647c70; --seat:#17201e; --card:#fbf6e7; --turn:#f0c583;
  position:relative; min-width:0; min-height:clamp(340px,51vw,510px); isolation:isolate;
  border:1px solid var(--line); border-radius:20px; background:#101916; color:#f5f2e8; overflow:hidden;
}
.poker-felt { position:absolute; z-index:-1; inset:13% 7%; border-radius:46%; border:1px solid var(--poker-line);
  box-shadow:0 0 0 7px #0c1412,0 0 0 8px #51645c; background:radial-gradient(ellipse at center,#244e43,var(--felt) 75%); }
.poker-center { position:absolute; inset:50% auto auto 50%; transform:translate(-50%,-50%); display:grid; justify-items:center; gap:8px; white-space:nowrap; }
.poker-center p { margin:0; color:#d1e0d9; font-size:12px; text-transform:uppercase; letter-spacing:.12em; }
.poker-center strong { font-variant-numeric:tabular-nums; }
.poker-community,.poker-hole { display:flex; justify-content:center; gap:clamp(3px,.8vw,9px); }
.poker-card { display:grid; place-content:center; justify-items:center; width:clamp(22px,5.5vw,48px); aspect-ratio:5/7;
  border:1px solid #eee6d7; border-radius:clamp(3px,.7vw,8px); background:var(--card); color:#191c18;
  font-size:clamp(13px,2.4vw,21px); font-weight:700; line-height:1; }
.poker-card > span { margin-top:3px; }
.poker-red { color:#a32c36; }
.poker-card-back { background:repeating-linear-gradient(135deg,#2b4b42 0 4px,#213d35 4px 8px); color:#e9ceb0; border-color:#71887f; }
.poker-card-empty { background:#16372c; border:1px dashed #78988c; }
.poker-seats { list-style:none; padding:0; margin:0; }
.poker-seat { position:absolute; translate:-50% -50%; display:grid; justify-items:center; gap:3px; width:clamp(66px,18%,148px); text-align:center; }
.poker-seat:nth-child(1) { left:50%; top:14%; }
.poker-seat:nth-child(2) { left:86%; top:30%; }
.poker-seat:nth-child(3) { left:86%; top:69%; }
.poker-seat:nth-child(4) { left:14%; top:69%; }
.poker-seat:nth-child(5) { left:14%; top:30%; }
.poker-seat:last-child { left:50%; top:84%; }
.poker-seats[data-seats="3"] .poker-seat:nth-child(1),
.poker-seats[data-seats="4"] .poker-seat:nth-child(1) { left:20%; top:24%; }
.poker-seats[data-seats="3"] .poker-seat:nth-child(2),
.poker-seats[data-seats="4"] .poker-seat:nth-child(2) { left:80%; top:24%; }
.poker-seat .poker-card { width:clamp(17px,3.8vw,34px); font-size:clamp(10px,1.65vw,15px); }
.poker-player { display:grid; justify-items:center; width:100%; min-width:0; border:1px solid #556760;
  border-radius:8px; background:var(--seat); padding:4px; font-size:clamp(10px,1.2vw,15px); }
.poker-player strong { width:100%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.poker-player span,.poker-seat small { color:#d2ded5; font-size:clamp(10px,1.15vw,13px); font-variant-numeric:tabular-nums; }
.poker-seat.is-turn .poker-player { border-color:var(--turn); box-shadow:0 0 16px #f0c58334; }
.poker-seat.is-own .poker-player span { color:var(--turn); }
.poker-seat.is-folded .poker-hole { opacity:.45; }
.poker-action-bar { min-height:57px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; padding:10px 2px; }
.poker-action-bar p { margin:0; color:var(--muted); font-variant-numeric:tabular-nums; }
.poker-moves { display:flex; align-items:end; flex-wrap:wrap; gap:6px; }
.poker-moves .field { margin:0; width:92px; }
.poker-moves input { padding:6px; min-height:34px; }
.poker-winners { list-style:none; padding:0; margin:0; }
@media(max-width:500px) {
  .online-main { padding-inline:7px; }
  .poker-felt { inset-inline:5%; }
  .poker-seat:nth-child(2),.poker-seat:nth-child(3) { left:85%; }
  .poker-seat:nth-child(4),.poker-seat:nth-child(5) { left:15%; }
  .poker-center { gap:6px; }
  .poker-action-bar .btn { min-height:40px; }
}
.poker-table {
  background:radial-gradient(ellipse at 50% 10%,#323a3c,#171c20 64%,#101315);
}
.poker-felt {
  inset:11% 6% 13%; border-radius:46% / 49%;
  transform:perspective(950px) rotateX(17deg);
  border:9px solid #303637;
  background:repeating-linear-gradient(32deg,transparent 0 2px,#fff1 2.25px,transparent 2.6px),
    radial-gradient(ellipse at 45% 23%,#3a7168,#204e46 55%,#0d302b);
  box-shadow:inset 0 0 0 2px #77988a88,inset 0 8px 24px #001e1d99,
    0 -2px 0 #889190,0 2px 0 #536061,0 10px 0 #191e20,0 13px 0 #383f40,0 23px 24px #0009;
}
.poker-felt::before { content:''; position:absolute; inset:5%; border:1px solid #c1d1bc44; border-radius:inherit; }
.poker-deck { position:absolute; left:51%; top:29%; width:24px; height:33px; display:grid; place-items:center;
  border:2px solid #d4cdb9; border-radius:4px; color:#eee2be; background:#273f3f; transform:translateX(-50%) rotate(-12deg);
  box-shadow:1px 2px 0 #585855,2px 3px 0 #dcd7ca,3px 5px 0 #595959,4px 7px 6px #0007; }
.poker-card:not(.poker-card-empty) { box-shadow:0 2px 0 #a6a499,0 4px 7px #061b1a80; }
.poker-card-empty { background:#123b323d; border-color:#c6d7cb55; }
.poker-hole { gap:3px; }
.poker-hole .poker-card:first-child { rotate:-6deg; }
.poker-hole .poker-card:nth-child(2) { rotate:5deg; }
.poker-player { background:linear-gradient(#343d40,#1b2225); border-radius:12px; box-shadow:0 3px 6px #0006; }
.poker-pot { background:#14332e; border:1px solid #839e8966; border-radius:24px; padding:3px 12px; }
.poker-flying-chip,.poker-pot::before { display:inline-block; width:15px; height:12px; border:3px dashed #f4dfbf;
  border-radius:50%; background:#974e45; box-shadow:0 2px #61382e,0 3px #dac4a6; }
.poker-pot::before { content:''; margin-right:7px; }
.poker-flying-chip { position:absolute; top:0; left:0; z-index:4; pointer-events:none; }
.poker-action-bar { margin-top:10px; padding:12px; border-radius:14px; border:1px solid var(--line); background:var(--surface); }
.poker-moves .btn { border-radius:12px; padding-inline:clamp(12px,2vw,25px); min-height:44px; font-weight:700; }
.poker-moves [value=fold] { background:#412e32; color:#ffe2df; border-color:#785359; }
.poker-moves [value=call],.poker-moves [value=check] { background:#25594f; color:#ecfff4; border-color:#578979; }
.poker-moves [value=raise] { background:#e6c18b; color:#30271c; border-color:#f6d8aa; }
@media(max-width:500px) {
  .poker-deck { width:17px; height:24px; top:25%; }
  .poker-moves { width:100%; }
  .poker-moves .field { width:70px; }
}
.poker-seat.is-own:last-child { left:50%; top:84%; }
@media(max-width:500px) {
  .poker-moves { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:end; }
  .poker-moves .field,.poker-moves input { width:100%; }
  .poker-moves input { min-height:44px; }
}
.poker-table { background:radial-gradient(ellipse at 50% 30%,#41423f,#242727 60%,#121718); }
.poker-felt { background:repeating-linear-gradient(38deg,transparent 0 3px,#efffde09 3px 4px),
  radial-gradient(ellipse at 44% 27%,#437868,#25594c 55%,#123b32);
  border-color:#443b34; box-shadow:inset 0 0 0 2px #bbbd9570,inset 0 9px 24px #0d271eaa,
  0 -2px 0 #958879,0 3px 0 #63574c,0 10px 0 #272422,0 13px 0 #473e36,0 23px 24px #0009; }
.poker-player { position:relative; }
.dealer-disc { position:absolute; right:-5px; top:-6px; display:grid; place-items:center; border-radius:50%; width:17px; height:17px;
  background:#f0d6a1; border:1px solid #93764b; box-shadow:0 2px 2px #0008; color:#2e281f; font:bold 11px/1 sans-serif; text-decoration:none; }
.seat-clock { position:absolute; bottom:-2px; left:8%; width:84%; height:4px; overflow:hidden; border:0; border-radius:4px; appearance:none; background:#192520; }
.seat-clock::-webkit-progress-bar { background:#192520; }
.seat-clock::-webkit-progress-value { background:var(--meter,#efc988); }
.seat-clock::-moz-progress-bar { background:var(--meter,#efc988); }
.seat-clock.urgent { --meter:#ff8b70; }
.poker-community .poker-card:not(.poker-card-empty),.is-own .poker-card { background:linear-gradient(130deg,#fffdf6,#f2ebdb); }
.poker-card.is-best { outline:2px solid #e6bb78; outline-offset:-2px; }
.poker-combination { position:absolute; top:100%; margin-top:4px; font-size:12px; font-weight:650; color:#fff1d1; text-shadow:0 1px 2px #0009; }
.bet-sizing { flex-basis:100%; display:flex; gap:6px; align-items:center; }
.bet-sizing input { flex:1; width:4em; min-width:0; accent-color:#b68a54; }
.bet-sizing button { border:1px solid var(--line); border-radius:20px; padding:5px 10px; color:var(--text); background:var(--surface); cursor:pointer; }
.poker-moves { max-width:490px; margin-left:auto; }
.poker-action-bar p:has([data-poker-clock]) { color:var(--text); font-weight:650; }
@media(max-width:500px) { .bet-sizing { grid-column:1/-1; } .bet-sizing button { min-height:38px; padding-inline:7px; } }
@media(prefers-reduced-motion:no-preference) {
 .poker-combination { animation:combo-enter .24s ease-out; }
 @keyframes combo-enter { from { opacity:0; translate:0 3px; } }
}
