/* ALIBI INCLUDED — стилі сайту. Кольори, шрифти й діагональ за брендбуком v1.0 */
@font-face {
  font-family: "DejaVu Sans Mono";
  src: local("DejaVu Sans Mono"), url("fonts/DejaVuSansMono-subset.woff2") format("woff2");
  font-display: swap;
}
:root {
  /* Палітра брендбука */
  --yellow: #FFCA04;
  --ink: #080604;
  --cream: #FFEDA7;
  --warm: #FAF7EF;
  /* Похідні для темного інтерфейсу */
  --ink-2: #13100b;
  --ink-3: #1d1912;
  --line: #2c271d;
  --muted: #b3ab97;
  --error: #FF6B57;
  --radius: 12px;
  --wrap: 1180px;
  --cut: -22deg;          /* кут зрізу з літери B */
  --sans: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "DejaVu Sans Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--warm); font-family: var(--sans); font-size: 16px; line-height: 24px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; margin: 0 0 16px; letter-spacing: -.01em; }
h1 { font-size: 48px; line-height: 52px; }
h2 { font-size: 32px; line-height: 36px; }
h3 { font-size: 24px; line-height: 30px; }
p { margin: 0 0 16px; }
small, .caption { font-size: 14px; line-height: 20px; }
.mono { font-family: var(--mono); font-size: 13px; line-height: 18px; letter-spacing: .02em; }

/* Смуга «Лише демо» */
.demo-strip { background: var(--ink); color: var(--cream); font-size: 14px; line-height: 20px; text-align: center; padding: 6px 16px; border-bottom: 1px solid var(--line); }
.demo-strip b { color: var(--yellow); }

/* Шапка: темна основа, коротка версія знака */
.top { position: sticky; top: 0; z-index: 20; background: var(--ink); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 12px; border-radius: 8px; color: var(--warm); }
.nav a:hover { color: var(--yellow); }
.nav a[aria-current="page"] { color: var(--yellow); box-shadow: inset 0 -2px 0 var(--yellow); border-radius: 0; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-left: 8px; }
.lang a { padding: 5px 10px; font-size: 13px; border-radius: 0; box-shadow: none !important; }
.lang a.on { background: var(--yellow); color: var(--ink); }
.age-badge { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--cream); color: var(--cream); font-family: var(--mono); font-weight: 700; font-size: 12px; flex: none; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font: 700 15px var(--sans); color: var(--warm); cursor: pointer; }

/* Кнопки: жовта — основна дія, текст на ній чорний */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 16px/24px var(--sans); text-decoration: none; padding: 12px 22px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--cream); }
.btn-ink { background: var(--ink); color: var(--warm); }
.btn-ink:hover { color: var(--yellow); }
.btn-ghost { background: transparent; color: var(--warm); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--cream); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); }

