:root {
  color-scheme: dark;
  --bg: #070b12;
  --bg-2: #0b1220;
  --surface: rgba(15, 24, 37, 0.82);
  --surface-strong: #101a29;
  --surface-warm: rgba(52, 28, 11, 0.72);
  --text: #f8f3e8;
  --muted: #b9c0cc;
  --soft: #7d8795;
  --gold: #ffc53d;
  --gold-2: #ff9f1c;
  --red: #ef233c;
  --green: #2fb344;
  --blue: #2f80ed;
  --border: rgba(255, 255, 255, 0.13);
  --gold-border: rgba(255, 197, 61, 0.32);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(239, 35, 60, 0.16), transparent 17%, transparent 83%, rgba(255, 197, 61, 0.13)),
    radial-gradient(circle at top center, rgba(255, 197, 61, 0.16), transparent 34rem),
    linear-gradient(180deg, #070b12 0%, #0b1220 48%, #090d15 100%);
  letter-spacing: 0;
  min-width: 320px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.32;
  background:
    linear-gradient(135deg, transparent 0 46%, rgba(255, 197, 61, 0.12) 47% 49%, transparent 50%),
    linear-gradient(45deg, transparent 0 46%, rgba(47, 179, 68, 0.09) 47% 49%, transparent 50%);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 68%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 5px;
  opacity: 0.2;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(255, 197, 61, 0.9);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 30;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: var(--radius);
  color: #120a02;
  background: var(--gold);
  font-weight: 800;
  transition: transform 180ms ease;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: calc(100% - 32px);
  max-width: var(--max);
  margin: 16px auto 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(7, 11, 18, 0.58);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(7, 11, 18, 0.88);
  border-color: rgba(255, 197, 61, 0.22);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  color: var(--gold);
  background: rgba(255, 197, 61, 0.08);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.main-nav a,
.header-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 750;
  white-space: nowrap;
}

.main-nav a {
  padding: 0 12px;
  color: var(--muted);
}

.main-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.header-action {
  justify-self: end;
  padding: 0 16px;
  color: #170e03;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 10px 30px rgba(255, 159, 28, 0.22);
}

.hero {
  position: relative;
  min-height: 90svh;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-shot {
  position: absolute;
  width: 58vw;
  min-width: 680px;
  max-width: 960px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  filter: saturate(0.95) contrast(1.05);
}

.hero-shot-karata {
  top: 15%;
  right: -12%;
  height: 52vh;
  object-position: center;
  transform: rotate(-2deg);
  opacity: 0.62;
}

.hero-shot-ludo {
  bottom: -13%;
  left: 48%;
  height: 58vh;
  object-position: center 56%;
  transform: rotate(2deg);
  opacity: 0.5;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 11, 18, 0.98) 0%, rgba(7, 11, 18, 0.88) 38%, rgba(7, 11, 18, 0.38) 68%, rgba(7, 11, 18, 0.74) 100%),
    linear-gradient(180deg, rgba(7, 11, 18, 0.2), #070b12 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: calc(100% - 32px);
  max-width: var(--max);
  min-height: 90svh;
  margin: 0 auto;
  padding: 128px 0 54px;
  display: grid;
  align-items: end;
  gap: 56px;
}

.hero-copy {
  width: min(720px, 100%);
}

.company,
.section-label,
.game-label {
  margin: 0;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

h1 {
  overflow-wrap: normal;
  text-wrap: balance;
}

h1 {
  max-width: 780px;
  margin: 16px 0 0;
  font-size: 4.8rem;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: #e2e8f1;
  font-size: 1.22rem;
  line-height: 1.55;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #160d03;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 16px 42px rgba(255, 159, 28, 0.22);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
}

.button-secondary:hover {
  border-color: var(--gold-border);
  background: rgba(255, 197, 61, 0.08);
}

.hero-games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 820px;
}

.launch-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 16px;
  min-height: 118px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(16, 26, 41, 0.9), rgba(14, 17, 22, 0.76));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.launch-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-border);
}

