/* DRN Labs — drnlabs.app */

:root {
  --violet: #5B3DF5;
  --violet-dark: #3F24D6;
  --violet-deep: #4A2EE0;
  --violet-soft: #EEEAFF;
  --violet-line: #C9BEFF;
  --yellow: #FFC233;
  --night: #17153B;
  --night-line: #2E2B5C;
  --paper: #F7F5F0;
  --white: #FFFFFF;
  --ink-2: #3A3760;
  --ink-3: #4A4766;
  --on-dark-2: #D9D6F0;
  --on-dark-3: #B9B5DA;
  --on-dark-4: #9C98C8;
  --line: #ECE8F7;

  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --wrap: 1240px;
  --gutter: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--night);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--violet); }
a:hover { color: var(--violet-dark); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; }
.section { padding: 0 var(--gutter) 104px; }

.skip { position: absolute; left: -9999px; top: 8px; padding: 12px 16px; background: var(--night); color: var(--white); border-radius: 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- type ---------- */
.display { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
.h1 { font-size: clamp(42px, 6.4vw, 88px); line-height: 1.02; letter-spacing: -0.035em; }
.h2 { font-size: clamp(30px, 4vw, 56px); }
.h3 { font-size: clamp(26px, 2.8vw, 38px); letter-spacing: -0.02em; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--violet); }
.lead { margin: 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--ink-2); max-width: 540px; }
.dot { color: var(--violet); }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--night); }
.logo:hover { color: var(--night); }
.logo svg { width: 40px; height: 40px; flex: none; }
.wordmark { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.01em; white-space: nowrap; }
.wordmark b { font-weight: 800; }
.wordmark span { font-weight: 300; color: var(--violet); }
.on-dark .wordmark span { color: var(--yellow); }
.on-dark .logo, .on-dark .logo:hover { color: var(--white); }

/* ---------- header ---------- */
.site-header { padding: 0 var(--gutter); }
.nav { min-height: 88px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 0; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-links a { display: block; padding: 12px 14px; color: var(--night); text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 12px; }
.nav-links a:hover { background: var(--white); color: var(--night); }
.nav-links .lang { margin-left: 8px; color: var(--ink-3); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; }

@media (max-width: 640px) {
  .nav { justify-content: center; }
  .nav-links { justify-content: center; }
  .nav-links a { padding: 10px 8px; font-size: 14px; }
  .nav-links .lang { margin-left: 0; }
}

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border-radius: 18px; border: 2px solid transparent;
  font-family: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--violet); color: var(--white); }
