/* Play Minecraft Now: Stormy Lagoon / Keepfall PvP / Keeprise PvE / NoBSCraft */

@property --b1 { syntax: '<number>'; inherits: true; initial-value: 25; }
@property --b2 { syntax: '<number>'; inherits: true; initial-value: 50; }
@property --b3 { syntax: '<number>'; inherits: true; initial-value: 75; }

:root {
  color-scheme: dark;
  --bg: #101319;
  --gold: #d6a95e;
  --gold2: #f0ca80;
  --cream: #eee7d6;
  --muted: #b9bcb6;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pixel: 'Pixelify Sans', var(--sans);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }

html, body { width: 100%; height: 100%; margin: 0; background: var(--bg); }

html { scroll-behavior: smooth; }
body {
  overflow-x: hidden;
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ------------------------------------------------------------------ panels */

.portal {
  --b1: 25; --b2: 50; --b3: 75;
  --s: 4;                         /* how far each divider leans, in % of width */
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 420px;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
  transition: --b1 .9s var(--ease), --b2 .9s var(--ease), --b3 .9s var(--ease);
}

.panel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
/* each panel knows its own left and right edge (measured at mid height) */
.panel--stormy { --L: 0;          --R: var(--b1);
  clip-path: polygon(0 0, calc((var(--b1) + var(--s)) * 1%) 0, calc((var(--b1) - var(--s)) * 1%) 100%, 0 100%); }
.panel--fall   { --L: var(--b1); --R: var(--b2);
  clip-path: polygon(calc((var(--b1) + var(--s)) * 1%) 0, calc((var(--b2) + var(--s)) * 1%) 0, calc((var(--b2) - var(--s)) * 1%) 100%, calc((var(--b1) - var(--s)) * 1%) 100%); }
.panel--rise   { --L: var(--b2); --R: var(--b3);
  clip-path: polygon(calc((var(--b2) + var(--s)) * 1%) 0, calc((var(--b3) + var(--s)) * 1%) 0, calc((var(--b3) - var(--s)) * 1%) 100%, calc((var(--b2) - var(--s)) * 1%) 100%); }
.panel--nobs   { --L: var(--b3); --R: 100;
  clip-path: polygon(calc((var(--b3) + var(--s)) * 1%) 0, 100% 0, 100% 100%, calc((var(--b3) - var(--s)) * 1%) 100%); }

.panel__hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

.panel__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  transition: filter .8s ease;
}
.panel__scene { background: #1b2530; }

/* readability shading, centred on each panel's words */
.panel__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse calc((var(--R) - var(--L)) * .62%) 40% at calc((var(--L) + var(--R)) / 2 * 1%) 44%, rgba(8, 10, 14, .6), transparent 78%),
    linear-gradient(180deg, rgba(8, 10, 14, .5) 0%, transparent 17%, transparent 76%, rgba(8, 10, 14, .76) 100%);
}
/* hover: the panel you point at widens, the rest step back */
.portal[data-hover] .panel__content { opacity: .5; }
.portal[data-hover] .panel__scene { filter: saturate(.55) brightness(.6); }
.portal[data-hover="stormy"] .panel--stormy .panel__content,
.portal[data-hover="fall"] .panel--fall .panel__content,
.portal[data-hover="rise"] .panel--rise .panel__content,
.portal[data-hover="nobs"] .panel--nobs .panel__content { opacity: 1; }
.portal[data-hover="stormy"] .panel--stormy .panel__scene,
.portal[data-hover="fall"] .panel--fall .panel__scene,
.portal[data-hover="rise"] .panel--rise .panel__scene,
.portal[data-hover="nobs"] .panel--nobs .panel__scene { filter: none; }

/* ------------------------------------------------------------------ content */

.panel__content {
  position: absolute;
  top: 41%;
  /* the dividers lean, so nudge to the middle of the panel at this height */
  left: calc((var(--L) + var(--R)) / 2 * 1% + var(--s) * .18%);
  width: min(calc((var(--R) - var(--L)) * 1% - 2.6vw), 380px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.5vh, 18px);
  text-align: center;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
  transition: opacity .6s ease;
}
.panel__content .panel__actions { pointer-events: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px 6px;
  border-radius: 3px;
  font-family: var(--pixel);
  font-weight: 700;
  font-size: clamp(10px, .72vw, 13px);
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(10, 12, 16, .55);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.eyebrow { color: var(--gold2); }
.eyebrow__dot {
  width: 6px; height: 6px;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: pulse 2.4s ease-in-out infinite;
}

.panel__logo { margin: 0; line-height: 0; }
.wordmark {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 34px);
  letter-spacing: .16em;
  line-height: 1.05;
  white-space: nowrap;
  color: var(--cream);
  text-shadow: 0 4px 18px rgba(0, 0, 0, .75), 0 1px 2px rgba(0, 0, 0, .8);
  animation: float 7s ease-in-out infinite;
  user-select: none;
}
.wordmark::after {
  content: '';
  display: block;
  width: 42px;
  height: 2px;
  margin: .42em auto 0;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(214, 169, 94, .6);
}
.panel--fall .wordmark { animation-delay: -1.7s; }
.panel--rise .wordmark { animation-delay: -3.5s; }
.panel--nobs .wordmark { animation-delay: -5.2s; }