.launch-image {
  height: 88px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.launch-karata .launch-image {
  background: rgba(125, 59, 16, 0.34);
}

.launch-ludo .launch-image {
  background: rgba(16, 46, 73, 0.52);
}

.launch-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.launch-ludo .launch-image img {
  padding: 0;
  object-fit: cover;
  object-position: center 38%;
}

.launch-copy strong {
  display: block;
  font-size: 1.28rem;
}

.launch-copy {
  min-width: 0;
}

.launch-copy small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.35;
}

.launch-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold-border);
  border-radius: 6px;
  color: var(--gold);
}

.launch-arrow svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section {
  width: calc(100% - 32px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px 0;
}

#games,
#platforms,
#tester {
  scroll-margin-top: 120px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.42fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 30px;
}

.section-heading .section-label {
  grid-column: 1 / -1;
}

.section-heading h2,
.platform-copy h2,
.tester-section h2 {
  margin: 0;
  max-width: 760px;
  font-size: 2.48rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p:not(.section-label),
.platform-copy p:not(.section-label),
.tester-section p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.game-grid {
  display: grid;
  gap: 18px;
}

.game-panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(320px, 1fr);
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(16, 26, 41, 0.86), rgba(10, 15, 24, 0.92)),
    var(--surface-strong);
  box-shadow: var(--shadow);
}

.game-panel-ludo {
  grid-template-columns: minmax(320px, 0.76fr) minmax(320px, 1fr);
}

.game-visual {
  min-height: 420px;
  position: relative;
  overflow: hidden;
  background: #0d1421;
}

.game-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 72%, rgba(7, 11, 18, 0.74)),
    linear-gradient(180deg, transparent, rgba(7, 11, 18, 0.16));
}

.game-panel-ludo .game-visual::after {
  background:
    linear-gradient(90deg, transparent 62%, rgba(7, 11, 18, 0.76)),
    linear-gradient(180deg, rgba(7, 11, 18, 0.08), rgba(7, 11, 18, 0.24));
}

.game-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-panel-karata .game-visual img {
  object-position: center;
}

.game-panel-ludo .game-visual img {
  object-fit: cover;
  object-position: center 45%;
}

.game-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 44px;
}

.game-title-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.game-title-row img {
  width: 118px;
  height: 70px;
  object-fit: contain;
  border-radius: 6px;
}

.game-panel-ludo .game-title-row img {
  width: 88px;
  height: 88px;
}

.game-content h3 {
  margin: 6px 0 0;
  font-size: 2.35rem;
  line-height: 1;
}

.game-content p:not(.game-label) {
  margin: 0;
  max-width: 570px;
  color: #d9e0eb;
  font-size: 1.04rem;
  line-height: 1.7;
}

.status-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 9px 12px;
  border: 1px solid rgba(47, 179, 68, 0.28);
  border-radius: var(--radius);
  color: #dff8e5;
  background: rgba(47, 179, 68, 0.08);
  font-size: 0.9rem;
  font-weight: 750;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(47, 179, 68, 0.12);
}

.platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-link,
.platform-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: #e7edf7;
  font-size: 0.84rem;
  font-weight: 780;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.platform-link {
  padding: 0 11px;
}

.platform-link:hover,
.platform-pill:hover {
  transform: translateY(-2px);
  border-color: var(--gold-border);
  background: rgba(255, 197, 61, 0.08);
}

.platform-link.soon,
.platform-pill.soon {
  color: #c7d0dc;
}

.platform-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.platform-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.platform-section {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(420px, 1fr);
  gap: 36px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.platform-copy {
  display: grid;
  gap: 12px;
}

.platform-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.platform-pill {
  min-height: 86px;
  flex-direction: column;
  padding: 12px 10px;
}

.tester-section {
  width: calc(100% - 32px);
  max-width: var(--max);
  margin: 0 auto 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 42px;
  overflow: hidden;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(91, 44, 15, 0.84), rgba(12, 18, 30, 0.9)),
    var(--surface-warm);
  box-shadow: var(--shadow);
}

