:root {
  color-scheme: dark;
  --bg: #101811;
  --panel: #18231a;
  --panel-light: #202e21;
  --text: #f2f0df;
  --muted: #a4ad98;
  --gold: #f5ae47;
  --gold-light: #ffd277;
  --line: rgba(238, 227, 190, .14);
  --pixel: "DM Mono", monospace;
  --body: "Nunito", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 5px 5px;
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 1rem;
  padding: .6rem 1rem;
  background: var(--gold-light);
  color: #1a170f;
}

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  min-height: 86px;
  margin: auto;
  padding: 12px 32px;
  border-bottom: 1px solid var(--line);
}
.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: .91rem;
  font-weight: 900;
  letter-spacing: .07em;
}
.brand img { width: 49px; height: 49px; object-fit: cover; border-radius: 50%; }
.brand b, .footer-brand b { color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 31px; }
.site-nav a { color: var(--muted); font-size: .94rem; font-weight: 800; transition: color .15s ease; }
.site-nav a:hover, .site-nav a.active { color: var(--text); }
.site-nav a.active::after { display: block; width: 5px; height: 5px; margin: 2px auto -7px; background: var(--gold); content: ""; }
.mobile-join-link { display: none; }
.header-join {
  padding: 9px 16px;
  border: 1px solid rgba(245,174,71,.55);
  color: var(--gold-light);
  font-size: .87rem;
  font-weight: 900;
}
.header-join span { margin-left: 5px; }
.header-discord {
  padding: 9px 14px;
  border: 1px solid rgba(151, 119, 255, .55);
  background: rgba(111, 78, 205, .13);
  color: #d1c2ff;
  font-size: .87rem;
  font-weight: 900;
}
.header-discord span, .footer-discord span { margin-left: 5px; }
.menu-toggle { display: none; }
.mobile-discord-link { display: none; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  align-items: center;
  gap: 36px;
  max-width: 1240px;
  min-height: 560px;
  margin: auto;
  padding: 58px 56px 64px;
  overflow: hidden;
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font: 500 .7rem/1.5 var(--pixel);
  letter-spacing: .13em;
}
.status-dot { display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 0; border-radius: 50%; background: #8fca6d; box-shadow: 0 0 12px #8fca6d; }
h1, h2, p { margin-top: 0; }
.hero h1, .page-heading h1 {
  margin-bottom: 20px;
  font-size: clamp(3.4rem, 6vw, 5.65rem);
  font-weight: 900;
  letter-spacing: -.07em;
  line-height: .99;
}
.hero h1 span, .page-heading h1 span { color: var(--gold-light); }
.hero-intro { max-width: 440px; margin-bottom: 27px; color: #c2c8b8; font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 47px;
  padding: 10px 17px;
  font-size: .92rem;
  font-weight: 900;
  transition: transform .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { border: 1px solid #ffd17b; background: var(--gold); color: #24180a; box-shadow: 0 4px 0 #9c5e20; }
.button-primary:hover { background: var(--gold-light); }
.button-secondary { border: 1px solid var(--line); background: rgba(255,255,255,.035); }
.button-secondary:hover { background: rgba(255,255,255,.09); }
.hero-note { margin-top: 31px; color: var(--muted); font: .73rem var(--pixel); }
.hero-note span { padding-right: 7px; color: var(--gold); }
.hero-art { position: relative; max-width: 520px; margin: auto; }
.art-frame {
  padding: 9px;
  border: 1px solid rgba(246,177,74,.52);
  background: linear-gradient(145deg, rgba(245,174,71,.16), rgba(29,44,29,.65));
  box-shadow: 12px 12px 0 rgba(0,0,0,.19), 0 0 65px rgba(245,174,71,.1);
  transform: rotate(1.4deg);
}
.art-frame img { display: block; width: 100%; height: auto; }
.art-tag {
  position: absolute;
  right: -15px;
  bottom: 18px;
  padding: 9px 12px;
  border: 1px solid rgba(245,174,71,.55);
  background: #172119;
  color: var(--gold-light);
  font: .61rem var(--pixel);
  letter-spacing: .08em;
}
.art-tag span { padding-right: 6px; }
.pixel { position: absolute; width: 13px; height: 13px; background: var(--gold); opacity: .65; box-shadow: 13px 0 #779252, 0 13px #779252; }
.pixel-one { top: 90px; left: 27px; }
.pixel-two { right: 40px; bottom: 58px; transform: scale(.65); }

.join-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 1128px;
  margin: 0 auto;
  padding: 29px 32px;
  border: 1px solid rgba(245,174,71,.34);
  background: linear-gradient(110deg, #29331f, #1b271d 58%, #17211a);
  box-shadow: 7px 7px 0 rgba(0,0,0,.15);
}
.join-panel .eyebrow { margin-bottom: 5px; }
.join-panel h2 { margin-bottom: 3px; font-size: 1.48rem; font-weight: 900; }
.join-panel p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); font-size: .91rem; }
.server-address {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 4px 15px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.22);
}
.address-label { grid-column: 1 / -1; color: var(--muted); font: .58rem var(--pixel); letter-spacing: .12em; }
.server-address code { color: var(--gold-light); font: 500 .92rem var(--pixel); white-space: nowrap; }
.copy-button { padding: 7px 9px; border: 1px solid rgba(245,174,71,.4); background: #332717; color: var(--gold-light); cursor: pointer; font-size: .76rem; font-weight: 900; }
.copy-button:hover { background: #49351c; }
.copy-status { grid-column: 1 / -1; min-height: 1em; color: #bbd89e; font-size: .72rem; }

.section-wrap { max-width: 1128px; margin: auto; padding: 91px 0 100px; }
.section-heading { margin-bottom: 27px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 900; letter-spacing: -.04em; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.info-card {
  display: flex;
  min-height: 218px;
  flex-direction: column;
  align-items: flex-start;
  padding: 21px;
  border: 1px solid var(--line);
  background: rgba(24,35,26,.87);
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.info-card:hover { transform: translateY(-4px); border-color: rgba(245,174,71,.5); background: var(--panel-light); }
.card-icon { display: grid; width: 38px; height: 38px; margin-bottom: 13px; place-items: center; background: rgba(245,174,71,.13); color: var(--gold); font-size: 1.12rem; }
.card-title { margin-bottom: 4px; font-size: 1.12rem; font-weight: 900; }
.card-description { color: var(--muted); font-size: .88rem; }
.card-link { margin-top: auto; padding-top: 15px; color: var(--gold-light); font-size: .83rem; font-weight: 900; }
.card-link b { padding-left: 6px; }

.inner-page { max-width: 940px; min-height: calc(100vh - 160px); margin: auto; padding: 80px 32px 90px; }
.page-heading { margin-bottom: 42px; }
.page-heading .eyebrow { margin-bottom: 10px; }
.page-heading h1 { margin-bottom: 12px; font-size: clamp(3rem, 7vw, 5rem); }
.page-heading > p:last-child { color: var(--muted); font-size: 1.06rem; }
.rules-list { display: grid; gap: 12px; }
.rule-card { display: grid; grid-template-columns: 66px 1fr; gap: 14px; padding: 21px; border: 1px solid var(--line); background: rgba(24,35,26,.86); }
.rule-number { color: var(--gold); font: 500 .8rem var(--pixel); }
.rule-card h2 { margin-bottom: 3px; font-size: 1.09rem; font-weight: 900; }
.rule-card p { margin-bottom: 0; color: var(--muted); font-size: .92rem; }
.rule-card p + p { margin-top: .7rem; }
.notice-card { display: flex; align-items: flex-start; gap: 12px; margin: 18px 0 25px; padding: 15px 18px; border-left: 3px solid var(--gold); background: rgba(245,174,71,.08); }
.notice-card span { color: var(--gold); }
.notice-card p { margin: 0; color: #c8c9b8; font-size: .87rem; }
.page-cta { width: fit-content; }
.player-directory { padding: 24px; border: 1px solid var(--line); background: rgba(24,35,26,.86); }
.directory-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.directory-heading .eyebrow { margin-bottom: 5px; }
.directory-heading h2 { margin: 0; font-size: 1.55rem; font-weight: 900; }
.player-count { margin: 0; color: var(--gold-light); font: .72rem var(--pixel); text-align: right; }
.player-message { min-height: 1.5em; margin: 17px 0 0; color: var(--muted); font-size: .91rem; }
.player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.player-card { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 13px; border: 1px solid var(--line); background: rgba(0,0,0,.15); }
.player-avatar { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; }
.player-avatar-placeholder { border: 1px solid rgba(245,174,71,.3); background: rgba(245,174,71,.1); color: var(--gold-light); font-size: 1.4rem; }
.player-details { min-width: 0; flex: 1; }
.player-details h3 { margin: 0 0 2px; overflow: hidden; font-size: .99rem; font-weight: 900; text-overflow: ellipsis; }
.player-presence { color: var(--muted); font-size: .75rem; }
.player-presence.is-online { color: #9ed483; }
.presence-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #7c8576; }
.presence-dot.is-online { background: #8fca6d; box-shadow: 0 0 10px rgba(143,202,109,.55); }
.directory-footnote { margin: 15px 0 0; color: var(--muted); font-size: .82rem; }
.empty-state { display: flex; min-height: 330px; flex-direction: column; align-items: center; justify-content: center; padding: 36px; border: 1px dashed rgba(245,174,71,.35); background: rgba(24,35,26,.7); text-align: center; }
.empty-icon { display: grid; width: 58px; height: 58px; margin-bottom: 21px; place-items: center; border: 1px solid rgba(245,174,71,.4); background: rgba(245,174,71,.1); color: var(--gold); font-size: 1.6rem; }
.empty-state .eyebrow { margin-bottom: 8px; }
.empty-state h2 { margin-bottom: 8px; font-size: 1.55rem; font-weight: 900; }
.empty-state > p:not(.eyebrow) { max-width: 490px; margin-bottom: 23px; color: var(--muted); }
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1240px;
  min-height: 77px;
  margin: auto;
  padding: 15px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .77rem;
}
.footer-brand { color: var(--text); font-size: .75rem; }
.footer-discord { color: #c5b3ff; font-weight: 800; }
.footer-discord:hover { color: #e2d8ff; }

@media (max-width: 900px) {
  .site-header { padding-inline: 22px; }
  .hero { min-height: 495px; gap: 20px; padding: 48px 30px; }
  .hero h1 { font-size: clamp(3.2rem, 7vw, 4.6rem); }
  .join-panel, .section-wrap { margin-right: 25px; margin-left: 25px; }
  .section-wrap { padding-block: 72px; }
}
@media (max-width: 680px) {
  .site-header { min-height: 72px; padding: 9px 17px; }
  .brand { gap: 8px; font-size: .77rem; }
  .brand img { width: 43px; height: 43px; }
  .header-join, .header-discord { display: none; }
  .menu-toggle { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); background: var(--panel); color: var(--gold-light); cursor: pointer; font-size: 1.2rem; }
  .site-nav { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 17px 14px; border-bottom: 1px solid var(--line); background: #121b14; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 10px 5px; }
  .site-nav a.active::after { display: none; }
  .site-nav .mobile-join-link { display: block; color: var(--gold-light); }
  .site-nav .mobile-discord-link { display: block; color: #c5b3ff; }
  .hero { grid-template-columns: 1fr; gap: 33px; padding: 56px 22px 45px; }
  .hero h1 { font-size: clamp(3.3rem, 13vw, 5rem); }
  .hero-intro { font-size: 1rem; }
  .hero-art { width: min(100%, 410px); }
  .pixel-one { top: 25px; left: 11px; }
  .join-panel { align-items: stretch; flex-direction: column; gap: 18px; margin-inline: 15px; padding: 23px 19px; }
  .server-address { grid-template-columns: minmax(0, 1fr) auto; }
  .server-address code { overflow-wrap: anywhere; font-size: clamp(.7rem, 3.3vw, .9rem); white-space: normal; }
  .section-wrap { margin-inline: 15px; padding: 65px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .info-card { min-height: 185px; }
  .inner-page { min-height: calc(100vh - 145px); padding: 62px 17px 65px; }
  .page-heading { margin-bottom: 30px; }
  .rule-card { grid-template-columns: 39px 1fr; gap: 8px; padding: 17px 14px; }
  .player-directory { padding: 18px 14px; }
  .directory-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .player-count { text-align: left; }
  .player-grid { grid-template-columns: 1fr; }
  .empty-state { min-height: 300px; padding: 25px 18px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 7px; padding: 18px 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
