/* Hot Hands poker table — oval felt table with players seated around it.
   Uses the site's existing burgundy / gold / felt variables. */
.hhp{position:relative}
.hhp [hidden]{display:none!important}
.hhp-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.hhp-title h3{margin:0}
.hhp-title p{margin:2px 0 0;color:var(--muted);font-size:12px}
.hhp-top-right{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.hhp-top-right button{min-width:0;white-space:nowrap}

.hhp-stage{position:relative;padding:34px 0 40px}
.hhp-table{position:relative;width:100%;max-width:1100px;margin:0 auto;aspect-ratio:16/9;min-height:340px;max-height:calc(100vh - 300px)}

/* felt */
.hhp-oval{position:absolute;inset:9% 7%;border-radius:50%;
  background:radial-gradient(ellipse at 50% 38%,var(--felt),var(--felt-dark) 78%);
  border:clamp(8px,1.2vw,15px) solid #4a2c16;
  box-shadow:0 0 0 2px var(--gold-d),inset 0 0 70px rgba(0,0,0,.55),0 20px 44px rgba(0,0,0,.55)}
.hhp-oval:before{content:"";position:absolute;inset:7%;border:1px solid rgba(240,194,75,.26);border-radius:50%}
.hhp-brand{position:absolute;left:50%;top:27%;transform:translate(-50%,-50%);white-space:nowrap;
  font:800 clamp(11px,1.8vw,22px)/1 Georgia,serif;letter-spacing:.38em;color:rgba(240,194,75,.17)}

/* pot / board / banner */
.hhp-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-48%);z-index:2;width:58%;
  display:flex;flex-direction:column;align-items:center;gap:clamp(5px,1vh,11px)}
