/* Styles of the website's static pages (home, how to play, strategy, about; English and Slovenian).
   Generated pages: scripts/site-pages.mjs. The game at /play/ has its own styles. No external requests: the display font
   (Baloo 2, SIL OFL, see /fonts/OFL.txt) is served from this site. */
@font-face {
  font-family: 'Baloo 2';
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/baloo-2-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Baloo 2';
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/baloo-2-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f6f4ea;
  --bg-alt: #ecefe0;
  --surface: #ffffff;
  --ink: #14251a;
  --muted: #475a4d;
  --line: #d9d6c4;
  --brand: #1b6a42;
  --brand-ink: #ffffff;
  --soft: #e1eddc;
  --deep: #0f3d2b;
  --deep-ink: #f3f7ef;
  --deep-muted: #c3d8c8;
  --deep-accent: #9fe0b9;
  --wolf: #6b4a3a;
  --sheep: #8d8a7a;
  --shadow: 0 1px 2px rgba(15, 61, 43, 0.08), 0 10px 28px rgba(15, 61, 43, 0.08);
  --r: 16px;
  --display: 'Baloo 2', ui-rounded, 'Arial Rounded MT Bold', Nunito, 'Segoe UI', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1a15;
    --bg-alt: #0f231c;
    --surface: #132a21;
    --ink: #e8f1e9;
    --muted: #a9beae;
    --line: #26443a;
    --brand: #62c58d;
    --brand-ink: #07241a;
    --soft: #183629;
    --deep: #0a2a20;
    --wolf: #c9a08c;
    --sheep: #9a9887;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 70rem; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, .brand, .num, .foot-h, .toc-title { font-family: var(--display); font-weight: 800; letter-spacing: 0.005em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 10px; z-index: 30; }
.skip:focus { left: 8px; }

/* ---- header ---- */
header.site { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
header.site .bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; padding-top: 6px; padding-bottom: 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 1.35rem; line-height: 1; }
.brand img { border-radius: 8px; display: block; }
header.site nav { display: flex; flex-wrap: wrap; gap: 2px; margin-left: 12px; }
header.site a.nav { color: var(--muted); text-decoration: none; padding: 0 12px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; font-weight: 500; transition: background-color 0.15s, color 0.15s; }
header.site a.nav:hover { background: var(--soft); color: var(--ink); }
header.site a.nav[aria-current='page'] { color: var(--ink); font-weight: 650; box-shadow: inset 0 -3px 0 var(--brand); border-radius: 10px 10px 0 0; }
header.site .lang { margin-left: auto; display: inline-flex; align-items: center; color: var(--muted); }
header.site .lang a.nav { padding: 0 8px; }
header.site .lang a.nav[aria-current='true'] { color: var(--ink); font-weight: 650; }
header.site .play { margin-left: 8px; min-height: 44px; padding: 0 20px; }
@media (max-width: 760px) {
  header.site { position: static; }
  header.site a.nav { padding: 0 9px; font-size: 0.95rem; }
  header.site .play { order: 2; margin-left: auto; }
  header.site .lang { order: 3; margin-left: 0; }
  header.site nav { order: 4; width: 100%; margin-left: 0; }
  header.site .bar { row-gap: 0; }
}

/* ---- buttons ---- */
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1rem; transition: transform 0.15s, background-color 0.15s, border-color 0.15s; }
.btn:hover { border-color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: brightness(1.08); }
@media (prefers-reduced-motion: no-preference) { .btn:hover { transform: translateY(-1px); } }

