/* Dallas March — style.css */
@font-face {
  font-family: 'Chakra Petch';
  src: url('/assets/fonts/chakra-petch-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: optional;
}
@font-face {
  font-family: 'Chakra Petch';
  src: url('/assets/fonts/chakra-petch-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: optional;
}
@font-face {
  font-family: 'Chakra Petch';
  src: url('/assets/fonts/chakra-petch-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: optional;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/assets/fonts/schibsted-grotesk-var.woff2') format('woff2');
  font-weight: 400 900; font-style: normal; font-display: optional;
}

:root {
  --bg: #070b14;
  --bg-2: #0b1222;
  --panel: #0d1425;
  --line: rgba(141, 170, 255, .14);
  --line-2: rgba(141, 170, 255, .3);
  --text: #e9efff;
  --muted: #a4b4d8;
  --accent: #4d7fff;
  --accent-2: #8fd4ff;
  --ink: #06122e;
  --grad: linear-gradient(115deg, #4d7fff 10%, #8fd4ff 90%);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --r-lg: 18px;
  --r-sm: 10px;
  --f-head: 'Chakra Petch', sans-serif;
  --f-body: 'Schibsted Grotesk', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; scroll-behavior: smooth; }
body {
  overflow-x: clip;
  width: 100%; max-width: 100%;
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: #030509;
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.65;
}
main { flex: 1; }

/* Single site shell — everything lives in one container */
.shell {
  width: min(1260px, calc(100% - 48px));
  margin: 14px auto 46px;
  display: flex; flex-direction: column; flex: 1;
  background: linear-gradient(180deg, #0d1526 0%, #0a1120 26%, rgb(7 11 20 / 40%) 100%);
  border: 1px solid var(--line);
  overflow: clip;
  box-shadow: 0 30px 90px rgba(2, 5, 12, .8);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-decoration: none; overflow-wrap: break-word; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-head);
  line-height: 1.14;
  overflow-wrap: break-word;
  font-weight: 700;
  letter-spacing: .01em;
}
p { color: var(--muted); }
[hidden] { display: none !important; }
button, .btn, .nav a, .brand {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.container { max-width: 1240px; margin: 0 auto; padding-inline: 24px; }

/* Ambient page backdrop — shared artwork behind the shell */
.page-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(3, 5, 9, .12) 0%, rgba(3, 5, 9, .5) 58%, rgba(3, 5, 9, .82) 100%),
    url('/assets/img/bg/page-bg.avif?v5');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-head); font-weight: 600; font-size: 15.5px;
  padding: 14px 28px; border: 0; cursor: pointer;
  border-radius: var(--r-sm);
  transition: transform .16s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease), opacity .3s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--primary { background: var(--grad); color: var(--ink); }
.btn--ghost {
  background: rgba(141, 170, 255, .07);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { box-shadow: 0 8px 32px rgba(77, 127, 255, .42); }
  .btn--ghost:hover { background: rgba(141, 170, 255, .14); }
}
.btn--sm { padding: 10px 20px; font-size: 14px; }

/* ============ Header (two rows) ============ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 11, 20, .78);
  border-bottom: 1px solid var(--line);
  overflow: visible;
}
.site-header__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-block: 12px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand svg { width: 34px; height: 34px; color: var(--accent); filter: drop-shadow(0 0 8px rgba(77, 127, 255, .55)); }
.brand-name {
  font-family: var(--f-head); font-weight: 500; font-size: 20px;
  letter-spacing: .06em; color: var(--text);
}
.brand-name b { font-weight: 700; color: var(--accent-2); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  position: relative;
  font-weight: 600; font-size: 15px; color: var(--muted);
  padding: 4px 2px;
  transition: color .25s var(--ease), text-shadow .25s var(--ease);
}
.nav a::before {
  content: ''; position: absolute; left: 50%; bottom: -4px;
  width: 26px; height: 8px; transform: translateX(-50%) scaleX(.3);
  background: radial-gradient(closest-side, rgba(143, 212, 255, .8), transparent);
  filter: blur(3px); opacity: 0;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none;
}
.nav a:hover, .nav a.is-active { color: #fff; text-shadow: 0 0 14px rgba(143, 212, 255, .5); }
.nav a:hover::before, .nav a.is-active::before { opacity: 1; transform: translateX(-50%) scaleX(1); }

/* Tagline above the shell */
.page-tag {
  text-align: center;
  font-size: 13.5px; font-weight: 600; color: var(--muted); letter-spacing: .04em;
  padding: 18px 16px 0;
  text-shadow: 0 1px 8px rgba(3, 5, 9, .8);
}

/* Burger */
.burger {
  display: none;
  width: 44px; height: 44px; position: relative; z-index: 110; flex-shrink: 0;
  background: rgba(141, 170, 255, .07);
  border: 1px solid var(--line);
  cursor: pointer;
  border-radius: 10px;
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1220px) {
  .burger { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    width: 100%; max-width: 100vw;
    max-height: calc(100dvh - var(--header-offset, 64px));
    z-index: 50;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: 16px 24px 28px;
    background: linear-gradient(165deg, #0a1020 0%, #101a33 100%);
    border-top: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .3s var(--ease), opacity .25s var(--ease), visibility 0s linear .3s;
  }
  .nav[data-open="true"] {
    transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto;
    transition: transform .3s var(--ease), opacity .25s var(--ease), visibility 0s linear 0s;
  }
  .nav a { width: 100%; padding: 15px 0; font-size: 20px; border-bottom: 1px solid var(--line); }
  .nav a::before { display: none; }
}

/* ============ Sections shared ============ */
.section-pad { padding-block: 96px; }
.section-head { margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); }
.section-head p { margin-top: 14px; font-size: 17.5px; }

/* Reveal on scroll */
.rv { opacity: 0; transform: translateY(26px); }
.rv.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0s);
}

