:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #5e6a78;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --line: #dfe4ea;
  --blue: #1769aa;
  --green: #23735a;
  --amber: #c77800;
  --coral: #c84332;
  --shadow: 0 18px 50px rgba(23, 32, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--coral);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid rgba(223, 228, 234, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 650;
  padding: 8px 13px;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: #e9eef3;
}

.hero {
  position: relative;
  min-height: min(690px, calc(100vh - 72px));
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #dceadf;
  border-bottom: 1px solid var(--line);
}

#world-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding: clamp(44px, 7vw, 88px) 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 11ch;
  margin: 0;
  color: #101820;
  font-size: clamp(3.2rem, 10vw, 8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 560px;
  margin: 24px 0 0;
  color: #26333f;
  font-size: clamp(1.06rem, 2vw, 1.34rem);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  font-weight: 800;
  padding: 12px 18px;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: #fff;
}

.button.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 86px) 0;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 26px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  line-height: 1.2;
}

.url-grid,
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.url-card,
.info-card,
.game-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.url-card,
.info-card {
  padding: 24px;
}

.url-card p,
.info-card p,
.game-item p,
.legal-content p {
  color: var(--muted);
}

.url-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
}

.url-card:nth-child(1) .url-icon {
  background: var(--blue);
}

.url-card:nth-child(2) .url-icon {
  background: var(--green);
}

.url-card:nth-child(3) .url-icon {
  background: var(--amber);
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.game-list {
  display: grid;
  gap: 14px;
}

.game-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.game-showcase-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.game-shot-link {
  display: block;
  height: 360px;
  overflow: hidden;
  background: #101820;
}

.game-shot-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  transition: transform 220ms ease;
}

.game-showcase-card:hover .game-shot-link img {
  transform: scale(1.025);
}

.game-card-body {
  position: relative;
  padding: 54px 22px 24px;
}

.game-card-body .app-icon {
  position: absolute;
  top: -34px;
  left: 22px;
}

.app-icon {
  width: 68px;
  height: 68px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(23, 32, 42, 0.22);
}

.app-icon.large {
  width: 92px;
  height: 92px;
  margin-bottom: 18px;
  border-radius: 22px;
}

.game-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
}

.game-item a {
  color: var(--ink);
}

.game-art {
  width: 84px;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 3px solid #17202a;
  image-rendering: pixelated;
}

