/* Yazboz Guru website. Layout: a sticky top bar, full-width bands with a 1120px column, and the
   app's own palette and type (Manrope). Light by default; dark with data-theme="dark", the device's
   choice with data-theme="auto". */
@font-face { font-family: Manrope; font-weight: 400; font-display: swap; src: url(/assets/fonts/manrope-400.ttf) format("truetype"); }
@font-face { font-family: Manrope; font-weight: 600; font-display: swap; src: url(/assets/fonts/manrope-600.ttf) format("truetype"); }
@font-face { font-family: Manrope; font-weight: 700; font-display: swap; src: url(/assets/fonts/manrope-700.ttf) format("truetype"); }
@font-face { font-family: Manrope; font-weight: 800; font-display: swap; src: url(/assets/fonts/manrope-800.ttf) format("truetype"); }

:root {
  --bg: #F6F4F0; --bg-2: #EFEBE5; --surface: #FFFFFF; --ink: #2A2926; --muted: #6B675F; --faint: #8F8A82; --line: #E6E1D9;
  --accent: #4F6E5E; --accent-soft: #6F8F7E; --on-accent: #FFFFFF; --tint: #E3EBE5;
  --brick: #9A3A2B; --brick-tint: #F6E1DB; --pos: #3D7050; --neg: #A8432F;
  --app-bg: #F6F4F0; --glass: rgba(246, 244, 240, .82); --shadow: rgba(42, 41, 38, .14);
  --font: Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #121214; --bg-2: #18181B; --surface: #1E1E22; --ink: #ECEAE6; --muted: #A19D96; --faint: #74706A; --line: #2F2F35;
    --accent: #8FB5A1; --accent-soft: #8FB09F; --on-accent: #102019; --tint: #23302A;
    --brick: #E58B78; --brick-tint: #3A2420; --pos: #8CC49E; --neg: #E09A9A;
    --app-bg: #141416; --glass: rgba(18, 18, 20, .80); --shadow: rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121214; --bg-2: #18181B; --surface: #1E1E22; --ink: #ECEAE6; --muted: #A19D96; --faint: #74706A; --line: #2F2F35;
  --accent: #8FB5A1; --accent-soft: #8FB09F; --on-accent: #102019; --tint: #23302A;
  --brick: #E58B78; --brick-tint: #3A2420; --pos: #8CC49E; --neg: #E09A9A;
  --app-bg: #141416; --glass: rgba(18, 18, 20, .80); --shadow: rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

/* Theme-dependent images */
.only-dark { display: none !important; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .only-light { display: none !important; } :root[data-theme="auto"] .only-dark { display: block !important; } }
:root[data-theme="dark"] .only-light { display: none !important; }
:root[data-theme="dark"] .only-dark { display: block !important; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--glass); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.links { display: flex; gap: 4px; margin-left: 12px; }
.links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.links a:hover { color: var(--ink); background: var(--bg-2); }
.actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; min-width: 38px; justify-content: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: 700 13px var(--font); cursor: pointer; list-style: none; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { border-color: var(--faint); }
.theme-btn .ic { display: none; }
.theme-btn[data-state="auto"] .ic-auto, .theme-btn:not([data-state]) .ic-light, .theme-btn[data-state="light"] .ic-light, .theme-btn[data-state="dark"] .ic-dark { display: inline-flex; }
.lang { position: relative; }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; right: 0; top: 46px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px var(--shadow); min-width: 180px; z-index: 30; }
.lang a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.lang a:hover { background: var(--bg-2); }
.lang a[aria-current] { color: var(--accent); }
@media (max-width: 860px) { .links { display: none; } }
@media (max-width: 420px) { .brand span { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 16px; font: 700 16px var(--font); text-decoration: none; border: 1px solid transparent; white-space: nowrap; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.ghost { background: var(--tint); color: var(--accent); }
.btn.small { height: 38px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { font-size: 14px; color: var(--muted); }

/* Phone and watch frames */
.phone { margin: 0; width: 270px; max-width: 100%; padding: 9px; border-radius: 46px; background: #1C1C1E; box-shadow: 0 30px 60px -20px var(--shadow), 0 0 0 1px rgba(255, 255, 255, .06) inset; }
.phone .screen { position: relative; border-radius: 37px; overflow: hidden; background: var(--app-bg); padding-top: 34px; }
.phone.light-screen .screen { background: #F6F4F0; }
.phone .screen::before { content: ""; position: absolute; top: 10px; left: 50%; width: 31%; height: 22px; transform: translateX(-50%); border-radius: 12px; background: #000; z-index: 2; }
.phone img { display: block; width: 100%; height: auto; }
.watch { margin: 0; width: 210px; padding: 12px; border-radius: 58px; background: #1C1C1E; box-shadow: 0 30px 60px -20px var(--shadow); }
.watch .screen { border-radius: 46px; overflow: hidden; background: #000; }
.watch img { display: block; width: 100%; height: auto; }

/* Home: hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%; background: radial-gradient(closest-side, var(--tint), transparent); opacity: .9; pointer-events: none; }
.hero::after { content: ""; position: absolute; left: -15%; bottom: -30%; width: 55%; height: 80%; background: radial-gradient(closest-side, var(--brick-tint), transparent); opacity: .7; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; letter-spacing: -.035em; }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 34em; }
.hero-art { position: relative; display: flex; justify-content: center; min-height: 560px; }
.hero-art .phone { position: absolute; }
.hero-art .back { width: 240px; transform: translate(-46%, 40px) rotate(-6deg); opacity: .97; }
.hero-art .front { width: 270px; transform: translate(30%, 0) rotate(3deg); }
@media (max-width: 900px) {
  .hero { padding: 40px 0 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { min-height: 470px; }
  .hero-art .back { width: 200px; transform: translate(-32%, 34px) rotate(-6deg); }
  .hero-art .front { width: 228px; transform: translate(22%, 0) rotate(3deg); }
  .hero .lead { font-size: 17px; }
}

/* Home: facts strip */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.stats ul { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats li { font-weight: 700; font-size: 15px; text-align: center; color: var(--ink); }
.stats li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-soft); margin-right: 10px; vertical-align: middle; }
@media (max-width: 760px) { .stats ul { grid-template-columns: 1fr 1fr; } .stats li { text-align: left; } }

/* Home: sections */
.section { padding: 88px 0; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 48px; max-width: 720px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 28px 0; }
.feature + .feature { border-top: 1px solid var(--line); padding-top: 56px; margin-top: 28px; }
.feature:nth-of-type(even) .feature-media { order: -1; }
.feature-copy { display: flex; flex-direction: column; gap: 14px; max-width: 30em; }
.feature-copy .num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--accent); font-weight: 800; }
.feature-copy h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.feature-copy p { color: var(--muted); font-size: 18px; }
.checks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); font-weight: 600; font-size: 16px; line-height: 1.45; }
.checks .tick { flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--tint); color: var(--accent); margin-top: -1px; }
.checks .tick svg { width: 14px; height: 14px; }
.tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--brick-tint); color: var(--brick); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; vertical-align: 2px; white-space: nowrap; }
.feature-media { display: flex; justify-content: center; padding: 28px; border-radius: 32px; background: var(--bg-2); }
@media (max-width: 860px) { .section { padding: 56px 0; } .feature { grid-template-columns: 1fr; gap: 28px; } .feature:nth-of-type(even) .feature-media { order: 0; } .feature-media .phone { width: 240px; } }

