/* Foreland — verejný web. Farby a písmo z hry (scripts/view/style.gd, smer A „Plán“), základ z internal-web/. */

@font-face {
	font-family: "Space Grotesk";
	src: url("fonts/SpaceGrotesk-Variable.ttf") format("truetype");
	font-weight: 300 700;
	font-display: swap;
}
@font-face {
	font-family: "IBM Plex Mono";
	src: url("fonts/IBMPlexMono-Regular.ttf") format("truetype");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "IBM Plex Mono";
	src: url("fonts/IBMPlexMono-Medium.ttf") format("truetype");
	font-weight: 500;
	font-display: swap;
}

:root {
	--paper: #f4efe4;
	--paper-deep: #ebe3d2;
	--grid-minor: #e7decc;
	--grid-major: #d9ccb2;
	--ink: #2b3242;
	--surface: #4a5570;
	--soft: #66614f;
	--rule: #8c8574;
	--player: #2449d6;
	--tip: #f26b38;
	--tip-dark: #a83f17;
	--exit: #2fa66a;
	--exit-dark: #1f7a4c;
	--card: #fbf8f1;
	--radius: 14px;
	--max: 1080px;
	--sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background-color: var(--paper);
	/* milimetrový papier: jemná mriežka každých 24 px, silnejšia každých 120 px */
	background-image:
		linear-gradient(var(--grid-major) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
		linear-gradient(var(--grid-minor) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
	background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
	color: var(--ink);
	font-family: var(--sans);
	font-size: 18px;
	line-height: 1.55;
	font-weight: 400;
	overflow-wrap: break-word;
}

/* jazyk: obsah je v oboch jazykoch, zobrazí sa jeden (predvolená angličtina, site.js prepne) */
html[data-lang="sk"] [data-l="en"],
html[data-lang="en"] [data-l="sk"] { display: none !important; }
/* fáza a platformy (site.js) skrývajú cez hidden — platí aj pre prvky s vlastným display */
[hidden] { display: none !important; }

a { color: var(--player); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a:not([href]) { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--player); outline-offset: 3px; border-radius: 4px; }

img { max-width: 100%; display: block; }

.skip {
	position: absolute; left: 12px; top: -60px;
	background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; z-index: 10;
}
.skip:focus { top: 12px; color: var(--paper); }

.wrap {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 16px;
}
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.stamp {
	font-family: var(--mono);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--soft);
}
.stamp.tip { color: var(--tip-dark); }

/* ——— hlavička a navigácia ——— */
.top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	padding-top: 20px;
	padding-bottom: 20px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--ink);
	text-decoration: none;
	font-weight: 600;
	font-size: 20px;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top-right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }

.nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 12px;
	border-radius: 999px;
	font: 500 14px/1 var(--mono);
	letter-spacing: 0.04em;
	color: var(--surface);
	text-decoration: none;
}
.nav a:hover { background: var(--card); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--grid-major); }

