:root {
  --color-primary: #478cd2;
  --color-navy: #0e245f;
  --color-deep: #0a1b39;
  --color-accent: #fbd80b;
  --color-green: #4ab768;
  --color-surface: #f4f6fa;
  --color-ink: #10203a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-surface);
  color: var(--color-ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
}
h1, h2, h3 {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: -.02em;
  line-height: 1.06;
  margin: 0 0 .7rem;
  font-weight: 800;
}
h1 { font-size: clamp(2.3rem, 6vw, 4.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.08rem; }
p { margin: .65rem 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1180px; margin: auto; padding: 0 24px; }

/* ---------- header ---------- */
.top { background: var(--color-deep); color: var(--color-surface); border-bottom: 4px solid var(--color-accent); }
nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.brand { font-weight: 850; text-decoration: none; letter-spacing: -.03em; font-size: 1.05rem; }
.brand span { color: var(--color-accent); }
nav ul { display: flex; gap: 15px; list-style: none; margin: 0; padding: 0; font-size: .86rem; font-weight: 750; flex-wrap: wrap; align-items: center; }
nav a { text-decoration: none; }
nav ul a:hover { color: var(--color-accent); }
.nav-dl {
  background: var(--color-accent); color: var(--color-deep); padding: 9px 16px;
  font-weight: 850; border: 2px solid var(--color-accent);
}
.nav-dl:hover { background: var(--color-surface); }

/* ---------- hero ---------- */
.hero { background: var(--color-navy); color: var(--color-surface); padding: 70px 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: center; }
.eyebrow, .label {
  text-transform: uppercase; letter-spacing: .13em; font-weight: 850;
  font-size: .76rem; color: var(--color-accent);
}
.lede { font-size: 1.16rem; max-width: 620px; }
.button {
  display: inline-block; background: var(--color-accent); color: var(--color-deep);
  padding: 13px 22px; border: 2px solid var(--color-accent); font-weight: 850;
  text-decoration: none; margin-top: 16px;
}
.button:hover { background: var(--color-surface); }
.button-ghost { background: transparent; color: var(--color-surface); border-color: var(--color-accent); }
.button-ghost:hover { background: var(--color-accent); color: var(--color-deep); }
.screens { height: 470px; position: relative; display: block; margin: 0; }
.phone {
  position: absolute; width: 168px; height: 372px; top: 50%; left: 50%;
  background: var(--color-surface); border: 6px solid var(--color-surface);
  border-radius: 24px; overflow: hidden; box-shadow: 12px 15px 0 var(--color-deep);
  margin-top: -186px; margin-left: -84px;
}
.phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p1 { transform: rotate(-13deg) translate(-118px, 12px); }
.p2 { transform: translateY(-14px); }
.p3 { transform: rotate(13deg) translate(118px, 12px); }
.screens figcaption {
  position: absolute; bottom: -6px; text-align: center; width: 100%;
  font-size: .8rem; color: var(--color-surface);
}

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.alt { background: var(--color-primary); color: var(--color-surface); }
.alt .specs th, .alt .specs td { border-color: var(--color-surface); }
.section-head { margin-bottom: 24px; }
.section-head p { max-width: 760px; }
.small { font-size: .82rem; overflow-wrap: anywhere; }
.tag { color: var(--color-green); font-weight: 800; }
.alt .tag { color: var(--color-accent); }

/* ---------- download card ---------- */
.download-zone { margin-top: -34px; position: relative; }
figure { margin: 0; }
.download {
  display: grid; grid-template-columns: 132px 1fr auto; gap: 22px; align-items: center;
  padding: 22px; background: var(--color-surface); border: 3px solid var(--color-accent);
  box-shadow: 10px 10px 0 var(--color-navy); color: var(--color-ink);
}
.download .qr { width: 124px; height: 124px; display: block; }
.download-meta { text-align: right; font-size: .92rem; }
.download-meta strong { display: block; font-size: 1.25rem; }
figcaption { font-size: .82rem; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
.specs { width: 100%; border-collapse: collapse; background: var(--color-surface); color: var(--color-ink); }
.specs th, .specs td { text-align: left; padding: 13px 15px; border-bottom: 1px solid var(--color-primary); vertical-align: top; }
.specs th { width: 34%; font-weight: 800; }
.specs caption { caption-side: top; text-align: left; font-size: .82rem; padding-bottom: 8px; }

/* ---------- steps ---------- */
.tape { border-left: 3px solid var(--color-accent); display: grid; gap: 22px; padding-left: 25px; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 16px; }
.num {
  width: 50px; height: 50px; border-radius: 50%; background: var(--color-accent);
  color: var(--color-deep); display: grid; place-items: center; font-size: 1.15rem; font-weight: 900;
}
.steps { display: grid; gap: 18px; border-left: 3px solid var(--color-accent); padding-left: 22px; }

/* ---------- grids of blocks ---------- */
.compare, .cards, .tools, .shots, .platforms { display: grid; gap: 18px; }
.compare, .platforms { grid-template-columns: repeat(3, 1fr); }
.cards { grid-template-columns: repeat(2, 1fr); }
.tools { grid-template-columns: repeat(3, 1fr); }
.shots { grid-template-columns: repeat(3, 1fr); }
.compare article, .card, .tool, .platform {
  border: 2px solid var(--color-primary); padding: 22px; background: var(--color-surface);
}
.alt .card, .alt .tool { background: var(--color-surface); color: var(--color-ink); }
.tool { display: flex; flex-direction: column; gap: 9px; }
.tool input, .tool select, .tool button {
  font: inherit; padding: 11px; border: 2px solid var(--color-primary);
  background: var(--color-surface); color: var(--color-ink);
}
.tool button {
  background: var(--color-accent); border-color: var(--color-accent);
  font-weight: 850; cursor: pointer;
}
.tool output { font-weight: 850; color: var(--color-green); min-height: 1.4em; }
.tool label { font-size: .85rem; font-weight: 750; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checks label { display: flex; flex-direction: column; gap: 5px; font-size: .85rem; font-weight: 750; }

/* ---------- figures ---------- */
.figure { border: 2px solid var(--color-primary); padding: 18px; background: var(--color-surface); }
.figure img { display: block; width: 100%; }
.figure svg { display: block; width: 100%; max-height: 230px; }
.figure figcaption { margin-top: 10px; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; border: 2px solid var(--color-primary); background: var(--color-surface); }
.shot figcaption { margin-top: 8px; }
.betflow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: center; }
.betflow .arrow { font-size: 2rem; font-weight: 900; color: var(--color-accent); }

/* ---------- games grid ---------- */
.games { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.games figure { margin: 0; }
.games img { display: block; width: 100%; border: 2px solid var(--color-primary); }
.games figcaption { margin-top: 6px; font-size: .78rem; }

/* ---------- play box / pros-cons ---------- */
.playbox { border-left: 6px solid var(--color-accent); padding: 16px 20px; background: var(--color-navy); color: var(--color-surface); }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.proscons article { border: 2px solid var(--color-primary); padding: 22px; background: var(--color-surface); }
.proscons ul { margin: .5rem 0 0; padding-left: 1.15rem; }
.proscons li { margin: .35rem 0; }
.pros h3 { color: var(--color-green); }
.cons h3 { color: #b23a2f; }

/* ---------- faq / details ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 2px solid var(--color-primary); padding: 15px 0; }
.faq summary { font-weight: 850; cursor: pointer; }
.faq details p { margin-top: .6rem; }

/* ---------- breadcrumb / author / support ---------- */
.crumbs { font-size: .8rem; padding: 14px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--color-primary); }
.author-card { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; border: 2px solid var(--color-primary); padding: 20px; background: var(--color-surface); }
.author-card img { width: 96px; height: 96px; display: block; border-radius: 50%; }
.support { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.support div { border-left: 5px solid var(--color-accent); background: var(--color-surface); padding: 14px 16px; }
.support a { font-weight: 800; }

/* ---------- reviews / comments ---------- */
.rv-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.rv-list { display: grid; gap: 14px; }
.rv-card { border: 2px solid var(--color-primary); background: var(--color-surface); padding: 16px 18px; }
.rv-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.rv-name { font-weight: 850; }
.rv-badge {
  background: var(--color-navy); color: var(--color-surface); font-size: .68rem;
  text-transform: uppercase; letter-spacing: .08em; padding: 2px 7px; font-weight: 850;
}
.rv-stars { color: var(--color-accent); letter-spacing: .1em; font-size: .9rem; }
.rv-date { font-size: .78rem; color: var(--color-primary); margin-left: auto; }
.rv-text { margin: .5rem 0 .35rem; }
.rv-actions { display: flex; gap: 14px; align-items: center; font-size: .8rem; }
.rv-like, .rv-reply-open {
  background: none; border: 0; font: inherit; font-weight: 750; color: var(--color-primary);
  cursor: pointer; padding: 4px 0;
}
.rv-like[aria-pressed="true"] { color: var(--color-green); }
.rv-replies { margin-top: 12px; padding-left: 18px; border-left: 3px solid var(--color-primary); display: grid; gap: 12px; }
.rv-collapsed { display: none; }
.rv-more {
  margin-top: 14px; background: var(--color-accent); border: 2px solid var(--color-accent);
  color: var(--color-deep); font: inherit; font-weight: 850; padding: 10px 18px; cursor: pointer;
}
.rv-form { margin-top: 12px; display: grid; gap: 8px; max-width: 520px; }
.rv-form input, .rv-form textarea, .rv-form select {
  font: inherit; padding: 10px; border: 2px solid var(--color-primary); background: #fff; color: var(--color-ink);
}
.rv-form textarea { min-height: 84px; }
.rv-form button {
  background: var(--color-accent); border: 2px solid var(--color-accent); color: var(--color-deep);
  font: inherit; font-weight: 850; padding: 10px 18px; cursor: pointer; justify-self: start;
}
.rv-form .hp { position: absolute; left: -9999px; }
.rv-msg { font-weight: 750; color: var(--color-green); min-height: 1.2em; }

/* ---------- footer ---------- */
footer { background: var(--color-deep); color: var(--color-surface); padding: 38px 0; font-size: .88rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
footer a { color: var(--color-surface); }
footer p { margin: .4rem 0; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .games { grid-template-columns: repeat(4, 1fr); }
  .shots, .compare, .platforms, .tools { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  nav { align-items: flex-start; padding: 14px 0; }
  nav ul { gap: 12px; }
  .hero-grid, .checks, .cards, .proscons, .support,
  .shots, .compare, .platforms, .tools { grid-template-columns: 1fr; }
  .hero { padding: 46px 0; }
  .screens { height: 340px; margin-top: 25px; }
  .phone { width: 124px; height: 274px; margin-top: -137px; margin-left: -62px; }
  .p1 { transform: rotate(-10deg) translate(-84px, 10px); }
  .p3 { transform: rotate(10deg) translate(84px, 10px); }
  .download { grid-template-columns: 96px 1fr; }
  .download .qr { width: 92px; height: 92px; }
  .download-meta { grid-column: 2; text-align: left; }
  .section { padding: 46px 0; }
  .table-wrap { overflow: visible; }
  .specs, .specs tbody, .specs tr, .specs th, .specs td { display: block; width: auto; }
  .specs tr { border: 2px solid var(--color-primary); margin-bottom: 10px; padding: 10px; }
  .specs th, .specs td { border: 0; padding: 3px 8px; }
  .specs th { width: auto; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
  .specs td { font-weight: 750; }
  .tape { padding-left: 14px; }
  .step { grid-template-columns: 42px 1fr; }
  .num { width: 40px; height: 40px; font-size: 1rem; }
  .games { grid-template-columns: repeat(3, 1fr); }
  .betflow { grid-template-columns: 1fr; }
  .betflow .arrow { transform: rotate(90deg); text-align: center; }
  .author-card { grid-template-columns: 1fr; }
  .tools .tool, .tool { min-width: 0; }
  .tool { width: 100%; overflow-wrap: anywhere; }
  .tool h3 { font-size: 1.02rem; word-break: break-word; }
  .tool input, .tool select, .tool textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
  .tool output { max-width: 100%; white-space: normal; overflow-wrap: anywhere; word-break: break-all; font-size: .95rem; }
  .tool ol, .tool ul, .tool li { max-width: 100%; word-break: break-word; padding-left: 0; }
  .tool ol, .tool ul { padding-left: 18px; }
}
