@font-face {
  font-family: Barlow Condensed;
  src: url('/static/fonts/barlow-condensed-bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Space Grotesk;
  src: url('/static/fonts/space-grotesk.ttf') format('truetype');
  font-weight: 300 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #080d13;
  --surface: #111a24;
  --line: #2a3848;
  --text: #edf5fd;
  --muted: #a9bacb;
  --ice: #81d8ff;
  --fire: #ff9a54;
  --accent: var(--ice);
  --width: 1330px;
  --gutter: clamp(18px, 5vw, 78px);
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}
*,*::before,*::after { box-sizing: border-box }
html { scroll-behavior: smooth }
body { margin: 0; min-height: 100vh; line-height: 1.55; background: radial-gradient(ellipse at 86% 12rem,#142338 0,transparent 42rem),var(--bg) }
img { display: block; max-width: 100% }
a { color: inherit; text-decoration: none }
button,input,textarea,select { font: inherit }
button,select,summary { cursor: pointer }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 4px }
.wrap { width: min(var(--width), calc(100% - var(--gutter)*2)); margin-inline: auto }
.full-bleed { width: 100vw; margin-inline: calc((100% - 100vw)/2) }
@supports (width: 100cqw) { body { container-type: inline-size } .full-bleed { width: 100cqw; margin-inline: calc((100% - 100cqw)/2) } }
.skip { position: absolute; z-index: 8; left: 1rem; top: -5rem; background: var(--surface); padding: .65rem 1rem }
.skip:focus { top: 1rem }
.icon { width: 1.12em; height: 1.12em; flex: none; vertical-align: middle }
.site-header { border-bottom: 1px solid #91b6d027; background: #080d13; position: relative; z-index: 2 }
.header-inner { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: clamp(.8rem, 3vw, 2.5rem) }
.brand { display: flex; align-items: center; gap: .75rem; font: 700 1.45rem/.95 var(--display); text-transform: uppercase; letter-spacing: .035em; white-space: nowrap }
.brand img { width: 42px; height: 42px; border: 1px solid #92cce260; border-radius: 50%; object-fit: cover }
.brand b { color: var(--ice) }
nav { display: flex; gap: clamp(.65rem, 3vw, 2.5rem); align-items: center }
nav a { font-size: .9rem; color: var(--muted); white-space: nowrap }
.header-inner nav a { position: relative; padding-block: 1.65rem; font-weight: 600 }
.header-inner nav a[aria-current]::after { position: absolute; content: ''; inset: auto 0 0; height: 2px; background: var(--ice); box-shadow: 0 0 14px var(--ice) }
nav a[aria-current],nav a:hover { color: var(--text) }
.button,.copy { border: 1px solid #465b70; background: #162434a6; color: var(--text); min-height: 44px; padding: .65rem 1.05rem; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font-size: .9rem; font-weight: 700; transition: background .2s,border-color .2s,box-shadow .2s; text-align: center }
.button:hover,.copy:hover { background: #20394c; border-color: var(--ice) }
.primary { background: var(--ice); border-color: var(--ice); color: #07131d; box-shadow: 0 0 24px #64caff30 }
.primary:hover { color: #07131d; background: #b6ecff; box-shadow: 0 0 30px #64caff60 }
h1,h2,h3 { font-family: var(--display); font-weight: 700; line-height: .96; margin: 0; text-transform: uppercase; overflow-wrap: anywhere }
h1 { font-size: clamp(3.3rem,8vw,7.5rem) }
h2 { font-size: clamp(2.2rem,4.7vw,4.2rem); margin-bottom: .65rem }
h3 { font-size: clamp(1.65rem,3vw,2.4rem) }
p { margin: .65rem 0 1rem; color: var(--muted) }
.overline { text-transform: uppercase; letter-spacing: .17em; font-weight: 700; color: var(--accent); font-size: .82rem; margin: 0 0 .65rem }
.signal { display: inline-block; height: .55rem; width: .55rem; margin-right: .4rem; border: 1px solid var(--ice); transform: rotate(45deg); box-shadow: 0 0 12px var(--ice) }
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100svh - 75px); display: grid; align-items: center; background: #070d15; border-bottom: 1px solid #84d9ff38 }
.hero-art { position: absolute; inset: 0 0 0 auto; width: 79%; height: 100%; object-fit: cover; object-position: 54% 50%; z-index: -3 }
.hero::after,.game-hero::after { content: ''; position: absolute; inset: 0; z-index: -1 }
.hero::after { background: linear-gradient(90deg,#070d15 8%,#070d15 19%,#070d15de 32%,#070d1533 59%,transparent 77%),linear-gradient(0deg,#080d13 0%,transparent 23%) }
.hero-atmosphere { position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse at 74% 69%,#fb6c2838,transparent 34%),radial-gradient(ellipse at 56% 54%,#43caff34,transparent 42%); mix-blend-mode: screen; animation: atmosphere 6s ease-in-out infinite alternate }
@keyframes atmosphere { from { opacity: .35 } to { opacity: .9 } }
.hero-copy { padding-block: 3rem 4rem }
.hero h1 { font-size: clamp(5rem,11vw,10rem); letter-spacing: -.025em; line-height: .79; text-shadow: 0 8px 45px #050910 }
.hero h1 em { display: block; font-style: normal; color: #9de0ff; margin-top: .13em }
.hero-description { font-size: clamp(1.05rem,2vw,1.3rem); max-width: 32ch; margin: 1.9rem 0 1.5rem; color: #d3e1ee }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center }
.section { margin-top: clamp(2.5rem,6vw,5.4rem) }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: .9rem; margin-bottom: 1.35rem }
.section-head h2 { margin: 0 }
.worlds { scroll-margin-top: 1.5rem }
.server-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(.8rem,2vw,1.6rem) }
.server-card { border: 1px solid var(--line); overflow: hidden; background: linear-gradient(145deg,#172231,#0c131d 77%); min-width: 0; transition: border-color .25s,transform .25s }
.server-card:hover { border-color: var(--accent); transform: translateY(-4px) }
.theme-smp { --accent: #82e1be }
.theme-atm10 { --accent: #fbb66e }
.theme-infinity { --accent: #b8a7ff }
.theme-duel { --accent: #f79463 }
.theme-conan { --accent: #ff9a54 }
.theme-trackmania { --accent: #82d5ff }
.server-art { display: block; position: relative; aspect-ratio: 1.5; overflow: hidden; background: #0c1624; border-bottom: 2px solid var(--accent) }
.server-art img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.server-body { padding: clamp(.9rem,2vw,1.45rem) }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: .55rem; margin-bottom: .55rem }
.card-top .overline { margin: 0 }
.occupancy,.server-meta,.status-list > div { display: flex; align-items: center; justify-content: space-between; gap: .55rem }
.status { display: inline-flex; align-items: center; gap: .42rem; font-size: .86rem; font-weight: 700; color: var(--muted) }
.status i { width: .42rem; height: .42rem; background: currentColor; border-radius: 100%; flex: none }
.status.online { color: #93ebc3 }
.status.online i { box-shadow: 0 0 9px #8af6c5a0 }
.status.maintenance { color: var(--fire) }
.occupancy { font-size: .9rem; color: var(--muted) }
.occupancy strong { color: var(--text); font-variant-numeric: tabular-nums }
progress { width: 100%; height: .38rem; display: block; margin: .65rem 0; appearance: none; border: 0; overflow: hidden; background: #263647 }
progress::-webkit-progress-bar { background: #263647 }
progress::-webkit-progress-value { background: linear-gradient(90deg,#4882ad,var(--accent)); transform-origin: left; animation: fill .7s ease-out both }
progress::-moz-progress-bar { background: var(--accent) }
@keyframes fill { from { transform: scaleX(0) } to { transform: scaleX(1) } }
.server-meta { background: #080f18; border: 1px solid var(--line); padding: .32rem .32rem .32rem .65rem; margin: .8rem 0 }
code { color: var(--ice); overflow-wrap: anywhere }
.copy { padding: .32rem .58rem; min-height: 35px; font-size: .85rem }
.text-link { color: var(--accent); font-weight: 700 }
.text-link:hover,.footer a:hover { text-decoration: underline }
.metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,165px),1fr)); gap: .75rem; margin-top: 1rem }
.metric { border: 1px solid var(--line); border-top: 2px solid var(--accent); padding: .9rem 1.1rem; display: grid; align-content: start; gap: .4rem; background: linear-gradient(155deg,#172533,#101722); min-width: 0 }
.metric span { color: var(--muted); font-size: .91rem }
.metric strong { font: 700 clamp(1.75rem,3.8vw,3rem)/.98 var(--display); font-variant-numeric: tabular-nums; color: var(--text); overflow-wrap: anywhere }
.metric:nth-child(even) { --accent: var(--fire) }
.community-block { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2fr); gap: 1.4rem; align-items: center; padding: clamp(1.25rem,3vw,2.5rem); border: 1px solid var(--line); background: linear-gradient(110deg,#172738,#111923 55%,#291d1b) }
.community-block h2 { font-size: clamp(2rem,4vw,3.2rem) }
.community-block .metrics { margin: 0 }
.panel { background: linear-gradient(145deg,#172332,#101721 80%); border: 1px solid var(--line); padding: clamp(1rem,2.6vw,2rem); min-width: 0 }
.panel h2 { font-size: clamp(1.8rem,3.2vw,2.65rem) }
.split { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.1rem; border-top: 1px solid var(--line); padding: 1.7rem 0 2.4rem; margin-top: 4rem; color: var(--muted) }
.footer .brand { margin-right: auto }
.page-head { padding: clamp(2.5rem,7vw,6rem) 0 1.8rem }
.page-head h1,.game-hero h1 { font-size: clamp(3.3rem,8vw,7rem) }
.page-head p { max-width: 60ch }
.game-hero,.character-banner { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(330px,44vw,580px); display: grid; align-items: end; border-bottom: 2px solid var(--accent); background: #0e1621; margin-top: 1.7rem; padding: clamp(1.2rem,5vw,3.7rem) }
.game-hero img,.character-banner > img { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 74%; height: 100%; object-fit: cover; object-position: center 55% }
.game-hero::after,.character-banner::after { background: linear-gradient(90deg,#0e1621 14%,#0e1621d9 35%,transparent 83%),linear-gradient(0deg,#0e1621,transparent 60%) }
.game-hero > div { max-width: 620px }
.game-hero p { color: #d4e4f0 }
.game-hero .overline { color: var(--accent) }
.character-banner { min-height: 170px; padding: 1.15rem }
.character-banner::after { content: ''; position: absolute; inset: 0; z-index: -1 }
.podium { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: end; gap: .7rem; margin-top: 2rem }
.podium-place { --medal: #e4a178; padding: 1.15rem .55rem; border: 1px solid var(--line); border-top: 3px solid var(--medal); background: radial-gradient(ellipse at top,color-mix(in srgb,var(--medal),#101a23 78%),#101a23 73%); display: grid; justify-items: center; text-align: center; gap: .55rem; overflow-wrap: anywhere }
.podium-place:hover { border-color: var(--medal) }
.medal-1 { --medal: #ffd393; order: 2; padding-block: 1.85rem }
.medal-2 { --medal: #b9dfff; order: 1 }
.medal-3 { order: 3 }
.place-number { color: var(--medal); font: 700 1.7rem var(--display) }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover }
.avatar-large { width: clamp(50px,8vw,86px); height: clamp(50px,8vw,86px); outline: 1px solid var(--accent); outline-offset: 3px }
.placeholder { display: inline-grid; place-items: center; background: #263f56; color: var(--ice); font-weight: 700 }
.identity { display: flex; align-items: center; gap: .85rem; min-width: 0; overflow-wrap: anywhere }
.filters { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)) auto; align-items: end; gap: .75rem }
.filters.compare { grid-template-columns: 1fr 1fr auto }
label { display: grid; gap: .3rem; color: var(--muted); font-size: .92rem }
input,select,textarea { width: 100%; min-width: 0; min-height: 44px; padding: .58rem .65rem; background: #0a131e; border: 1px solid #43586b; color: var(--text) }
.check { display: flex; gap: .6rem; align-items: baseline }
.check input { width: 1rem; min-height: auto; accent-color: var(--ice) }
.profile-form { display: grid; gap: .8rem }
.table-wrap { overflow-x: auto; border: 1px solid var(--line) }
table { width: 100%; border-collapse: collapse; background: #101923 }
th,td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere }
th { color: var(--ice); font-size: .91rem; background: #172738 }
tbody tr:hover { background: #182b3b }
tr:last-child td { border-bottom: 0 }
.own { background: #29435470 }
p.own { padding: .55rem .8rem }
.pagination { justify-content: center; margin: 1rem 0 }
.page-count_page { background: radial-gradient(ellipse at 75% 15rem,#132d42 0,transparent 40rem),var(--bg) }
.count-stage { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1rem }
.count-display { position: relative; isolation: isolate; min-height: 205px; padding: clamp(1rem,3vw,2.1rem); overflow: hidden; border: 1px solid #3c6785; border-top: 2px solid var(--accent); background: repeating-linear-gradient(90deg,#86d9ff11 0 1px,transparent 1px 32px),linear-gradient(145deg,#182f43,#0d1722 78%) }
.count-display.high-score { --accent: var(--fire); border-color: #965838; border-top-color: var(--accent); background: repeating-linear-gradient(90deg,#ff925014 0 1px,transparent 1px 32px),linear-gradient(145deg,#3b251f,#17151b 78%) }
.count-display > .icon { position: absolute; z-index: -1; height: 10rem; width: 10rem; right: -.75rem; bottom: -.75rem; color: var(--accent); opacity: .21 }
.count-display .metric { --accent: inherit; padding: 0; border: 0; background: none }
.count-display strong { font-size: clamp(3.5rem,9vw,7rem); color: var(--accent) }
.count-display progress { max-width: 15rem; margin-bottom: 0 }
.chart summary { display: grid; grid-template-columns: 3.4rem 1fr 3rem; align-items: center; gap: .7rem; border-bottom: 1px solid var(--line); padding: .5rem 0 }
.chart summary strong { text-align: right }
.chart summary:hover,.dashboard-detail summary:hover { color: var(--ice) }
.chart details p { margin: .35rem 0 .65rem 4.1rem }
.dashboard-detail { margin-top: .7rem }
.status-list > div + div { border-top: 1px solid var(--line); margin-top: .55rem; padding-top: .55rem }
.bio { white-space: pre-wrap; overflow-wrap: anywhere }
.prose { max-width: 760px }
.muted { color: var(--muted) }
.link-confirm { margin: 1rem 0 }
main { animation: page-enter .22s ease-out both }
@keyframes page-enter { from { opacity: .8; transform: translateY(3px) } }
@media (max-width: 980px) {
  .filters { grid-template-columns: repeat(3,minmax(0,1fr)) }
  .server-grid { grid-template-columns: repeat(2,minmax(0,1fr)) }
}
@media (max-width: 740px) {
  .header-inner { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .3rem; padding-top: .5rem }
  .header-inner nav { grid-row: 2; grid-column: 1/-1; justify-content: space-between; gap: .3rem }
  .header-inner nav a { padding-block: .55rem; font-size: .87rem }
  .brand { font-size: 1.25rem; gap: .45rem }
  .brand img { width: 34px; height: 34px }
  .account { padding-inline: .55rem; min-height: 38px }
  .hero { min-height: max(580px,calc(100svh - 92px)); align-items: end }
  .hero-art { width: 100%; height: 72%; object-position: center; }
  .hero::after { background: linear-gradient(0deg,#080d13 14%,#080d13ed 32%,#080d1322 65%,transparent 86%) }
  .hero-copy { padding-block: 2rem }
  .hero h1 { font-size: clamp(4.5rem,17vw,7rem) }
  .hero-description { margin: 1.25rem 0 1rem }
  .community-block,.split { grid-template-columns: 1fr }
  .metrics { grid-template-columns: repeat(auto-fit,minmax(min(100%,138px),1fr)) }
  .filters,.filters.compare { grid-template-columns: repeat(2,minmax(0,1fr)) }
  .game-hero img,.character-banner > img { width: 100% }
  .game-hero::after,.character-banner::after { background: linear-gradient(0deg,#0e1621 7%,#0e1621e6 32%,#0e16211e 85%) }
}
@media (max-width: 540px) {
  .server-grid { grid-template-columns: 1fr }
  .section-head { align-items: center }
  .section-head .button { padding-inline: .55rem }
  .count-stage { grid-template-columns: 1fr }
  .count-display { min-height: 145px }
  .count-display > .icon { width: 7rem; height: 7rem }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important }
}

.history-figure { margin: 1.6rem 0 1.4rem; }
.history-figure canvas { display: block; width: 100%; height: clamp(165px,24vw,280px); }
.history-figure figcaption { display: flex; flex-wrap: wrap; gap: .45rem 1.1rem; margin-top: .65rem; color: var(--muted); font-size: .9rem; }
.history-figure figcaption span::before { content: ''; display: inline-block; vertical-align: middle; width: .75rem; height: .2rem; background: var(--ice); margin-right: .4rem; }
.history-figure figcaption span + span::before { background: var(--fire); }

.game-hero img,.character-banner > img { object-fit: contain; object-position: right center; }
.game-hero { background: linear-gradient(110deg,#0e1621 32%,color-mix(in srgb,var(--accent),#0e1621 88%)); }
@media (max-width: 740px) {
  .game-hero { padding: 0; gap: 0; }
  .game-hero img { position: static; width: 100%; height: auto; aspect-ratio: 3 / 2; }
  .game-hero::after { display: none; }
  .game-hero > div { padding: 1.2rem; }
}
