/* Tilt arcade shell: the global top bar, practice / real switch, game toolbar, game info, bets table and play-safe reminders on the game pages (brand/neon/shell.js).
   Everything here is scoped to html.tsh-on (set by shell.js on the five game pages only), because the home page links this file too. */

html.tsh-on{--tsh-h:64px;scroll-padding-top:calc(var(--tsh-h) + 12px)}
@media (max-width:640px){html.tsh-on{--tsh-h:56px}}

/* ---------- 1. the top bar ---------- */
.tsh-top{position:fixed;z-index:45;top:0;left:var(--rail-w,0px);right:0;height:var(--tsh-h,64px);
  background:rgba(6,6,9,.88);border-bottom:1px solid rgba(255,255,255,.08);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 10px 30px rgba(0,0,0,.35);
  font-family:var(--font-sans,system-ui,sans-serif);transition:left .2s ease}
html.tsh-on #shell,html.tsh-on body>.wrap{margin-top:var(--tsh-h,64px)}
html.tsh-on body>.wrap{padding-top:12px}
/* the page's own header, moved in: logo | balance pill | wallet */
.tsh-top>.head{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px!important;
  height:100%;margin:0!important;padding:0 20px!important;border:0!important;background:none!important;box-shadow:none!important;flex-wrap:nowrap!important}
