@font-face {
  font-family: StreetRace Inter;
  src: url("/inter-var.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #0d0a0c;
  --surface: #20181b;
  --edge: #3e292d;
  --text: #fff2ea;
  --quiet: #c4aba6;
  --heat: #ff7750;
  --signal: #e84339;
  font-family: StreetRace Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  padding: 10px 10px 24px;
  background: var(--canvas);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-tap-highlight-color: #ff775044;
}
.gate { width: min(100%, 540px); margin-inline: auto; }
.arrival {
  display: flex;
  isolation: isolate;
  position: relative;
  min-height: clamp(272px, 75vw, 365px);
  overflow: hidden;
  border-radius: 36px;
  border: 1px solid #513139;
  background: #1b1114 url("/gate-photo.jpg") 48% 65% / cover no-repeat;
}
.arrival::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(152deg, #090609e6 5%, #180b12ad 36%, #180b121a 72%);
}
.arrival-content {
  width: 100%;
  padding: 23px 21px 52px;
}
.brand {
  display: block;
  width: clamp(65px, 18vw, 84px);
  height: auto;
  aspect-ratio: 1;
  margin-bottom: clamp(20px, 6vw, 36px);
  border-radius: 50%;
  box-shadow: 0 0 0 1px #ff8f766e, 0 6px 20px #0007;
}
h1, h2, p { margin: 0; }
h1 {
  max-width: 12em;
  font-size: clamp(32px, 8.7vw, 49px);
  font-weight: 860;
  line-height: 1.02;
  letter-spacing: -.039em;
  text-wrap: balance;
  text-shadow: 0 3px 17px #0008;
}
.door {
  position: relative;
  z-index: 1;
  margin: -34px 8px 0;
  padding: 27px 21px 20px;
  border: 1px solid #573a3d;
  border-radius: 32px;
  background: linear-gradient(155deg, #291b20, #191316 68%);
  box-shadow: 0 23px 60px #0009, inset 0 1px #f5bca523;
}
.door-content { max-width: 420px; }
h2 { color: var(--text); font-size: clamp(29px, 7.7vw, 39px); line-height: 1.07; font-weight: 830; letter-spacing: -.038em; }
.instruction { margin-top: 9px; color: var(--quiet); max-width: 33ch; line-height: 1.45; }
form { margin-top: 22px; }
label { display: block; margin: 0 0 7px 2px; font-size: .87rem; font-weight: 670; }
input, button { width: 100%; font: inherit; }
.code-input {
  min-height: 56px;
  padding: 8px 17px;
  border: 1px solid #80535a;
  border-radius: 20px;
  background: #100d0e;
  color: var(--text);
  font-weight: 740;
  font-size: 22px;
  letter-spacing: .18em;
  font-variant-numeric: tabular-nums;
}
button {
  min-height: 54px;
  margin-top: 11px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(112deg, #ffa473, var(--heat) 80%);
  box-shadow: inset 0 1px #ffe8bc82, 0 9px 24px #0005;
  color: #240d10;
  font-weight: 860;
  cursor: pointer;
  touch-action: manipulation;
}
@media (hover: hover) { button:hover { background: #ff9c73; } }
button:active { transform: translateY(1px); box-shadow: inset 0 1px #ffe8bc82; }
:focus-visible { outline: 2px solid #ffad91; outline-offset: 3px; }
[role="alert"] { margin: 9px 0 0; color: #ffd0c5; font-size: 14px; }
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--edge);
  margin-top: 21px;
  padding-top: 14px;
}
.socials a, .pending-social {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 14px;
  border: 1px solid #5f4146;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: .87rem;
}
.socials a:hover { color: #ffd6c3; border-color: var(--heat); }
.socials a span { margin-left: 6px; color: var(--heat); }
.pending-social { color: #a99491; border-color: #443136; }
@media (min-width: 800px) {
  body { display: grid; place-items: center; padding: clamp(22px, 5vw, 76px); }
  .gate {
    display: grid;
    grid-template-columns: minmax(0, 1.31fr) minmax(0, 1fr);
    gap: clamp(12px, 2vw, 26px);
    width: min(100%, 1120px);
    align-items: center;
  }
  .arrival { min-height: max(515px, min(600px, 73vh)); border-radius: 40px; background-position: 47% 64%; }
  .arrival-content { padding: clamp(28px, 4vw, 60px); }
  .brand { margin-bottom: 44px; }
  h1 { font-size: clamp(40px, 4.7vw, 66px); }
  .door { margin: 0 0 0 -56px; padding: clamp(34px, 4.4vw, 69px); border-radius: 41px; }
  h2 { font-size: clamp(37px, 3.25vw, 49px); }
  form { margin-top: 29px; }
}
@media (prefers-reduced-motion: reduce) { button:active { transform: none; } }
