/* Slot City · «Колаж-зін у стилі газети й журналу»: папір, вирізки на стрічці, шапка видання, маркер */
:root {
  --paper: #F2EEE3;
  --ink: #17181C;
  --on-ink: #F2EEE3;
  --on-ink-muted: #C9C5B9;
  --card: #FBF9F3;
  --card-line: rgba(23, 24, 28, 0.3);
  --text: #23252B;
  --head: #0F1013;
  --muted: #4A4C53;
  --accent: #2B4EFF;
  --on-accent: #FFFFFF;
  --marker: #FFD84D;
  --line: rgba(23, 24, 28, 0.3);
  --tape: rgba(255, 216, 77, 0.65);
  --shadow: 3px 3px 0 rgba(23, 24, 28, 0.15);
  --side: 175px;
  --header-h: 64px;
  --wrap: 1080px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", cursive;
  --mast: "Playfair Display", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 18px/1.65 var(--font);
  overflow-x: hidden;
}
/* газетний папір: легкий шум feTurbulence */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.09 0 0 0 0 0.09 0 0 0 0 0.11 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-color: currentColor; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a[href^="tel:"] { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

h1, h2, h3 { color: var(--head); font-family: var(--font); font-weight: 800; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 21px; font-weight: 700; }
@media (min-width: 761px) {
  h1 { font-size: 50px; }
  h2 { font-size: 40px; }
}
p { margin: 0 0 1em; }
/* рукописний акцент маркером: темний Caveat поверх жовтої смуги нижче середини слова */
.hand {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.25em;
  line-height: 1;
  color: var(--head);
  padding: 0 .12em;
  background: linear-gradient(transparent 52%, var(--marker) 52%, var(--marker) 90%, transparent 90%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 5px; }
.skip:focus { left: 8px; }

/* ---------- кнопки ---------- */
.btn {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 10px;
  border-radius: 5px;
  border: 1.5px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  font: 700 17px/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: filter .15s;
}
.btn:hover { filter: brightness(1.15); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-sm { font-size: 15px; }
.btn:disabled { cursor: default; filter: saturate(.6); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.actions .btn { margin: 0; }

/* ---------- шапка видання ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  color: var(--on-ink);
  border-bottom: 1px solid var(--on-ink);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); padding: 0 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--on-ink); text-decoration: none; }
.logo img { width: 34px; height: 34px; }
.logo span { font-family: var(--mast); font-weight: 900; font-size: 24px; line-height: 1; letter-spacing: .01em; }
.logo small { display: block; margin-top: 3px; font-family: var(--font); font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-ink-muted); }
.header-right { display: flex; align-items: center; gap: 10px; }
.header-right .btn { white-space: nowrap; }
@media (max-width: 480px) {
  .logo small { display: none; }
  .logo span { font-size: 21px; }
  .logo img { width: 30px; height: 30px; }
  .kicker { font-size: 11px; letter-spacing: .1em; }
}
.site-header .btn:focus-visible, .side :focus-visible, .site-footer :focus-visible { outline-color: var(--marker); }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0;
  background: transparent; color: var(--on-ink);
  border: 1px solid rgba(242, 238, 227, .35); border-radius: 5px; cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------- бічне меню ---------- */
.layout { position: relative; z-index: 1; }
.layout::after { content: ""; display: block; clear: both; }
.side {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 80;
  width: min(280px, 82vw);
  padding: 18px 16px 24px;
  background: var(--ink);
  color: var(--on-ink);
  border-right: 1px solid rgba(242, 238, 227, .3);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .25s ease;
  visibility: hidden;
}
.side.open { transform: none; visibility: visible; }
.side-close {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin: 0 0 12px auto; padding: 0;
  background: transparent; color: var(--on-ink); font-size: 22px; line-height: 1;
  border: 1px solid rgba(242, 238, 227, .35); border-radius: 5px; cursor: pointer;
}
.side p { margin: 18px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--marker); }
.side ul { list-style: none; margin: 0; padding: 0; }
.side a { display: block; padding: 7px 0; color: var(--on-ink); text-decoration: none; text-align: left; font-size: 16px; line-height: 1.35; }
.side a:hover, .side a[aria-current] { text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: 2px; }
.side-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(23, 24, 28, .55); }
body.menu-open { overflow: hidden; }

@media (min-width: 1000px) {
  .menu-toggle, .side-close, .side-backdrop { display: none !important; }
  .side {
    position: sticky;
    top: var(--header-h);
    float: left;
    width: var(--side);
    height: calc(100vh - var(--header-h));
    padding: 24px 14px 24px 16px;
    transform: none;
    visibility: visible;
    z-index: 5;
  }
  .side p:first-child { margin-top: 0; }
  .main-col { margin-left: var(--side); }
  body.menu-open { overflow: auto; }
}

/* ---------- секції ---------- */
.main-col { min-width: 0; }
.section { padding: 56px 16px; }
.wrap { max-width: var(--wrap); margin: 0 auto; }
.narrow { max-width: 780px; margin: 0 auto; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 28px; }
.lead { font-size: 19px; }

/* роздільник — лінія відрізу з ножицями */
.divider {
  position: relative;
  height: 0;
  margin: 0 16px;
  border-top: 1.5px dashed var(--ink);
}
.divider::before {
  content: "✂";
  position: absolute;
  left: 0; top: 0;
  transform: translateY(-54%);
  padding-right: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

/* ---------- картки-вирізки ---------- */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 6px;
  padding: 15px;
  box-shadow: var(--shadow);
}
.card.tape::before {
  content: "";
  position: absolute;
  top: -11px; left: 50%;
  width: 70px; height: 22px;
  margin-left: -35px;
  background: var(--tape);
  transform: rotate(-3deg);
  border-radius: 2px;
}
.card.tape-corner::before { left: auto; right: -14px; top: -8px; margin: 0; transform: rotate(32deg); }
.card h3 { margin-top: 4px; }
.card p:last-child, .card ul:last-child, .card ol:last-child { margin-bottom: 0; }

/* нахил — лише там, де є місце; на мобільному знімається */
@media (min-width: 761px) {
  .tilt > *:nth-child(6n+1) { transform: rotate(-1.6deg); }
  .tilt > *:nth-child(6n+2) { transform: rotate(1.2deg); }
  .tilt > *:nth-child(6n+3) { transform: rotate(-0.8deg); }
  .tilt > *:nth-child(6n+4) { transform: rotate(1.8deg); }
  .tilt > *:nth-child(6n+5) { transform: rotate(-1.2deg); }
  .tilt > *:nth-child(6n+6) { transform: rotate(0.7deg); }
  .tilt-one { transform: rotate(-1deg); }
}

.grid { display: grid; gap: 26px; }
@media (min-width: 761px) { .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); } }

