:root {
  --bg: #050b14;
  --bg-2: #0a1428;
  --panel: #0f1d33;
  --line: #1e3a5f;
  --gold: #c8aa6e;
  --gold-hi: #f0e6d2;
  --text: #cdd6e0;
  --muted: #7b8ba1;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 50% -10%, #12284a 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font: 15px/1.5 Inter, system-ui, sans-serif;
  display: flex;
  flex-direction: column;
}

button { font: inherit; cursor: pointer; }

/* No scrollbar on the right: a thin gold bar along the top shows how far down the page you are (js/common.js) */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 10; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, var(--gold), var(--gold-hi)); box-shadow: 0 0 10px rgba(200, 170, 110, .6);
  transform: scaleX(0); transform-origin: left; }

/* Backdrop: a blurred, darkened map view behind the menu pages, with a vignette that keeps the middle readable.
   It reaches half a screen above the top so the shots' empty night sky ends up off-screen and the scenery fills the view. */
.backdrop { position: fixed; inset: -50vh -40px -40px; z-index: -1; background: center bottom / cover no-repeat; filter: blur(10px) brightness(.85) saturate(1.3); transform: scale(1.06); }
body::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 85% 75% at 50% 40%, rgba(5, 11, 20, .2) 0%, rgba(5, 11, 20, .45) 60%, rgba(5, 11, 20, .85) 100%); }
body.lite .backdrop { filter: blur(8px) brightness(.85); }

/* Pill buttons: settings and info links under the menus */
.menu-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px;
  font: 600 14px/1.2 Inter, sans-serif; color: var(--gold-hi); text-decoration: none;
  border: 1px solid rgba(200, 170, 110, .55); background: rgba(10, 20, 40, .65);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.pill:hover, .pill:focus-visible { border-color: var(--gold); background: rgba(200, 170, 110, .16); box-shadow: 0 0 18px rgba(200, 170, 110, .22); outline: none; }
body.lite .pill { transition: none; }
button.pill { cursor: pointer; }

/* How to play, as a dialog on the menu */
.howto { width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 24px 26px 22px; color: var(--text);
  background: rgba(8, 17, 32, .97); border: 1px solid var(--line); }
.howto::backdrop { background: rgba(5, 11, 20, .82); }
.howto h2 { margin: 0; font: 700 26px Cinzel, serif; color: var(--gold); letter-spacing: 1px; }
.howto-lede { margin: 4px 0 18px; color: var(--muted); font-size: 14px; }
.howto-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.howto-steps figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.howto-steps img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--line); background: #0b1622; }
.howto-steps figcaption { font-size: 13px; line-height: 1.5; text-align: left; }
.howto-steps figcaption b { display: block; font: 700 15px Cinzel, serif; color: var(--gold-hi); margin-bottom: 2px; }
.howto-foot { display: flex; justify-content: flex-end; margin: 20px 0 0; }
@media (max-width: 720px) { .howto { padding: 18px 16px; } .howto-steps { grid-template-columns: 1fr; } }

.logo {
  margin: 0;
  font: 700 40px/1 Cinzel, serif;
  letter-spacing: 3px;
  color: var(--gold);
  text-shadow: 0 0 24px rgba(200, 170, 110, .35);
}

/* Landing */
.landing {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 16px;
}
.landing .logo { font-size: 56px; }
.landing-sub { color: var(--muted); margin: 10px 0 36px; }
.landing-q { font: 600 22px Cinzel, serif; color: var(--gold-hi); margin: 0 0 20px; letter-spacing: .5px; }
.pc-options { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 16px; }
.pc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px 20px 22px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  color: var(--text);
  text-align: center;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.pc-card:hover, .pc-card:focus-visible { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(200, 170, 110, .15); outline: none; }
