:root {
  color-scheme: dark;
  --ink: #12110f;
  --ink-soft: #211f1a;
  --paper: #fff8e9;
  --paper-deep: #eee3cc;
  --coral: #ff6257;
  --lime: #d9ff69;
  --gold: #ffc84b;
  --cyan: #65d8df;
  --muted: #6d675d;
  --line: rgba(18, 17, 15, 0.18);
  --white-line: rgba(255, 248, 233, 0.28);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--paper);
  background: var(--ink);
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

.site-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #1a1814;
}

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

.scene {
  z-index: -3;
  object-fit: cover;
  object-position: center;
}

.scene-shade {
  z-index: -2;
  background: rgba(10, 9, 8, 0.48);
}

.topbar,
.main-layout,
.footer {
  width: min(1440px, calc(100% - 64px));
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--coral);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
  stroke-width: 2.4;
}

.season-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 13px;
  color: var(--paper);
  font-size: 13px;
  font-weight: 750;
  background: rgba(18, 17, 15, 0.62);
  border: 1px solid var(--white-line);
  border-radius: 4px;
}

.status-light {
  width: 8px;
  height: 8px;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(217, 255, 105, 0.18);
}

.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: clamp(48px, 8vw, 132px);
  align-items: center;
  min-height: calc(100vh - 164px);
  min-height: calc(100dvh - 164px);
  padding-block: 34px 46px;
}

.intro {
  align-self: center;
  max-width: 760px;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 12px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.intro h1 {
  max-width: 760px;
  margin: 0;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 72px;
  font-weight: 700;
  line-height: 0.96;
  text-wrap: balance;
  text-shadow: 0 5px 0 rgba(18, 17, 15, 0.4);
}

.intro-copy {
  max-width: 580px;
  margin: 24px 0 0;
  color: rgba(255, 248, 233, 0.84);
  font-size: 18px;
  line-height: 1.65;
}

.game-pulse {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px;
  margin-top: 34px;
  border-top: 1px solid var(--white-line);
  border-bottom: 1px solid var(--white-line);
}

.game-pulse > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 15px 18px 16px 0;
}

.game-pulse > div + div {
  padding-left: 18px;
  border-left: 1px solid var(--white-line);
}

.game-pulse strong {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.game-pulse span {
  overflow-wrap: anywhere;
  color: rgba(255, 248, 233, 0.68);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.business-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 620px;
  margin-top: 24px;
  padding: 14px 16px;
  background: rgba(18, 17, 15, 0.72);
  border-left: 4px solid var(--coral);
}

.business-note > svg {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  color: var(--cyan);
}

.business-note div {
  display: grid;
  gap: 4px;
}

.business-note strong {
  font-size: 14px;
}

.business-note span {
  color: rgba(255, 248, 233, 0.7);
  font-size: 13px;
  line-height: 1.5;
}

.auth-panel {
  width: 100%;
  min-height: 612px;
  padding: 32px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  box-shadow: var(--shadow), 8px 8px 0 rgba(101, 216, 223, 0.7);
}

.auth-heading h2,
.dialog-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  line-height: 1.1;
}

.auth-heading .panel-kicker,
.dialog-header .panel-kicker {
  color: #b63d37;
}

.auth-heading > p:last-child {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.access-status {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  margin: 26px 0 22px;
  padding: 14px 16px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.status-beacon {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 98, 87, 0.15);
}

.access-status div {
  display: grid;
  gap: 4px;
}

.access-status strong {
  font-size: 13px;
}

.access-status span:last-child {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.login-form {
  display: grid;
  gap: 17px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: #38342e;
  font-size: 12px;
  font-weight: 800;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 50px;
  background: #fffdf6;
  border: 1px solid var(--line);
  border-radius: 5px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.input-wrap:focus-within {
  border-color: #9b3530;
  box-shadow: 0 0 0 3px rgba(255, 98, 87, 0.15);
}

.input-wrap > svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-left: 14px;
  color: #81796e;
}

.input-wrap input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 12px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.input-wrap input::placeholder {
  color: #9a9286;
}

.icon-button {
  display: inline-grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  color: #5f594f;
  background: transparent;
  border: 0;
  border-radius: 4px;
}

.icon-button:hover {
  color: var(--ink);
  background: rgba(18, 17, 15, 0.07);
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.footer-link {
  padding: 0;
  color: #8b302c;
  font-size: 12px;
  font-weight: 800;
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 18px;
  font-weight: 850;
  border-radius: 5px;
}

.primary-button {
  width: 100%;
  color: #fffdf6;
  background: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--coral);
}

.primary-button:hover {
  color: var(--ink);
  background: var(--lime);
}

.primary-button svg {
  width: 18px;
  height: 18px;
}

.secondary-button {
  color: var(--ink);
  background: var(--lime);
  border: 2px solid var(--ink);
}

.privacy-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 22px;
  color: #756e64;
  font-size: 11px;
}

.privacy-line svg {
  width: 14px;
  height: 14px;
}

.footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 80px;
  color: rgba(255, 248, 233, 0.62);
  font-size: 12px;
  border-top: 1px solid var(--white-line);
}

