/* SlovoBoj website: v4 "Vedro" from the app (src/Slovoboj.App/Controls/DesignTokens.cs) — the blue sky, white tiles
   and cards with a darker bottom edge and a soft shadow, yellow for what is selected, Nunito. The page has one look
   (as the app): it always sits on the dark sky, so there is no separate dark mode. */

@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/nunito-400.4c532b8977.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url(/static/fonts/nunito-700.8de780afa7.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 900; font-display: swap; src: url(/static/fonts/nunito-900.cf0d2f02db.woff2) format("woff2"); }

:root {
  --sky-top: #1c5e9d;
  --sky-bottom: #0f3468;
  --band: #081f47;
  --ink: #1f2d4d;
  --link: #1c5e9d;
  --yellow: #ffd23f;
  --orange: #ff8f3c;
  --orange-edge: #c25c14;
  --white: #fff;
  --on-sky-soft: rgba(255, 255, 255, .78);
  --glass: rgba(255, 255, 255, .12);
  --glass-hover: rgba(255, 255, 255, .2);
  --glass-border: rgba(255, 255, 255, .28);
  --card-edge: #c3d3e6;
  --card-tint: #e9f0f9;
  --shadow: 0 14px 30px rgba(4, 18, 45, .28);
  --header: 60px;
  --gutter: 16px;
  --radius: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.no-scroll { overflow: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--sky-bottom);
  color: var(--white);
  font: 400 1.0625rem/1.6 "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; display: flex; flex-direction: column; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; z-index: 20; left: var(--gutter); top: -80px;
  padding: 10px 18px; border-radius: 999px; background: var(--yellow); color: var(--ink);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 10px; }

/* Round glass button (the app's RoundButton Glass) */
.round {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 1px solid var(--glass-border); border-radius: 50%; background: var(--glass); color: var(--white);
  cursor: pointer; transition: background .15s ease, opacity .15s ease;
}
.round:hover { background: var(--glass-hover); }
.round:disabled { opacity: .35; cursor: default; }
.round svg { width: 22px; height: 22px; }

/* ----- Header ----- */

.site-header { position: relative; z-index: 10; background: var(--band); padding-top: env(safe-area-inset-top); }
.bar {
  max-width: 1200px; height: var(--header); margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 1.375rem; line-height: 1; text-decoration: none; color: var(--white);
}
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.brand b { font-weight: 900; color: var(--yellow); }
.top-nav { display: flex; align-items: center; gap: 6px; }
.top-nav > a { padding: 8px 14px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.top-nav > a:hover { background: var(--glass); }

.lang-menu { position: relative; }
.lang-menu summary {
  display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px 0 12px;
  border: 1px solid var(--glass-border); border-radius: 999px; background: var(--glass);
  font-weight: 900; font-size: .9375rem; letter-spacing: .04em; list-style: none; cursor: pointer; user-select: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { background: var(--glass-hover); }
.lang-menu summary svg { width: 18px; height: 18px; }
.lang-menu .chevron { transition: transform .15s ease; }
.lang-menu[open] .chevron { transform: rotate(180deg); }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; margin: 0; padding: 6px; list-style: none;
  border-radius: 16px; background: var(--white); color: var(--ink); box-shadow: 0 4px 0 var(--card-edge), var(--shadow);
}
.lang-menu a { display: block; padding: 9px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.lang-menu a:hover { background: var(--card-tint); }
.lang-menu a[aria-current] { background: var(--yellow); }

/* ----- Hero: photo with the logo over its calmer bottom third ----- */

/* Tall photo (4:5) on portrait screens, wide (16:9) on landscape ones; never so high that the Google Play badge
   under it drops below the first screen (the 140px). */
.hero {
  position: relative; overflow: hidden; container-type: size; background: var(--sky-bottom);
  height: max(300px, min(125vw, calc(100vh - var(--header) - 140px)));
  height: max(300px, min(125vw, calc(100svh - var(--header) - 140px)));
}
@media (orientation: landscape) {
  .hero {
    height: max(280px, min(56.25vw, calc(100vh - var(--header) - 140px)));
    height: max(280px, min(56.25vw, calc(100svh - var(--header) - 140px)));
  }
}
.hero-scene { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-scene.is-active { opacity: 1; }
.hero-scene img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center;
  padding: 0 var(--gutter) 14px;
  padding-bottom: clamp(12px, 4cqh, 34px);
  background: linear-gradient(to top, var(--sky-bottom) 0%, rgba(15, 52, 104, .72) 20%, rgba(15, 52, 104, 0) 52%);
}
.hero h1 { margin: 0; line-height: 0; }
.hero-logo {
  width: min(80vw, 460px);
  width: min(80cqw, 460px, 72cqh);
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35));
}
.hero-tagline {
  max-width: 46ch; margin: 2px 0 0;
  font-weight: 700; font-size: clamp(1rem, .85rem + .8vw, 1.375rem); line-height: 1.35;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}