/* ---- hero (home) ---- */
.hero { background: radial-gradient(900px 420px at 88% -10%, rgba(98, 197, 141, 0.28), transparent 70%), var(--deep); color: var(--deep-ink); overflow: hidden; }
.hero-grid { display: grid; gap: 28px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.hero-copy h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.05; margin: 8px 0 14px; color: #fff; }
.eyebrow { margin: 0; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; color: var(--deep-accent); }
.hero .lead { font-size: 1.2rem; color: var(--deep-muted); max-width: 34rem; margin: 0; }
.hero .btn { border-color: rgba(243, 247, 239, 0.45); background: transparent; color: var(--deep-ink); }
.hero .btn:hover { border-color: #fff; }
.hero .btn.primary { background: #f3f7ef; border-color: #f3f7ef; color: var(--deep); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 24px 0 0; padding: 0; }
.chips li { padding: 6px 14px; border-radius: 999px; background: rgba(243, 247, 239, 0.1); border: 1px solid rgba(243, 247, 239, 0.18); font-size: 0.92rem; color: var(--deep-ink); }
.hero-art { display: flex; justify-content: center; gap: 16px; }
.hero-art .phone { width: min(44%, 230px); margin: 0; }
.hero-art .phone.p1 { transform: translateY(36px); }
.phone { margin: 0; }
.phone img { display: block; width: 100%; height: auto; border: 7px solid #0b1612; border-radius: 30px; box-shadow: var(--shadow); background: #0b1612; }
.phone figcaption { font-size: 0.92rem; color: var(--muted); margin-top: 10px; text-align: center; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; padding-top: 64px; padding-bottom: 72px; }
  .hero-art .phone { width: min(46%, 250px); }
}

/* ---- sections (home) ---- */
.band { padding: 56px 0; }
.band.alt { background: var(--bg-alt); }
.band h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.15; margin: 0 0 24px; }
.band .more { margin: 24px 0 0; color: var(--muted); max-width: 46rem; }
.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
@media (min-width: 900px) { .features.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.feature h3 { font-size: 1.25rem; margin: 14px 0 6px; line-height: 1.2; }
.feature p { margin: 0; color: var(--muted); }
.ico { flex: none; }
.feature .ico { width: 48px; height: 48px; padding: 12px; background: var(--soft); border-radius: 14px; color: var(--brand); }
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.steps .num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: 1.2rem; }
.steps h3 { font-size: 1.25rem; margin: 12px 0 6px; line-height: 1.2; }
.steps p { margin: 0; color: var(--muted); }
.gallery { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 62rem; margin: 0 auto; }
@media (min-width: 820px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cta-band { background: radial-gradient(700px 300px at 15% 120%, rgba(98, 197, 141, 0.28), transparent 70%), var(--deep); color: var(--deep-ink); text-align: center; padding: 56px 0; }
.cta-band h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); margin: 0 0 8px; color: #fff; }
.cta-band p { margin: 0 auto; max-width: 34rem; color: var(--deep-muted); font-size: 1.1rem; }
.cta-band .cta { justify-content: center; }
.cta-band .btn.primary { background: #f3f7ef; border-color: #f3f7ef; color: var(--deep); }
ul.links { list-style: none; padding: 0; margin: 10px 0; }
ul.links li { margin: 0; }
ul.links a { display: inline-flex; align-items: center; min-height: 44px; }
ul.link-cards { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin: 0; }
@media (min-width: 680px) { ul.link-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
ul.link-cards a { display: flex; align-items: center; gap: 14px; padding: 18px; min-height: 84px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
ul.link-cards a:hover { border-color: var(--brand); }
ul.link-cards a > .ico:first-child { width: 44px; height: 44px; padding: 10px; background: var(--soft); border-radius: 12px; color: var(--brand); }
ul.link-cards a > span { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
ul.link-cards a strong { font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
ul.link-cards a span span { color: var(--muted); font-size: 0.95rem; }
ul.link-cards a > .ico:last-child { width: 22px; height: 22px; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { ul.link-cards a:hover { transform: translateY(-2px); } }

/* ---- content pages ---- */
.page-hero { background: radial-gradient(800px 320px at 90% -20%, rgba(98, 197, 141, 0.25), transparent 70%), var(--deep); color: var(--deep-ink); padding: 44px 0 40px; }
.page-hero h1 { font-size: clamp(2rem, 5.5vw, 3rem); line-height: 1.08; margin: 0 0 10px; color: #fff; max-width: 40rem; }
.page-hero .lead { margin: 0; font-size: 1.2rem; color: var(--deep-muted); max-width: 40rem; }
.page-hero .btn { border-color: rgba(243, 247, 239, 0.45); background: transparent; color: var(--deep-ink); }
.page-hero .btn:hover { border-color: #fff; }
.page-hero .btn.primary { background: #f3f7ef; border-color: #f3f7ef; color: var(--deep); }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 40px; padding-bottom: 64px; }
.toc { display: none; }
@media (min-width: 980px) {
  .article-grid { grid-template-columns: minmax(0, 44rem) 15rem; justify-content: space-between; gap: 56px; }
  .toc { display: block; position: sticky; top: 96px; align-self: start; padding: 18px 18px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
  .toc-title { margin: 0 0 6px; font-size: 1.05rem; }
  .toc ol { list-style: none; margin: 0; padding: 0; }
  .toc a { display: block; padding: 7px 0; color: var(--muted); text-decoration: none; font-size: 0.95rem; line-height: 1.3; }
  .toc a:hover { color: var(--brand); }
}
.prose { font-size: 1.06rem; }
.prose h2 { font-size: 1.7rem; line-height: 1.2; margin: 2.2em 0 0.5em; padding-top: 0.2em; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin: 1.6em 0 0.3em; line-height: 1.25; }
.prose p, .prose ul, .prose ol { margin: 0.8em 0; }
.prose li { margin: 0.4em 0; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li::marker { color: var(--brand); font-weight: 700; }
.prose ul.links { padding-left: 0; }
.note { background: var(--soft); border-left: 4px solid var(--brand); border-radius: 4px var(--r) var(--r) 4px; padding: 12px 18px; margin: 1.4em 0; }
.board { display: block; margin: 24px auto 12px; max-width: 360px; width: 100%; height: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; box-shadow: var(--shadow); }
.board .ln { stroke: var(--muted); stroke-opacity: 0.5; stroke-width: 1; }
.board .pt { fill: var(--surface); stroke: var(--sheep); stroke-width: 1; }
.board .pen { fill: var(--soft); stroke: var(--brand); stroke-width: 1.5; }
.board .sheep { fill: var(--sheep); stroke: var(--ink); stroke-width: 0.8; }
.board .wolf { fill: var(--wolf); stroke: var(--ink); stroke-width: 0.8; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center; font-size: 0.92rem; color: var(--muted); margin: 0 0 12px; padding: 0; list-style: none; }

/* ---- footer ---- */
footer.site { background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); }
.foot-grid { display: grid; gap: 28px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 40px; padding-bottom: 40px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 760px) { .foot-brand { grid-column: auto; } }
.foot-brand p { margin: 6px 0 0; max-width: 20rem; }
.foot-note { font-size: 0.92rem; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 18px 0 0; color: var(--deep-muted); }
.stores .btn { min-height: 44px; padding: 0 18px; }
.foot-h { margin: 0 0 6px; color: var(--ink); font-size: 1.05rem; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
footer.site li a:hover { color: var(--brand); text-decoration: underline; }

/* ---- cookie banner (scripts: web/site/consent.js; only in builds with a Tag Manager id) ---- */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; max-width: 46rem; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 20px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22); }
.consent p { margin: 0; flex: 1 1 18rem; font-size: 0.97rem; line-height: 1.5; }
.consent-actions { display: flex; gap: 10px; flex: none; }
.consent .btn { min-height: 44px; padding: 0 20px; }

@media print { header.site, .toc, .cta, .cta-band, .consent { display: none; } }