.panel__tag {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(18px, 1.55vw, 28px);
  line-height: 1.15;
  color: var(--cream);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .85);
}
.panel__tag em { font-style: italic; color: var(--gold2); }

.panel__points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.panel__points li {
  font-size: clamp(10px, .66vw, 12px);
  font-weight: 650;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 4px 8px;
  color: rgba(238, 231, 214, .86);
  background: rgba(10, 12, 16, .5);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 2px;
}

.panel__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: min(100%, 300px);
  margin-top: 2px;
}

.panel__buttons {
  display: flex;
  gap: 8px;
}
.panel__buttons .enter { flex: 1; min-width: 0; }

.discord {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  font-size: clamp(11px, .76vw, 13px);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(180deg, #7480f7, #5865f2);
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 10px 30px rgba(0, 0, 0, .4), inset 0 -3px 0 rgba(0, 0, 0, .2);
  transition: transform .25s var(--ease), filter .25s ease;
  outline: none;
}
.discord:hover, .discord:focus-visible { transform: translateY(-2px); filter: brightness(1.1); }
.discord:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.discord__icon { width: 14px; height: 14px; flex: none; }
.discord__icon path:last-child { fill: #5865f2; }

.enter {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5em;
  padding: 13px 16px;
  font-size: clamp(11px, .76vw, 13px);
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #1b1d1c;
  background: linear-gradient(180deg, var(--gold2), var(--gold));
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 10px 30px rgba(0, 0, 0, .45), inset 0 -3px 0 rgba(0, 0, 0, .18);
  transition: transform .25s var(--ease), box-shadow .25s ease, filter .25s ease;
  outline: none;
}
.enter__name { display: none; }
.enter__arrow { transition: transform .3s var(--ease); }
.panel:hover .enter,
.enter:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 14px 38px rgba(0, 0, 0, .5), 0 0 26px rgba(240, 202, 128, .35), inset 0 -3px 0 rgba(0, 0, 0, .18);
}
.panel:hover .enter__arrow,
.enter:focus-visible .enter__arrow { transform: translateX(4px); }
.enter:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; }

