@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("schibsted-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("schibsted-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("display-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0e1f2e;
  --surface: #12283a;
  --surface-2: #183248;
  --surface-3: #1f3d56;
  --ink: #f3eee2;
  --soft: #cdd6dc;
  --muted: #9db0bf;
  --faint: #687f91;
  --line: rgba(243, 238, 226, .1);
  --line-2: rgba(243, 238, 226, .18);
  --accent: #00cbff;
  --accent-ink: #03141d;
  --accent-soft: #0b3a4f;
  --sand: #f2cfa8;
  --sand-ink: #2b1d14;
  --deep: #0a66d0;
  --water: #3fb8f5;
  --foam: #b9ecff;
  --good: #35e07a;
  --warn: #ffc24b;
  --bad: #ff5d62;
  --good-soft: #0f3a26;
  --warn-soft: #3d3010;
  --bad-soft: #42171b;
  --gold: #f5c542;
  --silver: #d5dde4;
  --bronze: #d48a52;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-lead: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --step-head: clamp(1.75rem, 1.3rem + 2.2vw, 3rem);
  --step-display: clamp(2.75rem, 1rem + 8.4vw, 7rem);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --pill: 999px;
  --gutter: clamp(16px, 2.2vw, 32px);
  --wrap: 1200px;
  --bar-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  letter-spacing: -0.005em;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: lining-nums proportional-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout + type */
.o-wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.o-display {
  font-family: var(--display); font-weight: 900; text-transform: uppercase; color: var(--ink);
  font-size: var(--step-display); line-height: .86; letter-spacing: .005em; overflow-wrap: anywhere;
}
.o-display--md { font-size: clamp(2.5rem, 1.7rem + 3.4vw, 4.5rem); }
.o-display--sm { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem); line-height: .9; }

/* Header */
.ocean-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--bar-h);
  border-bottom: 1px solid var(--line);
  background: rgba(14, 31, 46, .86);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  transition: background-color .25s, border-color .25s;
}
body.has-band .ocean-bar { margin-bottom: calc(-1 * var(--bar-h)); }
body.has-band .ocean-bar:not(.is-scrolled):not(.is-open) { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.ocean-bar__in { height: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 24px; }
.ocean-bar__brand { display: flex; align-items: center; flex: none; text-decoration: none; }
.ocean-bar__brand img { width: 56px; height: auto; transition: transform .25s var(--ease); }
.ocean-bar__brand:hover img { transform: rotate(-4deg) scale(1.06); }
.ocean-bar__links { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.ocean-bar__links a {
  display: block; padding: 7px 12px; border-radius: var(--pill);
  color: var(--soft); font-weight: 600; font-size: .875rem; text-decoration: none; white-space: nowrap;
  transition: color .15s, background-color .15s;
}
.ocean-bar__links a:hover { color: var(--ink); background: rgba(243, 238, 226, .06); }
.ocean-bar__links a[aria-current="page"] { color: var(--ink); background: rgba(243, 238, 226, .1); }
.ocean-bar__links .is-menu-only { display: none; }
.ocean-bar__end { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.ocean-bar__slot { display: flex; align-items: center; gap: 8px; }
.ocean-bar__menu { display: none; width: 40px; height: 40px; border-radius: var(--pill); border: 1px solid var(--line-2); background: rgba(14, 31, 46, .6); cursor: pointer; position: relative; padding: 0; }
.ocean-bar__menu span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s var(--ease), top .25s var(--ease); }
.ocean-bar__menu span:first-child { top: 15px; }
.ocean-bar__menu span:last-child { top: 23px; }
.ocean-bar.is-open .ocean-bar__menu span:first-child { top: 19px; transform: rotate(45deg); }
.ocean-bar.is-open .ocean-bar__menu span:last-child { top: 19px; transform: rotate(-45deg); }

/* Buttons */
.o-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 700;
  font-size: .9375rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .12s var(--ease);
}
.o-btn:hover { background: var(--surface-3); }
.o-btn:active { transform: scale(.98); }
.o-btn[disabled], .o-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.o-btn--primary { background: var(--accent); color: var(--accent-ink); }
.o-btn--primary:hover { background: #4fdcff; }
.o-btn--sand { background: var(--sand); color: var(--sand-ink); }
.o-btn--sand:hover { background: #f8dcbd; }
.o-btn--ghost { background: rgba(14, 31, 46, .55); border-color: var(--line-2); color: var(--ink); }
.o-btn--ghost:hover { background: rgba(31, 61, 86, .8); border-color: rgba(243, 238, 226, .32); }
.o-btn--danger { background: var(--bad-soft); color: #ffb3b5; }
.o-btn--danger:hover { background: #5a1d22; }
.o-btn--sm { min-height: 34px; padding: 0 14px; font-size: .875rem; }
.o-btn--lg { min-height: 54px; padding: 0 24px; font-size: 1.0625rem; }
.o-btn--discord { background: #5865f2; color: #fff; }
.o-btn--discord:hover { background: #6d78f5; }
.o-arrow { font-style: normal; display: inline-block; transition: transform .2s var(--ease); }
a:hover > .o-arrow, button:hover > .o-arrow { transform: translateX(4px); }

.o-copy {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 5px 0 18px;
  border: 0;
  border-radius: var(--pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: .9375rem;
  cursor: pointer;
  transition: background-color .15s, transform .12s var(--ease);
}
.o-copy:hover { background: #4fdcff; }
.o-copy:active { transform: scale(.98); }
.o-copy__hint { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: var(--pill); background: rgba(3, 20, 29, .16); font-weight: 700; font-size: .8125rem; }
.o-copy.is-done { background: var(--good); }

/* Fields */
.o-input, .o-select {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(8, 20, 31, .5);
  color: var(--ink);
  font-size: .9375rem;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.o-input::placeholder { color: var(--faint); }
.o-input:hover, .o-select:hover { border-color: rgba(243, 238, 226, .3); }
.o-input:focus, .o-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 203, 255, .18); }
.o-select { padding-right: 36px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239db0bf' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.o-select option { background: var(--surface); }

/* Cards */
.o-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.o-panel--2 { background: var(--surface-2); }

.o-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.o-table th { text-align: left; font-weight: 600; color: var(--muted); padding: 10px 12px; font-size: .8125rem; }
.o-table td { padding: 11px 12px; border-top: 1px solid var(--line); }
.o-table tbody tr { transition: background-color .12s; }
.o-table tbody tr:hover { background: rgba(243, 238, 226, .04); }
.o-table .r { text-align: right; }

.o-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.o-dot--up { background: var(--good); }
.o-dot--down { background: var(--bad); }
.o-dot--warn { background: var(--warn); }

.o-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--pill); background: var(--surface-2); color: var(--soft); font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.o-tag--good { background: var(--good-soft); color: #8ff0b6; }
.o-tag--bad { background: var(--bad-soft); color: #ffb3b5; }
.o-tag--warn { background: var(--warn-soft); color: #ffe09a; }
.o-tag--accent { background: var(--accent-soft); color: var(--foam); }

/* Segmented switch (ShoreSMP style) */
.o-tabs { display: inline-flex; gap: 4px; flex-wrap: wrap; padding: 4px; border-radius: var(--pill); background: rgba(243, 238, 226, .05); border: 1px solid var(--line); }
.o-tabs button, .o-tabs a {
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  color: var(--soft);
  font-weight: 700;
  font-size: .875rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.o-tabs button:hover, .o-tabs a:hover { color: var(--ink); }
.o-tabs [aria-selected="true"], .o-tabs [aria-current="page"] { background: var(--ink); color: var(--bg); }

/* Chips ("More leaderboards: Deaths  Blocks Mined") */
.o-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.o-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 14px; border-radius: var(--pill); border: 1px solid var(--line-2); background: rgba(243, 238, 226, .03); color: var(--soft); font-weight: 600; font-size: .8125rem; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.o-chip:hover { color: var(--ink); border-color: rgba(243, 238, 226, .32); background: rgba(243, 238, 226, .07); }
.o-chip[aria-current="page"], .o-chip[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.o-chip img { width: 20px; height: 20px; border-radius: 4px; image-rendering: pixelated; }

/* Page title band: in-game shot fading into the page, big title bottom left */
.o-band { position: relative; isolation: isolate; overflow: clip; padding: calc(var(--bar-h) + clamp(64px, 9vw, 128px)) 0 clamp(28px, 3.6vw, 48px); }
.o-band::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--band, none) center 45% / cover no-repeat; filter: saturate(.9) blur(1px); transform: scale(1.02); }
.o-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 31, 46, .78) 0%, rgba(14, 31, 46, .5) 35%, rgba(14, 31, 46, .78) 72%, var(--bg) 100%),
    rgba(10, 40, 70, .2);
}
.o-band__in { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.o-band__kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--soft); font-weight: 700; font-size: .875rem; }
.o-band__lede { margin-top: 16px; max-width: 58ch; color: var(--soft); font-size: var(--step-lead); line-height: 1.4; }
.o-band__side { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.o-band--short { padding-top: calc(var(--bar-h) + clamp(40px, 6vw, 80px)); }

.o-section { margin-top: clamp(64px, 8vw, 120px); }
.o-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: clamp(20px, 2.6vw, 32px); }
.o-more { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: .9375rem; text-decoration: none; }

/* Loading: a light sweep across every placeholder, a spinner for anything big or text-only. */
.o-skel {
  border-radius: var(--radius-sm);
  background: linear-gradient(100deg, var(--surface-2) 30%, #28506b 50%, var(--surface-2) 70%) var(--surface-2);
  background-size: 300% 100%;
  animation: o-shimmer 1.3s ease-in-out infinite;
}
@keyframes o-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@keyframes o-pulse { 50% { opacity: .55; } }
@keyframes o-spin { to { transform: rotate(360deg); } }
/* Big placeholder that also says what is loading: <div class="o-skel o-skel--spin" data-label="Loading stats"> */
.o-skel--spin { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--soft); font-weight: 700; font-size: .9375rem; text-align: center; }
.o-skel--spin::before { content: ""; width: 36px; height: 36px; border-radius: 50%; border: 3px solid rgba(243, 238, 226, .16); border-top-color: var(--accent); animation: o-spin .8s linear infinite; }
.o-skel--spin::after { content: attr(data-label); }
.o-spinner { display: inline-block; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2.5px solid rgba(243, 238, 226, .16); border-top-color: var(--accent); animation: o-spin .8s linear infinite; vertical-align: middle; }
.o-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 40px 16px; color: var(--soft); font-weight: 700; }
.o-loadtext::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 10px; border-radius: 50%; border: 2px solid rgba(243, 238, 226, .18); border-top-color: var(--accent); animation: o-spin .8s linear infinite; vertical-align: -2px; }
@media (prefers-reduced-motion: reduce) {
  .o-skel { animation: o-pulse 1.4s ease-in-out infinite !important; animation-duration: 1.4s !important; animation-iteration-count: infinite !important; }
  .o-skel--spin::before, .o-spinner, .o-loadtext::before { animation-duration: 1.6s !important; animation-iteration-count: infinite !important; }
}

.o-empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.o-error { padding: 14px 18px; border-radius: var(--radius); background: var(--bad-soft); color: #ffc9cb; }

.o-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  transform: translate(-50%, 20px);
  opacity: 0;
  padding: 12px 20px;
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
  transition: opacity .2s, transform .25s var(--ease);
  pointer-events: none;
}
.o-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Footer */
.ocean-foot { margin-top: clamp(96px, 11vw, 160px); border-top: 1px solid var(--line); padding: 64px 0 32px; color: var(--muted); font-size: .875rem; }
.ocean-foot__grid { display: grid; grid-template-columns: 1fr repeat(3, auto); gap: 40px 72px; }
.ocean-foot__brand img { width: 160px; height: auto; }
.ocean-foot__brand p { margin-top: 16px; max-width: 34ch; }
.ocean-foot h2 { color: var(--ink); font-size: .875rem; font-weight: 800; letter-spacing: 0; margin: 0 0 14px; }
.ocean-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ocean-foot a { color: var(--muted); text-decoration: none; }
.ocean-foot a:hover { color: var(--ink); }
.ocean-foot__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .8125rem; }

@media (max-width: 960px) {
  .ocean-foot__grid { grid-template-columns: repeat(3, auto); }
  .ocean-foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .ocean-bar__menu { display: block; }
  .ocean-bar__links {
    position: absolute; top: var(--bar-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px; background: rgba(14, 31, 46, .97); border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s;
  }
  .ocean-bar.is-open { background: rgba(14, 31, 46, .97); border-bottom-color: var(--line); }
  .ocean-bar.is-open .ocean-bar__links { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--ease); }
  .ocean-bar__links li { border-bottom: 1px solid var(--line); }
  .ocean-bar__links li:last-child { border-bottom: 0; }
  .ocean-bar__links a { padding: 13px 0; border-radius: 0; font-size: 1.0625rem; background: none !important; }
  .ocean-bar__links a[aria-current="page"] { color: var(--accent); }
  .ocean-bar__links .is-menu-only { display: list-item; }
}
@media (max-width: 640px) {
  :root { --bar-h: 58px; }
  .ocean-foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.o-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.o-reveal.is-in { opacity: 1; transform: none; }
