/* Falak Rush website. Colors and shapes come from the game. */

@font-face { font-family: "Adventor"; src: url("fonts/adventor-bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Adventor"; src: url("fonts/adventor-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  --midnight: #070B1F;
  --deep: #101A3B;
  --panel: rgba(25, 35, 70, 0.82);
  --line: rgba(179, 190, 221, 0.18);
  --cyan: #59E4FF;
  --amber: #FFC857;
  --coral: #FF6B7A;
  --violet: #8F7CFF;
  --text: #F4F7FF;
  --muted: #B3BEDD;

  --display: "Adventor", "Century Gothic", "Avenir Next", sans-serif;
  --body: "Inter", "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 22px;
  --radius-small: 14px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  background-color: var(--midnight);
  background-image:
    radial-gradient(circle at 88% 0, rgba(143, 124, 255, 0.18), transparent 40rem),
    url("img/stars.svg"),
    linear-gradient(160deg, var(--midnight) 0%, var(--deep) 45%, #120F2B 100%);
  background-size: auto, 640px 640px, auto;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--cyan); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--midnight); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.brand img { width: 38px; height: 38px; border-radius: 11px; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 28px); }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: var(--radius-small);
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  text-decoration: none; cursor: pointer;
  background: var(--cyan); color: var(--midnight); border: 2px solid var(--cyan);
}
.button:hover { background: #8DEDFF; border-color: #8DEDFF; }
.button-small { min-height: 40px; padding: 0 16px; font-size: 0.95rem; }
.button-ghost { background: transparent; color: var(--cyan); }
.button-ghost:hover { background: rgba(89, 228, 255, 0.12); border-color: var(--cyan); }
.button svg { width: 20px; height: 20px; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; min-height: min(78vh, 720px); gap: 24px; }
.wordmark { font-size: clamp(4.2rem, 11.5vw, 10rem); line-height: 0.86; letter-spacing: -0.035em; text-transform: uppercase; margin-bottom: 0.32em; }
.wordmark span { display: block; }
.wordmark .rush { color: var(--cyan); }
.hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text); max-width: 32ch; margin-bottom: 0.6em; }
.hero-note { color: var(--muted); margin-bottom: 1.8em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

.flight { position: relative; height: 100%; min-height: 440px; }
.flight svg.gate { position: absolute; inset: 0; width: 100%; height: 100%; }
.flight .rocket-wrap { position: absolute; left: 50%; top: 50%; width: min(56%, 210px); transform: translate(-50%, -50%); }
.flight .rocket { width: 100%; height: auto; filter: drop-shadow(0 0 28px rgba(89, 228, 255, 0.35)); }

@media (prefers-reduced-motion: no-preference) {
  .flight .rocket-wrap { animation: fly-in 1.6s cubic-bezier(0.16, 0.84, 0.3, 1) 0.2s both; }
}
@keyframes fly-in {
  from { transform: translate(-190%, 40%) rotate(8deg); opacity: 0; }
  30% { opacity: 1; }
  to { transform: translate(-50%, -50%); opacity: 1; }
}

/* Sections */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section + .section, .page-head + .section { padding-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.section-head p { color: var(--muted); max-width: 52ch; margin: 10px 0 0; }

.text-link { font-weight: 600; }

/* VIP block */
.vip-panel {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0;
  border: 1.5px solid var(--amber); border-radius: var(--radius);
  background: var(--panel); overflow: hidden;
}
.vip-main { padding: clamp(28px, 4vw, 48px); }
.vip-main h2 { margin-bottom: 14px; }
.vip-main > p { color: var(--muted); max-width: 46ch; }
.rewards { list-style: none; margin: 26px 0 28px; padding: 0; display: grid; gap: 18px; }
.rewards li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; }
.rewards strong { display: block; font-family: var(--display); font-size: 1.15rem; color: var(--text); }
.rewards span { color: var(--muted); }
.reward-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 200, 87, 0.12); color: var(--amber); }
.reward-icon svg { width: 26px; height: 26px; }
.reward-icon .rocket { width: 46px; }

.vip-now { padding: clamp(28px, 4vw, 48px); background: rgba(7, 11, 31, 0.5); border-left: 1px solid rgba(255, 200, 87, 0.35); display: flex; flex-direction: column; justify-content: center; }
.vip-now-label { color: var(--amber); font-weight: 600; margin-bottom: 8px; }
.vip-now-name { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 6px; overflow-wrap: anywhere; }
.vip-now-until { color: var(--muted); margin: 0; }
.vip-now-empty { font-size: 1.1rem; margin: 0; }

