:root {
  --canvas: 13 9 11;
  --shell: 18 12 14;
  --surface: 24 16 19;
  --raised: 33 22 26;
  --line: 48 33 38;
  --line-strong: 66 46 52;
  --ink: 248 242 238;
  --ink-2: 214 200 196;
  --ink-3: 160 143 142;
  --ink-4: 116 100 101;
  --brand: 208 46 58;
  --brand-hi: 224 68 78;
  --brand-lo: 158 30 44;
  --brand-ink: 247 140 138;
  --gold: 232 194 120;
  --frost: 228 240 255;
  --cs: 245 165 36;
  --cs-hi: 250 186 74;
  --cs-lo: 196 118 14;
  --cs-ink: 250 196 104;
  --ok: 70 167 88;
  --ok-ink: 112 205 128;
  color-scheme: dark;
}

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

html,
body {
  margin: 0;
  height: 100%;
}

body {
  min-height: 100dvh;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: rgb(var(--ink));
  background: rgb(var(--canvas));
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(46rem 30rem at 18% 30%, rgb(var(--brand-lo) / 0.26), transparent 70%),
    radial-gradient(46rem 30rem at 82% 30%, rgb(var(--cs-lo) / 0.18), transparent 70%),
    radial-gradient(80rem 34rem at 50% -12%, rgb(var(--brand-lo) / 0.2), transparent 65%),
    linear-gradient(rgb(var(--canvas)), rgb(var(--shell)));
}

.scene .star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.2;
  animation: twinkle 5s ease-in-out infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.12;
  }
  50% {
    opacity: 0.8;
  }
}

.scene .moon {
  position: absolute;
  top: 20vh;
  left: 9vw;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #fffdf3, #efe3c4 58%, #cdb98b);
  box-shadow: 0 0 50px 10px rgba(255, 240, 205, 0.14), 0 0 140px 40px rgba(255, 240, 205, 0.06);
  opacity: 0.9;
}

#snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.garland {
  position: fixed;
  top: -8px;
  left: 0;
  right: 0;
  height: 54px;
  z-index: 3;
  pointer-events: none;
}

.garland svg {
  width: 100%;
  height: 100%;
}

.bulb {
  animation: bulb 2.6s ease-in-out infinite;
}

@keyframes bulb {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.baubles {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  z-index: 2;
  pointer-events: none;
}

.bauble {
  position: absolute;
  top: 0;
  transform-origin: 50% 0;
  animation: swing 6s ease-in-out infinite;
}

.bauble .string {
  width: 1px;
  margin: 0 auto;
  background: linear-gradient(rgb(var(--gold) / 0.15), rgb(var(--gold) / 0.7));
}

.bauble .cap {
  width: 11px;
  height: 7px;
  margin: 0 auto -2px;
  border-radius: 2px 2px 1px 1px;
  background: linear-gradient(90deg, #8f6f2f, #f4d58a 45%, #8f6f2f);
}

.bauble .ball {
  position: relative;
  border-radius: 50%;
  box-shadow: inset -7px -9px 16px rgba(0, 0, 0, 0.5), 0 10px 26px -8px var(--glow);
}

.bauble .ball::before {
  content: "";
  position: absolute;
  top: 17%;
  left: 22%;
  width: 26%;
  height: 20%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  filter: blur(1px);
  transform: rotate(-30deg);
}

@keyframes swing {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(4deg);
  }
}

.ground {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30vh;
  min-height: 170px;
  max-height: 300px;
  z-index: 1;
  pointer-events: none;
}

.ground svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.trees {
  position: fixed;
  bottom: 0;
  height: 34vh;
  min-height: 190px;
  max-height: 340px;
  width: 30vw;
  max-width: 460px;
  z-index: 2;
  pointer-events: none;
}

.trees.left {
  left: 0;
}

.trees.right {
  right: 0;
  transform: scaleX(-1);
}

.trees svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
}

.mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo .hat {
  position: absolute;
  top: -11px;
  right: -9px;
  width: 26px;
  transform: rotate(18deg);
}

.word b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.word span {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  color: rgb(var(--ink-3));
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgb(var(--line));
  border-radius: 8px;
  background: rgb(var(--shell) / 0.7);
  color: rgb(var(--ink-2));
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.link:hover {
  border-color: rgb(var(--line-strong));
  color: rgb(var(--ink));
}

.link svg {
  width: 16px;
  height: 16px;
}

.page {
  position: relative;
  z-index: 4;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 20px 9vh;
  text-align: center;
}

.fit {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  transform-origin: 50% 50%;
}

.script {
  margin: 0;
  font-family: "Great Vibes", cursive;
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1;
  color: rgb(var(--gold));
  text-shadow: 0 2px 24px rgb(var(--gold) / 0.25);
}

h1 {
  margin: 6px 0 0;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

h1 .fivem {
  color: rgb(var(--brand));
}

h1 .cs {
  color: rgb(var(--cs));
}

.lead {
  max-width: 520px;
  margin: 10px auto 0;
  color: rgb(var(--ink-3));
  font-size: 15px;
  line-height: 1.6;
}

.notice {
  display: none;
  align-items: flex-start;
  gap: 10px;
  max-width: 560px;
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid rgb(var(--brand) / 0.3);
  border-radius: 10px;
  background: rgb(var(--brand) / 0.08);
  text-align: left;
}

.notice.on {
  display: flex;
}

.notice svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: rgb(var(--brand));
}

.notice b {
  display: block;
  font-size: 13px;
  color: rgb(var(--brand-ink));
}

.notice span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.5;
  color: rgb(var(--ink-3));
}

.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 340px));
  justify-content: center;
  gap: 28px;
  width: 100%;
  margin-top: 34px;
}

.card {
  --tone: var(--brand);
  --tone-hi: var(--brand-hi);
  --tone-lo: var(--brand-lo);
  --tone-ink: var(--brand-ink);
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgb(var(--line));
  border-radius: 16px;
  background: rgb(var(--surface) / 0.92);
  text-align: left;
  text-decoration: none;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.card.cs {
  --tone: var(--cs);
  --tone-hi: var(--cs-hi);
  --tone-lo: var(--cs-lo);
  --tone-ink: var(--cs-ink);
}

.card:hover,
.card:focus-visible {
  transform: translateY(-6px);
  border-color: rgb(var(--tone) / 0.55);
  box-shadow: 0 36px 80px -30px rgb(var(--tone) / 0.45), 0 0 0 1px rgb(var(--tone) / 0.25);
  outline: none;
}

.snowcap {
  position: absolute;
  top: -13px;
  left: -7px;
  right: -7px;
  height: 40px;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.35));
}

.snowcap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.art {
  position: relative;
  height: 138px;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
  border-bottom: 1px solid rgb(var(--line));
  background: radial-gradient(22rem 9rem at 50% 120%, rgb(var(--tone) / 0.35), transparent 70%),
    linear-gradient(rgb(var(--raised)), rgb(var(--surface)));
}

.art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.art .tag {
  position: absolute;
  top: 34px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  border-radius: 6px;
  background: rgb(var(--canvas) / 0.7);
  border: 1px solid rgb(var(--tone) / 0.35);
  color: rgb(var(--tone-ink));
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.art .tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(var(--tone));
  box-shadow: 0 0 8px rgb(var(--tone));
}

.body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 20px 20px;
}

.card h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.card h2 .glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgb(var(--tone) / 0.12);
  box-shadow: inset 0 0 0 1px rgb(var(--tone) / 0.22);
  color: rgb(var(--tone-ink));
}

.card h2 .glyph svg {
  display: block;
  width: 18px;
  height: 18px;
}