.btn-primary:hover { background: var(--violet-dark); color: var(--white); }
.btn-outline { background: var(--white); border-color: var(--night); color: var(--night); }
.btn-outline:hover { color: var(--night); }
.btn-yellow { background: var(--yellow); color: var(--night); font-weight: 800; }
.btn-yellow:hover { color: var(--night); }
.btn-night { background: var(--night); color: var(--white); }
.btn-night:hover { background: #24215A; color: var(--white); }

.store { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.15; padding: 0 22px; }
.store small { font-size: 11px; font-weight: 500; color: var(--on-dark-3); }
.store-ghost { border-color: #4A4775; color: var(--white); }
.store-ghost:hover { color: var(--white); border-color: var(--on-dark-4); }
.store-soon { opacity: .55; pointer-events: none; }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--white); border: 1px solid #E6E2F5; color: var(--ink-2); }
.chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.chip-live { background: var(--night); border-color: var(--night); color: var(--white); }
.chip-live i { background: var(--yellow); }
.chip-soon { background: var(--violet-soft); border-color: var(--violet-soft); color: var(--violet-dark); }
.chip-soon i { background: var(--violet); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- hero ---------- */
.hero { padding: 32px var(--gutter) 96px; }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px; background: var(--white); border: 1px solid #E6E2F5; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.badge i { width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); display: inline-block; }

.hero-art { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.shapes { position: relative; width: 100%; max-width: 500px; aspect-ratio: 1 / 1; }
.shape { position: absolute; display: flex; align-items: center; justify-content: center; }
.shape-icon { left: 6%; top: 14%; width: 58%; aspect-ratio: 1; border-radius: 26%; background: var(--violet); animation: float 6s ease-in-out infinite; }
.shape-icon svg { width: 78%; height: 78%; }
.shape-sun { right: 4%; top: 2%; width: 30%; aspect-ratio: 1; border-radius: 50%; background: var(--yellow); animation: float 7s ease-in-out -2s infinite; }
.shape-plus { right: 8%; bottom: 6%; width: 34%; aspect-ratio: 1; border-radius: 26%; background: var(--night); animation: float 8s ease-in-out -4s infinite; }
.shape-plus svg { width: 44%; height: 44%; }
.shape-ring { left: 14%; bottom: 4%; width: 16%; aspect-ratio: 1; border-radius: 50%; border: 10px solid var(--violet-line); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .shape { animation: none !important; } html { scroll-behavior: auto; } .btn { transition: none; } }

/* ---------- featured ---------- */
.featured { background: var(--night); color: var(--white); border-radius: 40px; padding: clamp(32px, 5vw, 72px); display: flex; flex-wrap: wrap; align-items: center; gap: 56px; overflow: hidden; }
.featured-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.featured .eyebrow { color: var(--yellow); }
.featured-title { display: flex; align-items: center; gap: 20px; }
.featured-title .display { font-size: clamp(30px, 3.6vw, 52px); }
.featured p { margin: 0; font-size: 19px; line-height: 1.6; color: var(--on-dark-2); max-width: 500px; }
.phones { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; gap: 20px; }
.phone { width: min(220px, 44%); aspect-ratio: 9 / 19.5; border-radius: 36px; border: 8px solid #0E0C2A; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; font-size: 14px; font-weight: 600; }
.phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone:has(img) { padding: 0; background: var(--night); }
.phone-a { background: #2A2760; color: var(--on-dark-4); transform: translateY(24px); }
.phone-b { background: var(--violet); color: #E4DEFF; transform: translateY(-24px); }
.phone-light { background: var(--white); color: var(--ink-3); border-color: var(--night); }

/* ---------- app icon ---------- */
.app-icon { width: 96px; height: 96px; flex: none; border-radius: 22%; object-fit: cover; background: var(--violet-soft); box-shadow: 0 0 0 1px rgba(23, 21, 59, .06); }
.app-icon.sm { width: 64px; height: 64px; }
.app-icon.lg { width: 144px; height: 144px; }
.app-icon.md { width: 88px; height: 88px; }
.c-violet { background: var(--violet); color: var(--yellow); }
.c-violet-w { background: var(--violet); color: var(--white); }
.c-yellow { background: var(--yellow); color: var(--night); }
.c-yellow-v { background: var(--yellow); color: var(--violet); }
.c-night { background: var(--night); color: var(--yellow); }
.c-soft { background: var(--violet-soft); color: var(--violet); }

/* ---------- games ---------- */
.games-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.games-head > div:first-child { display: flex; flex-direction: column; gap: 12px; }
.filter { flex: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: var(--white); border-radius: 999px; border: 1px solid #E6E2F5; }
.filter button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--night); font-family: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--night); color: var(--white); }

.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.game-grid li[hidden] { display: none; }
.game-card { height: 100%; display: flex; flex-direction: column; gap: 20px; padding: 28px; border-radius: 32px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--night); transition: transform .2s ease, box-shadow .2s ease; }
.game-card:hover { color: var(--night); transform: translateY(-4px); box-shadow: 0 16px 40px -20px rgba(23, 21, 59, .35); }
.game-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.game-card h3 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 800; font-size: 23px; line-height: 1.2; letter-spacing: -0.02em; }
.game-card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-3); }
.game-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid #F0EDF8; font-size: 14px; font-weight: 700; color: var(--ink-3); }
.game-card-foot span:last-child { font-size: 15px; color: var(--violet); }
@media (prefers-reduced-motion: reduce) { .game-card { transition: none; } .game-card:hover { transform: none; } }

