@font-face {
  font-family: "Changa One";
  src: url("/assets/fonts/changaone-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #05070b;
  --ink-soft: #0a0d12;
  --panel: rgb(7 11 16 / 90%);
  --panel-warm: rgb(26 17 11 / 88%);
  --bronze: #ffb24c;
  --orange: #ff8c00;
  --gold: #ffd089;
  --cyan: #84e6ff;
  --cyan-hot: #31d7ff;
  --white: #f8fbff;
  --muted: #bdc8d1;
  --body-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display-font: "Changa One", Impact, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background: var(--ink);
  font-family: var(--display-font);
}

body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgb(3 5 8 / 97%) 0%, rgb(3 5 8 / 82%) 35%, rgb(3 5 8 / 25%) 67%, rgb(3 5 8 / 66%) 100%),
    linear-gradient(180deg, rgb(0 0 0 / 4%), rgb(0 0 0 / 52%)),
    url("/assets/images/bowling-house-hero.webp") center / cover no-repeat;
}

body::after {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 79% 43%, rgb(49 215 255 / 10%), transparent 24%),
    radial-gradient(circle at 34% 8%, rgb(255 140 0 / 16%), transparent 27%),
    linear-gradient(180deg, transparent 65%, rgb(0 0 0 / 58%));
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #071018;
  background: var(--cyan);
  border-radius: 6px;
  font-family: var(--body-font);
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1510px, calc(100% - 56px));
  min-height: 100vh;
  margin: 0 auto;
}

.topbar {
  position: relative;
  min-height: 188px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid rgb(255 178 76 / 38%);
}

.topbar::after {
  position: absolute;
  right: 58%;
  bottom: -2px;
  left: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--orange), var(--gold), transparent);
  filter: drop-shadow(0 0 8px var(--orange));
}

.brand-lockup {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.brand-logo {
  width: 190px;
  height: 190px;
  margin-right: -10px;
  margin-left: -24px;
  object-fit: contain;
  filter: drop-shadow(0 0 13px rgb(255 140 0 / 36%));
}

.brand-copy {
  min-width: 0;
  text-transform: uppercase;
}

.brand-name {
  display: block;
  font-size: clamp(26px, 2.2vw, 37px);
  letter-spacing: 0.018em;
  text-shadow: 0 2px 0 #351b06, 0 0 14px rgb(255 178 76 / 22%);
}

.brand-line {
  display: block;
  margin-top: 3px;
  color: var(--bronze);
  font-size: 11px;
  letter-spacing: 0.24em;
}

.release-status {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  margin: 0;
  padding: 11px 18px;
  border: 1px solid rgb(132 230 255 / 52%);
  border-radius: 999px;
  color: var(--cyan);
  background: linear-gradient(90deg, rgb(12 36 48 / 92%), rgb(8 20 27 / 88%));
  box-shadow: inset 0 0 20px rgb(49 215 255 / 8%), 0 0 16px rgb(49 215 255 / 8%);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.release-status span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan-hot);
  box-shadow: 0 0 12px var(--cyan-hot);
  animation: status-breathe 3.5s ease-in-out infinite;
}

.hero {
  min-height: 820px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  align-items: center;
  gap: clamp(42px, 6vw, 104px);
  padding: 54px 0 40px;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 58px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--orange));
  box-shadow: 0 0 8px rgb(255 140 0 / 80%);
}

h1 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(64px, 6.8vw, 116px);
  line-height: 0.84;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgb(17 8 2 / 78%), 0 0 30px rgb(0 0 0 / 72%);
}

h1 span,
h1 strong {
  display: block;
}

h1 strong {
  margin-top: 16px;
  color: var(--bronze);
  font-weight: 400;
  text-shadow: 0 4px 0 #552606, 0 0 20px rgb(255 140 0 / 34%);
}

.intro {
  max-width: 670px;
  margin: 30px 0 0;
  color: #dce4ea;
  font-family: var(--body-font);
  font-size: clamp(18px, 1.45vw, 23px);
  line-height: 1.55;
}

.intro b {
  color: var(--cyan);
  font-family: var(--display-font);
  font-weight: 400;
}

.availability {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}

.coming-soon,
.beta-first,
.domain {
  margin: 0;
  text-transform: uppercase;
}

.coming-soon {
  width: min(100%, 410px);
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 35px;
  color: var(--white);
  background: linear-gradient(180deg, rgb(17 69 89 / 98%), rgb(6 27 38 / 98%));
  box-shadow: inset 0 0 0 2px rgb(132 230 255 / 74%), inset 0 0 22px rgb(49 215 255 / 15%), 0 0 22px rgb(49 215 255 / 14%);
  clip-path: polygon(8% 0, 92% 0, 100% 50%, 92% 100%, 8% 100%, 0 50%);
  font-size: 19px;
  letter-spacing: 0.055em;
  text-align: center;
}

.beta-first {
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: 0.11em;
}

.domain {
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.14em;
}

