body.guest-shell {
  --mast: 64px;
  --gs-bar: #16162f;
  --gs-ink: #abadcc;
  --gs-slide: 200ms cubic-bezier(.2,.9,.3,1);
}
html:has(> body.guest-shell) { scroll-padding-block: 64px calc(66px + env(safe-area-inset-bottom)); }
body.guest-shell > .gs-footer { display:none; }

body.guest-shell .mast > :not(.gs-bar),
body.guest-shell .frame > .rail { display: none; }

body.guest-shell > header.mast:has(> .gs-bar) {
  padding: 0;
  min-height: var(--mast);
  border: 0;
  background: var(--gs-bar);
  box-shadow: 0 4px 12px #00000038;
}
body.guest-shell .frame { display: block; max-width: none; }
.gs-bar {
  display: flex; align-items: center; width: 100%; min-height: var(--mast);
  padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
}
.gs-bar, .gs-links {
  font-family: 'Proxima Nova', system-ui, sans-serif;
  font-feature-settings: 'salt';
  -webkit-font-smoothing: antialiased;
}
.gs-wordmark, .gs-account a, .gs-tab { display: flex; align-items: center; justify-content: center; }
.gs-tools {
  display: none; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 12px; background: transparent; color: var(--gs-ink);
}
.gs-tools svg { width: 22px; height: 22px; }
.gs-tools:hover { background-color: #ffffff0a; color: white; }
.gs-wordmark { height: 34px; align-items: flex-start; gap: 8px; }
.gs-brand-mark { width: 28px; height: 28px; }
.gs-brand-text { display: none; width: auto; height: 14px; margin-top: 7px; }
.gs-account { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.gs-account a {
  height: 40px; padding: 0 16px; font-size: 13px; font-weight: 900;
  -webkit-text-stroke: .03em currentColor; color: var(--gs-ink); white-space: nowrap;
  border-radius: 11px; background: linear-gradient(#2e2e56, #2e2e56);
}
.gs-account a:last-child {
  color: white; border: 2px solid transparent;
  background: linear-gradient(#2f10ba,#6443f5) padding-box, linear-gradient(#4424d1,#7b5dff) border-box;
  box-shadow: 0 6px 20px #0000001a;
}
.gs-account a:hover { filter: brightness(1.08); }

.gs-links {
  --gs-selected: linear-gradient(135deg, transparent 14%, #ffffff17 24%, transparent 34%) padding-box, linear-gradient(135deg, #3f3f70 0%, #2e2e56 30%, #1e1e3f 52%, #383867 72%, #27284d 100%) padding-box, linear-gradient(#62629a, #131330) border-box;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: 64px;
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
}
.gs-tab {
  flex-direction: column; gap: 4px; min-width: 0; color: #9699be;
  font-size: 11px; line-height: 16.5px; font-weight: 700;
}
.gs-icon {
  display: grid; place-items: center; width: min(56px, 100%); height: 32px; border: 1px solid transparent;
  border-radius: 999px; transition: transform 125ms cubic-bezier(.22,1,.36,1);
}
.gs-icon svg { width: 22px; height: 22px; }
.gs-icon use + use, .gs-tab[aria-current] use:first-child { display: none; }
.gs-tab[aria-current] use + use { display: inline; }
.gs-tab[aria-current], .gs-modes a[aria-current] { color: white; }
.gs-tab[aria-current] .gs-icon { background: var(--gs-selected); }
@media (max-width: 1023px) {
  .gs-tab:active .gs-icon { transform: scale(.9); }
}
.gs-modes { display: none; }
.gs-bar :focus-visible, .gs-links :focus-visible {
  outline: 2px solid #f7d46e; outline-offset: -2px;
}

@media (width < 379px) {
  .gs-wordmark { display: none; }
  .gs-bar { padding-right: max(18px, env(safe-area-inset-right)); }
}
@media (width < 359px) {
  .gs-account { gap: 2px; }
  .gs-bar { padding-right: max(10px, env(safe-area-inset-right)); }
}
@media (min-width: 640px) {
  .gs-bar { padding-inline: max(32px, env(safe-area-inset-left)) max(32px, env(safe-area-inset-right)); }
  .gs-account { gap: 8px; }
}
@media (min-width: 799px) {
  .gs-brand-text { display: block; }
}

@media (min-width: 761px) and (max-width: 1023px) {
  body.guest-shell > #bottom-nav { display: block; }
  body.guest-shell .frame { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  body.guest-shell main > .store-home.store-live { --shop-bottom: calc(64px + env(safe-area-inset-bottom)); }
}
@media (min-width: 1024px) {
  body.guest-shell { --rail: 248px; }
  html:has(> body.guest-shell) { scroll-padding-bottom: 0; }
  body.guest-shell .frame { margin-left: var(--rail); min-height: calc(100dvh - var(--mast)); }
  body.guest-shell > .gs-footer { display:block; margin:24px 0 0 var(--rail); }
  .gs-bar {
    --header-gutter: max(32px, calc((100vw - var(--rail) - 1280px) / 2 + 32px));
    padding-inline: 16px var(--header-gutter);
  }
  .gs-bar::before {
    content: ''; pointer-events: none; position: absolute; inset: 0 auto 0 0; width: var(--rail);
    box-shadow: 0 4px 12px #00000038; z-index: -1;
  }
  .gs-tools { display: grid; }
  .gs-wordmark { margin-left: calc(var(--rail) + var(--header-gutter) - 60px); }
  body.guest-shell #bottom-nav { display: contents; }
  .gs-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: fixed; z-index: 3; inset: var(--mast) auto 0 0; width: var(--rail); height: auto;
    padding: 8px 12px 12px; overflow-y: auto; background: var(--gs-bar); box-shadow: inset -1px 0 #232345;
  }
  .gs-links > .limited-miami-sidebar { margin-bottom: 8px; }
  .gs-tab, .gs-mode-toggle, .gs-modes a {
    display: flex; flex-direction: row; align-items: center; justify-content: flex-start;
    flex-shrink: 0; gap: 12px; padding: 0 12px 0 15px; border: 1px solid transparent; min-height: 44px; border-radius: 12px;
    color: var(--gs-ink); font-size: 14px; font-weight: 600;
  }
  .gs-tab .gs-icon { width: 20px; height: 20px; border: 0; }
  .gs-icon svg { width: 20px; height: 20px; }
  .gs-tab:hover, .gs-modes :is(.gs-mode-toggle,a):hover { background: #ffffff0d; }
  .gs-tab[aria-current], .gs-modes a[aria-current] {
    background: var(--gs-selected);
  }
  .gs-tab[aria-current] .gs-icon { background: transparent; box-shadow: none; }
  .gs-modes { display: block; }
  .gs-mode-toggle { cursor: pointer; width: 100%; background: transparent; }
  .gs-mode-panel {
    display: grid; grid-template-rows: 1fr;
    transition: grid-template-rows var(--gs-slide), opacity var(--gs-slide);
  }
  .gs-mode-panel[inert] { grid-template-rows: 0fr; opacity: 0; }
  .gs-mode-panel > div { overflow: hidden; min-height: 0; }
  .gs-modes { transition: margin-bottom var(--gs-slide); }
  .gs-label { min-width: 0; overflow: hidden; white-space: nowrap; transition: opacity var(--gs-slide); }
  .gs-icon, .gs-mode-toggle svg { flex: none; }

  .gs-modes:has(.gs-mode-panel[inert]) { margin-bottom: -4px; }
  .gs-mode-toggle svg { width: 20px; height: 20px; }
  .gs-mode-toggle svg:last-child { margin-left: auto; width: 14px; height: 14px; transition: transform 150ms cubic-bezier(.4,0,.2,1); }
  .gs-mode-toggle[aria-expanded="true"] svg:last-child { transform: rotate(180deg); }
  .gs-modes a { margin-top: 4px; padding-inline: 24px 0; }
  .gs-modes a img { width: 24px; height: 24px; object-fit: contain; }
}

@media (min-width: 1024px) {
  body.guest-shell.rail-collapsed { --rail: 76px; }
  .guest-shell.rail-collapsed .gs-label { opacity: 0; }
  .guest-shell.rail-collapsed :is(.gs-tab,.gs-mode-toggle) { gap: 0; }
  .guest-shell.rail-collapsed .gs-modes a { justify-content: center; gap: 0; padding-inline: 0; font-size: 0; }
  .guest-shell.rail-collapsed .gs-mode-toggle svg:last-child { display: none; }
  .rail-collapsed .gs-links > .limited-miami-sidebar { justify-content: center; min-height: 52px; padding: 0; }
  .rail-collapsed .gs-links .limited-miami-copy { display: none; }
}

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .guest-shell .gs-links, .guest-shell .gs-bar::before { transition: width var(--gs-slide); }
  .guest-shell .gs-bar { transition: padding-right var(--gs-slide); }
  .guest-shell .gs-links > .limited-miami-sidebar { transition: width var(--gs-slide), min-height var(--gs-slide); }
  .guest-shell .frame, .guest-shell .gs-footer, .guest-shell .gs-wordmark { transition: margin-left var(--gs-slide); }
}
@media (prefers-reduced-motion: reduce) {
  .gs-modes, .gs-mode-panel, .gs-mode-toggle svg, .gs-label, .gs-icon { transition-duration: 0s; }
}