.game-art-one {
  background:
    linear-gradient(90deg, transparent 66%, rgba(255, 255, 255, 0.42) 67% 75%, transparent 76%),
    linear-gradient(#7bc8f6 0 42%, #64a35c 43% 70%, #8a5a35 71%);
}

.game-art-two {
  background:
    radial-gradient(circle at 64% 28%, #fff 0 8%, transparent 9%),
    linear-gradient(135deg, #313a7d 0 45%, #c84332 46% 56%, #f5c542 57%);
}

.game-page .page-hero h1 {
  max-width: 760px;
}

.game-page {
  --game-bg: var(--paper);
  --game-surface: #fff;
  --game-ink: var(--ink);
  --game-muted: var(--muted);
  --game-line: var(--line);
  --game-accent: var(--blue);
  --game-accent-2: var(--green);
  --game-panel: rgba(255, 255, 255, 0.76);
  background: var(--game-bg);
  color: var(--game-ink);
}

.dragon-page {
  --game-bg: #f3f8ff;
  --game-surface: #ffffff;
  --game-ink: #263a63;
  --game-muted: #607086;
  --game-line: #cbdff5;
  --game-accent: #ff7540;
  --game-accent-2: #39b6b0;
  --game-panel: rgba(255, 255, 255, 0.78);
}

.screw-page {
  --game-bg: #171a1e;
  --game-surface: #22272e;
  --game-ink: #f3f5f6;
  --game-muted: #aeb8c3;
  --game-line: #3b444f;
  --game-accent: #f0a231;
  --game-accent-2: #18b8b3;
  --game-panel: rgba(22, 25, 30, 0.84);
}

.raptor-page {
  --game-bg: #071116;
  --game-surface: #0d1b22;
  --game-ink: #ecfbff;
  --game-muted: #9fb7c1;
  --game-line: #173644;
  --game-accent: #00c7df;
  --game-accent-2: #ffd21f;
  --game-panel: rgba(7, 17, 22, 0.82);
}

.game-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(30px, 6vw, 86px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(48px, 7vw, 86px) clamp(18px, 6vw, 88px);
  overflow: hidden;
  border-bottom: 1px solid var(--game-line);
}

.game-hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.game-hero::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.game-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 660px;
  border: 1px solid color-mix(in srgb, var(--game-line), transparent 30%);
  border-radius: 8px;
  background: var(--game-panel);
  box-shadow: 0 24px 80px rgba(23, 32, 42, 0.12);
  padding: clamp(24px, 4vw, 42px);
  backdrop-filter: blur(12px);
}

.game-hero h1 {
  max-width: 10ch;
  color: var(--game-ink);
  font-size: clamp(3rem, 8vw, 6.8rem);
}

.game-hero p {
  max-width: 640px;
  color: var(--game-muted);
  font-size: clamp(1.04rem, 1.8vw, 1.22rem);
}

.game-page .eyebrow {
  color: var(--game-accent);
}

.game-page .button.primary {
  background: var(--game-ink);
  color: var(--game-bg);
}

.game-page .button.secondary {
  border-color: var(--game-line);
  background: var(--game-surface);
  color: var(--game-ink);
}

.dragon-theme {
  background:
    linear-gradient(115deg, rgba(247, 251, 255, 0.92), rgba(218, 235, 255, 0.55)),
    repeating-linear-gradient(135deg, rgba(57, 182, 176, 0.1) 0 16px, transparent 16px 34px),
    #d8eaff;
}

.dragon-theme::before {
  background-image:
    linear-gradient(45deg, transparent 0 47%, rgba(255, 117, 64, 0.18) 48% 52%, transparent 53%),
    linear-gradient(-45deg, transparent 0 47%, rgba(57, 182, 176, 0.14) 48% 52%, transparent 53%);
  background-position: 0 0, 22px 18px;
  background-size: 72px 72px;
  opacity: 0.72;
}

.dragon-theme::after {
  right: clamp(18px, 6vw, 84px);
  bottom: 36px;
  width: min(34vw, 420px);
  height: 120px;
  border: 2px solid rgba(38, 58, 99, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
  transform: rotate(-4deg);
}

.screw-theme {
  background:
    linear-gradient(115deg, rgba(37, 42, 49, 0.92), rgba(15, 17, 20, 0.72)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 72px),
    #171a1e;
}

.screw-theme::before {
  background:
    linear-gradient(90deg, rgba(240, 162, 49, 0.36), transparent 32% 68%, rgba(24, 184, 179, 0.26)),
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(255, 255, 255, 0.05) 12px 14px);
  opacity: 0.76;
}

.screw-theme::after {
  right: -54px;
  bottom: 84px;
  width: 440px;
  height: 54px;
  border: 1px solid rgba(240, 162, 49, 0.4);
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(240, 162, 49, 0.34) 0 18px, rgba(24, 184, 179, 0.26) 18px 36px),
    rgba(255, 255, 255, 0.08);
  transform: rotate(-22deg);
}

.raptor-theme {
  background:
    linear-gradient(115deg, rgba(6, 19, 25, 0.96), rgba(12, 31, 39, 0.8)),
    linear-gradient(180deg, rgba(0, 199, 223, 0.18), transparent 52%),
    #071116;
}

.raptor-theme::before {
  background:
    repeating-linear-gradient(0deg, rgba(0, 199, 223, 0.09) 0 1px, transparent 1px 11px),
    linear-gradient(90deg, transparent, rgba(0, 199, 223, 0.16), transparent);
  opacity: 0.82;
}

.raptor-theme::after {
  right: clamp(20px, 6vw, 90px);
  top: clamp(86px, 12vw, 150px);
  width: min(32vw, 390px);
  height: min(32vw, 390px);
  border: 1px solid rgba(0, 199, 223, 0.42);
  border-radius: 50%;
  background:
    linear-gradient(transparent 48%, rgba(0, 199, 223, 0.36) 49% 51%, transparent 52%),
    linear-gradient(90deg, transparent 48%, rgba(0, 199, 223, 0.36) 49% 51%, transparent 52%);
  opacity: 0.54;
}

.phone-stage {
  position: relative;
  z-index: 1;
  min-height: 620px;
}

.phone-shot {
  display: block;
  width: min(58vw, 390px);
  max-width: 100%;
  border: 8px solid color-mix(in srgb, var(--game-ink), #000 18%);
  border-radius: 34px;
  background: #17202a;
  box-shadow: 0 28px 70px color-mix(in srgb, var(--game-accent), transparent 72%);
}

.dragon-page .phone-shot {
  border-color: #ffffff;
}

.screw-page .phone-shot {
  border-color: #303740;
}

.raptor-page .phone-shot {
  border-color: #071116;
  box-shadow:
    0 0 0 1px rgba(0, 199, 223, 0.35),
    0 28px 70px rgba(0, 199, 223, 0.18);
}

.phone-shot.main {
  position: relative;
  z-index: 2;
  margin-left: auto;
}

.phone-shot.side {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 8px;
  width: min(44vw, 300px);
  opacity: 0.88;
}

.dragon-hero {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.2)),
    repeating-linear-gradient(45deg, rgba(35, 115, 90, 0.14) 0 18px, rgba(23, 105, 170, 0.1) 18px 36px),
    #e8f4ec;
}