.pc-card.suggested { border-color: rgba(200, 170, 110, .6); }
.pc-icon { font-size: 30px; }
.pc-title { font: 700 20px Cinzel, serif; color: var(--gold-hi); }
.pc-desc { font-size: 13px; color: var(--muted); }
.pc-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 2px 10px;
}
.landing-note { color: #6b7d95; font-size: 12px; margin-top: 14px; }

/* Main menu */
.modes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 420px)); gap: 16px; width: 100%; max-width: 860px; justify-content: center; }
.mode-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  text-align: left;
  overflow: hidden;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.mode-card { position: relative; }
/* a see-through red sign over a mode that is still being built */
.mode-warn { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 1; display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; font-size: 12px; font-weight: 600; letter-spacing: .3px; color: #fff;
  background: rgba(190, 30, 45, .72); border: 1px solid rgba(255, 110, 110, .65); box-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.mode-warn [aria-hidden] { font-size: 15px; line-height: 1; }
.mode-card:hover, .mode-card:focus-visible { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(200, 170, 110, .15); outline: none; }
.mode-shot { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.mode-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.mode-body > .mode-foot { margin-top: auto; } /* side by side, both cards' Play buttons line up at the bottom */
.mode-title { font: 700 22px Cinzel, serif; color: var(--gold-hi); }
.mode-desc { font-size: 13px; color: var(--muted); }
.mode-tags { display: flex; gap: 6px; margin-top: 4px; }
.mode-tags span { font-size: 11px; font-weight: 600; letter-spacing: .4px; color: var(--gold); border: 1px solid rgba(200, 170, 110, .45); padding: 1px 8px; }
body.lite .mode-card { transition: none; }
/* your ranked standing on the mode card */
.mode-rank { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.mode-rank img { width: 22px; height: 17px; filter: drop-shadow(0 0 6px var(--tc, transparent)); }
.mode-rank b { color: var(--gold-hi); font-weight: 600; }
/* the card's footer: today's Daily on the left, a gold Play button on the right */
.mode-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.mode-daily { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.mode-daily::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #4a5a70; }
.mode-daily[data-state="progress"]::before { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.mode-daily[data-state="done"]::before { background: #2f9e5b; }
.mode-daily b { color: var(--gold-hi); font-weight: 600; }
.mode-play {
  flex: none; padding: 9px 24px; font: 700 13px/1 Cinzel, serif; letter-spacing: 1.2px; text-transform: uppercase;
  color: #0a1428; background: linear-gradient(180deg, #f0e6d2, #c8aa6e); border: 1px solid #f0e6d2;
  transition: filter .15s, box-shadow .15s;
}
.mode-card:hover .mode-play, .mode-card:focus-visible .mode-play { filter: brightness(1.08); box-shadow: 0 0 16px rgba(200, 170, 110, .45); }

/* Map picker */
.map-groups { width: 100%; max-width: 680px; text-align: left; }
.map-group { font: 600 15px Cinzel, serif; color: var(--gold); letter-spacing: .6px; text-align: center; margin: 18px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.map-group:first-child { margin-top: 0; }
.map-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.map-card { width: min(220px, 100%); display: flex; flex-direction: column; gap: 6px; padding-bottom: 12px; background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); color: var(--text); text-decoration: none; overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .15s; }
.map-card:hover, .map-card:focus-visible { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(200, 170, 110, .15); outline: none; }
.map-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.map-card .map-name { font: 700 17px Cinzel, serif; color: var(--gold-hi); padding: 0 12px; }
.map-card .map-desc { font-size: 12px; color: var(--muted); padding: 0 12px; }
.map-card .mode-tags { padding: 0 12px; margin: 0; }
body.lite .map-card { transition: none; }
.map-card.locked { opacity: .35; filter: grayscale(.8); cursor: not-allowed; }
.map-card.locked:hover { border-color: var(--line); transform: none; box-shadow: none; }
.daily-lock { margin: -8px 0 18px; padding: 8px 14px; font-size: 13px; color: var(--gold-hi); border: 1px solid rgba(200, 170, 110, .5); background: rgba(200, 170, 110, .1); }
.landing-note a { color: var(--muted); }

/* Summoner badge: icon, name and rank in the top-right corner, linking to the profile */
.sbadge { --tc: #c8aa6e; display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; text-decoration: none; color: var(--text);
  background: rgba(8, 17, 32, .85); border: 1px solid rgba(200, 170, 110, .45); transition: border-color .15s, box-shadow .15s; }
.sbadge:hover, .sbadge:focus-visible { border-color: var(--gold); box-shadow: 0 0 18px rgba(200, 170, 110, .25); outline: none; }
.sbadge.corner { position: fixed; top: 14px; right: 14px; z-index: 4; }
.sb-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--tc); box-shadow: 0 0 10px color-mix(in srgb, var(--tc) 60%, transparent); overflow: hidden; background: #010a13; }
.sb-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sb-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sb-text b { font: 700 14px Cinzel, serif; color: var(--gold-hi); letter-spacing: .5px; white-space: nowrap; }
.sb-rank { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.sb-rank img { width: 16px; height: 12px; }
body.lite .sbadge { transition: none; }
@media (max-width: 600px) {
  .sbadge.corner { top: 10px; right: 10px; padding: 4px; }
  .sbadge.corner .sb-text { display: none; }
  .sbadge.corner .sb-icon { width: 36px; height: 36px; }
}

/* Account card: Log in with Discord */
.pf-account { display: flex; flex-direction: column; gap: 10px; }
.pf-acc-body { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pf-acc-text { flex: 1; min-width: 200px; }
.pf-acc-text b { display: block; font: 700 15px Cinzel, serif; color: var(--gold-hi); }
.pf-acc-text span { font-size: 13px; color: var(--muted); }
.pf-acc-avatar { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #5865f2; }
.discord-btn { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: none; border-radius: 6px; background: #5865f2; color: #fff; font: 600 14px Inter, sans-serif; text-decoration: none; cursor: pointer; }
.discord-btn:hover, .discord-btn:focus-visible { background: #4752c4; outline: none; }
.discord-btn svg { width: 22px; height: 17px; fill: currentColor; }
.pf-acc-msg { margin: 0; padding: 8px 12px; font-size: 13px; border: 1px solid rgba(200, 170, 110, .5); background: rgba(200, 170, 110, .1); color: var(--gold-hi); }
.pf-acc-msg.bad { border-color: rgba(232, 64, 87, .6); background: rgba(232, 64, 87, .1); }
.pf-acc-choice { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* Profile page */
.profile { width: 100%; max-width: 760px; margin: 0 auto; padding: 28px 16px 8px; display: flex; flex-direction: column; gap: 14px; }
.profile-nav { display: flex; }
.pf-card { position: relative; padding: 18px 20px; background: linear-gradient(180deg, rgba(15, 29, 51, .92), rgba(10, 20, 40, .92)); border: 1px solid var(--line); }
.pf-card h2 { margin: 0 0 12px; font: 600 16px Cinzel, serif; color: var(--gold); letter-spacing: .6px; }
.pf-card h3 { margin: 16px 0 8px; font: 600 12px Inter, sans-serif; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.pf-note { margin: 8px 0 0; font-size: 12px; color: #6b7d95; }
.pf-note.center { text-align: center; }
.pf-head { display: flex; align-items: center; gap: 18px; }
.pf-icon { position: relative; flex: none; width: 96px; height: 96px; padding: 0; border-radius: 50%; border: 3px solid var(--gold); background: #010a13; box-shadow: 0 0 0 3px #010a13, 0 0 0 4px rgba(200, 170, 110, .5), 0 0 24px rgba(200, 170, 110, .25); overflow: hidden; }
.pf-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-icon-edit { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; color: var(--gold-hi); background: rgba(1, 10, 19, .55); opacity: 0; transition: opacity .15s; }
.pf-icon:hover .pf-icon-edit, .pf-icon:focus-visible .pf-icon-edit { opacity: 1; }
.pf-who { min-width: 0; }
.pf-name-row { display: flex; align-items: center; gap: 8px; }
.pf-name { margin: 0; font: 700 28px/1.1 Cinzel, serif; color: var(--gold-hi); letter-spacing: 1px; overflow-wrap: anywhere; }
.pf-rename { background: none; border: none; color: var(--muted); font-size: 16px; padding: 4px; }
.pf-rename:hover { color: var(--gold-hi); }
.pf-name-form { display: flex; gap: 8px; }
.pf-name-form input { font: 600 18px Inter, sans-serif; color: var(--gold-hi); background: #010a13; border: 1px solid var(--gold); padding: 6px 10px; width: 220px; max-width: 100%; outline: none; }
.pf-sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.pf-ranked { --tc: #c8aa6e; display: flex; align-items: center; gap: 20px; background: radial-gradient(ellipse 50% 130% at 15% 50%, color-mix(in srgb, var(--tc) 30%, transparent), transparent 70%), linear-gradient(180deg, rgba(15, 29, 51, .92), rgba(10, 20, 40, .92)); }
.pf-emblem { flex: none; width: 170px; height: 130px; display: grid; place-items: center; }
.pf-emblem img { max-width: 170px; max-height: 130px; filter: drop-shadow(0 0 18px color-mix(in srgb, var(--tc) 70%, transparent)); }
.pf-ranked.unranked .pf-emblem img { filter: grayscale(1) brightness(.55); opacity: .45; }
.pf-rank-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pf-kicker { font: 600 11px Inter, sans-serif; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.pf-rank { font: 700 30px/1.1 Cinzel, serif; color: var(--gold-hi); letter-spacing: 1px; text-transform: uppercase; }
.pf-lp-row { display: flex; align-items: center; gap: 10px; max-width: 360px; }
.pf-peak { font-size: 13px; color: var(--muted); }
.pf-peak b { color: var(--gold-hi); }
.pf-graph svg { display: block; width: 100%; height: auto; }
.pf-graph .pf-band { font: 600 10px Inter, sans-serif; fill: rgba(240, 230, 210, .55); }
.pf-graph .pf-axis { font: 600 10px Inter, sans-serif; fill: #6b7d95; }
.pf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pf-stat { padding: 10px 8px; text-align: center; border: 1px solid var(--line); background: rgba(1, 10, 19, .4); }
.pf-stat b { display: block; font: 700 22px Cinzel, serif; color: var(--gold-hi); }
.pf-stat span { font-size: 11px; color: var(--muted); }
.pf-stats.small .pf-stat b { font-size: 17px; }
.pf-games { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pf-games li { display: grid; grid-template-columns: 92px 56px 22px 1fr auto; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid rgba(30, 58, 95, .6); background: rgba(1, 10, 19, .35); font-size: 13px; }
.pf-games li.pf-note { display: block; border: none; background: none; padding: 0; }
.pf-games b { color: var(--gold-hi); font-weight: 600; text-align: right; }
.pf-games img { width: 20px; height: 15px; }
.pf-crest-blank { width: 20px; }
.pf-date { color: var(--muted); font-variant-numeric: tabular-nums; }
.pf-what { color: var(--text); }
.pf-ch-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pf-points { font-size: 12px; color: var(--muted); }
.pf-tokens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pf-slot { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; text-align: center; border: 1px solid rgba(30, 58, 95, .8); background: rgba(1, 10, 19, .35); }
.pf-slot b { font: 700 13px Cinzel, serif; color: var(--gold-hi); }
.pf-slot span { font-size: 11px; color: var(--muted); }
.pf-token { width: 46px; height: 46px; transform: rotate(45deg); margin: 8px; border: 1px dashed rgba(200, 170, 110, .45); background: rgba(1, 10, 19, .4); }
.pf-ch-token { --tc: #3a4a60; flex: none; width: 36px; height: 36px; margin: 6px; display: grid; place-items: center; transform: rotate(45deg); border: 1px solid var(--tc); background: #010a13; box-shadow: 0 0 12px color-mix(in srgb, var(--tc) 50%, transparent); }
.pf-ch-token img { width: 20px; height: 15px; transform: rotate(-45deg); }
.pf-ch-token.big { width: 46px; height: 46px; margin: 8px; } .pf-ch-token.big img { width: 26px; height: 20px; }
.pf-ch-token.locked { box-shadow: none; border-style: dashed; }
.pf-ch-group h3 { margin: 18px 0 6px; }
.pf-ch { --tc: #3a4a60; display: grid; grid-template-columns: 50px 1fr 36px; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 4px; border: 1px solid rgba(30, 58, 95, .6); background: rgba(1, 10, 19, .35); }
.pf-ch.locked .pf-ch-title b { color: var(--muted); }
.pf-ch-title { display: flex; justify-content: space-between; gap: 8px; }
.pf-ch-title b { font: 700 14px Cinzel, serif; color: var(--gold-hi); }
.pf-ch-level { font: 700 10px Inter, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: var(--tc); }
.pf-ch.locked .pf-ch-level { color: #4a5a70; }
.pf-ch-desc { font-size: 12px; color: var(--muted); margin: 2px 0 4px; }
.pf-ch-prog { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.pf-ch-bar { flex: 1; height: 5px; background: #0b1622; border: 1px solid #1e3a5f; position: relative; }
.pf-ch-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--gold), #f0e6d2); }
.pf-pin { width: 32px; height: 32px; padding: 0; border: 1px solid rgba(200, 170, 110, .45); background: rgba(1, 10, 19, .5); color: var(--gold); font-size: 16px; }
.pf-pin[aria-pressed="true"] { background: rgba(200, 170, 110, .2); border-color: var(--gold); }
.pf-pin:disabled { opacity: .25; cursor: default; }
.pf-picker { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; background: rgba(5, 11, 20, .8); }
.pf-picker-card { width: min(620px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; text-align: center; }
.pf-icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin-bottom: 8px; }
.pf-pick { padding: 0; aspect-ratio: 1; border: 2px solid var(--line); background: #010a13; overflow: hidden; }
.pf-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-pick:hover, .pf-pick:focus-visible { border-color: rgba(200, 170, 110, .7); outline: none; }
.pf-pick.on { border-color: var(--gold); box-shadow: 0 0 12px rgba(200, 170, 110, .5); }
.pf-picker-card .pill { margin-top: 12px; }
/* shared with the game's results screen */
.lp-bar { flex: 1; height: 8px; background: #0b1622; border: 1px solid #1e3a5f; position: relative; overflow: hidden; }
.lp-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 80%, #000), var(--tc), #f0e6d2); }
.lp-num { font: 700 12px Inter, sans-serif; color: var(--gold-hi); white-space: nowrap; }
.lp-delta { font: 700 13px Cinzel, serif; white-space: nowrap; text-align: right; }
.lp-delta.up { color: #4fd18b; } .lp-delta.down { color: #ff6b7d; } .lp-delta.flat { color: var(--muted); }
.placement-dots { display: flex; gap: 8px; margin: 4px 0 2px 4px; }
.placement-dots span { width: 11px; height: 11px; transform: rotate(45deg); border: 1px solid var(--gold); }
.placement-dots span.done { background: var(--gold); }
@media (max-width: 600px) {
  .pf-ranked { flex-direction: column; text-align: center; }
  .pf-lp-row { margin: 0 auto; }
  .placement-dots { justify-content: center; }
  .pf-stats { grid-template-columns: repeat(2, 1fr); }
  .pf-games li { grid-template-columns: 80px 48px 20px 1fr; }
  .pf-games li .lp-delta { grid-column: 4; text-align: left; }
}

/* Lite mode: drop costly effects for weaker machines */
body.lite { background: var(--bg); }
body.lite .pc-card { transition: none; }
body.lite .logo { text-shadow: none; }

.foot { color: #4a5a70; font-size: 11px; text-align: center; padding: 18px 16px 24px; max-width: 760px; margin: 0 auto; }
.foot-version { display: block; margin-top: 6px; font-size: 10px; color: #3a4658; letter-spacing: .2px; }
.foot-version + .foot-version { margin-top: 2px; }

/* Credits */
.credits { width: 100%; max-width: 720px; margin: 0 auto; padding: 36px 16px 24px; }
.credits .logo { margin-top: 24px; font-size: 40px; }
.credits-lede { color: var(--muted); margin: 10px 0 28px; }
.credits h2 { font: 600 17px Cinzel, serif; color: var(--gold-hi); letter-spacing: .5px; margin: 28px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.credits ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.credits li { display: flex; flex-direction: column; gap: 2px; }
.credits li > a { color: var(--gold); font-weight: 600; text-decoration: none; width: fit-content; }
.credits li > a:hover { text-decoration: underline; }
.credits li span { color: var(--text); font-size: 14px; }
.credits li span a { color: var(--gold); }
.credits .foot { padding: 36px 0 0; }

/* News: what's coming, announcements and patch notes (news.html) */
.news-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.news-tab { padding: 10px 18px; margin-bottom: -1px; font: 600 15px Cinzel, serif; letter-spacing: .5px; color: var(--muted);
  background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; }
.news-tab:hover, .news-tab:focus-visible { color: var(--gold-hi); outline: none; }
.news-tab[aria-selected="true"] { color: var(--gold-hi); border-bottom-color: var(--gold); }
.news h3 { margin: 0; font: 700 18px Cinzel, serif; color: var(--gold-hi); }
.news article p { margin: 4px 0 0; font-size: 14px; }
.news time { color: var(--muted); font-size: 12px; }
.news-upcoming { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.news-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 29, 51, .9), rgba(10, 20, 40, .9)); }
.news-card p { margin: 0; }
.news-status { width: fit-content; padding: 2px 8px; font: 600 11px Inter, sans-serif; letter-spacing: .6px; text-transform: uppercase;
  border: 1px solid currentColor; }
.news-status.next { color: #0ac8b9; }
.news-status.later { color: var(--muted); }
.news-post { padding: 14px 0; border-bottom: 1px solid rgba(30, 58, 95, .6); }
.news-post time { display: block; margin-bottom: 2px; }
.patch { margin-top: 26px; padding: 18px 20px; border: 1px solid var(--line); background: rgba(10, 20, 40, .75); }
.patch-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 12px; }
.credits .patch-head h2 { margin: 0; padding: 0; border: 0; font-size: 22px; }
.patch-head .news-status { align-self: center; }
.patch-ver { width: 100%; color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.credits .patch-notes li { flex-direction: row; align-items: baseline; gap: 10px; }
.credits .patch-notes .patch-tag { flex: none; width: 70px; padding: 1px 0; text-align: center; font: 600 11px Inter, sans-serif;
  letter-spacing: .5px; text-transform: uppercase; border: 1px solid currentColor; }
.credits .patch-tag.new { color: #0ac8b9; }
.credits .patch-tag.changed { color: var(--gold); }
.credits .patch-tag.fixed { color: #8fb3e0; }
/* a dot on the menu's News button while there's something unseen */
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #0ac8b9; box-shadow: 0 0 8px #0ac8b9; }
.pill-dot[hidden] { display: none; }
.landing-note a { color: var(--gold); }
.foot a { color: var(--muted); }

@media (max-width: 720px) {
  .pc-options { grid-template-columns: 1fr; width: 100%; max-width: 320px; }
  .landing .logo { font-size: 42px; }
}