.hero-tagline, .get-note, .get-title, .lead, .card h2, .doc-card h1, .doc-card h2 { text-wrap: balance; }

/* ----- Everything under the hero sits on the app's sky: gradient and three soft white circles ----- */

/* The first circle hangs low enough not to touch the hero's bottom edge. */
.sky {
  flex: 1;
  background:
    radial-gradient(circle at 96% 700px, rgba(255, 255, 255, .05) 0 min(40vw, 400px), transparent calc(min(40vw, 400px) + 1px)),
    radial-gradient(circle at 4% 62%, rgba(255, 255, 255, .05) 0 min(44vw, 440px), transparent calc(min(44vw, 440px) + 1px)),
    radial-gradient(circle at 94% 92%, rgba(255, 255, 255, .05) 0 min(30vw, 300px), transparent calc(min(30vw, 300px) + 1px)),
    linear-gradient(180deg, var(--sky-bottom) 0, var(--sky-top) 38%, var(--sky-bottom) 100%);
}
.doc-page .sky { background-color: var(--sky-bottom); }

/* ----- Google Play ----- */

.get { padding: 14px var(--gutter) 22px; text-align: center; }
.play-badge { display: inline-block; border-radius: 10px; transition: transform .15s ease; }
.play-badge:hover { transform: translateY(-2px); }
.play-badge img { display: block; width: auto; height: 56px; }
.get-note { margin: 10px 0 0; color: var(--on-sky-soft); font-size: .875rem; line-height: 1.4; }
.get-end { padding: 36px var(--gutter) 60px; }
.get-title { margin: 0 0 18px; font-weight: 900; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.2; }

/* ----- Screenshots: a row that scrolls sideways and snaps; a tap opens the lightbox ----- */

.shots-frame { position: relative; max-width: 1320px; margin: 0 auto; }
.shots-track {
  display: flex; gap: 16px; margin: 0; padding: 10px var(--gutter) 26px; list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .35) transparent;
}
.shots-track li { flex: 0 0 clamp(160px, 58vw, 196px); scroll-snap-align: center; }
/* Centred while all of them fit; auto margins collapse to 0 as soon as the row overflows */
.shots-track li:first-child { margin-left: auto; }
.shots-track li:last-child { margin-right: auto; }
.shot {
  display: block; overflow: hidden; border-radius: 18px; cursor: zoom-in;
  box-shadow: 0 4px 0 rgba(4, 18, 45, .45), var(--shadow); transition: transform .2s ease;
}
.shot:hover { transform: translateY(-4px); }
.shot img { display: block; width: 100%; height: auto; }
.shots-arrow { position: absolute; top: calc(50% - 32px); z-index: 1; background: rgba(8, 31, 71, .7); }
.shots-arrow.prev { left: 6px; }
.shots-arrow.next { right: 6px; }
.shots-arrow[hidden] { display: none; }
@media (hover: none) { .shots-arrow { display: none; } }

/* ----- About the game: the store description as white cards ----- */