/* ---------- story ---------- */
.story { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.story-art { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }
.story-art div { width: 100%; max-width: 420px; aspect-ratio: 1; border-radius: 48px; background: var(--violet); display: flex; align-items: center; justify-content: center; }
.story-art svg { width: 70%; height: 70%; }
.story-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.story-copy > p { margin: 0; font-size: 19px; line-height: 1.7; color: var(--ink-2); }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 16px; padding-top: 8px; }
.value { padding: 22px; border-radius: 24px; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.value strong { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.value span { font-size: 15px; line-height: 1.5; color: var(--ink-3); }

/* ---------- game page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-3); margin-bottom: 40px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--violet); }
.crumbs [aria-current] { color: var(--night); }
.game-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.game-hero .game-title { display: flex; flex-direction: column; gap: 16px; }
.game-hero .display { font-size: clamp(38px, 5vw, 72px); }
.game-hero .phones .phone { width: min(230px, 44%); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; margin-top: 32px; }
.feature { padding: 32px; border-radius: 32px; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.feature-ico { width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center; }
.feature-ico svg { width: 28px; height: 28px; }
.feature h3 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 21px; }
.feature p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-3); }

.info-row { display: flex; flex-wrap: wrap; gap: 20px; }
.parents { flex: 999 1 560px; min-width: 0; padding: clamp(28px, 4vw, 56px); border-radius: 40px; background: var(--violet); color: var(--white); display: flex; flex-direction: column; gap: 28px; }
.parents .eyebrow { color: var(--yellow); }
.parents-head { display: flex; flex-direction: column; gap: 10px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0; }
.fact { padding: 20px; border-radius: 22px; background: var(--violet-deep); display: flex; flex-direction: column; gap: 6px; }
.fact dt { font-size: 14px; color: #E4DEFF; }
.fact dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.support { flex: 1 1 320px; min-width: 0; padding: clamp(28px, 4vw, 48px); border-radius: 40px; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.support p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-3); }
.support .links { display: flex; flex-direction: column; padding-top: 8px; }
.support .links a { padding: 12px 0; border-top: 1px solid #F0EDF8; color: var(--night); text-decoration: none; font-weight: 700; }
.support .links a:hover { color: var(--violet); }

.more-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.more-head a { font-weight: 700; text-decoration: none; padding: 10px 0; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.mini { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 28px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--night); }
.mini:hover { color: var(--night); border-color: var(--violet-line); }
.mini strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.mini span { font-size: 14px; color: var(--ink-3); }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--white); padding: 72px var(--gutter) 40px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.foot-brand { flex: 1 1 320px; display: flex; flex-direction: column; gap: 20px; }
.foot-brand .logo svg { width: 44px; height: 44px; }
.foot-brand .wordmark { font-size: 24px; }
.foot-brand p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--on-dark-3); max-width: 340px; }
.foot-brand > a { font-size: 18px; font-weight: 700; color: var(--yellow); text-decoration: none; }
.foot-brand > a:hover { color: var(--yellow); text-decoration: underline; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 64px; }
.foot-col { display: flex; flex-direction: column; gap: 4px; }
.foot-col h2 { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--on-dark-4); }
.foot-col a { padding: 8px 0; color: var(--white); text-decoration: none; font-size: 16px; }
.foot-col a:hover { color: var(--yellow); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--night-line); font-size: 14px; color: var(--on-dark-4); }

/* ---------- apps ---------- */
.apps-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.app-card { display: flex; flex-direction: column; border-radius: 32px; background: var(--night); color: var(--white); overflow: hidden; }
.app-shot { aspect-ratio: 16 / 10; background: #0E0C2A; overflow: hidden; }
.app-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.app-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 28px; }
.app-kind { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yellow); }
.app-body h3 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; }
.app-body p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--on-dark-2); }
.app-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: 14px; font-weight: 700; color: var(--on-dark-3); }
.app-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.app-links a { color: var(--white); text-decoration: none; padding: 10px 0; }
.app-links a:hover { color: var(--yellow); }

/* ---------- game page: hero art ---------- */
.game-hero-art { flex: 1 1 440px; min-width: 0; display: flex; justify-content: center; }
.game-hero .phones { flex: 1 1 auto; }
.hero-land { width: 100%; border-radius: 28px; overflow: hidden; border: 8px solid var(--night); background: var(--night); }
.hero-land img { width: 100%; height: auto; display: block; }

/* ---------- concept / steps / stats ---------- */
.concept { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.concept-copy { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.concept-copy > p { margin: 0; font-size: 18px; line-height: 1.7; color: var(--ink-2); max-width: 680px; }
.steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.steps li { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 24px; background: var(--white); border: 1px solid var(--line); }
.step-n { width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); color: var(--night); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 16px; margin-bottom: 6px; }
.steps strong { font-size: 17px; }
.steps span:last-child { font-size: 15px; line-height: 1.5; color: var(--ink-3); }
.stats { flex: 1 1 400px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 22px 20px; min-width: 0; border-radius: 24px; background: var(--violet); color: var(--white); display: flex; flex-direction: column; gap: 4px; }
.stat:nth-child(2), .stat:nth-child(3) { background: var(--night); }
.stat strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 2.3vw, 32px); letter-spacing: -0.03em; line-height: 1.1; }
.stat span { font-size: 15px; color: #E4DEFF; }

/* ---------- gallery ---------- */
.gallery { list-style: none; margin: 32px 0 0; padding: 0 0 12px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 280px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; }
.gallery li { scroll-snap-align: start; border-radius: 28px; overflow: hidden; border: 6px solid var(--night); background: var(--night); }
.gallery img { width: 100%; height: auto; display: block; }
.gallery-land { grid-auto-columns: minmax(300px, 560px); }
.gallery:focus-visible { outline-offset: 6px; }

/* ---------- features: check icon ---------- */
.feature-ico { background: var(--violet-soft); color: var(--violet); }
.feature-ico svg { width: 26px; height: 26px; }

/* ---------- 404 ---------- */
.lost { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding: 48px 0; }
.lost-dot { width: 96px; height: 96px; border-radius: 50%; background: var(--yellow); animation: float 5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .lost-dot { animation: none; } }