/* Перший екран: жовте поле, чорна типографіка, один зріз */
.hero { background: var(--yellow); color: var(--ink); padding: 64px 0 80px; position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-logo { width: 100%; max-width: 520px; }
.hero h1 { margin: 32px 0 12px; }
.hero p.lead { font-size: 18px; line-height: 28px; max-width: 480px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero .actions .btn-ink { color: var(--yellow); }
.hero .actions .btn-ink:hover { color: var(--cream); }
.hero .cut { position: absolute; z-index: 0; left: 44%; right: -20%; top: 62%; height: 40px; background: var(--ink); transform: rotate(var(--cut)); transform-origin: left center; }
.hero-card { position: relative; display: block; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; background: var(--ink); }
.hero-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.hero-card .cap { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; color: var(--warm); }
.hero-card .cap b { font-size: 16px; }
.hero-card .cap .mono { color: var(--cream); }

/* Рух логотипа: плашка входить слідом за словом ALIBI */
.hero-logo .plate { animation: plate-in .45s .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes plate-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-logo .plate { animation: none; } html { scroll-behavior: auto; } }

.tag { display: inline-block; font-family: var(--mono); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--ink); color: var(--cream); border: 1px solid var(--line); }
.tag.y { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

/* Секції */
.section { padding: 80px 0; }
.section.alt { background: var(--ink-2); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head p { color: var(--muted); max-width: 520px; margin: 0; }
.eyebrow { color: var(--cream); font-family: var(--mono); font-size: 13px; line-height: 18px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }

/* Картки ігор: діагональ лише в підкладці */
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.game { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: border-color .15s; }
a.game:hover { border-color: var(--yellow); }
.game .thumb { position: relative; aspect-ratio: 4/3; background: var(--ink); overflow: hidden; }
.game .thumb img { width: 100%; height: 100%; object-fit: cover; }
.game .thumb .tag { position: absolute; left: 12px; top: 12px; }
.game .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.game .body h3 { margin: 0; font-size: 20px; line-height: 26px; }
.game .rtp { color: var(--cream); }
.game .desc { color: var(--muted); font-size: 14px; line-height: 20px; margin: 4px 0 0; }
.game .cta { margin-top: auto; padding-top: 12px; }
.game .cta span { display: inline-block; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 15px; padding: 8px 14px; border-radius: 8px; }
.game.soon .thumb { background: var(--ink-2); }
.game.soon .thumb::after { content: ""; position: absolute; left: -10%; right: -10%; top: 50%; height: 14px; background: var(--line); transform: rotate(var(--cut)); }
.game.soon .body h3 { color: var(--muted); }

/* Сторінка гри */
.game-hero { padding: 32px 0 16px; }
.crumbs { font-size: 14px; line-height: 20px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.player { position: relative; aspect-ratio: 16/9; width: 100%; background: var(--ink); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.player img.poster { width: 100%; height: 100%; object-fit: cover; filter: brightness(.4); }
.player .overlay { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; }
.player .overlay .inner { display: grid; gap: 14px; justify-items: center; }
.player .overlay img.glogo { width: min(420px, 70%); }
.player .overlay small { color: var(--cream); max-width: 460px; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--ink); }
.player .err { position: absolute; inset: 0; display: none; place-items: center; text-align: center; padding: 24px; background: rgba(8,6,4,.9); color: var(--warm); }
.player .err h3::before { content: "⚠ "; color: var(--error); }
.player.failed .err { display: grid; }
.player-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 12px; flex-wrap: wrap; }
.player-bar .note { color: var(--muted); font-size: 14px; line-height: 20px; }
.player-bar button { font-size: 14px; padding: 8px 14px; }
.params { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 32px 0; }
.param { background: var(--ink-2); padding: 14px 16px; }
.param b { display: block; font-family: var(--mono); font-size: 18px; line-height: 24px; color: var(--warm); }
.param.key b { color: var(--yellow); }
.param span { color: var(--muted); font-size: 14px; line-height: 20px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.features { padding-left: 1.2em; }
.features li { margin-bottom: 10px; }
.features li b { color: var(--cream); }

/* Про студію */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.pillar { border-top: 2px solid var(--line); padding-top: 14px; }
.pillar h3 { font-size: 18px; line-height: 24px; }
.pillar p { color: var(--muted); font-size: 14px; line-height: 20px; }
.contact-card { background: var(--ink-3); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.contact-card h2 { font-size: 24px; line-height: 30px; }
.contact-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.contact-card a { color: var(--yellow); font-weight: 700; }

/* Відповідальна гра */
.rg-box { border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: 12px; padding: 24px; background: var(--ink-2); }
.prose { max-width: 760px; }
.prose h2 { margin-top: 40px; font-size: 24px; line-height: 30px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }

/* Підвал */
.foot { background: var(--ink); border-top: 1px solid var(--line); padding: 48px 0 28px; color: var(--muted); font-size: 14px; line-height: 20px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot .flogo { width: 180px; height: auto; margin-bottom: 16px; }
.foot h4 { color: var(--cream); font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; font-weight: 400; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: var(--warm); text-decoration: none; }
.foot a:hover { color: var(--yellow); }
.foot .legal { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; display: flex; gap: 16px; align-items: center; }
.foot .legal p { margin: 0; }

/* Вікно 18+ */
.age-gate { position: fixed; inset: 0; z-index: 100; background: rgba(8,6,4,.94); display: none; place-items: center; padding: 16px; }
.age-gate.show { display: grid; }
.age-gate .box { background: var(--yellow); color: var(--ink); border-radius: 16px; padding: 32px 28px; max-width: 440px; text-align: center; }
.age-gate .big { font-family: var(--mono); font-size: 56px; line-height: 1; font-weight: 700; margin-bottom: 16px; }
.age-gate h2 { font-size: 24px; line-height: 30px; }
.age-gate .row { display: flex; gap: 12px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.age-gate .yes { background: var(--ink); color: var(--yellow); }
.age-gate .bye { display: none; font-weight: 700; margin-top: 16px; }

/* Адаптивність */
@media (max-width: 960px) {
  .hero .wrap, .about-grid, .two { grid-template-columns: 1fr; }
  .hero .cut { left: -10%; top: auto; bottom: 120px; }
  .games { grid-template-columns: repeat(2, 1fr); }
  .params { grid-template-columns: repeat(3, 1fr); }
  .foot .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  h1 { font-size: 32px; line-height: 36px; }
  h2 { font-size: 26px; line-height: 32px; }
  .wrap { padding: 0 16px; }
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .lang { align-self: flex-start; margin: 8px 0 0; }
  .games, .pillars { grid-template-columns: 1fr; }
  .params { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 0; }
  .hero { padding: 40px 0 56px; }
  .hero .cut { height: 24px; bottom: 150px; }
  .foot .cols { grid-template-columns: 1fr; }
  .player .overlay img.glogo { width: 60%; }
  .player .overlay small { display: none; }
}

/* Таблиця купівлі бонусу */
.buys { width: 100%; border-collapse: collapse; font-size: 15px; }
.buys th { text-align: left; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.buys td { padding: 10px; border-bottom: 1px solid var(--line); }
.buys td.mono { font-size: 14px; }