.lang {
	display: inline-flex;
	border: 1.5px solid var(--grid-major);
	border-radius: 999px;
	background: var(--card);
	padding: 3px;
}
.lang button {
	font: 500 13px/1 var(--mono);
	letter-spacing: 0.06em;
	border: 0;
	background: transparent;
	color: var(--soft);
	padding: 8px 12px;
	border-radius: 999px;
	cursor: pointer;
	min-height: 34px;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ——— hero ——— */
.hero {
	display: grid;
	gap: 32px;
	padding-top: 24px;
	padding-bottom: 56px;
	align-items: center;
}
@media (min-width: 880px) {
	.hero { grid-template-columns: 1.1fr 0.9fr; padding-top: 48px; padding-bottom: 80px; }
}
.hero h1 {
	font-size: clamp(48px, 11vw, 96px);
	line-height: 0.95;
	font-weight: 600;
	letter-spacing: -0.03em;
	margin: 14px 0 18px;
}
.hero .slogan {
	font-size: clamp(20px, 3vw, 26px);
	color: var(--surface);
	margin: 0 0 12px;
	max-width: 30ch;
}
.hero .lead { margin: 0 0 28px; max-width: 46ch; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 24px;
	border-radius: 999px;
	font: 600 18px/1.15 var(--sans);
	text-decoration: none;
	border: 2px solid var(--ink);
	background: var(--ink);
	color: var(--paper);
	cursor: pointer;
	transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { color: var(--paper); transform: translateY(-1px); background: #1f2533; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn small { font: 500 13px/1 var(--mono); opacity: 0.8; }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--grid-major); }
.btn.ghost:hover { color: var(--ink); border-color: var(--rule); background: var(--card); }
.btn[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

.status { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; }
.status .dot {
	width: 10px; height: 10px; border-radius: 50%;
	background: var(--exit);
	box-shadow: 0 0 0 4px rgba(47, 166, 106, 0.18);
}
.status[hidden] { display: none; }

/* ——— animovaná scéna v hero ——— */
.scene {
	margin: 0;
	background: var(--card);
	border: 1.5px solid var(--grid-major);
	border-radius: 20px;
	padding: 18px;
	box-shadow: 0 18px 40px -28px rgba(43, 50, 66, 0.45);
}
.scene svg { width: 100%; height: auto; display: block; }
.scene figcaption { margin-top: 12px; }

.s-player { animation: hop 5s infinite; }
.s-trail { animation: trail 5s infinite; }
.s-tip { animation: tip-hide 5s infinite; }
.s-tile { animation: tile-show 5s infinite; transform-box: fill-box; transform-origin: center; }

@keyframes hop {
	0%, 14% { transform: translate(0, 0); }
	26% { transform: translate(0, -80px); }
	44% { transform: translate(120px, -80px); }
	54%, 88% { transform: translate(120px, 0); }
	96%, 100% { transform: translate(0, 0); opacity: 1; }
	92% { opacity: 0; }
}
@keyframes trail {
	0%, 14% { opacity: 0; }
	54%, 86% { opacity: 1; }
	94%, 100% { opacity: 0; }
}
@keyframes tip-hide {
	0%, 53% { opacity: 1; }
	55%, 90% { opacity: 0; }
	96%, 100% { opacity: 1; }
}
@keyframes tile-show {
	0%, 53% { opacity: 0; transform: scale(0.6); }
	58% { opacity: 1; transform: scale(1.08); }
	62%, 88% { opacity: 1; transform: scale(1); }
	94%, 100% { opacity: 0; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
	.s-player { animation: none; transform: translate(120px, 0); }
	.s-trail, .s-tile { animation: none; opacity: 1; }
	.s-tip { animation: none; opacity: 0; }
}

/* ——— sekcie ——— */
section { padding: 56px 0; }
section + section { border-top: 1.5px dashed var(--grid-major); }
h2 {
	font-size: clamp(28px, 5vw, 44px);
	line-height: 1.1;
	font-weight: 600;
	letter-spacing: -0.02em;
	margin: 10px 0 16px;
}
h3 { font-size: 22px; line-height: 1.25; font-weight: 600; margin: 14px 0 8px; }
.intro { max-width: 60ch; margin: 0 0 32px; }

.grid3 { display: grid; gap: 24px; }
@media (min-width: 880px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.split { display: grid; gap: 24px; }
/* položka gridu sa inak nezúži pod šírku tabuľky v nej → na 320 px by stránka pretiekla */
.split > *, .grid3 > * { min-width: 0; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; } }

.card {
	background: var(--card);
	border: 1.5px solid var(--grid-major);
	border-radius: var(--radius);
	padding: 16px;
}
.card p { margin: 0; }
.card p + p { margin-top: 10px; }
.shot {
	border-radius: 10px;
	border: 1.5px solid var(--grid-major);
	background: var(--paper);
	width: 100%;
	height: auto;
	aspect-ratio: 2.12;
	object-fit: cover;
}
.step-n {
	font-family: var(--mono);
	font-weight: 500;
	font-size: 13px;
	color: var(--tip-dark);
	letter-spacing: 0.08em;
	margin-top: 14px !important;
}

.facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 32px;
}
@media (min-width: 720px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fact {
	background: var(--card);
	border: 1.5px solid var(--grid-major);
	border-radius: var(--radius);
	padding: 14px 16px;
}
.fact b { display: block; font-size: 34px; line-height: 1.1; font-weight: 600; }

/* päť zón: názvy a značka „skryté pravidlo“, pravidlá sa neprezrádzajú */
.zones { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .zones { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.zones li {
	background: var(--card);
	border: 1.5px solid var(--grid-major);
	border-radius: var(--radius);
	padding: 14px 16px;
}
.zones b { display: block; font-size: 20px; font-weight: 600; margin: 4px 0 2px; }
.zones .q { font: 500 13px/1.3 var(--mono); color: var(--tip-dark); letter-spacing: 0.04em; }
.zones .open { color: var(--exit-dark); }

.checks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .checks { grid-template-columns: 1fr 1fr; } }
.checks li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	background: var(--card);
	border: 1.5px solid var(--grid-major);
	border-radius: var(--radius);
	padding: 14px 16px;
}
.checks li::before {
	content: "";
	flex: none;
	width: 18px; height: 18px;
	margin-top: 4px;
	border: 2.5px dashed var(--tip);
	border-radius: 3px;
}

.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.platforms li {
	font: 500 14px/1 var(--mono);
	letter-spacing: 0.04em;
	padding: 10px 14px;
	border-radius: 8px;
	border: 1.5px solid var(--grid-major);
	background: var(--card);
}
.platforms li.later { color: var(--soft); border-style: dashed; }
.platforms li.now { border-color: var(--exit); }
.specs { display: block; margin: -8px 0 24px; color: var(--soft); }

.note {
	border-left: 4px solid var(--tip);
	background: var(--card);
	border-radius: 0 var(--radius) var(--radius) 0;
	padding: 14px 18px;
	margin: 0 0 16px;
	max-width: 72ch;
}
.note p { margin: 0; }

/* FAQ */
details {
	background: var(--card);
	border: 1.5px solid var(--grid-major);
	border-radius: var(--radius);
	padding: 0 18px;
	margin: 0 0 10px;
	max-width: 80ch;
}
summary {
	cursor: pointer;
	font-weight: 600;
	padding: 16px 0;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--tip-dark); }
details[open] summary::after { content: "−"; }
details p, details ul { margin: 0 0 16px; }

/* ——— dokumenty: súkromie, podpora, press, 404 ——— */
.doc { max-width: 72ch; padding-top: 24px; padding-bottom: 56px; }
.doc.wide { max-width: none; }
.doc h1 { font-size: clamp(34px, 7vw, 56px); line-height: 1.05; font-weight: 600; letter-spacing: -0.02em; margin: 10px 0 20px; }
.doc h2 { font-size: clamp(24px, 4vw, 28px); margin: 40px 0 12px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .card { margin: 20px 0; }

.table-wrap { overflow-x: auto; margin: 0 0 20px; }
table { border-collapse: collapse; width: 100%; background: var(--card); border: 1.5px solid var(--grid-major); border-radius: var(--radius); }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--grid-minor); overflow-wrap: anywhere; }
th { overflow-wrap: normal; }
/* úzky telefón: nadpis riadku nad hodnotou, aby sa nelámal uprostred slova */
@media (max-width: 480px) {
	table, tbody, tr, th, td { display: block; width: auto; }
	th { padding: 10px 14px 0; border-bottom: 0; }
	td { padding: 2px 14px 10px; }
}
th { font: 500 13px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); width: 34%; }
tr:last-child th, tr:last-child td { border-bottom: 0; }

.downloads { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .downloads { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.downloads a { display: block; text-decoration: none; color: var(--ink); }
.downloads a:hover .shot { border-color: var(--rule); }
.downloads .stamp { display: block; margin-top: 8px; }
.downloads .icon-shot { aspect-ratio: 1; object-fit: contain; padding: 24px; }

.big-404 { font: 600 clamp(96px, 22vw, 180px)/1 var(--sans); letter-spacing: -0.04em; margin: 0; color: var(--tip); }

/* ——— pätička ——— */
footer {
	padding-top: 40px;
	padding-bottom: 56px;
	border-top: 1.5px dashed var(--grid-major);
	display: grid;
	gap: 16px;
}
@media (min-width: 880px) { footer { grid-template-columns: 1fr auto; align-items: start; } }
footer a { color: var(--ink); }
.legal { font-size: 14px; line-height: 1.6; color: var(--surface); margin: 0; }
.legal b { color: var(--ink); font-weight: 600; }
.legal [hidden] { display: none; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; list-style: none; }