/* ============ Home: hero ============ */
.hm-hero {
  position: relative; overflow: clip;
  display: flex; align-items: center;
  min-height: clamp(300px, 27vw, 400px);
  background-image: url('/assets/img/hero/hero-bg.avif?v2');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
.hm-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 15, 30, .96) 0%, rgba(9, 15, 30, .84) 34%, rgba(9, 15, 30, .42) 66%, rgba(9, 15, 30, .18) 100%),
    linear-gradient(180deg, rgba(9, 15, 30, .3) 0%, transparent 24%, transparent 68%, var(--bg) 100%);
}
.hm-hero__inner { position: relative; width: 100%; padding-block: 56px 64px; }
.hm-hero h1 {
  font-size: clamp(30px, 3.6vw, 48px);
  text-transform: uppercase;
  letter-spacing: .015em;
}
.hm-hero h1 em {
  font-style: normal; color: var(--accent-2);
  text-shadow: 0 0 28px rgba(77, 127, 255, .55);
}
.hm-hero__sub { margin-top: 14px; font-size: 17px; color: #c3d0ec; }
.hm-hero__cta { margin-top: 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hm-hero__note { margin-top: 14px; font-size: 13px; color: var(--muted); }
@keyframes heroPulse { from { opacity: .65; } to { opacity: 1; } }
.hero-in { animation: heroIn .8s var(--ease) both; }
.hero-in--2 { animation-delay: .12s; }
.hero-in--3 { animation-delay: .24s; }
.hero-in--4 { animation-delay: .3s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* ============ Home: why choose (bento) ============ */
.hm-why { background: linear-gradient(180deg, transparent, rgba(13, 20, 37, .7) 18%, rgba(13, 20, 37, .7) 82%, transparent); }
.hm-why__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 22px; }
.why-card {
  position: relative; overflow: clip;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.why-card:nth-child(1), .why-card:nth-child(4) { grid-column: span 7; }
.why-card:nth-child(2), .why-card:nth-child(3) { grid-column: span 5; }
@media (hover: hover) and (pointer: fine) {
  .why-card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 18px 48px rgba(4, 10, 26, .6); }
}
.why-card__media { position: relative; overflow: clip; }
.why-card__media img { width: 100%; aspect-ratio: 600 / 300; object-fit: cover; }
.why-card__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(13, 20, 37, .96));
}
.why-card__body { padding: 6px 26px 28px; margin-top: -34px; position: relative; z-index: 1; }
.why-card__body h3 { font-size: 21px; display: flex; align-items: center; gap: 10px; }
.why-card__body h3 svg { width: 22px; height: 22px; color: var(--accent-2); flex-shrink: 0; }
.why-card__body p { margin-top: 10px; font-size: 15.5px; }