/* «Ідеї на вечір»: сітка на десктопі, горизонтальний скрол на мобільному */
.ideas { list-style: none; margin: 0; padding: 14px 0 6px; }
.ideas .icon { width: 46px; height: 46px; margin-bottom: 8px; }
@media (max-width: 760px) {
  .ideas {
    display: flex; gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -16px; padding: 14px 16px 12px;
    scrollbar-width: thin;
  }
  .ideas > li { flex: 0 0 82%; scroll-snap-align: center; }
  .swipe-hint { display: block; }
  /* картки ідей лишаються нахиленими й на мобільному */
  .ideas { padding-top: 22px; padding-bottom: 20px; }
  .ideas > li:nth-child(6n+1) { transform: rotate(-1.6deg); }
  .ideas > li:nth-child(6n+2) { transform: rotate(1.2deg); }
  .ideas > li:nth-child(6n+3) { transform: rotate(-0.8deg); }
  .ideas > li:nth-child(6n+4) { transform: rotate(1.8deg); }
  .ideas > li:nth-child(6n+5) { transform: rotate(-1.2deg); }
  .ideas > li:nth-child(6n+6) { transform: rotate(0.7deg); }
}
@media (min-width: 761px) {
  .ideas { display: grid; gap: 30px 26px; grid-template-columns: repeat(2, 1fr); }
  .swipe-hint { display: none; }
}
@media (min-width: 1200px) { .ideas { grid-template-columns: repeat(4, 1fr); } }
.swipe-hint { display: none; text-align: center; font-family: var(--hand); font-size: 22px; color: var(--muted); margin: 6px 0 0; }

