/* Diamond Slash (Nov 2026): 3D gem-slicing game. Navy glass + bright gold, crisp jewel accents, big touch targets. */
.ds-titlerow{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap;margin-bottom:.4rem}.ds-h1{margin:0}
.ds-howb{display:inline-flex;align-items:center;gap:.45em;padding:.45em .9em;border-radius:999px;border:2px solid #C99A2E;background:#fff8e6;color:#0B2545;font-weight:800;cursor:pointer}
.ds-q{display:inline-grid;place-items:center;width:1.4em;height:1.4em;border-radius:50%;background:#0B2545;color:#FFC72C;font-weight:900}
.ds-stage{position:relative;width:100%;height:calc(100dvh - var(--ds-chrome,72px));min-height:0;max-height:none;border-radius:20px;overflow:hidden;background:#05060f;border:2px solid #C99A2E;box-shadow:0 14px 44px rgba(0,0,0,.45),inset 0 0 0 1px rgba(255,231,160,.25);touch-action:none;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;color:#FFF4D6;font-family:inherit;contain:layout paint}
.ds-stage.ds-full{border-radius:0;border:0;height:100%;width:100%}
html.ds-fs-on .ds-stage{position:fixed;inset:0;z-index:9999;height:100vh;height:100dvh;width:100vw;border-radius:0;border:0;margin:0}
html.ds-fs-on,html.ds-fs-on body{overflow:hidden;height:100%}
html.ds-fs-on header.site,html.ds-fs-on footer.site,html.ds-fs-on .btt,html.ds-fs-on .skip,html.ds-fs-on [class*="vip-chat"]{display:none!important}
.ds-cv{position:absolute;inset:0;width:100%;height:100%;display:block;outline:none;touch-action:none;-webkit-touch-callout:none;cursor:crosshair}
.ds-vign{position:absolute;inset:0;pointer-events:none;background:radial-gradient(120% 95% at 50% 45%,transparent 55%,rgba(0,0,0,.42) 100%);transition:box-shadow .4s}
.ds-stage.ds-frosty .ds-vign{box-shadow:inset 0 0 120px 30px rgba(120,210,255,.45)}
.ds-flash{position:absolute;inset:0;pointer-events:none;opacity:0}.ds-flash.bomb{background:radial-gradient(circle at 50% 50%,#fff 0%,#ffd2a0 30%,#ff3a1a 75%)}.ds-flash.miss{box-shadow:inset 0 0 90px 20px rgba(255,40,60,.75)}
/* HUD */
.ds-hud{position:absolute;inset:0;pointer-events:none;display:none}
.ds-stage[data-mode="play"] .ds-hud{display:block}
.ds-score{position:absolute;top:max(12px,env(safe-area-inset-top));left:max(16px,env(safe-area-inset-left));line-height:1;text-shadow:0 3px 0 #6a4600,0 6px 20px rgba(0,0,0,.65)}
.ds-score b{display:block;font-size:clamp(2.6rem,8vw,4rem);font-weight:900;letter-spacing:.01em;background:linear-gradient(180deg,#fff6cf 0%,#FFD54F 45%,#e8a514 100%);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 3px 0 #6a4600) drop-shadow(0 6px 14px rgba(0,0,0,.6));text-shadow:none}
.ds-score small{display:block;margin-top:.3em;font-weight:800;font-size:.95rem;color:#ffe9a8;text-shadow:0 2px 6px #000}
.ds-lives{position:absolute;top:max(16px,env(safe-area-inset-top));right:max(190px,calc(env(safe-area-inset-right) + 180px));display:flex;gap:8px}
.ds-lives i,.ds-lives em{display:block;width:30px;height:30px;clip-path:polygon(25% 6%,75% 6%,100% 38%,50% 100%,0 38%);background:linear-gradient(160deg,#ffffff,#8fd6ff 45%,#2f74d0);box-shadow:0 0 12px #7fd0ff;transition:transform .25s,filter .25s;filter:drop-shadow(0 2px 4px rgba(0,0,0,.6))}
.ds-lives i.x,.ds-lives em.x{background:linear-gradient(160deg,#ff9aa5,#e0123a 55%,#5a0012);transform:scale(.82) rotate(-12deg);filter:grayscale(.2) brightness(.8)}
.ds-timer{position:absolute;top:max(12px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);padding:.2em .7em;border-radius:14px;background:rgba(2,10,35,.6);border:2px solid rgba(255,199,44,.75);font-weight:900;font-size:1.9rem;color:#fff3c4;font-variant-numeric:tabular-nums;box-shadow:0 4px 16px rgba(0,0,0,.45)}
.ds-timer.low{color:#ff6b7a;border-color:#ff5a6e;animation:dspulse .5s ease-in-out infinite alternate}
@keyframes dspulse{to{transform:translateX(-50%) scale(1.08)}}
.ds-pows{position:absolute;top:84px;left:16px;display:flex;flex-direction:column;gap:6px}
.ds-pw{position:relative;display:inline-flex;align-items:center;gap:.35em;padding:.25em .7em;border-radius:999px;font-weight:900;font-size:1.05rem;background:rgba(2,10,35,.7);border:2px solid currentColor;overflow:hidden;min-width:88px}
.ds-pw i{position:absolute;left:0;bottom:0;height:3px;background:currentColor;width:100%}
.ds-pw-double{color:#FFD54F}.ds-pw-frost{color:#8fe3ff}.ds-pw-frenzy{color:#ff9cf2}.ds-pw-shield{color:#9dffb8;min-width:0}
.ds-banner{position:absolute;left:50%;top:38%;margin:0;transform:translate(-50%,-50%);font-size:clamp(2rem,7.5vw,4.4rem);font-weight:900;letter-spacing:.04em;white-space:nowrap;opacity:0;pointer-events:none;color:#fff6d8;text-shadow:0 4px 0 #7a5200,0 0 28px rgba(255,199,44,.75),0 10px 30px rgba(0,0,0,.6)}
.ds-banner.ds-bcrit{color:#fff;text-shadow:0 4px 0 #a01020,0 0 30px rgba(255,80,90,.9)}.ds-banner.ds-bcombo{color:#FFE27A}.ds-banner.ds-bfrost{color:#d8f6ff;text-shadow:0 4px 0 #1d5f94,0 0 30px rgba(120,210,255,.95)}
.ds-banner.ds-bfrenzy{background:linear-gradient(90deg,#ff6a8a,#ffd36a,#7affb0,#6ad6ff,#c88aff);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none;filter:drop-shadow(0 4px 0 #3a1a5a)}
.ds-banner.ds-bdbl{color:#FFD54F}.ds-banner.ds-bbad,.ds-banner.ds-bover{color:#ffd0d4;text-shadow:0 4px 0 #7a0010,0 0 30px rgba(255,40,60,.85)}.ds-banner.ds-bgood{color:#c8ffd8;text-shadow:0 4px 0 #0a5a2a,0 0 26px rgba(80,255,140,.8)}.ds-banner.ds-bmode{font-size:clamp(1.8rem,6vw,3.2rem)}
.ds-pops{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.ds-pop{position:absolute;left:0;top:0;opacity:0;transform:translate(-50%,-50%);font-weight:900;font-size:1.6rem;color:#fff6cf;text-shadow:0 2px 0 #6a4600,0 0 12px rgba(255,199,44,.9);white-space:nowrap;will-change:transform,opacity}
.ds-pop.ds-pcrit{font-size:2.2rem;color:#fff;text-shadow:0 3px 0 #a01020,0 0 18px rgba(255,80,90,1)}.ds-pop.ds-pcombo{font-size:2.4rem;color:#FFE27A}.ds-pop.ds-pdbl{color:#FFD54F;font-size:1.9rem}
.ds-pop.ds-pbad{color:#ff8a95;font-size:2rem;text-shadow:0 2px 0 #5a0010}.ds-pop.ds-pmiss{color:#ff4a5e;font-size:2.6rem;text-shadow:0 0 14px #ff2040}
/* corner */
.ds-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:6;align-items:center}
.ds-ib{width:46px;height:46px;border-radius:14px;border:2px solid #FFC72C;background:rgba(2,15,46,.72);color:#FFE08A;font-size:1.25rem;display:grid;place-items:center;cursor:pointer;box-shadow:0 3px 12px rgba(0,0,0,.4)}
.ds-ib.off{opacity:.6}.ds-ib.on{background:#FFC72C;color:#021F54}.ds-pz{font-weight:900;letter-spacing:-.05em}
.ds-dia{display:inline-flex;align-items:center;gap:.3em;height:46px;padding:0 .5em 0 .7em;border-radius:14px;border:2px solid #7fd0ff;background:linear-gradient(180deg,rgba(10,40,100,.85),rgba(2,15,46,.85));color:#e8f7ff;font-weight:900;font-size:1.1rem;text-decoration:none;box-shadow:0 0 14px rgba(127,208,255,.35)}
.ds-dia small{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#FFC72C;color:#021F54;font-size:1rem;font-weight:900}
.ds-dia:hover,.ds-dia:focus-visible{border-color:#fff;box-shadow:0 0 18px rgba(127,208,255,.7)}
.ds-stage[data-mode="play"] .ds-dia{display:none}
/* sheets */
.ds-sheet{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));overflow:hidden;overscroll-behavior:contain;min-height:0}
.ds-sheet[hidden]{display:none}
.ds-panel{background:radial-gradient(120% 80% at 50% 0%,rgba(11,37,90,.92),rgba(2,8,26,.94));backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.ds-title{margin:0 0 .5rem;font-size:clamp(1.7rem,5vw,2.4rem);font-weight:900;color:#FFD54F;text-shadow:0 3px 0 #6a4600,0 8px 22px rgba(0,0,0,.6);text-align:center}
.ds-note{color:#cfe0ff;font-size:.95rem;text-align:center;max-width:560px}
.ds-note a{color:#FFD54F}
.ds-ebtns{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:12px}
.ds-stage .btn{min-height:48px}
.ds-home{pointer-events:none;justify-content:center;gap:12px;background:linear-gradient(180deg,rgba(2,6,20,.15),rgba(2,6,20,.0) 40%,rgba(2,6,20,.55))}
.ds-home>*{pointer-events:auto}
.ds-logo{display:flex;flex-direction:column;align-items:center;gap:2px;pointer-events:none;animation:dsin .9s cubic-bezier(.2,.9,.2,1) both}
.ds-gemlogo{filter:drop-shadow(0 0 18px rgba(150,210,255,.8)) drop-shadow(0 6px 10px rgba(0,0,0,.5));animation:dsfloat 3.6s ease-in-out infinite}
.ds-word{margin:0;display:flex;flex-direction:column;align-items:center;line-height:.9;text-transform:uppercase}
.ds-word span{font-size:clamp(1.15rem,3.6vw,1.6rem);letter-spacing:.42em;font-weight:800;color:#dff3ff;margin-right:-.42em;text-shadow:0 0 14px rgba(127,208,255,.9),0 2px 0 #0a2766}
.ds-word b{font-size:clamp(3.2rem,12vw,5.6rem);font-weight:900;letter-spacing:.04em;font-style:italic;background:linear-gradient(180deg,#fffbe6 0%,#FFE27A 38%,#f0a818 62%,#b87400 100%);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 4px 0 #5a3a00) drop-shadow(0 12px 22px rgba(0,0,0,.7))}
@keyframes dsin{from{opacity:0;transform:translateY(-14px) scale(.94)}}
@keyframes dsfloat{50%{transform:translateY(-6px) rotate(-2deg)}}
.ds-player,.ds-rxp{display:flex;align-items:center;gap:10px;padding:8px 14px;border-radius:16px;background:rgba(2,10,35,.72);border:1px solid rgba(255,199,44,.55);min-width:min(360px,92%);box-shadow:0 6px 20px rgba(0,0,0,.35)}
.ds-lv{flex:none;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;font-weight:900;font-size:1.25rem;color:#021F54;background:radial-gradient(circle at 35% 30%,#fff3b0,#FFC72C 55%,#b07a00);box-shadow:0 0 0 3px #021F54,0 0 0 5px #FFC72C}
.ds-pinfo{flex:1;display:flex;flex-direction:column;gap:3px;min-width:0}.ds-pinfo b{color:#fff3c4}.ds-pinfo small{color:#cfe0ff;font-weight:700}
.ds-xpbar{display:block;height:10px;border-radius:8px;background:#061537;border:1px solid #C99A2E;overflow:hidden}.ds-xpbar i{display:block;height:100%;width:0;border-radius:8px;background:linear-gradient(90deg,#7fd0ff,#ffffff 50%,#FFD54F);transition:width 1.2s cubic-bezier(.2,.8,.2,1)}
.ds-modes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;width:min(820px,100%)}
.ds-mode{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;padding:14px 8px 12px;border-radius:18px;border:2px solid rgba(255,199,44,.8);background:linear-gradient(180deg,rgba(18,52,120,.92),rgba(4,16,48,.94));color:#fff3c4;cursor:pointer;font:inherit;box-shadow:0 6px 0 #5a3c00,0 12px 24px rgba(0,0,0,.45);transition:transform .12s,box-shadow .12s,border-color .2s}
.ds-mode:hover,.ds-mode:focus-visible{transform:translateY(-3px);border-color:#fff;box-shadow:0 9px 0 #5a3c00,0 16px 30px rgba(0,0,0,.5),0 0 22px rgba(255,213,79,.45)}
.ds-mode:active{transform:translateY(3px);box-shadow:0 2px 0 #5a3c00,0 6px 14px rgba(0,0,0,.4)}
.ds-mode.sel{border-color:#fff;background:linear-gradient(180deg,rgba(40,90,180,.95),rgba(8,30,80,.95))}
.ds-mic{font-size:1.8rem;line-height:1.1}.ds-mode b{font-size:1.2rem;font-weight:900}.ds-mode small{color:#cfe0ff;font-size:.82rem;text-align:center}.ds-mode em{font-style:normal;margin-top:4px;font-size:.85rem;font-weight:800;color:#FFD54F}
.ds-daily{border-color:#ff9cf2;background:linear-gradient(180deg,rgba(90,30,120,.92),rgba(30,8,60,.94))}
.ds-hbtns{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.ds-hint{margin:0;color:#e8f2ff;font-weight:700;font-size:.95rem;text-shadow:0 2px 6px #000;opacity:.85;pointer-events:none!important;animation:dsfloat 3s ease-in-out infinite}
/* collection */
.ds-coll{justify-content:flex-start}
.ds-phead{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}
.ds-pill{display:inline-flex;align-items:center;gap:.35em;padding:.35em .8em;border-radius:999px;background:rgba(2,15,46,.78);border:2px solid #7fd0ff;font-weight:800;color:#e8f7ff;text-decoration:none}.ds-pill small{color:#FFD54F}
.ds-tabs{display:flex;gap:6px;margin:6px 0 10px;background:rgba(2,10,35,.6);padding:4px;border-radius:14px}
.ds-tab{min-height:44px;padding:0 16px;border-radius:10px;border:0;background:transparent;color:#cfe0ff;font:inherit;font-weight:800;cursor:pointer}.ds-tab.on{background:#FFC72C;color:#021F54}
.ds-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;width:min(900px,100%)}
.ds-card{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px;border-radius:16px;background:rgba(6,22,60,.85);border:2px solid rgba(201,154,46,.6);text-align:center}
.ds-card.on{border-color:#7fffb0;box-shadow:0 0 16px rgba(127,255,176,.35)}.ds-card.locked .ds-cpv{filter:saturate(.75) brightness(.85)}
.ds-cpv{width:100%;height:auto;aspect-ratio:2/1;object-fit:cover;border-radius:10px;background:#060c22}
.ds-cname{color:#fff3c4;font-size:1.05rem}.ds-cnote{color:#cfe0ff;font-size:.82rem;min-height:2.2em}.ds-cown{color:#FFD54F;font-weight:800}
.ds-cbtn{min-height:44px!important;padding:.3em 1em}.ds-cbuy{background:linear-gradient(180deg,#9fe0ff,#3d8bff);color:#021F54;border-color:#cfefff}
.ds-ceq{display:inline-block;padding:.5em 1em;border-radius:999px;background:#0a5a2a;color:#c8ffd8;font-weight:900}.ds-clock{display:inline-block;padding:.5em 1em;border-radius:999px;background:#2a2f45;color:#cfd6ea;font-weight:800}
.ds-bic{font-size:2rem}.ds-brow{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.ds-lowd{grid-column:1/-1;display:block;padding:.8em 1em;border-radius:14px;background:linear-gradient(90deg,#0d3b8a,#3d8bff);color:#fff;font-weight:900;text-decoration:none;text-align:center;border:2px solid #9fe0ff}
.ds-conf{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;background:rgba(2,8,26,.9)}.ds-conf[hidden]{display:none}
.ds-conft{font-size:1.35rem;font-weight:900;color:#fff3c4;text-align:center;margin:0}
.ds-getd{background:linear-gradient(180deg,#9fe0ff,#3d8bff);color:#021F54!important;text-decoration:none}
.ds-smsg{min-height:1.3em;margin:.6em 0 0;color:#FFE08A;font-weight:800;text-align:center}.ds-sfine{font-size:.8rem;opacity:.85}
/* results */
.ds-rmode{margin:0;color:#cfe0ff;font-weight:800}
.ds-rscore{margin:.1em 0 0;line-height:1}.ds-rscore b{font-size:clamp(3.4rem,13vw,5.4rem);font-weight:900;background:linear-gradient(180deg,#fff6cf,#FFD54F 50%,#e8a514);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 4px 0 #6a4600)}
.ds-rbest{margin:.2em 0 .6em;color:#ffe9a8;font-weight:800}
.ds-rlist{list-style:none;margin:0 0 10px;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:min(480px,100%)}
.ds-rlist li{display:flex;flex-direction:column;align-items:center;padding:8px;border-radius:12px;background:rgba(2,10,35,.7);border:1px solid rgba(255,199,44,.4)}.ds-rlist span{color:#cfe0ff;font-size:.8rem}.ds-rlist b{color:#fff3c4;font-size:1.2rem}
.ds-unl{margin:.6em 0 0;padding:.5em 1em;border-radius:12px;background:rgba(10,90,42,.8);color:#c8ffd8;font-weight:900;text-align:center}
.ds-steps{max-width:620px;color:#eef4ff;line-height:1.5}.ds-steps li{margin:.35em 0}
.ds-pgrid{display:grid;grid-template-columns:1fr 1fr;max-width:420px}.ds-pgrid .big{grid-column:1/-1}
.ds-toast{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);margin:0;padding:.6em 1.1em;border-radius:14px;background:rgba(2,15,46,.9);border:2px solid #FFC72C;color:#FFE08A;font-weight:800;z-index:8;text-align:center;max-width:90%}
.ds-bar{margin-top:12px}
@media (max-width:760px){
  .ds-stage{height:calc(100dvh - var(--ds-chrome,56px));min-height:0;max-height:none;border-radius:16px}
  .ds-modes{grid-template-columns:1fr 1fr;gap:8px}
  .ds-mode{padding:8px 6px}.ds-mic{font-size:1.25rem}.ds-mode small{font-size:.72rem}
  .ds-lives{right:auto;left:max(16px,env(safe-area-inset-left));top:max(96px,calc(env(safe-area-inset-top) + 84px))}.ds-pows{top:136px}
  .ds-score b{font-size:2.4rem}
  .ds-timer{top:max(64px,calc(env(safe-area-inset-top) + 48px));font-size:1.5rem}
  .ds-corner{gap:6px}.ds-ib{width:42px;height:42px}.ds-dia{height:42px}
  .ds-home{justify-content:flex-end;padding-top:8px;gap:8px;overflow:hidden}
  .ds-list{grid-template-columns:1fr 1fr;gap:8px}
  .ds-player,.ds-rxp{min-width:0;width:100%}
  .ds-gemlogo{width:64px;height:52px}.ds-word b{font-size:clamp(2.2rem,11vw,3.2rem)}.ds-word span{font-size:.95rem;letter-spacing:.32em}
  .ds-hint{display:none}
}
@media (max-height:620px) and (min-width:761px){.ds-home{gap:6px}.ds-gemlogo{width:60px;height:50px}.ds-word b{font-size:3rem}}
@media (prefers-reduced-motion:reduce){.ds-gemlogo,.ds-hint,.ds-logo,.ds-timer.low{animation:none}.ds-xpbar i{transition:none}}
.ds-tag{margin:.35em 0 0;color:#eaf6ff;font-weight:800;font-size:clamp(.9rem,2.6vw,1.05rem);letter-spacing:.02em;text-shadow:0 2px 8px #000}
.ds-stage>#g-snd{display:none!important} /* the stage has its own sound button in .ds-corner */

/* Calendar badge (avoids the July-17 emoji glyph) */
.ds-cal{display:inline-flex;flex-direction:column;align-items:center;min-width:2.05rem;border-radius:6px;overflow:hidden;border:2px solid #FFD54F;background:#fff8e6;line-height:1;box-shadow:0 2px 0 #5a3c00}
.ds-cal-m{display:block;width:100%;background:#9b1c2c;color:#fff;font-size:.55rem;font-weight:900;letter-spacing:.04em;text-transform:uppercase;padding:2px 4px;text-align:center}
.ds-cal-d{display:block;color:#0B2545;font-size:1.05rem;font-weight:900;padding:2px 4px 3px;text-align:center}
/* Sheet body + sticky action row so Got it / Done / buy rows stay on screen */
.ds-sheetbody{flex:1 1 auto;overflow:auto;overscroll-behavior:contain;min-height:0;width:100%;display:flex;flex-direction:column;align-items:center}
.ds-sheetfoot{flex:none;position:sticky;bottom:0;z-index:2;width:100%;display:flex;flex-wrap:wrap;gap:10px;justify-content:center;padding:8px 0 max(8px,env(safe-area-inset-bottom));background:linear-gradient(180deg,rgba(2,8,26,0),rgba(2,8,26,.94) 28%)}
.ds-home{overflow:hidden;padding-top:max(10px,env(safe-area-inset-top))}
.ds-coll,.ds-how,.ds-res,.ds-pause,#ds-nogl{justify-content:flex-start}
.ds-how .ds-title,.ds-coll .ds-title,.ds-res .ds-title,.ds-pause .ds-title{margin-top:.15rem}
html.ds-page #g-result{display:none!important}
.ds-bar.ds-idle #g-new,.ds-bar.ds-idle #g-pause{display:none}
html.ds-page .btt,html.ds-focus .btt,html.ds-fs-on .btt{display:none!important}
html.ds-page{--ds-chrome:260px}
/* Hide the in-page title (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 during play (ds-focus) and on short landscape
   so it cannot collide with the HUD or a tight footer. --ds-chrome is raised so the
   HTML/CSS menu (before slash.js runs syncChrome) still fits. Site main padding is
   tightened so the extra nav row does not push Court/mode CTAs past the fold. */
html.ds-page main{padding:12px 0 0}
html.ds-page .ds-titlerow{display:none!important}
html.ds-page .games-nav{display:flex!important;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 4px;min-height:0}
html.ds-page .games-nav a{min-height:40px}
html.ds-page .games-nav .dia-pill{display:inline-flex!important;visibility:visible;position:relative;z-index:2;min-height:40px;margin-left:auto}
@media (min-width:761px){
  html.ds-page .ds-home{justify-content:flex-end;gap:10px;padding-bottom:10px}
}
@media (max-width:760px){
  html.ds-page .games-nav{margin:0 0 4px;gap:4px}
  html.ds-page .games-nav > a:not(.dia-pill){display:none!important}
  html.ds-page .games-nav .dia-pill{min-height:32px;padding:2px 10px;font-size:.9rem}
  html.ds-page{--ds-chrome:138px}
}
html.ds-page header.site .wrap{padding-top:4px;padding-bottom:4px}
html.ds-page header.site .logo-svg{width:180px;height:40px}
@media (max-height:500px){
  html.ds-page .games-nav{display:none!important}
  html.ds-page{--ds-chrome:48px}
}
/* Focus / play layout: pin the court to the viewport */
html.ds-focus,html.ds-focus body{overflow:hidden;height:100%;overscroll-behavior:none}
html.ds-focus header.site,html.ds-focus .games-nav,html.ds-focus .ds-titlerow,html.ds-focus footer.site,html.ds-focus .skip,html.ds-focus [class*="vip-chat"],html.ds-focus .howto,html.ds-focus .g-about,html.ds-focus .g-mini,html.ds-focus .ds-bar,html.ds-focus .g-vs,html.ds-focus .g-msg,html.ds-focus #g-result,html.ds-focus .games-note,html.ds-focus .support,html.ds-focus .nt-next{display:none!important}
html.ds-focus main,.ds-page.ds-focus main,.ds-page.ds-focus main .wrap{padding:0;margin:0;max-width:none}
html.ds-focus .ds-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){
  html.ds-page header.site .logo-svg{width:140px;height:32px}
  html.ds-page .textsize{display:none}
  .ds-hbtns .ds-howb{min-height:44px}
}
@media (max-height:500px){
  html.ds-page .games-nav,html.ds-page .ds-titlerow,html.ds-page footer.site,html.ds-page .howto,html.ds-page .g-about,html.ds-page .g-mini,html.ds-page .g-vs,html.ds-page .g-msg,html.ds-page .nt-next{display:none!important}
  html.ds-page .textsize{display:none!important}
  html.ds-page header.site nav.main{display:none!important}
  html.ds-page header.site .menu-btn{display:inline-flex!important}
  html.ds-page header.site .logo-svg{width:110px;height:26px}
  html.ds-page header.site .wrap{padding-top:2px;padding-bottom:2px}
  html.ds-page header.site .bar{flex-wrap:nowrap;align-items:center;padding-top:2px;padding-bottom:2px}
  .ds-stage{height:calc(100dvh - var(--ds-chrome,48px));min-height:0;max-height:none;border-radius:0}
  .ds-modes{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .ds-mode{padding:6px 4px;gap:0}.ds-mic{font-size:1.05rem}.ds-mode b{font-size:.95rem}.ds-mode small{font-size:.68rem}
  .ds-home{padding:4px 8px;gap:4px;justify-content:flex-end}
  .ds-gemlogo{width:40px;height:32px;display:none}.ds-word b{font-size:clamp(1.3rem,8vh,2rem)}.ds-word span{font-size:.75rem;letter-spacing:.28em}
  .ds-tag,.ds-hint{display:none}
  .ds-player{padding:4px 10px;min-width:0;width:min(420px,96%)}.ds-lv{width:34px;height:34px;font-size:1rem}
  .ds-hbtns{gap:6px}.ds-hbtns .btn{min-height:40px;padding:.3em .7em;font-size:.9rem}
  .ds-ib{width:40px;height:40px}
  .ds-how .ds-steps{font-size:.92rem;line-height:1.35}
}

/* Hide the stage-corner cluster on How-to / Collection / results — those sheets have their own actions. */
.ds-stage:has(#ds-how:not([hidden])) .ds-corner,
.ds-stage:has(#ds-coll:not([hidden])) .ds-corner,
.ds-stage:has(#ds-res:not([hidden])) .ds-corner,
.ds-stage:has(#g-overlay:not([hidden])) .ds-corner{visibility:hidden;pointer-events:none}
.ds-how,.ds-coll,.ds-res,.ds-pause,#ds-nogl{padding-top:max(18px,env(safe-area-inset-top))}
.ds-steps{line-height:1.4}.ds-steps li{margin:.22em 0}
@media (max-height:500px){
  .ds-title{font-size:clamp(1.15rem,4vh,1.6rem);margin:0 0 .2rem}
  .ds-sheetfoot{padding:4px 0}
  .ds-list{gap:6px}
  .ds-card{padding:6px;gap:2px}
  .ds-cnote{min-height:0;font-size:.75rem}
}


/* ===== Round 2: compact non-overlapping sheet footers, short-viewport layout, pin the page, premium loader ===== */
.ds-sheetbody{flex:1 1 0%;padding-bottom:6px}
.ds-sheetfoot{position:static;z-index:auto;flex:0 0 auto;gap:8px;margin-top:0;padding:6px 0 max(6px,env(safe-area-inset-bottom));background:rgba(2,8,26,.94);border-top:1px solid rgba(255,215,79,.28)}
.ds-sheetfoot .btn{min-height:44px;padding:.35em 1.2em;font-size:1.05rem}
.ds-how .ds-steps{padding-bottom:4px}

/* Pin the page so the menu cannot scroll the document under the stage */
html.ds-page,html.ds-page body{overflow:hidden;height:100%;height:100dvh;overscroll-behavior:none}
html.ds-page footer.site,
html.ds-page .howto,
html.ds-page .g-about,
html.ds-page .g-mini,
html.ds-page .nt-next,
html.ds-page .g-vs,
html.ds-page .g-msg,
html.ds-page .ds-bar,
html.ds-page .games-note,
html.ds-page .support{display:none!important}

/* Phone portrait: hide the hook so it cannot sit under the Diamonds/pause cluster; give the wordmark room below it */
@media (max-width:760px){
  .ds-tag{display:none}
  .ds-home{justify-content:flex-end;padding-top:max(58px,calc(env(safe-area-inset-top) + 50px));gap:8px}
  .ds-gemlogo{width:48px;height:40px}
  .ds-word b{font-size:clamp(1.7rem,9vw,2.5rem)}
  .ds-word span{font-size:.82rem;letter-spacing:.3em}
}

/* Desktop: two-column How-to so the last lines sit above Got it!, not under it */
@media (min-width:900px) and (min-height:501px){
  .ds-how .ds-steps{display:grid;grid-template-columns:1fr 1fr;gap:2px 28px;max-width:920px;width:100%;font-size:.95rem;line-height:1.35;text-align:left}
}

/* Landscape / short viewport (844x390): compact footer + 2-col How-to + compact Collection so names and On/buy stay visible */
@media (max-height:500px){
  .ds-how .ds-steps{display:grid;grid-template-columns:1fr 1fr;gap:1px 16px;width:100%;max-width:none;font-size:.76rem;line-height:1.22;text-align:left}
  .ds-how .ds-steps li{margin:.08em 0}
  .ds-how .ds-note{display:none}
  .ds-how .ds-title,.ds-coll .ds-title{font-size:1.1rem;margin:0 0 .08rem}
  .ds-how,.ds-coll,.ds-res,.ds-pause,#ds-nogl{padding-top:max(6px,env(safe-area-inset-top));padding-bottom:4px}
  .ds-sheetfoot{padding:2px 0 max(2px,env(safe-area-inset-bottom));background:#02081a;gap:6px}
  .ds-sheetfoot .btn{min-height:34px;padding:.12em .85em;font-size:.88rem}
  .ds-coll .ds-list{grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:6px;width:100%}
  .ds-coll .ds-card{padding:4px 6px;gap:2px}
  .ds-coll .ds-cpv{max-height:28px;aspect-ratio:3/1;object-fit:cover;width:100%}
  .ds-coll .ds-cnote{display:none}
  .ds-coll .ds-cname{font-size:.78rem;line-height:1.15}
  .ds-coll .ds-cbtn,.ds-coll .ds-ceq,.ds-coll .ds-clock{min-height:30px!important;font-size:.78rem;padding:.1em .45em;margin-top:1px}
  .ds-coll .ds-sfine{display:none}
  .ds-coll .ds-tabs{margin:0 0 4px}
  .ds-coll .ds-phead{gap:6px;margin-bottom:2px}
  .ds-coll .ds-tab{min-height:32px;padding:.15em .55em;font-size:.8rem}
  .ds-boost{padding:5px 8px;gap:2px}
  .ds-boost .ds-bname{font-size:.88rem}
  .ds-boost .ds-bnote{font-size:.7rem;line-height:1.2;margin:0}
  .ds-boost .ds-brow{min-height:0;gap:6px}
  .ds-boost .btn{min-height:30px!important;padding:.1em .55em;font-size:.8rem}
}

/* Premium first-paint loader (visible before three.js / game module) */
.ds-loader{position:absolute;inset:0;z-index:20;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:radial-gradient(ellipse at 50% 38%,#16306a 0%,#05060f 68%);color:#FFF4D6}
.ds-loader.out{opacity:0;pointer-events:none;transition:opacity .45s ease}
.ds-loader[hidden]{display:none}
.ds-loader-gem{filter:drop-shadow(0 0 18px rgba(120,200,255,.55));animation:ds-gemfloat 2.4s ease-in-out infinite}
.ds-loader-word{margin:0;display:flex;flex-direction:column;align-items:center;line-height:.9;text-transform:uppercase}
.ds-loader-word span{font-size:.85rem;letter-spacing:.4em;font-weight:800;color:#cfe0ff}
.ds-loader-word b{font-size:clamp(2rem,6vw,2.6rem);color:#FFC72C;text-shadow:0 2px 0 #5a3c00}
.ds-loader-bar{width:min(220px,60%);height:6px;border-radius:99px;background:rgba(255,215,79,.15);border:1px solid rgba(255,199,44,.55);overflow:hidden}
.ds-loader-bar i{display:block;height:100%;width:38%;border-radius:99px;background:linear-gradient(90deg,#fff6d8,#FFC72C,#fff);animation:ds-loadbar 1.15s ease-in-out infinite}
.ds-loader-msg{margin:0;font-weight:700;color:#cfe0ff;letter-spacing:.04em}
@keyframes ds-gemfloat{0%,100%{transform:rotate(-8deg) translateY(0)}50%{transform:rotate(8deg) translateY(-7px)}}
@keyframes ds-loadbar{0%{transform:translateX(-110%)}100%{transform:translateX(270%)}}
@media (prefers-reduced-motion:reduce){
  .ds-loader-gem,.ds-loader-bar i{animation:none}
  .ds-loader-bar i{width:100%}
}


/* R2 polish: keep How-to steps 5–6 fully above Got it in landscape; hide the phone wordmark so it cannot sit under the Diamonds cluster; clip sheet bodies strictly above the footer. */
@media (max-width:760px){
  .ds-logo{display:none}
  .ds-home{justify-content:flex-end;padding-top:max(58px,calc(env(safe-area-inset-top) + 50px))}
  .ds-how .ds-steps{font-size:.88rem;line-height:1.32}
  .ds-how .ds-steps li{margin:.16em 0}
  .ds-how .ds-note{margin:.3em 0 0}
}
@media (max-height:500px){
  .ds-how .ds-steps{font-size:.7rem;line-height:1.15;gap:0 14px}
  .ds-how .ds-steps li{margin:0}
  .ds-how .ds-title{font-size:1.02rem;margin:0}
}
.ds-how,.ds-coll,.ds-res,.ds-pause,#ds-nogl{display:flex;flex-direction:column;overflow:hidden}
.ds-sheetbody{flex:1 1 0%!important;min-height:0!important;overflow:auto!important;padding-bottom:8px}
.ds-how .ds-sheetfoot,.ds-coll .ds-sheetfoot{position:static!important;flex:0 0 auto!important;margin-top:0;background:#02081a}


/* Menu UI is plain HTML/CSS and paints above the loader; the 3D vault fills in behind when ready. */
.ds-home{z-index:21}
#ds-loader{z-index:4;pointer-events:none}
html.ds-menu-ready #ds-loader{z-index:4;background:transparent;pointer-events:none}
html.ds-menu-ready #ds-loader .ds-loader-gem,
html.ds-menu-ready #ds-loader .ds-loader-word,
html.ds-menu-ready #ds-loader .ds-loader-bar,
html.ds-menu-ready #ds-loader .ds-loader-msg{opacity:0}