/* ============ Home: games teaser ============ */
.hm-games__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.hm-games__more { margin-top: 40px; text-align: center; }

/* Game card (shared home + games page) */
.game-card {
  position: relative; overflow: clip;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .game-card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 18px 48px rgba(4, 10, 26, .6); }
}
.game-card { display: flex; flex-direction: column; }
.game-card__media { position: relative; overflow: clip; }
.game-card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.game-card__free {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--f-head); font-weight: 700; font-size: 12px; letter-spacing: .14em;
  color: var(--ink); background: var(--grad); padding: 5px 12px;
  border-radius: 7px;
}
.game-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.game-card__body h3 { font-size: 20px; }
.game-card__body p { margin-top: 8px; font-size: 14.5px; }
.game-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; margin-bottom: 18px; }
.game-card__play { margin-top: auto; align-self: flex-start; }
.game-card__tags span {
  font-size: 12px; font-weight: 600; letter-spacing: .05em;
  color: var(--accent-2); padding: 4px 10px;
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 6px;
}

/* ============ Home: reviews carousel ============ */
.hm-reviews__frame { overflow: clip; }
.hm-reviews__track { display: flex; gap: 22px; transition: transform .55s var(--ease); }
.review-card {
  flex: 0 0 calc(50% - 11px);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 30px 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.review-card__top { display: flex; align-items: center; gap: 14px; }
.review-card__top img { width: 54px; height: 54px; object-fit: cover; border-radius: var(--r-sm); }
.review-card__who h3 { font-size: 16.5px; font-family: var(--f-body); font-weight: 700; }
.review-card__stars { display: inline-flex; gap: 2px; margin-top: 3px; }
.review-card__stars svg { width: 15px; height: 15px; color: #ffc94d; }
.review-card__stars svg.is-dim { color: rgba(141, 170, 255, .25); }
.review-card > p { font-size: 15px; }
.hm-reviews__nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 32px; }
.hm-reviews__nav button {
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(141, 170, 255, .07); border: 1px solid var(--line-2); color: var(--text);
  cursor: pointer; border-radius: var(--r-sm);
  transition: transform .16s var(--ease), background-color .3s var(--ease);
}
.hm-reviews__nav button:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) {
  .hm-reviews__nav button:hover { background: rgba(141, 170, 255, .16); }
}
.hm-reviews__nav button svg { width: 20px; height: 20px; }
.hm-reviews__dots { display: flex; gap: 8px; }
.hm-reviews__dots button {
  width: 10px; height: 10px; padding: 0; border: 0; cursor: pointer;
  background: rgba(141, 170, 255, .28);
  border-radius: 50%;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.hm-reviews__dots button.is-on { background: var(--accent-2); transform: scale(1.25); }

/* ============ Home: demo game ============ */
.hm-demo__shell {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--bg-2);
}
.hm-demo__shell iframe, .hm-demo__poster {
  width: 100%; aspect-ratio: 16 / 9; display: block; border: 0;
}
.hm-demo__poster {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background:
    radial-gradient(40% 60% at 50% 40%, rgba(77, 127, 255, .22), transparent 70%),
    var(--bg-2);
  color: var(--muted); font-size: 15px;
}
.hm-demo__poster svg { width: 54px; height: 54px; color: var(--accent-2); animation: heroPulse 1.6s ease-in-out infinite alternate; }
.hm-demo__note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }

/* ============ Home: community ============ */
.hm-community {
  position: relative; overflow: clip;
  background-image: url('/assets/img/sections/community-bg.avif');
  background-size: cover; background-position: center;
}
.hm-community::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7, 11, 20, .93) 30%, rgba(7, 11, 20, .68));
}
.hm-community__inner { position: relative; padding-block: 110px; }
.hm-community__inner h2 { font-size: clamp(28px, 4vw, 46px); }
.hm-community__inner > p { margin-top: 16px; font-size: 18px; }
.hm-community__cta { margin-top: 32px; }
.hm-community__rp {
  position: relative;
  padding-block: 26px;
  border-top: 1px solid var(--line);
  background: rgba(77, 127, 255, .09);
  backdrop-filter: blur(6px);
}
.hm-community__rp h3 { font-size: 19px; display: flex; align-items: center; gap: 10px; }
.hm-community__rp h3 svg { width: 20px; height: 20px; color: var(--accent-2); }
.hm-community__rp p { margin-top: 10px; font-size: 15px; }

