/* Golden Swish (Nov 2026). Stage, HUD, power meter, menus. Navy + gold New Tech look, glass panels over the live 3D court. */
.hp-titlerow{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:.2em 0 .5em}
.hp-h1{margin:0}
.hp-howlink{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:999px;border:2px solid #FFC72C;background:#021F54;color:#FFE08A;font-weight:800;cursor:pointer;min-height:44px}
.hp-howlink span{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#FFC72C;color:#021F54;font-weight:900}
.hp-stage{position:relative;width:100%;height:calc(100dvh - var(--hp-chrome,160px));min-height:0;max-height:none;border-radius:18px;overflow:hidden;background:#05070d;border:2px solid #C99A2E;box-shadow:0 14px 44px rgba(0,0,0,.5);touch-action:none;user-select:none;-webkit-user-select:none;color:#FFF4D6;font-family:inherit;padding:0!important}
.hp-stage.hp-full{border-radius:0;border:0;height:100%;width:100%}
.hp-fs-on .hp-stage{position:fixed;inset:0;z-index:9999;height:100vh;height:100dvh;width:100vw;border-radius:0;border:0;margin:0}
.hp-fs-on,html.hp-fs-on body{overflow:hidden;height:100%}
.hp-fs-on header.site,html.hp-fs-on footer.site,html.hp-fs-on .btt,html.hp-fs-on .skip,html.hp-fs-on [class*="vip-chat"]{display:none!important}
.hp-cv{position:absolute;inset:0;width:100%;height:100%;display:block;outline:none;touch-action:none;-webkit-touch-callout:none;cursor:grab}
.hp-stage[data-mode="play"] .hp-cv:active{cursor:grabbing}
.hp-stage>#g-snd{display:none!important}
.hp-vig{position:absolute;inset:0;pointer-events:none;background:radial-gradient(90% 80% at 50% 42%,rgba(0,0,0,0) 42%,rgba(0,0,0,.28) 75%,rgba(0,0,0,.55) 100%);z-index:1}
/* HUD */
.hp-hud{position:absolute;inset:0;pointer-events:none;z-index:2;display:none}
.hp-stage[data-mode="play"] .hp-hud{display:block}
.hp-score{position:absolute;top:max(12px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));display:flex;flex-direction:column;align-items:flex-start;padding:6px 14px 8px;border-radius:14px;background:linear-gradient(160deg,rgba(2,31,84,.86),rgba(2,12,34,.86));border:1.5px solid rgba(255,199,44,.85);box-shadow:0 6px 20px rgba(0,0,0,.35);min-width:92px;max-width:calc(50% - 78px);box-sizing:border-box}
.hp-score small{font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;color:#FFE08A;font-weight:800;padding-right:2.4em;max-width:100%;box-sizing:border-box;overflow:visible;text-overflow:unset;white-space:normal;line-height:1.15;overflow-wrap:anywhere}
.hp-score b{font-size:2.1rem;line-height:1;font-weight:900;color:#fff;font-variant-numeric:tabular-nums;text-shadow:0 2px 8px rgba(0,0,0,.5)}
.hp-score #hp-x2,.hp-x2{position:absolute;top:5px;right:6px;font-style:normal;font-size:.62rem;font-weight:900;letter-spacing:.04em;padding:1px 6px;border-radius:999px;background:#FFC72C;color:#021F54;line-height:1.2}
.hp-clock{position:absolute;top:max(12px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);display:flex;align-items:baseline;gap:4px;padding:6px 16px;border-radius:14px;background:rgba(6,6,8,.82);border:1.5px solid #ffb000;font-family:"Courier New",monospace}
.hp-clock b{font-size:2rem;font-weight:900;color:#ffb000;font-variant-numeric:tabular-nums;line-height:1;text-shadow:0 0 12px rgba(255,176,0,.45)}
.hp-clock small{color:#c9a65a;font-weight:700;font-size:.75rem}
.hp-clock.low b{color:#ff3b30;text-shadow:0 0 14px rgba(255,59,48,.6);animation:hp-pulse .5s ease-in-out infinite alternate}
.hp-clock.lives{border-color:#ff5a7a;font-family:inherit}.hp-clock.lives b{color:#ff5a7a;letter-spacing:.06em;font-size:1.55rem;text-shadow:none}
@keyframes hp-pulse{to{transform:scale(1.08)}}
.hp-streak{position:absolute;top:76px;left:12px;margin:0;padding:5px 12px;border-radius:999px;background:rgba(2,31,84,.82);border:1.5px solid #FFC72C;font-weight:900;font-size:.9rem;color:#FFE08A}
.hp-streak.fire{background:linear-gradient(90deg,#ff3d00,#ffb300);color:#fff;border-color:#ffe08a;box-shadow:0 0 18px rgba(255,90,0,.6)}
.hp-rack{position:absolute;left:50%;bottom:max(14px,env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:center;gap:7px;padding:6px 12px;border-radius:999px;background:rgba(2,12,34,.7);border:1px solid rgba(255,199,44,.5)}
.hp-rack i{width:16px;height:16px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ffb27a,#e05a12 55%,#7a2a06);box-shadow:inset 0 0 0 1px rgba(0,0,0,.4)}
.hp-rack i.m{background:radial-gradient(circle at 35% 30%,#fff1b8,#d4a017 50%,#0B2545 51%)}
.hp-rack i.u{opacity:.22;transform:scale(.8)}
.hp-rack small{margin-left:4px;font-weight:800;font-size:.75rem;color:#FFE08A}
.hp-wind{position:absolute;top:max(76px,calc(env(safe-area-inset-top) + 64px));right:max(12px,env(safe-area-inset-right));display:flex;align-items:center;gap:6px;padding:5px 12px;border-radius:999px;background:rgba(2,12,34,.78);border:1.5px solid #33e6ff;color:#bff6ff;font-size:.8rem;font-weight:800}
.hp-wind i{display:inline-block;font-style:normal;color:#33e6ff;transition:transform .4s}
.hp-meter{position:absolute;right:max(16px,6%);bottom:16%;width:20px;height:min(42%,300px);border-radius:12px;background:rgba(2,12,34,.75);border:2px solid rgba(255,255,255,.75);overflow:hidden;box-shadow:0 6px 20px rgba(0,0,0,.4)}
.hp-meter em{position:absolute;left:0;right:0;background:rgba(46,213,115,.55);border-top:2px solid #2ed573;border-bottom:2px solid #2ed573}
.hp-meter i{position:absolute;left:0;right:0;bottom:0;height:100%;transform-origin:bottom;transform:scaleY(0);background:linear-gradient(0deg,#FFC72C,#ff8a00 70%,#ff3d00);opacity:.92}
.hp-meter.good{border-color:#2ed573;box-shadow:0 0 18px rgba(46,213,115,.7)}
.hp-aim{position:absolute;left:50%;bottom:24%;width:4px;height:84px;margin-left:-2px;transform-origin:50% 100%;border-radius:4px;background:linear-gradient(0deg,rgba(255,255,255,0),rgba(255,255,255,.85));transform:translateX(-50%)}
.hp-hint{position:absolute;left:50%;bottom:58px;transform:translateX(-50%);margin:0;padding:7px 14px;border-radius:999px;background:rgba(2,31,84,.8);border:1.5px solid #FFC72C;color:#FFE08A;font-weight:800;font-size:.85rem;white-space:nowrap;max-width:calc(100% - 24px);overflow:hidden;text-overflow:ellipsis;animation:hp-bob 1.6s ease-in-out infinite}
@keyframes hp-bob{50%{transform:translate(-50%,-6px)}}
.hp-call{position:absolute;left:50%;top:30%;transform:translate(-50%,-50%) scale(.6);margin:0;z-index:3;pointer-events:none;text-align:center;opacity:0;transition:opacity .18s,transform .25s cubic-bezier(.2,1.6,.4,1)}
.hp-call.on{opacity:1;transform:translate(-50%,-50%) scale(1)}
.hp-call b{display:block;font-size:clamp(1.8rem,6vw,3.4rem);font-weight:900;font-style:italic;letter-spacing:.02em;color:#fff;-webkit-text-stroke:1.5px #021F54;text-shadow:0 4px 18px rgba(0,0,0,.55),0 0 24px rgba(255,199,44,.35);white-space:nowrap}
.hp-call small{display:block;font-size:1.4rem;font-weight:900;color:#FFC72C;text-shadow:0 2px 10px rgba(0,0,0,.6)}
.hp-call.swish b{color:#e9fbff;text-shadow:0 0 22px rgba(120,220,255,.85),0 4px 18px rgba(0,0,0,.5)}
.hp-call.gold b{color:#FFC72C}
.hp-call.fire b{color:#ffb300;text-shadow:0 0 26px rgba(255,61,0,.95),0 4px 18px rgba(0,0,0,.5)}
.hp-call.miss b{color:#d7dde6;font-size:clamp(1.3rem,4.5vw,2.2rem)}
.hp-call.small b{font-size:clamp(1.1rem,3.6vw,1.6rem);color:#FFE08A}
/* corner buttons */
.hp-corner{position:absolute;top:max(10px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));display:flex;gap:8px;z-index:8}
.hp-stage[data-mode="play"] .hp-corner{top:auto;bottom:max(12px,env(safe-area-inset-bottom));right:max(10px,env(safe-area-inset-right))}
.hp-ib{width:46px;height:46px;border-radius:14px;border:2px solid #FFC72C;background:rgba(2,15,46,.8);color:#FFE08A;font-size:1.2rem;cursor:pointer;display:grid;place-items:center}
.hp-ib.off{opacity:.5}.hp-ib.on{background:#C99A2E;color:#021F54}
.hp-ib:focus-visible{outline:3px solid #fff;outline-offset:2px}
.hp-stage[data-mode="menu"] .hp-corner,
.hp-stage[data-mode="result"] .hp-corner,
.hp-stage[data-mode="panel"] .hp-corner{display:none}

/* Pack panel content at full height; the panel scrolls. Do not shrink lists (flex overflow would hide rows under sticky CTAs). */
.hp-panel{scroll-padding-bottom:88px}
.hp-panel > *{flex-shrink:0}
.hp-res .hp-rlist{padding-bottom:6px}

/* sheets */
.hp-sheet{position:absolute;z-index:12}
.hp-sheet[hidden]{display:none!important}
.hp-panel{left:50%;top:50%;transform:translate(-50%,-50%);width:min(94%,680px);max-height:min(92%,calc(100dvh - var(--hp-chrome,80px) - 16px));overflow:auto;padding:16px;padding-bottom:max(16px,env(safe-area-inset-bottom));border-radius:20px;background:linear-gradient(170deg,rgba(9,40,104,.95),rgba(2,14,42,.96));border:2px solid #FFC72C;box-shadow:0 20px 60px rgba(0,0,0,.6);backdrop-filter:blur(6px);display:flex;flex-direction:column}
.hp-title{margin:0 0 .6em;font-size:1.45rem;font-weight:900;color:#FFC72C;text-align:center}
.hp-note{font-size:.85rem;opacity:.85;text-align:center;margin:.5em 0}
.hp-note a{color:#FFE08A}
.hp-ebtns{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:12px}
.hp-stage .btn{min-height:44px}
.hp-stage .g-overlay,.hp-stage #g-overlay.hp-pause{inset:0;left:0;top:0;right:0;bottom:0;transform:none;width:100%;height:100%;max-height:none;border-radius:0;border:0;box-shadow:none;backdrop-filter:none;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:rgba(2,8,22,.78);z-index:20;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:auto;-webkit-overflow-scrolling:touch}
.hp-stage .g-overlay[hidden],.hp-stage #g-overlay.hp-pause[hidden]{display:none!important}
.hp-pause .hp-title{flex:0 0 auto;margin:0 0 .5em}
.hp-pause .hp-pgrid{width:min(100%,320px);max-width:100%;gap:8px}
.hp-pause .nps-open{min-height:44px;padding:8px 12px;font-size:.95rem;width:100%;margin:0}
.hp-panel > .hp-ebtns:last-child,.hp-panel > .hp-ebtns.hp-sticky{position:sticky;bottom:0;z-index:2;margin-top:auto;padding-top:10px;background:linear-gradient(180deg,rgba(2,14,42,0),rgba(2,14,42,.96) 28%)}
.hp-pgrid{display:grid;grid-template-columns:1fr;gap:10px;max-width:320px;margin:0 auto}
/* home */
.hp-home{inset:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:10px;padding:16px 14px 18px;background:linear-gradient(180deg,rgba(2,8,22,.55) 0%,rgba(2,8,22,0) 28%,rgba(2,8,22,0) 42%,rgba(2,8,22,.82) 100%)}
.hp-top{position:absolute;top:12px;left:12px;right:200px;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.hp-lvl{display:flex;align-items:center;gap:8px;padding:5px 10px;border-radius:999px;background:rgba(2,12,34,.78);border:1.5px solid rgba(255,199,44,.8)}
.hp-lvb{font-weight:900;color:#FFC72C;font-size:.85rem}.hp-lvb b{font-size:1.05rem}
.hp-xp{width:90px;height:8px;border-radius:8px;background:rgba(255,255,255,.18);overflow:hidden}.hp-xp i{display:block;height:100%;width:0;background:linear-gradient(90deg,#FFC72C,#fff1b8);border-radius:8px}
.hp-lvl small{font-size:.72rem;opacity:.85}
.hp-wallet{display:flex;gap:8px}
.hp-pill{display:inline-flex;align-items:center;gap:5px;padding:6px 12px;border-radius:999px;background:rgba(2,12,34,.8);border:1.5px solid rgba(255,199,44,.85);font-weight:900;color:#fff;text-decoration:none;min-height:36px}
.hp-pill small{font-weight:700;color:#FFE08A;font-size:.75rem}
a.hp-dia{background:linear-gradient(135deg,#1b3f8f,#0B2545);border-color:#9fd0ff}a.hp-dia:hover{filter:brightness(1.15)}
.hp-brand{text-align:center;margin-bottom:auto;margin-top:58px;text-shadow:0 4px 24px rgba(0,0,0,.7)}
.hp-kicker{display:block;font-size:.8rem;letter-spacing:.3em;text-transform:uppercase;color:#FFE08A;font-weight:800}
.hp-brand b{display:block;font-size:clamp(2rem,7vw,3.6rem);font-weight:900;font-style:italic;letter-spacing:.03em;color:#fff;-webkit-text-stroke:1px #C99A2E;background:linear-gradient(180deg,#fff 0%,#ffe9a8 55%,#d4a017 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;filter:drop-shadow(0 4px 14px rgba(0,0,0,.6))}
.hp-modes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;width:min(100%,900px)}
.hp-mode{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;padding:12px 12px 12px;border-radius:16px;border:1.5px solid rgba(255,199,44,.7);background:linear-gradient(160deg,rgba(11,37,69,.92),rgba(2,12,34,.92));color:#fff;cursor:pointer;min-height:112px;transition:transform .15s,box-shadow .15s,border-color .15s;box-shadow:0 8px 22px rgba(0,0,0,.35)}
.hp-mode:hover,.hp-mode:focus-visible{transform:translateY(-3px);border-color:#FFC72C;box-shadow:0 12px 30px rgba(0,0,0,.45),0 0 0 2px rgba(255,199,44,.35)}
.hp-mode b{font-size:1.05rem;font-weight:900;color:#FFC72C}
.hp-mode small{font-size:.78rem;line-height:1.3;opacity:.9}
.hp-mode em{position:absolute;top:10px;right:10px;font-style:normal;font-size:.7rem;font-weight:900;padding:2px 8px;border-radius:999px;background:#FFC72C;color:#021F54}
.hp-mic{font-size:1.5rem;line-height:1;margin-bottom:4px}
.hp-m-shootout{background:linear-gradient(160deg,rgba(201,154,46,.95),rgba(110,72,8,.95));border-color:#ffe08a}.hp-m-shootout b{color:#fff}.hp-m-shootout em{background:#021F54;color:#FFE08A}
.hp-m-daily.done{opacity:.7}.hp-m-daily.done em{background:#2ed573;color:#04210f}
.hp-m3{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:center;font-size:.78rem;font-weight:800;color:#FFE08A}
.hp-m3 button{padding:4px 10px;border-radius:999px;border:1px solid rgba(255,199,44,.6);background:rgba(2,12,34,.75);color:#fff;font-weight:800;font-size:.75rem;cursor:pointer;min-height:30px}
.hp-m3 button[aria-pressed="true"]{background:#FFC72C;color:#021F54}
.hp-hbtns{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
/* scenes + locker */
.hp-slist{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.hp-scard{display:flex;flex-direction:column;gap:4px;padding:8px;border-radius:14px;background:rgba(2,12,34,.6);border:1.5px solid rgba(255,199,44,.4)}
.hp-scard.on{border-color:#FFC72C;box-shadow:0 0 0 2px rgba(255,199,44,.35)}
.hp-scard img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:10px;background:#0b1424}
.hp-scard.locked img{filter:grayscale(.85) brightness(.55)}
.hp-scard b{color:#FFC72C}.hp-scard small{font-size:.75rem;opacity:.85;flex:1}
.hp-phead{display:flex;align-items:center;gap:8px;justify-content:center;flex-wrap:wrap;margin-bottom:8px}.hp-phead .hp-title{margin:0 8px 0 0}
.hp-tabs{display:flex;gap:6px;justify-content:center;margin-bottom:10px;flex-wrap:wrap}
.hp-ltab{padding:7px 14px;border-radius:999px;border:1.5px solid rgba(255,199,44,.6);background:rgba(2,12,34,.7);color:#fff;font-weight:800;cursor:pointer;min-height:40px}
.hp-ltab.on{background:#FFC72C;color:#021F54}
.hp-llist{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
.hp-item{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 8px;border-radius:14px;background:rgba(2,12,34,.6);border:1.5px solid rgba(255,199,44,.35);text-align:center}
.hp-item.on{border-color:#2ed573;box-shadow:0 0 0 2px rgba(46,213,115,.35)}
.hp-item canvas{width:78px;height:78px;border-radius:12px}
.hp-item b{font-size:.85rem}
.hp-item .btn{width:100%;padding:6px 8px;font-size:.85rem}
.hp-conf{margin:10px 0;padding:12px;border-radius:14px;background:rgba(2,12,34,.85);border:1.5px solid #FFC72C;text-align:center}
.hp-conf p{margin:.3em 0;font-weight:800}
.hp-lmsg{min-height:1.2em;text-align:center;font-weight:800;color:#FFE08A;margin:.6em 0 0}
.hp-steps{margin:0 0 .5em;padding-left:1.3em;line-height:1.55}
.hp-qrow{display:flex;align-items:center;justify-content:center;gap:8px;font-weight:800;margin-top:.6em}
.hp-qrow select{min-height:40px;border-radius:10px;padding:4px 8px}
/* results */
.hp-rpts{text-align:center;margin:0 0 .4em}.hp-rpts b{font-size:3.2rem;font-weight:900;color:#fff;line-height:1}.hp-rpts span{font-weight:800;color:#FFE08A}
.hp-rlist{list-style:none;margin:0 auto;padding:0;max-width:380px}
.hp-rlist li{display:flex;justify-content:space-between;gap:12px;padding:7px 4px;border-bottom:1px solid rgba(255,199,44,.18)}
.hp-rlist b{color:#FFC72C}
.hp-toast{position:absolute;left:50%;top:22%;transform:translateX(-50%);z-index:7;margin:0;padding:.5em 1.1em;border-radius:14px;background:rgba(2,15,46,.9);border:2px solid #FFC72C;color:#FFE08A;font-weight:900;font-size:1.05rem;text-align:center;pointer-events:none;max-width:90%}
.hp-bar{margin-top:12px}
/* phone */
/* locker coins vs vault gold */
.hp-pill small{white-space:nowrap}
.hp-bar.hp-idle #g-new,.hp-bar.hp-idle #g-pause{display:none}
/* page chrome: stage fills the leftover viewport; hide back-to-top so it cannot cover #hp-fs */
html.hp-page .btt,html.hp-focus .btt,html.hp-fs-on .btt{display:none!important}
html.hp-page{--hp-chrome:160px}
/* Focus / play layout: hide site chrome, pin the stage to the viewport */
html.hp-focus,html.hp-focus body{overflow:hidden;height:100%;overscroll-behavior:none}
html.hp-focus header.site,html.hp-focus .games-nav,html.hp-focus .hp-titlerow,html.hp-focus footer.site,html.hp-focus .skip,html.hp-focus [class*="vip-chat"],html.hp-focus .howto,html.hp-focus .g-about,html.hp-focus .g-mini,html.hp-focus .g-hero,html.hp-focus .hp-bar,html.hp-focus .g-vs,html.hp-focus .g-msg,html.hp-focus #g-result,html.hp-focus .games-note,html.hp-focus .support{display:none!important}
html.hp-focus main,.hp-page.hp-focus main,.hp-page.hp-focus main .wrap{padding:0;margin:0;max-width:none}
html.hp-focus .hp-stage{position:fixed;inset:0;z-index:9000;height:100%;height:100dvh;width:100%;width:100vw;min-height:0;max-height:none;border-radius:0;border:0;margin:0;box-shadow:none}
@media (max-width:760px){
  .hp-stage{height:calc(100dvh - var(--hp-chrome,120px));min-height:0;max-height:none;border-radius:14px}
  .hp-modes{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
  .hp-mode{min-height:72px;padding:8px 10px}
  .hp-mode small{font-size:.7rem}
  .hp-top{position:relative;top:auto;left:auto;right:auto;width:100%;justify-content:center;order:-1;margin:0}
  .hp-wallet{flex-wrap:nowrap}
  .hp-brand{margin-top:4px;margin-bottom:4px}
  .hp-brand b{font-size:clamp(1.45rem,7vw,2.4rem)}
  .hp-home{padding:8px 10px 12px;gap:8px;justify-content:flex-end}
  .hp-slist{grid-template-columns:1fr}
  .hp-scard{flex-direction:row;flex-wrap:wrap;align-items:center}.hp-scard img{width:44%}.hp-scard b,.hp-scard small{width:50%}
  .hp-score b{font-size:1.5rem}.hp-score small{font-size:.62rem;letter-spacing:.04em}.hp-clock b{font-size:1.45rem}
  .hp-meter{right:max(10px,env(safe-area-inset-right));bottom:22%}
  .hp-m3{font-size:.7rem}
  .hp-stage[data-mode="play"] .hp-rack{left:max(10px,env(safe-area-inset-left));right:auto;transform:none;max-width:calc(100% - 168px);bottom:max(14px,env(safe-area-inset-bottom))}
  .hp-hint{bottom:max(64px,calc(env(safe-area-inset-bottom) + 50px));font-size:.78rem}
}
@media (max-width:400px){
  .hp-ib{width:38px;height:38px}
  .hp-stage[data-mode="play"] .hp-corner{gap:6px}
  .hp-stage[data-mode="play"] .hp-rack{max-width:calc(100% - 152px)}
}
/* 360×640 home: pack so Shootout / 3-Point are not clipped under the site header. */
@media (max-width:400px) and (max-height:700px){
  .hp-home{justify-content:flex-start;overflow-y:auto;overflow-x:hidden;gap:4px;padding:4px 8px 6px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  .hp-brand{margin-top:0;margin-bottom:0}
  .hp-kicker{font-size:.6rem;letter-spacing:.14em}
  .hp-brand b{font-size:clamp(1.05rem,5.5vw,1.45rem)}
  .hp-mode{min-height:0;padding:4px 7px;gap:0}
  .hp-mode b{font-size:.92rem}
  .hp-mode small{font-size:.6rem;line-height:1.15;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}
  .hp-mic{font-size:1rem;margin-bottom:0}
  .hp-m3{font-size:.62rem;gap:3px}
  .hp-m3 button{min-height:26px;padding:2px 7px;font-size:.68rem}
  .hp-hbtns{gap:5px;flex-wrap:nowrap;width:100%}
  .hp-hbtns .btn{min-height:34px;padding:3px 8px;font-size:.8rem;flex:1 1 0;min-width:0}
  .hp-top{margin:0;gap:4px}
  .hp-lvl,.hp-pill{min-height:30px;padding:3px 8px}
}
/* Short viewports (phone landscape, short desktop windows): compact / hide chrome, court on screen at scroll 0 */
@media (max-height:500px){
  html.hp-page .games-nav,html.hp-page .hp-titlerow,html.hp-page footer.site,html.hp-page .howto,html.hp-page .g-about,html.hp-page .g-mini,html.hp-page .g-hero,html.hp-page .g-vs,html.hp-page .g-msg{display:none!important}
  html.hp-page header.site .bar{flex-wrap:nowrap;padding-top:2px;padding-bottom:2px}
  .hp-stage{height:calc(100dvh - var(--hp-chrome,48px));min-height:0;max-height:none;border-radius:0}
  .hp-modes{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .hp-mode{min-height:56px;padding:6px 8px}
  .hp-brand{margin-top:0;margin-bottom:0}
  .hp-brand b{font-size:clamp(1.1rem,5vh,1.8rem)}
  .hp-home{padding:6px 8px;gap:6px}
  .hp-score{padding:4px 10px 5px}.hp-score b{font-size:1.25rem}.hp-score small{font-size:.58rem;letter-spacing:.03em}
  .hp-clock b{font-size:1.2rem}
  .hp-pause .hp-title{font-size:1.1rem;margin:0 0 .25em}
  .hp-pgrid{gap:6px}
  .hp-stage[data-mode="play"] .hp-rack{left:max(8px,env(safe-area-inset-left));transform:none;max-width:calc(100% - 160px)}
  .hp-ib{width:40px;height:40px}
  .hp-panel{padding:8px 12px;max-height:min(100%,calc(100dvh - var(--hp-chrome,48px) - 8px))}
  html.hp-focus .hp-panel,html.hp-fs-on .hp-panel{max-height:calc(100dvh - 8px)}
  .hp-title{font-size:1.1rem;margin:0 0 .2em}
  .hp-rpts{margin:0 0 .15em}.hp-rpts b{font-size:1.7rem}
  .hp-rlist li{padding:2px 4px;font-size:.88rem}
  .hp-panel > .hp-ebtns:last-child{margin-top:4px;padding-top:4px}
  #hp-how > .hp-ebtns:last-child{position:static!important;margin-top:14px!important;padding-top:0;background:none}
  .hp-stage .btn.big{min-height:38px;padding:5px 12px}
  .hp-steps{line-height:1.3;margin:0 0 .15em;font-size:.88rem}
  .hp-note{margin:.2em 0;font-size:.75rem}
  .hp-qrow{margin-top:.2em}
}

/* Site main padding was uncounted by --hp-chrome, so the menu stage sat ~24-42px below the fold. */
html.hp-page main{padding-top:8px;padding-bottom:8px}
@media (max-width:760px){
  html.hp-page main{padding-top:4px;padding-bottom:4px}
}
@media (max-height:500px){
  html.hp-page main,html.hp-page main>.wrap{padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0}
}


@media (prefers-reduced-motion:reduce){.hp-hint,.hp-clock.low b{animation:none}.hp-call{transition:none}.hp-mode{transition:none}}

/* Minimal page chrome so the court fills the leftover viewport (score + ball on one screen).
   The title row stays hidden (the home sheet already has the wordmark). .games-nav was
   display:none, which hid the Buy Diamonds pill even though it is in the DOM. Show the
   nav so the existing .dia-pill (store.html#sx-dia) is on screen and clickable; keep
   it compact on phones. Still hidden in focus/play and on short landscape. */
html.hp-page .hp-titlerow{display:none!important}
html.hp-page .games-nav{display:flex!important;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 6px;min-height:0}
html.hp-page .games-nav .dia-pill{display:inline-flex!important;visibility:visible;position:relative;z-index:2;min-height:40px;margin-left:auto}
@media (max-width:760px){
  html.hp-page .games-nav{margin:0 0 4px;gap:4px}
  html.hp-page .games-nav > a:not(.dia-pill){display:none!important}
  html.hp-page .games-nav .dia-pill{min-height:32px;padding:2px 10px;font-size:.9rem}
}
@media (max-height:500px){
  html.hp-page .games-nav{display:none!important}
}
html.hp-page header.site .wrap{padding-top:4px;padding-bottom:4px}
html.hp-page header.site .logo-svg{width:180px;height:40px}
@media (max-width:760px){
  html.hp-page header.site .logo-svg{width:140px;height:32px}
  html.hp-page .textsize{display:none}
}
@media (max-height:500px){
  html.hp-page .textsize{display:none!important}
  html.hp-page header.site nav.main{display:none!important}
  html.hp-page header.site .menu-btn{display:inline-flex!important}
  html.hp-page header.site .logo-svg{width:110px;height:26px}
  html.hp-page header.site .wrap{padding-top:2px;padding-bottom:2px}
  html.hp-page header.site .bar{flex-wrap:nowrap;align-items:center}
}

/* Mid-height narrow phones (360×640): pack results so Ended early isn't under the sticky CTAs. */
@media (max-height:700px) and (max-width:500px){
  .hp-res .hp-title{margin:0 0 .35em;font-size:1.3rem}
  .hp-res .hp-rpts{margin:0 0 .2em}
  .hp-res .hp-rpts b{font-size:2.3rem}
  .hp-res .hp-rlist li{padding:4px}
  .hp-res .hp-ebtns{margin-top:8px;gap:8px}
  .hp-res .btn.big{min-height:44px;padding:8px 14px}
  /* How-to: pack so all 4 steps plus Got it fit; don't let the sticky CTA cover step 4. */
  #hp-how{padding:10px 12px}
  #hp-how .hp-title{margin:0 0 .28em;font-size:1.15rem}
  #hp-how .hp-steps{line-height:1.28;margin:0 0 .12em;font-size:.86rem;padding-left:1.15em}
  #hp-how .hp-note{margin:.15em 0;font-size:.72rem;line-height:1.3}
  #hp-how .hp-qrow{margin-top:.15em}
  #hp-how > .hp-ebtns:last-child{position:static;margin-top:12px;padding-top:4px;background:none}
}
@media (max-width:500px){
  .hp-qrow{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:6px;width:100%;max-width:100%;text-align:left;margin-bottom:4px}
  .hp-qrow select{display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box;font-size:.92rem;padding:6px 2.2rem 6px 10px}
  /* Don't let sticky Got it sit on the Graphics select (390×844 is taller than the 700px compact query). */
  #hp-how > .hp-ebtns:last-child{position:static!important;margin-top:14px!important;padding-top:0;background:none}
}
