/* RevengeTech website. Palette: the banner's night sky (navy), the logo's cyan (Revenge, #2bd4e0) and orange (Tech,
   #ff9a1f) from source/tools/assets/make_banner.py. Discord blurple only on Discord things, green/red only for status.
   Minecraft's own colours (§b, §6...) appear only inside the server-list mock-up. Headings use Pixelify Sans (SIL OFL, assets/fonts) to match the pixel logo.
   The server-list row and the Add Server form are drawn like Minecraft's own menus. */
@font-face {
	font-family: "Pixelify Sans";
	src: url("/assets/fonts/pixelify-sans-latin.woff2") format("woff2");
	font-weight: 400 700;
	font-display: swap;
}
:root {
	--sky: #090d1e;
	--sky-2: #10162c;
	--band: #0e1430;
	--panel: #141a36;
	--edge: #27305c;
	--text: #e9eeff;
	--muted: #a3add0;
	--cyan: #2bd4e0;
	--orange: #ff9a1f;
	--green: #45d16b;
	--red: #ff6b6b;
	--blurple: #5865f2;
	--display: "Pixelify Sans", system-ui, sans-serif;
	--wrap: 1120px;
	/* one spacing scale for the whole site */
	--s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	color: var(--text);
	font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	background: var(--sky) linear-gradient(180deg, var(--sky) 0%, var(--sky-2) 50%, var(--sky) 100%) fixed;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0 0 var(--s3); letter-spacing: .01em; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 var(--s3); }
code {
	font-family: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
	font-size: .92em; color: var(--cyan);
	background: rgba(43, 212, 224, .1); border-radius: 3px; padding: .05em .35em;
	white-space: nowrap;
}
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--cyan); color: #000; padding: var(--s2) var(--s3); }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* ---------- top bar (solid, no blur) ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--sky); border-bottom: 2px solid #050814; }
.nav .wrap { display: flex; align-items: center; gap: var(--s3); height: 60px; }
.nav-logo { display: flex; align-items: center; flex: none; }
.nav-logo img { height: 28px; width: auto; image-rendering: pixelated; }
.nav-links { display: flex; align-items: center; gap: var(--s1); margin: 0 0 0 auto; list-style: none; padding: 0; }
.nav-links a { display: block; padding: var(--s2) 12px; color: var(--text); text-decoration: none; font-family: var(--display); font-size: 1.05rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--cyan); }
.nav-links .btn { margin-left: var(--s2); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 2px solid var(--edge); color: var(--text); padding: 6px 8px; cursor: pointer; }
.nav-toggle svg { display: block; }
@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.nav-links { display: none; position: absolute; left: 0; right: 0; top: 60px; flex-direction: column; align-items: stretch; gap: 0; background: var(--sky); border-bottom: 2px solid #050814; padding: var(--s2) 20px var(--s3); }
	.nav-open .nav-links { display: flex; }
	.nav-links a { padding: 12px var(--s2); font-size: 1.2rem; }
	.nav-links .btn { margin: var(--s2) 0 0; }
}