/* ============ Games page ============ */
.gm-intro { padding-block: 72px 40px; }
.gm-intro h1 { font-size: clamp(32px, 4.6vw, 54px); text-transform: uppercase; }
.gm-intro p { margin-top: 16px; font-size: 17.5px; }
.gm-catalog { padding-block: 24px 96px; }
.gm-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.gm-tabs button {
  font-family: var(--f-head); font-weight: 600; font-size: 14.5px;
  color: var(--muted); background: rgba(141, 170, 255, .06);
  border: 1px solid var(--line); padding: 10px 22px; cursor: pointer;
  border-radius: var(--r-sm);
  transition: color .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), transform .16s var(--ease);
}
.gm-tabs button:active { transform: scale(.96); }
.gm-tabs button.is-on { color: var(--ink); background: var(--grad); border-color: transparent; }
@media (hover: hover) and (pointer: fine) {
  .gm-tabs button:not(.is-on):hover { color: var(--text); background: rgba(141, 170, 255, .12); }
}
.gm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.gm-note { margin-top: 44px; padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.gm-note p { font-size: 14.5px; }

/* Game modal */
.gmodal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(4, 7, 14, .82);
  backdrop-filter: blur(8px);
}
.gmodal__panel {
  width: min(1060px, 100%);
  background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  animation: modalIn .28s var(--ease) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.95); }
  to { opacity: 1; transform: none; }
}
.gmodal__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.gmodal__bar h2 { font-size: 19px; }
.gmodal__meta { display: flex; align-items: center; gap: 14px; }
.gmodal__close {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(141, 170, 255, .08); border: 1px solid var(--line-2); color: var(--text);
  cursor: pointer; border-radius: var(--r-sm);
  transition: transform .16s var(--ease), background-color .25s var(--ease);
}
.gmodal__close:active { transform: scale(.92); }
@media (hover: hover) and (pointer: fine) {
  .gmodal__close:hover { background: rgba(141, 170, 255, .18); }
}
.gmodal__close svg { width: 20px; height: 20px; }
.gmodal__frame { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; background: #04070e; }

/* ============ About ============ */
.ab-banner { position: relative; overflow: clip; }
.ab-banner img { width: 100%; aspect-ratio: 1920 / 620; object-fit: cover; }
.ab-banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 20, .38), rgba(7, 11, 20, .95));
}
.ab-banner__title {
  position: absolute; left: 0; right: 0; bottom: 8%; z-index: 1;
}
.ab-banner__title h1 { font-size: clamp(32px, 5vw, 58px); text-transform: uppercase; }
.ab-story { padding-block: 84px 30px; }
.ab-story h2, .ab-values h2, .ab-team h2, .ab-platform h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 20px; }
.ab-story p + p, .ab-platform p + p { margin-top: 14px; }
.ab-values { padding-block: 54px 30px; }
.ab-values__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 8px; }
.value-tile {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px 26px;
}
.value-tile h3 { font-size: 19px; display: flex; align-items: center; gap: 10px; }
.value-tile h3 svg { width: 20px; height: 20px; color: var(--accent-2); flex-shrink: 0; }
.value-tile p { margin-top: 10px; font-size: 15px; }
.ab-team { padding-block: 54px 30px; }
.ab-team p + p { margin-top: 14px; }
.ab-platform { padding-block: 54px 96px; }

/* ============ Contact ============ */
.ct-intro { padding-block: 72px 30px; }
.ct-intro h1 { font-size: clamp(32px, 4.6vw, 54px); text-transform: uppercase; }
.ct-intro p { margin-top: 16px; font-size: 17.5px; }
.ct-main { padding-block: 30px 96px; }
.ct-main__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 42px; align-items: start; }
.ct-form {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 36px 34px 38px;
  position: relative; z-index: 50;
}
.ct-form h2 { font-size: 24px; margin-bottom: 24px; }
.field { margin-bottom: 20px; position: relative; z-index: 1; }
.field:has(.cselect) { z-index: 6; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 8px; color: var(--text); }
.field input, .field textarea, .cselect__btn {
  width: 100%; font-family: var(--f-body); font-size: 15.5px; color: var(--text);
  background: rgba(7, 11, 20, .6);
  border: 1px solid var(--line-2);
  padding: 13px 16px;
  border-radius: var(--r-sm);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(164, 180, 216, .55); }
