:root {
    color-scheme: dark;
    --canvas: #10181c;
    --panel: #17252b;
    --line: #30454c;
    --ink: #eff7f5;
    --muted: #abc0c2;
    --teal: #72d7c0;
    --mint: #85e1ce;
    --green: #9eddad;
    --radius: 12px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 1rem/1.5 system-ui, sans-serif; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a:hover { color: var(--mint); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(75rem, calc(100% - 3rem)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: #111e23; }
.header-inner { min-height: 4.15rem; display: flex; align-items: center; gap: clamp(.95rem, 3vw, 2.6rem); }
.header-inner nav { display: flex; gap: clamp(.9rem, 2.5vw, 2rem); color: var(--muted); font-size: .9rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; margin-right: auto; font-size: .9rem; font-weight: 850; letter-spacing: .13em; }
.brand-mark { display: grid; width: 1.95rem; height: 1.95rem; place-items: center; background: var(--teal); color: #0e2724; clip-path: polygon(50% 0, 96% 25%, 96% 75%, 50% 100%, 4% 75%, 4% 25%); letter-spacing: 0; }
.hero { display: grid; align-items: center; position: relative; isolation: isolate; overflow: hidden; width: 100%; aspect-ratio: 1696 / 974; min-height: 18rem; margin-top: 1.2rem; border: 1px solid #36565d; border-radius: var(--radius); background: #172b31; }
.hero-content { padding: clamp(1.25rem, 5vw, 4rem); }
.hero-image { position: absolute; z-index: -2; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #102127ed, #102127b8 32%, #10212738 66%, transparent); }
.eyebrow { color: var(--muted); font-weight: 700; font-size: .875rem; }
.hero .eyebrow { margin-bottom: .65rem; color: var(--mint); }
h1 { font: 850 clamp(2.7rem, 7vw, 5.65rem)/.96 system-ui, sans-serif; letter-spacing: -.067em; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); }
h1 span { color: var(--mint); }
.intro { color: #d8e8e6; max-width: 35ch; margin-top: 1rem; font-size: 1.06rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.35rem; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: .67rem 1rem; border-radius: 7px; border: 1px solid transparent; background: var(--teal); color: #0e2724; font-weight: 800; }
.button:hover { color: #0e2724; background: #a0edda; }
.button-small { font-size: .875rem; padding: .4rem .8rem; }
.button-discord { background: #284857; color: #fff; }
.button-discord:hover { background: #376273; color: #fff; }
.button-secondary { background: #182c33cc; color: var(--ink); border-color: #648c8e; }
.button-secondary:hover { background: #23454a; color: var(--ink); }
.server-strip { margin-top: 1rem; display: grid; grid-template-columns: 1fr .8fr 1.5fr; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.server-strip > div { min-width: 0; padding: .95rem 1.25rem; }
.server-strip > div + div { border-left: 1px solid var(--line); }
.state, .player-count { margin-top: .22rem; font-weight: 750; line-height: 1.4; }
.state { display: flex; gap: .5rem; align-items: center; }
.status-dot { width: .55rem; height: .55rem; border-radius: 50%; background: #8a9da0; flex: none; }
[data-state="online"] .status-dot { background: var(--green); }
[data-state="offline"] .status-dot { background: #f59c9e; }
.player-count { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.address-row { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .65rem; margin-top: .22rem; }
code { color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.copy { color: var(--mint); background: #203941; padding: .13rem .5rem; border: 1px solid #41626a; border-radius: 5px; font-weight: 700; font-size: .875rem; }
#copy-feedback { font-size: .875rem; color: var(--muted); }
#copy-feedback:empty, #roster-message:empty { display: none; }
.community-grid { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr); gap: 1rem; margin-block: 1rem; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel-heading { padding: 1.1rem 1.25rem; }
.panel-heading h2 { font-size: 1.28rem; line-height: 1.2; letter-spacing: -.025em; }
.panel-heading p, .no-script { margin-top: .3rem; color: var(--muted); font-size: .9rem; }
.no-script { margin: 0 1.25rem 1.15rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
thead { background: #203138; color: var(--muted); }
th, td { padding: .64rem .4rem; font-size: .9rem; }
th { font-weight: 700; }
th:first-child, td:first-child { padding-left: 1.25rem; width: 43%; }
th:nth-child(2) { width: 29%; }
th:last-child, td:last-child { padding-right: .9rem; }
td { border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.player-name { font-weight: 750; unicode-bidi: isolate; }
.rank { display: inline-block; max-width: 100%; padding: .1rem .43rem; border-radius: 5px; background: #243345; color: #a4d1fa; font-weight: 700; }
.rank-admin { background: #3f2c1b; color: #ffc874; }
.rank-moderator { background: #233b4b; color: #aed6ed; }
.rank-donator { background: #17343c; color: #66e6e0; }
.room { color: var(--muted); }
.game-list { list-style: none; margin: 0; padding: 0 1.25rem; }
.game-list li { display: flex; align-items: center; gap: .75rem; padding-block: .7rem; border-top: 1px solid var(--line); --game: #85e1ce; }
.game-list h3 { font-size: 1rem; }
.game-list p { color: var(--muted); font-size: .875rem; margin-top: .08rem; }
.game-mark { width: .66rem; height: .66rem; transform: rotate(45deg); background: var(--game); flex: none; margin-inline: .15rem; border-radius: 1px; }
.game-list .boat { --game: #7dc2f9; }
.game-list .platforms { --game: #9eddad; }
.game-list .raft { --game: #65cdbc; }
.game-list .hill { --game: #ffc082; }
.game-list .relay { --game: #8cdcca; }
.availability { color: var(--green); margin-left: auto; font-size: .875rem; text-align: right; }
.chat-note { color: var(--muted); margin-block: 1.35rem 1.9rem; font-size: .9rem; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.site-footer .shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; padding-block: 1rem; }
@media (max-width: 54rem) {
    .community-grid { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
    .shell { width: calc(100% - 1.5rem); }
    .header-inner { gap: .75rem; }
    .header-inner nav { display: none; }
    .hero::before { background: linear-gradient(90deg, #102127ed, #10212790); }
    .server-strip { grid-template-columns: 1.15fr .85fr; }
    .server-strip > div { padding: .8rem .95rem; }
    .server-strip .address-box { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; }
    .panel-heading { padding-inline: .95rem; }
    .game-list { padding-inline: .95rem; }
    th:first-child, td:first-child { padding-left: .95rem; width: 37%; }
    th:nth-child(2) { width: 31%; }
}