/* ---------- buttons ---------- */
.btn {
	--c: var(--cyan);
	display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
	padding: 10px 18px;
	border: 2px solid #050814; border-radius: 3px;
	background: var(--c); color: #061016;
	font-family: var(--display); font-size: 1.1rem; font-weight: 600; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .3), inset 0 2px 0 rgba(255, 255, 255, .35);
}
.btn:hover { filter: brightness(1.1); color: #061016; }
.btn:active { box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .3), inset 0 3px 0 rgba(0, 0, 0, .15); transform: translateY(2px); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-gold { --c: var(--orange); }
.btn-discord { --c: var(--blurple); color: #fff; }
.btn-discord:hover { color: #fff; }
.btn-small { padding: 6px 12px; font-size: 1rem; }

/* ---------- Minecraft-menu look (server row, text fields, grey buttons) ---------- */
.mc {
	background: #1d1e25;
	border: 2px solid #000;
	box-shadow: inset 2px 2px 0 #3c3e49, inset -2px -2px 0 #111216;
	padding: var(--s3);
	font-family: var(--display);
}
.mc-title { text-align: center; color: #fff; font-size: 1.2rem; margin: 0 0 var(--s3); text-shadow: 2px 2px 0 #3a3a3a; }
.server-row {
	display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center;
	background: #2c2d36; border: 2px solid #000; box-shadow: inset 0 2px 0 #474955;
	padding: var(--s2) 12px var(--s2) var(--s2);
}
.server-row img { width: 56px; height: 56px; }
.server-name { display: block; color: #fff; font-size: 1.2rem; line-height: 1.2; }
.motd { display: block; font-size: 1rem; color: #fff; line-height: 1.3; }
.motd .b { color: #55ffff; font-weight: 700; }
.motd .g { color: #ffaa00; font-weight: 700; }
.motd .y { color: #aaaaaa; }
.server-meta { text-align: right; font-size: .95rem; color: #d0d0d0; white-space: nowrap; }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; margin-left: 6px; vertical-align: -2px; }
.bars i { width: 4px; background: #555; }
.bars i:nth-child(1) { height: 5px; } .bars i:nth-child(2) { height: 8px; } .bars i:nth-child(3) { height: 11px; } .bars i:nth-child(4) { height: 14px; } .bars i:nth-child(5) { height: 16px; }
.server-row.on .bars i { background: #3fe05a; }
.server-row.off .bars i:nth-child(1) { background: #e04040; }
.mc-field { display: block; margin-top: 12px; }
.mc-label { display: block; color: #cfcfcf; font-size: .95rem; margin-bottom: var(--s1); }
.mc-input {
	display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
	background: #000; border: 2px solid #8d8d8d; padding: 6px 6px 6px 12px;
}
.mc-input span { font: 600 1.1rem/1.3 ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace; color: #fff; overflow: hidden; text-overflow: ellipsis; }
.mc-btn {
	flex: none; min-width: 5.5rem;
	font-family: var(--display); font-size: 1rem; color: #fff; text-shadow: 2px 2px 0 #3f3f3f;
	background: #6f6f6f; border: 2px solid #000; box-shadow: inset 2px 2px 0 #a8a8a8, inset -2px -3px 0 #484848;
	padding: 5px 12px; cursor: pointer;
}
.mc-btn:hover { background: #7a83c4; box-shadow: inset 2px 2px 0 #b9c0f0, inset -2px -3px 0 #4d548a; }
.mc-btn.copied { background: #3f9c4f; box-shadow: inset 2px 2px 0 #7fd18c, inset -2px -3px 0 #2a6a35; }
.mc-note { margin: 12px 0 0; font-family: system-ui, sans-serif; font-size: .9rem; color: #b8b8c4; }

/* ---------- hero ---------- */
.hero-art { max-width: 1920px; margin: 0 auto; }
.hero-art img { width: 100%; }
@media (min-width: 1921px) {
	.hero-art { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
}
.hero-body {
	display: grid; grid-template-columns: 1.05fr 1fr; grid-template-areas: "text card" "actions card";
	column-gap: var(--s6); row-gap: var(--s2); padding: var(--s6) 0 var(--s7);
}
.hero-text { grid-area: text; align-self: end; }
.hero-body > .mc { grid-area: card; align-self: center; }
.hero-body > .actions { grid-area: actions; align-self: start; }
.hero-body .lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; margin-bottom: var(--s3); }
.hero-body h1 .b { color: var(--cyan); }
.hero-body h1 .g { color: var(--orange); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- sections ---------- */
section { padding: var(--s7) 0; }
.band { background: var(--band); border-block: 2px solid #050814; }
.intro { color: var(--muted); font-size: 1.08rem; max-width: 40rem; margin-bottom: var(--s5); }

/* game modes: two rows, picture on alternating sides */
.mode { display: grid; grid-template-columns: 280px 1fr; gap: var(--s6); align-items: center; padding: var(--s5) 0; }
.mode + .mode { border-top: 2px dashed var(--edge); }
.mode img { width: 260px; height: 260px; justify-self: center; }
.mode.flip { grid-template-columns: 1fr 280px; }
.mode.flip img { order: 2; }
.mode h3 { font-size: clamp(1.9rem, 3vw, 2.4rem); margin-bottom: var(--s1); }
.mode .tag { font-family: var(--display); color: var(--cyan); font-size: 1.1rem; margin-bottom: 12px; }
.mode.flip .tag { color: var(--orange); }
.mode p { color: var(--muted); max-width: 38rem; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 40rem; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; background: var(--cyan); box-shadow: 2px 2px 0 #000; }
.mode.flip .ticks li::before { background: var(--orange); }

/* the smaller things, as a plain list */
.extras { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s6); margin: var(--s5) 0 0; padding: var(--s5) 0 0; border-top: 2px dashed var(--edge); list-style: none; }
.extras li { display: grid; grid-template-columns: 56px 1fr; gap: var(--s3); align-items: start; }
.extras img { width: 56px; height: 56px; }
.extras strong { font-family: var(--display); font-weight: 600; font-size: 1.15rem; display: block; }
.extras span { color: var(--muted); }

/* how to join */
.join { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: var(--s6); align-items: start; }
.steps { margin: 0 0 var(--s4); padding-left: 1.4em; display: grid; gap: 12px; font-size: 1.05rem; }
.steps li::marker { font-family: var(--display); color: var(--cyan); font-weight: 700; }
.notes { margin: 0; padding: var(--s3) 0 0; list-style: none; border-top: 2px dashed var(--edge); display: grid; gap: 12px; color: var(--muted); }
.notes strong { color: var(--text); }

/* vote */
.vote { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: start; }
.vote ol { padding-left: 1.4em; margin: 0 0 var(--s4); display: grid; gap: 10px; }
.vote ol li::marker { font-family: var(--display); color: var(--cyan); font-weight: 700; }
.rewards { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s4); }
.rewards li { display: grid; grid-template-columns: 52px 1fr; gap: var(--s3); align-items: center; }
.rewards img { width: 52px; height: 52px; }
.rewards strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.12rem; }
.rewards span { color: var(--muted); }
.small { font-size: .92rem; color: var(--muted); }

/* store */
.store-img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border: 2px solid #050814; border-radius: 6px; }
.store-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--s6); align-items: center; margin-top: var(--s4); }
.store-body p { color: var(--muted); }
.store-cta .small { margin: 12px 0 0; }

/* discord */
.discord { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s5); align-items: center; background: #161c3f; border: 2px solid #050814; border-radius: 6px; padding: var(--s5); }
.discord-logo { width: 72px; height: 72px; border-radius: 16px; background: var(--blurple); display: grid; place-items: center; }
.discord-logo svg { width: 44px; height: 44px; fill: #fff; }
.discord h2 { margin-bottom: var(--s2); }
.discord p, .discord li { color: var(--muted); }
.discord ul { margin: var(--s2) 0 0; padding-left: 1.1rem; }
.discord p { margin: 0; }

/* questions: plain list, no accordions */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s6); margin: 0; }
.faq dt { font-family: var(--display); font-weight: 600; font-size: 1.2rem; margin-bottom: var(--s2); }
.faq dd { margin: 0; color: var(--muted); }

/* rules page */
.page-head { padding: var(--s6) 0 var(--s3); }
.page-head p { color: var(--muted); max-width: 48rem; font-size: 1.07rem; }
.toc { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin: var(--s4) 0 0; padding: 0; list-style: none; font-family: var(--display); font-size: 1.1rem; }
.rules-section { padding: var(--s6) 0 0; }
.rules-section > p { color: var(--muted); max-width: 48rem; }
.rule-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s6); }
.rule { padding: var(--s4) 0; border-top: 1px solid var(--edge); }
.rule h3 { font-family: system-ui, sans-serif; font-size: 1.05rem; font-weight: 700; margin-bottom: var(--s2); letter-spacing: 0; }
.rule p, .rule li { color: var(--muted); }
.rule p:last-child, .rule ul:last-child { margin-bottom: 0; }
.rule ul { padding-left: 1.1rem; margin: 0 0 var(--s3); }
.ladders { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin-bottom: var(--s3); }
.ladder { background: var(--panel); border: 2px solid #050814; border-radius: 6px; padding: var(--s3) var(--s4); }
.ladder h3 { font-family: system-ui, sans-serif; font-size: 1rem; letter-spacing: 0; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--edge); }
th { color: var(--muted); font-weight: 600; }
td.bad { color: #ff9a9a; font-weight: 700; }
.discord-rules { margin: 0; padding-left: 1.2rem; display: grid; gap: var(--s2); color: var(--muted); max-width: 48rem; }

/* 404 */
.lost { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: var(--s6) 0; }
.lost img { width: 180px; margin: 0 auto var(--s3); }
.lost p { color: var(--muted); }

/* ---------- footer ---------- */
.footer { border-top: 2px solid #050814; background: #060a18; padding: var(--s6) 0 var(--s5); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s5); }
.footer img { height: 26px; width: auto; image-rendering: pixelated; margin-bottom: 12px; }
.footer p, .footer li { color: var(--muted); font-size: .95rem; }
.footer h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer a { color: var(--text); text-decoration: none; }
.footer a:hover { color: var(--cyan); text-decoration: underline; }
.legal { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--edge); font-size: .88rem; color: #8b94b6; }
.legal p { margin: 0 0 var(--s1); color: inherit; font-size: inherit; }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
	.join, .vote, .store-body { grid-template-columns: 1fr; gap: var(--s5); }
	/* phones: heading, then the address box, then the buttons */
	.hero-body { grid-template-columns: 1fr; grid-template-areas: "text" "card" "actions"; row-gap: var(--s4); padding-top: var(--s5); }
	.mode, .mode.flip { grid-template-columns: 1fr; gap: var(--s3); }
	.mode.flip img { order: 0; }
	.mode img { width: 180px; height: 180px; justify-self: start; }
	.extras, .faq, .rule-list { grid-template-columns: 1fr; }
	.ladders { grid-template-columns: 1fr; }
	.discord { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
	.wrap { width: min(var(--wrap), 100% - 1.5rem); }
	section { padding: var(--s6) 0; }
	.server-row { grid-template-columns: 44px 1fr; }
	.server-row img { width: 44px; height: 44px; }
	.server-meta { grid-column: 1 / -1; text-align: left; }
	.mc-btn { min-width: 4.6rem; }
	.mc-input span { font-size: 1rem; }
	.actions .btn { flex: 1 1 100%; }
	.mode img { width: 140px; height: 140px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