.field input:focus, .field textarea:focus, .cselect__btn:focus-visible { outline: none; border-color: var(--accent); background: rgba(7, 11, 20, .85); }
.field textarea { resize: none; min-height: 140px; }
.cselect { position: relative; z-index: 40; }
.cselect.is-open { z-index: 45; }
.cselect__btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; text-align: left; }
.cselect__btn svg { width: 17px; height: 17px; color: var(--accent-2); transition: transform .25s var(--ease); flex-shrink: 0; }
.cselect.is-open .cselect__btn svg { transform: rotate(180deg); }
.cselect__list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 46;
  list-style: none; background: #0e1730;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  overflow: clip;
}
.cselect__list li {
  padding: 12px 16px; cursor: pointer; font-size: 15px; color: var(--muted);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.cselect__list li.is-sel { color: var(--accent-2); }
@media (hover: hover) and (pointer: fine) {
  .cselect__list li:hover { background: rgba(141, 170, 255, .1); color: var(--text); }
}
.ct-form .btn { margin-top: 6px; }
.ct-info { display: flex; flex-direction: column; gap: 18px; }
.ct-info__card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px 26px;
  display: flex; gap: 16px; align-items: flex-start;
}
.ct-info__card svg { width: 24px; height: 24px; color: var(--accent-2); flex-shrink: 0; margin-top: 3px; }
.ct-info__card > div { min-width: 0; }
.ct-info__card h3 { font-size: 16px; font-family: var(--f-body); font-weight: 700; }
.ct-info__card p { margin-top: 5px; font-size: 15px; }
.ct-info__card a { font-weight: 600; }

/* Toast modal */
.toastm {
  position: fixed; inset: 0; z-index: 220;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(4, 7, 14, .7); backdrop-filter: blur(6px);
}
.toastm__panel {
  width: min(430px, 100%);
  background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 38px 34px; text-align: center;
  animation: modalIn .28s var(--ease) both;
}
.toastm__panel svg { width: 46px; height: 46px; color: var(--accent-2); margin: 0 auto 16px; display: block; }
.toastm__panel h2 { font-size: 22px; }
.toastm__panel p { margin-top: 10px; font-size: 15px; }
.toastm__panel .btn { margin-top: 22px; }

/* ============ Legal pages ============ */
.lg-privacy, .lg-terms, .lg-cookies { padding-block: 72px 96px; }
.legal-body h1 { font-size: clamp(30px, 4.2vw, 48px); margin-bottom: 10px; }
.legal-body > p:first-of-type { font-size: 14px; }
.legal-body h2 { font-size: 24px; margin: 36px 0 12px; }
.legal-body p { margin-top: 10px; }
.legal-body ul { margin: 12px 0 0 22px; color: var(--muted); }
.legal-body li { margin-top: 7px; }
.legal-body li::marker { color: var(--accent-2); }

/* ============ Footer ============ */
.site-footer { background: #05080f; border-top: 1px solid var(--line); }
.site-footer__cols {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: 40px; padding-block: 56px 40px;
}
.site-footer__about .brand { margin-bottom: 16px; }
.site-footer__about p { font-size: 14.5px; }
.site-footer__social { display: flex; gap: 12px; margin-top: 20px; }
.site-footer__social a {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: color .25s var(--ease), border-color .25s var(--ease), transform .16s var(--ease);
}
.site-footer__social a:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) {
  .site-footer__social a:hover { color: var(--accent-2); border-color: var(--line-2); }
}
.site-footer__social svg { width: 18px; height: 18px; }
.site-footer h2 { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin-bottom: 18px; }
.site-footer__nav ul, .site-footer__legal ul { list-style: none; }
.site-footer__nav li + li, .site-footer__legal li + li { margin-top: 10px; }
.site-footer__nav a, .site-footer__legal a {
  color: var(--muted); font-size: 15px;
  transition: color .25s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .site-footer__nav a:hover, .site-footer__legal a:hover { color: var(--accent-2); }
}
.site-footer__rg { border-top: 1px solid var(--line); padding-block: 26px; }
.site-footer__rg-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 22px 38px; }
.site-footer__rg-row a {
  display: inline-flex; align-items: center;
  opacity: .85;
  transition: opacity .25s var(--ease), transform .16s var(--ease);
}
.site-footer__rg-row a:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) {
  .site-footer__rg-row a:hover { opacity: 1; }
}
.site-footer__rg-row img { max-height: 30px; max-width: 160px; width: auto; height: auto; }
.rg-19 {
  font-family: var(--f-head); font-weight: 700; font-size: 15px; color: var(--accent-2);
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--accent-2); border-radius: 50%;
}
.site-footer__note { border-top: 1px solid var(--line); padding-block: 22px; }
.site-footer__note p { font-size: 13.5px; color: rgba(164, 180, 216, .8); }
.site-footer__disc {
  background: rgba(77, 127, 255, .09);
  border-top: 1px solid var(--line);
  padding-block: 16px;
}
.site-footer__disc p {
  text-align: center; font-family: var(--f-head); font-weight: 600;
  font-size: 14px; color: var(--text); letter-spacing: .04em;
}
.site-footer__bottom { border-top: 1px solid var(--line); padding-block: 20px; }
.site-footer__bottom p { text-align: center; font-size: 13.5px; }