.about { max-width: 1160px; width: 100%; margin: 0 auto; padding: 28px var(--gutter) 8px; }
.lead {
  max-width: 40ch; margin: 0 auto 28px; text-align: center;
  font-weight: 700; font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem); line-height: 1.45;
}
.lead p { margin: 0; }
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.card {
  padding: 22px 24px 20px; border-radius: var(--radius); background: var(--white); color: var(--ink);
  box-shadow: 0 4px 0 var(--card-edge), var(--shadow);
}
.card-icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 12px;
  border-radius: 50%; background: var(--card-tint);
}
.card-icon svg { width: 26px; height: 26px; }
.card h2 { margin: 0 0 8px; font-weight: 900; font-size: 1.3125rem; line-height: 1.25; }
.card p { margin: 0 0 .6em; }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 0; padding-left: 1.15em; }
.card li { margin: .3em 0; padding-left: .15em; }
.card li::marker { color: var(--orange); }

/* ----- Pages with text (help, legal) ----- */

.doc { width: 100%; max-width: 860px; margin: 0 auto; padding: 28px var(--gutter) 56px; }
.doc-card {
  padding: clamp(22px, 5vw, 48px); border-radius: var(--radius); background: var(--white); color: var(--ink);
  box-shadow: 0 4px 0 var(--card-edge), var(--shadow);
}
.doc-card h1 { margin: 0 0 .6em; font-weight: 900; font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.375rem); line-height: 1.2; }
.doc-card h2 { margin: 1.6em 0 .5em; font-weight: 900; font-size: 1.375rem; line-height: 1.3; }
.doc-card h3 { margin: 1.3em 0 .4em; font-weight: 900; font-size: 1.125rem; }
.doc-card h2, .doc-card h3 { scroll-margin-top: 16px; }
.doc-card a { color: var(--link); }
.doc-card .toc { margin: 0 0 1.6em; padding: 14px 20px; border-radius: 14px; background: var(--card-tint); }
.doc-card .toc ul { margin: 0; padding-left: 1.1em; columns: 2 220px; column-gap: 32px; }
.doc-card .toc li { margin: .2em 0; break-inside: avoid; }
.doc-card .toc a { font-weight: 700; text-decoration: none; }
.doc-card .toc a:hover { text-decoration: underline; }
/* Label / value pairs (legal notice) */
.doc-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 28px; margin: 1.4em 0 0; }
.doc-card dt { font-weight: 700; }
.doc-card dd { margin: 0; }
@media (max-width: 560px) {
  .doc-card dl { grid-template-columns: 1fr; gap: 0; }
  .doc-card dd { margin-bottom: 12px; }
}
.doc-card table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .9375rem; }
.doc-card th, .doc-card td { padding: 8px 10px; border-bottom: 1px solid #dfe7f2; text-align: left; vertical-align: top; }
.doc-card li::marker { color: var(--orange); }
.notice {
  margin: 0 0 16px; padding: 12px 16px;
  border: 1px solid var(--glass-border); border-radius: 14px; background: var(--glass);
}
.button {
  display: inline-block; padding: 12px 24px; border-radius: 999px;
  background: var(--orange); color: var(--white) !important; box-shadow: 0 3px 0 var(--orange-edge);
  font-weight: 900; text-decoration: none;
}
.button:hover { transform: translateY(-1px); }
.not-found { padding-top: 48px; text-align: center; }

/* ----- Footer ----- */

.site-footer {
  padding: 32px max(var(--gutter), env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  background: var(--band); color: var(--on-sky-soft); font-size: .9375rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.footer-brand p { margin: 12px 0 0; }
.site-footer ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-langs ul { grid-template-columns: repeat(2, max-content); column-gap: 28px; }
.footer-langs a[aria-current] { color: var(--yellow); }
.footer-legal {
  max-width: 1200px; margin: 24px auto 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; font-size: .8125rem;
}
.footer-legal p { margin: 0; }

/* ----- Lightbox ----- */

.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  overflow: hidden; background: rgba(4, 14, 34, .94); color: var(--white); touch-action: pinch-zoom;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(4, 14, 34, .6); }
.lightbox-image {
  width: auto; height: auto; max-width: calc(100vw - 32px);
  max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px);
  border-radius: 16px; box-shadow: var(--shadow); user-select: none; -webkit-user-drag: none;
}
.lightbox-close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; }
.lightbox-nav {
  position: absolute; left: 0; right: 0; bottom: max(14px, env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center; gap: 18px;
}
.lightbox-count { min-width: 4ch; font-weight: 900; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
