/* Supreme Signature V4 · home approval candidate. One composition, two palettes. */
body.supreme-home,#arena-menu .ss-menu-modes{--ss-paper:#fcf7ed;--ss-ink:#251e15;--ss-muted:#72614a;--ss-metal-light:#fff1b6;--ss-metal:#c6a05b;--ss-metal-dark:#8d682c;--ss-shadow:#5a391c24;--ss-art-light:1;--ss-art-saturation:1.02;--ss-art-contrast:1.06;--ss-title-shadow:0 1px 1px #fff9;--ss-marble-opacity:1;--ss-base:#f6f0e6;--ss-glaze:linear-gradient(90deg,transparent 12%,#fff9ed00 24%,#fff9ed9c 31%,#fff9ed94 58%,#fff9ed00 81%);--ss-nav:#fbf5e9;--ss-nav-active:#ebce8c;--ss-card-height:76px;--ss-space:10px;--ss-font:Georgia,'Times New Roman',serif}
body.supreme-home{isolation:isolate;background:var(--ss-base)!important;color:var(--ss-ink);font-family:system-ui,-apple-system,'Segoe UI',sans-serif}
body.supreme-home[data-theme=dark],body[data-theme=dark] #arena-menu .ss-menu-modes{--ss-paper:#191714;--ss-ink:#fff1d1;--ss-muted:#c5b699;--ss-metal-light:#f5df9c;--ss-metal:#ba9553;--ss-metal-dark:#725020;--ss-shadow:#00000080;--ss-art-light:.98;--ss-art-saturation:.98;--ss-art-contrast:1.03;--ss-title-shadow:0 1px 3px #000b;--ss-marble-opacity:.11;--ss-base:#0e0e10;--ss-glaze:linear-gradient(90deg,#11111300 11%,#11111333 22%,#111113de 32%,#111113e0 62%,#11111314 84%,#11111300 100%);--ss-nav:#151414;--ss-nav-active:#5f461f}
body.supreme-home::before{position:fixed!important;inset:0!important;z-index:-1!important;pointer-events:none!important;content:''!important;background:url('/assets/supreme-signature-v4/pearl-marble.webp') center top/cover no-repeat!important;opacity:var(--ss-marble-opacity)!important;filter:none!important;transform:none!important;animation:none!important}
body.supreme-home .wrap{max-width:680px!important;min-height:100svh;padding:8px clamp(12px,3.5vw,24px) calc(90px + env(safe-area-inset-bottom))!important}
body.supreme-home .wrap>header.hero,body.supreme-home #stats{display:none!important}
body.supreme-home #app{margin:0;padding:0}
body.supreme-home .ss-home{width:100%;position:relative}
.ss-home *{box-sizing:border-box}
.ss-home button,.ss-home a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.ss-sr{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.ss-home-header{position:relative;height:96px;display:grid;grid-template-columns:52px minmax(0,1fr) 42px;align-items:center;column-gap:6px;padding:0 2px;margin-bottom:5px}
.ss-wordmark{position:relative;min-width:0;height:100%;display:flex;align-items:center;justify-content:center;padding:12px 14px 0;text-align:center}
.ss-brand-laurels{position:absolute;inset:4%;width:92%;height:92%;object-fit:fill;pointer-events:none}
.ss-wordmark h1{position:relative;z-index:1;margin:0;padding:0 0 8px;font:700 clamp(18px,4.4vw,26px)/1.08 var(--ss-font);letter-spacing:-.04em;color:var(--ss-ink);text-shadow:0 1px 0 #fff4;text-wrap:balance;max-width:220px}
.ss-wordmark-rule{position:absolute;bottom:17px;left:27%;right:27%;height:1px;background:linear-gradient(90deg,transparent,var(--ss-metal),transparent)}
.ss-player{display:flex;flex-direction:column;align-items:center;align-self:center;text-decoration:none!important;gap:3px;color:var(--ss-ink)!important;min-width:0}
.ss-player-medal{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;border:2px solid var(--ss-metal);background:linear-gradient(135deg,#ffefbb,#b78636 45%,#fcebb1 65%,#9f7029);box-shadow:0 2px 5px var(--ss-shadow),inset 0 0 0 2px #fff8}
.ss-player-medal img{border-radius:50%;width:32px;height:32px;object-fit:cover}
.ss-player-rank{max-width:65px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:700 9px/1.5 var(--ss-font);background:var(--ss-paper);border:1px solid var(--ss-metal);border-radius:5px;padding:0 4px}
.ss-settings{display:grid;place-items:center;align-self:center;width:36px!important;height:36px!important;min-height:36px!important;margin:0!important;padding:5px!important;border:1px solid var(--ss-metal)!important;border-radius:50%!important;background:linear-gradient(150deg,var(--ss-paper),var(--ss-nav-active))!important;color:var(--ss-metal-dark)!important;box-shadow:0 2px 5px var(--ss-shadow),inset 0 0 0 2px #fff3!important}
.ss-build{position:absolute;right:0;bottom:4px;font-size:8px;line-height:1.5;letter-spacing:.04em;color:var(--ss-muted)}
.ss-icon{display:inline-block;flex:none;width:24px;height:24px;overflow:visible}
.ss-home-wallet{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:0 1px}
.ss-wallet-pill{display:flex;align-items:center;justify-content:center;gap:5px;height:32px;min-width:0;padding:3px 5px;border:1px solid var(--ss-metal);border-radius:12px;background:linear-gradient(150deg,var(--ss-paper),var(--ss-nav));box-shadow:0 2px 4px var(--ss-shadow),inset 0 1px 0 #fff9}
.ss-wallet-pill .ss-icon{width:22px;height:22px}
.ss-wallet-pill strong{font:700 clamp(11px,2.6vw,14px)/1 system-ui,sans-serif;letter-spacing:-.035em;white-space:nowrap;color:var(--ss-ink)}
.ss-home-context{display:flex;align-items:center;justify-content:space-between;margin:10px 4px 12px;color:var(--ss-muted);font:600 10px/1.4 system-ui,sans-serif;letter-spacing:.03em}
.ss-home-context>span:last-child{display:flex;align-items:center;gap:4px}
.ss-home-context .ss-icon{width:14px;height:14px}
.ss-home-modes{display:flex;flex-direction:column;gap:var(--ss-space)}
.ss-arena-card{position:relative;isolation:isolate;display:flex;align-items:center;width:100%;height:var(--ss-card-height);min-height:var(--ss-card-height);padding:0 50px 0 30%;overflow:hidden;border:1px solid var(--ss-metal-dark);border-radius:13px;background:var(--ss-paper);box-shadow:0 3px 6px var(--ss-shadow),0 0 0 1px var(--ss-metal-light),inset 0 0 0 2px #fff9;transition:transform .16s ease,box-shadow .16s ease}
.ss-arena-card::after{content:'';position:absolute;inset:2px;z-index:4;border:1px solid #ffeec16b;border-radius:10px;pointer-events:none;box-shadow:inset 0 1px 0 #fff9,inset 0 -1px 1px #704d2638}
.ss-arena-art{position:absolute;z-index:-2;inset:0;background-image:url('/assets/supreme-signature-v4/arena-atlas.webp');background-size:100% 700%;background-position:center var(--ss-art-position);background-repeat:no-repeat;filter:brightness(var(--ss-art-light)) contrast(var(--ss-art-contrast)) saturate(var(--ss-art-saturation));pointer-events:none}
.ss-arena-glaze{position:absolute;z-index:-1;inset:0;background:var(--ss-glaze);pointer-events:none}
.ss-arena-card .ss-arena-title{font:700 clamp(16px,4.2vw,24px)/1.2 var(--ss-font);letter-spacing:-.025em;color:var(--ss-ink);margin:0;max-width:100%;text-shadow:var(--ss-title-shadow);text-wrap:balance;pointer-events:none}
.ss-arena-open{position:absolute!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;width:100%!important;height:100%!important;min-height:44px!important;margin:0!important;padding:0 11px!important;border:0!important;border-radius:12px!important;box-shadow:none!important;background:transparent!important;color:var(--ss-ink)!important}
.ss-arena-arrow{display:grid;place-items:center;width:30px;height:30px;border:1px solid #8b5e23;border-radius:50%;background:linear-gradient(135deg,#fff4c9,#ddbc74 45%,#ab7e37 48%,#f7dfa6 72%,#ffe9b0);box-shadow:0 1px 4px #42270766,inset 0 0 0 2px #ffefba}
.ss-arena-arrow .ss-icon{width:19px;height:19px;color:#493014;filter:drop-shadow(0 1px 0 #fff8)}
.ss-arena-locked{position:absolute;right:8px;top:0;bottom:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--ss-ink);font-size:8px;font-weight:700}
.ss-arena-locked .ss-icon{width:22px;height:22px}
.ss-arena-card.is-locked .ss-arena-art{filter:brightness(var(--ss-art-light)) saturate(.35)}
.ss-home :is(button,a):focus-visible{outline:3px solid var(--ss-metal-dark)!important;outline-offset:3px}
@media(hover:hover){.ss-arena-card.is-ready:hover{transform:translateY(-1px);box-shadow:0 6px 16px var(--ss-shadow),0 0 0 1px var(--ss-metal-light)}}
/* Keep the four real destinations and the existing navigation controller. */
body.supreme-home #nav{position:fixed!important;left:50%!important;right:auto!important;bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;transform:translateX(-50%)!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:2px!important;width:calc(100% - 20px)!important;max-width:640px!important;height:70px!important;padding:5px!important;border:1px solid var(--ss-metal-dark)!important;border-radius:16px!important;background:linear-gradient(155deg,var(--ss-paper),var(--ss-nav))!important;box-shadow:0 0 0 1px var(--ss-metal-light),0 -3px 18px var(--ss-shadow),inset 0 1px 0 #fff9!important;backdrop-filter:none!important}
body.supreme-home #nav button{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;width:auto!important;min-height:56px!important;padding:3px!important;border:1px solid transparent!important;border-radius:11px!important;background:transparent!important;color:var(--ss-muted)!important;font-size:10px!important;font-weight:700!important;box-shadow:none!important}
body.supreme-home #nav button.on,body.supreme-home #nav button[aria-current=page]{background:linear-gradient(145deg,var(--ss-paper),var(--ss-nav-active))!important;border-color:var(--ss-metal)!important;color:var(--ss-ink)!important;box-shadow:inset 0 1px 0 #fff8,0 1px 4px var(--ss-shadow)!important}
body.supreme-home #nav svg{width:24px!important;height:24px!important;stroke:var(--ss-metal-dark)!important;stroke-width:1.7!important;filter:drop-shadow(0 1px 0 #fff7)}
body.supreme-home #nav button:focus-visible{outline:3px solid var(--ss-metal-dark)!important;outline-offset:1px}
body.supreme-home #nav .bottom-nav-label{line-height:1.2!important}
@media(max-width:360px){body.supreme-home{--ss-card-height:66px;--ss-space:9px}.ss-home-header{height:84px;grid-template-columns:44px minmax(0,1fr) 34px;column-gap:1px}.ss-wordmark{padding-inline:10px}.ss-wordmark h1{font-size:18px}.ss-player-medal{width:38px;height:38px}.ss-player-medal img{width:28px;height:28px}.ss-settings{width:32px!important;height:32px!important}.ss-build{font-size:7px}.ss-wallet-pill{gap:2px;height:30px;padding:3px}.ss-wallet-pill .ss-icon{width:19px;height:19px}.ss-arena-card{padding-right:43px}.ss-arena-card .ss-arena-title{font-size:16px}.ss-arena-arrow{width:27px;height:27px}.ss-arena-open{padding-right:8px!important}.ss-home-context{margin:9px 3px 10px}}
@media(min-width:600px){body.supreme-home{--ss-card-height:104px;--ss-space:14px}.ss-home-header{height:116px;grid-template-columns:64px minmax(0,1fr) 48px}.ss-wordmark h1{font-size:30px;max-width:290px}.ss-home-wallet{gap:12px}.ss-wallet-pill{height:38px}.ss-arena-card{padding-right:70px}.ss-arena-card .ss-arena-title{font-size:27px}.ss-arena-arrow{width:36px;height:36px}.ss-arena-open{padding-right:18px!important}.ss-home-context{margin-block:12px 18px}}
@media(prefers-reduced-motion:reduce){body.supreme-home *,body.supreme-home *::before,body.supreme-home *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* The real menu drawer remains the owner of focus, access checks and actions. */
body.supreme-home #menu-backdrop{background:#130e08aa!important;backdrop-filter:blur(4px)}
body.supreme-home #arena-menu{border:1px solid var(--ss-metal)!important;border-radius:20px!important;background:var(--ss-paper)!important;color:var(--ss-ink)!important;box-shadow:0 18px 60px var(--ss-shadow)!important}
body.supreme-home #arena-menu :is(button,.menu-heading){border-color:var(--ss-metal)!important;background:var(--ss-nav)!important;color:var(--ss-ink)!important}
body.supreme-home #arena-menu button:focus-visible{outline:3px solid var(--ss-metal-dark)!important;outline-offset:2px}

body.supreme-home .wrap>footer{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
body.supreme-home #nav button svg{display:none!important}
body.supreme-home #nav button::before{content:'';display:block;width:26px;height:26px;background:center/contain no-repeat;filter:drop-shadow(0 1px 1px var(--ss-shadow))}
body.supreme-home #nav [data-bottom-destination=home]::before{background-image:url('/assets/supreme-signature-v4/nav-home.svg')}
body.supreme-home #nav [data-bottom-destination=shop]::before{background-image:url('/assets/supreme-signature-v4/nav-shop.svg')}
body.supreme-home #nav [data-bottom-destination=profile]::before{background-image:url('/assets/supreme-signature-v4/nav-profile.svg')}
body.supreme-home #nav [data-bottom-destination=menu]::before{background-image:url('/assets/supreme-signature-v4/nav-menu.svg')}

body.supreme-home #nav .arena-bottom-nav__icon{display:none!important}
body.supreme-home #nav .arena-bottom-nav__label{line-height:1.25!important}
body.supreme-home #nav button{height:100%!important}
@media(prefers-reduced-motion:reduce){body.supreme-home #menu-backdrop{backdrop-filter:none!important}}

.ss-lives-status{min-width:0;text-align:center;font-size:9px}
.ss-lives-status .life-refill{display:block!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;background:none!important;color:var(--ss-muted)!important}
.ss-lives-status .life-refill__caption,.ss-lives-status .life-refill__track{display:none!important}
.ss-lives-status .life-refill__time{font-size:9px!important;color:var(--ss-muted)!important;white-space:nowrap}
/* Preserve the artwork's real proportions; crop the edges instead of stretching emblems. */
.ss-arena-art{inset:auto;top:50%;left:50%;width:max(100%,calc(var(--ss-card-height) * 4.666667));height:auto;aspect-ratio:14/3;transform:translate(-50%,-50%)}
body.supreme-home,#arena-menu .ss-menu-modes{--ss-focus:#86602c}
body.supreme-home[data-theme=dark],body[data-theme=dark] #arena-menu .ss-menu-modes{--ss-focus:#e5c27e}
.ss-arena-card:focus-within{outline:3px solid var(--ss-focus);outline-offset:3px}
body.supreme-home :is(.ss-home button,.ss-home a,#nav button,#arena-menu button):focus-visible{outline:3px solid var(--ss-focus)!important;outline-offset:2px}
.ss-settings{width:44px!important;height:44px!important;min-height:44px!important;padding:10px!important}
@media(max-width:360px){.ss-home-header{grid-template-columns:44px minmax(0,1fr) 44px}}

/* Retain the existing startup home marker without inheriting its former spacing. */
.ss-home.arena-home-modes{padding:0!important;margin:0!important}

.ss-arena-fallback{position:absolute;left:5%;top:50%;transform:translateY(-50%);width:19%;max-height:85%;object-fit:contain;border-radius:12px}
/* Keep a clear text lane between the smaller laurels on narrow phones. */
@media(max-width:360px){.ss-brand-laurels{inset:8% 0;width:100%;height:84%}}
/* Reserve a real viewport above the fixed navigation; one home scroll owner. */
body.supreme-home{height:100vh;height:100dvh;min-height:0!important;overflow:hidden!important}
body.supreme-home .wrap{min-height:0!important;height:calc(100vh - 90px - env(safe-area-inset-bottom,0px));height:calc(100dvh - 90px - env(safe-area-inset-bottom,0px));padding-bottom:12px!important;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:none;scroll-padding-block:8px 12px}
body.supreme-home .wrap::-webkit-scrollbar{display:none}
body.supreme-home.arena-menu-open .wrap{overflow-y:hidden}

/* The drawer uses the same cards as home, sized to its own width. */
#arena-menu-links .ss-menu-modes {
  border-color: var(--ss-metal);
  background: var(--ss-base);
}
#arena-menu-links .ss-menu-modes #arena-modes-toggle {
  box-sizing: border-box;
  color: var(--ss-ink);
  background: var(--ss-nav);
}
#arena-menu .ss-menu-modes .arena-mode-list {
  container-type: inline-size;
  gap: 7px;
  padding: 5px 7px 9px;
}
#arena-menu #arena-menu-links .ss-menu-modes .ss-arena-card {
  --ss-card-height: 56px;
  box-sizing: border-box;
  margin: 0;
  padding: 0 34px 0 30%;
  border-color: var(--ss-metal-dark) !important;
  border-radius: 11px;
  background: var(--ss-paper) !important;
  color: var(--ss-ink) !important;
  touch-action: manipulation;
}
@supports (width: 1cqw) {
  #arena-menu #arena-menu-links .ss-menu-modes .ss-arena-card {
    --ss-card-height: clamp(44px, 21.4286cqw, 68px);
  }
}
#arena-menu .ss-menu-modes .ss-arena-card::after { border-radius: 8px; }
#arena-menu .ss-menu-modes .ss-arena-title { font-size: 15px; font-size: clamp(13px, 5.3cqw, 18px); }
#arena-menu .ss-menu-modes .ss-arena-menu-end { position: absolute; right: 7px; }
#arena-menu .ss-menu-modes .ss-arena-arrow { width: 24px; height: 24px; }
#arena-menu .ss-menu-modes .ss-arena-arrow .ss-icon { width: 15px; height: 15px; }
#arena-menu .ss-menu-modes .ss-arena-locked { right: 5px; font-size: 7px; }
#arena-menu .ss-menu-modes .ss-arena-locked .ss-icon { width: 17px; height: 17px; }
#arena-menu .ss-menu-modes .ss-arena-card:disabled { cursor: not-allowed; opacity: 1; }
#arena-menu #arena-menu-links .ss-menu-modes .ss-arena-card[aria-current="page"] { border-color: var(--ss-metal) !important; }
#arena-menu #arena-menu-links .ss-menu-modes .ss-arena-card:focus-visible { outline: 2px solid var(--ss-focus) !important; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  #arena-menu .ss-menu-modes .ss-arena-card { transition: none; }
}
