/* =========================================================
   Hungames — one-page site
   Desktop (>=1024px) reproduces the design at its exact proportions:
   every size is expressed in design pixels × --u (1 design px = --u).
   Tablet / mobile use a fluid layout built from the same assets.
   ========================================================= */

:root {
  --ink: #12173f;
  --ink-2: #353c66;
  --eyebrow: #1e77ad;
  --font: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-logo: "Montserrat", var(--font);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #061a3f;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
strong { font-weight: inherit; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.page { container-type: inline-size; overflow-x: clip; }

/* ---------- Shared pieces ---------- */

.logo {
  display: inline-block;
  font-family: var(--font-logo);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}
.logo-u { position: relative; display: inline-block; }
.crown {
  position: absolute;
  top: .09em;
  left: 50%;
  width: .56em;
  height: .28em;
  transform: translateX(-50%);
}

.eyebrow { font-weight: 800; text-transform: uppercase; color: var(--eyebrow); }
.section-title { font-weight: 800; color: var(--ink); }
.lead { font-weight: 500; color: var(--ink-2); }

.grad {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.grad-1 { background-image: linear-gradient(90deg, #6fb0ff 0%, #7ea5f4 20%, #8e86f2 37%, #b77df7 55%, #d892fd 72%, #d26af4 100%); }
.grad-2 { background-image: linear-gradient(90deg, #5fe0fb 0%, #67c9f8 45%, #8fa8fb 70%, #c891ff 90%, #c46df4 100%); }

/* Store badges — everything is in em of the badge height */
.store {
  position: relative;
  display: block;
  flex: none;
  width: 3.355em;
  height: 1em;
  border: max(1px, .024em) solid rgba(150, 150, 166, .8);
  border-radius: .16em;
  background: #000;
  color: #fff;
  line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease;
}
.store:hover { transform: translateY(-.05em); box-shadow: 0 .12em .3em rgba(0, 0, 0, .35); }
.store:focus-visible { outline: 2px solid #6cc3f0; outline-offset: 2px; }
.store-as { width: 3.117em; }
.store-icon { position: absolute; left: .29em; top: .178em; width: .572em; height: .63em; }
.store-as .store-icon { left: .343em; top: .19em; width: .497em; height: .581em; color: #fff; }
.store-text {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 2.68em; /* 1em of the badge */
  padding-top: 1.037em;
  font-size: .373em;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1;
  white-space: nowrap;
}
.store-text small {
  position: absolute;
  left: .04em;
  top: 16.7%;
  font-size: .504em;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
}
.store-as .store-text { left: 2.76em; }
.store-as .store-text small { top: 18.3%; font-size: .539em; font-weight: 600; letter-spacing: 0; }

/* Feature icons */
.feat-gold { color: #fcd42f; }
.feat-violet { color: #cdbcff; filter: drop-shadow(0 0 .12em rgba(170, 140, 255, .8)); }
.feat-mint { fill: #0f8a64; stroke: #dcfbef; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }

/* Approach arrow */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 12'%3E%3Cpath d='M1 6h25M21.2 1.6 25.8 6l-4.6 4.4' fill='none' stroke='%236f8fd6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.step-icon {
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
}

.stat-icon { color: var(--c); filter: drop-shadow(0 0 3px color-mix(in srgb, var(--c) 55%, transparent)); }

.mail-btn {
  display: flex;
  align-items: center;
  font-weight: 800;
  color: var(--ink);
  background: rgba(255, 255, 255, .72);
  transition: background-color .2s ease, border-color .2s ease;
}
.mail-btn:hover { background: #fff; border-color: #aab3c7; }
.mail-btn svg { flex: none; color: #0d1233; }

/* =========================================================
   DESKTOP — exact design proportions
   ========================================================= */
@media (min-width: 1024px) {
  .page { --u: min(100cqw / 763, 1.7px); }

  .hero, .games, .hunika, .approach, .numbers, .contact, .footer { position: relative; }

  .frame { position: relative; width: calc(763 * var(--u)); height: 100%; margin: 0 auto; }
  .frame > * { position: absolute; }

  /* HERO */
  .hero {
    height: calc(328 * var(--u));
    background: url("assets/bg-hero.jpg") center top / auto 100% no-repeat,
                linear-gradient(90deg, #203359 50%, #bac8b8 50%);
  }
  .hero-art { display: none; }
  .hero .logo { left: calc(44.2 * var(--u)); top: calc(18.9 * var(--u)); font-size: calc(26 * var(--u)); }
  .hero-eyebrow {
    left: calc(45.5 * var(--u)); top: calc(73.8 * var(--u));
    font-size: calc(8.45 * var(--u)); line-height: calc(10 * var(--u));
    letter-spacing: .409em; font-weight: 700; color: #c3cddd;
  }
  .hero-title {
    left: calc(45.6 * var(--u)); top: calc(91.1 * var(--u)); width: calc(228 * var(--u));
    font-size: calc(33 * var(--u)); line-height: calc(33.33 * var(--u));
    font-weight: 800; color: #fff;
  }
  .hero-text {
    left: calc(45.2 * var(--u)); top: calc(235.4 * var(--u)); width: calc(235 * var(--u));
    font-size: calc(11.45 * var(--u)); line-height: calc(15.5 * var(--u));
    font-weight: 500; color: #dcdef0;
  }

  /* OUR GAMES */
  .games {
    height: calc(560 * var(--u));
    background: url("assets/bg-games.jpg") center top / auto 100% no-repeat,
                linear-gradient(90deg, #daeae7 50%, #d7e7dd 50%);
  }
  .games-eyebrow, .games-title { left: 0; right: 0; text-align: center; }
  .games-eyebrow {
    top: calc(18.8 * var(--u));
    font-size: calc(8.45 * var(--u)); line-height: calc(10 * var(--u));
    letter-spacing: .24em; padding-left: .24em;
  }
  .games-title { top: calc(31.2 * var(--u)); font-size: calc(28 * var(--u)); line-height: calc(32 * var(--u)); }
  .games-lead {
    left: calc(174 * var(--u)); top: calc(68.1 * var(--u)); width: calc(415 * var(--u));
    font-size: calc(12.3 * var(--u)); line-height: calc(17.5 * var(--u)); text-align: center;
  }

  .game-grid {
    left: calc(32.5 * var(--u)); top: calc(120 * var(--u));
    width: calc(698 * var(--u)); height: calc(313.5 * var(--u));
    display: grid; grid-template-columns: 1fr 1fr; gap: calc(12 * var(--u));
  }
  .game-card {
    position: relative;
    border-radius: calc(10 * var(--u));
    color: #fff;
    box-shadow: 0 0 0 calc(1 * var(--u)) rgba(255, 255, 255, .8), 0 calc(6 * var(--u)) calc(16 * var(--u)) rgba(28, 20, 70, .14);
  }
  .card-slotcat { background: #1e0b4d url("assets/card-slotcat.jpg") 0 0 / 100% 100% no-repeat; }
  .card-holdem { background: #023427 url("assets/card-holdem.jpg") 0 0 / 100% 100% no-repeat; }
  .game-card > * { position: absolute; }
  .game-card .app-icon {
    left: calc(16 * var(--u)); top: calc(15.5 * var(--u));
    width: calc(72 * var(--u)); height: calc(72 * var(--u)); border-radius: calc(13 * var(--u));
  }
  .game-title { left: calc(103.5 * var(--u)); top: calc(26.9 * var(--u)); font-size: calc(24 * var(--u)); line-height: calc(26 * var(--u)); font-weight: 800; }
  .game-sub { left: calc(103.5 * var(--u)); top: calc(59.3 * var(--u)); font-size: calc(11.7 * var(--u)); line-height: calc(14 * var(--u)); font-weight: 500; }
  .game-desc {
    left: calc(19 * var(--u)); top: calc(101 * var(--u));
    font-size: calc(10.6 * var(--u)); line-height: calc(15 * var(--u));
    font-weight: 500; color: rgba(255, 255, 255, .92); white-space: nowrap;
  }
  .features {
    left: 0; top: calc(186 * var(--u)); width: calc(326 * var(--u));
    display: grid; grid-template-columns: repeat(4, 1fr);
  }
  .features li { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .feat-icon { width: calc(21 * var(--u)); height: calc(21 * var(--u)); }
  .feat-wide { width: calc(25 * var(--u)); }
  .features span { margin-top: calc(4.75 * var(--u)); font-size: calc(10.7 * var(--u)); line-height: calc(13.5 * var(--u)); font-weight: 600; }
  .game-card .stores { left: calc(24.5 * var(--u)); top: calc(257 * var(--u)); display: flex; gap: calc(18 * var(--u)); }
  .game-card .store { font-size: calc(43.7 * var(--u)); }

  .offline-card {
    left: calc(32.5 * var(--u)); top: calc(444 * var(--u));
    width: calc(698 * var(--u)); height: calc(103 * var(--u));
    border-radius: calc(10 * var(--u));
    background: linear-gradient(180deg, rgba(220, 236, 253, .94), rgba(234, 244, 254, .94));
    box-shadow: inset 0 0 0 calc(1.2 * var(--u)) rgba(255, 255, 255, .95), 0 calc(6 * var(--u)) calc(18 * var(--u)) rgba(80, 110, 170, .08);
  }
  .offline-card > * { position: absolute; }
  .offline-card .app-icon {
    left: calc(37 * var(--u)); top: calc(14.5 * var(--u));
    width: calc(75 * var(--u)); height: calc(75 * var(--u)); border-radius: calc(13 * var(--u));
    box-shadow: 0 calc(3 * var(--u)) calc(8 * var(--u)) rgba(40, 20, 80, .18);
  }
  .offline-text { left: calc(131.5 * var(--u)); top: calc(21.7 * var(--u)); }
  .offline-text h3 { font-size: calc(17.4 * var(--u)); line-height: calc(20 * var(--u)); font-weight: 800; }
  .offline-text p { margin-top: calc(3.4 * var(--u)); font-size: calc(11.6 * var(--u)); line-height: calc(16 * var(--u)); font-weight: 500; color: var(--ink-2); white-space: nowrap; }
  .offline-card .stores { right: calc(28.3 * var(--u)); top: calc(30 * var(--u)); display: flex; gap: calc(11 * var(--u)); }
  .offline-card .store { font-size: calc(43 * var(--u)); width: 3.42em; }
  .offline-card .store-as { width: 3.26em; }

  /* HUNIKA */
  .hunika {
    height: calc(412 * var(--u));
    background: url("assets/bg-hunika.jpg") center top / auto 100% no-repeat,
                linear-gradient(90deg, #fdeed8 50%, #f5ebd3 50%);
  }
  .hunika-art { display: none; }
  .hunika-eyebrow {
    left: calc(50.5 * var(--u)); top: calc(24.2 * var(--u));
    font-size: calc(9.86 * var(--u)); line-height: calc(12 * var(--u));
    letter-spacing: .135em; color: #fb8c1c;
  }
  .hunika-logo { left: calc(46 * var(--u)); top: calc(37 * var(--u)); width: calc(240 * var(--u)); height: calc(75 * var(--u)); }
  .hunika-logo img { width: 100%; height: 100%; }
  .hunika-tag { left: calc(50.5 * var(--u)); top: calc(107.6 * var(--u)); font-size: calc(20.2 * var(--u)); line-height: calc(24 * var(--u)); font-weight: 800; }
  .hunika-text {
    left: calc(50.5 * var(--u)); top: calc(142.1 * var(--u)); width: calc(305 * var(--u));
    font-size: calc(12.3 * var(--u)); line-height: calc(17.5 * var(--u)); font-weight: 500; color: var(--ink-2);
  }
  .hunika-grid {
    left: calc(33 * var(--u)); top: calc(217 * var(--u));
    width: calc(697 * var(--u)); height: calc(191 * var(--u));
    display: grid; grid-template-columns: repeat(5, 1fr); gap: calc(2.5 * var(--u));
  }
  .mini-card {
    display: flex; flex-direction: column; align-items: center;
    background: #fff; border-radius: calc(8 * var(--u));
    box-shadow: 0 calc(2 * var(--u)) calc(8 * var(--u)) rgba(120, 90, 50, .08);
  }
  .mini-icon { margin-top: calc(10 * var(--u)); width: calc(80 * var(--u)); height: calc(80 * var(--u)); border-radius: calc(13 * var(--u)); }
  .mini-card h3 { margin-top: calc(6.3 * var(--u)); font-size: calc(10.1 * var(--u)); line-height: calc(12 * var(--u)); font-weight: 800; }
  .stores-sm { margin-top: calc(6.7 * var(--u)); display: flex; flex-direction: column; align-items: center; gap: calc(4.5 * var(--u)); }
  .stores-sm .store { font-size: calc(30.5 * var(--u)); width: 3.25em; }

  /* OUR APPROACH */
  .approach {
    height: calc(298 * var(--u));
    background: url("assets/bg-approach.jpg") center top / auto 100% no-repeat,
                linear-gradient(90deg, #c6e2da 50%, #e0e6d6 50%);
  }
  .approach-eyebrow, .approach-title { left: 0; right: 0; text-align: center; }
  .approach-eyebrow {
    top: calc(37.8 * var(--u));
    font-size: calc(8.45 * var(--u)); line-height: calc(10 * var(--u));
    letter-spacing: .174em; padding-left: .174em;
  }
  .approach-title { top: calc(55.1 * var(--u)); font-size: calc(24.9 * var(--u)); line-height: calc(28 * var(--u)); }
  .approach-lead {
    left: calc(209 * var(--u)); top: calc(89.1 * var(--u)); width: calc(345 * var(--u));
    font-size: calc(12.4 * var(--u)); line-height: calc(18.5 * var(--u)); text-align: center;
  }
  .steps {
    left: calc(32.5 * var(--u)); top: calc(147 * var(--u)); width: calc(698 * var(--u));
    display: grid; grid-template-columns: repeat(5, 1fr);
  }
  .step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .step-icon {
    width: calc(54 * var(--u)); height: calc(54 * var(--u));
    box-shadow: calc(-3 * var(--u)) calc(5 * var(--u)) calc(10 * var(--u)) color-mix(in srgb, var(--c) 40%, transparent);
  }
  .step-icon svg { width: calc(28 * var(--u)); height: calc(28 * var(--u)); }
  .step h3 { margin-top: calc(8.8 * var(--u)); font-size: calc(14.7 * var(--u)); line-height: calc(18 * var(--u)); font-weight: 800; }
  .step p { margin-top: calc(3 * var(--u)); font-size: calc(11 * var(--u)); line-height: calc(15 * var(--u)); font-weight: 500; color: #34406a; white-space: nowrap; }
  .step:not(:last-child)::after { top: calc(23 * var(--u)); right: calc(-13.5 * var(--u)); width: calc(27 * var(--u)); height: calc(10 * var(--u)); }

  /* BY THE NUMBERS */
  .numbers {
    height: calc(207 * var(--u));
    color: #fff;
    background: url("assets/bg-numbers.jpg") center top / auto 100% no-repeat,
                linear-gradient(90deg, #353e60 50%, #52397b 50%);
  }
  .numbers-eyebrow, .numbers-title { left: 0; right: 0; text-align: center; }
  .numbers-eyebrow {
    top: calc(24.8 * var(--u));
    font-size: calc(8.45 * var(--u)); line-height: calc(10 * var(--u));
    letter-spacing: .2em; padding-left: .2em; color: #6cc3f0;
  }
  .numbers-title { top: calc(42 * var(--u)); font-size: calc(21.5 * var(--u)); line-height: calc(26 * var(--u)); color: #fff; }
  .stats {
    left: calc(53 * var(--u)); top: calc(87 * var(--u)); width: calc(653 * var(--u));
    display: grid; grid-template-columns: repeat(4, 1fr);
  }
  .stat { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .stat + .stat::before {
    content: ""; position: absolute; left: 0; top: calc(6 * var(--u));
    width: max(1px, calc(.8 * var(--u))); height: calc(84 * var(--u));
    background: rgba(255, 255, 255, .13);
  }
  .stat-icon { width: calc(38 * var(--u)); height: calc(38 * var(--u)); }
  .stat-icon-wide { width: calc(45 * var(--u)); }
  .stat strong { margin-top: calc(7.4 * var(--u)); font-size: calc(22.5 * var(--u)); line-height: calc(26 * var(--u)); font-weight: 800; }
  .stat > span { margin-top: calc(4.1 * var(--u)); font-size: calc(10.5 * var(--u)); line-height: calc(13 * var(--u)); font-weight: 500; color: rgba(255, 255, 255, .9); }

  /* CONTACT */
  .contact {
    height: calc(181 * var(--u));
    background: url("assets/bg-contact.jpg") center top / auto 100% no-repeat,
                linear-gradient(90deg, #a5ae88 50%, #788e81 50%);
  }
  .contact-eyebrow {
    left: calc(117.5 * var(--u)); top: calc(21.8 * var(--u));
    font-size: calc(8.45 * var(--u)); line-height: calc(10 * var(--u)); letter-spacing: .181em;
  }
  .contact-title { left: calc(118.3 * var(--u)); top: calc(35.1 * var(--u)); font-size: calc(24.6 * var(--u)); line-height: calc(28 * var(--u)); }
  .contact-text {
    left: calc(118 * var(--u)); top: calc(66.4 * var(--u));
    font-size: calc(12.4 * var(--u)); line-height: calc(17 * var(--u));
    font-weight: 500; color: var(--ink-2); white-space: nowrap;
  }
  .mail-btn {
    left: calc(117 * var(--u)); top: calc(113 * var(--u));
    width: calc(199 * var(--u)); height: calc(38 * var(--u));
    padding: 0 0 calc(1.5 * var(--u)) calc(21 * var(--u)); gap: calc(13.5 * var(--u));
    border: calc(1.4 * var(--u)) solid #cfd3dd; border-radius: calc(19 * var(--u));
    font-size: calc(13.6 * var(--u)); line-height: 1;
    box-shadow: 0 calc(3 * var(--u)) calc(10 * var(--u)) rgba(120, 90, 60, .08);
  }
  .mail-btn svg { width: calc(19.5 * var(--u)); height: calc(14 * var(--u)); }
  .handwriting { left: calc(494 * var(--u)); top: calc(11 * var(--u)); width: calc(167 * var(--u)); height: calc(108 * var(--u)); }

  /* FOOTER */
  .footer { height: calc(76 * var(--u)); background: linear-gradient(180deg, #0a1b3f, #07153a); }
  .footer-logo { left: calc(49.5 * var(--u)); top: calc(20.1 * var(--u)); font-size: calc(18.4 * var(--u)); }
  .footer-tag {
    left: calc(51.5 * var(--u)); top: calc(45.8 * var(--u));
    font-size: calc(7.04 * var(--u)); line-height: calc(9 * var(--u));
    letter-spacing: .27em; font-weight: 700; text-transform: uppercase; color: #aeb5c3;
  }
  .copy { right: calc(53 * var(--u)); top: calc(33.3 * var(--u)); font-size: calc(8.3 * var(--u)); line-height: calc(10 * var(--u)); font-weight: 500; color: rgba(255, 255, 255, .86); }
}

/* =========================================================
   TABLET & MOBILE — fluid layout
   ========================================================= */
@media (max-width: 1023.98px) {
  .frame { position: relative; width: min(100% - 40px, 760px); margin: 0 auto; }

  .eyebrow { font-size: 11px; line-height: 1.3; letter-spacing: .24em; }
  .section-title { margin-top: 10px; font-size: clamp(26px, 6.2vw, 38px); line-height: 1.15; }
  .lead { margin: 12px auto 0; max-width: 34em; font-size: 15px; line-height: 1.6; }
  .game-desc br, .step p br, .contact-text br, .offline-text br { display: none; }

  /* HERO */
  .hero {
    position: relative;
    padding-top: 26px;
    background: linear-gradient(180deg, #02163a 0%, #07204a 60%, #1a2766 100%);
    overflow: hidden;
  }
  .hero .logo { font-size: 24px; }
  .hero-eyebrow { margin-top: 34px; font-size: 11px; letter-spacing: .34em; font-weight: 700; color: #c3cddd; }
  .hero-title {
    margin-top: 12px;
    width: 6.95em;
    font-size: clamp(36px, 9.4vw, 60px);
    line-height: 1.03;
    font-weight: 800;
    color: #fff;
  }
  .hero-text { margin-top: 16px; max-width: 26em; font-size: 15px; line-height: 1.55; font-weight: 500; color: #dcdef0; }
  .hero-art {
    width: 100%;
    height: auto;
    margin-top: -4vw;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%);
    mask-image: linear-gradient(180deg, transparent 0, #000 22%);
  }

  /* OUR GAMES */
  .games {
    position: relative;
    padding: 44px 0 56px;
    background: linear-gradient(180deg, #edf5fd 0%, #f2f6fb 55%, #fbf3e7 100%);
  }
  .games::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 73.4vw;
    background: url("assets/bg-games.jpg") center top / 157.7% 100% no-repeat;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
    mask-image: linear-gradient(180deg, #000 55%, transparent);
    pointer-events: none;
  }
  .games-eyebrow, .games-title { text-align: center; }
  .games-lead { text-align: center; }

  .game-grid { margin-top: 28px; display: grid; gap: 16px; }
  .game-card {
    position: relative;
    display: grid;
    grid-template-columns: 64px 1fr;
    column-gap: 14px;
    align-content: start;
    padding: 18px 18px 20px;
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .8), 0 8px 22px rgba(28, 20, 70, .16);
  }
  .game-card { isolation: isolate; }
  .game-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: -1;
    aspect-ratio: 343 / 314;
    border-radius: inherit;
    background: var(--plate) center top / 100% 100% no-repeat;
    -webkit-mask-image: linear-gradient(180deg, #000 68%, transparent);
    mask-image: linear-gradient(180deg, #000 68%, transparent);
  }
  .card-slotcat { --plate: url("assets/card-slotcat.jpg"); background: linear-gradient(90deg, #110a44, #2c0a4e); }
  .card-holdem { --plate: url("assets/card-holdem.jpg"); background: linear-gradient(90deg, #013427, #053628); }
  .game-card .app-icon { grid-row: span 2; width: 64px; height: 64px; border-radius: 14px; }
  .game-title { align-self: end; font-size: 25px; line-height: 1.1; font-weight: 800; }
  .game-sub { align-self: start; margin-top: 4px; font-size: 13px; font-weight: 500; }
  .game-desc {
    grid-column: 1 / -1;
    margin-top: 18px;
    max-width: 60%;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    color: rgba(255, 255, 255, .92);
    text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
  }
  .features {
    grid-column: 1 / -1;
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .features li { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .feat-icon { width: 24px; height: 24px; }
  .feat-wide { width: 29px; }
  .features span { margin-top: 6px; font-size: 12px; line-height: 1.3; font-weight: 600; }
  .game-card .stores { grid-column: 1 / -1; margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .game-card .store, .offline-card .store { font-size: 42px; }

  .offline-card {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 64px 1fr;
    column-gap: 14px;
    align-items: center;
    padding: 16px 18px 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(220, 236, 253, .94), rgba(234, 244, 254, .94));
    box-shadow: inset 0 0 0 1px #fff, 0 8px 20px rgba(80, 110, 170, .08);
  }
  .offline-card .app-icon { width: 64px; height: 64px; border-radius: 14px; }
  .offline-text h3 { font-size: 19px; line-height: 1.2; font-weight: 800; }
  .offline-text p { margin-top: 4px; font-size: 14px; line-height: 1.45; font-weight: 500; color: var(--ink-2); }
  .offline-card .stores { grid-column: 1 / -1; margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

  /* HUNIKA */
  .hunika { padding: 44px 0 48px; background: linear-gradient(180deg, #fff3df, #fdf0da); overflow: hidden; }
  .hunika-eyebrow { font-size: 12px; letter-spacing: .14em; color: #fb8c1c; }
  .hunika-logo { margin-top: 8px; }
  .hunika-logo img { width: min(64vw, 320px); height: auto; }
  .hunika-tag { margin-top: 10px; font-size: 22px; line-height: 1.2; font-weight: 800; }
  .hunika-text { margin-top: 10px; max-width: 30em; font-size: 15px; line-height: 1.55; font-weight: 500; color: var(--ink-2); }
  .hunika-art {
    position: relative;
    width: min(100%, 560px);
    height: auto;
    margin: 6px auto -34px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(180deg, transparent, #000 22%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(180deg, transparent, #000 22%);
    mask-composite: intersect;
  }
  .hunika-grid { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mini-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px 8px 16px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(120, 90, 50, .1);
  }
  .mini-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .mini-icon { width: 92px; height: auto; aspect-ratio: 1; border-radius: 16px; }
  .mini-card h3 { font-size: 14px; line-height: 1.2; font-weight: 800; text-align: center; }
  .stores-sm { display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .stores-sm .store { font-size: 34px; width: 3.25em; }

  /* OUR APPROACH */
  .approach { position: relative; padding: 48px 0 52px; background: linear-gradient(180deg, #e2effd, #edf6fe); }
  .approach::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 39vw;
    background: url("assets/bg-approach.jpg") center top / 157.7% 100% no-repeat;
    -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent);
    mask-image: linear-gradient(180deg, #000 50%, transparent);
    pointer-events: none;
  }
  .approach-eyebrow, .approach-title, .approach-lead { text-align: center; }
  .steps { margin-top: 32px; display: grid; gap: 22px; }
  .step {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 16px;
    align-items: center;
  }
  .step-icon {
    grid-row: span 2;
    width: 56px;
    height: 56px;
    box-shadow: -3px 5px 12px color-mix(in srgb, var(--c) 40%, transparent);
  }
  .step-icon svg { width: 29px; height: 29px; }
  .step h3 { align-self: end; font-size: 17px; line-height: 1.2; font-weight: 800; }
  .step p { align-self: start; margin-top: 3px; font-size: 14px; line-height: 1.45; font-weight: 500; color: #34406a; }
  .step:not(:last-child)::after { display: none; }

  /* BY THE NUMBERS */
  .numbers {
    padding: 44px 0 64px;
    color: #fff;
    background: #0d1d4a url("assets/bg-numbers.jpg") center bottom / cover no-repeat;
  }
  .numbers-eyebrow, .numbers-title { text-align: center; }
  .numbers-eyebrow { color: #6cc3f0; }
  .numbers-title { color: #fff; }
  .stats { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .stat { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .stat:nth-child(even)::before {
    content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px;
    background: rgba(255, 255, 255, .13);
  }
  .stat-icon { width: 40px; height: 40px; }
  .stat-icon-wide { width: 47px; }
  .stat strong { margin-top: 10px; font-size: 26px; line-height: 1.15; font-weight: 800; }
  .stat > span { margin-top: 4px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .9); }

  /* CONTACT */
  .contact {
    padding: 44px 0 150px;
    background: #fdeed8 url("assets/bg-contact.jpg") center bottom / cover no-repeat;
  }
  .contact-text { margin-top: 12px; max-width: 30em; font-size: 15px; line-height: 1.6; font-weight: 500; color: var(--ink-2); }
  .mail-btn {
    width: fit-content;
    margin-top: 22px;
    gap: 12px;
    padding: 12px 24px 12px 20px;
    border: 1.5px solid #cfd3dd;
    border-radius: 999px;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(120, 90, 60, .08);
  }
  .mail-btn svg { width: 22px; height: 16px; }
  .handwriting { width: 190px; height: auto; margin: 26px 0 0 auto; }

  /* FOOTER */
  .footer { padding: 22px 0; background: linear-gradient(180deg, #0a1b3f, #07153a); }
  .footer .frame { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; }
  .footer-logo { font-size: 20px; }
  .footer-tag { grid-column: 1; font-size: 9px; letter-spacing: .27em; font-weight: 700; text-transform: uppercase; color: #aeb5c3; }
  .copy { grid-column: 2; grid-row: 1 / span 2; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .86); text-align: right; }
}

/* Tablet refinements */
@media (min-width: 700px) and (max-width: 1023.98px) {
  .game-grid { grid-template-columns: 1fr 1fr; }
  .game-desc { max-width: 64%; }
  .game-card .store { font-size: 38px; }

  .hunika .frame { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .hunika-eyebrow, .hunika-logo, .hunika-tag, .hunika-text { grid-column: 1; }
  .hunika-art { grid-column: 2; grid-row: 1 / span 4; align-self: end; width: 118%; max-width: none; margin: 0 0 -30px -9%; }
  .hunika-grid { grid-column: 1 / -1; margin-top: 12px; }
  .hunika-grid { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .mini-card:last-child:nth-child(odd) { grid-column: auto; }
  .mini-icon { width: 100%; max-width: 104px; }
  .mini-card h3 { font-size: 12.5px; }
  .stores-sm .store { font-size: 30px; }

  .steps { grid-template-columns: repeat(5, 1fr); gap: 0; }
  .step { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .step h3, .step p { align-self: center; }
  .step h3 { margin-top: 12px; }
  .step p { font-size: 13px; }
  .step p br { display: inline; }
  .step:not(:last-child)::after { display: block; top: 23px; right: -14px; width: 28px; height: 10px; }

  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat + .stat::before {
    content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px;
    background: rgba(255, 255, 255, .13);
  }

  .contact { padding-bottom: 60px; }
  .contact .frame { min-height: 230px; }
  .handwriting { position: absolute; right: 0; top: 0; width: 200px; margin: 0; }
}

/* Small phones */
@media (max-width: 380px) {
  .features { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
  .game-desc { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