.card h2 .staff {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  margin-left: auto;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid rgb(var(--brand) / 0.35);
  background: rgb(var(--brand) / 0.1);
  color: rgb(var(--brand-ink));
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.card h2 .staff svg {
  width: 12px;
  height: 12px;
}

.card p {
  margin: 10px 0 0;
  min-height: 42px;
  color: rgb(var(--ink-3));
  font-size: 13.5px;
  line-height: 1.55;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.chips span {
  height: 24px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  border: 1px solid rgb(var(--line));
  background: rgb(var(--shell) / 0.8);
  color: rgb(var(--ink-2));
  font-size: 11.5px;
  font-weight: 500;
}

.who {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: rgb(var(--ok-ink));
  font-size: 12px;
  font-weight: 500;
}

.who.on {
  display: flex;
}

.who i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(var(--ok));
  box-shadow: 0 0 8px rgb(var(--ok));
}

.go {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  margin-top: auto;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(180deg, rgb(var(--tone-hi)), rgb(var(--tone-lo)));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 24px -12px rgb(var(--tone));
  transition: filter 0.2s ease;
}

.card.cs .go {
  color: #1d1205;
}

.spacer {
  height: 18px;
}

.card:hover .go {
  filter: brightness(1.08);
}

.go svg {
  width: 18px;
  height: 18px;
}

.go .arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.card:hover .go .arrow {
  transform: translateX(3px);
}

.foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 6;
  text-align: center;
  color: rgb(var(--ink-3) / 0.85);
  font-size: 11.5px;
}

.code {
  font-size: clamp(96px, 18vw, 170px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: rgb(var(--ink));
}

.code .o {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin: 0 0.04em;
  border-radius: 50%;
  vertical-align: -0.02em;
  background: radial-gradient(circle at 35% 30%, #ff8a8f, rgb(var(--brand)) 45%, #6d0f18);
  box-shadow: inset -0.06em -0.08em 0.12em rgba(0, 0, 0, 0.45), 0 0.1em 0.4em rgb(var(--brand) / 0.45);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 9px;
  border: 1px solid rgb(var(--line));
  background: rgb(var(--raised) / 0.8);
  color: rgb(var(--ink));
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  border-color: rgb(var(--line-strong));
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(180deg, rgb(var(--brand-hi)), rgb(var(--brand-lo)));
  box-shadow: 0 10px 24px -12px rgb(var(--brand));
}

.btn.primary:hover {
  filter: brightness(1.08);
}

.btn svg {
  width: 16px;
  height: 16px;
}

@media (max-height: 900px) {
  .page {
    padding: 60px 20px 6vh;
  }

  .script {
    font-size: clamp(34px, 4vw, 48px);
  }

  h1 {
    font-size: clamp(24px, 2.6vw, 32px);
  }

  .lead {
    margin-top: 6px;
  }

  .choices {
    margin-top: 26px;
  }

  .art {
    height: 108px;
  }

  .art .tag {
    top: 26px;
  }

  .body {
    padding: 16px 18px 18px;
  }

  .card p {
    min-height: 0;
    margin-top: 8px;
  }

  .chips {
    margin-top: 12px;
  }

  .spacer {
    height: 14px;
  }

  .go {
    height: 42px;
  }

  .scene .moon {
    display: none;
  }
}

@media (max-width: 760px) {
  body {
    overflow-y: auto;
    scrollbar-width: none;
  }

  body::-webkit-scrollbar {
    display: none;
  }

  .page {
    height: auto;
    min-height: 100dvh;
    padding: 96px 16px 200px;
  }

  .top {
    position: absolute;
  }

  .foot,
  .scene .moon {
    display: none;
  }
}

@media (max-width: 760px) {
  .choices {
    grid-template-columns: minmax(0, 380px);
    gap: 34px;
  }

  .trees {
    width: 46vw;
  }

  .top {
    padding: 16px;
  }

  .word span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bauble,
  .bulb,
  .scene .star {
    animation: none;
  }

  .card,
  .go,
  .go .arrow {
    transition: none;
  }
}

@media (max-height: 720px) {
  .foot {
    display: none;
  }
}