/* Games */
.games-section { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.game-cards { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.game-card { display: flex; align-items: center; gap: 14px; height: 100%; padding: 18px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.game-card:hover { transform: translateY(-2px); border-color: var(--faint); }
.game-card .dot { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 16px; color: #fff; }
.game-card strong { display: block; font-size: 17px; line-height: 1.3; }
.game-card span.meta { display: block; font-size: 14px; color: var(--muted); line-height: 1.35; }
.game-card .go { margin-left: auto; color: var(--faint); width: 18px; height: 18px; flex: none; }
.cats { display: grid; gap: 28px; }
.cat h3 { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.chips a:hover { border-color: var(--faint); }
.chips i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 32px; font-weight: 700; text-decoration: none; }
.more svg { width: 18px; height: 18px; }

/* Web band and closing call to action */
.band { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: 40px; border-radius: 32px; background: var(--tint); }
.band h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-bottom: 10px; }
.band p { color: var(--muted); }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; padding: 28px; } }
.cta { text-align: center; }
.cta-card { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 64px 24px; border-radius: 40px; background: var(--ink); color: var(--bg); }
.cta-card img { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }
.cta-card h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; color: var(--bg); }
.cta-card p { color: color-mix(in srgb, var(--bg) 72%, transparent); }
.cta-card .btn.primary { background: var(--bg); color: var(--ink); }
.cta-card .btn.ghost { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, transparent); }