/* ---------- списки ---------- */
.chips { list-style: none; counter-reset: chip; margin: 0 0 1em; padding: 0; }
.chips > li { counter-increment: chip; position: relative; padding: 4px 0 14px 58px; min-height: 46px; }
.chips > li::before {
  content: counter(chip);
  position: absolute; left: 3px; top: 3px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  font: 800 16px/1 var(--font);
  outline: 2px dashed var(--accent);
  outline-offset: 3px;
}
.stars { list-style: none; margin: 0 0 1em; padding: 0; }
.stars > li { position: relative; padding: 0 0 14px 32px; }
.stars > li::before { position: absolute; left: 2px; top: 0; font-size: 19px; line-height: 1.5; }
.stars > li:nth-child(odd)::before { content: "★"; color: var(--accent); }
.stars > li:nth-child(even)::before { content: "✦"; color: var(--ink); }
.dash { list-style: none; margin: 0 0 1em; padding: 0; }
.dash > li { position: relative; padding: 0 0 10px 22px; }
.dash > li::before { content: ""; position: absolute; left: 0; top: .72em; width: 11px; height: 3px; background: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 16px 72px; }
.hero-wheel {
  position: absolute;
  width: 720px; height: 720px;
  right: -360px; top: 50%;
  margin-top: -360px;
  opacity: .12;
  pointer-events: none;
  animation: spin 80s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* головний екран: ілюстрація-коробка з-під настолки замість колеса */
.hero-grid { position: relative; max-width: 1120px; margin: 0 auto; display: grid; gap: 8px; align-items: center; }
.hero-visual { width: min(270px, 72%); margin: 0 auto; }
.hero-art { width: 100%; height: auto; overflow: visible; animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(1deg); } }
@media (min-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px; }
  .hero-visual { order: 2; width: 100%; max-width: 400px; }
  .hero-split .inner { order: 1; }
}
.hero .inner { position: relative; max-width: 760px; margin: 0 auto; text-align: center; }
.kicker { display: inline-block; margin: 0 0 14px; padding: 4px 10px; border: 1.5px solid var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); transform: rotate(-1.5deg); }
.age-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 15px; color: var(--muted); }
.age-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 30px; padding: 0 6px; border: 1.5px solid currentColor; border-radius: 5px; font-weight: 800; font-size: 14px; color: var(--head); }
@media (max-width: 760px) {
  .hero-wheel { width: 460px; height: 460px; right: -230px; margin-top: -230px; }
}

/* ---------- колесо ---------- */
.wheel-box { display: grid; gap: 28px; align-items: center; justify-items: center; }
@media (min-width: 900px) { .wheel-box { grid-template-columns: 1.05fr 1fr; } }
.wheel-col { width: min(440px, 100%); }
.wheel-wrap { position: relative; width: 100%; aspect-ratio: 1; }
.wheel { width: 100%; height: 100%; transition: transform 4s cubic-bezier(.17,.67,.21,1); }
.wheel text { font: 700 10px var(--font); letter-spacing: .02em; }
.wheel-pointer {
  position: absolute; top: -6px; left: 50%;
  width: 34px; height: 40px; margin-left: -17px;
  z-index: 2;
  filter: drop-shadow(2px 2px 0 rgba(23,24,28,.2));
}
.wheel-result { width: 100%; max-width: 440px; text-align: center; }
.wheel-result .ach { margin: 0 0 8px; font-size: 24px; }
.wheel-result .idea { font-weight: 800; color: var(--head); font-size: 22px; margin: 0 0 8px; }
.wheel-controls { margin-top: 16px; }

/* ---------- міні-гра ---------- */
.game { max-width: 760px; margin: 0 auto; }
.game-bar { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-weight: 700; color: var(--head); }
.game-area {
  position: relative;
  height: 340px;
  overflow: hidden;
  touch-action: manipulation;
  user-select: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 216, 77, .25) 0 60px, transparent 61px),
    radial-gradient(circle at 80% 70%, rgba(43, 78, 255, .08) 0 80px, transparent 81px),
    var(--card);
}
.bubble {
  position: absolute;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: radial-gradient(circle at 32% 30%, #FFFFFF 0 9%, rgba(255, 255, 255, .5) 10% 40%, rgba(43, 78, 255, .55) 100%);
  box-shadow: 2px 2px 0 rgba(23, 24, 28, .15);
  cursor: pointer;
  animation: rise linear forwards;
}
.bubble.pop { animation: pop .18s ease-out forwards; }
@keyframes rise { from { transform: translateY(0); } to { transform: translateY(-420px); } }
@keyframes pop { to { transform: scale(1.5); opacity: 0; } }
.game-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 16px; text-align: center;
  background: rgba(251, 249, 243, .86);
}
.game-overlay p { margin: 0; }
.game-overlay .big { font-size: 28px; font-weight: 800; color: var(--head); }

