/* page */
.sgp-gp{max-width:1680px;margin:0 auto;padding:20px 32px 56px;overflow-x:clip}
body.standard-game-page{--head:76px;--strip:64px;--frame-h:clamp(560px,calc(100vh - var(--hd) - var(--head) - 56px),900px)}
.sgp-gp-head{height:var(--head);display:flex;align-items:center;margin-bottom:16px}
.sgp-gp-grid{display:grid;grid-template-columns:var(--side) minmax(0,1fr) calc(var(--side) + var(--adgap) - var(--gap));column-gap:var(--gap);align-items:start}
.sgp-gp-stage{grid-column:2;grid-row:1;position:relative}
.sgp-gp-left{grid-column:1;grid-row:1;display:flex}
.sgp-gp-rail{grid-column:3;grid-row:1;padding-left:calc(var(--adgap) - var(--gap));display:flex;flex-direction:column;gap:20px;position:sticky;top:calc(var(--hd) + 20px)}
.sgp-gp-below{display:none}

/* brand row */
.sgp-brand{display:flex;align-items:center;gap:18px;min-width:0}
.sgp-brand .sgp-gicon{width:68px;height:68px;flex-shrink:0;border-radius:17px;box-shadow:0 8px 20px rgba(0,0,0,.4)}
.sgp-brand h1{margin:0;line-height:0;min-width:0;flex-shrink:1}
.sgp-brand .sgp-wm{display:block;height:var(--wmh);width:auto;max-width:100%}
.sgp-brand-txt{display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding-left:20px;margin-left:4px;border-left:1px solid #26336a;min-width:0}
.sgp-desc{color:#c3cff0;font-size:15px;line-height:1.35}
.sgp-cat{flex-shrink:0;height:24px;padding:0 10px;border-radius:999px;background:#1b2656;border:1px solid #2e3c7c;color:#cfe0ff;font-size:12px;font-weight:700;display:inline-flex;align-items:center;letter-spacing:.02em}

/* game frame: control strip + stage */
.sgp-frame{height:var(--frame-h);display:flex;flex-direction:column;border-radius:28px;overflow:hidden;background:#0f1640;border:1px solid #2c3a78;
  box-shadow:0 0 0 6px rgba(255,255,255,.025),0 34px 90px -24px var(--glow),0 20px 40px rgba(0,0,0,.35)}
.sgp-strip{height:var(--strip);flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 10px 0 10px;background:#131c4a;border-bottom:1px solid #26336a}
.sgp-tools{display:flex;align-items:center;gap:8px}
.sgp-score{height:44px;display:flex;align-items:stretch;border-radius:13px;background:#0c1436;border:1px solid #2a3770;overflow:hidden}
.sgp-score div{padding:0 14px;display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:64px}
.sgp-score div+div{border-left:1px solid #2a3770}
.sgp-score small{font-size:12px;font-weight:700;letter-spacing:.12em;color:var(--muted)}
.sgp-score b{font-family:var(--rv-font-display);font-weight:800;font-size:19px;line-height:1.1;color:var(--lime)}
.sgp-score div+div b{color:#ffdb59}
.sgp-tbtn{height:44px;min-width:44px;padding:0 14px;border-radius:13px;border:1px solid #2a3770;background:#0c1436;display:flex;align-items:center;justify-content:center;gap:7px;font-weight:700;font-size:14px}
.sgp-tbtn.icon{padding:0}
.sgp-stage{position:relative;flex:1;min-height:0;background:#101a4a}
.sgp-stage iframe,.sgp-stage img.shot{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;object-fit:cover;object-position:center}
.sgp-gp-glow{position:absolute;inset:-40px -30px -30px;background:radial-gradient(50% 50% at 50% 50%,var(--glow) 0,rgba(11,16,48,0) 70%);opacity:.55;pointer-events:none;z-index:-1}

/* leaderboard */
.sgp-lb{width:100%;display:flex;flex-direction:column;padding:18px 16px 14px;min-height:0;height:var(--frame-h)}
.sgp-lb-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 4px}
.sgp-lb h2{margin:0;font-family:var(--rv-font-display);font-weight:800;font-size:22px;letter-spacing:-.01em}
.sgp-chip-select{height:32px;padding:0 10px 0 12px;border-radius:999px;border:1px solid #33418a;background:#1a2558;display:flex;align-items:center;gap:4px;font-weight:700;font-size:13px}
.sgp-seg{margin:14px 0 12px;display:grid;grid-template-columns:1fr 1fr 1fr;gap:4px;padding:4px;border-radius:14px;background:#0d1436;border:1px solid #233063}
.sgp-seg button{height:34px;border:0;border-radius:10px;background:none;font-weight:700;font-size:13px;color:var(--muted)}
.sgp-seg button.on{background:#25327a;color:#fff}
.sgp-lb-me{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:16px;background:var(--lime);color:var(--navy)}
.sgp-lb-me .sgp-lb-who em{color:#3b4a12}
.sgp-lb-status{margin-left:auto;font-size:12px;font-weight:700;padding:4px 8px;border-radius:999px;background:rgba(11,16,48,.12)}
.sgp-lb-rank{width:34px;flex-shrink:0;text-align:center;font-family:var(--rv-font-display);font-weight:800;font-size:16px;color:#c9d6ff}
.sgp-lb-rank.me{width:auto;min-width:34px;font-size:15px;color:var(--navy)}
.sgp-lb-rank.m-g,.sgp-lb-rank.m-s,.sgp-lb-rank.m-b{width:28px;height:28px;margin:0 3px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:14px;color:var(--navy)}
.sgp-lb-rank.m-g{background:linear-gradient(#ffe68a,#f5b73b)}.sgp-lb-rank.m-s{background:linear-gradient(#f1f5ff,#aab6d3)}.sgp-lb-rank.m-b{background:linear-gradient(#ffc69a,#cf7f45)}
.sgp-lb-av{width:32px;height:32px;border-radius:50%;flex-shrink:0;background:#0b1030}
.sgp-lb-who{display:flex;flex-direction:column;min-width:0;line-height:1.2}
.sgp-lb-who b{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sgp-lb-who em{font-style:normal;font-size:12px;color:var(--muted)}
.sgp-lb-who em.vp{color:#b9e98a;font-weight:500}
.sgp-lb-note{margin:12px 4px 6px;font-size:12px;line-height:1.4;color:var(--muted)}
.sgp-lb-note b{color:#dbe4ff}
.sgp-lb-list{list-style:none;margin:0;padding:0 0 18px;overflow:auto;flex:1;min-height:0;-webkit-mask-image:linear-gradient(#000 calc(100% - 36px),transparent);mask-image:linear-gradient(#000 calc(100% - 36px),transparent);scrollbar-width:none}
.sgp-lb-row{display:flex;align-items:center;gap:10px;padding:8px 8px;border-bottom:1px solid #1e2a5c}
.sgp-lb-row:last-child{border-bottom:0}
.sgp-lb-score{margin-left:auto;font-family:var(--rv-font-display);font-weight:800;font-size:18px;color:#ffdb59}
.sgp-lb-foot{display:flex;flex-direction:column;align-items:center;gap:8px;padding-top:12px}
.sgp-btn-ghost{width:100%;height:42px;border-radius:999px;border:1px solid #34428a;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px}
.sgp-lb-rules{font-size:12px;color:var(--muted);text-decoration:underline;text-underline-offset:3px}

/* ads (coming soon) */
.sgp-ad{position:relative;flex-shrink:0;border-radius:18px;border:1.5px dashed #34428a;background:repeating-linear-gradient(135deg,#0f1740 0 14px,#111a46 14px 28px);display:flex;align-items:center;justify-content:center;margin-left:auto;margin-right:auto}
.sgp-ad-300x250{width:300px;height:250px}
.sgp-ad-728x90{width:728px;max-width:100%;height:90px}
.sgp-ad-320x100{width:320px;max-width:100%;height:100px}
.sgp-ad-label{position:absolute;top:8px;left:12px;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#7f90c4}
.sgp-ad-size{position:absolute;bottom:8px;right:12px;font-size:12px;font-weight:700;color:#55639a}
.sgp-ad-body{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}
.sgp-ad-body .sgp-ad-r{width:34px;height:34px;opacity:.55;margin-bottom:4px}
.sgp-ad-body b{font-family:var(--rv-font-display);font-weight:800;font-size:18px;color:#c9d6ff}
.sgp-ad-body span{font-size:13px;color:var(--muted)}
.sgp-ad-728x90 .sgp-ad-body,.sgp-ad-320x100 .sgp-ad-body{flex-direction:row;gap:10px}
.sgp-ad-728x90 .sgp-ad-body .sgp-ad-r,.sgp-ad-320x100 .sgp-ad-body .sgp-ad-r{margin:0;width:28px;height:28px}
.sgp-ad-728x90 .sgp-ad-body span::before,.sgp-ad-320x100 .sgp-ad-body span::before{content:"· "}

/* Revolving+ */
.sgp-plus{position:relative;overflow:hidden;border-radius:24px;color:#fff;background:linear-gradient(135deg,#6b47ff 0%,#4326c9 55%,#2a167f 100%);border:1px solid #8a6cff}
.sgp-plus::after{display:none}
.sgp-plus::before{content:"";position:absolute;right:22px;top:22px;width:58px;height:14px;z-index:0;pointer-events:none;
  background:radial-gradient(circle,#c4fa72 0 6px,transparent 6.5px) 0 0/20px 14px no-repeat,radial-gradient(circle,#56c8f2 0 6px,transparent 6.5px) 20px 0/20px 14px no-repeat,radial-gradient(circle,#ff8275 0 6px,transparent 6.5px) 40px 0/20px 14px no-repeat}
.sgp-plus-top{display:flex;align-items:center;gap:9px}
.sgp-plus-name{font-family:var(--rv-font-display);font-weight:800;font-size:18px}
.sgp-plus h2{margin:0;font-family:var(--rv-font-display);font-weight:800;letter-spacing:-.01em;line-height:1.02}
.sgp-plus h2 span{color:var(--lime)}
.sgp-btn-lime{height:48px;padding:0 22px;border-radius:999px;background:var(--lime);color:var(--navy);display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700;font-size:15px;box-shadow:0 5px 0 #86b83e;white-space:nowrap}
.sgp-plus-price{margin:0;font-size:12px;color:#d7ccff}
.sgp-plus-card{padding:22px 22px 18px;width:300px;display:flex;flex-direction:column;gap:12px}
.sgp-plus-card h2{font-size:30px;margin-top:4px}
.sgp-plus-card ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px;font-size:14px;color:#ece6ff}
.sgp-plus-card li::before{content:"✓";color:var(--lime);font-weight:700;margin-right:8px}
.sgp-plus-card .sgp-btn-lime{margin-top:6px;width:100%}
.sgp-plus-wide{padding:22px 28px;display:flex;align-items:center;justify-content:space-between;gap:24px}.sgp-plus-wide::before{display:none}.sgp-plus>*{position:relative;z-index:1}
.sgp-plus-wide h2{font-size:30px;margin:8px 0 6px}
.sgp-plus-wide p{margin:0;color:#ece6ff;font-size:14px}
.sgp-plus-cta{display:flex;flex-direction:column;align-items:center;gap:8px;flex-shrink:0;position:relative;z-index:1}

/* ---------- 1024–1399: game + leaderboard; Revolving+ and the ad below ---------- */
@media (max-width:1399px){
  .sgp-gp-grid{grid-template-columns:320px minmax(0,1fr);row-gap:28px}
  .sgp-gp-stage{grid-column:2}.sgp-gp-left{grid-column:1}
  .sgp-gp-rail{display:none}
  .sgp-gp-below{grid-column:1/3;grid-row:2;display:flex;flex-direction:column;gap:28px;padding-top:124px} /* the ad stays 150 px from the game */
}
@media (max-width:1279px){.sgp-hd-plus span,.sgp-acct span{display:none}.sgp-hd-plus{margin-right:0}.sgp-hd-nav a{padding:0 13px}}


/* ---------- tablets in portrait (iPad Pro 12.9" and similar): one column, like the smaller tablets ---------- */
@media (min-width:1024px) and (max-width:1399px) and (orientation:portrait){
  body.standard-game-page{--frame-h:min(calc(100svh - var(--hd) - var(--head) - 48px),980px)}
  .sgp-gp-grid,.sgp-member .sgp-gp-grid{display:flex;flex-direction:column;gap:20px}
  .sgp-gp-stage,.sgp-gp-left,.sgp-gp-below{width:100%}
  .sgp-lb{height:auto}
  .sgp-lb-list{overflow:visible;-webkit-mask-image:none;mask-image:none}
  .sgp-gp-below{gap:20px;padding-top:0}
}

/* ---------- under 1024: one column ---------- */
@media (max-width:1023px){
  body.standard-game-page{--hd:64px;--head:64px;--frame-h:min(calc(100svh - var(--hd) - var(--head) - 40px),920px)}
  .sgp-hd-nav,.sgp-hd-plus{display:none}
  .sgp-hd-in{padding:0 16px;gap:10px;justify-content:space-between}
  .sgp-hd-right{gap:8px}
  .sgp-acct{padding:0 6px 0 12px}
  .sgp-gp{padding:12px 16px 40px}
  .sgp-gp-head{margin-bottom:12px}
  .sgp-brand .sgp-gicon{width:52px;height:52px;border-radius:13px}
  .sgp-gp-grid{display:flex;flex-direction:column;gap:20px}
  .sgp-gp-stage,.sgp-gp-left,.sgp-gp-below{width:100%}
  .sgp-lb{height:auto}
  .sgp-lb-list{overflow:visible}
  .sgp-gp-below{gap:20px;padding-top:0}
  .sgp-ft-in{grid-template-columns:1fr}
}
@media (max-width:767px){
  body.standard-game-page{--head:52px;--strip:52px;--frame-h:calc(100svh - var(--hd) - var(--head) - 69px - 28px)}
  body.standard-game-page{padding-bottom:69px}
  .sgp-gp{padding:8px 10px 24px}
  .sgp-gp-head{margin-bottom:8px;padding:0 2px}
  .sgp-brand{gap:10px}
  .sgp-brand .sgp-gicon{width:40px;height:40px;border-radius:10px;box-shadow:none}
  .sgp-brand-txt{padding-left:12px;margin-left:0}
  .sgp-brand-txt .sgp-desc{display:none}
  .sgp-frame{border-radius:20px;box-shadow:0 20px 50px -20px var(--glow)}
  .sgp-strip{padding:0 6px}
  .sgp-score{height:40px;border-radius:11px}
  .sgp-score div{min-width:50px;padding:0 9px}
  .sgp-score b{font-size:16px}.sgp-score small{font-size:12px}
  .sgp-score .sgp-sc-best{min-width:74px}.sgp-sc-float{font-size:17px}
  .sgp-tools{gap:6px}
  .sgp-tbtn{height:40px;min-width:40px;border-radius:11px}
  .sgp-tbtn span{display:none}.sgp-tbtn{padding:0}
  .sgp-gp-grid{gap:16px}
  .sgp-plus-wide{flex-direction:column;align-items:flex-start;padding:22px}
  .sgp-plus-cta{align-items:stretch;width:100%}
  .sgp-plus-wide h2{font-size:28px}
  .sgp-ad-728x90{display:none}
  .sgp-ad-300x250.m-only{display:flex}
  .sgp-ft{margin-top:24px}
  .sgp-ft-cols{grid-template-columns:1fr 1fr}
  .sgp-ft-bottom{flex-wrap:wrap}
  .sgp-ft-copy{margin-left:0;width:100%}
  .sgp-bn{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:30;height:69px;background:rgba(11,16,48,.96);border-top:1px solid #1e2858;align-items:center;justify-content:space-around;padding:0 8px 4px}
  .sgp-bn-i{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:12px;font-weight:700;color:#dbe4ff;width:56px}
  .sgp-bn-spin{width:58px;height:58px;margin-top:-18px;border-radius:50%;padding:3px;background:conic-gradient(#b79aff,#56c8f2,#c4fa72,#ffdb59,#ff8275,#b79aff)}
  .sgp-bn-spin span{width:100%;height:100%;border-radius:50%;background:var(--navy);display:flex;align-items:center;justify-content:center;color:#ff8275}
}

/* animated score */
.sgp-strip{position:relative}
.sgp-score{overflow:visible;position:relative}
.sgp-score div{position:relative;border-radius:12px;transition:background .25s}
.sgp-score b{display:inline-block;will-change:transform;transform-origin:50% 60%}
.sgp-sc-float{position:absolute;top:50%;left:var(--fx,150px);transform:translateY(-50%);font-family:var(--rv-font-display);font-weight:800;font-size:19px;color:var(--lime);opacity:0;pointer-events:none;text-shadow:0 2px 10px rgba(196,250,114,.45);white-space:nowrap}
.sgp-score .sgp-sc-best{min-width:92px}@media (max-width:767px){.sgp-strip .sgp-score .sgp-sc-best{min-width:74px}}.sgp-sc-best.hit{background:linear-gradient(#ffe68a,#f5b73b)}
.sgp-sc-best.hit small,.sgp-sc-best.hit b{color:#3a2400!important}
.sgp-spk{position:absolute;left:50%;top:50%;width:14px;height:14px;margin:-7px;opacity:0;pointer-events:none;z-index:3;background:#ffdb59;filter:drop-shadow(0 0 4px rgba(255,219,89,.9));clip-path:polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%)}.sgp-spk.w{background:#fff}
.sgp-member .sgp-gp-rail,.sgp-member .sgp-gp-below{display:none!important}
.sgp-member .sgp-gp-grid{grid-template-columns:var(--side) minmax(0,1fr)}
@media (min-width:1400px){.sgp-member.gp{max-width:1500px}}
@media (max-width:1399px){.sgp-member .sgp-gp-grid{grid-template-columns:320px minmax(0,1fr)}}
@media (max-width:1023px){.sgp-member .sgp-gp-grid{display:flex}}
.sgp-tags{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.sgp-partner{height:24px;display:inline-flex;align-items:center;gap:6px;padding:0 10px 0 4px;border-radius:999px;font-size:12px;color:#fff}
.sgp-partner.sgp-acireale{background:#730301}.sgp-partner.sgp-acireale img{width:20px;height:20px}
.sgp-partner.sgp-lasicilia{background:#a90d25;padding:0 10px}.sgp-partner.sgp-lasicilia img{height:12px;display:block}
.sgp-match-chip{height:44px;display:flex;align-items:center;gap:8px;padding:0 14px;border-radius:13px;background:#0c1436;border:1px solid #2a3770;font-weight:700;font-size:14px;color:#dbe4ff;white-space:nowrap}
.sgp-match-chip .sgp-dot{width:9px;height:9px;border-radius:50%;background:var(--lime);box-shadow:0 0 8px var(--lime)}
.sgp-score[hidden]{display:none!important}
@media (max-width:767px){.sgp-brand-txt.hp{display:flex!important;border:0;padding-left:0;margin-left:auto}.sgp-brand-txt.hp .sgp-cat,.sgp-brand-txt.hp .sgp-desc{display:none}.sgp-match-chip{height:40px;font-size:13px;padding:0 11px}.sgp-partner span{display:none}.sgp-partner.sgp-lasicilia span{display:none}.sgp-partner.sgp-acireale{padding:0 4px}}
.sgp-m-only{display:none}
@media (max-width:399px){.sgp-brand .sgp-gicon.wide-hide{display:none}.sgp-brand-txt{display:none}}
.sgp-brand .sgp-wm{--wmh:45.0px}@media (max-width:767px){.sgp-brand .sgp-wm{--wmh:30.0px}}/* Integrate the approved reference with existing engine containers. */
body.standard-game-page{--navy:#0b1030;--panel:#121a3d;--panel2:#18224b;--line:#27346b;--text:#eef4ff;--muted:#9fb0d9;--lime:#c4fa72;--violet:#7c5cff;--hd:72px;--gap:24px;--adgap:150px;--side:300px;--glow:#483aa455;background:var(--navy)!important}
body.standard-game-page.has-game-shell main{display:block!important;max-width:none!important;margin:0!important;padding:0!important;width:100%!important}
.sgp *{box-sizing:border-box}.sgp{width:100%;color:var(--text);font-family:var(--rv-font-body)}
.sgp a{text-decoration:none}.sgp button{cursor:pointer}.sgp button:focus-visible,.sgp a:focus-visible{outline:3px solid var(--lime);outline-offset:3px}
.sgp .sgp-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.sgp-brand-link{display:flex;align-items:center;gap:18px;min-width:0;flex-shrink:1}.sgp-brand .sgp-wm{object-fit:contain;object-position:left center;min-width:0;width:auto}.sgp-gp-head{height:var(--head)}
body.standard-game-page .sgp-stage> :is(.game,.game-card){height:100%!important;min-height:0!important;max-height:100%!important;margin:0!important;border:0!important;border-radius:0!important;padding:0!important;width:100%!important;max-width:none!important;display:flex!important;flex-direction:column!important;background:transparent!important}
body.standard-game-page .sgp-stage #stage{position:relative!important;inset:auto!important;height:auto!important;min-height:0!important;width:100%!important;flex:1!important;aspect-ratio:auto!important;margin:0!important;border:0!important;border-radius:0!important}
body.standard-game-page .sgp-stage #stage iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
body.standard-game-page .sgp-stage :is(.game-top,.game-hint,.hud,.live-scores,.daily-board){display:none!important}
body.standard-game-page .sgp-stage .actions{margin:0!important;padding:6px!important;flex-shrink:0;display:flex!important;gap:8px!important}
body.standard-game-page .sgp-strip .sgp-tbtn{display:flex!important;position:static!important;width:auto!important;min-width:44px!important;height:44px!important;padding:0 12px!important;border:1px solid #2a3770!important;background:#0c1436!important;border-radius:13px!important;box-shadow:none!important;font-size:14px!important;color:#eef4ff!important;align-items:center;justify-content:center;gap:7px}
.sgp-tools .shell-icon{width:22px;height:22px}.sgp-tools .shell-icon svg{width:100%;height:100%}.sgp-plus-mark{width:26px;height:26px}.sgp-plus h2 span{display:block}.sgp-gp-below>.sgp-ad-300x250{display:none}.sgp-member .sgp-gp-rail,.sgp-member .sgp-gp-below{display:none!important}.sgp-member .sgp-gp-grid{grid-template-columns:var(--side) minmax(0,1fr)}
body.standard-game-page .sgp-lb{display:flex!important;flex-direction:column!important;margin:0!important;width:100%!important;background:#121a3d!important;border:1px solid #27346b!important;border-radius:24px!important;min-width:0}
.sgp-lb .shell-rank-list{flex:1!important;min-height:0!important;overflow:auto}.sgp-lb .shell-rank-heading{gap:8px;flex-wrap:wrap}.sgp-lb .shell-rank-heading h2{font-size:22px}.sgp-lb .shell-own-rank{background:var(--lime)!important;color:var(--navy)!important}.sgp-lb .shell-rank-row:nth-child(-n+3) .shell-position{border-radius:50%;background:#ffdb59;color:var(--navy);width:28px;height:28px;display:grid;place-items:center}.sgp-lb .shell-rank-row:nth-child(2) .shell-position{background:#c7d2e8}.sgp-lb .shell-rank-row:nth-child(3) .shell-position{background:#e9a76d}
body.standard-game-page .approved-maiolica-grid{display:flex!important;flex-direction:column!important;height:100%!important;width:100%!important;min-width:0!important;gap:8px!important;min-height:0!important;padding:12px!important}
body.standard-game-page .approved-maiolica-grid .approved-maiolica-board{order:0!important;flex:1!important;min-height:0!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;margin:0!important;width:100%!important}
body.standard-game-page .approved-maiolica-grid .approved-maiolica-left{order:1!important;display:block!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;background:none!important}
body.standard-game-page .approved-maiolica-grid .approved-maiolica-right{display:none!important}
body.standard-game-page .approved-maiolica-grid .approved-maiolica-card{display:contents!important}
body.standard-game-page .approved-maiolica-grid .tray-heading{display:none!important}
body.standard-game-page .approved-maiolica-grid .rotation-controls{display:flex!important;margin-top:8px!important}
body.standard-game-page .approved-maiolica-grid .mode-controls{position:absolute;left:10px;bottom:0;visibility:hidden;pointer-events:none}
body.standard-game-page .approved-maiolica-grid .board{width:var(--sgp-board-size,350px)!important;height:var(--sgp-board-size,350px)!important;max-width:100%!important;aspect-ratio:1!important}
body.standard-game-page .sgp-stage .desktop-extras{display:none!important}
@media(min-width:1024px) and (max-width:1399px){.sgp-member .sgp-gp-grid{grid-template-columns:320px minmax(0,1fr)}}
@media(max-width:1023px){body.standard-game-page{--hd:64px}.sgp-member .sgp-gp-grid{display:flex}.sgp-lb{height:auto!important}.sgp-lb .shell-rank-list{overflow:visible!important;mask-image:none!important}}
@media(min-width:1024px) and (max-width:1399px) and (orientation:portrait){.sgp-member .sgp-gp-grid{display:flex}.sgp-lb{height:auto!important}}
@media(max-width:767px){.sgp-brand-link{gap:10px}.sgp-brand .sgp-wm{height:var(--mobile-wmh)!important}.sgp-brand-txt:not(.sgp-hp){display:none}.sgp-gp-below>.sgp-ad-300x250{display:flex}.sgp-gp-below>.sgp-ad-728x90{display:none}body.standard-game-page .sgp-strip .sgp-tbtn{min-width:36px!important;height:40px!important;padding:0 6px!important;font-size:0!important}.sgp-tools{gap:4px}.sgp-tools .shell-icon{width:20px;height:20px}}
@media(max-width:399px){.sgp-brand-link .sgp-wide-hide{display:none}}
[dir=rtl] .sgp-gp-stage{grid-column:2}[dir=rtl] .sgp-gp-left{grid-column:1}[dir=rtl] .sgp-gp-rail{padding-left:0;padding-right:calc(var(--adgap) - var(--gap))}
body.standard-game-page.approved-game-ui main{padding:0!important}body.standard-game-page.approved-game-ui>header{height:var(--hd)!important;min-height:0!important;max-height:var(--hd)!important;padding:0 16px!important;margin:0!important;display:flex!important;align-items:center!important}
.sgp-site-logo{display:flex;align-items:center}.sgp-site-logo-image{width:152px!important;height:36px!important;object-fit:contain!important}
body.standard-game-page .sgp{margin:0 auto!important;padding:20px 32px 56px!important}
.sgp-strip button[hidden]{display:none!important}.sgp-strip .sgp-icon{font-size:22px!important}
@media(max-width:1023px){body.standard-game-page .sgp{padding:12px 16px 40px!important}}
@media(max-width:767px){body.standard-game-page .sgp{padding:8px 10px 24px!important}body.standard-game-page .sgp-strip .sgp-icon{font-size:22px!important}}

.sgp-stage{container-type:size}
.sgp-su{position:absolute;inset:0;z-index:5;display:flex;align-items:center;justify-content:center;padding:clamp(10px,3cqw,22px);
  background:rgba(7,11,34,.72);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);font-family:var(--rv-font-body);color:#eef4ff}
.sgp-su *{box-sizing:border-box}
.sgp-su-lbl{font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#8d9fd0;margin:0 0 7px 2px}
.sgp-su-start{width:100%;height:54px;border:0;border-radius:999px;background:#c4fa72;color:#0b1030;font-weight:800;font-size:18px;display:flex;align-items:center;justify-content:center;gap:10px;box-shadow:0 6px 0 #86b83e;font-family:var(--rv-font-display);letter-spacing:.02em}
.sgp-su-sum{margin:12px 0 0;text-align:center;font-size:12.5px;color:#9fb0d9}
.sgp-su-sum b{color:#eef4ff;font-weight:700}
.sgp-plus-pill{display:inline-flex;align-items:center;gap:4px;height:20px;padding:0 7px;border-radius:999px;background:#7c5cff;color:#fff;font-size:12px;font-weight:800;letter-spacing:.02em}

.sgp-sa{width:min(100%,430px);max-height:100%;overflow:auto;scrollbar-width:none;background:#131b47;border:1px solid #2e3c7c;border-radius:26px;padding:16px 16px 14px;box-shadow:0 30px 60px rgba(0,0,0,.45)}
.sgp-sa-head{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.sgp-sa-head .sgp-t{font-family:var(--rv-font-display);font-weight:800;font-size:20px;letter-spacing:-.01em;margin-left:auto;color:#cfd9f7}
.sgp-sa-who{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.sgp-sa-tile{position:relative;border-radius:18px;background:#0d1438;border:2px solid #29366f;padding:12px 10px 11px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:3px}
.sgp-sa-tile b{font-size:15.5px;margin-top:4px}.sgp-sa-tile span{font-size:12px;color:#9fb0d9}
.sgp-sa-tile.sgp-on{border-color:#c4fa72;background:linear-gradient(#1f2c6e,#18235a);box-shadow:0 0 0 4px rgba(196,250,114,.12)}
.sgp-sa-tile .sgp-ck{position:absolute;top:8px;right:8px;width:22px;height:22px;border-radius:50%;background:#c4fa72;display:flex;align-items:center;justify-content:center}
.sgp-sa-seg{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;border-radius:16px;background:#0d1438;border:1px solid #29366f;margin-bottom:14px}
.sgp-sa-seg div{height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:6px;font-weight:700;font-size:14px;color:#aebce3}
.sgp-sa-seg div .sgp-b{display:flex;gap:1px;color:#55648f}
.sgp-sa-seg div.on{background:#c4fa72;color:#0b1030}.sgp-sa-seg div.on .sgp-b{color:#0b1030}
.sgp-sa-opts{display:grid;gap:8px;margin-bottom:16px}
.sgp-sa-opt{height:48px;border-radius:14px;background:#0d1438;border:2px solid #29366f;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:700;font-size:14.5px;position:relative}
.sgp-sa-opt.sgp-on{border-color:#c4fa72;background:#1d2a6b}
.sgp-sa-opt.lock{color:#8d9fd0}
.sgp-sa-opt .sgp-plus-pill{position:absolute;top:-9px;right:8px}
@container (min-height:600px){.sgp-sa{padding:22px 22px 18px}.sgp-sa-tile{padding:16px 12px 14px}.sgp-sa-head{margin-bottom:18px}}

.sgp-sa-who.sgp-n3{grid-template-columns:repeat(3,1fr)}
.sgp-sa-who.sgp-n3 .sgp-sa-tile{padding:10px 6px 9px}.sgp-sa-who.sgp-n3 .sgp-sa-tile b{font-size:14px}.sgp-sa-who.sgp-n3 .sgp-sa-tile svg{width:42px;height:42px}
.sgp-sa-tile .sgp-plus-pill,.sgp-sa-opt .sgp-plus-pill{position:absolute;top:-9px;right:8px}
.sgp-sa-who.sgp-n3 .sgp-sa-tile .sgp-plus-pill{right:auto;left:50%;transform:translateX(-50%);font-size:12px;padding:0 6px;height:18px;white-space:nowrap}
.sgp-sa-who.sgp-n3 .sgp-sa-tile .sgp-plus-pill svg{width:10px;height:10px}
.sgp-sa-tile.lock{color:#aebce3}
.sgp-sa-opts{grid-auto-rows:minmax(48px,auto)}
.sgp-sa-opt{height:auto;min-height:48px;padding:6px 8px;flex-wrap:wrap;text-align:center;line-height:1.15}
.sgp-sa-opt small{display:block;width:100%;font-size:12px;font-weight:500;color:#9fb0d9}
.sgp-sa-opt.sgp-on small{color:#cfe0a8}
.sgp-sa-list{display:grid;gap:8px;margin-bottom:16px}
.sgp-sa-row{position:relative;min-height:58px;border-radius:16px;background:#0d1438;border:2px solid #29366f;display:flex;flex-direction:column;justify-content:center;padding:8px 14px}
.sgp-sa-row b{font-size:15px}.sgp-sa-row small{font-size:12px;color:#9fb0d9;margin-top:2px}
.sgp-sa-row.sgp-on{border-color:#c4fa72;background:#1d2a6b}
.sgp-sa-row .sgp-plus-pill{position:absolute;top:50%;right:12px;transform:translateY(-50%)}
.sgp-sa-row .sgp-ck{position:absolute;top:50%;right:12px;transform:translateY(-50%);width:22px;height:22px;border-radius:50%;background:#c4fa72;display:flex;align-items:center;justify-content:center}
.sgp-sa-slots{display:grid;gap:8px;margin-bottom:14px}
.sgp-sa-slot{height:50px;border-radius:14px;background:#0d1438;border:2px solid #29366f;display:flex;align-items:center;gap:10px;padding:0 6px 0 12px}
.sgp-sa-slot b{font-size:14.5px;flex:1}
.sgp-sa-slot.me{border-color:#c4fa72;background:#1d2a6b}
.sgp-sa-pick{height:36px;border-radius:10px;background:#18225a;display:flex;align-items:center;gap:2px;padding:0 4px;font-size:13px;font-weight:700;color:#dbe4ff;min-width:150px;justify-content:space-between}
.sgp-sa-pick span{flex:1;text-align:center}
.sgp-sa-pick.off{color:#7d8cbc}
.sgp-sa-pick svg{width:16px;height:16px;color:#8d9fd0}
.sgp-sa-squad{display:flex;align-items:center;gap:6px;margin-bottom:16px}
.sgp-sa-shirt{position:relative;width:42px;height:42px}
.sgp-sa-shirt b{position:absolute;inset:9px 0 0;text-align:center;font-family:var(--rv-font-display);font-size:13px;color:#fff}
.sgp-sa-edit{margin-left:auto;height:36px;padding:0 12px;border-radius:999px;border:1.5px solid #3a4890;display:flex;align-items:center;font-size:13px;font-weight:700}
.sgp-sa-head .sgp-t{white-space:nowrap}
@container (max-width:380px){.sgp-sa-head .sgp-t{font-size:17px}.sgp-sa{padding:14px 12px 12px}}
.sgp-setup-group{border:0;padding:0;margin:0}.sgp-setup-brand{display:flex;align-items:center}.sgp-setup-brand .sgp-gicon{width:32px;height:32px}.sgp-setup-brand .sgp-wm{height:28px;width:auto;max-width:110px}.sgp-setup-brand .sgp-brand-link{gap:7px}.sgp-setup-art{width:52px;height:52px}.sgp-sa-head .sgp-t{font-size:18px}.sgp-sa-seg .sgp-sa-opt{min-height:40px}.sgp-sa-slot{height:auto;min-height:50px}.sgp-su-start b{font-size:18px}.sgp-su[hidden]{display:none}.sgp-match-chip:before{content:'';width:9px;height:9px;border-radius:50%;background:#c4fa72}
@media(max-width:767px){body.standard-game-page .sgp-gp-below>.sgp-ad-300x250{display:flex!important}.sgp-tools #pause:before{content:'Ⅱ';font-size:20px}.sgp-tools #pause[aria-pressed=true]:before{content:'▷'}}
body.standard-game-page .sgp-member .sgp-gp-below{display:none!important}
.sgp-lb .sgp-seg button[aria-pressed=true]{background:#25327a;color:white}
.sgp-lb .shell-rules{display:block;margin-top:auto;text-align:center;font-size:12px}.sgp-lb .shell-rank-modes{display:none}.sgp-lb .shell-rank-list{mask-image:linear-gradient(#000 calc(100% - 36px),transparent)}
@media(max-width:1023px){.sgp-lb .shell-rank-list{mask-image:none!important}}

.sgp{max-width:1680px;overflow-x:clip}.sgp-setup-group{border:0;padding:0;margin:0}.sgp-sa button{font-family:var(--rv-font-body);color:#eef4ff}.sgp-sa .sgp-su-start,.sgp .sgp-btn-lime{color:#0b1030;font-weight:800}.sgp-sa-seg .sgp-sa-opt.sgp-on{background:#c4fa72;color:#0b1030}.sgp-sa-head{flex-wrap:wrap}.sgp-setup-brand .sgp-wm{max-width:120px!important;max-height:40px!important}.sgp-setup-brand .sgp-gicon{width:32px;height:32px}.sgp-setup-art{width:52px;height:52px}.sgp-tools{margin-left:auto}.sgp-tools .sgp-tbtn{flex:none}.sgp-tools .sgp-icon{width:44px!important;max-width:44px!important;padding:0!important}.sgp-tools .sgp-icon:last-child{font-size:22px!important}.sgp-site-logo{flex:none!important;width:auto!important}.standard-game-page .shell-game-header .game-identity{width:auto!important;flex:none!important}.standard-game-page .shell-game-header{flex-wrap:nowrap!important;justify-content:space-between!important}.standard-game-page .shell-game-header .site-menu{margin-left:auto!important}.standard-game-page .sgp-partner.sgp-acireale img{width:20px;height:20px}.standard-game-page .sgp-partner.sgp-lasicilia img{max-width:90px;height:14px}.sgp-match-chip{max-width:calc(100% - 172px);overflow:hidden;text-overflow:ellipsis}
@media(max-width:767px){body.standard-game-page .sgp-tools .sgp-icon{width:36px!important;max-width:36px!important}.sgp-gp-below>.sgp-ad-728x90{display:none!important}.sgp-tools #pause{width:36px!important;max-width:36px!important}.sgp-match-chip{font-size:12px}}
body.standard-game-page.approved-game-ui header.shell-game-header.shell-game-header{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;justify-content:space-between!important;align-items:center!important;height:var(--hd)!important;min-height:var(--hd)!important;padding:0 16px!important;gap:10px!important}body.standard-game-page.approved-game-ui header.shell-game-header .game-identity.game-identity{flex:none!important;width:auto!important;display:flex!important;text-align:start!important}body.standard-game-page.approved-game-ui header.shell-game-header .shell-menu.shell-menu{margin-left:auto!important;order:4!important}body.standard-game-page.approved-game-ui header.shell-game-header .shared-search.shared-search{display:grid!important;order:3!important;margin-left:auto!important;width:44px!important;height:44px!important}body.standard-game-page.approved-game-ui .sgp-strip .sgp-tools button.sgp-tbtn{flex:none!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;padding:0!important;font-size:0!important}body.standard-game-page.approved-game-ui .sgp-strip .sgp-tools button.sgp-icon{font-size:22px!important}.sgp-tools #pause:before{content:'Ⅱ';font-size:20px}.sgp-tools #pause[aria-pressed=true]:before{content:'▷'}.sgp-gp-below>.sgp-ad-300x250{display:none}.standard-game-page main>.sidebar{display:none!important}.sgp-lb .shell-own-rank{display:flex!important;gap:8px;padding:12px;background:#c4fa72!important;color:#0b1030!important;border-radius:14px;margin:8px}.sgp-lb .shell-own-rank span{min-width:0}.sgp-lb .shell-own-rank small{font-size:12px;color:#0b1030}.sgp-lb .shell-rank-person{min-width:0}.sgp-lb .shell-rank-person bdi{overflow:hidden;text-overflow:ellipsis}
@media(max-width:767px){body.standard-game-page.approved-game-ui .sgp-strip .sgp-tools button.sgp-tbtn{width:36px!important;min-width:36px!important;max-width:36px!important;height:40px!important}.sgp-gp-below>.sgp-ad-300x250{display:flex!important}.sgp-gp-below>.sgp-ad-728x90{display:none!important}}
.sgp-sa-pick button{background:none;border:0;font-size:24px;color:#9fb0d9;padding:0 5px;cursor:pointer}.sgp-sa-player-editor{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.sgp-sa-player-editor>.sgp-su-start{grid-column:1/-1}.sgp-sa-shirt img{width:42px;height:42px}.sgp-strip{position:relative}.sgp-sc-float{pointer-events:none}.sgp-sc-best.sgp-hit{background:linear-gradient(130deg,#ffe899,#ffcb4b)!important}.sgp-sc-best.sgp-hit small,.sgp-sc-best.sgp-hit b{color:#45320b!important}.sgp-sa-tile.sgp-on:after{content:'✓';position:absolute;right:8px;top:8px;background:#c4fa72;color:#0b1030;width:22px;height:22px;display:grid;place-items:center;border-radius:50%}.sgp-sa-seg .sgp-sa-opt:nth-child(1):after{content:'ϟ'}.sgp-sa-seg .sgp-sa-opt:nth-child(2):after{content:'ϟϟ'}.sgp-sa-seg .sgp-sa-opt:nth-child(3):after{content:'ϟϟϟ'}.sgp-sa-seg .sgp-sa-opt{display:flex;flex-direction:column;gap:2px}.sgp-sa-seg .sgp-sa-opt:after{font-size:12px;letter-spacing:1px;color:#56c8f2}.sgp-sa-seg .sgp-sa-opt.sgp-on:after{color:#0b1030}.sgp-sa .sgp-sa-head .sgp-t{font-size:18px}
body.standard-game-page[data-game-frame] .sgp-stage .actions{display:none!important}.sgp-brand-txt.sgp-hp{display:flex!important}
@media(max-width:767px){.sgp-brand-txt.sgp-hp{border:0;margin-left:auto;padding-left:0}.sgp-brand-txt.sgp-hp .sgp-cat{display:none}.sgp-brand{width:100%}.sgp-brand-link{max-width:100%}.sgp-brand-txt.sgp-hp+.sgp-brand-link{min-width:0}}
.sgp-mode-picker{font:700 12px var(--rv-font-body);background:#202c58;color:#dce7ff;border:1px solid #34427a;border-radius:9px;padding:6px;max-width:120px}.sgp-lb .shell-rank-heading{padding:16px}.sgp-lb .shell-rank-heading h2{margin:0;width:100%;text-align:start}.sgp-lb .shell-rank-heading button{padding:0;border:0;background:none;color:#b6c9f4;font-size:12px}.sgp-lb>.sgp-seg{margin:0 16px 8px}.sgp-lb .shell-own-rank{margin:8px 16px}.sgp-lb>.shell-rules{padding:12px;display:block!important}
.sgp-sa .sgp-sa-edit{background:none;color:#eef4ff;border-color:#3a4890;font-weight:700}.sgp-sa .sgp-sa-head .sgp-t{text-align:right}
body.standard-game-page header .rh-navigation .rh-spin{order:0!important}body.standard-game-page header .rh-navigation .rh-nav-item{order:0!important}
body.standard-game-page .sgp-lb .shell-rank-row{display:flex!important}.sgp-lb .shell-demo-item{list-style:none}.sgp-lb .shell-rank-list{padding:0 12px}.sgp-lb [data-virtual-leaderboard]{margin:0}.sgp-lb .shell-rank-status{margin:4px 16px;font-size:12px}.sgp-lb .shell-rank-heading{flex:none}.sgp-lb>.shell-own-rank{flex:none}.sgp-lb .shell-rank-list{overscroll-behavior:contain}.sgp-brand-txt.sgp-hp{flex:none}
.sgp-settings{border:1px solid #34457a;border-radius:24px;padding:24px;background:#121a3d;color:#eef4ff;max-width:min(430px,calc(100vw - 24px));font-family:var(--rv-font-body)}.sgp-settings::backdrop{background:#070b22bb}.sgp-settings h2{margin-top:0}.sgp-settings .mode-controls{display:flex!important;position:static!important;visibility:visible!important;pointer-events:auto!important;flex-wrap:wrap;gap:12px}.sgp-settings .mode-controls label{display:block;width:100%}.sgp-settings>.sgp-tbtn{margin-bottom:18px;color:#eef4ff}
/* Keep the original MAIOLICA controls compact inside the standard frame at every width. */
body[data-page=maiolica].has-game-shell.standard-game-page .sgp-stage .approved-maiolica-board{order:0!important}
body[data-page=maiolica].has-game-shell.standard-game-page .sgp-stage .approved-maiolica-left{order:1!important;flex:0 0 auto!important}
body[data-page=maiolica].has-game-shell.standard-game-page .sgp-stage .tray-heading{display:none!important}
body[data-page=maiolica].has-game-shell.standard-game-page .sgp-stage .tray-window:not(.flow) .tray{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;min-height:0!important}
body[data-page=maiolica].has-game-shell.standard-game-page .sgp-stage .tray-window.flow .tray{display:flex!important;flex-wrap:nowrap!important}
body[data-page=maiolica].has-game-shell.standard-game-page .sgp-stage .rotation-controls{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
body[data-page=maiolica].has-game-shell.standard-game-page .sgp-stage .rotation-controls #rotate{grid-column:auto!important}
body[data-page=maiolica].has-game-shell.standard-game-page .sgp-stage .approved-maiolica-left{height:auto!important;min-height:0!important;max-height:none!important}

/* Size from the actual available viewport, including the shared header. */
body.standard-game-page .sgp-frame{height:var(--frame-h)!important;min-height:0!important}
body.standard-game-page .sgp-stage{min-width:0;min-height:0}
body.standard-game-page .sgp-strip{--strip:56px;min-height:56px;gap:4px}
body.standard-game-page .sgp-score small{font-size:12px!important;letter-spacing:0}
body.standard-game-page .sgp-score div{min-width:42px;padding-inline:6px}
body.standard-game-page .sgp-score .sgp-sc-best{min-width:54px}
body.standard-game-page.approved-game-ui .sgp-strip .sgp-tools button.sgp-tbtn{width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important}
.sgp-tools{gap:8px;flex-shrink:0}.sgp-match-chip{font-size:12px!important;white-space:normal;min-width:0;overflow-wrap:anywhere}
.sgp-ad[hidden]{display:none!important}.sgp-ad-size{display:none!important}
.sgp-actions{display:flex;justify-content:center;gap:10px;padding:8px;flex-wrap:wrap}
.sgp-actions button{min-height:44px;padding:10px 18px;border:1px solid #56c8f2;border-radius:14px;background:#172440;color:#eef4ff;font:700 14px var(--rv-font-body)}
.sgp-lb .shell-own-rank{flex-wrap:wrap!important;align-items:center}.sgp-lb .shell-own-rank>span{flex:1;min-width:90px}.sgp-lb .shell-own-rank>small{flex:0 0 auto;margin-left:auto;font-size:12px!important}
.sgp-lb .shell-own-rank small{font-size:12px!important}.sgp-lb .shell-rank-person bdi{display:block;max-width:100%}
.sgp-gp-below{padding-top:0!important}.sgp-gp-rail:has(.sgp-ad[hidden]){padding-left:0}
.sgp-sa-pick button{min-width:44px;min-height:44px}.sgp-kids-controls{justify-content:flex-end}
@media(min-width:1400px){.sgp-gp-grid{grid-template-columns:260px minmax(0,1fr) 260px;gap:20px}.sgp-plus-card{width:100%}}
@media(max-width:767px){.sgp-strip .sgp-score .sgp-sc-best{min-width:54px}.sgp-tools{gap:6px}.sgp-score div{padding-inline:4px}.sgp-brand-link{gap:10px}}
body.standard-game-page .sgp .sgp-ad[hidden]{display:none!important}

/* Keep a visible gap between MAIOLICA piece choices and their action row. */
body[data-page=maiolica].has-game-shell.standard-game-page .sgp-stage .rotation-controls{margin-top:8px!important;gap:8px!important}

@media(max-width:359px){body.standard-game-page .sgp-strip{padding-inline:4px}body.standard-game-page .sgp-strip .sgp-score div{padding-inline:0}body.standard-game-page .sgp-strip .sgp-score .sgp-sc-best{min-width:42px}}

/* Keep PULSE's original arena and input handlers inside the shared frame. */
body.standard-game-page[data-page=pulse] main>:is(.family-controls,.family-info){display:none!important}
body.standard-game-page[data-page=pulse] .sgp-stage>.game-shell{display:flex!important;flex-direction:column;height:100%!important;min-height:0!important;width:100%!important;max-width:none!important;margin:0!important;padding:8px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
body.standard-game-page[data-page=pulse] .sgp-stage .arena{flex:1;min-height:0;width:100%;aspect-ratio:auto;border:0;border-radius:0;background:transparent;box-shadow:none}
body.standard-game-page[data-page=pulse] .sgp-stage .arena svg{display:block;width:100%;height:100%}
body.standard-game-page[data-page=pulse] .sgp-stage .toast{display:none}
.sgp-pulse-lives{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;flex:none;font-size:11px;color:#aebbd8}
.sgp-pulse-lives strong{font-size:16px;line-height:1.1;color:#ff8275;min-width:40px}
@media(max-width:480px){body.standard-game-page[data-page=pulse] .readout strong{font-size:28px}body.standard-game-page[data-page=pulse] .readout small{font-size:10px;letter-spacing:1px}}

/* Preserve the memory engine's board and fit it inside the shared first screen. */
body.standard-game-page .sgp-memory-play{width:100%;height:100%;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:8px;box-sizing:border-box}
body.standard-game-page .sgp-memory-play .memory-board{flex:none;width:var(--sgp-memory-size);height:var(--sgp-memory-size);max-width:100%;box-sizing:border-box;grid-template-rows:repeat(4,minmax(0,1fr));padding:8px;gap:6px}
body.standard-game-page[data-page=skyline] .sgp-memory-play .memory-board{grid-template-rows:repeat(3,minmax(0,1fr))}
body.standard-game-page .sgp-memory-play .memory-tile{min-width:0;min-height:0;aspect-ratio:auto;padding:0}
body.standard-game-page .sgp-memory-turns{display:flex;align-items:center;gap:8px;color:#a9bddc;font-size:13px}
body.standard-game-page .sgp-memory-turns strong{color:#ffdb59;font-size:16px}
body.standard-game-page .sgp-memory-play .memory-reward{margin:0;width:auto;min-height:36px;font-size:12px}

/* Keep FALL’s start action visible while its mode list scrolls on short screens. */
.sgp-su[data-setup-game="fall"] .sgp-sa{display:flex;flex-direction:column}
.sgp-su[data-setup-game="fall"] .sgp-mode-scroll{min-height:0;overflow:auto;margin-bottom:8px}
.sgp-su[data-setup-game="fall"] .sgp-sa-head,.sgp-su[data-setup-game="fall"] .sgp-su-start,.sgp-su[data-setup-game="fall"] .sgp-su-sum{flex-shrink:0}