/* ============ Cookie banner ============ */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150;
  background: rgba(10, 16, 32, .96);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  animation: heroIn .5s var(--ease) both;
}
.cookie-banner p { flex: 1 1 380px; font-size: 14px; }
.cookie-banner__acts { display: flex; gap: 12px; }

/* ============ Chat widget ============ */
.chat-toggle {
  position: fixed; right: 18px; bottom: calc(18px + var(--cookie-h, 0px)); z-index: 160;
  width: 60px; height: 60px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad); color: var(--ink);
  border: 0; cursor: pointer; border-radius: 50%;
  box-shadow: 0 10px 32px rgba(77, 127, 255, .45);
  transition: transform .2s var(--ease), bottom .3s var(--ease), box-shadow .3s var(--ease);
}
.chat-toggle:active { transform: scale(.93); }
@media (hover: hover) and (pointer: fine) {
  .chat-toggle:hover { transform: scale(1.06); box-shadow: 0 12px 38px rgba(77, 127, 255, .6); }
}
.chat-toggle svg { width: 27px; height: 27px; }
body:has(.cookie-banner:not([hidden])) { --cookie-h: 96px; }
.chat-panel {
  position: fixed; right: 18px; bottom: calc(90px + var(--cookie-h, 0px)); z-index: 165;
  width: 360px; height: 460px; max-width: calc(100vw - 36px);
  display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 64px rgba(3, 6, 14, .7);
  transition: bottom .3s var(--ease);
  animation: modalIn .3s var(--ease) both;
}
.chat-toggle__badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #ff5d6e; color: #fff;
  font-family: var(--f-head); font-weight: 700; font-size: 12px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(3, 6, 14, .5);
  animation: modalIn .25s var(--ease) both;
}
.chat-teaser {
  position: fixed; right: 18px; bottom: calc(92px + var(--cookie-h, 0px)); z-index: 164;
  width: min(320px, calc(100vw - 36px));
  display: flex; gap: 11px; align-items: flex-start;
  background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 14px 15px;
  box-shadow: 0 18px 48px rgba(3, 6, 14, .65);
  cursor: pointer;
  transition: bottom .3s var(--ease);
  animation: teaserIn .45s var(--ease) both;
}
.chat-teaser.is-out { animation: teaserOut .35s var(--ease) both; }
@keyframes teaserIn {
  from { opacity: 0; transform: translateY(16px) scale(.95); }
  to { opacity: 1; transform: none; }
}
@keyframes teaserOut {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(12px) scale(.97); }
}
.chat-teaser__ava { width: 36px; height: 36px; flex-shrink: 0; border-radius: var(--r-sm); }
.chat-teaser__body { min-width: 0; font-size: 13.5px; }
.chat-teaser__body strong { display: block; font-family: var(--f-head); font-size: 13px; color: var(--accent-2); margin-bottom: 3px; }
.chat-teaser__body p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.chat-minis { display: flex; gap: 6px; margin-top: 9px; }
.chat-minis img { width: 64px; height: 42px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line-2); }
.chat-msg__link { display: inline-block; margin-top: 9px; font-weight: 700; font-size: 13.5px; }
.chat-msg--rich p { margin: 0; color: inherit; }

