:root {
  color-scheme: dark;
  --background: #17151A;
  --surface: #242027;
  --surface-secondary: #2B2630;
  --surface-raised: #332B37;
  --primary: #C987AB;
  --primary-hover: #A85F83;
  --border: #38313B;
  --heading: #F5F1F4;
  --text: #F5F1F4;
  --muted: #A49AA5;
  --lantern: #DDB6CB;
  --sand: #E9DDE5;
  --ink: #241D25;
  --page-gutter: clamp(22px, 4vw, 88px);
}

* { box-sizing: border-box; }

html { scroll-padding-top: 88px; zoom: 1.25; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img, svg { display: block; }
img { max-width: 100%; }

:focus-visible { outline: 2px solid var(--lantern); outline-offset: 4px; }

.svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }

.content-width,
.nav-shell {
  width: calc(100% - var(--page-gutter) - var(--page-gutter));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(233, 221, 229, 0.11);
  background: rgba(23, 21, 26, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nav-shell {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  font-size: 16px;
  font-weight: 760;
  letter-spacing: 0.1em;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 33px);
  color: var(--muted);
  font-size: 12px;
  font-weight: 670;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.main-navigation > a:not(.nav-discord) { padding-block: 9px; }

.main-navigation > a:not(.nav-discord):hover,
.main-navigation > a:not(.nav-discord):focus-visible { color: var(--heading); }
.main-navigation > a[aria-current="page"] { color: var(--heading); }

.nav-discord {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 15px;
  background: var(--primary);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.nav-discord:hover { background: var(--primary-hover); color: var(--heading); }

.discord-mark,
.discord-mark svg { width: 16px; height: 16px; }

.nav-placeholder[aria-disabled="true"] { cursor: default; }

.menu-toggle { display: none; }

.hero-banner {
  position: relative;
  min-height: min(700px, calc(100svh - 68px));
  display: flex;
  overflow: hidden;
  isolation: isolate;
  background: var(--surface-secondary);
}

.hero-banner img,
.hero-banner-shade { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-banner img { z-index: 0; object-fit: cover; object-position: center 50%; }

.hero-banner-shade {
  z-index: 1;
  background:
    linear-gradient(115deg, rgba(8, 7, 10, 0.95) 0%, rgba(8, 7, 10, 0.86) 36%, rgba(8, 7, 10, 0.5) 55%, rgba(8, 7, 10, 0.06) 77%),
    linear-gradient(0deg, rgba(8, 7, 10, 0.62), transparent 40%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: 72px 38px;
}

.hero-copy { width: min(100%, 700px); margin-block: auto; padding-block: 44px; }

.hero-copy h1 {
  margin: 0 0 18px;
  color: var(--heading);
  font-size: clamp(60px, 6.2vw, 104px);
  font-weight: 770;
  letter-spacing: -0.075em;
  line-height: 0.98;
}

.hero-copy h1 span { color: var(--primary); font-weight: inherit; }

.hero-copy > p {
  max-width: 490px;
  margin: 0 0 28px;
  color: var(--text);
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.55;
}

.hero-actions { width: min(100%, 460px); display: flex; flex-wrap: wrap; align-items: flex-start; gap: 11px; }
.season-status-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.season-status { min-height: 48px; display: inline-flex; align-items: center; gap: 10px; padding: 0 16px; border: 1px solid var(--border); background: rgba(23, 21, 26, 0.72); color: var(--heading); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.hero-actions > .button,
.season-status { height: 48px; min-height: 48px; }
.status-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; animation: status-pulse 2.4s ease-in-out infinite; }
.season-status-live .status-dot { background: #73A987; box-shadow: 0 0 0 3px rgba(115, 169, 135, 0.12); }
.season-status-soon .status-dot { background: #D69A5D; box-shadow: 0 0 0 3px rgba(214, 154, 93, 0.12); }
@keyframes status-pulse { 0%, 100% { opacity: 0.68; transform: scale(0.92); } 50% { opacity: 1; transform: scale(1); } }

.scroll-note {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  gap: 11px;
  margin-top: auto;
  color: var(--muted);
  font-size: 11px;
}

.scroll-note span { width: 30px; height: 1px; background: var(--primary); }

.server-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 430px);
  align-items: center;
  gap: 36px;
  min-height: 142px;
  padding: 20px 0 22px;
  border-bottom: 1px solid rgba(233, 221, 229, 0.1);
}

.connection-note h2 {
  margin: 0 0 4px;
  color: var(--heading);
  font-size: 19px;
  font-weight: 680;
  letter-spacing: -0.035em;
}

.connection-note p { margin: 0; color: var(--muted); font-size: 12px; }

.join-panel { width: 100%; min-width: 0; }

.address-box {
  min-height: 58px;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  background: var(--surface);
}
.address-box .address-copy strong { font-family: inherit; font-size: 13px; }

.address-copy {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  padding: 8px 13px;
  line-height: 1.35;
}

.field-label {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.address-copy strong {
  overflow: hidden;
  color: var(--heading);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  min-width: 128px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 0;
  background: var(--primary);
  color: var(--ink);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.copy-button:hover { background: var(--primary-hover); color: var(--heading); }
.copy-button svg { width: 16px; height: 16px; }

.copy-feedback {
  min-height: 18px;
  margin: 3px 0 4px;
  color: var(--primary);
  font-size: 11px;
  text-align: right;
}

.button {
  min-height: 42px;
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button-primary { background: var(--primary); color: var(--ink); }
.button-primary:hover { background: var(--primary-hover); color: var(--heading); }
.button-secondary { border-color: var(--border); background: var(--surface); color: var(--heading); }
.button-secondary:hover { border-color: var(--primary); background: var(--surface-secondary); }

.section-pad { padding-block: clamp(48px, 3.5vw, 64px) clamp(60px, 6vw, 96px); }

.about-section {
  min-height: 640px;
  padding-block: clamp(48px, 3.5vw, 64px) clamp(60px, 5vw, 96px);
  border-top: 1px solid rgba(233, 221, 229, 0.1);
  background: var(--surface);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 4vw, 68px);
}

.about-copy { min-width: 0; }

.about-copy h2,
.section-heading h2 {
  margin: 0 0 18px;
  color: var(--heading);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.section-intro {
  max-width: 610px;
  margin-bottom: 0;
  color: var(--text);
  font-size: 16px;
}

.about-copy h2 { margin-bottom: 8px; }
.about-intro { max-width: 520px; margin: 0; font-size: 14px; line-height: 1.55; }

.about-art-slot {
  min-height: 330px;
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.campfire-art {
  display: block;
  width: min(100%, 520px);
  height: auto;
  object-fit: contain;
}

.about-card-grid {
  align-self: center;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0;
}

.about-card {
  min-height: 154px;
  padding: 22px 23px;
  border: 1px solid var(--border);
  background: var(--surface-secondary);
}

.section-heading { max-width: 760px; }

.gallery-heading { margin-bottom: 35px; }

.section-heading h2 { margin-bottom: 12px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery-more-row { display: flex; justify-content: flex-end; margin-top: 24px; }
.gallery-more {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}
.gallery-more:hover { border-color: var(--primary-hover); background: var(--primary-hover); color: var(--heading); }
.gallery-more span { color: var(--ink); font-size: 16px; line-height: 1; }
.gallery-more:hover span { color: var(--heading); }

.gallery-page-hero {
  position: relative;
  min-height: clamp(200px, 22vw, 330px);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--surface-secondary);
}

.gallery-page-hero > img,
.gallery-page-hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.gallery-page-hero > img { z-index: -2; object-fit: cover; object-position: center 45%; }
.gallery-page-hero::after {
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(23, 21, 26, 0.55), rgba(23, 21, 26, 0.38)), linear-gradient(0deg, rgba(23, 21, 26, 0.52), transparent 65%);
}
.gallery-page-hero h1 {
  margin: 0;
  padding: 24px;
  color: var(--heading);
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 760;
  letter-spacing: 0.12em;
  line-height: 1;
  text-align: center;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.24);
  text-transform: uppercase;
}

.rules-page-hero {
  position: relative;
  min-height: clamp(200px, 22vw, 330px);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--surface-secondary);
}

.rules-page-hero > img,
.rules-page-hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.rules-page-hero > img { z-index: -2; object-fit: cover; object-position: center 48%; }
.rules-page-hero::after {
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(23, 21, 26, 0.4), rgba(23, 21, 26, 0.18) 50%, rgba(23, 21, 26, 0.42)), linear-gradient(0deg, rgba(23, 21, 26, 0.42), transparent 70%);
}
.rules-page-hero-content { position: relative; z-index: 1; max-width: 760px; padding: 24px; text-align: center; }
.rules-page-hero h1 {
  margin: 0;
  padding: 24px;
  color: var(--heading);
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 760;
  letter-spacing: 0.12em;
  line-height: 1;
  text-align: center;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.24);
  text-transform: uppercase;
}
.rules-page-hero p { margin: 5px 0 0; color: var(--heading); font-size: clamp(14px, 1.3vw, 18px); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7); }

.rules-page-section {
  min-height: 580px;
  padding-block: clamp(52px, 6vw, 84px);
  border-top: 1px solid rgba(233, 221, 229, 0.09);
  background: var(--surface-secondary);
}

.rules-page-layout {
  display: block;
}

.rules-season-toolbar { display: flex; justify-content: flex-start; margin-bottom: 14px; }
.rules-page-list { position: relative; display: grid; grid-template-columns: 1fr; row-gap: 0; }
.rules-page-list[hidden] { display: none; }
.rules-page-connector { display: block; width: 100%; height: 64px; overflow: visible; color: var(--primary); pointer-events: none; }
.rules-page-connector path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: 0.72; }
.rules-page-card { position: relative; z-index: 1; display: block; width: 52%; min-height: 178px; padding: 28px 30px; }
.rules-page-card:nth-of-type(odd) { justify-self: end; }
.rules-page-card:nth-of-type(even) { justify-self: start; }
.rules-page-card h3 { margin: 0 0 8px; color: var(--heading); font-size: 14px; letter-spacing: 0.035em; text-transform: uppercase; }
.rules-page-card p { margin: 0; color: var(--text); font-size: 14px; }
.rules-season-coming { min-height: 220px; display: grid; place-items: center; margin: 0; color: var(--muted); text-align: center; }
.rules-season-coming[hidden] { display: none; }

.apply-page-hero-copy { position: relative; z-index: 1; max-width: 760px; padding: 24px; text-align: center; }
.apply-page-hero-copy p { margin: 5px 0 0; color: var(--heading); font-size: clamp(14px, 1.3vw, 18px); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7); }
.apply-page-section { min-height: 580px; padding-block: clamp(42px, 5vw, 72px) clamp(64px, 7vw, 96px); border-top: 1px solid rgba(233, 221, 229, 0.09); background: var(--surface-secondary); }
.apply-season-toolbar { display: flex; justify-content: flex-start; margin-bottom: 24px; }
.apply-chooser { display: grid; justify-items: center; gap: 22px; padding-block: 34px 56px; text-align: center; }
.apply-chooser h2 { margin: 0; color: var(--heading); font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.04em; }
.apply-choice-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.apply-choice-button { min-width: 170px; min-height: 52px; padding: 0 24px; border: 1px solid var(--border); background: var(--surface); color: var(--heading); cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease; }
.apply-choice-button:first-child { border-color: var(--primary); background: var(--primary); color: var(--ink); }
.apply-choice-button:first-child:hover { border-color: var(--primary-hover); background: var(--primary-hover); color: var(--heading); }
.apply-choice-button:last-child:hover { border-color: var(--primary); background: var(--surface-raised); }
.apply-dialog { width: min(620px, calc(100vw - 32px)); max-height: calc(100svh - 32px); margin: auto; padding: 0; overflow: auto; border: 1px solid var(--border); background: var(--surface); color: var(--text); opacity: 0; transform: translateY(8px); transition: opacity 180ms ease, transform 180ms ease; }
.apply-dialog-discord { width: min(760px, calc(100vw - 32px)); }
.apply-dialog[open] { display: block; }
.apply-dialog.is-visible { opacity: 1; transform: translateY(0); }
.apply-dialog.is-closing { opacity: 0; transform: translateY(8px); }
.apply-dialog::backdrop { background: rgba(10, 8, 12, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: background-color 180ms ease, backdrop-filter 180ms ease; }
.apply-dialog.is-visible::backdrop { background: rgba(10, 8, 12, 0.82); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.apply-dialog-content { position: relative; padding: clamp(30px, 5vw, 44px); }
.apply-dialog-content > h2 { margin: 0 42px 28px 0; color: var(--heading); font-size: clamp(20px, 2.3vw, 28px); letter-spacing: -0.035em; }
.apply-dialog-content > p { max-width: 440px; margin: 0; color: var(--text); font-size: 15px; }
.apply-dialog-close { position: absolute; top: 16px; right: 16px; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--border); background: var(--surface-secondary); color: var(--heading); cursor: pointer; font-size: 22px; line-height: 1; }
.apply-dialog-close:hover { background: var(--surface-raised); }
.apply-dialog-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.apply-dialog-step { min-height: 190px; display: flex; flex-direction: column; align-items: flex-start; padding: 24px; border: 1px solid var(--border); background: var(--surface-secondary); }
.apply-dialog-step h3 { margin: 0 0 12px; color: var(--heading); font-size: 13px; letter-spacing: 0.035em; text-transform: uppercase; }
.apply-dialog-step p { margin: 0; color: var(--text); font-size: 14px; }
.apply-step-action { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; margin-top: auto; padding: 0 16px; border: 1px solid transparent; font-size: 11px; font-weight: 750; letter-spacing: 0.045em; text-transform: uppercase; transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease; }
.apply-step-action-discord { border-color: #5865F2; background: #5865F2; color: #fff; }
.apply-step-action-discord:hover { border-color: #4752C4; background: #4752C4; }
.apply-step-action-channel { border-color: var(--primary); background: var(--primary); color: var(--ink); }
.apply-step-action-channel:hover { border-color: var(--primary-hover); background: var(--primary-hover); color: var(--heading); }
.apply-season-coming { min-height: 260px; display: grid; place-items: center; margin: 0; color: var(--muted); text-align: center; }
.apply-season-coming[hidden] { display: none; }

.store-page-hero-copy { position: relative; z-index: 1; max-width: 760px; padding: 24px; text-align: center; }
.store-page-hero-copy p { margin: 5px 0 0; color: var(--heading); font-size: clamp(14px, 1.3vw, 18px); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7); }
.store-page-section { min-height: 640px; padding-block: clamp(42px, 5vw, 72px) clamp(68px, 8vw, 104px); border-top: 1px solid rgba(233, 221, 229, 0.09); background: var(--surface-secondary); }
.store-rank-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 16px; }
.store-rank-card { min-width: 0; min-height: 500px; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(20px, 2.2vw, 30px); border: 1px solid var(--border); border-top: 2px solid var(--rank-accent); background: var(--surface); }
.store-rank-logo { width: auto; max-width: 100%; height: 26px; margin-bottom: 18px; object-fit: contain; object-position: left center; image-rendering: pixelated; }
.store-rank-card h2 { margin: 0 0 4px; color: var(--heading); font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -0.04em; }
.store-rank-role { min-height: 22px; margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.store-rank-price { display: flex; align-items: baseline; gap: 8px; margin: 0 0 22px; color: var(--heading); }
.store-rank-price strong { font-size: clamp(22px, 2vw, 27px); font-weight: 720; }
.store-rank-price span { color: var(--muted); font-size: 12px; }
.store-rank-features { display: grid; gap: 12px; width: 100%; margin: 0 0 28px; padding: 0; list-style: none; }
.store-rank-features li { position: relative; padding-left: 18px; color: var(--text); font-size: 13px; line-height: 1.5; }
.store-rank-features li::before { position: absolute; top: 0.63em; left: 1px; width: 6px; height: 6px; border-radius: 50%; background: var(--rank-accent); content: ""; }
.store-rank-button { width: 100%; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; margin-top: auto; padding-inline: 16px; background: var(--rank-accent); color: var(--ink); font-size: 11px; font-weight: 760; letter-spacing: 0.07em; text-transform: uppercase; transition: filter 140ms ease; }
.store-rank-card .store-rank-button { border: 0; cursor: pointer; font-family: inherit; }
.store-rank-button:hover { filter: brightness(1.08); }
.support-dialog { width: min(620px, calc(100vw - 32px)); max-height: calc(100svh - 32px); margin: auto; padding: 0; overflow: auto; border: 1px solid var(--border); background: var(--surface); color: var(--text); opacity: 0; transform: translateY(8px); transition: opacity 180ms ease, transform 180ms ease; }
.support-dialog[open] { display: block; }
.support-dialog.is-visible { opacity: 1; transform: translateY(0); }
.support-dialog.is-closing { opacity: 0; transform: translateY(8px); }
.support-dialog::backdrop { background: rgba(10, 8, 12, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: background-color 180ms ease, backdrop-filter 180ms ease; }
.support-dialog.is-visible::backdrop { background: rgba(10, 8, 12, 0.82); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.support-modal-box { position: relative; padding: clamp(28px, 5vw, 42px); }
.btn-modal-close { position: absolute; top: 16px; right: 16px; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--border); background: var(--surface-secondary); color: var(--heading); cursor: pointer; font-size: 22px; line-height: 1; }
.btn-modal-close:hover { background: var(--surface-raised); }
.modal-header-title { max-width: calc(100% - 48px); margin: 0 0 12px; color: var(--heading); font-size: clamp(20px, 2.3vw, 28px); letter-spacing: -0.035em; }
.support-rank-note { margin: 0 0 16px; color: var(--text); font-size: 14px; }
.support-rank-note a { color: #78AFFF; text-decoration: underline; text-underline-offset: 3px; }
.support-rank-note strong { color: var(--heading); }
.modal-instructions { margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.modal-instructions ol { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0; padding-left: 20px; }
.modal-links-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.modal-dono-btn { min-height: 76px; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--border); background: var(--surface-secondary); transition: border-color 140ms ease, background-color 140ms ease; }
.modal-dono-btn:hover { border-color: var(--primary); background: var(--surface-raised); }
.dono-logo-icon { flex: 0 0 auto; display: grid; width: 34px; height: 34px; place-items: center; }
.tea-logo-icon { color: var(--primary); }
.dono-btn-text-wrap { min-width: 0; display: grid; gap: 2px; }
.dono-btn-main { color: var(--heading); font-size: 13px; font-weight: 700; }
.dono-btn-sub { color: var(--muted); font-size: 11px; }
.link-badge { margin-left: auto; padding: 4px 7px; border: 1px solid var(--border); color: var(--muted); font-size: 9px; font-weight: 700; }
.kofi-badge { color: #FF8B85; }
.upi-badge-tag { color: var(--primary); }

.gallery-page-section {
  min-height: 640px;
  padding-block: clamp(34px, 4vw, 54px) clamp(70px, 8vw, 110px);
  border-top: 1px solid rgba(233, 221, 229, 0.09);
  background: var(--surface-secondary);
}
.gallery-page-inner { width: calc(100% - var(--page-gutter) - var(--page-gutter)); margin-inline: auto; }
.gallery-toolbar { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.season-selector { display: flex; align-items: center; gap: 18px; }
.season-tab {
  position: relative;
  padding: 0 0 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}
.season-tab[aria-pressed="true"] { color: var(--heading); }
.season-tab[aria-pressed="true"]::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--primary); content: ""; }
.season-tab:hover { color: var(--heading); }
.gallery-actions { display: flex; align-items: center; gap: 10px; }
.gallery-filter-wrap { position: relative; z-index: 30; }
.gallery-filter-button {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--heading);
  cursor: pointer;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gallery-filter-button:hover { border-color: var(--border); background: var(--surface-secondary); }
.gallery-filter-button > svg,
.gallery-add-build-button > svg { width: 16px; height: 16px; flex: 0 0 auto; }
.gallery-add-build-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--ink);
  cursor: default;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.gallery-add-build-button:hover { border-color: var(--primary-hover); background: var(--primary-hover); color: var(--heading); }
.gallery-filter-panel {
  position: absolute;
  z-index: 80;
  top: calc(100% + 10px);
  right: 0;
  width: min(340px, calc(100vw - 44px));
  padding: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
  color: var(--text);
}
.gallery-filter-panel[hidden] { display: none; }
.gallery-filter-panel h2 { margin: 0 0 12px; color: var(--heading); font-size: 15px; font-weight: 680; }
.gallery-filter-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gallery-filter-options label {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  background: var(--surface-secondary);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
}
.gallery-filter-options input { width: 15px; height: 15px; margin: 0; accent-color: var(--primary); }
.gallery-filter-options label:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.gallery-filter-apply {
  min-height: 37px;
  display: block;
  margin: 14px 0 0 auto;
  padding: 0 19px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.gallery-filter-apply:hover { border-color: var(--primary-hover); background: var(--primary-hover); color: var(--heading); }
.gallery-empty-state { min-height: 220px; display: grid; place-items: center; margin: 0; color: var(--muted); text-align: center; }
.gallery-empty-state[hidden] { display: none; }
.full-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.full-gallery-card { min-width: 0; }
.full-gallery-card[hidden] { display: none; }
.full-gallery-open,
.build-gallery-link {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--surface);
  color: inherit;
  cursor: zoom-in;
  text-align: left;
}
.build-gallery-link { cursor: pointer; }
.full-gallery-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.full-gallery-caption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}
.gallery-builder-label,
.gallery-tag-label {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 40px;
  padding: 6px 11px;
  border: 1px solid rgba(245, 241, 244, 0.12);
  background: rgba(23, 21, 26, 0.72);
  color: var(--heading);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 12px;
  line-height: 1.3;
}
.gallery-builder-label strong { font-weight: 680; }
.gallery-builder-label small { color: var(--muted); font-size: 11px; }
.gallery-tag-label { min-height: 32px; align-items: center; flex-direction: row; color: var(--heading); font-weight: 680; white-space: nowrap; }
.build-image-trigger .gallery-tag-label { position: absolute; right: 12px; bottom: 12px; }

.gallery-lightbox {
  width: max-content;
  max-width: min(94vw, 1280px);
  max-height: calc(100svh - 48px);
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--heading);
}
.gallery-lightbox::backdrop { background: rgba(10, 8, 12, 0.84); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.gallery-lightbox-shell { position: relative; width: max-content; max-width: inherit; max-height: inherit; }
.gallery-lightbox-media { position: relative; width: max-content; max-width: inherit; max-height: inherit; overflow: hidden; background: transparent; }
.gallery-lightbox-image { display: block; width: auto; height: auto; max-width: inherit; max-height: calc(100svh - 48px); object-fit: contain; background: transparent; }
.gallery-lightbox-overlays { position: absolute; inset: 0; pointer-events: none; }
.lightbox-glass {
  border: 1px solid rgba(245, 241, 244, 0.18);
  background: rgba(23, 21, 26, 0.68);
  color: var(--heading);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.gallery-lightbox-close,
.gallery-coordinates-toggle {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 700;
}
.gallery-lightbox-close { top: 14px; right: 14px; font-size: 26px; line-height: 1; }
.gallery-coordinates-toggle { top: 14px; right: 66px; font-size: 15px; }
.gallery-coordinates { position: absolute; top: 14px; left: 14px; width: min(240px, calc(100% - 150px)); padding: 13px 15px; font-size: 12px; line-height: 1.5; }
.gallery-coordinates-toggle,
.gallery-coordinates { pointer-events: auto; }
.gallery-coordinates[hidden] { display: none; }
.gallery-coordinates strong { display: block; margin-bottom: 5px; font-size: 13px; }
.gallery-coordinates p { margin: 0; color: var(--text); white-space: pre-line; }
.gallery-coordinates p[hidden] { display: none; }
.gallery-lightbox-builder,
.gallery-lightbox-tag { position: absolute; bottom: 14px; min-height: 40px; padding: 7px 12px; }
.gallery-lightbox-builder { left: 14px; display: flex; flex-direction: column; justify-content: center; }
.gallery-lightbox-builder-name { color: var(--heading); font-size: 13px; font-weight: 680; }
.gallery-lightbox-tag { right: 14px; display: flex; align-items: center; font-size: 12px; font-weight: 680; }
.gallery-coordinates-toggle:hover,
.gallery-lightbox-close:hover { background: rgba(23, 21, 26, 0.88); }

.build-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-secondary);
}
.gallery-section .build-card { overflow: visible; border: 0; background: transparent; }

.about-card h3,
.build-info h3,
.rule-card h3,
.staff-person h3 {
  margin: 0 0 8px;
  color: var(--heading);
  font-size: 18px;
  font-weight: 680;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.about-card p,
.rule-card p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.58;
}

.gallery-section {
  min-height: 640px;
  padding-block: 64px 48px;
  border-top: 1px solid rgba(233, 221, 229, 0.09);
  background: var(--surface);
}

.gallery-heading {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.gallery-heading .section-intro { max-width: 390px; padding-bottom: 3px; }

.build-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-secondary);
}

.build-info { padding: 17px 17px 16px; }
.build-info h3 { margin-bottom: 14px; font-size: 16px; }

.builder-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
}