.footer > div {
  display: flex;
  gap: 11px;
  align-items: center;
}

.footer-link {
  color: var(--paper);
}

.policy-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 32px));
  max-height: min(760px, calc(100dvh - 32px));
  padding: 28px;
  overflow: auto;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 10px 10px 0 var(--coral);
}

.policy-dialog::backdrop {
  background: rgba(10, 9, 8, 0.78);
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.policy-copy > p {
  margin: 22px 0;
  color: #4e4941;
  font-size: 15px;
  line-height: 1.7;
}

.policy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.policy-grid section {
  min-width: 0;
  padding: 20px;
  background: #fffdf6;
}

.policy-grid svg {
  width: 22px;
  height: 22px;
  color: #ad3933;
}

.policy-grid h3 {
  margin: 12px 0 7px;
  font-size: 14px;
}

.policy-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.policy-dialog > .secondary-button {
  width: 100%;
  margin-top: 22px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(380px, calc(100% - 32px));
  min-height: 52px;
  padding: 12px 16px;
  color: var(--ink);
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 5px;
  box-shadow: 5px 5px 0 var(--coral);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(130%);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.toast.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.toast svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
}

.toast span {
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}

@media (max-width: 1040px) {
  .topbar,
  .main-layout,
  .footer {
    width: min(920px, calc(100% - 40px));
  }

  .main-layout {
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 42px;
  }

  .intro h1 {
    font-size: 58px;
  }

  .game-pulse {
    grid-template-columns: 1fr;
  }

  .game-pulse > div,
  .game-pulse > div + div {
    padding: 10px 0;
    border-left: 0;
  }

  .game-pulse > div + div {
    border-top: 1px solid var(--white-line);
  }
}

@media (max-width: 780px) {
  .site-shell {
    overflow: visible;
  }

  .scene {
    height: 620px;
    object-position: 42% center;
  }

  .scene-shade {
    height: 620px;
    background: rgba(10, 9, 8, 0.52);
  }

  .topbar,
  .main-layout,
  .footer {
    width: min(100% - 32px, 560px);
  }

  .topbar {
    min-height: 72px;
  }

  .season-status {
    padding: 0 9px;
    font-size: 11px;
  }

  .main-layout {
    display: block;
    min-height: auto;
    padding: 38px 0 0;
  }

  .intro {
    min-height: 500px;
  }

  .intro h1 {
    font-size: 50px;
  }

  .intro-copy {
    font-size: 16px;
  }

  .game-pulse {
    display: none;
  }

  .business-note {
    margin-top: 25px;
  }

  .auth-panel {
    min-height: 0;
    margin-bottom: 36px;
    padding: 28px 24px;
    box-shadow: 6px 6px 0 rgba(101, 216, 223, 0.72);
  }

  .footer {
    min-height: 100px;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 16px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .season-status {
    max-width: 118px;
    line-height: 1.15;
  }

  .intro h1 {
    font-size: 43px;
  }

  .intro {
    min-height: 492px;
  }

  .auth-panel {
    padding: 26px 20px;
  }

  .auth-heading h2,
  .dialog-header h2 {
    font-size: 27px;
  }

  .policy-grid {
    grid-template-columns: 1fr;
  }

  .policy-dialog {
    padding: 22px;
  }

  .footer {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .toast {
    right: 16px;
    bottom: 16px;
  }
}

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

