
.gs-root {
  --gs-ink: #f3efff; --gs-muted: #a69fd0; --gs-line: #3b3577; --gs-panel: #17133a; --gs-chip: rgba(28, 24, 64, .85);
  --gs-accent: #ffc857; --gs-accent-ink: #2a1600; --gs-shade: rgba(6, 4, 18, .82); --gs-bg: #0e0b22;
  position: relative;
}
.gs-root, .gs-root * { box-sizing: border-box; }
.gs-bar { position: relative; z-index: 5; display: flex; align-items: center; gap: 8px; min-height: 56px;
  padding: 6px max(10px, env(safe-area-inset-right)) 6px max(12px, env(safe-area-inset-left)); }
.gs-title { font-weight: 800; letter-spacing: .12em; white-space: nowrap; font-size: 17px; color: var(--gs-ink); }
.gs-title b { color: var(--gs-accent); }
.gs-root button.gs-back { min-width: 44px; justify-content: center; border: 1px solid var(--gs-line); border-radius: 12px; background: var(--gs-chip);
  font-family: inherit; font-weight: 700; cursor: pointer; padding: 0 12px; color: var(--gs-ink); }
.gs-back[data-app-only] { display: none !important; }
.gs-app .gs-back[data-app-only] { display: inline-flex !important; }
.gs-app .gs-btn[data-gs="fs"] { display: none; }
.gs-root.gs-inpage:not(.gs-fs) { min-height: 0 !important; overflow: hidden; }
.gs-back { display: inline-flex; align-items: center; min-height: 44px; color: var(--gs-muted); text-decoration: none; font-size: 14px; white-space: nowrap; }
.gs-info { flex: 1 1 auto; min-width: 0; display: flex; gap: 6px; align-items: center; overflow: hidden; }
.gs-chip { font-size: 12px; font-weight: 600; border: 1px solid var(--gs-line); border-radius: 999px; padding: 3px 10px;
  white-space: nowrap; color: var(--gs-ink); overflow: hidden; text-overflow: ellipsis; }
.gs-tools { display: flex; gap: 6px; flex: 0 0 auto; }
.gs-root .gs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 44px; min-height: 44px;
  padding: 0 11px; border-radius: 12px; border: 1px solid var(--gs-line); background: var(--gs-chip); color: var(--gs-ink);
  font-family: inherit; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; }
.gs-root .gs-btn:hover { border-color: var(--gs-accent); }
.gs-root .gs-btn:focus-visible { outline: 2px solid var(--gs-accent); outline-offset: 2px; }
.gs-root .gs-btn[aria-pressed="true"] { border-color: var(--gs-accent); }
.gs-root .gs-btn .gs-ic { font-size: 16px; line-height: 1; }
.gs-root .gs-btn .gs-val { color: var(--gs-accent); font-weight: 800; }
@media (max-width: 560px) {
  .gs-bar { gap: 6px; padding-left: max(8px, env(safe-area-inset-left)); padding-right: max(8px, env(safe-area-inset-right)); }
  .gs-root .gs-btn { padding: 0 8px; }
  .gs-root .gs-btn .gs-lbl, .gs-back .gs-lbl { display: none; }
  .gs-back { font-size: 20px; padding: 0 4px; }
  .gs-title { font-size: 15px; letter-spacing: .08em; }
}
@media (max-width: 400px) { .gs-info .gs-chip + .gs-chip { display: none; } }
.gs-shade { position: absolute; inset: 0; z-index: 40; background: var(--gs-shade); display: flex; align-items: center;
  justify-content: center; padding: 14px; border-radius: inherit; }
.gs-fs .gs-shade { position: fixed; }
.gs-sheet { width: min(520px, 100%); max-height: calc(100% - 8px); display: flex; flex-direction: column; color: var(--gs-ink);
  background: var(--gs-panel); border: 1px solid var(--gs-line); border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.gs-sheet-head { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--gs-line); }
.gs-sheet-head h3 { flex: 1; margin: 0; font-size: 17px; }
.gs-sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 14px 18px 18px; }
.gs-root .gs-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.gs-root .gs-tab { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--gs-line); background: transparent;
  color: var(--gs-muted); font-family: inherit; font-weight: 600; font-size: 13px; cursor: pointer; }