.tsh-top>.head::after{display:none!important}
.tsh-top>.head>.brand,.tsh-top>.head>.ph-logo{grid-column:1;justify-self:start;min-width:0;padding:0!important;margin:0!important}
.tsh-top .ph-logo{display:inline-flex!important;align-items:center;min-height:44px;color:#fff;text-decoration:none}
.tsh-top .ph-logo>span{display:flex;align-items:center;gap:12px;min-width:0}
.tsh-top .ph-logo>span:has(> .tilt-wm){flex-direction:row;align-items:center;gap:12px}   /* components.css stacks the wordmark over the subtitle; the top bar keeps them side by side */
.tsh-top .ph-logo small{display:inline-block!important;margin:0!important;font:500 12px/1.2 var(--font-sans)!important;color:var(--muted,#bdc1d8)!important;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:32vw;padding-left:12px;border-left:1px solid rgba(255,255,255,.12)}
.tsh-top>.head>.wallet{grid-column:2;justify-self:center;display:flex!important;align-items:center;gap:8px;margin:0!important;flex:none!important;position:static!important}
.tsh-right{grid-column:3;justify-self:end;display:flex;align-items:center;gap:10px;min-width:0}
.tsh-right>*{margin:0!important}
.tsh-right>*:not(.tn-bell){position:static!important}   /* the bell keeps position:relative so its count badge sits on it, not on the page corner */
/* the side menu already shows the Tilt wordmark: the top bar names the game only */
html.rail-on .tsh-top .ph-logo .tilt-wm{display:none!important}
html.rail-on .tsh-top .ph-logo small{padding-left:0!important;border-left:0!important;font:600 14px/1.2 var(--font-sans)!important;color:#fff!important;max-width:40vw}
.tsh-right #muteBtn{display:none!important}   /* the toolbar's sound button drives it */
.tsh-right .floorlink,.tsh-right .navlink,.tsh-right .tsh-floor{display:inline-flex!important;align-items:center;height:40px;padding:0 14px;border-radius:999px;
  border:1px solid rgba(255,255,255,.1)!important;background:transparent;color:var(--muted,#bdc1d8)!important;font:600 12.5px var(--font-sans)!important;
  letter-spacing:0!important;text-decoration:none;white-space:nowrap;transition:color .15s,border-color .15s,background .15s}
.tsh-right .floorlink:hover,.tsh-right .navlink:hover,.tsh-right .tsh-floor:hover{color:#fff!important;border-color:rgba(255,255,255,.3)!important;background:rgba(255,255,255,.04)}
.tsh-right #liveBtn{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 18px;border-radius:999px;cursor:pointer;
  background:#22f2c2;color:#03130e;font:700 13px var(--font-sans,system-ui,sans-serif);white-space:nowrap;
  box-shadow:inset 0 0 0 1px rgba(160,255,230,.55),0 0 18px rgba(34,242,194,.35);transition:box-shadow .15s,filter .15s}
.tsh-right #liveBtn:hover{box-shadow:inset 0 0 0 1px rgba(200,255,240,.8),0 0 28px rgba(34,242,194,.6)}
.tsh-right #liveBtn:disabled{opacity:.55;cursor:default}
.tsh-right #liveBtn[hidden]{display:none}
.tsh-right #liveBtn::before{content:"";width:16px;height:16px;flex:none;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h14a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h11'/%3E%3Cpath d='M16 13.5h.01'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h14a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h11'/%3E%3Cpath d='M16 13.5h.01'/%3E%3C/svg%3E") center/contain no-repeat}
.tsh-top a:focus-visible,.tsh-top button:focus-visible{outline:2px solid #22f2c2!important;outline-offset:2px}

/* the balance pill with the Practice | Real switch */
.tsh-pill{display:flex;align-items:center;gap:10px;height:44px;padding:0 4px 0 16px;border-radius:999px;background:#0b0b0f;
  border:1px solid rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
.tsh-pill .bal{display:flex!important;flex-direction:column;justify-content:center;text-align:left!important;line-height:1!important;position:relative;margin:0!important;padding:0!important}
.tsh-pill .bal .lab{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tsh-pill .bal .amt{display:flex;align-items:baseline;gap:4px;margin:0!important;font:600 15px/1 var(--font-mono,ui-monospace,monospace)!important;color:#fff!important;
  white-space:nowrap;font-variant-numeric:tabular-nums;transform:none}
.tsh-pill .bal .amt b,.tsh-pill .bal .amt small,.tsh-pill .bal .amt .u-lbl{font:600 10px var(--font-mono,ui-monospace,monospace)!important;color:var(--muted,#bdc1d8)!important;letter-spacing:.04em;margin:0!important}
.tsh-pill .bal>small,#balanceWallet{display:none!important}
.tsh-pill .bal .chipbtn:not([hidden]){margin-top:2px;padding:0;height:auto;font:600 10px var(--font-sans);color:#22f2c2;background:none;border:0;cursor:pointer;text-decoration:underline}
.tsh-pill .bal .delta{top:calc(100% + 6px)!important;bottom:auto!important;right:auto!important;left:0}
body:not(.live) .tsh-pill .bal .amt{color:#fff!important}
.tsh-seg{display:flex;gap:2px;padding:3px;border-radius:999px;background:rgba(255,255,255,.05);box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
.tsh-seg button{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:6px;height:30px;padding:0 12px;border-radius:999px;cursor:pointer;
  font:600 12px var(--font-sans,system-ui,sans-serif);color:var(--muted,#bdc1d8);white-space:nowrap;transition:background .15s,color .15s}
.tsh-seg button:hover{color:#fff}
.tsh-seg button[aria-pressed="true"]{cursor:default}
.tsh-seg button[data-m="practice"][aria-pressed="true"]{background:rgba(255,208,79,.16);color:#ffd04f;box-shadow:inset 0 0 0 1px rgba(255,208,79,.45)}
.tsh-seg button[data-m="real"][aria-pressed="true"]{background:#22f2c2;color:#03130e}
.tsh-seg button[data-m="real"][aria-pressed="true"]::before{content:none}
.tsh-seg button:focus-visible{outline:2px solid #22f2c2;outline-offset:1px}
.tsh-note{max-width:180px;font:600 11px/1.25 var(--font-sans);color:#ffd04f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tsh-note[hidden]{display:none}
@keyframes tshPulse{50%{opacity:.35}}

/* the old mode strip: its job moved into the bar (kept in the page, games still write to it) */
html.tsh-on #playModeBar,html.tsh-on body>.wrap>.play-mode{display:none!important}

@media (max-width:1100px){.tsh-top .ph-logo small{display:none!important}}
@media (max-width:900px){.tsh-right .floorlink,.tsh-right .navlink,.tsh-right .tsh-floor{display:none!important}}
@media (max-width:640px){
  .tsh-top>.head{grid-template-columns:auto minmax(0,1fr) auto;gap:8px!important;padding:0 12px!important}
  .tsh-pill{height:40px;padding-left:12px;gap:8px}
  .tsh-pill .bal .amt{font-size:14px!important}
  .tsh-pill .bal .amt b,.tsh-pill .bal .amt small,.tsh-pill .bal .amt .u-lbl{display:none!important}
  .tsh-seg button{height:30px;padding:0 10px;font-size:11.5px}
  .tsh-note{display:none}
  .tsh-right #liveBtn{width:44px;height:44px;padding:0;font-size:0!important}
  .tsh-right #liveBtn::before{width:19px;height:19px}
  .tsh-right .me-chip,.tsh-right a[data-me]{display:none!important}
}
@media (max-width:400px){
  .tsh-top .ph-logo img.tilt-wm,.tsh-top img.tilt-wm{height:24px!important;width:auto!important}
  .tsh-top .ph-logo{margin-right:6px}
  .tsh-seg button{padding:0 8px}
}
@media (pointer:coarse){.tsh-seg button{min-height:36px}.tsh-pill{height:46px}}

/* ---------- 2. the toolbar under the stage ---------- */
.tsh-tools{position:relative;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 12px;
  border-top:1px solid rgba(255,255,255,.07);border-bottom:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.015)}
.tsh-tools .g{display:flex;align-items:center;gap:4px}
.tsh-tool{all:unset;box-sizing:border-box;position:relative;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;cursor:pointer;color:var(--muted,#bdc1d8);
  transition:color .15s,background .15s}
.tsh-tool svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.tsh-tool:hover{color:#fff;background:rgba(255,255,255,.07)}
.tsh-tool:focus-visible{outline:2px solid #22f2c2;outline-offset:1px}
.tsh-tool[aria-pressed="true"]{color:#22f2c2;background:rgba(34,242,194,.1)}
.tsh-tool[data-t="fav"][aria-pressed="true"]{color:#ffd04f;background:rgba(255,208,79,.1)}
.tsh-tool[data-t="fav"][aria-pressed="true"] svg{fill:currentColor}
.tsh-tool[data-t="sound"][aria-pressed="false"]{color:var(--dim,#5d6080)}
.tsh-tool[data-tip]::after{content:attr(data-tip);position:absolute;bottom:calc(100% + 8px);left:50%;transform:translate(-50%,4px);padding:6px 10px;border-radius:8px;
  background:#16161c;box-shadow:0 0 0 1px rgba(255,255,255,.1),0 10px 24px rgba(0,0,0,.5);color:#fff;font:600 12px/1 var(--font-sans,system-ui,sans-serif);white-space:nowrap;
  opacity:0;pointer-events:none;transition:opacity .15s,transform .15s;z-index:5}
.tsh-tools .g:last-child .tsh-tool:last-child[data-tip]::after{left:auto;right:0;transform:translateY(4px)}
.tsh-tools .g:first-child .tsh-tool:first-child[data-tip]::after{left:0;transform:translateY(4px)}
.tsh-tool:hover::after,.tsh-tool:focus-visible::after{opacity:1;transform:translate(-50%,0)}
.tsh-tools .g:last-child .tsh-tool:last-child:hover::after,.tsh-tools .g:last-child .tsh-tool:last-child:focus-visible::after,
.tsh-tools .g:first-child .tsh-tool:first-child:hover::after,.tsh-tools .g:first-child .tsh-tool:first-child:focus-visible::after{transform:none}
@media (pointer:coarse){.tsh-tool{width:44px;height:44px}.tsh-tool[data-tip]::after{display:none}.tsh-tool[data-t="keys"]{display:none}}
@media (max-width:767px){.tsh-tool[data-t="theatre"]{display:none}.tsh-tools{padding:4px 6px}}
@media (max-width:380px){.tsh-tools .g{gap:0}}
/* the sound control lives in the toolbar now */
html.tsh-on #muteBtn{display:none!important}

/* theatre mode: no side columns or sidebar, the game gets the room */
html.tsh-theatre{--rail-w:0px!important}
html.tsh-theatre .trail,html.tsh-theatre .card.side,html.tsh-theatre aside.side,html.tsh-theatre .card.lobby{display:none!important}
html.tsh-theatre #shell{width:min(1640px,100%)!important;max-width:none!important;grid-template-columns:minmax(0,1fr)!important}
html.tsh-theatre #shell .layout,html.tsh-theatre .tv{grid-template-columns:minmax(0,1fr)!important}
html.tsh-theatre body>.wrap{width:min(1640px,calc(100% - 24px))!important;max-width:none!important}

/* ---------- 5. clutter ---------- */
html.tsh-on #phase,html.tsh-on .stage>.phase,html.tsh-on #buildTag{display:none!important}
/* live table: bots with no bet this round (their row only says "—"); You stays */
html.tsh-on #players>.player.idle:not(.me):not(:only-child){display:none!important}
html.tsh-on.tsh-g-blackout #players>.player:not(.me):not(.queued):not(.won):not(.out){display:none!important}

/* ---------- 6. stake chips ---------- */
.tsh-x2{font-variant-numeric:tabular-nums}

/* ---------- 4. the bets section's place on the page ---------- */
html.tsh-on #bets{grid-column:1/-1;margin-top:14px}

/* ---------- 3 & 8. dialogs ---------- */
dialog.tsh-dlg{position:fixed;inset:0;margin:auto;height:fit-content;width:min(520px,calc(100vw - 32px));max-height:min(86vh,760px);padding:0;border:0;border-radius:24px;color:#fff;overflow:hidden;
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,0) 30%),linear-gradient(180deg,#141419,#08080b);
  box-shadow:0 0 0 1px rgba(255,255,255,.1),0 30px 80px rgba(0,0,0,.7);font-family:var(--font-sans,system-ui,sans-serif)}
dialog.tsh-dlg[open]{display:flex;flex-direction:column;animation:tshIn .22s cubic-bezier(.2,.8,.2,1)}
dialog.tsh-dlg::backdrop{background:rgba(0,0,0,.66);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
@keyframes tshIn{from{opacity:0;transform:translateY(10px) scale(.98)}}
.tsh-dlg .hd{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 20px 4px 24px}
.tsh-dlg h2{margin:0;font:700 15px/1.3 var(--font-display,system-ui)!important;letter-spacing:.04em;text-transform:uppercase}
.tsh-dlg .x{all:unset;box-sizing:border-box;flex:none;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;cursor:pointer;color:#fff;border:2px solid rgba(255,255,255,.85)}
.tsh-dlg .x:hover{background:#fff;color:#06071a}
.tsh-dlg .x svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.tsh-dlg .bd{padding:10px 24px 24px;overflow-y:auto;overscroll-behavior:contain;font:500 14px/1.55 var(--font-sans,system-ui);color:var(--muted,#bdc1d8)}
.tsh-dlg .bd p{margin:0 0 12px}
.tsh-dlg .bd strong{color:#fff}
.tsh-dlg .facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;margin:14px 0}
.tsh-dlg .facts div{padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07)}
.tsh-dlg .facts span{display:block;font:600 10px var(--font-display,system-ui);letter-spacing:.08em;text-transform:uppercase;color:var(--muted,#bdc1d8);margin-bottom:6px}
.tsh-dlg .facts b{display:block;font:600 15px/1.3 var(--font-sans,system-ui);color:#22f2c2}
.tsh-dlg .facts small{display:block;margin-top:4px;font:500 12px/1.4 var(--font-sans,system-ui);color:var(--muted,#bdc1d8)}
.tsh-dlg .note{font-size:12.5px;color:var(--subtle,#a3a7c2)}
.tsh-dlg .acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.tsh-btn{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 20px;border-radius:999px;cursor:pointer;
  font:700 13px var(--font-sans,system-ui);white-space:nowrap;text-decoration:none;color:#fff;border:1px solid rgba(255,255,255,.18);transition:background .15s,border-color .15s,box-shadow .15s,opacity .15s}
.tsh-btn:hover{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.35)}
.tsh-btn.pri{background:#22f2c2;color:#03130e;border-color:transparent;box-shadow:0 0 18px rgba(34,242,194,.4)}
.tsh-btn.pri:hover{box-shadow:0 0 28px rgba(34,242,194,.65)}
.tsh-btn[disabled],.tsh-btn[aria-disabled="true"]{opacity:.45;cursor:not-allowed;box-shadow:none}
.tsh-btn:focus-visible,.tsh-dlg a:focus-visible,.tsh-dlg input:focus-visible,.tsh-dlg select:focus-visible{outline:2px solid #22f2c2;outline-offset:2px}
.tsh-dlg a{color:#22f2c2;font-weight:600}
.tsh-keys{width:100%;border-collapse:collapse}
.tsh-keys td{padding:9px 0;border-bottom:1px solid rgba(255,255,255,.06);vertical-align:middle}
.tsh-keys td:first-child{width:42%;padding-right:12px;white-space:nowrap}
.tsh-keys td:last-child{color:#fff}
.tsh-keys kbd{display:inline-block;min-width:26px;margin:2px 4px 2px 0;padding:4px 8px;border-radius:7px;text-align:center;font:600 12px var(--font-mono,ui-monospace,monospace);color:#fff;
  background:rgba(255,255,255,.06);box-shadow:inset 0 -2px 0 rgba(0,0,0,.5),0 0 0 1px rgba(255,255,255,.12)}
.tsh-form{display:grid;gap:14px;margin:6px 0 4px}
.tsh-form label{display:grid;gap:6px;font:600 13px var(--font-sans,system-ui);color:#fff}
.tsh-form label small{font-weight:500;color:var(--muted,#bdc1d8)}
.tsh-form .in{display:flex;align-items:center;height:46px;border-radius:12px;background:#08080b;border:1px solid rgba(255,255,255,.12);padding:0 14px;gap:8px}
.tsh-form .in:focus-within{border-color:#22f2c2;box-shadow:0 0 0 3px rgba(34,242,194,.15)}
.tsh-form .in i{font-style:normal;color:var(--muted,#bdc1d8);font:600 13px var(--font-mono,ui-monospace,monospace)}
.tsh-form input,.tsh-form select{all:unset;flex:1;min-width:0;height:100%;font:600 15px var(--font-mono,ui-monospace,monospace);color:#fff}
.tsh-form select option{background:#111;color:#fff}
.tsh-now{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 14px}
.tsh-now span{padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.05);font:600 12px var(--font-mono,ui-monospace,monospace);color:#fff}
.tsh-wait{margin:12px 0 0;padding:10px 14px;border-radius:12px;background:rgba(255,208,79,.08);border:1px solid rgba(255,208,79,.3);color:#ffe9a8;font:600 13px/1.4 var(--font-sans,system-ui)}
.tsh-wait[hidden]{display:none}
.tsh-big{font:700 30px/1.15 var(--font-display,system-ui);color:#fff;margin:6px 0 10px;letter-spacing:.01em}
.tsh-big em{font-style:normal;color:#22f2c2}
.tsh-big em.dn{color:#c9ccd8}
@media (max-width:640px){
  dialog.tsh-dlg{width:100%;max-width:none;margin:auto 0 0!important;border-radius:24px 24px 0 0;max-height:90vh;padding-bottom:env(safe-area-inset-bottom,0px)}
  dialog.tsh-dlg[open]{animation-name:tshUp}
  @keyframes tshUp{from{transform:translateY(40px);opacity:0}}
  .tsh-dlg .hd{padding:16px 16px 4px 20px}.tsh-dlg .bd{padding:8px 20px 20px}
  .tsh-dlg .acts .tsh-btn{flex:1 1 auto}
}

/* ---------- 8b. limit reached: the game is covered until the limit changes ---------- */
.tsh-block{position:fixed;z-index:47;top:var(--tsh-h,64px);left:var(--rail-w,0px);right:0;bottom:0;display:grid;place-items:center;padding:20px;
  background:rgba(3,3,4,.82);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);animation:tshFade .3s ease}
html.tbar-on .tsh-block{bottom:calc(var(--tbar-h,64px) + env(safe-area-inset-bottom,0px))}
@keyframes tshFade{from{opacity:0}}
.tsh-block .card{width:min(460px,100%);padding:28px 26px;border-radius:24px;text-align:left;font-family:var(--font-sans,system-ui);color:var(--muted,#bdc1d8);
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,0) 30%),linear-gradient(180deg,#141419,#08080b)!important;box-shadow:0 0 0 1px rgba(255,208,79,.35),0 30px 80px rgba(0,0,0,.7)!important}
.tsh-block .k{font:600 10.5px var(--font-display,system-ui);letter-spacing:.12em;text-transform:uppercase;color:#ffd04f}
.tsh-block h2{margin:8px 0 10px;font:700 22px/1.25 var(--font-display,system-ui)!important;color:#fff;letter-spacing:.01em}
.tsh-block p{margin:0 0 10px;font:500 14px/1.55 var(--font-sans,system-ui)}
.tsh-block .acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.tsh-block .t{font:600 13px var(--font-mono,ui-monospace,monospace);color:#fff}

@media (prefers-reduced-motion:reduce){
  .tsh-top,.tsh-tool,.tsh-tool::after,.tsh-seg button,.tsh-btn{transition:none!important}
  dialog.tsh-dlg[open],.tsh-block{animation:none!important}
  .tsh-seg button[data-m="real"][aria-pressed="true"]::before{animation:none}
}

/* six stake chips on Dice and Flip once 2× joins them */
html.tsh-on .cv2 #stakePresets{grid-template-columns:repeat(6,minmax(0,1fr))}
.tsh-pill [hidden]{display:none!important}
/* Connect wallet: one lit mint button on every game (the theme's .livebtn ring is for in-page buttons) */
.tsh-right #liveBtn.livebtn,.tsh-right #liveBtn.chipbtn{background:#22f2c2!important;color:#03130e!important;border:0!important;height:40px!important;padding:0 18px!important;
  font:700 13px var(--font-sans,system-ui,sans-serif)!important;letter-spacing:0!important;text-transform:none!important;border-radius:999px!important}
@media (max-width:640px){.tsh-right #liveBtn.livebtn,.tsh-right #liveBtn.chipbtn{width:44px;height:44px!important;padding:0!important;font-size:0!important}}
/* Hold'em lobby: the toolbar sits above the table list as its own strip */
.tsh-tools.lobby{margin:0 0 16px;border:1px solid rgba(255,255,255,.08);border-radius:999px;background:rgba(255,255,255,.02)}
.tsh-tools.lobby [data-t="theatre"],.tsh-tools.lobby [data-t="keys"]{display:none}
/* Hold'em: "Refresh balance" (live play only) becomes a small round icon beside the amount, so it never sits on the figure */
.tsh-pill .bal:has(#pokerBalanceRefresh:not([hidden])){flex-direction:row!important;align-items:center;gap:6px}
.tsh-pill #pokerBalanceRefresh:not([hidden]){all:unset;box-sizing:border-box;flex:none;display:inline-grid;place-items:center;width:28px;height:28px;margin:0!important;border-radius:50%;cursor:pointer;
  font-size:0!important;color:var(--muted,#bdc1d8);border:1px solid rgba(255,255,255,.14);transition:color .15s,border-color .15s}
.tsh-pill #pokerBalanceRefresh:not([hidden])::before{content:"";width:14px;height:14px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.3-5.6'/%3E%3Cpath d='M20 4v5h-5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.3-5.6'/%3E%3Cpath d='M20 4v5h-5'/%3E%3C/svg%3E") center/contain no-repeat}
.tsh-pill #pokerBalanceRefresh:not([hidden]):hover{color:#22f2c2;border-color:rgba(34,242,194,.5)}
.tsh-pill #pokerBalanceRefresh:focus-visible{outline:2px solid #22f2c2;outline-offset:2px}
.tsh-pill #pokerBalanceRefresh:disabled{opacity:.4;cursor:default}
@media (pointer:coarse){
  .tsh-pill #pokerBalanceRefresh:not([hidden]){position:relative;width:32px;height:32px;min-width:32px!important;min-height:32px!important}
  .tsh-pill #pokerBalanceRefresh:not([hidden])::after{content:"";position:absolute;inset:-6px}   /* a 44px tap area */
}
.tsh-form input:focus-visible,.tsh-form select:focus-visible{outline:none!important;box-shadow:none!important}   /* the field's own ring shows focus */

/* ---------- match the home page header (css/lobby.css .bal / .bal-mode / .bal-seg / .btn-wallet) ---------- */
.tsh-pill{height:48px;padding:0 0 0 16px;gap:12px;background:rgba(0,0,0,.45);border:1px solid rgba(178,107,255,.22);box-shadow:none}
.tsh-pill .bal .amt{font:600 15px/1 var(--font-mono,ui-monospace,monospace)!important}
.tsh-seg{align-self:stretch;height:auto;gap:0;padding:0;background:rgba(255,255,255,.05);box-shadow:none}
.tsh-seg button{height:100%;min-width:44px;padding:0 14px;border:4px solid transparent;background-clip:padding-box;
  font:600 10px/1 var(--font-display,"Unbounded",system-ui,sans-serif);letter-spacing:.06em;text-transform:uppercase}
.tsh-seg button:hover{background-color:rgba(255,255,255,.08)}
.tsh-seg button[aria-pressed="true"],.tsh-seg button[data-m="practice"][aria-pressed="true"],.tsh-seg button[data-m="real"][aria-pressed="true"]{
  background:#22f2c2;color:#03130e;box-shadow:0 0 14px rgba(34,242,194,.35);background-clip:padding-box}
.tsh-right #liveBtn,.tsh-right #liveBtn.livebtn,.tsh-right #liveBtn.chipbtn{height:48px!important;padding:0 20px!important;font-size:14px!important}
@media (max-width:640px){
  .tsh-pill{height:44px;padding-left:12px;gap:8px}
  .tsh-pill .bal .amt{font-size:13px!important}
  .tsh-seg button{padding:0 8px;font-size:9px;letter-spacing:.03em;border-width:3px}
  .tsh-right #liveBtn,.tsh-right #liveBtn.livebtn,.tsh-right #liveBtn.chipbtn{width:48px;height:48px!important;padding:0!important;font-size:0!important;border-radius:50%!important}
}
@media (max-width:400px){.tsh-pill{padding-left:10px}.tsh-pill .bal .amt{font-size:12.5px!important}.tsh-seg button{padding:0 6px;min-width:40px}
  .tsh-right #liveBtn,.tsh-right #liveBtn.livebtn,.tsh-right #liveBtn.chipbtn{width:44px;height:44px!important}}
.tsh-right #liveBtn,.tsh-right #liveBtn.livebtn,.tsh-right #liveBtn.chipbtn{font-family:var(--font-display,"Unbounded",system-ui,sans-serif)!important;font-weight:700!important;text-transform:uppercase!important;letter-spacing:.04em!important}

/* ---------- right cluster: quiet Connect wallet in practice, account menu, comfortable spacing ---------- */
.tsh-right{gap:14px}
.tsh-top>.head>.wallet{gap:12px}
.tsh-pill{gap:14px}
.tsh-right .floorlink,.tsh-right .navlink,.tsh-right .tsh-floor,.tsh-right a[data-me],.tsh-right .me-chip{display:none!important}   /* now in the account menu */
/* Practice: Connect wallet is a ghost button (no fill, no glow, muted label). Real: the lit mint button above stands. */
html:not(.tsh-real) .tsh-right #liveBtn,html:not(.tsh-real) .tsh-right #liveBtn.livebtn,html:not(.tsh-real) .tsh-right #liveBtn.chipbtn{
  background:transparent!important;color:#c3c7dc!important;border:1px solid rgba(255,255,255,.22)!important;box-shadow:none!important;filter:none!important;
  height:44px!important;padding:0 16px!important;font-size:12px!important;font-weight:600!important;letter-spacing:.03em!important}
html:not(.tsh-real) .tsh-right #liveBtn:hover{color:#fff!important;border-color:rgba(255,255,255,.5)!important;background:rgba(255,255,255,.06)!important;box-shadow:none!important}
@media (max-width:640px){
  html:not(.tsh-real) .tsh-right #liveBtn,html:not(.tsh-real) .tsh-right #liveBtn.livebtn,html:not(.tsh-real) .tsh-right #liveBtn.chipbtn{width:44px;height:44px!important;padding:0!important;font-size:0!important;border-radius:50%!important}
  .tsh-right{gap:8px}
  .tsh-top>.head>.wallet{gap:8px}
}
/* Real segment: quiet while you're in Practice, never pulses (the pulse is only the live indicator) */
html:not(.tsh-real) .tsh-seg button[data-m="real"]::before{animation:none}
.tsh-seg button{position:relative}
@media (pointer:coarse){
  .tsh-seg button{min-width:44px!important}
  .tsh-seg button::after{content:"";position:absolute;inset:-4px -2px}   /* a 44px tap area */
}
/* the account menu */
.tsh-menu{position:relative;flex:none}
.tsh-menubtn{all:unset;box-sizing:border-box;display:inline-grid;place-items:center;width:44px;height:44px;border-radius:50%;cursor:pointer;color:#c3c7dc;border:1px solid rgba(255,255,255,.14);transition:color .15s,border-color .15s,background .15s}
.tsh-menubtn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.tsh-menubtn:hover,.tsh-menubtn[aria-expanded="true"]{color:#fff;border-color:rgba(255,255,255,.4);background:rgba(255,255,255,.06)}
.tsh-menulist{position:absolute;right:0;top:calc(100% + 10px);z-index:60;min-width:220px;padding:6px;border-radius:16px;background:#0e0e14;border:1px solid rgba(178,107,255,.28);box-shadow:0 18px 50px rgba(0,0,0,.6)}
.tsh-menulist[hidden]{display:none}
.tsh-mi{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:0 14px;border-radius:12px;cursor:pointer;color:#e8eaf5;font:600 14px var(--font-sans,system-ui,sans-serif);white-space:nowrap}
.tsh-mi[hidden]{display:none}
.tsh-mi svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;color:#c3c7dc}
.tsh-mi:hover,.tsh-mi:focus-visible{background:rgba(255,255,255,.08);color:#fff}
.tsh-mi:focus-visible{outline:2px solid #22f2c2;outline-offset:-2px}
@media (max-width:640px){.tsh-menulist{position:fixed;left:12px;right:12px;top:calc(var(--tsh-h,64px) + 6px);min-width:0}}

/* ---------- home header (css/lobby.css) shares the same quiet treatment ---------- */
/* phones: five things share one row (logo, pill, chat, wallet, menu), so the round buttons are 40px with a 44px tap area */
@media (max-width:640px){
  html.tsh-on .tsh-right{gap:6px}
  html.tsh-on .tsh-top>.head{gap:6px!important;padding:0 10px!important}
  html.tsh-on .tsh-pill{gap:6px;padding-left:10px}
  html.tsh-on .tsh-seg button{padding:0 4px}
  html.tsh-on .tsh-right #liveBtn,html.tsh-on .tsh-right #liveBtn.livebtn,html.tsh-on .tsh-right #liveBtn.chipbtn,
  html:not(.tsh-real) .tsh-right #liveBtn,html:not(.tsh-real) .tsh-right #liveBtn.livebtn,html:not(.tsh-real) .tsh-right #liveBtn.chipbtn{width:40px;height:40px!important;min-width:0!important;min-height:0!important;position:relative}
  .tsh-menubtn{width:40px;height:40px;position:relative}
  .tsh-right #liveBtn::after,.tsh-menubtn::after{content:"";position:absolute;inset:-2px}
  .tsh-right>button:not(#liveBtn):not(#muteBtn){width:40px!important;height:40px!important;min-width:0!important}
}
@media (max-width:380px){
  html.tsh-on .tsh-pill{padding-left:8px;gap:4px}
  html.tsh-on .tsh-pill .bal .amt{font-size:11.5px!important}
  html.tsh-on .tsh-seg button{padding:0 2px;min-width:40px!important;font-size:8.5px;border-width:2px}
  html.tsh-on .tsh-seg button::after{inset:-4px -1px}
}
/* edge-to-edge (viewport-fit=cover): the fixed top bar pads itself clear of the notch, Dynamic Island and landscape sides */
.tsh-top{padding-top:env(safe-area-inset-top,0px);padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}
/* Real is shut until the game server reports ready: dimmed, and a click only explains why */
.tsh-seg button[aria-disabled="true"]{opacity:.5;cursor:not-allowed}
/* the Demo | Real choice, first row of each game's bet controls (owner: not in the top bar) */
.tsh-moderow{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin:0 0 10px}
.tsh-modesw{display:inline-flex;gap:2px;padding:3px;border-radius:999px;background:rgba(255,255,255,.05);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.tsh-modesw button{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;height:32px;min-width:64px;padding:0 14px;border-radius:999px;cursor:pointer;font-weight:600;font-size:13px;line-height:1;color:rgba(255,255,255,.72)}
.tsh-modesw button:hover{color:#fff}
.tsh-modesw button[aria-pressed="true"]{cursor:default}
.tsh-modesw button[data-m="practice"][aria-pressed="true"]{background:rgba(255,208,79,.16);color:#ffd04f;box-shadow:inset 0 0 0 1px rgba(255,208,79,.45)}
.tsh-modesw button[data-m="real"][aria-pressed="true"]{background:#22f2c2;color:#03130e}
.tsh-modesw button[aria-disabled="true"]{opacity:.5;cursor:not-allowed}
.tsh-modesw button:focus-visible{outline:2px solid #22f2c2;outline-offset:1px}
.tsh-moderow .tsh-note{max-width:none;white-space:normal;overflow:visible;font-size:12px;line-height:16px;font-weight:500;color:rgba(255,255,255,.62)}
.tsh-moderow .tsh-note:not([hidden]){display:inline}
@media (pointer:coarse),(max-width:640px){.tsh-modesw button{height:44px;min-width:72px}}
@media (prefers-reduced-motion:reduce){.tsh-modesw button{transition:none!important}}
/* Real mode: the pill shows the Tilt vault balance in place of the demo balance, styled the same way */
.tsh-pill{padding-right:16px}
.tsh-pill.show-vault .bal{display:none!important}
/* one Connect wallet in the bar: the pill offers it only where the top-bar button is hidden (phone tab-bar mode) */
html:not(.tbar-on) .tsh-vault-amount.tsh-va-connect{display:none!important}
@media (min-width:768px){.tsh-vault-amount.tsh-va-connect{display:none!important}.tsh-pill.show-vault:has(.tsh-va-connect){display:none!important}}   /* no empty balance pill before a wallet connects */
.tsh-vault-amount{all:unset;box-sizing:border-box;display:flex;align-items:baseline;gap:4px;cursor:pointer;white-space:nowrap;font:600 15px/1 var(--font-mono,ui-monospace,monospace);color:#fff;font-variant-numeric:tabular-nums}
.tsh-vault-amount .u-lbl{font:600 10px var(--font-mono,ui-monospace,monospace);color:var(--muted,#bdc1d8);letter-spacing:.04em}
.tsh-vault-amount:hover .tsh-va-n{color:#22f2c2}
.tsh-vault-amount:focus-visible{outline:2px solid #22f2c2;outline-offset:4px;border-radius:6px}
@media (max-width:640px){.tsh-pill{padding-right:12px}.tsh-vault-amount{font-size:14px}.tsh-vault-amount .u-lbl{display:none}}