.chat-panel__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-panel__head img { width: 42px; height: 42px; border-radius: var(--r-sm); }
.chat-panel__who h2 { font-size: 16px; }
.chat-panel__who p { font-size: 12.5px; color: #53e08c; }
.chat-panel__close { margin-left: auto; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--muted); cursor: pointer; }
.chat-panel__close svg { width: 19px; height: 19px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.chat-msg { max-width: 84%; padding: 10px 14px; font-size: 14px; line-height: 1.5; }
.chat-msg--bot {
  align-self: flex-start; color: var(--text);
  background: rgba(141, 170, 255, .1);
  border-radius: 12px 12px 12px 4px;
}
.chat-msg--me {
  align-self: flex-end; color: var(--ink); background: var(--grad);
  border-radius: 12px 12px 4px 12px;
}
.chat-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; }
.chat-typing i {
  width: 6px; height: 6px; background: var(--accent-2); border-radius: 50%;
  animation: typing 1s ease-in-out infinite;
}
.chat-typing i:nth-child(2) { animation-delay: .16s; }
.chat-typing i:nth-child(3) { animation-delay: .32s; }
@keyframes typing { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input {
  flex: 1; min-width: 0; font-family: var(--f-body); font-size: 14px; color: var(--text);
  background: rgba(7, 11, 20, .6); border: 1px solid var(--line-2);
  padding: 11px 14px; border-radius: var(--r-sm);
}
.chat-form input:focus { outline: none; border-color: var(--accent); }
.chat-form button {
  width: 44px; height: 44px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad); color: var(--ink); border: 0; cursor: pointer;
  border-radius: var(--r-sm);
  transition: transform .16s var(--ease);
}
.chat-form button:active { transform: scale(.93); }
.chat-form button svg { width: 19px; height: 19px; }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .hm-hero__inner { padding-block: 48px 56px; }
  .gm-grid, .hm-games__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-games__grid > .game-card:nth-child(3) { display: none; }
  .ct-main__grid { grid-template-columns: minmax(0, 1fr); }
  .ab-values__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .shell { width: calc(100% - 20px); margin: 12px auto 22px; }
  .section-pad { padding-block: 68px; }
  .hm-hero { background-position: 68% center; }
  .hm-why__grid > .why-card { grid-column: span 12; }
  .ab-values__grid { grid-template-columns: 1fr; }
  .review-card { flex: 0 0 100%; }
  .site-footer__cols { grid-template-columns: 1fr; gap: 32px; }
  .hm-community__inner { padding-block: 80px; }
  .page-tag { font-size: 12.5px; padding-top: 12px; }
  .ab-banner img { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .gm-grid, .hm-games__grid { grid-template-columns: 1fr; }
  .hm-games__grid > .game-card:nth-child(3) { display: block; }
}
@media (max-width: 520px) {
  .container { padding-inline: 16px; }
  .shell { width: calc(100% - 12px); margin: 8px auto 16px; }
  body { font-size: 15.5px; }
  .hm-hero { min-height: 0; }
  .hm-hero__inner { padding-block: 44px 52px; }
  .hm-hero__cta { gap: 14px; }
  .gmodal { padding: 10px; }
  .gmodal__panel { width: 100%; }
  .gmodal__frame { aspect-ratio: 10 / 13; }
  .ct-form { padding: 26px 20px 30px; }
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 16px 18px; }
  body:has(.cookie-banner:not([hidden])) { --cookie-h: 205px; }
  .chat-panel { height: min(460px, calc(100dvh - 120px)); }
}
@media (max-width: 430px) {
  .btn { padding: 13px 22px; font-size: 14.5px; }
  .brand-name { font-size: 17px; }
  .brand svg { width: 29px; height: 29px; }
  .review-card { padding: 24px 20px; }
  .why-card__body { padding: 6px 20px 24px; }
  .game-card__body { padding: 16px 18px 20px; }
  .site-footer__rg-row { gap: 16px 24px; }
  .site-footer__rg-row img { max-height: 25px; max-width: 130px; }
}
@media (max-width: 360px) {
  .hm-hero h1 { font-size: 30px; }
  .chat-panel { right: 10px; max-width: calc(100vw - 20px); }
  .chat-toggle { right: 12px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .rv { opacity: 1; transform: none; }
}