.gs-root .gs-tab[aria-selected="true"] { color: var(--gs-accent-ink); background: var(--gs-accent); border-color: var(--gs-accent); }
.gs-rows { display: flex; flex-direction: column; gap: 6px; }
.gs-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--gs-chip); font-size: 14px; }
.gs-row .gs-rank { width: 28px; text-align: center; font-weight: 800; color: var(--gs-muted); font-variant-numeric: tabular-nums; }
.gs-row .gs-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-row .gs-score { font-weight: 800; color: var(--gs-accent); font-variant-numeric: tabular-nums; }
.gs-row.me { outline: 1px solid var(--gs-accent); }
.gs-row.top1 .gs-rank { color: #ffd76a; } .gs-row.top2 .gs-rank { color: #d7dcef; } .gs-row.top3 .gs-rank { color: #e0a372; }
.gs-note { color: var(--gs-muted); font-size: 13px; margin: 10px 0 0; }
.gs-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.gs-list li { padding: 9px 12px; border-radius: 12px; background: var(--gs-chip); font-size: 14px; line-height: 1.45; }
.gs-root.gs-fs { position: fixed !important; inset: 0; z-index: 2147483000; width: 100vw; height: 100vh; height: 100dvh;
  max-width: none; margin: 0; border-radius: 0 !important; border: 0 !important; overflow-y: auto; overscroll-behavior: contain;
  background-color: var(--gs-bg); padding-bottom: env(safe-area-inset-bottom); }
html.gs-fs-on, html.gs-fs-on body { overflow: hidden !important; }
.gs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gs-t-short { display: none; }
@media (max-width: 420px) { .gs-t-long { display: none; } .gs-t-short { display: inline; } }
@media (max-width: 420px) { .gs-bar:has(.gs-info .gs-chip) .gs-title { display: none; }
  .gs-bar.gs-tshow:has(.gs-info .gs-chip) .gs-title { display: block; font-size: 13px; letter-spacing: .04em; max-width: 7.5em; min-width: 0; overflow: hidden; text-overflow: ellipsis; } }
.gs-stage { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; min-width: 0; }
.gs-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.gs-side { display: none; }
.gs-wide .gs-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 16px; align-items: start;
  padding-right: max(14px, env(safe-area-inset-right)); padding-bottom: 14px; }
.gs-wide .gs-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gs-wide .gs-btn[data-side] { display: none; }
.gs-side-card { background: var(--gs-panel); border: 1px solid var(--gs-line); border-radius: 16px; padding: 12px 14px; color: var(--gs-ink); }
.gs-side-h { margin: 0 0 10px; font-size: 15px; }
.gs-side-intro { font-size: 14px; color: var(--gs-muted); line-height: 1.45; }
.gs-side-intro p { margin: 0; }
.gs-side-intro .gs-chip { display: inline-block; margin-bottom: 8px; color: var(--gs-accent); border-color: var(--gs-accent);
  max-width: 100%; white-space: normal; overflow: visible; border-radius: 12px; line-height: 1.5; padding: 4px 10px; }
.gs-side .gs-list { gap: 6px; }
.gs-side .gs-list li { font-size: 13px; padding: 7px 10px; }
.gs-root .gs-fold-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 40px; margin: 0;
  padding: 0; background: none; border: 0; color: var(--gs-ink); font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-align: left; }
.gs-root .gs-fold-h:focus-visible { outline: 2px solid var(--gs-accent); outline-offset: 4px; border-radius: 8px; }
.gs-chev { width: 10px; height: 10px; border-right: 2.5px solid var(--gs-accent); border-bottom: 2.5px solid var(--gs-accent);
  transform: translateY(-3px) rotate(45deg); transition: transform .2s; flex: 0 0 auto; margin-right: 4px; }
.gs-fold-h[aria-expanded="true"] .gs-chev { transform: translateY(2px) rotate(-135deg); }
.gs-fold .gs-side-body { margin-top: 8px; }
.gs-fold .gs-side-body[hidden] { display: none; }
.gs-root { --gs-cut: 8px; }
.gs-root button.gs-back, .gs-root .gs-btn, .gs-root .gs-tab, .gs-chip, .gs-row, .gs-list li, .gs-side-intro .gs-chip,
.gs-sheet, .gs-side-card {
  border-radius: 0; clip-path: polygon(var(--gs-cut) 0, 100% 0, 100% calc(100% - var(--gs-cut)), calc(100% - var(--gs-cut)) 100%, 0 100%, 0 var(--gs-cut)); }
.gs-chip, .gs-side-intro .gs-chip { --gs-cut: 6px; }
.gs-sheet { --gs-cut: 14px; box-shadow: none; }
.gs-root .gs-btn:focus-visible, .gs-root .gs-tab:focus-visible, .gs-root button.gs-back:focus-visible { outline-offset: -4px; }
body > div[id$="App"]:empty { position: relative; min-height: 100vh; min-height: 100dvh; background: #070b14; }
body > div[id$="App"]:empty::before {
  content: ''; position: absolute; left: 50%; top: 38%; width: min(260px, 64vw); height: 8px; margin-left: calc(min(260px, 64vw) / -2);
  background: linear-gradient(90deg, transparent, #7dd3fc, transparent) no-repeat -60% 0 / 60% 100%, rgba(148, 163, 184, .2);
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 50%, calc(100% - 4px) 100%, 4px 100%, 0 50%);
  animation: gsBootSweep 1.1s ease-in-out infinite;
}
body > div[id$="App"]:empty::after {
  content: 'Taking a while? Reload the page to try again.'; position: absolute; left: 0; right: 0; top: calc(38% + 28px); text-align: center;
  font: 13px/1.4 system-ui, sans-serif; color: #94a3b8; opacity: 0; animation: gsBootHint .4s ease 12s forwards;
}
@keyframes gsBootSweep { 0% { background-position: -60% 0, 0 0; } 100% { background-position: 160% 0, 0 0; } }
@keyframes gsBootHint { to { opacity: 1; } }
.gs-ad[hidden] { display: none !important; }
.gs-ad { margin: 12px auto 0; max-width: 100%; min-height: 50px; overflow: hidden; text-align: center; }
