@font-face {
  font-family: AngelsMC;
  src: url("/assets/font.otf?v=2") format("opentype");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: AngelsMC, monospace;
  font-synthesis: none;
  --background: #1A1A1E;
  --surface: #1A1A1E;
  --surface-raised: #303034;
  --line: #000;
  --text: #fff;
  --muted: #cecece;
  --accent: #d6d671;
  --green: #84f378;
  --red: #ffada8;
  --minecraft-bevel: inset 0 3px #ffffff30, inset 0 -4px #0006, inset 3px 0 #ffffff18, inset -3px 0 #0005;
  --pixel: 4px;
  --pixel-shape: polygon(var(--pixel) 0, calc(100% - var(--pixel)) 0,
    calc(100% - var(--pixel)) var(--pixel), 100% var(--pixel),
    100% calc(100% - var(--pixel)),
    calc(100% - var(--pixel)) calc(100% - var(--pixel)),
    calc(100% - var(--pixel)) 100%, var(--pixel) 100%,
    var(--pixel) calc(100% - var(--pixel)), 0 calc(100% - var(--pixel)),
    0 var(--pixel), var(--pixel) var(--pixel));
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
@supports not (scrollbar-gutter: stable) { html { overflow-y: scroll; } }
body {
  margin: 0;
  min-width: 300px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
  line-height: 1.55;
  isolation: isolate;
}
main { flex: 1; }
body > main, .site-header, .site-footer { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
input { min-width: 0; }
img { display: block; max-width: 100%; object-fit: contain; image-rendering: pixelated; -webkit-user-drag: none; -webkit-touch-callout: none; user-select: none; }
svg { width: 1em; height: 1em; vertical-align: middle; fill: currentColor; shape-rendering: crispEdges; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 400; line-height: 1.3; }
strong, b { font-weight: 400; }
em { font-style: normal; color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.container { width: min(1240px, calc(100% - 56px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; top: 12px; left: 12px; padding: 12px; transform: translateY(-150%); background: var(--surface); }
.skip-link:focus { transform: translateY(0); }
.muted { color: var(--muted); }
.removed-request { opacity: .7; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { border-bottom: var(--pixel) solid #000; background: var(--background); }
.site-header-inner, .site-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 90px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.13rem; white-space: nowrap; }
.brand-accent { color: var(--accent); }
.site-header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.site-header nav a, .admin-link, .webmap-label { position: relative; color: #fff; padding: 10px 16px; border: var(--pixel) solid #000; background: var(--surface-raised); clip-path: var(--pixel-shape); box-shadow: inset 0 3px #ffffff24, inset 0 -4px #0006, inset 3px 0 #ffffff12, inset -3px 0 #0004; font-size: .9rem; transition: background .18s, translate .18s; }
.site-header nav a:hover, .site-header nav a[aria-current], .admin-link:hover, .admin-link[aria-current] { background: #3c3c40; color: #fff; }
.site-header nav a[aria-current]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 3px; height: 3px; background: #b7e89d; }
.site-header nav a:active, .admin-link:active { translate: 0 2px; box-shadow: inset 0 3px #0005, inset 0 -2px #ffffff12; }
.site-footer { border-top: var(--pixel) solid #000; margin-top: auto; background: var(--background); }
.site-footer .brand { font-size: 1rem; }
.footer-brand-status { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-brand-status .footer-server-summary { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 0; padding: 0; background: transparent; color: var(--muted); }
.footer-server-summary .server-status { font-size: .65rem; gap: 7px; }
.footer-server-summary .refresh-label { font-size: .6rem; color: var(--muted); }
.footer-server-summary .status-dot { width: 10px; height: 10px; }
.admin-link svg { margin-right: 5px; }

.panel, .button, input, .profile-head, .online-player {
  border: var(--pixel) solid #000;
  border-radius: 0;
  clip-path: var(--pixel-shape);
}
.panel { background: var(--surface); box-shadow: var(--minecraft-bevel); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 16px; font-size: .95rem; box-shadow: inset 0 3px #ffffff40, inset 0 -4px #0004, inset 3px 0 #ffffff20, inset -3px 0 #0003; transition: translate .16s, background .16s; }
.button:active { translate: 0 2px; box-shadow: inset 0 3px #0004, inset 0 -2px #ffffff20; }
.button-primary { background: #cecece; color: #000; }
.button-primary:hover { background: #e2e2e2; }
.button-quiet { background: var(--surface-raised); color: #fff; }
.button-quiet:hover { background: #454549; }
.button-danger { background: #e09491; color: #000; }
.button-danger:hover { background: #efb3b0; }
.panel:focus-visible, .button:focus-visible, input:focus-visible,
.site-header nav a:focus-visible, .admin-link:focus-visible { outline: none; box-shadow: inset 0 0 0 var(--pixel) var(--accent); }
label { font-size: .9rem; color: #fff; }
input { display: block; width: 100%; padding: 12px 14px; background: var(--background); color: #fff; }
input::placeholder { color: #cecece; }
.form-message { color: var(--muted); font-size: .85rem; min-height: 1.55em; }
.form-message[data-kind="error"], .form-message[data-kind="fetch-error"] { color: var(--red); }
.form-message[data-kind="success"] { color: var(--green); }
.empty-state { color: #fff; font-size: .9rem; text-align: center; padding: 28px 10px; }
.eyebrow { color: var(--accent); font-size: .75rem; display: flex; align-items: center; gap: 8px; }
.eyebrow span { width: 6px; height: 6px; background: var(--accent); }
.page-description { color: var(--muted); font-size: clamp(.9rem, 2vw, 1rem); }

.whitelist-page { position: relative; isolation: isolate; display: grid; place-items: center; overflow: hidden; padding: 60px 24px 72px; }
.whitelist-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 72px); }
.join-art { position: relative; isolation: isolate; display: grid; place-items: center; min-width: 0; min-height: 520px; }
.join-orbit { position: absolute; z-index: -1; width: min(90%, 480px); aspect-ratio: 1; top: 50%; left: 50%; translate: -50% -50%; rotate: 45deg; border: 1px solid #343437; }
.join-orbit::before, .join-orbit::after { content: ""; position: absolute; inset: 10%; border: 1px solid #343437; }
.join-orbit::after { inset: 20%; }
.join-content { display: flex; flex-direction: column; align-items: center; width: 100%; text-align: center; gap: 15px; }
.hero-logo { margin-bottom: 4px; animation: logo-float 6s ease-in-out infinite; }
@keyframes logo-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (max-width: 900px) {
  .whitelist-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .join-art { min-height: 0; padding-block: 32px; }
  .join-art .hero-logo { width: min(380px, 85%); }
}
.join-content h1 { font-size: clamp(2.1rem, 6vw, 4rem); }
.join-form { width: min(100%, 460px); margin-top: 18px; padding: 26px; display: grid; gap: 12px; text-align: start; }
.profile-preview { display: grid; justify-items: center; gap: 9px; margin-bottom: 6px; }
.profile-head { display: grid; place-items: center; width: 82px; height: 82px; background: #303034; }
.profile-head, .online-player, .profile-badge, .badge-award-row { box-shadow: var(--minecraft-bevel); }
.profile-head svg { width: 32px; height: 32px; color: var(--muted); }
.profile-head:has(img:not([hidden])) svg { display: none; }
.profile-preview strong { font-size: 1rem; }
.input-wrap { position: relative; }
.input-wrap svg { color: var(--muted); pointer-events: none; position: absolute; top: 50%; left: 14px; translate: 0 -50%; }
.input-wrap input { padding-left: 40px; }
.join-form .button { margin-top: 5px; min-height: 48px; }
.join-note { color: var(--muted); font-size: .8rem; display: flex; align-items: center; gap: 7px; margin-top: 4px; }

.stats-page { padding-block: 36px 80px; }
.stats-banner { width: 100%; }
.stats-banner-image { width: 100%; height: auto; }
.server-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; width: fit-content; max-width: 100%; margin-top: 18px; padding: 10px 14px; background: #cecece; color: #000; }
.server-status { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; }
.status-dot { display: block; flex-shrink: 0; width: 10px; height: 10px; background: #cf5252; clip-path: polygon(3px 0, 7px 0, 7px 1px, 9px 1px, 9px 3px, 10px 3px, 10px 7px, 9px 7px, 9px 9px, 7px 9px, 7px 10px, 3px 10px, 3px 9px, 1px 9px, 1px 7px, 0 7px, 0 3px, 1px 3px, 1px 1px, 3px 1px); }
.server-status[data-state="online"] .status-dot { background: #2caa42; }
.refresh-label { color: #000; font-size: .7rem; }
.stats-section { margin-top: 96px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { flex: 0 1 auto; min-width: 0; }
.section-title-image { width: auto; height: 36px; max-width: 100%; }
.quiet-tag { color: #fff; font-size: .95rem; flex-shrink: 0; text-align: right; }
.leaderboard-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.leaderboard-card { grid-column: span 2; overflow: hidden; color: #000; background: var(--category-fill); }
.leaderboard-card[data-limit="6"] { grid-column: span 3; }
.leaderboard-card[data-category="playtime"] { --category-fill: #D6D671; }
.leaderboard-card[data-category="mobKills"] { --category-fill: #E09491; }
.leaderboard-card[data-category="diamonds"] { --category-fill: #84F3FF; }
.leaderboard-card[data-category="blocksPlaced"] { --category-fill: #EBD971; }
.leaderboard-card[data-category="blocksBroken"] { --category-fill: #E2E2E2; }
.leaderboard-card[data-category="emeralds"] { --category-fill: #84F378; }
.leaderboard-card[data-category="distance"] { --category-fill: #C7B4EF; }
.leaderboard-card[data-category="food"] { --category-fill: #F0BD85; }
.leaderboard-card[data-category="debris"] { --category-fill: #C8A890; }
.leaderboard-card[data-category="deaths"] { --category-fill: #D8B6CB; }
.leaderboard-card[data-category="totems"] { --category-fill: #B5E3A2; }
.leaderboard-heading { display: flex; align-items: center; justify-content: flex-start; gap: 14px; min-height: 100px; padding: 22px 18px; }
.category-icon { width: 64px; height: 46px; flex: 0 0 64px; object-fit: contain; }
.category-title { min-width: 0; }
.category-title-image { height: 28px; max-width: 100%; width: auto; object-position: left center; }
.leaderboard-rows { list-style: none; margin: 0; padding: 0 14px 18px; }
.leaderboard-row { display: grid; grid-template-columns: 32px 32px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 48px; font-size: 1rem; }
.rank { display: grid; place-items: center; color: #000; text-align: center; font-size: 1.25rem; }
.rank-icon { width: 32px; height: 32px; }
.player-head { background: var(--background); object-fit: cover; flex: 0 0 auto; }
.leaderboard-row .player-head { width: 32px; height: 32px; }
.player-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-value { color: #000; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.leaderboard-card .empty-state { color: #000; min-height: 80px; }
.leaderboard-row.is-placeholder .player-head { opacity: .55; }
.leaderboard-row.is-placeholder .player-name { font-size: .75em; }

.roadmap-panel { padding: 26px 18px; overflow: hidden; background: #808080; }
.roadmap { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.goal { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 0 7px; }
.goal:not(:last-child)::after { content: ""; position: absolute; z-index: -1; top: 56px; left: 50%; width: 100%; height: 2px; background: #555; }
.goal[data-connected="true"]::after { background: #fff; box-shadow: 0 0 6px #fff, 0 0 15px #fff8; }
.goal-art { display: block; width: min(100%, 112px); aspect-ratio: 1; }
/* The current PNG placeholders have a baked frame outside their artwork. */
.goal-art img { width: 100%; height: 100%; clip-path: inset(var(--goal-image-trim, 7%)); }
.goal-number { font-size: .63rem; color: #fff; }
.goal strong { font-size: .79rem; line-height: 1.4; color: #fff; }
.goal[data-complete="true"] .goal-number { color: #fff; }
.online-panel { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px; background: #808080; }
.online-panel > p { width: 100%; }
.online-player { display: flex; align-items: center; gap: 7px; max-width: 100%; min-height: 38px; padding: 6px 8px 6px 6px; background: #cecece; color: #000; font-size: .7rem; }
.online-player .player-head { width: 24px; height: 24px; }

.well-page { text-align: center; padding-block: 55px 80px; }
.community-page { padding-block: 48px 80px; }
.community-logo { display: flex; justify-content: center; margin: 12px auto 54px; }
.community-logo img { width: auto; max-width: min(80vw,600px); height: 72px; }
.teams-logo img { height: 58px; }
.discord-heading { margin-top: 30px; }
.discord-panel { padding: 10px; min-height: 600px; }
.discord-panel iframe { display: block; width: 100%; height: max(600px,75vh); border: 0; background: #202225; }
.discord-panel iframe[hidden],.discord-panel .empty-state[hidden] { display: none; }
.discord-panel .empty-state { min-height: 560px; }
.community-dialog { width: min(600px,calc(100% - 24px)); max-height: 90vh; overflow-y: auto; padding: 26px; color: #fff; }
.community-dialog h2 { margin-bottom: 18px; }
.community-dialog p { overflow-wrap: anywhere; }
.community-dialog::backdrop { background: #000b; }
.external-url { margin: 18px 0; color: #d6d671; }
.team-table { display: block; padding: 10px 16px; }
.team-row { display: grid; grid-template-columns: minmax(100px,1fr) 8px minmax(70px,.65fr) 8px minmax(160px,1.25fr) 8px minmax(100px,1.3fr) 42px; align-items: center; gap: 8px; padding: 10px 0; }
.team-row + .team-row { border-top: var(--pixel) solid #29292d; box-shadow: inset 0 2px #ffffff45; }
.team-cell-surface { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; width: 100%; margin: 0; padding: 9px 10px; border: var(--pixel) solid #000; background: var(--surface-raised); clip-path: var(--pixel-shape); box-shadow: inset 0 3px #ffffff24,inset 0 -4px #0006,inset 3px 0 #ffffff12,inset -3px 0 #0004; text-shadow: 1px 2px #0009; }
.team-name,.team-tag { overflow-wrap: anywhere; }
.team-separator { color: #aaa; text-align: center; }
.team-bracket { color: #555; text-shadow: 1px 1px #000; }
.team-members { display: flex; flex-wrap: wrap; gap: 5px; }
.team-member { display: block; flex: 0 0 28px; }
.team-member .player-head { width: 28px; height: 28px; }
.team-settings-button { min-height: 40px; width: 40px; padding: 6px; }
.team-base { color: #fff; font: inherit; font-size: .78rem; overflow-wrap: anywhere; cursor: pointer; }
.team-base:hover { color: #d6d671; }
.team-base-empty { color: #ccc; }
.team-chest-reason { color: #ff7777; }
.webmap-section { margin-top: 0; }
.webmap-section + .stats-section { margin-top: 76px; }
.webmap-panel { padding: 12px; background: #808080; }
.webmap-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; color: #fff; }
.webmap-toolbar > span { font-size: .85rem; }
.webmap-label { display: inline-flex; align-items: center; justify-content: center; width: fit-content; flex: 0 1 auto; }
.webmap-label img { display: block; width: auto; height: auto; max-width: min(56vw,360px); max-height: 32px; image-rendering: pixelated; }
.webmap-render-status { margin: 0 4px 12px; color: #fff; font-size: .8rem; }
.webmap-controls { display: flex; gap: 6px; flex-shrink: 0; }
.webmap-controls .button { padding: 8px 12px; }
.webmap-viewport { position: relative; width: 100%; height: clamp(380px,65vh,760px); overflow: hidden; background: #222228; border: var(--pixel) solid #111; box-shadow: inset 0 3px #0008; }
.webmap-viewport canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; cursor: grab; touch-action: none; }
.webmap-viewport canvas[hidden],.webmap-viewport .empty-state[hidden] { display: none; }
.webmap-viewport canvas.is-dragging { cursor: grabbing; }
.webmap-effects { position: absolute; top: 10px; right: 10px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; z-index: 4; max-width: calc(100% - 20px); }
.webmap-effects .button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; min-height: 36px; font-size: .75rem; color: #fff; background: #303034; }
.webmap-effects .button svg { width: 16px; height: 16px; flex: 0 0 16px; }
.webmap-effects .button[aria-pressed="true"] { color: #b7e89d; box-shadow: inset 0 3px #ffffff24,inset 0 -4px #0008,inset 0 -7px #b7e89d66; }
.webmap-spawn-marker { position: absolute; top: 0; left: 0; width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; z-index: 3; cursor: help; filter: drop-shadow(0 2px 0 #0008); }
.webmap-spawn-marker[hidden] { display: none; }
.webmap-team-markers { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.webmap-team-marker { position: absolute; top: 0; left: 0; display: block; width: 32px; height: 32px; margin: 0; padding: 0; border: 0; background: transparent; pointer-events: auto; cursor: help; filter: drop-shadow(0 2px 0 #0008); }
.webmap-team-marker svg { display: block; width: 32px; height: 32px; pointer-events: none; }
.webmap-team-marker:focus-visible,.webmap-spawn-marker:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.webmap-marker-tooltip { position: absolute; z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 6px; width: max-content; max-width: calc(100% - 16px); padding: 14px 18px; background: #303034; color: #fff; text-align: center; pointer-events: none; }
.webmap-marker-tooltip.is-spawn { padding: 8px 12px; }
.webmap-spawn-label { color: #ffaa00; font-weight: 700; text-shadow: 1px 0 #ffaa00; }
.webmap-tooltip-heads { display: flex; flex-wrap: wrap; justify-content: center; padding-left: 9px; max-width: min(238px,100%); margin-bottom: 3px; gap: 4px 0; }
.webmap-tooltip-heads .player-head { flex: 0 0 28px; width: 28px; min-width: 28px; max-width: none; height: 28px; object-fit: contain; margin-left: -9px; border: 2px solid #151519; }
.webmap-tooltip-name { display: block; font-size: 1rem; overflow-wrap: anywhere; max-width: min(250px,100%); }
.webmap-tooltip-tag,.webmap-tooltip-coordinates { display: block; font-size: .7rem; }
.webmap-tooltip-bracket { color: #555555; }
.webmap-tooltip-coordinates { color: #fff; }
.webmap-viewport .empty-state { display: grid; place-content: center; min-height: 100%; color: #ccc; padding: 24px; text-align: center; }
#webmap-position { position: absolute; bottom: 12px; left: 12px; padding: 7px 10px; background: #1a1a1ee8; border: 2px solid #000; color: #fff; font-size: .8rem; pointer-events: none; }
.webmap-help { margin: 12px 4px 2px; color: #fff; font-size: .75rem; line-height: 1.7; }
@media(max-width:600px){.webmap-toolbar{flex-wrap:wrap;}.webmap-controls{width:100%;justify-content:center;}.webmap-viewport{height:440px;}}
.team-color-preview { min-height: 30px; }
.pixel-switch { display: flex; align-items: center; gap: 12px; position: relative; cursor: pointer; }
.pixel-switch input { position: absolute; opacity: 0; width: 48px; height: 28px; }
.pixel-switch > span { flex: 0 0 48px; width: 48px; height: 28px; border: 4px solid #000; background: #555; box-shadow: inset 0 3px #ffffff30; }
.pixel-switch > span::after { content: ''; display: block; width: 16px; height: 16px; margin: 2px; background: #cecece; box-shadow: inset 0 2px #fff7,inset 0 -2px #0005; transition: transform .15s steps(4); }
.pixel-switch input:checked + span { background: #69a84a; }
.pixel-switch input:checked + span::after { transform: translateX(20px); }
.pixel-switch input:focus-visible + span { outline: 2px solid #d6d671; outline-offset: 3px; }
.pixel-switch input:disabled + span { opacity: .45; }
@media (max-width: 800px) {
  .team-row { display: flex; flex-wrap: wrap; gap: 8px; }
  .team-name,.team-tag { flex: 1 1 40%; width: auto; }
  .team-separator { display: none; }
  .team-base,.team-base-empty { flex-basis: 100%; }
  .team-members { flex: 1; }
  .community-dialog { padding: 18px; }
}
.well-page h1, .admin-heading h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); overflow-wrap: anywhere; }
.admin-page { padding-block: 47px 65px; }
.admin-heading h1 { margin-top: 12px; }
.admin-login, .admin-requests { margin-top: 24px; padding: clamp(15px, 4vw, 25px); }
.admin-login { max-width: 450px; }
.admin-login form { margin-top: 20px; display: grid; gap: 12px; }
.admin-login .button { justify-self: start; }
.admin-login h2, .admin-requests h2, .decision-dialog h2 { font-size: 1.3rem; }
.request-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.request-heading p, .decision-dialog p { margin-top: 8px; font-size: .85rem; }
.request-row { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(110px, .7fr) minmax(160px, .9fr) auto; align-items: center; gap: 12px; border-top: 1px solid #000; padding: 14px 0; font-size: .85rem; }
.request-row { padding: 14px; margin-top: 12px; border: var(--pixel) solid #000; clip-path: var(--pixel-shape); background: #303034; box-shadow: var(--minecraft-bevel); }
.request-project { display: block; font-size: .75rem; margin-top: 3px; }
.request-player { display: flex; align-items: center; gap: 10px; }
.request-time, .sync-error { display: block; font-size: .72rem; }
.request-status { color: var(--accent); }
.request-status[data-state="approved"], .request-sync[data-state="applied"] { color: var(--green); }
.request-status[data-state="rejected"], .request-sync[data-state="failed"] { color: var(--red); }
.request-actions, .dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.request-actions .button { min-height: 36px; padding: 7px 10px; font-size: .78rem; }
.decision-dialog { color: #fff; width: min(450px, calc(100% - 36px)); padding: 24px; }
.decision-dialog::backdrop { background: #000b; }
.dialog-actions { justify-content: flex-end; margin-top: 20px; }

/* Homepage and project administration. */
.site-header-inner { flex-wrap: wrap; padding-block: 14px; }
.site-header nav { flex: 1 1 auto; }
.site-footer-inner { flex-wrap: wrap; padding-block: 18px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.footer-links .button, .footer-links .admin-link { font-size: .8rem; }
.cookie-banner {
  position: fixed;
  z-index: 60;
  inset: auto max(12px, calc((100% - 1200px) / 2)) max(12px, env(safe-area-inset-bottom));
  display: flex;
  align-items: flex-end;
  gap: 24px;
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: clamp(16px, 2vw, 26px);
  background: var(--surface-raised);
  box-shadow: var(--minecraft-bevel), inset 0 5px #d6d67160;
  font-size: .85rem;
}
.cookie-banner-content { flex: 1; min-width: 0; }
.cookie-banner-title { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; color: var(--accent); font-size: 1.2rem; }
.cookie-banner-title svg, .cookie-banner-icon { width: 28px; height: 28px; flex: 0 0 28px; }
.cookie-details { margin-block: 10px 6px; }
.cookie-details summary { width: fit-content; cursor: pointer; color: var(--accent); }
.cookie-inventory { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 14px; margin: 12px 0; }
.cookie-inventory dd { margin: 0; }
.cookie-inventory code { overflow-wrap: anywhere; }
.cookie-privacy { text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-banner-actions .button { flex: 1; min-width: 116px; }
.cookie-privacy-section { margin-top: 30px; overflow-wrap: anywhere; }
.cookie-privacy-section p + p { margin-top: 12px; }
.external-media-notice { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 12px; background: #1a1a1eee; text-align: center; }
#discord-empty:has(+ #discord-retry + #discord-cookie-settings:not([hidden])) { min-height: 0; }
#discord-cookie-settings { display: flex; margin: 0 auto 24px; }
@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 12px; }
  .cookie-inventory { grid-template-columns: 1fr; gap: 5px; }
  .cookie-inventory dd { margin-bottom: 6px; }
  .cookie-banner-actions .button { min-width: 0; padding-inline: 8px; }
}
.account-link { display: inline-flex; align-items: center; gap: 9px; }
.account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-link .player-head { width: 24px; height: 24px; }
.minecraft-bold { text-shadow: 1px 0 currentColor; }
.home-page { padding-block: 42px 80px; }
.project-introduction { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; margin-bottom: 48px; }
.countdown-label { font-size: clamp(1.25rem, 3vw, 2.3rem); color: #fff; line-height: 1.5; overflow-wrap: anywhere; }
.project-countdown { font-size: clamp(1.3rem, 3.2vw, 2.6rem); line-height: 1.4; text-shadow: 1px 0 currentColor, 3px 3px #000; }
.project-registration-summary { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.accepted-counter { color: #FFFF55; font-size: clamp(1rem, 2vw, 1.25rem); text-shadow: 2px 2px #000; }
.latest-players { display: flex; align-items: center; justify-content: center; }
.latest-players .player-head, .latest-ellipsis { width: 40px; height: 40px; border: 3px solid #000; margin-left: -11px; }
.latest-players > :first-child { margin-left: 0; }
.latest-ellipsis { display: grid; place-items: center; background: #cecece; color: #000; font-size: 1.2rem; box-shadow: var(--minecraft-bevel); }
.project-logo { width: min(720px, 100%); height: auto; margin-block: 0 36px; object-fit: contain; }
.project-showcase { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 26px; align-items: stretch; }
.project-media { position: relative; min-height: 380px; padding: 8px; background: #808080; }
.project-media-stage { position: absolute; inset: 8px; background: #111115; overflow: hidden; }
.project-media-stage > img, .project-media-stage > video { width: 100%; height: 100%; }
.project-media-stage > img { object-fit: contain; }
.project-media-stage > video { object-fit: contain; image-rendering: auto; }
.project-media-stage > iframe { width: 100%; height: 100%; border: 0; }
.media-next { position: absolute; top: 18px; right: 18px; min-width: 52px; }
.project-information { min-height: 380px; max-height: 620px; overflow-y: auto; background: #cecece; color: #000; padding: clamp(22px, 3vw, 32px); }
.project-information h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); overflow-wrap: anywhere; text-shadow: 1px 0 #000; }
.project-date { margin-top: 14px; font-size: .95rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.project-tags:empty { margin-top: 0; }
.project-tag { display: inline-flex; align-items: center; gap: 8px; border: var(--pixel) solid #000; padding: 6px 10px; background: var(--tag-color); color: #000; clip-path: var(--pixel-shape); box-shadow: var(--minecraft-bevel); font-size: .85rem; max-width: 100%; overflow-wrap: anywhere; }
.project-tag img { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; }
.project-text { margin-top: 22px; max-height: 20rem; overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; }
.project-text:empty { margin-top: 0; }
.project-join { margin-top: 25px; background: #b7e89d; }
.project-information .form-message { margin-top: 14px; color: #442d00; }
.project-information .form-message[data-kind="error"] { color: #7a1515; }
.whitelist-project-name { text-align: center; color: #FFFF55; font-size: 1rem; }
.admin-content-panel { margin-top: 24px; padding: clamp(20px, 4vw, 32px); }
.leaderboard-settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.leaderboard-setting { min-width: 0; padding: 18px; color: #000; background: var(--category-fill); }
.leaderboard-setting-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.leaderboard-setting-heading img { flex: 0 0 32px; }
.leaderboard-setting-heading label { font-size: .95rem; color: #000; }
.leaderboard-settings-fields { display: flex; align-items: center; gap: 10px; }
.leaderboard-settings-fields input[type="text"] { width: 100%; font-size: .95rem; }
.leaderboard-settings-fields input[type="color"] { flex: 0 0 54px; width: 54px; height: 48px; }
.project-admin-list { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 20px 12px; }
.project-choice { display: flex; flex-direction: column; align-items: start; gap: 5px; max-width: 100%; overflow-wrap: anywhere; text-align: left; }
.project-choice small { color: var(--muted); }
.project-choice[aria-pressed="true"] { background: #485840; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field-grid > div { display: grid; gap: 10px; }
.project-tags-editor { display: grid; gap: 14px; }
.project-tag-editor { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 15px; border: var(--pixel) solid #000; background: #303034; clip-path: var(--pixel-shape); box-shadow: var(--minecraft-bevel); }
.project-tag-editor input[data-tag-title] { flex: 1 1 220px; }
.project-tag-editor input[type="file"] { flex: 1 1 260px; width: 100%; }
.project-tag-editor input[type="color"] { flex: 0 0 64px; }
.tag-icon-preview { width: 24px; height: 24px; }
.project-admin-section { margin-top: 32px; padding-top: 24px; border-top: var(--pixel) solid #000; }
.content-fieldset { display: grid; gap: 12px; border: 0; min-width: 0; margin: 0; padding: 0; }
.content-fieldset > .button { justify-self: start; }
.project-media-links, .project-participants { display: flex; flex-wrap: wrap; gap: 12px; }
.project-participants { margin-top: 18px; }
.project-participant { display: flex; align-items: center; gap: 10px; border: var(--pixel) solid #000; background: #303034; padding: 10px; clip-path: var(--pixel-shape); box-shadow: var(--minecraft-bevel); }
.project-participant a:hover { text-decoration: underline; }
.format-toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.format-toolbar .button { font-size: .8rem; min-height: 40px; padding: 8px 12px; }
.legal-page { padding-block: 45px 80px; }
.legal-panel { padding: clamp(22px, 5vw, 48px); background: #303034; }
.legal-panel > h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 28px; }
.formatted-text { overflow-wrap: anywhere; line-height: 1.8; }
.formatted-text p, .formatted-text ul, .formatted-text ol { margin-block: 16px; }
.formatted-text h2, .formatted-text h3, .formatted-text h4, .formatted-text h5, .formatted-text h6 { margin-block: 28px 12px; line-height: 1.4; }
.formatted-text strong { font-weight: 400; text-shadow: 1px 0 currentColor; }
.formatted-text em { font-style: italic; font-synthesis: style; color: inherit; }
.formatted-text a { text-decoration: underline; color: #d6d671; }
.legal-preview { border-top: var(--pixel) solid #000; margin-top: 28px; padding-top: 20px; }
@media (max-width: 900px) {
  .project-showcase { grid-template-columns: minmax(0, 1fr); }
  .project-media { min-height: 0; aspect-ratio: 16 / 9; }
  .project-information { min-height: 0; }
  .site-header nav { justify-content: start; }
}
@media (max-width: 650px) {
  .field-grid { grid-template-columns: minmax(0, 1fr); }
  .home-page { padding-top: 30px; }
  .project-registration-summary { flex-direction: column; }
  .project-logo { width: min(560px, 100%); }
}

/* Account, profile and badge components. */
.brand img { width: 120px; height: 85px; object-fit: contain; }
.site-footer .brand img { width: 100px; height: 71px; }
.hero-logo { width: min(520px, 90vw); height: auto; }
.account-link.is-authenticated { color: #b7e89d; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-header nav .account-link { width: fit-content; flex: 0 0 auto; }
.account-link[aria-busy="true"] { visibility: hidden; }
.site-header nav a { -webkit-user-drag: none; user-select: none; }
.account-page, .profile-page { padding-block: 48px 80px; }
.page-heading { margin-bottom: 28px; }
.page-heading h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
.page-heading p { margin-top: 12px; }
.account-layout { display: grid; grid-template-columns: minmax(0, 560px) minmax(240px, 1fr); gap: 48px; align-items: start; }
.account-panel, .verification-panel, .profile-editor, .admin-badges-panel { padding: clamp(20px, 4vw, 32px); }
.account-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.account-tabs [aria-selected="true"] { background: #b7e89d; color: #000; }
.stack-form { display: grid; gap: 12px; margin-top: 22px; }
.stack-form > .button { justify-self: start; }
.stack-form p { font-size: .9rem; }
.stack-form textarea, .stack-form select { width: 100%; min-width: 0; color: var(--text); background: var(--background); border: var(--pixel) solid #000; border-radius: 0; clip-path: var(--pixel-shape); padding: 12px 14px; font: inherit; line-height: 1.55; }
.stack-form textarea { resize: vertical; min-height: 140px; }
.stack-form input[type="file"] { font-size: .85rem; padding: 10px; }
.stack-form input[type="color"] { width: 90px; height: 52px; padding: 5px; cursor: pointer; }
.stack-form textarea:focus-visible, .stack-form select:focus-visible { outline: none; box-shadow: inset 0 0 0 var(--pixel) var(--accent); }
.account-note { display: grid; gap: 28px; padding-top: 12px; }
.pixel-step { display: flex; align-items: start; gap: 16px; }
.pixel-step > span { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; color: #000; background: #d6d671; border: var(--pixel) solid #000; clip-path: var(--pixel-shape); }
.pixel-step h2 { font-size: 1.1rem; margin-bottom: 8px; }
.pixel-step p { font-size: .88rem; }
.step-label { display: block; margin-bottom: 14px; color: var(--accent); font-size: .8rem; }
.verification-panel > p { margin-top: 15px; }
.verification-panel .button { margin-top: 18px; }
.verification-code { font-size: clamp(2rem, 7vw, 3.5rem); color: #b7e89d; letter-spacing: .2em; padding-block: 22px 10px; overflow-wrap: anywhere; }
.password-page { display: grid; place-items: center; }
.password-panel { width: min(620px, 100%); }
.password-panel h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 18px; }
.form-actions, .profile-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.player-profile { overflow: hidden; }
.profile-banner { position: relative; min-height: 170px; aspect-ratio: 5 / 1; border-bottom: var(--pixel) solid #000; background: repeating-linear-gradient(90deg, #303034 0 30px, #26262a 30px 60px); }
.profile-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-content { padding: 0 clamp(20px, 4vw, 34px) 30px; }
.profile-identity { display: flex; align-items: end; gap: 22px; position: relative; margin-top: -42px; }
.profile-avatar { width: 96px; height: 96px; border: var(--pixel) solid #000; background: var(--background); flex: 0 0 96px; }
.profile-identity h1 { font-size: clamp(1.5rem, 4vw, 2.7rem); overflow-wrap: anywhere; }
.profile-identity > div:last-child { padding-top: 56px; min-width: 0; }
.profile-age { margin-top: 4px; font-size: .9rem; }
.profile-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.profile-badges:empty { margin-top: 0; }
.profile-badge { display: inline-flex; align-items: center; gap: 9px; border: var(--pixel) solid #000; background: color-mix(in srgb, var(--badge-color) 18%, #252529); color: var(--badge-color); padding: 7px 10px; clip-path: var(--pixel-shape); font-size: .9rem; max-width: 100%; overflow-wrap: anywhere; }
.badge-icon { width: 24px; height: 24px; flex: 0 0 24px; object-fit: contain; }
.profile-description { margin-top: 22px; white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-actions { margin-top: 26px; }
.profile-editor { margin-top: 28px; }
.profile-editor h2 { font-size: 1.5rem; }
.profile-editor .stack-form { max-width: 680px; }
.banner-upload-form { border-top: var(--pixel) solid #000; padding-top: 24px; margin-top: 30px; }
.admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.admin-badges-panel { margin-top: 24px; }
.admin-badges-panel .stack-form { max-width: 600px; }
.badge-management-section { margin-top: 34px; padding-top: 25px; border-top: var(--pixel) solid #000; }
.badge-management-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.badge-award-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; border: var(--pixel) solid #000; padding: 10px; background: #303034; clip-path: var(--pixel-shape); }
.badge-player:hover, a.player-name:hover { text-decoration: underline; }
.winner-name { color: #8b5100; }
.winner-name .name-letter { display: inline-block; animation: winner-shimmer 4.5s ease-in-out infinite paused; animation-delay: calc(var(--letter-index) * 95ms); text-shadow: 1px 1px #ffe5a2, 0 0 4px #ffc33180; }
.leaderboard-card.is-in-viewport .winner-name .name-letter { animation-play-state: running; }
@keyframes winner-shimmer { 0%, 12%, 38%, 100% { color: #8b5100; transform: translateY(0); } 23% { color: #d99200; transform: translateY(-3px); } }
@media (max-width: 760px) {
  .account-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .account-note { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .pixel-step { flex-direction: column; }
  .profile-identity { align-items: start; flex-direction: column; gap: 12px; }
  .profile-identity > div:last-child { padding-top: 0; }
  .profile-banner { min-height: 140px; }
}
@media (prefers-reduced-motion: reduce) { .winner-name .name-letter { animation: none; } }

@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@view-transition { navigation: auto; }
::view-transition, ::view-transition-group(root), ::view-transition-image-pair(root),
::view-transition-old(root), ::view-transition-new(root) { pointer-events: none; }
::view-transition-old(root) { animation: page-out .18s ease-in both; }
::view-transition-new(root) { animation: page-in .24s ease-out both; }
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
@supports not (view-transition-name: root) {
  body > main { animation: page-in .24s ease-out both; }
}

/* Ambient motion stays behind every interactive surface. */
.pixel-sky, .side-sky, .rain-sky { position: fixed; z-index: 0; inset: 0; overflow: hidden; contain: strict; pointer-events: none; }
.pixel-mote { position: absolute; width: var(--mote-size); height: var(--mote-size); left: var(--mote-left); top: var(--mote-top); background: var(--mote-color); box-shadow: 0 0 0 2px color-mix(in srgb, var(--mote-color) 10%, transparent); opacity: 0; animation: pixel-drift var(--mote-duration) linear var(--mote-delay) infinite; }
.side-sky { transition: opacity .45s ease; }
.side-sky.is-swapping { opacity: 0; }
.floating-item { position: absolute; top: var(--item-top); width: clamp(36px, 5vw, 76px); animation: item-float var(--item-duration) ease-in-out var(--item-delay) infinite; opacity: .75; }
.floating-item[data-side="left"] { left: max(6px, calc((100vw - 1240px) / 4 - 20px)); }
.floating-item[data-side="right"] { right: max(6px, calc((100vw - 1240px) / 4 - 20px)); }
.floating-item img { width: 100%; height: auto; max-height: 100px; object-fit: contain; }
.rain-sky { animation: rain-event var(--rain-duration) linear forwards; }
.rain-drop { position: absolute; top: -32px; width: 2px; height: var(--drop-length); background: linear-gradient(#669dc633 0 40%, #79c7f277 40% 85%, #ade6ff99 85%); animation: rain-fall var(--drop-duration) linear var(--drop-delay) infinite; }
.reveal-ready { opacity: 0; translate: 0 12px; transition: opacity .4s ease, translate .4s ease; }
.reveal-ready.is-revealed { opacity: 1; translate: 0 0; }
.tilt-ready { transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform .16s ease-out; }
.pixel-burst { position: fixed; z-index: 10; pointer-events: none; }
.burst-pixel { position: absolute; width: var(--burst-size, 4px); height: var(--burst-size, 4px); background: var(--burst-color, #fff); animation: pixel-burst .6s ease-out forwards; }
.leaderboard-card:hover .rank-icon { animation: badge-hop .75s ease-in-out; }
.server-status[data-state="online"] .status-dot { animation: status-spark 3s steps(2, end) infinite; }
.page-hidden *, .page-hidden *::before, .page-hidden *::after { animation-play-state: paused !important; }

@keyframes pixel-drift {
  0% { translate: 0 20px; opacity: 0; }
  15% { opacity: .45; }
  55% { opacity: .8; }
  85% { opacity: .35; }
  100% { translate: var(--mote-drift-x) var(--mote-drift-y); opacity: 0; }
}
@keyframes pixel-burst {
  from { opacity: .9; transform: translate(0,0) scale(1); }
  to { opacity: 0; transform: translate(var(--burst-x),var(--burst-y)) scale(.5); }
}
@keyframes badge-hop { 40% { translate: 0 -4px; } 75% { translate: 0 1px; } }
@keyframes status-spark { 50% { filter: brightness(1.35); } }
@keyframes item-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes rain-fall { to { transform: translate3d(-20px, calc(100vh + 64px), 0); } }
@keyframes rain-event { 0%, 100% { opacity: 0; } 15%, 85% { opacity: 1; } }

@media (max-width: 999px) { .side-sky { display: none; } }
@media (min-width: 1000px) {
  .container { width: min(1240px, calc(100% - 160px)); }
}

@media (max-width: 1310px) {
  .roadmap { grid-template-columns: repeat(6, minmax(140px, 1fr)); }
  .roadmap-panel { overflow-x: auto; }
}
@media (max-width: 1100px) {
  .leaderboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leaderboard-card, .leaderboard-card[data-limit="6"] { grid-column: span 1; }
  .leaderboard-card[data-category="debris"] { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  .container { width: calc(100% - 28px); }
  .site-header-inner { align-items: start; flex-direction: column; gap: 8px; padding-block: 12px; }
  .site-header nav { justify-content: start; gap: 3px; }
  .site-header nav a { padding: 8px 9px; font-size: .78rem; }
  .stats-page { padding-block: 24px 56px; }
  .stats-section { margin-top: 72px; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .section-title-image { height: 28px; }
  .quiet-tag { font-size: .82rem; align-self: flex-end; }
  .leaderboard-grid { grid-template-columns: minmax(0, 1fr); }
  .leaderboard-heading { min-height: 96px; padding-inline: 14px; }
  .server-summary { gap: 7px 18px; padding: 10px 12px; }
  .server-status { font-size: .8rem; }
  .refresh-label { font-size: .65rem; }
  .whitelist-page { padding-inline: 14px; }
  .join-form { padding: 20px; }
  .request-row { grid-template-columns: minmax(0, 1fr) auto; }
  .request-sync { grid-row: 2; grid-column: 1 / -1; }
  .request-actions { grid-column: 1 / -1; }
  .online-panel { padding: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .pixel-sky, .pixel-burst, .side-sky, .rain-sky { display: none; }
  .reveal-ready { opacity: 1; translate: none; }
  .tilt-ready { transform: none; }
}

.goal-title-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.goal-title-fields label{display:grid;gap:8px}.goal-title-fields input{width:100%}@media(max-width:600px){.goal-title-fields{grid-template-columns:1fr}}