.ip {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 10px;
  align-items: center;
  padding: 6px 10px 6px 12px;
  text-align: left;
  background: rgba(10, 12, 16, .66);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 3px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color .2s ease, background .2s ease;
}
.ip:hover, .ip:focus-visible { border-color: rgba(240, 202, 128, .6); background: rgba(10, 12, 16, .82); }
.ip:focus-visible { outline: 2px solid var(--gold2); outline-offset: 3px; }
.ip__status {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.ip__status i { width: 6px; height: 6px; background: #777; }
.ip__status.is-online i { background: #7ee07a; box-shadow: 0 0 8px #7ee07a; animation: pulse 2s ease-in-out infinite; }
.ip__status.is-online b { color: #bfeab8; }
.ip__status b { font-weight: 700; }
.ip__addr {
  grid-column: 1;
  font-family: var(--pixel);
  font-weight: 700;
  font-size: clamp(13px, .9vw, 16px);
  letter-spacing: .02em;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ip__copy {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 0 6px 10px;
  border-left: 1px solid rgba(255, 255, 255, .14);
  color: var(--gold2);
}

/* the season line under the two live scenes */
.season {
  position: absolute;
  bottom: calc(66px + env(safe-area-inset-bottom));
  left: calc((var(--L) + var(--R)) / 2 * 1% - var(--s) * .72%);
  transform: translateX(-50%);
  width: calc((var(--R) - var(--L)) * 1% - 3vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  z-index: 3;
  pointer-events: none;
  transition: opacity .5s ease;
}
.panel--stormy .season, .panel--nobs .season {
  left: calc((var(--L) + var(--R)) / 2 * 1% - var(--s) * .4%);
  width: calc((var(--R) - var(--L)) * 1% - 2vw);
}
.season.is-changing { opacity: 0; }
.season__name {
  font-family: var(--pixel);
  font-weight: 700;
  font-size: clamp(12px, .85vw, 15px);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold2);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .9);
}
.season__name.is-blood { color: #ff7a66; text-shadow: 0 0 12px rgba(255, 70, 56, .6); }
.season__line {
  font-size: clamp(11px, .74vw, 13px);
  color: rgba(238, 231, 214, .78);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .9);
}

/* ------------------------------------------------------------------ dividers */

.divider {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(240, 202, 128, .95), rgba(255, 244, 214, .9) 50%, rgba(240, 202, 128, .95));
  clip-path: polygon(
    calc((var(--b) + var(--s)) * 1% - 1.5px) 0,
    calc((var(--b) + var(--s)) * 1% + 1.5px) 0,
    calc((var(--b) - var(--s)) * 1% + 1.5px) 100%,
    calc((var(--b) - var(--s)) * 1% - 1.5px) 100%);
  filter: drop-shadow(0 0 8px rgba(240, 202, 128, .7));
}
.divider--1 { --b: var(--b1); }
.divider--2 { --b: var(--b2); }
.divider--3 { --b: var(--b3); }

/* Keepfall and Keeprise are sisters: mark the line between them */
.sisters {
  position: absolute;
  top: 70%;
  left: calc((var(--b2) - var(--s) * .4) * 1%);
  z-index: 6;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 9px 8px;
  font-family: var(--pixel);
  font-weight: 700;
  letter-spacing: .1em;
  background: rgba(10, 12, 16, .88);
  border: 1px solid rgba(240, 202, 128, .55);
  border-radius: 3px;
  box-shadow: 0 0 0 4px rgba(10, 12, 16, .3), 0 0 26px rgba(240, 202, 128, .22);
  pointer-events: none;
  transition: opacity .4s ease;
}
.portal[data-hover] .sisters { opacity: 0; }
.sisters__pvp { color: #f2a493; font-size: 13px; }
.sisters__pve { color: #c4e6a2; font-size: 13px; }
.sisters__amp { color: rgba(238, 231, 214, .55); font-size: 8px; text-transform: uppercase; letter-spacing: .2em; }

/* ------------------------------------------------------------------ bars */

.topbar {
  position: absolute;
  top: calc(20px + env(safe-area-inset-top));
  left: 50%;
  z-index: 6;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
}
.topbar__brand {
  font-family: var(--pixel);
  font-weight: 700;
  font-size: clamp(13px, .95vw, 17px);
  letter-spacing: .26em;
  text-transform: uppercase;
  padding: 8px 16px 9px;
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  background: rgba(10, 12, 16, .76);
  border: 1px solid rgba(240, 202, 128, .4);
  border-radius: 3px;
  color: var(--gold2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.topbar__ask {
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(238, 231, 214, .82);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .95);
}

.bottombar {
  position: absolute;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 6;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(238, 231, 214, .78);
  background: rgba(10, 12, 16, .7);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 3px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.bottombar__guide { color: var(--gold2); font-weight: 700; transition: color .2s ease; }
.bottombar__guide:hover, .bottombar__guide:focus-visible { color: var(--cream); }
.bottombar__guide:focus-visible { outline: 2px solid var(--gold2); outline-offset: 4px; }
.bottombar__sep { color: var(--gold); font-size: 8px; }
.bottombar__legal { color: rgba(238, 231, 214, .5); }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(70px + env(safe-area-inset-bottom));
  z-index: 10;
  transform: translate(-50%, 16px);
  padding: 10px 16px;
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 15px;
  color: #1b1d1c;
  background: var(--gold2);
  border-radius: 3px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .35s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.grain {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 190 190' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.36'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ entrance */

.panel__content, .season, .topbar, .bottombar, .sisters { animation: rise-in 1s var(--ease) both; }
.panel--fall .panel__content { animation-delay: .08s; }
.panel--rise .panel__content { animation-delay: .16s; }
.panel--nobs .panel__content { animation-delay: .24s; }
.topbar { animation-delay: .3s; }
.sisters { animation-delay: .45s; }
.bottombar { animation-delay: .5s; }
.season { animation-delay: .6s; }

@keyframes rise-in { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ------------------------------------------------------------------ narrower landscape screens */

@media (min-aspect-ratio: 1/1) and (max-width: 1350px) {
  .panel__points { display: none; }
}
@media (min-aspect-ratio: 1/1) and (max-width: 1180px) {
  .enter__name, .ip__copy, .eyebrow__dot, .discord__label { display: none; }
  /* taglines may wrap here: give every panel room for two lines so all four stay level */
  .panel__tag { min-height: 2.3em; display: flex; align-items: center; justify-content: center; }
  .discord { padding: 0 12px; }
  .ip { grid-template-columns: 1fr; }
  .bottombar__legal, .bottombar__sep--legal { display: none; }
  .season__line { display: none; }
  .eyebrow { font-size: 10px; letter-spacing: .08em; padding: 4px 8px; }
}
@media (min-aspect-ratio: 1/1) and (max-width: 900px) {
  .eyebrow, .ip__status { display: none; }
  .panel__tag { font-size: 17px; }
}

/* short landscape phones */
@media (min-aspect-ratio: 1/1) and (max-height: 520px) {
  .panel__content { top: 52%; gap: 8px; }
  .panel__points, .eyebrow, .topbar__ask, .panel__tag, .ip__status { display: none; }
  .enter { padding: 9px 10px; }
  .wordmark { font-size: 20px; }
  .season, .bottombar, .sisters { display: none; }
  .topbar { top: 8px; }
  .topbar__brand { font-size: 11px; padding: 5px 10px; }
}

/* ------------------------------------------------------------------ portrait: four bands */

@media (max-aspect-ratio: 1/1) {
  .portal { --s: 3; transition: none; }

  .panel--stormy { clip-path: polygon(0 0, 100% 0, 100% calc((var(--b1) - var(--s)) * 1%), 0 calc((var(--b1) + var(--s)) * 1%)); }
  .panel--fall   { clip-path: polygon(0 calc((var(--b1) + var(--s)) * 1%), 100% calc((var(--b1) - var(--s)) * 1%), 100% calc((var(--b2) - var(--s)) * 1%), 0 calc((var(--b2) + var(--s)) * 1%)); }
  .panel--rise   { clip-path: polygon(0 calc((var(--b2) + var(--s)) * 1%), 100% calc((var(--b2) - var(--s)) * 1%), 100% calc((var(--b3) - var(--s)) * 1%), 0 calc((var(--b3) + var(--s)) * 1%)); }
  .panel--nobs   { clip-path: polygon(0 calc((var(--b3) + var(--s)) * 1%), 100% calc((var(--b3) - var(--s)) * 1%), 100% 100%, 0 100%); }

  .divider {
    background: linear-gradient(90deg, rgba(240, 202, 128, .95), rgba(255, 244, 214, .9) 50%, rgba(240, 202, 128, .95));
    clip-path: polygon(
      0 calc((var(--b) + var(--s)) * 1% - 1.5px),
      100% calc((var(--b) - var(--s)) * 1% - 1.5px),
      100% calc((var(--b) - var(--s)) * 1% + 1.5px),
      0 calc((var(--b) + var(--s)) * 1% + 1.5px));
  }

  /* each picture fills just its own band */
  .panel__scene {
    top: calc((var(--L) - var(--s)) * 1%);
    height: calc((var(--R) - var(--L) + var(--s) * 2) * 1%);
    bottom: auto;
  }

  .panel__shade, .panel--stormy .panel__shade, .panel--nobs .panel__shade {
    background: linear-gradient(90deg, rgba(8, 10, 14, .8) 0%, rgba(8, 10, 14, .5) 46%, transparent 74%);
  }

  .panel__content {
    top: calc((var(--L) + var(--R)) / 2 * 1%);
    left: max(5vw, env(safe-area-inset-left));
    width: min(62vw, 300px);
    align-items: flex-start;
    text-align: left;
    gap: 7px;
    transform: translateY(-50%);
  }
  .panel--stormy .panel__content { top: calc((var(--L) + var(--R)) / 2 * 1% + 1.2%); }
    .eyebrow, .panel__tag, .panel__points, .season, .bottombar, .topbar { display: none; }
  .wordmark { font-size: 24px; }
  .wordmark::after { margin-left: 0; width: 30px; }
  .discord { padding: 0 11px; font-size: 11px; }
  .panel__actions { width: min(66vw, 260px); gap: 6px; }
  .enter { padding: 10px 12px; font-size: 11px; letter-spacing: .1em; justify-content: flex-start; }
  .ip { padding: 4px 8px 4px 10px; }
  .ip__addr { font-size: 13px; }
  .ip__copy { font-size: 8px; padding-left: 8px; }

  .sisters {
    top: 50%;
    left: auto;
    right: max(4vw, env(safe-area-inset-right));
    transform: translateY(-50%);
    flex-direction: row;
    gap: 6px;
    padding: 5px 9px;
  }
  .sisters__pvp, .sisters__pve { font-size: 11px; }
  .toast { bottom: auto; top: 50%; }
}

@media (max-aspect-ratio: 1/1) and (max-width: 380px) {
  .ip__addr { font-size: 12px; }
}

@media (max-aspect-ratio: 1/1) and (max-height: 720px) {
  .ip__status { display: none; }
}

/* ------------------------------------------------------------------ motion */

@media (prefers-reduced-motion: reduce) {
  .portal { transition: none; }
  .panel__content, .season, .topbar, .bottombar, .sisters, .wordmark, .eyebrow__dot, .ip__status i { animation: none !important; }
  .panel__scene { transition: none; }
}

/* ------------------------------------------------------------------ server guide (below the portal) */

.guide {
  position: relative;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(214, 169, 94, .08), transparent 70%),
    linear-gradient(180deg, #101319, #0c0f14);
  border-top: 1px solid rgba(240, 202, 128, .35);
  padding: clamp(56px, 8vw, 110px) 0 48px;
}
.guide__inner { width: min(calc(100% - 48px), 1240px); margin: 0 auto; }
.guide__head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.guide__kicker, .server__kicker {
  margin: 0 0 12px;
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold2);
}
.guide h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.12;
  color: var(--cream);
}
.guide__lede { margin: 0; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.65; color: rgba(238, 231, 214, .78); }

.servers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.server {
  display: flex;
  flex-direction: column;
  padding: 26px 22px 22px;
  background: linear-gradient(180deg, rgba(27, 34, 39, .9), rgba(20, 25, 30, .9));
  border: 1px solid rgba(255, 255, 255, .08);
  border-top: 2px solid var(--gold);
  border-radius: 4px;
  scroll-margin-top: 24px;
}
.server__name {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream);
}
.server p:not(.server__kicker) { margin: 0 0 12px; font-size: 15px; line-height: 1.65; color: rgba(238, 231, 214, .78); }
.server__features { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 20px; padding: 0; list-style: none; }
.server__features li {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 4px 8px;
  color: rgba(238, 231, 214, .86);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 2px;
}
.server__join { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.server__links { display: flex; flex-direction: column; gap: 8px; }
.server__links .enter, .server__links .discord { padding: 12px 10px; font-size: 11px; letter-spacing: .1em; }
.server .ip__status b { color: var(--muted); }

.join, .faq { max-width: 860px; margin: clamp(56px, 7vw, 90px) auto 0; }
.join h2, .faq h2 { text-align: center; }
.join__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.join__col { padding: 22px 24px; background: rgba(27, 34, 39, .7); border: 1px solid rgba(255, 255, 255, .08); border-radius: 4px; }
.join__col h3 { margin: 0 0 10px; font-family: var(--pixel); font-size: 16px; letter-spacing: .08em; color: var(--gold2); }
.join__col ol { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.8; color: rgba(238, 231, 214, .82); }

.faq__item { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.faq__item:first-of-type { margin-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); }
.faq__item summary {
  position: relative;
  padding: 18px 36px 18px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--cream);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font-family: var(--pixel); font-size: 22px; color: var(--gold2); }
.faq__item[open] summary::after { content: '−'; }
.faq__item summary:focus-visible { outline: 2px solid var(--gold2); outline-offset: 4px; }
.faq__item p { margin: 0 0 18px; font-size: 15px; line-height: 1.7; color: rgba(238, 231, 214, .78); }

.guide__foot { margin-top: clamp(56px, 7vw, 90px); text-align: center; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(238, 231, 214, .55); }
.guide__foot p { margin: 6px 0; }
.guide__legal { letter-spacing: .06em; text-transform: none; color: rgba(238, 231, 214, .4); }

@media (max-width: 1100px) { .servers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .servers, .join__cols { grid-template-columns: 1fr; }
  .guide__inner { width: calc(100% - 32px); }
}
.guide .ip { grid-template-columns: 1fr auto; padding: 7px 10px 7px 12px; }
.guide .ip__copy { display: block; }
.guide .ip__status { display: flex; }
.guide .enter { justify-content: center; }

.guide__guides p { margin: 0 0 18px; font-size: 12px; letter-spacing: .08em; text-transform: none; line-height: 2; }
.guide__guides a { color: rgba(238, 231, 214, .7); }
.guide__guides a:hover, .guide__guides a:focus-visible { color: var(--gold2); }
