/* Live and Let SMP — shared styles
   Colors come from the logo: grass green, dirt brown, and the orange of "Season 2". */
@font-face {
  font-family: "Monocraft";
  src: url(fonts/monocraft-bold.woff2) format("woff2");
  font-weight: 700; font-display: swap;
}

:root {
  --pixel: "Monocraft", var(--mono);
  --night: #15110d;        /* dark dirt */
  --night-2: #1f1913;
  --line: #3b3026;
  --ink: #f4ecdc;
  --muted: #c4b6a0;
  --grass: #7cbd2a;        /* logo green */
  --grass-hi: #90d13c;
  --grass-ink: #182506;    /* text on green */
  --orange: #f39a35;       /* logo orange */
  /* older names still used by the guide */
  --lantern: var(--orange);
  --green: var(--grass);
  --green-hi: var(--grass-hi);
  --frost: #a9d76a;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: var(--sans);
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem;
  font-size: clamp(100%, .6vw + .55rem, 125%);   /* 16px up to 20px on big monitors */
}
body { margin: 0; background: var(--night); color: var(--ink); font: 1.0625rem/1.6 var(--sans); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--orange); }
h1, h2, h3 { font-family: var(--sans); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
h1, h2 { text-shadow: 0 .08em 0 #00000080; }   /* a little block depth, like the logo */
code { font-family: var(--mono); }
.wrap { width: min(76rem, 100% - 2.5rem); margin-inline: auto; }
/* Pixel font only on the big headings, like a game title screen */
.section-title, .page-hero h1 {
  font-family: var(--pixel); font-weight: 700; letter-spacing: 0; line-height: 1.05;
  text-shadow: .07em .07em 0 #00000099;
}
.section-title { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.9rem); }
.lead { color: var(--muted); max-width: 40rem; margin: .9rem 0 0; }
.pixel { image-rendering: pixelated; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- Buttons: flat and solid; they lift on hover and press in on click ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-block-size: 3rem; padding: .7rem 1.35rem;
  border-radius: .45rem; border: 2px solid transparent;
  font: 800 1rem/1 var(--sans); text-decoration: none; color: var(--ink);
  transition: background-color .18s, border-color .18s, transform .18s var(--ease-out), box-shadow .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .06s; }
.btn:focus-visible, .copy-btn:focus-visible, .slot:focus-visible, .site-nav a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.btn-primary { background: var(--grass); color: var(--grass-ink); }
.btn-primary:hover { background: var(--grass-hi); box-shadow: 0 10px 22px -12px #90d13ccc; }
.btn-ghost { background: #15110dcc; border-color: #f4ecdc55; }
.btn-ghost:hover { border-color: var(--ink); background: #f4ecdc14; }
.btn img { width: 1.35rem; height: auto; }

/* Discord: their own blurple, so it's recognisable at a glance; the logo wiggles on hover */
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #6d78ff; box-shadow: 0 10px 22px -12px #5865f2; }
.btn-discord .dc-logo { width: 1.35rem; height: auto; transform-origin: 50% 70%; }
.btn-discord:hover .dc-logo { animation: wiggle .6s ease-in-out; }
.btn-badge {
  display: inline-flex; align-items: center; gap: .35rem; margin-inline-start: .15rem;
  padding: .22rem .5rem; border-radius: 999px; background: #ffffff26; font: 700 .78rem/1 var(--sans);
}
.btn-badge::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: #57f287; }
.bar .btn-discord .dc-logo { width: 1.1rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Server address chip ---------- */
.address {
  display: inline-flex; align-items: stretch; max-width: 100%;
  background: #100c09e6; border: 1px solid var(--line); border-radius: .35rem;
  position: relative;
}
.address code {
  display: flex; align-items: center; padding: .7rem .85rem;
  font: 600 min(1.05rem, 4.2vw)/1.2 var(--mono); color: var(--ink); white-space: nowrap;
}
.copy-btn {
  min-inline-size: 4.75rem; min-block-size: 2.75rem;
  border: 0; border-inline-start: 1px solid var(--line); border-radius: 0 .35rem .35rem 0;
  background: #ffffff0f; color: var(--orange);
  font: 700 .95rem var(--sans); cursor: pointer;
  transition: background-color .15s, color .15s;
}
.copy-btn:hover { background: #ffffff1c; }
.copy-btn[data-copied] { color: var(--grass-hi); }
.copy-btn[data-failed] { color: #ff9b8a; }
.tip {
  position: absolute; inset-block-start: calc(100% + .45rem); inset-inline-end: 0;
  padding: .3rem .6rem; border-radius: .3rem;
  background: var(--ink); color: var(--night); font-size: .85rem; font-weight: 700;
  white-space: nowrap; pointer-events: none; z-index: 5;
  opacity: 0; transition: opacity .2s;
}
.tip:not(:empty) { opacity: 1; }

/* ---------- Top menu (every page) ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: #15110deb; backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar .wrap { display: flex; align-items: center; gap: .5rem 1.25rem; min-block-size: 3.6rem; flex-wrap: wrap; }
/* Logo: lifts and tilts on hover (mouse only, so it never "sticks" on phones),
   presses in when tapped or clicked, and pops when it sends you home. Transform-only, so it stays smooth. */
.bar-logo { display: inline-block; border-radius: .3rem; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.bar-logo img {
  height: 1.9rem; width: auto; transform-origin: 50% 65%;
  transition: transform .28s var(--ease-out), filter .28s;
}
@media (hover: hover) and (pointer: fine) {
  .bar-logo:hover img { transform: translateY(-2px) scale(1.07) rotate(-2.5deg); filter: brightness(1.12) drop-shadow(0 6px 10px #000a); }
}
.bar-logo:active img { transform: scale(.9); transition-duration: .08s; }
.bar-logo.is-popping img { animation: logo-pop .45s var(--ease-out); }
.bar-logo:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.site-nav { display: flex; gap: .25rem; margin-inline-end: auto; }
.site-nav a {
  padding: .45rem .7rem; border-radius: .3rem;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem;
}
.site-nav a:hover { background: #ffffff12; }
.site-nav a[aria-current="page"] { color: var(--grass-hi); }
.bar-right { display: flex; align-items: center; gap: .6rem; }
.bar .address { display: none; }
.bar .address code { font-size: .88rem; padding: .35rem .7rem; }
.bar .copy-btn { min-block-size: 2.25rem; min-inline-size: 4rem; font-size: .85rem; }
.bar .btn { min-block-size: 2.4rem; padding: .45rem .95rem; font-size: .9rem; }
@media (min-width: 1100px) { .bar .address { display: inline-flex; } }
@media (max-width: 640px) {
  html { scroll-padding-top: 7rem; }
  .bar .wrap { padding-block: .4rem; }
  .bar-right { margin-inline-start: auto; }
  .site-nav { order: 3; width: 100%; margin: 0; justify-content: space-between; border-top: 1px solid var(--line); padding-top: .25rem; }
}

/* ---------- Home: hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-block-size: 100svh; display: grid; place-items: center;
  padding-block: 7rem 5rem; text-align: center;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; animation: settle 14s var(--ease-out) both; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 58%, #15110d99 0%, #15110d00 70%),
    linear-gradient(to bottom, #15110d66 0%, #15110d00 28%, #15110d00 55%, #15110dcc 85%, var(--night) 100%);
}
.embers { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { display: grid; justify-items: center; }
.hero h1 { margin-bottom: 1.1rem; }
.hero .logo { width: min(600px, 88vw); filter: drop-shadow(0 8px 22px #000a); animation: bob 6s ease-in-out infinite; }
.pitch {
  font-size: clamp(1.25rem, 1rem + 1.3vw, 1.75rem); font-weight: 700;
  line-height: 1.3; max-width: 30ch; margin: 0 0 1.4rem; text-shadow: 0 2px 14px #000;
}
.status {
  display: inline-flex; align-items: center; gap: .55rem;
  min-block-size: 1.9rem; padding: .3rem .85rem; margin: 0 0 1rem;
  border-radius: 999px; background: #100c09b3; border: 1px solid #ffffff1f;
  font-size: .88rem; opacity: 0; transition: opacity .5s;
}
.status.is-ready { opacity: 1; }
.status .dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--grass-hi); animation: ping 2.2s ease-out infinite; }
.hero .address { margin-bottom: 1.1rem; }
.hero .actions { justify-content: center; }
.meta { margin: 1.25rem 0 0; color: var(--muted); font-size: .92rem; text-shadow: 0 1px 6px #000; }

/* ---------- Home: what's new (update cards) ---------- */
.news { padding-block: 4.5rem 3rem; }
.news-head { display: grid; gap: .5rem 3rem; align-items: end; margin-bottom: 2rem; }
.news-head .lead { margin: 0; }
@media (min-width: 900px) { .news-head { grid-template-columns: auto 1fr; } }
.cards-news { display: grid; gap: 1rem; }
.ncard {
  position: relative; display: grid; overflow: hidden; border-radius: .45rem;
  background: var(--night-2); border: 1px solid var(--line);
  transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s;
}
.ncard:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -22px #000; border-color: var(--c); }
.ncard-img { overflow: hidden; }
.ncard-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.ncard:hover .ncard-img img { transform: scale(1.06); }
.ncard-body { padding: 1rem 1.15rem 1.2rem; }
.ncard h3 { font-size: 1.3rem; margin: .45rem 0 .35rem; }
.ncard p { margin: 0; color: var(--muted); }
.ncard .tag { display: flex; gap: .6rem; align-items: center; margin: 0; }
.ncard .tag span { padding: .2rem .5rem; border-radius: .25rem; background: var(--c); color: #120d08; font: 800 .72rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .06em; }
.ncard .tag time { font: 700 .82rem var(--mono); color: var(--muted); }
.t-green { --c: var(--grass-hi); } .t-blue { --c: #6ec8ff; } .t-orange { --c: var(--orange); }
@media (min-width: 900px) {
  .cards-news { grid-template-columns: 1.4fr 1fr; }
  .ncard.big { grid-row: span 2; grid-template-rows: 1fr auto; }
  .ncard.big h3 { font-size: 1.7rem; }
  .ncard.big .ncard-img img { aspect-ratio: auto; height: 100%; min-height: 17rem; }
  .ncard:not(.big) { grid-template-columns: 11rem 1fr; }
  .ncard:not(.big) .ncard-img img { height: 100%; aspect-ratio: auto; }
}
.next-up {
  margin: 1rem 0 0; padding: 1.1rem 1.3rem 1.2rem; border-radius: .45rem;
  background: linear-gradient(120deg, #7cbd2a1f, #7cbd2a06 60%), var(--night-2); border: 1px solid #7cbd2a55;
}
.next-title { margin: 0 0 .7rem; font-weight: 800; }
.next-title span { display: inline-block; margin-inline-end: .5rem; padding: .15rem .5rem; border-radius: .25rem; background: var(--grass); color: var(--grass-ink); font: 800 .72rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .06em; }
.next-up ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem .9rem; }
.next-up li { position: relative; padding-inline-start: 1.2rem; color: var(--muted); }
.next-up li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .6em; width: .4rem; height: .4rem; background: var(--grass); }
.next-up li b { color: var(--ink); }
@media (min-width: 900px) { .next-up ul { grid-template-columns: 1fr 1fr; } .next-up li:last-child { grid-column: 1 / -1; } }

/* ---------- Home: at home / out there ---------- */
.sides { padding-block: 3rem; background: linear-gradient(180deg, var(--night), #1b1510 50%, var(--night)); }
.sides-head { margin-bottom: 2rem; }
.sides-grid { display: grid; gap: 1.25rem; }
.side-col { border-radius: .5rem; overflow: hidden; border: 1px solid var(--line); background: var(--panel); transition: transform .3s var(--ease-out), box-shadow .3s; }
.side-col:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -24px #000; }
.side-col.home { --accent: var(--orange); --panel: linear-gradient(180deg, #f39a3517, #f39a3505 60%), var(--night-2); border-color: #f39a3545; }
.side-col.away { --accent: #6ec8ff; --panel: linear-gradient(180deg, #6ec8ff17, #6ec8ff05 60%), var(--night-2); border-color: #6ec8ff45; }
.side-img { overflow: hidden; }
.side-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.side-col:hover .side-img img { transform: scale(1.05); }
.side-body { padding: 1.4rem 1.5rem 1.6rem; }
.side-col h3 { font: 700 clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem)/1.05 var(--pixel); color: var(--accent); margin-bottom: .6rem; text-shadow: .07em .07em 0 #00000099; }
.side-col p { margin: 0 0 1rem; }
.side-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.side-col li { padding-inline-start: 1.3rem; position: relative; color: var(--muted); }
.side-col li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .6em; width: .45rem; height: .45rem; background: var(--accent); }
.side-col li b { color: var(--ink); }
@media (min-width: 860px) { .sides-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }

/* ---------- Home: gallery ---------- */
.gallery { padding-block: 3rem 5rem; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.shot { position: relative; overflow: hidden; border-radius: .35rem; background: var(--night-2); margin: 0; }
.shot img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.shot:hover img { transform: scale(1.06); }
.shot figcaption {
  position: absolute; inset: auto 0 0; padding: 1.5rem .8rem .6rem;
  background: linear-gradient(transparent, #000000b3); color: #fff; font-weight: 700; font-size: .9rem;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease-out);
}
.shot:hover figcaption { opacity: 1; transform: none; }
@media (hover: none) { .shot figcaption { opacity: 1; transform: none; } }
.shots .wide, .shots .hero-shot, .shots .m-wide { grid-column: span 2; }
@media (min-width: 860px) {
  .shots { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
  .shots .m-wide { grid-column: auto; }
  .shots .hero-shot { grid-row: span 2; }
  .shots .hero-shot img { aspect-ratio: auto; }
}

/* ---------- Home: rules ---------- */
.deal { padding-block: 5rem; background: linear-gradient(to bottom, var(--night), var(--night-2) 30%, var(--night-2) 70%, var(--night)); }
.deal .wrap { display: grid; gap: 2.5rem; }
.deal-head p { color: var(--muted); margin: 1rem 0 0; max-width: 30rem; }
.deal-head .btn { margin-top: 1.5rem; }
.pledges { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; }
.pledge .num { font: 700 .8rem/1 var(--mono); color: var(--orange); }
.pledge h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); margin-top: .4rem; }
.pledge p { margin: .5rem 0 0; color: var(--muted); max-width: 34rem; }
@media (min-width: 900px) { .deal .wrap { grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; } }
@media (min-width: 1200px) {
  /* Sharp sunrise behind the rules, darkened for reading. One overlay fades it into the page
     colour at the top and bottom (so it blends with the sections around it) and darkens the
     left side under the text. */
  .deal { position: relative; isolation: isolate; overflow: hidden; padding-block: 8rem; background: var(--night); }
  .deal::before {
    content: ""; position: absolute; inset: 0; z-index: -2;
    background: url(img/sunrise-valley-1600.webp) 65% 45% / cover;
    filter: brightness(.6) saturate(.9);
  }
  .deal::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
      linear-gradient(to bottom, var(--night) 0%, #15110d00 26%, #15110d00 74%, var(--night) 100%),
      linear-gradient(to right, #15110df0 22%, #15110dbf 52%, #15110d59 100%);
  }
  .deal .wrap { grid-template-columns: 1fr 2fr; }
  .pledges { grid-template-columns: 1fr 1fr; gap: 2.5rem 3.5rem; }
}

/* ---------- Home: hotbar ---------- */
.know { position: relative; isolation: isolate; overflow: hidden; padding-block: 6rem; text-align: center; }
.know-bg { position: absolute; inset: 0; z-index: -1; }
.know-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: saturate(1.25) blur(3px); transform: scale(1.04); }
.know-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--night) 0%, #15110d00 22%, #15110d00 78%, var(--night) 100%), radial-gradient(ellipse 65% 75% at 50% 55%, #15110d55, #15110dd9 75%, var(--night) 100%); }
.know .hint { color: var(--muted); margin: .9rem 0 2.5rem; }
.know-more { margin: 2.25rem 0 0; font-weight: 700; }
.hint .keys-hint { display: none; }
@media (hover: hover) and (pointer: fine) { .hint .keys-hint { display: inline; } .hint .tap-hint { display: none; } }

.game { display: grid; justify-items: center; gap: 1.1rem; }
.item-name { min-block-size: 1.6rem; margin: 0; font: 700 1.05rem/1.5 var(--mono); color: #fff; text-shadow: .12em .12em 0 #3f3f3f; animation: name-fade 2.6s ease-out both; }
.xp { width: min(100%, 620px); height: 6px; background: #1b2a12; border: 1px solid #000; border-radius: 1px; overflow: hidden; }
.xp span { display: block; height: 100%; width: 100%; background: linear-gradient(#b9ff6a, #6cd43a); transform-origin: left; transform: scaleX(0); }
.xp.is-running span { animation: xp-fill var(--cycle, 5.5s) linear forwards; }
.xp.is-stopped { opacity: .35; }
.hotbar {
  display: grid; grid-template-columns: repeat(9, 1fr); width: min(100%, 620px);
  padding: 3px; background: #00000080; border: 2px solid #1c1c1c;
  box-shadow: inset 0 0 0 2px #6f6f6f, 0 18px 40px -12px #000;
}
.slot {
  position: relative; aspect-ratio: 1; padding: 0; cursor: pointer; display: grid; place-items: center;
  background: #8b8b8b22; border: 0; box-shadow: inset 2px 2px 0 #00000060, inset -2px -2px 0 #ffffff1c;
}
.slot:hover { background: #ffffff1f; }
.slot img { width: 64%; height: auto; }
.slot[aria-selected="true"] { z-index: 1; }
.slot[aria-selected="true"]::after { content: ""; position: absolute; inset: -5px; border: 3px solid #f4f4f4; box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #000; }
.slot .n { position: absolute; inset-block-end: 1px; inset-inline-end: 4px; font: 700 .62rem var(--mono); color: #ffffffa0; text-shadow: 1px 1px 0 #000; }
@media (max-width: 480px) { .slot .n { display: none; } }

/* All panels share one grid cell, so the box is always as tall as the tallest one. */
.tooltips { display: grid; width: min(100%, 560px); margin-top: .4rem; }
.tooltip {
  grid-area: 1 / 1; text-align: start; background: #0e0a10f5; padding: 1rem 1.15rem 1.1rem;
  border: 3px solid; border-image: linear-gradient(#8fd13c, #3f6b12) 1;
  box-shadow: inset 0 0 0 2px #0e0a10, 0 14px 30px -12px #000;
  font: 600 .98rem/1.55 var(--mono); text-shadow: .1em .1em 0 #00000099;
}
.tooltips .tooltip[hidden] { display: block; visibility: hidden; }
@media (max-width: 480px) { .tooltip { font-size: .86rem; padding: .85rem .9rem .95rem; } .tooltip h3 { font-size: 1rem; } }
.tooltip h3 { font: 700 1.1rem/1.4 var(--mono); margin: 0 0 .35rem; letter-spacing: 0; }
.tooltip p { margin: 0; color: #aaaaaa; }
.tooltip .lore { color: #d8bd7e; font-style: italic; margin-top: .45rem; }
.tooltip .use { color: #8fb8ff; margin-top: .45rem; }
.tooltip .warn { color: #ff6b6b; margin-top: .45rem; }
.tooltip code { color: #ffd966; }
.c-yellow { color: #ffff55; } .c-aqua { color: #55ffff; } .c-white { color: #ffffff; }
.c-gray { color: #e0e0e0; } .c-pink { color: #ff77ff; } .c-green { color: #55ff55; }
.c-teal { color: #55ffcc; } .c-red { color: #ff5555; } .c-gold { color: #ffaa00; }

/* ---------- Numbered steps (home and guide) ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1.5rem; max-width: 44rem; }
.steps > li { counter-increment: step; position: relative; padding-inline-start: 3rem; }
/* Step numbers drawn as little grass blocks */
.steps > li::before {
  content: counter(step); position: absolute; inset-inline-start: 0; inset-block-start: 0;
  display: grid; place-items: center; width: 2rem; height: 2rem;
  font: 700 1rem/1 var(--pixel); color: #fff; text-shadow: .12em .12em 0 #3f3f3f;
  background:
    linear-gradient(#90d13c 0 .25rem, #7cbd2a .25rem .5rem, #0000 .5rem) 0 0 / 100% 100% no-repeat,
    repeating-linear-gradient(90deg, #6ba524 0 .25rem, #0000 .25rem .5rem, #6ba524 .5rem .75rem, #6ba524 .75rem 1rem) 0 .5rem / 100% .25rem no-repeat,
    repeating-conic-gradient(#866043 0 25%, #79553a 0 50%) 0 0 / .5rem .5rem;
  box-shadow: inset -2px -2px 0 #00000059, inset 2px 2px 0 #ffffff1f, 0 0 0 1px #0000008c;
  image-rendering: pixelated;
}
.steps h3 { font-size: 1.15rem; margin: .15rem 0 .25rem; }
.steps p { margin: 0 0 .5rem; color: var(--muted); }

/* ---------- Home: join ---------- */
.join { position: relative; isolation: isolate; padding-block: 7rem; overflow: hidden; }
.join-bg { position: absolute; inset: 0; z-index: -1; }
.join-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(3px); transform: scale(1.04); }
.join-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, #15110df2 0%, #15110dcc 55%, #15110d66 100%), linear-gradient(to bottom, var(--night), #15110d00 18%); }
.join .section-title { margin-bottom: 2rem; }
.join .address { margin-bottom: 1.5rem; }
.discord-count { margin: .9rem 0 0; color: var(--muted); font-size: .9rem; min-block-size: 1.4em; }

/* ---------- Sub-page header (guide, rules, FAQ) ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: 9rem 3rem; }
.page-hero-bg { position: absolute; inset: 0; z-index: -1; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.page-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, #15110de6 0%, #15110db3 45%, #15110d33 100%), linear-gradient(to bottom, #15110d00 55%, var(--night) 100%); }
.page-hero h1 { font-size: clamp(2.4rem, 1.6rem + 3.2vw, 3.8rem); max-width: 18ch; }
.page-hero .lede { max-width: 36rem; margin: 1rem 0 0; font-size: 1.1rem; text-shadow: 0 1px 10px #000; }
@media (max-width: 640px) { .page-hero { padding-top: 10rem; } }

/* ---------- Footer ---------- */
.site-foot { padding-block: 2.5rem 3rem; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
.site-foot .row { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between; }
.site-foot nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-foot a { color: var(--ink); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.legal { margin: 1rem 0 0; font-size: .8rem; opacity: .75; }

/* ---------- Scroll reveal (only when JS runs) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* stagger delays as attributes (no inline styles, so the content security policy can block them) */
[data-d="80"] { --d: 80; } [data-d="100"] { --d: 100; } [data-d="120"] { --d: 120; } [data-d="160"] { --d: 160; } [data-d="200"] { --d: 200; } [data-d="240"] { --d: 240; }

/* ---------- Keyframes ---------- */
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg) scale(1.08); } 50% { transform: rotate(10deg) scale(1.08); } 75% { transform: rotate(-5deg); } }
@keyframes logo-pop { 0% { transform: scale(.9); } 45% { transform: scale(1.12) rotate(2deg); } 70% { transform: scale(.97) rotate(-1deg); } 100% { transform: none; } }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 #90d13c99; } 70%, 100% { box-shadow: 0 0 0 9px #90d13c00; } }
@keyframes xp-fill { to { transform: scaleX(1); } }
@keyframes name-fade { 0% { opacity: 0; } 12%, 70% { opacity: 1; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .xp.is-running span, .item-name { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .ncard:hover, .side-col:hover, .btn:hover, .btn:active, .bar-logo img { transform: none !important; }
}

/* ---------- Skip link and credits ---------- */
.skip { position: absolute; left: .75rem; top: -4rem; z-index: 100; padding: .6rem 1rem; border-radius: .3rem; background: var(--grass); color: var(--grass-ink); font-weight: 800; text-decoration: none; }
.skip:focus { top: .75rem; }
.credits { margin: .4rem 0 0; font-size: .75rem; opacity: .6; }
.credits a { color: inherit; text-decoration: underline; }

/* ---------- 404 ---------- */
.lost { min-block-size: 100svh; display: grid; place-items: center; text-align: center; padding: 8rem 1.25rem 4rem; }
.lost h1 { margin: 1.5rem 0 .75rem; }
.lost p { color: var(--muted); margin: 0 0 1.75rem; }
.lost .actions { justify-content: center; }
.lost img.pixel { width: 64px; height: 64px; margin-inline: auto; }
