:root {
  color-scheme: dark;
  --background: #11130f;
  --surface: #1b1e18;
  --text: #f5f6ed;
  --muted: #aeb4a4;
  --accent: #c5f66a;
  --line: #343b2d;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); }
::selection { background: var(--accent); color: var(--background); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 7px; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.page { max-width: 1440px; min-height: 100svh; padding: 0 clamp(24px, 5.5vw, 80px); margin: 0 auto; display: flex; flex-direction: column; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 112px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { display: block; width: 56px; height: auto; border-radius: 5px; flex-shrink: 0; }
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: -.025em; }
.domain { color: var(--muted); font-weight: 400; }
.header-note { color: var(--muted); font-size: 14px; }
main { flex: 1; display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: clamp(32px, 6vw, 88px); padding: clamp(44px, 7vh, 88px) 0; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; line-height: 1.5; text-transform: uppercase; }
.identity { min-width: 0; }
.identity-title { margin: 0; line-height: 0; }
.identity-logo { display: block; width: min(100%, 380px); height: auto; margin-inline: auto; border-radius: 14px; }
.destinations { display: grid; gap: 18px; min-width: 0; }
.portal { min-width: 0; display: grid; gap: 18px; }
.destination { display: flex; flex-direction: column; padding: 26px 30px 24px; border: 1px solid var(--line); border-radius: 14px; min-height: 236px; text-decoration: none; }
.discord { background: var(--surface); transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease; }
.discord .action-icon { border-color: #69745b; }
.destination-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.destination-top .eyebrow, .destination-number { color: var(--muted); }
.destination-number { font-family: monospace; font-size: 13px; }
.destination-body { margin: 22px 0 20px; }
h2 { font-size: 38px; font-weight: 700; letter-spacing: -.04em; line-height: 1.15; margin: 0 0 9px; }
.destination-body p { font-size: 16px; line-height: 1.5; margin: 0; color: var(--muted); max-width: 30ch; }
.destination-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; min-height: 40px; }
.avalon { background: var(--accent); border-color: var(--accent); color: var(--background); transition: background-color 180ms ease, transform 180ms ease; }
.avalon .eyebrow, .avalon .destination-number, .avalon .destination-body p { color: #344522; }
.action { font-size: 16px; font-weight: 700; }
.action-icon { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #789d42; border-radius: 50%; }
.action-icon svg { width: 22px; height: 22px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 24px 0 28px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.beta-access { padding: 24px 30px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.beta-access h2 { font-size: 24px; margin-bottom: 20px; }
.beta-access label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.beta-controls { display: flex; flex-wrap: wrap; gap: 10px; }
.beta-controls input { flex: 1 1 150px; min-width: 0; width: 100%; padding: 12px; background: var(--background); color: var(--text); border: 1px solid #69745b; border-radius: 6px; font: inherit; font-size: 16px; }
.beta-controls button { flex: 0 0 auto; min-height: 46px; padding: 12px 16px; border: 1px solid #69745b; border-radius: 6px; background: #2d3623; color: var(--text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.beta-controls button:disabled { opacity: .65; cursor: wait; }
.beta-status { min-height: 1.5em; margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.beta-status:empty { display: none; }
.beta-status.is-error { color: #ffb2a3; }
.beta-result { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
#beta-code { color: var(--accent); font-family: ui-monospace, monospace; }
@media (hover: hover) {
  .avalon:hover { background: #d4ff8b; transform: translateY(-3px); }
  .discord:hover { background: #252b1e; border-color: #69745b; transform: translateY(-3px); }
}
@media (max-width: 760px) {
  .page { padding-inline: 24px; }
  .site-header { min-height: 80px; padding: 18px 0; }
  .header-note { display: none; }
  main { grid-template-columns: 1fr; align-items: start; align-content: center; gap: 28px; padding: 32px 0; }
  .brand-mark { width: 42px; }
  .identity-logo { width: min(100%, 160px); border-radius: 10px; }
  .destinations { gap: 14px; }
  .portal { gap: 14px; }
  .beta-access { padding: 20px 24px; }
  .destination { min-height: 210px; padding: 20px 24px; }
  .destination-body { margin: 14px 0; }
  h2 { font-size: 30px; }
  .site-footer { align-items: flex-start; }
  .site-footer span:last-child { text-align: right; }
}
@media (max-width: 360px) {
  .page { padding-inline: 18px; }
  .brand { gap: 10px; }
  .brand-name { font-size: 14px; }
  .destination { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .destination { transition: none; } .destination:hover { transform: none; } }