.gameplay-card {
  position: relative;
  justify-self: center;
  width: min(370px, 100%);
  margin: 0;
  padding: 10px;
  border-radius: 31px;
  background: linear-gradient(145deg, #ffc066, #5d2a08 22%, #07131b 58%, #31d7ff 100%);
  box-shadow: 0 0 0 3px rgb(4 6 10 / 92%), 0 28px 90px rgb(0 0 0 / 62%), -16px 0 50px rgb(255 140 0 / 12%), 14px 0 44px rgb(49 215 255 / 10%);
}

.gameplay-card img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgb(255 208 137 / 42%);
  border-radius: 22px;
  background: #000;
}

.gameplay-label {
  position: absolute;
  z-index: 2;
  top: 27px;
  left: 50%;
  padding: 6px 16px;
  border: 1px solid rgb(132 230 255 / 52%);
  border-radius: 999px;
  color: var(--cyan);
  background: rgb(5 10 15 / 86%);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}

.gameplay-card figcaption {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.feature-rack {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 26px;
  padding: 17px 0;
  border-top: 1px solid rgb(255 178 76 / 30%);
  border-bottom: 1px solid rgb(132 230 255 / 18%);
  border-radius: 22px;
  background: linear-gradient(90deg, rgb(21 14 9 / 74%), rgb(6 12 17 / 82%), rgb(21 14 9 / 74%));
  box-shadow: inset 0 0 44px rgb(255 140 0 / 3%), 0 16px 50px rgb(0 0 0 / 24%);
}

.feature {
  min-height: 108px;
  padding: 12px 24px;
  border-right: 1px solid rgb(255 208 137 / 16%);
}

.feature:last-child {
  border-right: 0;
}

.feature-number {
  margin: 0;
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.feature h3 {
  margin: 7px 0 5px;
  color: var(--gold);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.feature > p:last-child {
  margin: 0;
  color: var(--muted);
  font-family: var(--body-font);
  font-size: 13px;
  line-height: 1.45;
}

.site-footer {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgb(255 178 76 / 18%);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.not-found {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100% - 40px));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  text-align: center;
}

.not-found img {
  width: 190px;
  height: 190px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgb(255 140 0 / 34%));
}

.not-found .eyebrow {
  margin-top: 12px;
}

.not-found .eyebrow::before {
  display: none;
}

.not-found h1 {
  font-size: clamp(48px, 9vw, 80px);
  line-height: 0.94;
}

.not-found > p:not(.eyebrow) {
  max-width: 580px;
  color: var(--muted);
  font-family: var(--body-font);
  font-size: 18px;
  line-height: 1.6;
}

.not-found a {
  margin-top: 18px;
  padding: 14px 22px;
  border: 1px solid rgb(132 230 255 / 58%);
  border-radius: 8px;
  color: var(--cyan);
  background: rgb(6 27 38 / 88%);
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

@keyframes status-breathe {
  0%, 100% { opacity: 0.72; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.08); }
}

@media (max-width: 980px) {
  .site-shell {
    width: min(100% - 30px, 740px);
  }

  .topbar {
    min-height: 112px;
  }

  .brand-logo {
    width: 118px;
    height: 118px;
    margin-right: -6px;
    margin-left: -15px;
  }

  .brand-copy {
    display: none;
  }

  .release-status {
    padding: 9px 12px;
    font-size: 10px;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding-top: 50px;
  }

  .hero-copy {
    max-width: none;
    text-align: center;
  }

  .eyebrow,
  .availability {
    justify-content: center;
  }

  .eyebrow::before {
    display: none;
  }

  .intro {
    margin-right: auto;
    margin-left: auto;
  }

  .gameplay-card {
    width: min(410px, 92vw);
  }

  .feature-rack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
  }

  .feature:nth-child(2) {
    border-right: 0;
  }

  .feature:nth-child(-n+2) {
    border-bottom: 1px solid rgb(255 208 137 / 14%);
  }
}

@media (max-width: 580px) {
  body::before {
    position: absolute;
    background:
      linear-gradient(180deg, rgb(3 5 8 / 82%) 0%, rgb(3 5 8 / 90%) 42%, rgb(3 5 8 / 72%) 100%),
      url("/assets/images/bowling-house-hero.webp") 62% center / auto 100% no-repeat;
  }

  .topbar {
    gap: 10px;
  }

  .release-status {
    letter-spacing: 0.07em;
  }

  h1 {
    font-size: clamp(52px, 17vw, 76px);
  }

  .intro {
    font-size: 17px;
  }

  .availability {
    gap: 16px;
  }

  .coming-soon {
    min-height: 58px;
    padding: 12px 26px;
    font-size: 16px;
  }

  .beta-first,
  .domain {
    width: 100%;
  }

  .feature-rack {
    grid-template-columns: 1fr;
  }

  .feature,
  .feature:nth-child(2),
  .feature:last-child {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgb(255 208 137 / 14%);
  }

  .feature:last-child {
    border-bottom: 0;
  }

  .site-footer {
    flex-direction: column;
    justify-content: center;
    padding: 22px 0;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