.hhp-pot{background:rgba(0,0,0,.5);border:1px solid var(--gold-d);border-radius:99px;padding:3px 14px;font-size:11px;letter-spacing:.1em;color:var(--muted)}
.hhp-pot b{color:var(--gold);font-size:clamp(14px,1.6vw,20px);margin-left:6px;letter-spacing:0}
.hhp-board{display:flex;gap:clamp(4px,.7vw,10px);--cw:clamp(36px,5vw,68px)}
.hhp-banner{min-height:1.5em;max-width:100%;text-align:center;font-size:clamp(11px,1.15vw,15px);font-weight:700;color:var(--ink);
  text-shadow:0 1px 4px #000;line-height:1.3}
.hhp-banner .win{color:var(--gold)}
.hhp-banner small{display:block;color:var(--muted);font-weight:600;font-size:.85em}

/* cards */
.hhp-card{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;width:var(--cw);aspect-ratio:5/7;
  background:#fffdf6;color:#1b1b1b;border:1px solid #d8ceb2;border-radius:clamp(4px,.5vw,7px);
  box-shadow:0 2px 7px rgba(0,0,0,.55);font-family:Georgia,"Times New Roman",serif;line-height:1;flex:none}
.hhp-card b{font-size:calc(var(--cw)*.4);font-weight:800}
.hhp-card i{font-style:normal;font-size:calc(var(--cw)*.44)}
.hhp-card.red{color:#c4162a}
.hhp-card.back{background:repeating-linear-gradient(45deg,#7a1428 0 5px,#5f0c1d 5px 10px);border:2px solid var(--gold-d)}
.hhp-card.deal{animation:hhpDeal .38s ease-out both}
.hhp-card.flip{animation:hhpFlip .45s ease-out both}
.hhp-slot{width:var(--cw);aspect-ratio:5/7;border-radius:clamp(4px,.5vw,7px);border:1px dashed rgba(240,194,75,.25);background:rgba(0,0,0,.18);flex:none}
@keyframes hhpDeal{from{opacity:0;transform:translateY(-16px) scale(.85)}to{opacity:1;transform:none}}
@keyframes hhpFlip{from{opacity:.3;transform:rotateY(90deg)}to{opacity:1;transform:none}}

/* seats */
.hhp-seats,.hhp-bets{position:absolute;inset:0;pointer-events:none}
.hhp-seats{z-index:4}.hhp-bets{z-index:3}
.hhp-seat{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;
  width:clamp(92px,11vw,140px);--av:clamp(40px,4.6vw,62px);--cw:clamp(26px,3vw,40px);pointer-events:auto;transition:opacity .25s}
.hhp-seat.me{--cw:clamp(34px,4.2vw,56px)}
.hhp-cards{display:flex;gap:3px;margin-bottom:calc(var(--cw)*-.55);position:relative;z-index:1;min-height:0}
.hhp-avwrap{position:relative;z-index:2}
.hhp-avatar{position:relative;display:block;width:var(--av);height:var(--av);border-radius:50%;overflow:hidden;background:#222;
  border:3px solid var(--gold-d);box-shadow:0 4px 12px rgba(0,0,0,.65)}
.hhp-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hhp-initial{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font:800 calc(var(--av)*.45)/1 system-ui,sans-serif}
.hhp-dealer{position:absolute;right:-9px;bottom:-3px;width:20px;height:20px;border-radius:50%;background:#fff;color:#111;
  border:2px solid var(--gold-d);font:800 11px/16px system-ui,sans-serif;text-align:center;box-shadow:0 2px 5px #0008}
.hhp-plate{position:relative;z-index:3;margin-top:-9px;width:100%;padding:11px 8px 5px;text-align:center;
  background:linear-gradient(145deg,rgba(8,4,6,.96),rgba(70,9,23,.96));border:1px solid var(--gold-d);border-radius:11px;
  box-shadow:0 5px 16px rgba(0,0,0,.6)}
.hhp-plate b{display:block;font-size:clamp(10px,.95vw,13px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink)}
.hhp-plate span.stack{display:block;color:var(--gold);font-weight:800;font-size:clamp(10px,.9vw,13px);font-variant-numeric:tabular-nums}
.hhp-tag{display:block;margin-top:1px;font-size:9px;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.hhp-timer{display:block;height:4px;margin-top:4px;border-radius:3px;background:rgba(255,255,255,.14);overflow:hidden}
.hhp-timer i{display:block;height:100%;width:100%;background:linear-gradient(90deg,#e0463b,var(--gold))}
.hhp-seat.me .hhp-plate{border-color:#6fc487}
.hhp-seat.turn .hhp-avatar{border-color:var(--gold);box-shadow:0 0 0 3px rgba(240,194,75,.35),0 0 22px rgba(240,194,75,.75)}
.hhp-seat.turn .hhp-plate{border-color:var(--gold)}
.hhp-seat.folded{opacity:.5}
.hhp-seat.win .hhp-plate{border-color:var(--gold);box-shadow:0 0 20px rgba(240,194,75,.8)}
.hhp-seat.win .hhp-avatar{border-color:var(--gold);box-shadow:0 0 24px rgba(240,194,75,.85)}
.hhp-won{position:absolute;left:50%;top:-4px;transform:translate(-50%,-100%);z-index:6;white-space:nowrap;color:#9be0a8;font-weight:900;
  font-size:clamp(12px,1.3vw,17px);text-shadow:0 2px 6px #000;animation:hhpRise 1.4s ease-out both}
@keyframes hhpRise{from{opacity:0;transform:translate(-50%,-60%)}to{opacity:1;transform:translate(-50%,-110%)}}

.hhp-empty{position:absolute;transform:translate(-50%,-50%);width:clamp(44px,5vw,64px);aspect-ratio:1;border-radius:50%;padding:0;
  border:2px dashed rgba(240,194,75,.5);background:rgba(0,0,0,.28);color:var(--gold);font-size:11px;font-weight:700;line-height:1.15;
  display:grid;place-items:center;cursor:pointer;pointer-events:auto;min-width:0}
.hhp-empty:hover{background:rgba(240,194,75,.16)}

.hhp-bet{position:absolute;transform:translate(-50%,-50%);display:flex;align-items:center;gap:5px;padding:2px 9px 2px 3px;
  background:rgba(0,0,0,.6);border:1px solid var(--gold-d);border-radius:99px;color:var(--gold);font-weight:800;
  font-size:clamp(10px,1vw,13px);font-variant-numeric:tabular-nums;white-space:nowrap}
.hhp-bet i{width:14px;height:14px;border-radius:50%;flex:none;
  background:radial-gradient(circle,#fff 0 26%,#c0392b 28% 60%,#fff 62% 68%,#c0392b 70%)}

/* toast */
.hhp-toast{position:absolute;left:50%;top:4px;transform:translate(-50%,-8px);opacity:0;pointer-events:none;transition:.2s;z-index:20;
  max-width:92%;padding:9px 14px;border-radius:10px;background:rgba(20,10,12,.96);border:1px solid var(--gold-d);font-size:13px;text-align:center}
.hhp-toast.show{opacity:1;transform:translate(-50%,0)}
.hhp-toast.bad{border-color:#e0463b}

/* action bar */
.hhp-actions{max-width:1100px;margin:0 auto;display:flex;flex-direction:column;gap:8px;min-height:20px}
.hhp-hint{text-align:center;color:var(--muted);font-size:13px;margin:0}
.hhp-hint b{color:var(--gold)}
.hhp-act-row{display:flex;flex-wrap:wrap;gap:10px;align-items:stretch;justify-content:center}
.hhp-btn{min-width:112px;padding:13px 18px;border-radius:12px;border:1px solid rgba(255,255,255,.18);color:#fff;font:inherit;font-weight:800;cursor:pointer}
.hhp-btn:disabled{opacity:.5;cursor:default}
.hhp-btn.fold{background:linear-gradient(#8c2a2a,#5e1717)}
.hhp-btn.call{background:linear-gradient(#2f8f55,#1f6b3f)}
.hhp-btn.raise{background:linear-gradient(var(--gold),var(--gold-d));color:#2a1604;border-color:#fff3}
.hhp-clock{align-self:center;font-weight:800;color:var(--gold);min-width:34px;text-align:center}
.hhp-raise{display:flex;flex-direction:column;gap:7px;flex:1 1 280px;max-width:520px;padding:8px 10px;border-radius:12px;
  background:rgba(0,0,0,.35);border:1px solid rgba(240,194,75,.35)}
.hhp-raise-top{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.hhp-raise-top button.preset{min-width:0;padding:5px 10px;font-size:12px;border-radius:8px}
.hhp-raise-top input[type=number]{width:96px;min-width:0;padding:6px 8px;border:1px solid var(--gold-d);border-radius:8px;background:rgba(0,0,0,.5);color:var(--ink);font:inherit}
.hhp-raise input[type=range]{width:100%;accent-color:var(--gold)}
.hhp-raise .hhp-btn{width:100%}

.hhp-buyin{max-width:520px;margin:10px auto 0;display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:center}
.hhp-buyin label{width:100%;text-align:center;margin:0;color:var(--muted);font-size:12px}
.hhp-buyin input{width:130px;min-width:0;padding:10px;border:1px solid var(--gold-d);border-radius:9px;background:rgba(0,0,0,.5);color:var(--ink);font:inherit}

@media(max-width:700px){
  .hhp-stage{padding:28px 0 34px}
  .hhp-table{aspect-ratio:3/4.1;max-height:none;min-height:0}
  .hhp-oval{inset:8% 4%}
  .hhp-center{width:74%}
  .hhp-board{--cw:clamp(30px,10vw,44px);gap:3px}
  .hhp-seat{width:clamp(70px,22vw,92px);--av:clamp(34px,10vw,44px);--cw:clamp(20px,6vw,28px)}
  .hhp-seat.me{--cw:clamp(28px,8vw,38px)}
  .hhp-plate{padding:10px 4px 4px;border-radius:9px}
  .hhp-plate b{font-size:10px}
  .hhp-plate span.stack{font-size:10px}
  .hhp-tag{font-size:8px}
  .hhp-btn{flex:1 1 30%;min-width:0;padding:12px 8px}
  .hhp-raise{flex-basis:100%;max-width:none}
  .hhp-empty{width:40px;font-size:9px}
}


/* Compact shared chat strip on the live poker table */
.hhp-chatbar{max-width:1100px;margin:14px auto 0;padding:10px 12px;display:grid;
  grid-template-columns:auto minmax(0,1fr) minmax(220px,34%);gap:10px;align-items:center;
  border:1px solid rgba(240,194,75,.32);border-radius:12px;
  background:linear-gradient(135deg,rgba(18,8,10,.94),rgba(55,12,18,.88));
  box-shadow:inset 0 1px rgba(255,255,255,.04)}
.hhp-chatbar-title{font-size:10px;letter-spacing:1.3px;font-weight:900;color:var(--gold);white-space:nowrap}
.hhp-chatbar-messages{display:flex;gap:7px;align-items:center;min-width:0;overflow-x:auto;white-space:nowrap;scrollbar-width:thin}
.hhp-chatbar-messages .mp-chat-line{display:inline-flex;gap:5px;align-items:center;flex:none;
  max-width:260px;padding:5px 8px;border-radius:7px;background:rgba(0,0,0,.28);font-size:11px}
.hhp-chatbar-messages .mp-chat-line b{color:var(--gold);font-size:11px}
.hhp-chatbar-messages .mp-chat-line span{overflow:hidden;text-overflow:ellipsis;max-width:150px}
.hhp-chatbar-messages .mp-chat-line small{display:none}
.hhp-chatbar-messages .mp-empty{font-size:11px;color:var(--muted)}
.hhp-chatbar-form{display:flex;gap:6px;min-width:0}
.hhp-chatbar-form input{width:100%;min-width:0;padding:8px 10px;border:1px solid rgba(240,194,75,.35);
  border-radius:8px;background:rgba(0,0,0,.45);color:var(--ink);font:inherit;font-size:12px}
.hhp-chatbar-form button{padding:7px 12px;border:1px solid var(--gold-d);border-radius:8px;
  background:linear-gradient(var(--gold),var(--gold-d));color:#281605;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.hhp-chatbar-form button:disabled{opacity:.55;cursor:wait}
@media(max-width:700px){
  .hhp-chatbar{grid-template-columns:1fr;gap:7px;padding:9px}
  .hhp-chatbar-title{display:none}
  .hhp-chatbar-messages{min-height:24px}
  .hhp-chatbar-form{width:100%}
}