/* ---------- FAQ ---------- */
.faq { counter-reset: q; max-width: 820px; margin: 0 auto; display: grid; gap: 16px; }
.faq-item { padding: 0; counter-increment: q; }
.faq-q {
  display: flex; align-items: center; gap: 16px;
  width: 100%; padding: 15px;
  background: none; border: 0; color: var(--head);
  font: 700 18px/1.35 var(--font); text-align: left; cursor: pointer;
}
.faq-q::before {
  content: counter(q);
  flex: 0 0 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  margin: 3px;
  border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  outline: 2px dashed var(--accent);
  outline-offset: 3px;
  font-size: 15px;
}
.faq-q::after { content: "+"; margin-left: auto; font-size: 26px; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq-a { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .3s ease, opacity .3s ease; }
.faq-a > div { padding: 0 15px 15px 69px; }
.faq-item.open .faq-a { opacity: 1; }
@media (max-width: 760px) { .faq-a > div { padding-left: 15px; } }

/* ---------- CTA та застереження ---------- */
.cta { max-width: 640px; margin: 0 auto; text-align: center; padding: 28px 20px; }
.disclaimer { max-width: 820px; margin: 0 auto; display: flex; gap: 14px; align-items: flex-start; font-size: 16px; }
.disclaimer .age-badge { flex: 0 0 auto; margin-top: 2px; }

/* ---------- внутрішні сторінки ---------- */
.page-hero { padding: 52px 16px 36px; text-align: center; position: relative; overflow: hidden; }
.page-hero .inner { position: relative; max-width: 760px; margin: 0 auto; }
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.help-grid { display: grid; gap: 22px; margin: 26px 0; }
@media (min-width: 761px) { .help-grid { grid-template-columns: repeat(2, 1fr); } }
.help-grid .tel { display: block; font-size: 26px; font-weight: 800; color: var(--head); text-decoration: none; margin: 2px 0 6px; }
.updated { color: var(--muted); font-size: 15px; }

/* ---------- 404 ---------- */
.nf { text-align: center; padding: 80px 16px; position: relative; overflow: hidden; }
.nf .num { font-family: var(--mast); font-weight: 900; font-size: 120px; line-height: 1; color: var(--head); margin: 0; }

/* ---------- футер ---------- */
.site-footer { position: relative; z-index: 1; background: var(--ink); color: var(--on-ink); border-top: 1px solid var(--on-ink); padding: 40px 16px 0; font-size: 16px; }
.footer-cols { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 28px; }
@media (min-width: 761px) { .footer-cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--marker); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 6px; }
.site-footer a { color: var(--on-ink); text-decoration-color: rgba(242, 238, 227, .5); }
.site-footer .age-badge { color: var(--on-ink); }
.footer-legal { max-width: var(--wrap); margin: 28px auto 0; padding: 18px 0; border-top: 1px solid rgba(242, 238, 227, .25); color: var(--on-ink-muted); font-size: 14px; }
.footer-legal p { margin: 0 0 8px; }
.copy { max-width: var(--wrap); margin: 0 auto; padding: 14px 0 22px; border-top: 1px solid rgba(242, 238, 227, .25); color: var(--on-ink-muted); font-size: 14px; }

/* ---------- cookies і вікове підтвердження ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  max-width: 560px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 16px;
}
.cookie p { margin: 0; flex: 1 1 240px; }
.cookie .btn { margin: 0; }
.age-gate {
  position: fixed; inset: 0; z-index: 150;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(23, 24, 28, .9);
}
.age-gate .card { max-width: 460px; text-align: center; padding: 28px 20px; }
.age-gate .age-badge { margin: 0 auto 12px; height: 44px; min-width: 64px; font-size: 20px; }
body.gated { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-wheel, .hero-art { animation: none; }
  .wheel { transition: none; }
  .side, .faq-a, .faq-q::after { transition: none; }
  .bubble { animation: none; }
}
