:root {
  --bg: #09111f;
  --bg-soft: #0d1624;
  --surface: #101a2e;
  --surface-raised: #16233c;
  --surface-soft: #1d2c48;
  --surface-outline: rgba(231, 203, 146, 0.16);
  --accent: #c99f59;
  --accent-soft: #e7cb92;
  --text: #f3efe7;
  --muted: #97a4bd;
  --line: rgba(201, 159, 89, 0.18);
  --line-strong: rgba(231, 203, 146, 0.34);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI",
    "Yu Gothic", sans-serif;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(201, 159, 89, 0.12), transparent 28%),
    radial-gradient(circle at top left, rgba(65, 110, 182, 0.18), transparent 34%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

a {
  color: inherit;
}

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

.site-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 20px 0 40px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  background: rgba(9, 17, 31, 0.8);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 14px 28px rgba(0, 0, 0, 0.28);
}

.brand-title,
.hero-title,
.page-title,
.section-heading h2,
.panel h2,
.game-card h3 {
  margin: 0;
}

.brand-title {
  font-size: 1.35rem;
  line-height: 1.1;
}

.brand-subtitle,
.eyebrow,
.hero-badge,
.contact-label,
.hero-card-label,
.last-updated {
  margin: 0;
  color: var(--muted);
}

.brand-subtitle {
  margin-top: 4px;
  font-size: 0.86rem;
}

.eyebrow,
.hero-badge,
.contact-label,
.hero-card-label,
.last-updated {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.site-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--muted);
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
  border-color: rgba(231, 203, 146, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.is-current {
  color: var(--accent-soft);
  border-color: rgba(231, 203, 146, 0.38);
  background: rgba(201, 159, 89, 0.12);
}

.hero,
.panel-grid,
.panel-section,
.policy-list,
.page-hero {
  margin-bottom: 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
  gap: 20px;
  align-items: stretch;
}

.hero-copy,
.glow-panel,
.panel,
.page-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(
      180deg,
      rgba(22, 35, 60, 0.98) 0%,
      rgba(16, 26, 46, 0.98) 100%
    );
  box-shadow: var(--shadow);
}

.hero-copy,
.glow-panel,
.panel,
.page-hero {
  padding: 28px;
}

.hero-copy::before,
.glow-panel::before,
.panel::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(231, 203, 146, 0.44) 50%,
    transparent 100%
  );
}

.hero-copy {
  background:
    radial-gradient(circle at top right, rgba(201, 159, 89, 0.12), transparent 36%),
    radial-gradient(circle at bottom left, rgba(88, 144, 200, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(22, 35, 60, 0.98), rgba(16, 26, 46, 0.98));
}

.hero-title,
.page-title {
  margin-top: 10px;
  font-size: clamp(1.95rem, 4vw, 3rem);
  line-height: 1.16;
  letter-spacing: 0.01em;
}

.hero-text,
.page-lead,
.panel p,
.panel li,
.note-text,
.game-card p {
  color: var(--text);
}

.hero-text,
.page-lead {
  margin: 16px 0 0;
  max-width: 64ch;
}

.hero-actions,
.button-stack,
.link-row,
.footer-links,
.link-panel,
.feature-list,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 22px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.feature-list li,
.tag,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(231, 203, 146, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-soft);
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.button-primary {
  color: #09111f;
  background: var(--accent);
  box-shadow: 0 16px 30px rgba(201, 159, 89, 0.18);
}

.button-secondary {
  color: var(--text);
  background: rgba(16, 26, 46, 0.92);
  border: 1px solid rgba(231, 203, 146, 0.24);
}

.text-link {
  color: var(--accent-soft);
  text-decoration: none;
  font-weight: 700;
}

.text-link:hover,
.text-link:focus-visible,
.contact-mail:hover,
.contact-mail:focus-visible {
  text-decoration: underline;
}

.hero-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  min-height: 100%;
  text-align: center;
}

.hero-visual {
  background:
    radial-gradient(circle at top, rgba(88, 144, 200, 0.28), transparent 34%),
    radial-gradient(circle at bottom right, rgba(201, 159, 89, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(22, 35, 60, 0.98), rgba(16, 26, 46, 0.98));
}

.hero-app-icon {
  width: min(168px, 48%);
  height: auto;
  border-radius: 28px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 20px 36px rgba(0, 0, 0, 0.32);
}

.hero-logo {
  width: min(220px, 70%);
  height: auto;
}

.hero-card-label {
  text-align: center;
}

.compact-list {
  margin: 0;
  justify-self: center;
  text-align: left;
}

.panel-grid.two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading.small {
  margin-bottom: 10px;
}

.section-heading h2 {
  margin-top: 6px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.bullet-list,
.step-list {
  margin: 14px 0 0;
  padding-left: 20px;
}

.bullet-list li + li,
.step-list li + li {
  margin-top: 8px;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chip {
  color: var(--text);
  background: rgba(201, 159, 89, 0.12);
  border-color: rgba(201, 159, 89, 0.24);
}

.panel-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 14px;
  background: rgba(201, 159, 89, 0.12);
  border: 1px solid rgba(201, 159, 89, 0.18);
}

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

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

.swatch {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.swatch-color {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.swatch-meta {
  display: grid;
  gap: 2px;
}

.swatch-meta strong {
  font-size: 0.95rem;
}

.swatch-meta span {
  color: var(--muted);
  font-size: 0.84rem;
}

.game-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-card {
  --game-primary: #416eb6;
  --game-secondary: #c99f59;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(22, 35, 60, 0.98), rgba(16, 26, 46, 0.98));
  box-shadow:
    inset 0 3px 0 0 var(--game-secondary),
    0 16px 34px rgba(0, 0, 0, 0.22);
}

.game-card h3 {
  margin-top: 10px;
  font-size: 1.08rem;
  color: var(--game-secondary);
}

.game-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.tag {
  color: var(--game-secondary);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--game-secondary);
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.contact-mail {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent-soft);
  word-break: break-word;
  font-weight: 700;
}

.contact-mail.large {
  font-size: 1.125rem;
}

.inline-contact {
  margin: 12px 0 0;
}

.link-panel {
  align-items: center;
}

.page-hero {
  background:
    radial-gradient(circle at top right, rgba(201, 159, 89, 0.12), transparent 36%),
    radial-gradient(circle at bottom left, rgba(88, 144, 200, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(22, 35, 60, 0.98), rgba(16, 26, 46, 0.98));
}

.policy-list {
  display: grid;
  gap: 16px;
}

.note-text {
  margin-top: 14px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding: 18px 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

@media (max-width: 860px) {
  .hero,
  .panel-grid.two-columns,
  .game-grid,
  .contact-strip,
  .site-header,
  .site-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .swatch-grid {
    grid-template-columns: 1fr;
  }

  .contact-strip,
  .site-footer {
    justify-content: flex-start;
  }

  .site-nav {
    width: 100%;
  }

  .nav-link {
    flex: 1 1 calc(33.333% - 8px);
    text-align: center;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 10px;
  }

  .site-header,
  .hero-copy,
  .glow-panel,
  .panel,
  .page-hero,
  .game-card {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .nav-link {
    flex: 1 1 100%;
  }

  .hero-title,
  .page-title {
    font-size: 1.75rem;
  }

  .button,
  .button-primary,
  .button-secondary {
    width: 100%;
  }
}