/* Game finder: search, filters and sort (rules list, home) */
.finder { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 28px; }
.search-box { position: relative; flex: 1 1 280px; min-width: 0; }
.search-box svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search-box input { width: 100%; height: 50px; padding: 0 16px 0 46px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 16px var(--font); }
.search-box input::placeholder { color: var(--faint); font-weight: 500; }
.search-box input:focus { outline: 2.5px solid var(--accent); outline-offset: 1px; }
.finder select { height: 50px; padding: 0 38px 0 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%238F8A82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; color: var(--ink); font: 700 15px var(--font); -webkit-appearance: none; appearance: none; cursor: pointer; max-width: 100%; }
.finder select.on { border-color: var(--accent); background-color: var(--tint); color: var(--accent); }
.finder .clear { height: 50px; padding: 0 16px; border: 0; border-radius: 16px; background: transparent; color: var(--accent); font: 700 15px var(--font); cursor: pointer; }
.finder .count { margin-left: auto; font-size: 14px; color: var(--muted); font-weight: 600; }
.empty { padding: 40px 24px; border-radius: 24px; background: var(--surface); border: 1px dashed var(--line); text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.home-search { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.home-search .search-box { flex: 1 1 320px; }
@media (max-width: 600px) { .finder select { flex: 1 1 calc(50% - 5px); } .finder .count { margin-left: 0; width: 100%; } }

/* Contact */
.contact-card { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 32px; border-radius: 32px; background: var(--surface); border: 1px solid var(--line); }
.contact-card .icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--brick-tint); color: var(--brick); }
.contact-card .icon svg { width: 26px; height: 26px; }
.contact-card h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; margin-bottom: 6px; }
.contact-card p { color: var(--muted); }
.contact-card .mail { font-weight: 700; color: var(--ink); user-select: all; }
@media (max-width: 760px) { .contact-card { grid-template-columns: 1fr; padding: 24px; } }

/* Rules pages */
.page { padding-block: 32px 72px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--accent); }
.page-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; max-width: 760px; }
.page-head h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; letter-spacing: -.03em; }
.page-head .lead { font-size: 19px; color: var(--muted); }
.rule-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.rule-aside { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; padding: 24px; border-radius: 28px; background: var(--bg-2); }
.rule-aside .phone { width: 220px; }
.rule-aside h2 { font-size: 19px; font-weight: 800; }
.rule-aside p { font-size: 15px; color: var(--muted); }
.rule-aside .btn { width: 100%; }
@media (max-width: 960px) { .rule-grid { grid-template-columns: 1fr; } .rule-aside { position: static; } }
.prose { min-width: 0; }
.prose > section { padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.prose > section + section { margin-top: 16px; }
.prose h2 { font-size: 24px; font-weight: 800; margin: 26px 0 8px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; font-weight: 800; margin: 20px 0 6px; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 10px; }
.prose strong { color: var(--ink); }
.prose .lead { font-size: 18px; }
.glance { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.glance li { padding: 6px 14px; border-radius: 999px; background: var(--tint); color: var(--accent); font-size: 14px; font-weight: 700; }
ol.steps, ul.points { padding-left: 0; margin: 8px 0 0; list-style: none; display: grid; gap: 10px; }
ol.steps { counter-reset: step; }
ol.steps li { position: relative; padding-left: 42px; counter-increment: step; }
ol.steps li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--tint); color: var(--accent); font-weight: 800; font-size: 14px; }
ul.points li { position: relative; padding-left: 22px; }
ul.points li::before { content: ""; position: absolute; left: 4px; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-soft); }
table.points { width: 100%; border-collapse: collapse; margin-top: 8px; }
table.points td { padding: 11px 0; border-top: 1px solid var(--line); color: var(--muted); vertical-align: top; }
table.points tr:first-child td { border-top: 0; }
table.points td.value { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); padding-left: 16px; }
table.points td.pos { color: var(--pos); }
table.points td.neg { color: var(--neg); }
.more-games { margin-top: 56px; }
.more-games h2 { font-size: 24px; font-weight: 800; margin-bottom: 18px; }

/* List page */
.cat-block + .cat-block { margin-top: 40px; }
.cats .cat-block + .cat-block { margin-top: 0; }
.cat-block h2 { font-size: 15px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

/* Legal pages */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; margin-bottom: 8px; }
.legal h2 { font-size: 22px; font-weight: 800; margin: 32px 0 8px; }
.legal h3 { font-size: 17px; font-weight: 800; margin: 20px 0 4px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 22px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 40px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { color: var(--muted); font-size: 15px; margin-top: 12px; max-width: 22em; }
.site-footer h2 { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-footer ul a:hover { color: var(--accent); }
.foot-notes { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.foot-notes p { font-size: 13px; color: var(--faint); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
