/* Front-end menus share the arena's type, ice palette and frog sprites. */
:where(button, input, select, summary):focus-visible { outline: 2px solid var(--ice); outline-offset: 5px; }
/* Each screen moves focus to its heading (for screen readers); a heading is not a control, so no ring. */
:where(h1, h2)[tabindex="-1"]:focus { outline: none; }
:root { --menu-w: 410px; }
.screen.menu { padding: 0; background: linear-gradient(90deg, rgba(6,17,28,.94), rgba(6,17,28,.74) 36%, rgba(6,17,28,.08) 70%); }
.home-shell { width: 100%; min-height: 100%; padding: 30px clamp(24px, 5.5vw, 110px); display: flex; flex-direction: column; }
.home-header, .home-footer, .home-footer nav, .page-heading, .page-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.home-header { min-height: 62px; }
.connection-state { color: var(--muted); font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.connection-state::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.connection-state.connected::before { background: var(--frog); box-shadow: 0 0 9px #8fe36f44; }
.profile-button { display: flex; align-items: center; gap: 12px; min-width: 185px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px 8px 8px; background: rgba(6,17,28,.72); text-align: left; cursor: pointer; }
.profile-button:hover { background: var(--panel-3); border-color: var(--line-2); }
.profile-button b { display: block; font-size: 14px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.profile-button small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.frog-avatar { display: block; width: 44px; height: 44px; border-radius: 9px; background: #18302d; flex: none; }
.profile-button .menu-arrow { margin-left: auto; color: var(--muted); font-size: 18px; }
.home-body { flex: 1; display: flex; align-items: center; padding-block: 46px 64px; }
.home-main { width: min(var(--menu-w), 100%); }
.menu .title { font-size: clamp(88px, 7.8vw, 132px); line-height: .86; margin: 0 0 46px; letter-spacing: -.035em; width: max-content; max-width: 100%; filter: drop-shadow(0 5px 0 #06314b) drop-shadow(0 12px 24px #0005); }
.menu .title { background: none; color: var(--ice); }
.menu .title-pre { font-size: 1em; line-height: 1.05; letter-spacing: -.03em; margin: 0; background: none; color: var(--frog); }
.title-bottom { display: block; white-space: nowrap; }
.title-on { font-size: .37em; letter-spacing: -.02em; vertical-align: .2em; }
/* The logo (client/img/logo.webp, made from logo.jpg); the image carries its own glow. */
.menu .title.logo-title { width: min(370px, 100%); margin: -22px 0 18px -8px; font-size: 0; line-height: 0; filter: none; }
.logo-title img { display: block; width: 100%; height: auto; }
.play-menu { display: grid; gap: 12px; }
.play-choice { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; padding: 20px 24px; border-radius: 10px; border: 1px solid var(--line-2); cursor: pointer; transition: background .15s, transform .15s; }
.play-choice strong { font-family: var(--ui); font-weight: 800; font-size: 25px; line-height: 1.1; }
.menu-arrow { font-family: var(--ui); font-size: 27px; font-weight: 500; }
.arena-choice { background: var(--carrot); border-color: #ff9c57; color: var(--carrot-ink); box-shadow: 0 4px 0 #a8420f; margin-bottom: 5px; }
.arena-choice:hover { background: var(--carrot-hi); transform: translateX(3px); }
.friends-choice { background: rgba(19,43,62,.82); color: var(--ice); }
.friends-choice:hover { background: #1c3c53; transform: translateX(3px); }
.play-choice:active { transform: translateY(2px); }
.play-choice[aria-expanded="true"] .menu-arrow { transform: scaleX(-1); }
.friends-choice[aria-expanded="true"] { background: #1c3c53; border-color: var(--ice-2); }
.arena-choice[aria-expanded="true"] { background: var(--carrot-hi); }
.profile-button[aria-expanded="true"] { background: var(--panel-3); border-color: var(--ice-2); }
.menu-arrow { transition: transform .15s; }
/* While you're in a lobby the menu rests (Leave the lobby to use it again); your profile still opens. */
#screen-menu .home-main[inert], #screen-menu .home-footer[inert] { opacity: .45; }

/* On wide windows Online opens as panels beside the menu, which stays up (app.js showOnline):
   Play arena and Lobbies open the left one, reaching over the lake if it needs the room; the
   profile button opens your profile on the right, under the button. Both can be open at once. */
#screen-online.docked { background: none; backdrop-filter: none; pointer-events: none; overflow: hidden; align-items: center; justify-content: flex-start; gap: 32px;
  padding: 100px clamp(24px, 5.5vw, 110px) 64px calc(clamp(24px, 5.5vw, 110px) + var(--menu-w) + 48px); }
#screen-online.docked .sheet.front-sheet { pointer-events: auto; margin: 0; width: min(780px, 100%); flex: 0 1 auto; min-width: 0; max-height: 100%; overflow: auto; background: #0a1c2bf5; box-shadow: 0 24px 60px #0009; animation: dock-in .2s ease-out; }
#screen-online.docked .sheet.profile-sheet { width: min(540px, 40%); flex: none; margin-left: auto; align-self: flex-start; animation-name: dock-in-right; }
#screen-online.docked.dock-right { justify-content: flex-end; align-items: flex-start; padding: 104px clamp(24px, 5.5vw, 110px) 64px 40px; }
#screen-online.docked.dock-right .sheet.front-sheet { width: min(640px, 100%); animation-name: dock-in-right; }
#screen-online.docked.dock-right .lobby-tabs { display: none; }
@keyframes dock-in { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes dock-in-right { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.play-choice:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.local-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 9px; }
.local-choices button, .text-button { background: transparent; border: 0; padding: 12px 0; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; }
.local-choices button { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); text-align: left; }
.local-choices button:hover, .text-button:hover { color: var(--ink); }
.local-choices button span { color: var(--faint); }
.home-availability { color: var(--muted); font-size: 13px; line-height: 1.5; }
.season-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: right; }
.season-note b { color: var(--ink); }
.home-footer { border-top: 1px solid var(--line); padding-top: 10px; flex-wrap: wrap; row-gap: 4px; }
.home-footer nav { gap: 32px; }
.home-footer .text-button { font-size: 13px; }

/* Shared page frame. Auto margins keep tall pages scrollable from the top. */
.front-screen { padding: clamp(16px, 4vw, 48px); align-items: flex-start; }
.front-screen.dim { background: rgba(5,16,26,.79); backdrop-filter: blur(8px); }
.sheet.front-sheet { margin: auto; padding: clamp(22px, 3vw, 40px); border-radius: 16px; border-color: var(--line-2); background: #0a1c2bed; width: min(920px, 100%); }
.page-heading { margin-bottom: 26px; align-items: flex-start; }
.page-heading h2 { margin: 5px 0 0; font-size: 40px; }
.page-heading .eyebrow { font-size: 10px; letter-spacing: .15em; margin-bottom: 9px; }
.page-heading > .btn { flex-shrink: 0; }
.front-sheet .btn { border-radius: 8px; }
.front-sheet .btn.primary { box-shadow: 0 3px 0 #a8420f; }
.front-sheet .fine { font-size: 13px; }
.front-sheet .hint { color: var(--muted); }
.front-sheet .label { font-size: 11px; letter-spacing: .08em; }
.front-sheet .seg { border-radius: 8px; }
.front-sheet .seg button { border-radius: 5px; }
.page-footer { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 28px; }
.page-footer .fine { margin: 0; }
.section-title { font-family: var(--ui); font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.local-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 36px; }
.local-layout .field.two { grid-template-columns: 1fr; }
.local-layout .field { margin-bottom: 20px; }
.keys th, .keys td { padding-block: 10px; border-bottom: 1px solid var(--line); }
.keys td.pad { color: var(--muted); }
.howto-intro { margin: 0 0 20px; max-width: 62ch; color: var(--ink); font-size: 15px; line-height: 1.55; }
.score-guide { display: flex; gap: 18px; justify-content: space-between; padding-top: 18px; color: var(--muted); font-size: 13px; }
.score-guide b { font-family: var(--display); font-size: 25px; color: var(--ice); margin-right: 4px; }

/* Online lobby and profile */
.lobby-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.lobby-tabs button { padding: 0 2px 14px; color: var(--muted); border: 0; border-bottom: 2px solid transparent; background: transparent; font-size: 15px; font-weight: 700; cursor: pointer; }
.lobby-tabs button[aria-pressed="true"] { border-bottom-color: var(--carrot); color: var(--ink); }
.lobby-tabs button:hover { color: var(--ink); }
.on-cols { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px; }
.lobby-options { padding-right: 30px; border-right: 1px solid var(--line); gap: 14px; }
.lobby-options .label { margin-top: 22px; }
.lobby-options .section-title { margin-bottom: 0; }
.matchmaking-note { padding-bottom: 24px; margin-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--muted); }
.matchmaking-note .tag { font-size: 10px; border: 1px solid var(--line); padding: 4px 7px; border-radius: 4px; white-space: nowrap; }
.matchmaking-note .section-title { font-size: 14px; }
.online .row { flex-wrap: wrap; }
.online input { border-radius: 8px; font-size: 16px; }
#on-code { flex: 1 1 100px; width: 100px; }
.lobby-count { font-family: var(--ui); font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 5px; }
.room-list { max-height: 350px; overflow-y: auto; }
.room-list li { padding: 14px; gap: 12px; }
.room-list .room-info { min-width: 0; flex: 1; }
.room-list .room-info b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-list .room-info small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.room-list .seats { color: var(--muted); font-size: 12px; white-space: nowrap; }
.room-list .live-dot { color: var(--carrot); }
.on-cols.lobbies-only { grid-template-columns: 1fr; }
.room-list li.none { min-height: 184px; flex-direction: column; border: 1px dashed var(--line-2); background: transparent; color: var(--muted); gap: 8px; }
.room-list li.none b { font-weight: 600; color: var(--ink); }
.room-list li.none span { font-size: 13px; }
.room-head { align-items: center; background: var(--panel-2); padding: 24px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 30px; gap: 24px 40px; }
.room-code { gap: 12px; }
.room-code b { font-size: 48px; letter-spacing: .16em; }
.room-share { gap: 9px; flex: 1; }
.room-share code { background: transparent; border: 0; border-radius: 0; padding: 0; }
#room-copy-status:empty { display: none; }
.member-list li { padding: 13px; }
#room-config select { width: 100%; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--panel-2); color: var(--ink); font: 600 14px var(--ui); }
#room-config select:disabled { opacity: .7; }
.on-login { margin: 24px auto 42px; padding-block: 6px; }
.profile-portrait { width: 100px; height: 100px; border-radius: 18px; margin-bottom: 18px; }
.profile-overview { display: flex; align-items: center; gap: 24px; padding: 12px 0 30px; }
.profile-overview .profile-portrait { margin: 0; }
.profile-overview h3 { font-family: var(--display); font-weight: 400; color: var(--frog); font-size: 36px; margin: 0 0 6px; overflow-wrap: anywhere; }
.profile-overview .fine { margin: 0; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 22px; border-block: 1px solid var(--line); margin: 0 0 20px; gap: 16px; }
.profile-stats dt { color: var(--muted); font-size: 12px; }
.profile-stats dd { font-family: var(--display); font-size: 32px; color: var(--ice); margin: 0 0 5px; }
.profile-stats > div { display: flex; flex-direction: column-reverse; }
.profile-options { font-size: 13px; color: var(--muted); }
.profile-options summary { cursor: pointer; width: fit-content; padding-block: 8px; }
.profile-options .fine { margin-top: 12px; }
.profile-options .danger { color: #ff9aac; border-color: #ff9aac; }
.profile-overview .grow { flex: 1; min-width: 0; display: grid; gap: 8px; }
.profile-overview h3.grey { color: var(--grey-name); }
#on-rename-form { margin: 8px 0 4px; max-width: 380px; }
.upgrade-note { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding: 14px 16px; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.upgrade-note .fine { margin: 0; flex: 1 1 280px; }

/* Signing in: Discord or Google first, then playing as a guest (a name and a color) */
.login-step { display: grid; gap: 8px; }
.signin-buttons { display: grid; gap: 10px; }
.btn.signin { width: 100%; justify-content: center; gap: 10px; padding-block: 13px; }
.btn.signin svg { width: 20px; height: 20px; flex: none; }
.login-lead { margin: 0 0 8px; font-weight: 600; }
#on-frog .label { margin-top: 8px; }
.frog-actions { margin-top: 14px; flex-wrap: nowrap; }
.frog-actions .primary { flex: 1; justify-content: center; }
.on-login .legal-note { margin-top: 20px; }
.or-rule { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; color: var(--faint); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.or-rule::before, .or-rule::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.btn.discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn.discord:hover { background: #6d78f4; }
.linkish { padding: 0; border: 0; background: none; color: var(--ice-2); font: inherit; text-decoration: underline; cursor: pointer; }

/* Arena: quick match, levels, the filling lobby */
.arena-play { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 36px; align-items: start; }
.arena-card { display: grid; gap: 10px; justify-items: start; }
.btn.big { font-size: 20px; padding: 16px 48px; }
.arena-me { display: grid; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.arena-me .fine { margin: 0; }
.me-line { display: flex; align-items: center; gap: 6px; font-size: 16px; min-width: 0; }
.me-line b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lvl { margin-left: 8px; padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 5px; font-size: 11px; font-weight: 800; color: var(--ice-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.xpbar { height: 6px; border-radius: 3px; background: rgba(205, 238, 252, 0.1); overflow: hidden; }
.xpbar i { display: block; height: 100%; background: var(--frog); }
.member-list li.guest .nm, .member-list li.bot .nm { color: var(--grey-name); }
.member-list li.open { border-style: dashed; background: transparent; color: var(--faint); font-weight: 600; }
.member-list .swatch { width: 26px; height: 26px; border: 2px solid rgba(255,255,255,0.18); }
.member-list li.open .swatch { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.arena-room .member-list .ping { margin-left: auto; }
.arena-room #room-note { font-size: 15px; color: var(--ink); font-weight: 600; }
.arena-room .on-cols { grid-template-columns: minmax(0, 560px); }
@media (max-width: 760px) { .arena-play { grid-template-columns: 1fr; } }

/* Too far from every game server: the card that says so, and the ask button */
.far-card { display: grid; gap: 12px; max-width: 620px; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.far-card p { margin: 0; line-height: 1.5; }
.far-card .row { flex-wrap: wrap; }
.far-card a { color: var(--ice-2); }
#on-far-thanks { color: var(--ink); }

/* Settings keep everyday choices separate from network diagnostics. */
.settings-layout { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 32px; min-height: 295px; }
.settings-nav { display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--line); padding-right: 22px; }
.settings-nav button { padding: 12px 14px; background: transparent; border: 1px solid transparent; text-align: left; font-size: 14px; font-weight: 600; border-radius: 7px; color: var(--muted); cursor: pointer; }
.settings-nav button[aria-pressed="true"] { background: var(--panel-3); border-color: var(--line); color: var(--ice); }
.settings-nav button:hover { color: var(--ink); }
.settings-content .section-title { margin: 10px 0 20px; }
.setting-row { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; gap: 24px; justify-content: space-between; align-items: center; cursor: pointer; }
.setting-row b { font-size: 15px; font-weight: 600; }
.setting-row small { display: block; font-size: 13px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.setting-row input { width: 19px; height: 19px; accent-color: var(--carrot); flex-shrink: 0; cursor: pointer; }
.volume-row { flex-wrap: wrap; row-gap: 12px; }
.volume-row .volume { display: flex; align-items: center; gap: 12px; }
.volume-row input[type="range"] { width: 160px; height: auto; }
.volume-row output { min-width: 38px; text-align: right; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.volume-row.off input[type="range"], .volume-row.off output { opacity: 0.4; }
.settings-tip { margin-top: 22px; }
.settings-content .field { gap: 14px; }

@media (min-width: 1600px) { :root { --menu-w: 440px; } }
@media (max-width: 1100px) {
  .screen.menu { background: linear-gradient(90deg, #06111cf5, #06111cbb 55%, #06111c66); }
  :root { --menu-w: 360px; }
}
@media (max-width: 700px) {
  .home-shell { padding: 18px 24px; }
  .home-header { min-height: 50px; }
  .profile-button { min-width: 0; padding: 6px 9px; gap: 8px; }
  .profile-button small, .profile-button .menu-arrow { display: none; }
  .profile-button b { max-width: 135px; font-size: 12px; }
  .profile-button .frog-avatar { width: 30px; height: 30px; }
  .home-body { padding-block: 44px; justify-content: center; }
  .menu .title { font-size: 96px; margin-bottom: 34px; }
  .play-choice { padding: 17px 20px; }
  .play-choice strong { font-size: 23px; }
  .home-footer { justify-content: center; }
  .season-note { text-align: center; }
  .page-heading h2 { font-size: 32px; }
  .page-heading .btn { padding: 8px 10px; }
  .page-heading kbd { display: none; }
  .local-layout, .on-cols { grid-template-columns: 1fr; gap: 24px; }
  .lobby-options { padding: 0 0 26px; border-right: 0; border-bottom: 1px solid var(--line); }
  .settings-layout { grid-template-columns: 1fr; gap: 18px; }
  .settings-nav { flex-direction: row; flex-wrap: wrap; border: 0; border-bottom: 1px solid var(--line); padding: 0 0 14px; gap: 4px; }
  .settings-nav button { font-size: 12px; padding: 10px; }
  .settings-content { min-height: 260px; }
  .page-footer { flex-wrap: wrap; gap: 12px; }
  .room-head { padding: 18px; }
  .room-share { flex-basis: 100%; }
  .room-code b { font-size: 40px; }
  .profile-stats { grid-template-columns: repeat(2,1fr); gap: 24px; }
  .score-guide { flex-wrap: wrap; justify-content: flex-start; }
  .keys { font-size: 12px; }
}
@media (max-height: 720px) and (min-width: 701px) {
  .home-shell { padding-block: 16px; }
  .home-body { padding-block: 20px; }
  .menu .title { font-size: 92px; margin-bottom: 24px; }
  .menu .title.logo-title { width: 290px; margin-top: -14px; margin-bottom: 10px; }
  .play-choice { padding-block: 15px; }
  .front-screen { padding: 20px; }
  .sheet.front-sheet { padding: 24px; }
  .page-heading { margin-bottom: 18px; }
  .page-heading h2 { font-size: 34px; }
  .room-head { padding: 16px 20px; margin-bottom: 18px; }
  .room-code b { font-size: 40px; }
  #room-config { gap: 10px; }
  .page-footer { margin-top: 20px; padding-top: 14px; }
}
@media (prefers-reduced-motion: reduce) { .play-choice, .menu-arrow { transition: none; } #screen-online.docked .sheet.front-sheet { animation: none; } }
a.text-button { text-decoration: none; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches .swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.18); background: var(--c); cursor: pointer; padding: 0; }
.swatches .swatch:hover { transform: scale(1.1); }
.swatches .swatch[aria-checked="true"] { border-color: #fff; box-shadow: 0 0 0 3px var(--c); }
.legal-note a { color: var(--muted); }

/* Signing in with Google (Google's own look: white, the service's name in dark type). */
.btn.google { background: #fff; border-color: #dadce0; color: #1f1f1f; }
.btn.google:hover { background: #f1f3f4; }

/* Your profile: sign-in methods and the Supporter Pack (online.js renderProfile). */
.profile-logins { margin: 0 0 20px; }
.profile-logins .setting-row { cursor: default; padding: 12px 0; }
.profile-logins .fine { margin: 10px 0 0; }
.profile-store { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 14px 16px; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.profile-store b { font-size: 15px; }
.profile-store small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }

/* The Founder badge next to a name (render/cosmetics.js badgeHTML). */
.badge-founder { display: inline-block; width: 1.05em; height: 1.05em; margin-right: 0.3em; vertical-align: -0.14em; flex: none; }
.badge-founder svg { display: block; width: 100%; height: 100%; }

/* The Supporter Pack (index.html #store, ui/store.js). */
.store-card { width: min(980px, 100%); max-height: calc(100vh - 48px); overflow: auto; justify-items: stretch; text-align: left; gap: 16px; padding: 28px 32px; }
.store-head { display: flex; align-items: flex-start; gap: 16px; }
.store-head > div { flex: 1; }
.store-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
/* The offer, over everything: what the pack holds, what it costs (ui/store.js renderOffer). */
.store-offer { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(255, 210, 63, 0.45); background: linear-gradient(120deg, rgba(255, 210, 63, 0.16), rgba(255, 210, 63, 0.03) 65%); }
.store-offer[hidden] { display: none; }
.store-offer .badge-founder { font-size: 48px; margin: 0; }
.store-offer-text { flex: 1; display: grid; gap: 4px; min-width: 0; }
.store-offer-text b { font-size: 17px; color: var(--ink); line-height: 1.35; }
.store-offer-text span { color: var(--muted); font-size: 14.5px; }
.store-offer-price { display: grid; justify-items: end; gap: 2px; text-align: right; }
.store-offer-price b { font-family: var(--display); font-size: 34px; line-height: 1; color: var(--carrot-hi); }
.store-offer-price small { color: var(--muted); font-size: 13px; white-space: nowrap; }
.notice-card .store-test { margin: 0; padding: 8px 12px; border-radius: 8px; background: rgba(255, 172, 94, 0.12); color: var(--carrot-hi); font-size: 14px; font-weight: 700; max-width: none; }
.store-body { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.store-show { display: grid; justify-items: center; gap: 10px; position: sticky; top: 0; }
.store-portrait { width: min(100%, 300px); height: auto; aspect-ratio: 480 / 220; }
.store-compare { display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 300px); margin-top: -8px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--faint); }
.store-compare span:last-child { color: var(--ice-2); }
.store-name { font-size: 18px; display: flex; align-items: center; }
.store-scene { width: 100%; aspect-ratio: 2 / 1; border-radius: 12px; border: 1px solid var(--line); background: #0a2233; }
.store-main { display: grid; gap: 14px; align-content: start; }
.notice-card .store-thanks { margin: 0; font-size: 16px; color: var(--ink); max-width: none; }
.store-slot { display: grid; gap: 8px; }
.store-slot .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.store-chip { border: 1px solid var(--line-2); background: var(--panel-2); color: var(--muted); border-radius: 999px; padding: 7px 13px; font: 600 14px var(--ui); cursor: pointer; }
.store-chip:hover { color: var(--ink); background: var(--panel-3); }
.store-chip[aria-checked="true"] { background: var(--ice); border-color: var(--ice); color: #06243a; }
.store-chip.plain { font-style: italic; }
.store-chip.has-thumb { display: inline-flex; align-items: center; gap: 6px; padding: 3px 13px 3px 4px; }
.chip-thumb { width: 32px; height: 32px; flex: none; }
.store-show #store-replay { justify-self: center; }
.notice-card .store-main .row { justify-content: flex-start; margin: 0; }
.store-main .btn.primary { font-size: 17px; padding: 12px 26px; }
.store-card .store-fine { margin: 0; color: var(--muted); font-size: 13px; }
.notice-card .store-closed { margin: 0; color: var(--carrot-hi); font-size: 15px; }
.store-wear .setting-row { cursor: default; padding: 12px 0; }
.store-wear .seg { flex: none; }
.store-main .upgrade-note { margin: 0; }
.store-main .on-error { margin: 0; }
@media (max-width: 760px) { .store-body { grid-template-columns: 1fr; } .store-show { position: static; } .store-card { padding: 22px 18px; } .store-offer { flex-wrap: wrap; row-gap: 8px; } .store-offer-text { flex: 1 1 180px; } .store-offer-price { flex: 1 1 100%; display: flex; align-items: baseline; gap: 8px; text-align: left; } }
.store-card p { max-width: none; }
.store-card .fine { font-size: 14px; margin: 0; }
.store-card a { color: var(--ice-2); }

/* The leaderboards (index.html #leaderboard, ui/leaderboard.js). */
.lb-card { width: min(560px, 100%); max-height: calc(100vh - 48px); overflow: auto; justify-items: stretch; text-align: left; gap: 14px; padding: 26px 30px; }
.lb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.lb-head h2 { font-size: clamp(26px, 3.4vw, 34px); }
.lb-tabs button[aria-selected="true"] { background: var(--ice); color: #06243a; }
.lb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-variant-numeric: tabular-nums; }
.lb-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; }
.lb-list li:nth-child(even):not(.lb-headrow):not(.lb-gap) { background: rgba(205, 238, 252, 0.035); }
.lb-list li.you { background: rgba(255, 172, 94, 0.14); outline: 1px solid rgba(255, 172, 94, 0.45); }
.lb-headrow { font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); padding-block: 2px 4px !important; }
.lb-headrow span:last-child, .lb-val { text-align: right; }
.lb-rank { font-weight: 800; color: var(--muted); }
.lb-name { display: flex; align-items: center; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-val { font-weight: 800; color: var(--ink); }
.lb-tag { margin-left: 8px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--line-2); border-radius: 5px; padding: 0 5px; }
.lb-tag.you { color: var(--carrot-hi); border-color: rgba(255, 172, 94, 0.5); }
.lb-list li.lb-gap { display: block; text-align: center; color: var(--faint); padding: 0; letter-spacing: 0.3em; }
.lb-list li.lb-empty { display: block; color: var(--muted); }
.lb-card .fine { margin: 0; font-size: 13.5px; max-width: none; }
