/* Gidiba site: one column, app colors, light and dark. */
:root {
  --bg: #f1f3f6;
  --surface: #ffffff;
  --surface2: #e8ecf1;
  --line: #d5dae1;
  --fg: #15171c;
  --muted: #5f6672;
  --accent: #2f5bff;
  --on-accent: #ffffff;
  --accent-soft: #dce4ff;
  --pos: #0a6b45;
  --neg: #b42318;
  --p1: #ffc857;
  --p2: #6cc8f0;
  --p3: #f79bbe;
  --p4: #bca6ff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111318;
    --surface: #1b1e25;
    --surface2: #262a33;
    --line: #343945;
    --fg: #f1f3f7;
    --muted: #a4abb8;
    --accent: #6f8cff;
    --on-accent: #0d1020;
    --accent-soft: #232c4d;
    --pos: #4fc58f;
    --neg: #ff7a6b;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[id] { scroll-margin-top: 120px; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; margin: 0 0 12px; }
h1 { font-size: clamp(34px, 6vw, 54px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.small-text { font-size: 14px; }
.lead { font-size: 19px; color: var(--muted); max-width: 60ch; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
main > .wrap { margin-top: 72px; }
main > .wrap:first-child { margin-top: 32px; }

/* Header */
.top { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 800; font-size: 20px; }
.dots { display: inline-flex; }
.d { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 800;
  color: #15171c; margin-left: -5px; border: 2px solid var(--bg); }
.d1 { margin-left: 0; background: var(--p1); }
.d2 { background: var(--p2); }
.d3 { background: var(--p3); }
.d4 { background: var(--p4); }
nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
nav a { color: var(--fg); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 0; }
nav a:hover { color: var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--fg); color: var(--bg); text-decoration: none;
  font-weight: 700; font-size: 15px; padding: 10px 16px; border-radius: 12px; min-height: 44px; }
.btn.big { font-size: 17px; padding: 14px 22px; border-radius: 14px; }
.btn:hover { opacity: .9; }
.actions { margin: 24px 0 12px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.hero-shot { width: 100%; max-width: 340px; justify-self: center; border-radius: 28px; box-shadow: 0 20px 50px rgba(20, 30, 60, .15); }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-shot { max-width: 280px; }
}

/* Cards */
.features, .plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 20px; }
.feature, .plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.feature p, .plan p { color: var(--muted); margin: 0; font-size: 16px; }
.plan.accent { background: var(--accent-soft); border-color: transparent; }

.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 210px); gap: 14px; overflow-x: auto;
  padding: 4px 0 12px; scroll-snap-type: x mandatory; margin-top: 20px; }
.strip figure { margin: 0; scroll-snap-align: start; }
.strip img { border-radius: 18px; border: 1px solid var(--line); }
.strip figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 20px; }
.game { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; color: var(--fg); text-decoration: none; min-height: 72px; }
.game:hover { border-color: var(--accent); }
.game strong { display: block; font-size: 17px; }
.game .muted { font-size: 14px; display: block; }
.gi { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--surface2); display: grid; place-items: center;
  font-size: 22px; color: var(--accent); }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; align-items: flex-start;
  justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 22px; line-height: 1.1; color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); }

/* Call to action */
.cta { background: var(--accent); color: var(--on-accent); border-radius: 24px; padding: 28px; display: flex; gap: 20px;
  align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta h2 { margin-bottom: 6px; }
.cta p { margin: 0; opacity: .9; }
.cta .btn { background: var(--on-accent); color: var(--accent); }

/* Articles */
.article { max-width: 760px; }
.article h2 { margin-top: 40px; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 8px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.steps li::marker { color: var(--accent); font-weight: 800; }
.table-wrap { overflow-x: auto; margin: 16px 0 20px; }
table { border-collapse: collapse; width: 100%; background: var(--surface); border-radius: 14px; overflow: hidden; font-size: 16px; }
th, td { padding: 10px 14px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { background: var(--surface2); font-weight: 700; font-size: 14px; }
tr:last-child td { border-bottom: 0; }
td.pos { color: var(--pos); font-weight: 700; }
td.neg { color: var(--neg); font-weight: 700; }

/* Footer */
.foot { margin-top: 80px; border-top: 1px solid var(--line); padding: 40px 0 56px; background: var(--surface); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }
.foot .muted { margin: 12px 0 16px; font-size: 15px; }
h2.small { font-size: 15px; margin-bottom: 10px; letter-spacing: 0; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { margin-bottom: 6px; }
.plain a { color: var(--fg); text-decoration: none; font-size: 15px; }
.plain a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media (max-width: 480px) {
  th, td { padding: 8px 8px; font-size: 14px; }
}
.langs { columns: 2; column-gap: 24px; }
.langs a[aria-current] { color: var(--accent); font-weight: 700; }
.links { margin-top: 16px; font-size: 15px; }
.links a { color: var(--fg); }
div.game { cursor: default; }
div.game:hover { border-color: var(--line); }
.guide-list { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.guide-list a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; font-weight: 700; text-decoration: none; color: inherit; }
.guide-list a:hover { border-color: var(--accent); }