.screw-hero {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.22)),
    repeating-linear-gradient(90deg, rgba(199, 120, 0, 0.14) 0 16px, rgba(23, 32, 42, 0.08) 16px 32px),
    #f6efe3;
}

.game-detail {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 0.7fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  border-bottom: 1px solid var(--game-line);
}

.game-detail p {
  max-width: 720px;
  color: var(--game-muted);
}

.game-page .game-detail h2,
.game-page .game-links h2 {
  color: var(--game-ink);
}

.game-emblem {
  position: relative;
  display: grid;
  width: min(100%, 260px);
  aspect-ratio: 1;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dragon-emblem {
  background:
    radial-gradient(circle at 68% 28%, #f5c542 0 7%, transparent 8%),
    linear-gradient(135deg, #1769aa 0 35%, #23735a 36% 66%, #c84332 67%);
}

.dragon-emblem span {
  width: 48%;
  aspect-ratio: 1;
  border-radius: 8px 8px 44% 8px;
  background: #17202a;
  transform: rotate(45deg);
}

.screw-emblem {
  background:
    radial-gradient(circle at 30% 28%, #f7d06b 0 12%, transparent 13%),
    linear-gradient(135deg, #d9e0e7 0 45%, #8f9aa6 46% 56%, #c77800 57%);
}

.screw-emblem span {
  width: 18%;
  height: 70%;
  border-radius: 999px;
  background: #17202a;
  transform: rotate(45deg);
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.feature-list span {
  border: 1px solid var(--game-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--game-surface), transparent 8%);
  color: var(--game-ink);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 7px 12px;
}

.game-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border-top: 1px solid var(--game-line);
}

.game-page .info-card {
  border-color: var(--game-line);
  background: var(--game-surface);
}

.game-page .info-card p {
  color: var(--game-muted);
}

.game-page .info-card a {
  color: var(--game-accent);
}

.screenshot-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.screenshot-band img {
  width: 100%;
  aspect-ratio: 9 / 16;
  display: block;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--game-line);
  border-radius: 8px;
  background: #101820;
  box-shadow: var(--shadow);
}

.dragon-page .screenshot-band img {
  box-shadow: 0 18px 50px rgba(38, 58, 99, 0.16);
}

.screw-page .screenshot-band img {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

.raptor-page .screenshot-band img {
  box-shadow:
    0 0 0 1px rgba(0, 199, 223, 0.18),
    0 18px 50px rgba(0, 0, 0, 0.46);
}

.page {
  min-height: calc(100vh - 72px);
}

.page-hero {
  padding: clamp(54px, 9vw, 104px) clamp(18px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(2.6rem, 8vw, 6rem);
}

.page-hero p {
  max-width: 720px;
  color: #31404d;
  font-size: 1.13rem;
}

.support-hero {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.25)),
    repeating-linear-gradient(90deg, rgba(23, 105, 170, 0.1) 0 14px, rgba(35, 115, 90, 0.08) 14px 28px),
    #eef6f2;
}

.legal-hero {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.24)),
    repeating-linear-gradient(135deg, rgba(199, 120, 0, 0.12) 0 14px, rgba(200, 67, 50, 0.08) 14px 28px),
    #fff7e8;
}

.updated {
  font-size: 0.94rem;
  font-weight: 800;
}

.faq {
  border-top: 1px solid var(--line);
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin-top: 12px;
  padding: 16px 18px;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

details p {
  color: var(--muted);
}

.legal-content {
  width: min(880px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(44px, 7vw, 78px) 0;
}

.legal-content h2 {
  margin-top: 34px;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 800px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 620px;
    align-items: end;
  }

  .hero-content {
    width: min(100% - 36px, 680px);
    margin: 0 auto;
  }

  .url-grid,
  .support-grid,
  .game-showcase-grid,
  .game-detail,
  .game-links,
  .screenshot-band,
  .split {
    grid-template-columns: 1fr;
  }

  .game-emblem {
    width: min(220px, 100%);
  }

  .game-shot-link {
    height: 520px;
  }

  .game-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .phone-stage {
    min-height: 560px;
  }

  .phone-shot {
    width: min(78vw, 360px);
  }

  .phone-shot.side {
    width: min(58vw, 260px);
  }
}

@media (max-width: 480px) {
  .brand {
    white-space: normal;
  }

  .nav a {
    padding: 7px 10px;
  }

  .game-item {
    grid-template-columns: 64px 1fr;
  }

  .game-art {
    width: 64px;
  }

  .game-shot-link {
    height: 430px;
  }

  .phone-stage {
    min-height: 470px;
  }

  .phone-shot {
    border-width: 6px;
    border-radius: 26px;
  }
}