.key-icon { width: 18px; height: 18px; color: var(--amber); flex: none; }

/* Hangar */
.hangar-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hangar-item { padding: 22px 20px 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); text-align: center; }
.hangar-art { height: 104px; display: grid; place-items: center; margin-bottom: 12px; }
.hangar-art .rocket { width: 132px; height: auto; }
.hangar-name { font-size: 1.1rem; margin-bottom: 6px; }
.hangar-how { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); margin: 0; font-size: 0.95rem; }
.hangar-how.is-keys { color: var(--amber); font-weight: 600; }
.hangar-soon { margin: 10px 0 0; font-size: 0.85rem; color: var(--cyan); }
.hangar-item.is-soon { border-style: dashed; border-color: rgba(89, 228, 255, 0.35); }

/* News */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px 32px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.news-date { color: var(--muted); font-size: 0.95rem; padding-top: 3px; }
.news-title { font-size: 1.35rem; margin-bottom: 10px; }
.news-body { max-width: 62ch; }
.news-body p { color: var(--muted); }
.news-body p:last-child { margin-bottom: 0; }

/* Page header (inner pages) */
.page-head { padding: clamp(40px, 7vw, 80px) 0 clamp(28px, 4vw, 40px); }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 18px; max-width: 16ch; }
.page-head .lead { font-size: 1.2rem; color: var(--muted); max-width: 56ch; margin: 0; }
.updated { color: var(--muted); font-size: 0.95rem; margin-top: 14px; }

/* Long text */
.prose { max-width: 68ch; padding-bottom: clamp(56px, 8vw, 96px); }
.prose h2 { font-size: 1.5rem; margin: 2.2em 0 0.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #DCE2F2; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.45em; }
.prose strong { color: var(--text); }
.note { border-left: 3px solid var(--amber); padding: 4px 0 4px 18px; color: var(--muted); }

/* VIP page */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; color: var(--muted); }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  color: var(--midnight); background: var(--cyan);
}
.steps strong { display: block; color: var(--text); font-family: var(--display); font-size: 1.1rem; margin-bottom: 6px; }

.rules { margin: 0; display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); border-top: 1px solid var(--line); }
.rules dt, .rules dd { padding: 22px 0; border-bottom: 1px solid var(--line); margin: 0; }
.rules dt { font-family: var(--display); font-weight: 700; font-size: 1.1rem; padding-right: 24px; }
.rules dd { color: #DCE2F2; max-width: 64ch; }
.rules dd p:last-child, .rules dd ul:last-child { margin-bottom: 0; }
.rules ul { padding-left: 1.2em; margin: 0 0 1em; }
.rules li { margin-bottom: 0.4em; }

.winners-table { width: 100%; border-collapse: collapse; }
.winners-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.95rem; padding: 0 16px 12px 0; border-bottom: 1px solid var(--line); }
.winners-table td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.winners-table .winner-email { font-family: var(--display); font-weight: 700; font-size: 1.1rem; overflow-wrap: anywhere; }
.winners-table .is-active { color: var(--amber); }
.winners-table .is-empty td { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: start; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand img { width: 32px; height: 32px; border-radius: 9px; }
.footer-brand strong { display: block; color: var(--text); font-family: var(--display); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-small { grid-column: 1 / -1; margin: 0; font-size: 0.85rem; }

/* Responsive */
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 24px; }
  .flight { order: -1; min-height: 0; height: 300px; margin: 0 calc(var(--gutter) * -1); }
  .flight .rocket-wrap { width: 150px; }
  .flight { -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); }
  .hangar-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vip-panel { grid-template-columns: 1fr; }
  .vip-now { border-left: 0; border-top: 1px solid rgba(255, 200, 87, 0.35); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .rules { grid-template-columns: 1fr; }
  .rules dt { border-bottom: 0; padding-bottom: 4px; }
  .rules dd { padding-top: 0; }
}

@media (max-width: 620px) {
  .site-nav .nav-play { display: none; }
  .hangar-item { padding: 18px 12px 16px; }
  .hangar-art .rocket { width: 112px; }
  .brand span { display: none; }
  .news-item { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .winners-table thead { display: none; }
  .winners-table tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .winners-table td { display: block; border: 0; padding: 2px 0; }
}
