/* Efigma · Shikaku — the game's dark look: black, neon blocks, pink → peach accent. */
:root {
  --bg: #050507;
  --plate: #111216;
  --plate-2: #17181d;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f4f6;
  --text-2: #9a9da6;
  --text-3: #62656e;
  --pink: #ee99cc;
  --peach: #f0c48f;
  --green: #a7e38b;
  --lavender: #9e95f5;
  --aqua: #8fdeeb;
  --butter: #edde82;
  --accent: linear-gradient(100deg, var(--pink), var(--peach));
  --radius: 26px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Language: both are in the page; the html element picks one. */
html[data-lang="en"] [lang="ru"],
html[data-lang="ru"] [lang="en"] { display: none !important; }

a { color: var(--pink); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(1080px, 100% - 32px); margin: 0 auto; }

/* Header */
header.top {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(5, 5, 7, 0.72);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 800 18px/1 var(--rounded); letter-spacing: 0.04em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav.links { margin-left: auto; display: flex; align-items: center; gap: 6px; }
nav.links a { color: var(--text-2); font-size: 15px; padding: 8px 12px; border-radius: 999px; }
nav.links a:hover, nav.links a[aria-current="page"] { color: var(--text); background: var(--plate-2); text-decoration: none; }
.lang {
  border: 1px solid var(--line); background: var(--plate); color: var(--text);
  font: 600 13px/1 var(--font); padding: 8px 12px; border-radius: 999px; cursor: pointer;
}

/* Hero */
.hero { position: relative; padding: 72px 0 40px; }
.hero .grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font: 600 13px/1 var(--rounded); letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow b { color: var(--text); font-family: "Hiragino Sans", "Yu Gothic", sans-serif; letter-spacing: 0; }
h1 { font: 860 clamp(40px, 6.4vw, 72px)/1.02 var(--rounded); letter-spacing: -0.02em; margin: 18px 0 18px; }
.grad { background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--text-2); font-size: 19px; max-width: 34em; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 26px; border-radius: 18px;
  background: var(--accent); color: #111; font: 700 17px/1 var(--rounded);
  box-shadow: 0 10px 30px rgba(238, 153, 204, 0.35);
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn.ghost { background: var(--plate-2); color: var(--text); box-shadow: none; border: 1px solid var(--line); }
.btn small { display: block; font: 600 11px/1.1 var(--font); opacity: 0.7; }
.note { color: var(--text-3); font-size: 14px; }

/* Phones */
.phones { position: relative; height: 620px; }
.phone {
  position: absolute; width: 270px; border-radius: 42px; padding: 9px; background: #1c1d22;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px rgba(0, 0, 0, 0.6);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 34px; }
.phone.a { left: 4%; top: 0; transform: rotate(-4deg); }
.phone.b { right: 2%; top: 60px; transform: rotate(5deg); }
.glow { position: absolute; inset: 10% 0 0 10%; background: radial-gradient(closest-side, rgba(238, 153, 204, 0.35), transparent); filter: blur(40px); }

/* Neon blocks in the background, like the game's menu */
.blocks { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.blocks i {
  position: absolute; border-radius: 22px; border: 3px solid; opacity: 0.55;
  box-shadow: 0 0 24px currentColor, inset 0 0 18px rgba(0, 0, 0, 0.6);
}

/* Features */
section { padding: 56px 0; }
h2 { font: 800 clamp(28px, 4vw, 40px)/1.1 var(--rounded); margin: 0 0 12px; letter-spacing: -0.01em; }
.sub { color: var(--text-2); margin: 0 0 32px; max-width: 40em; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--plate); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  position: relative; overflow: hidden;
}
.card .dot { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 16px; border: 2.5px solid; box-shadow: 0 0 16px currentColor; }
.card h3 { font: 700 19px/1.25 var(--rounded); margin: 0 0 8px; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }

.gallery { display: flex; gap: 18px; overflow-x: auto; padding: 4px 0 18px; scroll-snap-type: x mandatory; }
.gallery figure { margin: 0; flex: 0 0 240px; scroll-snap-align: start; }
.gallery img { width: 100%; height: auto; border-radius: 28px; border: 1px solid var(--line); display: block; }
.gallery figcaption { color: var(--text-2); font-size: 14px; margin-top: 10px; }

/* Documents (privacy, support) */
.doc { padding: 56px 0 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc p, .doc li { color: #d6d7dc; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.meta { color: var(--text-3); font-size: 14px; }
.box { background: var(--plate); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 24px 0; }
.box p { margin: 0; }
details { background: var(--plate); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; margin: 10px 0; }
details summary { cursor: pointer; font: 700 17px/1.3 var(--rounded); list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--text-3); }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--text-2); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--text-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer nav { display: flex; gap: 18px; margin-left: auto; }
footer a { color: var(--text-2); }

@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero .grid { grid-template-columns: 1fr; gap: 24px; }
  .phones { height: 470px; }
  .phone { width: 205px; border-radius: 34px; padding: 7px; }
  .phone img { border-radius: 28px; }
  .phone.a { left: 0; }
  .phone.b { right: 0; top: 40px; }
  .cards { grid-template-columns: 1fr; }
  .blocks i { opacity: 0.3; }
  nav.links a.hide-sm { display: none; }
  footer nav { margin-left: 0; }
}
@media (max-width: 420px) {
  .phones { height: 400px; }
  .phone { width: 172px; }
}

/* Studio home: the list of games */
.hero.studio { padding-bottom: 8px; }
.hero.studio h1 { max-width: 12em; }
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.app {
  display: block; color: var(--text); background: var(--plate); border: 1px solid var(--line);
  border-radius: 30px; overflow: hidden; transition: transform 0.2s ease, border-color 0.2s ease;
}
.app:hover { text-decoration: none; transform: translateY(-3px); border-color: rgba(238, 153, 204, 0.4); }
.app-shot { display: block; width: 100%; height: 260px; object-fit: cover; object-position: top; }
.app-body { display: flex; gap: 16px; padding: 20px; align-items: flex-start; }
.app-icon { width: 64px; height: 64px; border-radius: 15px; flex: none; }
.app h3 { font: 800 22px/1.2 var(--rounded); margin: 2px 0 6px; }
.app .kanji { color: var(--text-3); font: 600 16px/1 "Hiragino Sans", "Yu Gothic", sans-serif; }
.app p { margin: 0 0 12px; color: var(--text-2); font-size: 15px; }
.tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--plate-2); color: var(--text-2); font: 600 12px/1.3 var(--font); }