.skin-avatar { width: 41px; height: 41px; flex: 0 0 auto; image-rendering: pixelated; }
.skin-rose { --skin-hair: #493d31; --skin-face: #d9aa87; --skin-eye: #302c27; --skin-shade: #a9775f; --skin-mouth: #875d4a; }
.skin-lilac { --skin-hair: #3c4b4c; --skin-face: #dfb996; --skin-eye: #242b2c; --skin-shade: #b1826a; --skin-mouth: #8c5e4b; }
.skin-sage { --skin-hair: #354239; --skin-face: #c99071; --skin-eye: #252b27; --skin-shade: #a56f59; --skin-mouth: #805347; }

.builder-name { min-width: 0; display: flex; flex: 1 1 auto; flex-direction: column; line-height: 1.4; }
.builder-name strong { overflow: hidden; color: var(--heading); font-size: 13px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.builder-name span,
.builder-discord { color: var(--muted); font-size: 11px; }
.builder-discord { flex: 0 0 auto; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rules-section {
  min-height: 640px;
  padding-block: clamp(48px, 3.5vw, 64px) clamp(60px, 5vw, 96px);
  background: var(--surface-secondary);
}

.faq-section { background: var(--surface); }

.staff-layout,
.faq-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(48px, 9vw, 120px);
}

.rules-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(270px, 1fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  column-gap: clamp(28px, 4vw, 58px);
  row-gap: 22px;
}

.rules-more {
  grid-column: 1;
  grid-row: 1;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  justify-self: start;
  padding: 0 13px;
  border: 1px solid var(--border);
  background: var(--primary);
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.rules-more span { color: var(--ink); font-size: 18px; line-height: 1; }
.rules-more:hover { border-color: var(--primary-hover); background: var(--primary-hover); color: var(--heading); }
.rules-more:hover span { color: var(--heading); }

.rules-heading {
  grid-column: 2;
  grid-row: 1;
  max-width: none;
  text-align: right;
}

.rules-heading h2 { margin-bottom: 8px; }
.rules-heading .section-intro { font-size: 14px; }

.rules-grid {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  scroll-margin-top: 100px;
}

.rules-visual {
  grid-column: 2;
  grid-row: 2;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rules-visual img { width: min(100%, 480px); max-height: 350px; object-fit: contain; }

.rule-card {
  min-height: 154px;
  padding: 22px 21px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.rule-card h3 { margin-bottom: 8px; font-size: 14px; letter-spacing: 0.035em; text-transform: uppercase; }

.staff-section {
  min-height: 600px;
  padding-block: 56px;
  border-top: 1px solid rgba(233, 221, 229, 0.09);
  background: var(--surface-secondary);
}

.staff-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 88px);
}

.staff-heading { max-width: none; }
.staff-heading .section-intro { font-size: 14px; }
.staff-art-slot { margin-top: 18px; display: flex; align-items: center; justify-content: center; }
.staff-art-slot img { width: min(100%, 330px); height: auto; object-fit: contain; }
.staff-list { display: grid; gap: 10px; }

.staff-row {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.staff-avatar { width: 56px; height: 56px; flex: 0 0 auto; border: 1px solid var(--border); object-fit: cover; }
.staff-person { flex: 1; min-width: 0; text-align: left; }
.staff-person h3 { margin-bottom: 1px; font-size: 14px; }
.staff-username { display: block; color: var(--muted); font-size: 11px; }
.staff-person p { margin: 1px 0 0; color: var(--muted); font-size: 12px; }

.faq-heading { max-width: 420px; }
.faq-list { border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }

.faq-list summary {
  position: relative;
  padding: 18px 34px 18px 0;
  color: var(--heading);
  cursor: pointer;
  font-size: 15px;
  font-weight: 650;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 3px;
  color: var(--primary);
  content: "+";
  font-size: 20px;
  font-weight: 400;
  transform: translateY(-53%);
}

.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 610px; margin: -1px 24px 19px 0; color: var(--text); font-size: 14px; }
.faq-discord-link { color: #5865F2; text-decoration: underline; text-underline-offset: 3px; }
.faq-discord-link:hover { color: #7289DA; }

.site-footer { border-top: 1px solid var(--border); background: var(--background); }
.footer-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer-caption { color: var(--muted); font-size: 11px; }

[data-reveal].reveal-ready {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 560ms ease-out, transform 560ms ease-out;
}

[data-reveal].reveal-ready.is-visible { opacity: 1; transform: translateY(0); }
[data-reveal].reveal-ready.no-reveal-transition { transition: none; }

@media (max-width: 940px) {
  .main-navigation { gap: 15px; font-size: 11px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .full-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-rank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-rank-card:last-child { grid-column: 1 / -1; width: calc(50% - 8px); justify-self: center; }
}

@media (max-width: 760px) {
  .about-section,
  .rules-section,
  .rules-page-section,
  .gallery-section,
  .staff-section,
  .gallery-page-section,
  .store-page-section { min-height: 0; padding-block: 48px; }
  .rules-layout { grid-template-columns: 1fr; grid-template-rows: auto; gap: 24px; }
  .rules-heading { grid-column: 1; grid-row: 1; text-align: left; }
  .rules-more { grid-column: 1; grid-row: 2; }
  .rules-grid { grid-column: 1; grid-row: 3; }
  .rules-visual { grid-column: 1; grid-row: 4; min-height: 0; }
  .rules-visual img { max-height: 300px; }
  .rules-page-card { width: 100%; }
  .apply-page-section { min-height: 0; padding-block: 48px; }
  .apply-chooser { padding-block: 18px 36px; }
  .apply-dialog-steps { grid-template-columns: 1fr; }
  .apply-dialog-step { min-height: 0; }
  .modal-links-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --page-gutter: 22px; }
  .nav-shell { min-height: 64px; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0 10px 12px;
    border: 0;
    background: transparent;
    color: var(--heading);
    cursor: pointer;
    font-size: 12px;
    font-weight: 650;
  }
  .menu-toggle-icon { width: 21px; display: grid; gap: 5px; }
  .menu-toggle-icon i { height: 1px; display: block; background: var(--primary); }
  .main-navigation {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    max-height: calc(100svh - 64px);
    padding: 8px var(--page-gutter) 20px;
    border-bottom: 1px solid var(--border);
    background: var(--background);
    overflow-y: auto;
  }
  .site-header.is-open .main-navigation { display: flex; flex-direction: column; }
  .main-navigation > a:not(.nav-discord) { padding: 11px 0; border-bottom: 1px solid rgba(233, 221, 229, 0.08); font-size: 13px; }
  .nav-discord { align-self: flex-start; margin-top: 14px; }
  .hero-banner { min-height: min(620px, calc(100svh - 64px)); }
  .hero-banner img { object-position: 62% center; }
  .hero-banner-shade { background: linear-gradient(115deg, rgba(8, 7, 10, 0.94), rgba(8, 7, 10, 0.46) 76%), linear-gradient(0deg, rgba(8, 7, 10, 0.76), transparent 58%); }
  .hero-inner { min-height: inherit; padding-block: 52px 28px; }
  .hero-copy { padding-block: 34px; }
  .hero-copy h1 { font-size: clamp(50px, 9vw, 72px); }
  .hero-copy > p { max-width: 400px; font-size: 17px; }
  .server-intro { grid-template-columns: 1fr; gap: 13px; min-height: 0; padding: 17px 0 20px; }
  .connection-note h2 { font-size: 16px; }
  .join-panel { width: 100%; }
  .copy-feedback { min-height: 14px; }
  .about-layout,
  .staff-layout,
  .faq-layout { grid-template-columns: 1fr; gap: 34px; }
  .about-art-slot { min-height: 220px; }
  .about-card-grid { margin-top: 0; }
  .gallery-heading { display: block; }
  .gallery-heading .section-intro { margin-top: 12px; }
  .gallery-page-hero { min-height: 220px; }
  .rules-page-hero { min-height: 220px; }
  .apply-season-toolbar { margin-bottom: 18px; }
  .apply-season-coming { min-height: 180px; }
  .store-rank-grid { grid-template-columns: 1fr; }
  .store-rank-card,
  .store-rank-card:last-child { width: 100%; min-height: 0; grid-column: auto; }
  .apply-choice-buttons { width: 100%; }
  .apply-choice-button { flex: 1 1 140px; min-width: 0; }
  .gallery-toolbar { flex-wrap: wrap; row-gap: 12px; }
  .season-selector { width: 100%; }
  .gallery-actions { margin-left: auto; }
  .full-gallery-grid { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 520px) {
  .server-intro { padding: 20px 0; }
  .gallery-grid,
  .rules-grid,
  .about-card-grid { grid-template-columns: 1fr; }
  .rules-page-card { width: 100%; min-height: 148px; padding: 20px; }
  .about-art-slot { min-height: 0; }
  .about-card { min-height: 124px; }
  .rule-card { min-height: 0; padding: 18px; }
  .builder-row { gap: 8px; }
  .builder-discord { max-width: 83px; font-size: 9px; }
  .copy-button { min-width: 112px; padding-inline: 10px; }
  .footer-inner { min-height: 72px; }
  .full-gallery-caption { right: 9px; bottom: 9px; left: 9px; gap: 7px; }
  .gallery-builder-label,
  .gallery-tag-label { min-height: 30px; padding: 5px 8px; font-size: 10px; }
  .gallery-lightbox { width: max-content; max-width: calc(100vw - 24px); }
  .gallery-lightbox-close,
  .gallery-coordinates-toggle { top: 8px; width: 36px; height: 36px; }
  .gallery-lightbox-close { right: 8px; }
  .gallery-coordinates-toggle { right: 52px; }
  .gallery-coordinates { top: 8px; left: 8px; width: min(200px, calc(100% - 106px)); padding: 9px 10px; font-size: 10px; }
  .gallery-lightbox-builder,
  .gallery-lightbox-tag { bottom: 8px; min-height: 34px; padding: 5px 8px; }
  .gallery-lightbox-builder { left: 8px; }
  .gallery-lightbox-tag { right: 8px; }
  .gallery-lightbox-builder-name { font-size: 11px; }
  .gallery-actions { gap: 7px; }
  .gallery-filter-button { width: 38px; min-width: 38px; min-height: 38px; }
  .gallery-add-build-button { min-height: 38px; gap: 7px; padding-inline: 10px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .apply-choice-button,
  .apply-dialog,
  .apply-dialog::backdrop,
  .support-dialog,
  .support-dialog::backdrop { transition-duration: 1ms; }
}
