@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/fredoka-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/fredoka-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #06142d;
  --navy-soft: #0d2242;
  --ink: #17202a;
  --paper: #ffffff;
  --surface: #f2f5f8;
  --line: #d7dee7;
  --muted: #5d6977;
  --light: #f5f8fc;
  --light-muted: #b6c4d6;
  --cyan: #49c9f2;
  --green: #42e575;
  --yellow: #ffd34e;
  --coral: #ff6372;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  min-width: 320px;
  min-height: 100%;
  background: var(--surface);
  color: var(--ink);
  font-family: "Fredoka", "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Noto Sans Devanagari", "Leelawadee UI", "Tahoma", sans-serif;
}
a { color: inherit; }

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  background: rgba(6, 20, 45, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}
.nav-inner {
  width: min(1180px, 100%);
  min-height: 72px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-brand { flex: 0 1 190px; }
.nav-brand img { display: block; width: min(190px, 100%); height: auto; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.nav-links > a {
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--light-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.nav-links > a:hover,
.nav-links > a:focus-visible { color: var(--paper); }
.nav-links .nav-play {
  min-width: 68px;
  color: #07321a;
  background: var(--green);
  border-radius: 6px;
}
.nav-links .nav-play:hover,
.nav-links .nav-play:focus-visible { color: #07321a; background: #64ef8e; }

.lang-wrap { position: relative; }
.lang-wrap button {
  position: relative;
  min-width: 112px;
  min-height: 44px;
  padding: 0 34px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.lang-wrap button::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
}
.lang-wrap button:hover,
.lang-wrap button[aria-expanded="true"] { border-color: var(--cyan); color: var(--cyan); }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  min-width: 200px;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 6px;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(9, 18, 31, 0.22);
}
.lang-menu[hidden] { display: none; }
.lang-menu [role="option"] {
  display: block;
  padding: 10px 12px;
  border-radius: 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.lang-menu [role="option"]:hover,
.lang-menu [role="option"]:focus { outline: none; background: #eaf4fb; }
.lang-menu [aria-selected="true"] { background: var(--green); color: #07321a; }

.hero {
  position: relative;
  min-height: min(590px, calc(100svh - 178px));
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 64px 24px 170px;
  background-color: var(--navy);
  color: var(--light);
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  text-align: center;
}
.eyebrow {
  margin-bottom: 14px;
  color: #35d8f4;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 12em;
  margin: 0 auto 20px;
  font-size: 64px;
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.42);
}
.lede {
  max-width: 42em;
  margin: 0 auto;
  color: var(--light-muted);
  font-size: 20px;
  line-height: 1.55;
  text-wrap: balance;
}
.hero .btn { margin-top: 30px; }
.hero-art { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-game {
  position: absolute;
  width: clamp(150px, 20vw, 280px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22%;
  box-shadow: 0 28px 55px rgba(0, 0, 0, 0.42);
}
.hero-fit {
  left: max(20px, calc(50% - 550px));
  bottom: -70px;
  transform: rotate(-7deg);
}
.hero-sort { left: 50%; bottom: -125px; transform: translateX(-50%); }
.hero-arrow {
  right: max(20px, calc(50% - 550px));
  bottom: -70px;
  transform: rotate(7deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible,
.game-visual:focus-visible,
.nav a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.btn-primary { color: #07321a; background: var(--green); }
.btn-primary:hover { background: #64ef8e; }
.btn-dark { color: var(--paper); background: var(--ink); }
.btn-dark:hover { background: #293541; }

.games { background: var(--paper); }
.section-head {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 48px 24px;
  text-align: center;
}
.section-head h2 {
  margin-bottom: 12px;
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: 0;
}
.section-head > p:last-child { color: var(--muted); font-size: 17px; line-height: 1.5; }
.game-list { border-top: 1px solid var(--line); }
.game-row {
  --accent: var(--cyan);
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(42px, 7vw, 92px);
  border-bottom: 1px solid var(--line);
}
.game-fit { --accent: #3f68ff; }
.game-sort { --accent: #12b6d7; }
.game-arrow { --accent: #00b892; }
.game-visual {
  display: grid;
  place-items: center;
  min-height: 360px;
  background: #e9eef5;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
}
.game-fit .game-visual { background: #3153b8; }
.game-sort .game-visual { background: #e8f2f7; }
.game-arrow .game-visual { background: #123d38; }
.game-visual img {
  width: min(78%, 330px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22%;
  box-shadow: 0 22px 42px rgba(8, 20, 38, 0.3);
  transition: transform 180ms ease;
}
.game-visual:hover img { transform: scale(1.025); }
.game-copy { min-width: 0; }
.game-kicker {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
.game-copy h3 {
  margin-bottom: 16px;
  font-size: 56px;
  line-height: 1;
  letter-spacing: 0;
}
.game-body { max-width: 43em; color: var(--muted); font-size: 17px; line-height: 1.65; }
.game-facts {
  margin: 30px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 150px));
  gap: 26px;
}
.game-facts span { padding-top: 12px; border-top: 3px solid var(--accent); }
.game-facts strong,
.game-facts small { display: block; }
.game-facts strong { min-height: 36px; font-size: 28px; line-height: 1.15; }
.game-facts small { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.foot {
  padding: 38px 24px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--navy);
  color: var(--light-muted);
  text-align: center;
  font-size: 14px;
}
.foot img { width: 150px; height: auto; }

#analytics-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  width: min(420px, calc(100% - 36px));
  padding: 18px;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 16px 44px rgba(6, 20, 45, 0.26);
}
#analytics-consent p { font-size: 15px; line-height: 1.5; }
#analytics-consent > a { display: inline-block; margin-top: 7px; color: #245cc7; font-size: 13px; }
#analytics-consent div { margin-top: 14px; display: flex; justify-content: flex-end; gap: 8px; }
#analytics-consent button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
#analytics-consent [data-consent="granted"] { border-color: var(--green); background: var(--green); color: #07321a; }

.foot a { color: var(--light-muted); }
.privacy-main { min-height: calc(100vh - 72px); padding: 72px 24px 88px; background: #ffffff; }
.privacy-inner { width: min(760px, 100%); margin: 0 auto; }
.privacy-inner > a { color: #245cc7; font-weight: 700; }
.privacy-inner h1 { margin: 28px 0 16px; font-size: 46px; line-height: 1.15; letter-spacing: 0; }
.privacy-inner h2 { margin: 38px 0 10px; font-size: 24px; letter-spacing: 0; }
.privacy-inner p,
.privacy-inner li { color: var(--muted); font-size: 16px; line-height: 1.7; }
.privacy-inner ul { margin-top: 10px; padding-left: 22px; }
.analytics-settings { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.analytics-settings div { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.analytics-settings button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 5px; background: #ffffff; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.analytics-settings [data-consent="granted"] { border-color: var(--green); background: var(--green); color: #07321a; }
.analytics-status { margin-top: 12px; font-weight: 700; }

html[lang="hi"] .hero h1 {
  font-size: 56px;
  line-height: 1.25;
}

html[lang="ja"] .hero h1,
html[lang="th"] .hero h1 {
  font-size: 58px;
  line-height: 1.2;
}

@media (max-width: 760px) {
  .nav-inner { min-height: 66px; padding: 8px 16px; gap: 10px; }
  .nav-brand { flex-basis: 142px; }
  .nav-brand img { width: 142px; }
  .nav-games { display: none !important; }
  .nav-links { gap: 7px; }
  .nav-links .nav-play { min-width: 56px; padding: 0 10px; }
  .lang-wrap button { min-width: 88px; padding-left: 10px; padding-right: 28px; }
  .hero {
    min-height: min(650px, calc(100svh - 86px));
    padding: 48px 20px 150px;
  }
  .hero h1 { font-size: 46px; }
  html[lang="hi"] .hero h1,
  html[lang="ja"] .hero h1,
  html[lang="th"] .hero h1 { font-size: 42px; }
  .lede { font-size: 17px; }
  .section-head h2 { font-size: 36px; }
  .hero-game { width: clamp(105px, 32vw, 138px); }
  .hero-fit { left: 12px; bottom: -24px; }
  .hero-sort { bottom: -48px; }
  .hero-arrow { right: 12px; bottom: -24px; }
  .section-head { padding: 58px 20px 36px; }
  .game-row { padding: 32px 20px 44px; grid-template-columns: 1fr; gap: 30px; }
  .game-visual { min-height: 0; aspect-ratio: 4 / 3; }
  .game-visual img { width: min(66%, 260px); }
  .game-copy h3 { font-size: 40px; }
  .game-body { font-size: 16px; }
  .game-facts {
    margin: 24px 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .privacy-main { padding: 52px 20px 68px; }
  .privacy-inner h1 { font-size: 36px; }
}

@media (max-width: 390px) {
  .nav-brand,
  .nav-brand img { width: 126px; flex-basis: 126px; }
  .nav-links .nav-play { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn,
  .game-visual img { transition: none; }
}