.tester-section p {
  max-width: 610px;
  margin-top: 12px;
}

.tester-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.site-footer {
  width: calc(100% - 32px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
}

.site-footer p {
  margin: 6px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-weight: 720;
}

.site-footer a:hover {
  color: var(--gold);
}

.copyright {
  grid-column: 1 / -1;
  font-size: 0.86rem;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: min(360px, calc(100vw - 36px));
  padding: 13px 15px;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(9, 14, 22, 0.94);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  h1 {
    font-size: 3.75rem;
  }

  .hero-shot {
    min-width: 560px;
  }

  .hero-shot-karata {
    right: -38%;
  }

  .hero-shot-ludo {
    left: 35%;
  }

  .hero-games,
  .section-heading,
  .game-panel,
  .game-panel-ludo,
  .platform-section,
  .tester-section {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 14px;
  }

  .game-panel-ludo .game-visual {
    order: 0;
  }

  .platform-strip {
    grid-template-columns: repeat(5, minmax(84px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .tester-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .site-header {
    width: calc(100% - 20px);
    max-width: var(--max);
    margin-top: 10px;
    padding: 10px;
    gap: 12px;
  }

  .brand-mark {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 0.9rem;
  }

  .brand small {
    display: none;
  }

  .header-action {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    width: calc(100% - 44px);
    max-width: var(--max);
    min-height: 92svh;
    padding: 104px 0 34px;
    gap: 30px;
  }

  .hero-copy,
  .hero-games {
    width: 100%;
    max-width: 19rem;
    min-width: 0;
  }

  .hero-shot {
    min-width: 520px;
    width: 145vw;
  }

  .hero-shot-karata {
    top: 18%;
    right: -78%;
    height: 40vh;
  }

  .hero-shot-ludo {
    bottom: 2%;
    left: 18%;
    height: 40vh;
  }

  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(7, 11, 18, 0.96) 0%, rgba(7, 11, 18, 0.82) 50%, rgba(7, 11, 18, 0.96) 100%),
      linear-gradient(90deg, rgba(7, 11, 18, 0.88), rgba(7, 11, 18, 0.48));
  }

  h1 {
    font-size: 2.1rem;
    line-height: 1;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .button {
    width: 100%;
    min-height: 48px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 19rem;
  }

  .hero-games {
    gap: 10px;
  }

  .launch-card {
    grid-template-columns: 74px minmax(0, 1fr) 34px;
    min-height: 96px;
    gap: 12px;
    padding: 10px;
  }

  .launch-image {
    height: 74px;
  }

  .launch-copy strong {
    font-size: 1.05rem;
  }

  .launch-copy small {
    font-size: 0.82rem;
  }

  .launch-arrow {
    width: 34px;
    height: 34px;
  }

  .section {
    width: calc(100% - 44px);
    max-width: var(--max);
    padding: 58px 0;
  }

  .section-heading h2,
  .platform-copy h2,
  .tester-section h2 {
    font-size: 2rem;
  }

  .game-panel {
    min-height: 0;
  }

  .game-visual {
    min-height: 260px;
  }

  .game-content {
    padding: 24px;
  }

  .game-title-row {
    align-items: flex-start;
    gap: 12px;
  }

  .game-title-row img {
    width: 88px;
    height: 54px;
  }

  .game-panel-ludo .game-title-row img {
    width: 64px;
    height: 64px;
  }

  .game-content h3 {
    font-size: 1.9rem;
  }

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

  .platform-link {
    min-width: 0;
    padding: 0 8px;
  }

  .platform-section {
    gap: 22px;
  }

  .platform-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .platform-pill {
    min-height: 72px;
  }

  .tester-section {
    width: calc(100% - 44px);
    max-width: var(--max);
    margin-bottom: 44px;
    padding: 26px;
  }

  .site-footer {
    width: calc(100% - 44px);
    max-width: var(--max);
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
