:root {
  color-scheme:dark;
  --ink:#f4f0e6;
  --muted:#b3b9b8;
  --faint:#7f8e94;
  --gold:#e5b674;
  --amber:#dba86a;
  --line:rgba(210,220,220,.15);
  --panel:#101d25;
  --serif:Georgia,'Times New Roman',serif;
  --sans:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:30px;
  background:#09131b;
}

body {
  margin:0;
  min-width:320px;
  color:var(--ink);
  font-family:var(--sans);
  font-size:15px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

a {
  color:inherit;
  text-decoration:none;
}

button,input {
  font:inherit;
}

button,a,input {
  -webkit-tap-highlight-color:transparent;
}

button {
  cursor:pointer;
}

button:disabled {
  cursor:wait;
}

button, input {
  color:inherit;
}

button {
  border:0;
}

svg {
  width:20px;
  height:20px;
  flex-shrink:0;
}

a,button,input {
  outline-offset:5px;
}

a:focus-visible,button:focus-visible,input:focus-visible {
  outline:2px solid var(--gold);
}

::selection {
  background:#e5b674;
  color:#10202a;
}

[hidden] {
  display:none!important;
}

.scene {
  --scene-position-x:50%;
  --scene-position-y:50%;
  --scene-overlay:linear-gradient(90deg,rgba(5,14,24,.86) 0%,rgba(5,14,24,.7) 34%,rgba(5,14,24,.06) 75%),linear-gradient(0deg,#09131b 0%,rgba(9,19,27,.1) 33%,rgba(5,14,24,.22) 76%,rgba(5,14,24,.62) 100%);
  position:fixed;
  inset:0;
  z-index:-2;
  overflow:hidden;
  pointer-events:none;
  background-position:var(--scene-position-x) var(--scene-position-y);
}

.scene::before,.scene::after {
  content:"";
  position:absolute;
  inset:0;
}

.scene::before {
  background-image:url('/assets/campfire.jpg');
  background-size:cover;
  background-position:inherit;
}

/* Keep the reading overlays above the campfire effects. */
.scene::after {
  background-image:var(--scene-overlay);
}

.campfire-effects {
  display:none;
  position:absolute;
  /* Match the 1920 × 1080 image's cover crop at every viewport size. */
  width:max(100%,177.777778vh);
  height:max(100%,56.25vw);
  left:var(--scene-position-x);
  top:var(--scene-position-y);
  transform:translate(calc(0% - var(--scene-position-x)),calc(0% - var(--scene-position-y)));
  overflow:hidden;
}

@media(prefers-reduced-motion:no-preference) {
  body[data-page=home] .campfire-effects {
    display:block;
  }
}

.fire-flames {
  transform-origin:1240px 855px;
  animation:flame-flicker 1.7s ease-in-out infinite;
}

@keyframes flame-flicker {
  0%,100% { transform:scale(1,.98); }
  22% { transform:skewX(-.6deg) scale(.99,1.035); }
  48% { transform:skewX(.4deg) scale(1.01,.97); }
  76% { transform:skewX(-.3deg) scale(1.01,1.025); }
}

.firelight {
  animation:firelight-flicker 2.3s ease-in-out infinite;
}

@keyframes firelight-flicker {
  0%,100% { opacity:.2; }
  18%,68% { opacity:.36; }
  32%,82% { opacity:.15; }
  48% { opacity:.28; }
}

.fire-ember {
  --ember-rise:-330px;
  --ember-drift:-32px;
  fill:#ffe393;
  filter:drop-shadow(0 0 3px #ff9c4055);
  opacity:0;
  transform-box:fill-box;
  transform-origin:center;
  animation:ember-rise 8s linear infinite;
}

.fire-ember:nth-child(2) { --ember-drift:-58px; --ember-rise:-310px; animation-delay:-1.7s; animation-duration:9.6s; }
.fire-ember:nth-child(3) { --ember-drift:26px; --ember-rise:-260px; animation-delay:-3.2s; animation-duration:7.2s; }
.fire-ember:nth-child(4) { --ember-drift:-44px; --ember-rise:-370px; animation-delay:-.8s; animation-duration:10.1s; }
.fire-ember:nth-child(5) { --ember-drift:42px; --ember-rise:-290px; animation-delay:-4.1s; animation-duration:8.2s; }
.fire-ember:nth-child(6) { --ember-drift:-18px; --ember-rise:-250px; animation-delay:-2.4s; animation-duration:7.6s; }
.fire-ember:nth-child(7) { --ember-drift:-61px; --ember-rise:-350px; animation-delay:-6.3s; animation-duration:9.4s; }
.fire-ember:nth-child(8) { --ember-drift:12px; --ember-rise:-280px; animation-delay:-5.2s; animation-duration:8.6s; }
.fire-ember:nth-child(9) { --ember-drift:-38px; --ember-rise:-310px; animation-delay:-7.1s; animation-duration:9.1s; }
.fire-ember:nth-child(10) { --ember-drift:33px; --ember-rise:-240px; animation-delay:-.4s; animation-duration:7.4s; }
.fire-ember:nth-child(11) { --ember-drift:-29px; --ember-rise:-360px; animation-delay:-8.2s; animation-duration:10.4s; }
.fire-ember:nth-child(12) { --ember-drift:48px; --ember-rise:-270px; animation-delay:-3.8s; animation-duration:8.8s; }
.fire-ember:nth-child(13) { --ember-drift:-52px; --ember-rise:-300px; animation-delay:-2.1s; animation-duration:8.4s; }
.fire-ember:nth-child(14) { --ember-drift:-66px; --ember-rise:-390px; animation-delay:-5.8s; animation-duration:10.8s; }
.fire-ember:nth-child(15) { --ember-drift:21px; --ember-rise:-260px; animation-delay:-6.9s; animation-duration:7.8s; }
.fire-ember:nth-child(16) { --ember-drift:-23px; --ember-rise:-320px; animation-delay:-1.2s; animation-duration:9.2s; }
.fire-ember:nth-child(17) { --ember-drift:-41px; --ember-rise:-340px; animation-delay:-4.7s; animation-duration:9.8s; }
.fire-ember:nth-child(18) { --ember-drift:36px; --ember-rise:-280px; animation-delay:-7.6s; animation-duration:8.9s; }

@keyframes ember-rise {
  0% { opacity:0; fill:#ffe393; transform:translate(0,10px) scale(.8) rotate(-8deg); }
  8% { opacity:.95; }
  33% { fill:#ffc164; transform:translate(calc(var(--ember-drift) * -.2),calc(var(--ember-rise) * .33)) scale(.95) rotate(12deg); }
  65% { opacity:.7; fill:#f48b36; transform:translate(calc(var(--ember-drift) * .45),calc(var(--ember-rise) * .66)) scale(.7) rotate(-6deg); }
  85% { opacity:.35; fill:#d6602c; }
  100% { opacity:0; fill:#a83c25; transform:translate(var(--ember-drift),var(--ember-rise)) scale(.2) rotate(18deg); }
}

.site-header {
  height:116px;
  max-width:1600px;
  padding:0 5.1%;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  position:relative;
  z-index:2;
}

.brand {
  display:inline-flex;
  gap:13px;
  align-items:center;
}

.brand>svg {
  width:38px;
  height:38px;
  color:var(--gold);
}

.brand>span {
  font-family:var(--serif);
  font-size:26px;
  letter-spacing:3px;
  line-height:1.15;
  text-transform:uppercase;
}

.brand small {
  display:block;
  font-family:var(--sans);
  font-size:8px;
  letter-spacing:2.25px;
  color:#b7c0c4;
  margin-top:8px;
}

nav {
  display:flex;
  gap:35px;
  align-items:center;
  font-size:13px;
  font-weight:500;
}

nav a {
  color:#c2c7c7;
  position:relative;
  padding:8px 0;
  transition:color .2s;
}

nav a:hover,nav a[aria-current] {
  color:var(--ink);
}

nav a[aria-current]::after {
  content:'';
  height:2px;
  width:17px;
  background:var(--gold);
  position:absolute;
  bottom:0;
  left:0;
}

nav a:last-child span {
  color:var(--gold);
  margin-left:5px;
}

.hero {
  max-width:1600px;
  margin:auto;
  min-height:calc(100svh - 116px);
  position:relative;
  padding:65px 5.1% 120px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-content:center;
  align-items:end;
  gap:24px;
}

.hero-content {
  max-width:620px;
}

.eyebrow {
  display:flex;
  align-items:center;
  gap:12px;
  letter-spacing:2.6px;
  font-size:10px;
  color:var(--gold);
  font-weight:600;
  margin:0 0 24px;
}

.small-line {
  height:1px;
  width:30px;
  background:var(--gold);
}

h1,h2,h3,p {
  margin-top:0;
}

h1,h2 {
  font-family:var(--serif);
  font-weight:400;
  letter-spacing:-2px;
}

h1 {
  font-size:clamp(57px,5.4vw,88px);
  line-height:1.07;
  margin-bottom:26px;
}

h1 em {
  font-weight:400;
  color:var(--gold);
}

.hero-description {
  max-width:420px;
  font-size:15px;
  line-height:1.85;
  color:#c1c9cc;
  margin-bottom:18px;
}

.hero-actions {
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

.button {
  min-height:49px;
  padding:12px 22px;
  border-radius:4px;
  font-size:12px;
  font-weight:650;
  letter-spacing:.2px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:15px;
  transition:background .2s,transform .2s,color .2s;
}

.button svg {
  width:17px;
  height:17px;
}

.button:hover {
  transform:translateY(-2px);
}

.button-primary {
  color:#211b14;
  background:var(--gold);
  box-shadow:0 4px 28px #f4a43c12;
}

.button-primary:hover {
  background:#f0c68f;
}

.button-quiet {
  background:rgba(10,22,32,.28);
  color:#e2e4de;
  border:1px solid #b7c2c526;
}

.button-quiet:hover,.button-outline:hover {
  background:#25333d;
}

.server-address {
  margin-top:24px;
  padding-top:16px;
  border-top:1px solid var(--line);
  width:fit-content;
  max-width:100%;
  min-width:280px;
}

.address-caption {
  font-size:8px;
  letter-spacing:2.1px;
  color:#8a9ba4;
  display:block;
  margin-bottom:8px;
}

.copy-address {
  display:flex;
  align-items:center;
  gap:24px;
  padding:0;
  background:none;
  font-size:14px;
  letter-spacing:.8px;
  color:#e3e6df;
  max-width:100%;
  text-align:left;
}

.copy-address span {
  overflow-wrap:anywhere;
}

.copy-address svg {
  width:15px;
  height:15px;
  color:#a9b5b9;
}

.copy-address:hover svg {
  color:var(--gold);
}

.hero-caption {
  justify-self:end;
  gap:16px;
  text-align:right;
  text-shadow:0 2px 10px #000;
}

.hero-caption, .hero-caption-copy {
  display:flex;
  align-items:flex-end;
  flex-direction:column;
}

.server-status {
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0;
  padding:7px 12px;
  border:1px solid #a8b5bc50;
  border-radius:999px;
  background:#0b141ce8;
  color:#c8d2d7;
  font-size:13px;
  font-weight:650;
  font-variant-numeric:tabular-nums;
}

.server-address > .server-status {
  gap:10px;
  margin-top:12px;
  padding:8px 14px;
  font-size:clamp(18px, 2vw, 24px);
  font-weight:700;
}

.server-address > .server-status::before {
  width:10px;
  height:10px;
}

.server-status[data-state="online"] {
  border-color:#9acb9d65;
  color:#c4e6c6;
}

.server-status::before {
  content:"";
  width:8px;
  height:8px;
  flex-shrink:0;
  border-radius:50%;
  background:#8799a3;
}

.server-status[data-state="online"]::before {
  background:#9acb9d;
  box-shadow:0 0 8px #9acb9d40;
}

.hero-caption-copy>span:first-child {
  font-size:8px;
  letter-spacing:2.8px;
  color:#e8cda5;
}

.caption-line {
  height:1px;
  width:42px;
  background:#b89e78;
  margin:10px 0;
}

.hero-caption small {
  font-family:var(--serif);
  font-style:italic;
  color:#d9d5c7;
  font-size:15px;
}

.hero-caption .button {
  flex:none;
  text-shadow:none;
}

.hero-voice {
  display:flex;
  flex:none;
  flex-direction:column;
  align-items:stretch;
  gap:8px;
}

.hero-voice .server-status {
  justify-content:center;
  padding:5px 9px;
  font-size:11px;
  text-shadow:none;
}

.scroll-cue {
  position:absolute;
  bottom:49px;
  left:5.1%;
  display:flex;
  gap:20px;
  align-items:center;
  color:#9daeb7;
  font-size:10px;
  letter-spacing:.7px;
}

.scroll-cue>span:last-child {
  font-size:20px;
  color:var(--gold);
}

.join-section, .profile-tools-section {
  max-width:1600px;
  margin:auto;
  padding:80px 7.5% 90px;
  background:linear-gradient(180deg,#09131bf0,#09131bfa);
  border-top:1px solid #b5c4c415;
}

.section-intro {
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);
  align-items:center;
  gap:8%;
  margin-bottom:40px;
}

.section-intro h2 {
  font-size:48px;
  line-height:1.16;
  margin-bottom:0;
}

.join-intro-copy>p {
  color:var(--muted);
  font-size:14px;
  max-width:400px;
  margin:0;
}

.edition {
  display:inline-flex;
  flex-wrap:wrap;
  gap:12px;
  font-size:9px;
  letter-spacing:1px;
  color:#94a7b1;
  margin-top:20px;
}

.edition>span[aria-hidden] {
  color:#4f626d;
}

.whitelist-notice {
  margin:0 0 24px;
  padding:14px 18px;
  border-left:3px solid var(--gold);
  border-radius:0 6px 6px 0;
  background:rgba(229,182,116,.07);
  color:var(--muted);
  font-size:13px;
  line-height:1.75;
}
.whitelist-notice strong { color:var(--gold); }

.join-steps {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
  list-style:none;
  margin:0;
  padding:0;
}

.join-steps li {
  display:grid;
  grid-template-columns:30px minmax(0,1fr);
  gap:16px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(16,29,37,.55);
  padding:24px;
}

.join-steps li:first-child { grid-column:1 / -1; }
.step-content { min-width:0; }

.step-number {
  font-family:var(--serif);
  font-size:23px;
  line-height:1.5;
  color:var(--gold);
}

.join-steps h3 {
  font-size:18px;
  font-weight:500;
  margin:0 0 10px;
}

.join-steps p {
  color:#9dafb9;
  font-size:13px;
  line-height:1.85;
  margin:0;
}

.join-steps strong {
  color:#ccd4d7;
  font-weight:500;
  overflow-wrap:anywhere;
}

.text-link {
  color:var(--gold);
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:11px;
  margin-top:14px;
}

.text-link svg {
  width:14px;
  height:14px;
}

.text-link:hover {
  text-decoration:underline;
}

.join-steps .step-preview {
  font-size:10px;
  color:#81939c;
  margin-top:5px;
}

.launcher-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-top:24px;
}
.launcher-card {
  display:flex;
  flex-direction:column;
  min-width:0;
  padding:20px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#0c1821;
}
.launcher-format { color:var(--faint); font-size:9px; letter-spacing:1px; }
.launcher-card h4 { margin:8px 0 12px; font-size:17px; font-weight:500; }
.launcher-card .text-link { margin-top:auto; padding-top:20px; gap:8px; }
.join-steps .join-download-note { margin-top:16px; color:var(--muted); font-size:12px; }

.profile-tools-section {
  padding-top:64px;
}

.profile-tools-section>h2 {
  margin:0 0 28px;
  font-size:clamp(32px,4vw,48px);
  line-height:1.16;
}

.profile-guide {
  padding:28px clamp(18px, 3vw, 36px);
  border:1px solid #b5c4c42b;
  border-radius:6px;
  background:#14232b88;
  scroll-margin-top:24px;
  font-size:13px;
  line-height:1.8;
  color:var(--muted);
}

.profile-guide+.profile-guide { margin-top:24px; }
.profile-guide h3 { margin:0 0 10px; font-size:24px; color:var(--ink); }
.profile-guide h4 { margin:22px 0 8px; font-size:16px; color:var(--ink); }
.profile-guide p { margin:12px 0; }
.profile-guide ol { padding-left:22px; margin:18px 0 24px; }
.profile-guide h4+ol { margin-top:8px; }
.profile-guide :is(p, ol) { max-width:82ch; }
.profile-guide li { padding-left:6px; margin:12px 0; }
.profile-guide strong { color:#e4e8e1; font-weight:500; }
.profile-guide code { overflow-wrap:anywhere; font-size:.95em; }
.profile-guide a:not(.text-link) { color:var(--gold); text-decoration:underline; }
.profile-guide .text-link { font-size:inherit; margin:0; text-decoration:underline; }
.profile-guide details { border-top:1px solid #b5c4c42b; margin-top:20px; padding-top:18px; }
.profile-guide summary { color:var(--gold); cursor:pointer; }
.profile-guide summary:focus-visible { outline:2px solid var(--gold); outline-offset:5px; }
.upgrade-discovery { color:var(--muted); font-size:12px; line-height:1.7; margin:0 0 18px; }

.site-footer {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  position:relative;
  padding:21px 5.1% 110px;
  min-height:110px;
  max-width:1600px;
  margin:auto;
  background:#09131be8;
  border-top:1px solid #b5c4c415;
  font-size:10px;
  color:#8598a2;
}

.footer-meta {
  position:fixed;
  bottom:17px;
  right:3%;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  max-width:94%;
  gap:8px 18px;
}

.footer-versions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  max-width:100%;
  gap:10px;
}

.legal-notice {
  margin-left:auto;
  font-size:11px;
  white-space:nowrap;
  text-decoration:underline;
  text-underline-offset:3px;
}

.legal-notice:hover {
  color:var(--gold);
}

.version-badge {
  display:flex;
  align-items:center;
  gap:9px;
  letter-spacing:1.3px;
  font-size:8px;
  white-space:nowrap;
  padding:8px 12px;
  border-radius:4px;
  background:#0a151ee8;
  border:1px solid #b5c4c418;
  backdrop-filter:blur(8px);
}

.version-badge strong {
  font-size:10px;
  color:#d9dcd3;
  letter-spacing:.5px;
  font-weight:500;
}

.status-dot {
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--gold);
  box-shadow:0 0 8px #e5b67444;
}

body[data-page=mods] .scene {
  --scene-overlay:linear-gradient(#08121be8,#08121bf5);
}

.mods-main {
  max-width:1440px;
  padding:48px 5.7% 85px;
  margin:auto;
  min-height:calc(100svh - 181px);
}

.mods-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:30px;
  margin-bottom:33px;
}

.mods-heading h1 {
  font-size:59px;
  margin:0 0 17px;
}

.mods-heading .eyebrow {
  margin-bottom:18px;
}

.mods-heading p:not(.eyebrow) {
  color:#aebec6;
  font-size:13px;
  max-width:510px;
  margin-bottom:0;
}

.back-link {
  font-size:11px;
  color:#b0c0c8;
  white-space:nowrap;
  margin-bottom:4px;
}

.back-link:hover {
  color:var(--gold);
}

.inventory-notice {
  border:1px solid #caa86c26;
  border-radius:5px;
  background:#bd945809;
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 17px;
  font-size:10px;
  color:#bcbbaa;
  margin-bottom:27px;
}

.notice-symbol {
  font-size:17px;
  color:var(--gold);
}

.inventory-notice p {
  margin:0;
}

.inventory-time {
  margin-left:auto;
  color:#83949f;
  white-space:nowrap;
  font-size:9px;
}

.collection-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding-bottom:19px;
  border-bottom:1px solid var(--line);
}

.filter-tabs {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

.filter-tab {
  display:flex;
  align-items:center;
  gap:9px;
  background:transparent;
  color:#9aadb7;
  font-size:11px;
  border-radius:4px;
  padding:9px 12px;
  border:1px solid transparent;
  transition:color .2s,background .2s;
}

.filter-tab.active {
  color:var(--ink);
  border-color:#b7c4c522;
  background:#a8c6d00b;
}

.filter-tab:hover {
  color:var(--gold);
}

.filter-tab span {
  font-size:9px;
  border-radius:3px;
  background:#d6e6ee0c;
  padding:1px 6px;
  min-width:21px;
  text-align:center;
  color:#a9bcc8;
}

.filter-tab[data-filter=updates] span {
  background:#e5b67414;
  color:var(--gold);
}

.search-box {
  display:flex;
  align-items:center;
  gap:9px;
  min-width:240px;
  padding:8px 12px;
  border:1px solid #afc4ca24;
  border-radius:4px;
  background:#0c1821;
}

.search-box:focus-within {
  border-color:var(--gold);
}

.search-box svg {
  color:#839ba9;
  width:16px;
  height:16px;
}

.search-box input {
  background:none;
  border:0;
  outline:none;
  width:100%;
  font-size:11px;
  min-width:0;
}

.search-box input::placeholder {
  color:#7c929f;
}

.search-box input:focus-visible {
  outline:0;
}

.collection-meta {
  display:flex;
  justify-content:space-between;
  gap:20px;
  font-size:9px;
  color:#8297a4;
  padding:16px 0;
}

.collection-meta p {
  margin:0;
}

.readiness-filter {
  display:flex;
  align-items:center;
  gap:9px;
  white-space:nowrap;
  color:#9aadb7;
}

.readiness-filter select {
  color:var(--ink);
  background:#0c1821;
  border:1px solid #afc4ca35;
  border-radius:4px;
  padding:7px 10px;
  font:inherit;
  cursor:pointer;
}

.readiness-filter select:focus-visible {
  outline:2px solid var(--gold);
  outline-offset:2px;
}

.readiness-filter[hidden] { display:none; }

.upgrade-summary {
  margin:0 0 19px;
  padding:13px 16px;
  border:1px solid #caa86c55;
  border-radius:5px;
  background:#bd945812;
  color:#e0c58c;
  font-size:11px;
  line-height:1.6;
}

.upgrade-summary.blocked {
  border-color:#e48f8f66;
  background:#a73e3e1a;
  color:#f0b2b2;
}

.upgrade-summary.ready {
  border-color:#91c9a655;
  background:#3f89601a;
  color:#b0ddba;
}

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

.mod-card {
  padding:24px 22px 17px;
  background:linear-gradient(140deg,#13222cef,#0e1a24eb);
  border:1px solid #b9ced51a;
  border-radius:6px;
  min-width:0;
  display:flex;
  flex-direction:column;
  transition:border-color .2s,transform .2s;
}

.mod-card:hover {
  border-color:#d5b47d55;
  transform:translateY(-3px);
}

.mod-card.upgrade-blocked {
  border-color:#e48f8f88;
  background:linear-gradient(140deg,#2a1d27ef,#1c1720eb);
}

.mod-card.upgrade-ready { border-color:#91c9a677; }
.mod-card.upgrade-preview { border-color:#caa86c88; }
.mod-card.upgrade-review { border-color:#caa86c88; }
.mod-card.upgrade-unknown { border-color:#8fa6b077; }

.mod-card-top {
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:16px;
}

.mod-mark {
  width:43px;
  height:43px;
  border-radius:9px;
  background:#2d4052;
  color:#c5d3df;
  display:grid;
  place-items:center;
  font-family:var(--serif);
  font-size:19px;
  flex-shrink:0;
  border:1px solid #ffffff0a;
}

.tone-crimson {
  background:#472735;
  color:#ecb2b5;
}

.tone-moss {
  background:#2d4139;
  color:#b3d0ad;
}

.tone-ochre {
  background:#483b2a;
  color:#e0c58c;
}

.tone-teal {
  background:#23434a;
  color:#a4d6d9;
}

.tone-violet {
  background:#37334e;
  color:#c5b9ea;
}

.tone-clay {
  background:#47352c;
  color:#e1b795;
}

.mod-card h2 {
  font-family:var(--sans);
  font-size:14px;
  font-weight:550;
  letter-spacing:0;
  line-height:1.4;
  margin:0 0 3px;
  overflow-wrap:anywhere;
}

.mod-category {
  font-size:8px;
  letter-spacing:1.2px;
  text-transform:uppercase;
  color:#8da2af;
}

.mod-description {
  font-size:11px;
  line-height:1.8;
  color:#9db0bb;
  margin:0 0 21px;
  flex-grow:1;
  min-height:39px;
  overflow-wrap:anywhere;
}

.mod-versions {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  padding:14px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  margin:0 0 16px;
}

.mod-versions>div {
  min-width:0;
}

.mod-versions dt {
  color:#7d95a4;
  font-size:8px;
  letter-spacing:.7px;
  text-transform:uppercase;
  margin-bottom:5px;
}

.mod-versions dd {
  margin:0;
  color:#d0d9dc;
  font-size:11px;
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  overflow-wrap:anywhere;
}

.mod-check-note {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.mod-versions .available-version {
  color:var(--gold);
}

.mod-versions .ready-version { color:#b0ddba; }

.mod-card-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  flex-wrap:wrap;
}

.mod-links {
  display:flex;
  flex-wrap:wrap;
  gap:13px;
}

.mod-links a {
  display:flex;
  align-items:center;
  gap:4px;
  font-size:9px;
  color:#bbc9ce;
}

.mod-links a:hover {
  color:var(--gold);
}

.mod-links svg {
  width:11px;
  height:11px;
}

.mod-status {
  font-size:8px;
  color:#9cbcb0;
  white-space:nowrap;
}

.mod-status.update {
  color:var(--gold);
}

.mod-status.unchecked {
  color:#7d929e;
}

.mod-status.ready { color:#b0ddba; }
.mod-status.preview { color:var(--gold); }
.mod-status.review { color:var(--gold); }
.mod-status.blocked { color:#f0b2b2; }
.mod-status.unknown, .mod-status.checking { color:#a3b4bd; }

.mod-status::before {
  content:'•';
  margin-right:5px;
}

.collection-footnote {
  font-size:9px;
  color:#7e939f;
  line-height:1.8;
  margin:24px 0 0;
  max-width:650px;
}

.empty-state,.error-state {
  text-align:center;
  background:#13222c70;
  border:1px solid var(--line);
  border-radius:6px;
  padding:50px 20px;
}

.empty-state>span {
  font-size:37px;
  color:var(--gold);
}

.empty-state h2,.error-state h2 {
  font-size:28px;
  letter-spacing:-.5px;
  margin-bottom:9px;
}

.empty-state p,.error-state p {
  font-size:12px;
  color:var(--muted);
  margin-bottom:22px;
}

.button-outline {
  background:transparent;
  border:1px solid var(--line);
  color:var(--ink);
  font-size:11px;
  min-height:40px;
  padding:9px 16px;
}

.toast {
  position:fixed;
  left:50%;
  bottom:70px;
  transform:translate(-50%,20px);
  background:#e7bd84;
  color:#1b211f;
  padding:11px 20px;
  border-radius:5px;
  box-shadow:0 8px 30px #0006;
  font-size:12px;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s,transform .2s;
  max-width:calc(100% - 32px);
  width:max-content;
  z-index:10;
}

.toast.visible {
  opacity:1;
  transform:translate(-50%,0);
}

.clipboard-field {
  position:fixed;
  top:-9999px;
  left:-9999px;
}

.skip-link {
  position:fixed;
  left:16px;
  top:-100px;
  z-index:20;
  background:var(--gold);
  color:#111c25;
  padding:12px 18px;
}

.skip-link:focus {
  top:12px;
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.noscript-note {
  text-align:center;
  background:#332a1c;
  padding:15px;
  margin:0;
  font-size:12px;
}

@media(min-width:1700px) {
  .scene {
    --scene-position-y:65%;
  }
  .hero {
    min-height:850px;
  }
}

@media(max-width:1100px) {
  .hero {
    padding-top:60px;
  }
  .hero-content {
    max-width:550px;
  }
  .hero h1 {
    font-size:70px;
  }
  .mod-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .mods-heading {
    align-items:flex-start;
  }
  .mods-heading h1 {
    font-size:52px;
  }
  .join-section, .profile-tools-section {
    padding-left:5.1%;
    padding-right:5.1%;
  }
  .section-intro h2 {
    font-size:42px;
  }
}

@media(min-width:761px) and (max-height:800px) {
  .hero {
    padding-top:28px;
  }
}

@media(max-width:760px) {
  .site-header {
    height:97px;
    padding:0 6%;
    gap:16px;
    align-items:center;
  }
  .brand {
    gap:8px;
  }
  .brand>span {
    font-size:21px;
    letter-spacing:2px;
  }
  .brand>svg {
    width:30px;
    height:30px;
  }
  .brand small {
    font-size:6px;
    letter-spacing:1.45px;
    margin-top:6px;
  }
  nav {
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:0 20px;
    font-size:11px;
  }
  nav a:first-child {
    display:none;
  }
  .scene {
    --scene-position-x:64%;
    --scene-overlay:linear-gradient(90deg,#06111ce8,#06111c8c),linear-gradient(0deg,#09131b 0%,#09131b00 65%);
  }
  .hero {
    padding:61px 6% 100px;
    min-height:calc(100svh - 97px);
    grid-template-columns:minmax(0,1fr);
  }
  .hero-content {
    max-width:520px;
  }
  .hero-caption {
    flex-direction:row;
    align-items:center;
    max-width:100%;
  }
  .hero-caption-copy>span:first-child {
    letter-spacing:1.5px;
  }
  .eyebrow {
    font-size:8px;
    letter-spacing:1.8px;
    margin-bottom:22px;
  }
  .hero h1 {
    font-size:clamp(49px,8.5vw,66px);
    letter-spacing:-1.8px;
  }
  .hero-description {
    font-size:13px;
    max-width:380px;
    margin-bottom:16px;
  }
  .button {
    min-height:47px;
    font-size:11px;
    padding:12px 17px;
    gap:10px;
  }
  .hero-actions {
    gap:10px;
  }
  .scroll-cue {
    bottom:39px;
    left:6%;
  }
  .join-section, .profile-tools-section {
    padding:66px 6% 65px;
  }
  .section-intro { grid-template-columns:1fr; gap:20px; margin-bottom:28px; }
  .join-steps { grid-template-columns:1fr; gap:16px; }
  .launcher-grid { grid-template-columns:1fr; }
  .section-intro h2 {
    font-size:38px;
    letter-spacing:-1px;
  }
  .edition {
    margin-top:10px;
  }
  .join-steps li {
    gap:12px;
    padding:20px;
  }
  .site-footer {
    padding:20px 6% 110px;
    flex-wrap:wrap;
    gap:9px;
  }
  body[data-page=home] .site-footer {
    padding-bottom:20px;
  }
  body[data-page=home] .footer-meta {
    position:static;
    flex-basis:100%;
    max-width:100%;
  }
  .footer-minecraft {
    display:none;
  }
  .mods-main {
    padding:31px 6% 60px;
  }
  .mods-heading {
    display:block;
    margin-bottom:24px;
  }
  .mods-heading h1 {
    font-size:45px;
    letter-spacing:-1.6px;
  }
  .mods-heading p:not(.eyebrow) {
    font-size:12px;
  }
  .back-link {
    display:inline-block;
    margin-top:21px;
  }
  .inventory-notice {
    gap:10px;
    align-items:flex-start;
    flex-wrap:wrap;
    font-size:9px;
    padding:11px 13px;
  }
  .inventory-notice p {
    flex:1;
  }
  .inventory-time {
    width:100%;
    margin-left:27px;
  }
  .collection-toolbar {
    flex-wrap:wrap;
    gap:16px;
  }
  .search-box {
    width:100%;
    padding:10px 13px;
  }
  .search-box input {
    font-size:13px;
  }
  .filter-tab {
    font-size:10px;
    padding:8px 10px;
  }
  .collection-meta>span {
    display:none;
  }
  .collection-meta {
    align-items:center;
    flex-wrap:wrap;
  }
  .mod-grid {
    gap:13px;
  }
  .mod-card {
    padding:19px 16px 15px;
  }
  .mod-card-bottom {
    gap:10px;
  }
  .mod-card h2 {
    font-size:13px;
  }
  .mod-mark {
    width:37px;
    height:37px;
  }
  .mod-links {
    gap:11px;
  }
}

@media(max-width:520px) {
  .mod-grid {
    grid-template-columns:1fr;
  }
  .mod-description {
    min-height:0;
    font-size:12px;
  }
  .mod-card {
    padding:23px 21px 19px;
  }
  .mod-card h2 {
    font-size:15px;
  }
  .mod-mark {
    width:43px;
    height:43px;
  }
  .mod-versions dd {
    font-size:12px;
  }
  .mod-links a {
    font-size:10px;
  }
  .mod-status {
    font-size:9px;
  }
  .hero {
    padding-top:45px;
  }
  .hero h1 {
    font-size:49px;
  }
  .brand small {
    display:none;
  }
  .brand>span {
    font-size:19px;
  }
  .brand>svg {
    width:26px;
    height:26px;
  }
  nav {
    gap:0 14px;
    font-size:10px;
  }
  .hero-description {
    max-width:330px;
  }
  .version-badge {
    font-size:7px;
    gap:6px;
    padding:7px 8px;
    letter-spacing:.7px;
  }
  .footer-note {
    font-size:9px;
  }
  .version-badge strong {
    font-size:9px;
  }
  .footer-meta {
    bottom:12px;
    right:4%;
    max-width:92%;
    gap:8px 12px;
  }
  .footer-versions {
    gap:8px;
  }
  .site-footer {
    min-height:160px;
  }
  .toast {
    bottom:140px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
  *,*::before,*::after {
    transition:none!important;
  }
}

/* Dependency explorer */
.dependency-toolbar { display:flex; flex-wrap:wrap; gap:1rem; margin:1rem 0; }
.dependency-toolbar label { display:grid; gap:.5rem; flex:1; min-width:200px; font-size:.85rem; color:var(--muted); }
.dependency-toolbar select { width:100%; padding:.8rem; border:1px solid #40505b; border-radius:8px; background:#14212a; color:#eee6d5; font:inherit; }
.dependency-note { color:var(--muted); line-height:1.7; font-size:.88rem; }
.dependency-status { font-size:.9rem; margin:1rem 0; color:#d6ba83; }
.dependency-canvas { overflow:auto; max-height:650px; border:1px solid #34414a; border-radius:14px; background:rgba(9,19,27,.75); }
.dependency-canvas svg { display:block; min-width:900px; width:100%; height:auto; }
.dependency-edge { fill:none; stroke:#8c9b9e; stroke-width:1.5; color:#8c9b9e; }
.dependency-node { cursor:pointer; }
.dependency-node rect { fill:#172a34; stroke:#607681; stroke-width:1.3; }
.dependency-node.bundled rect { fill:#1b302c; stroke:#719c85; }
.dependency-node.runtime rect { fill:#2a2535; stroke:#9985b6; }
.dependency-node.external rect { fill:#322324; stroke:#d08c7b; stroke-dasharray:5 4; }
.dependency-node.selected rect, .dependency-node:hover rect, .dependency-node:focus rect { stroke:#e5bf78; stroke-width:2.5; }
.dependency-name { fill:#eee6d5; font:14px system-ui,sans-serif; }
.dependency-kind { fill:#b2bec0; font:11px system-ui,sans-serif; }
.dependency-heading { fill:#a9b5b9; font:10px system-ui,sans-serif; letter-spacing:1px; }
.dependency-details { padding:1.5rem 0; }
.dependency-details h2 { font-size:1.3rem; }
.dependency-rules { padding-left:1.2rem; color:#c4cece; font-size:.85rem; line-height:2; overflow-wrap:anywhere; }

.server-verification {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  align-items: center;
  gap: 32px;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 20, 28, 0.55);
}
.server-verification h3 { margin: 0 0 0.5rem; font-size: 16px; font-weight: 500; color: var(--gold); }
.server-verification p { margin: 0; font-size: 13px; color: #9dafb9; }
.fingerprint-value {
  display: block;
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: #ccd4d7;
  overflow-wrap: anywhere;
  user-select: all;
}
.fingerprint-copy {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.fingerprint-copy:hover { border-color: var(--gold); }

@media(max-width:760px) {
  .server-verification { grid-template-columns:1fr; gap:16px; padding:20px; }
}
