/* Běžím jako poděs – černobílý vizuál podle loga Team Poděs (oranžová jen pro prvky Stravy) */

:root {
	--ink: #0f0f0f;
	--paper: #ffffff;
	--soft: #f2f2f2;
	--line: #e6e6e6;
	--muted: #6b6b6b;
	--mid: #9a9a9a;
	--strava: #fc5200;
	--font: "Courier Prime", "Courier New", Courier, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
	margin: 0;
	font-family: var(--font);
	font-weight: 400;
	color: var(--ink);
	background: var(--paper);
	line-height: 1.5;
}

a { color: var(--ink); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

h1, h2 {
	font-weight: 700;
	text-transform: uppercase;
	line-height: 0.95;
	letter-spacing: 0;
	margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.2rem, 7vw, 4.5rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.text h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.text h2 { font-size: 1.5rem; margin-top: 1.2em; }

/* Header / footer */
.top { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 24px; min-height: 56px; padding-top: 6px; padding-bottom: 6px; }
.menu { flex: 1; display: flex; gap: 24px; font-weight: 700; text-transform: uppercase; font-size: 0.9rem; }
.menu a { text-decoration: none; white-space: nowrap; }
.menu a:hover { text-decoration: underline; }
.brand { font-weight: 700; font-size: 1.4rem; text-transform: uppercase; text-decoration: none; }
.brand img { height: auto; max-height: 46px; max-width: 70vw; width: auto; display: block; }
.nav { display: flex; gap: 20px; font-size: 0.95rem; white-space: nowrap; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }

.foot { border-top: 1px solid var(--line); margin-top: 80px; padding: 28px 0; font-size: 0.9rem; color: var(--muted); }
.foot-inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.foot a { color: var(--muted); }
.powered { height: 24px; }
.powered-text { font-weight: 700; color: var(--strava); }

.flash { background: var(--ink); color: var(--paper); padding: 14px 16px; margin-top: 16px; border-radius: 6px; font-weight: 700; }

/* Hero */
.hero { padding: 48px 0 56px; text-align: center; position: relative; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--ink); }
.hero-logo { display: block; width: min(320px, 80%); height: auto; margin: 0 auto 20px; }
.hero h1 { font-size: clamp(1.25rem, 3.2vw, 2rem); }
.hero .lead { margin-left: auto; margin-right: auto; }
.kicker { font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 16px; color: var(--ink); }
/* Odpočet jako závodní hodiny v samostatném panelu */
.countdown { display: inline-block; margin: 12px 0 36px; padding: 20px 24px 16px; border: 2px solid var(--ink); border-radius: 12px; background: var(--soft); }
.countdown-label { font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem; margin: 0 0 14px; }
.countdown-units { display: flex; justify-content: center; gap: 10px; }
.countdown-units > div { display: flex; flex-direction: column; align-items: center; }
/* Pevný čtverec a vystředění; Courier má číslice posazené výš, proto drobný posun dolů */
.countdown-units .n { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 1.75em; height: 1.75em; padding-top: 0.12em; background: var(--ink); color: var(--paper); font-weight: 700; font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1; border-radius: 8px; font-variant-numeric: tabular-nums; }
.countdown-units .u { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-top: 8px; }
.lead { font-size: 1.25rem; max-width: 620px; margin: 0 0 28px; }

.cta {
	display: inline-block;
	background: var(--ink);
	color: var(--paper);
	border: 0;
	border-radius: 999px;
	padding: 14px 28px;
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}
.cta:hover { background: #333; }
.cta.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }

.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 0.9rem; color: var(--muted); text-decoration: underline; cursor: pointer; }

/* Tiles */
.totals, .prizes, .me, .board, .faq, .text { padding: 72px 0 0; }

h2 { margin-bottom: 28px; }

/* Časté otázky */
.faq .wrap > * { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; max-width: 680px; }

/* Ceny */
.prize-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.prize img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--soft); }
.prize h3 { font-size: 1.2rem; text-transform: uppercase; margin: 16px 0 4px; }
.prize p { margin: 0; color: var(--muted); }

/* Přihlášení jako černý pruh přes celou šířku */
.join { background: var(--ink); color: var(--paper); padding: 72px 0; margin-top: 72px; }
.join a { color: var(--paper); }
.join .check input { accent-color: var(--paper); }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { background: var(--soft); border-radius: 8px; padding: 18px 20px; display: flex; flex-direction: column; }
.tile .num { font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.1; }
.tile .lbl { font-size: 0.9rem; color: var(--muted); }
.totals .tile:first-child { background: var(--ink); color: var(--paper); }
.totals .tile:first-child .lbl { color: var(--mid); }

.goal { margin-top: 20px; }
.goal-bar { height: 14px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.goal-bar span { display: block; height: 100%; background: var(--ink); }

/* Chart */
.chart { margin: 24px 0 0; }
.chart-scroll { overflow-x: auto; position: relative; }
.chart-days { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(30px, 1fr); gap: 4px; height: 200px; }
.chart-days li { display: flex; flex-direction: column; min-width: 0; }
.chart-days .col { position: relative; flex: 1; }
.chart-days .bar { position: absolute; left: 12%; right: 12%; bottom: 0; height: var(--h); background: var(--ink); }
.chart-days .val { position: absolute; left: -2px; right: -2px; bottom: calc(var(--h) + 4px); text-align: center; font-size: 0.72rem; line-height: 1; white-space: nowrap; }
.chart-days .day { text-align: center; font-size: 0.72rem; color: var(--muted); border-top: 1px solid var(--ink); padding-top: 4px; }
.chart-days .today .bar { background: var(--mid); }
.chart-days .today .day { color: var(--ink); font-weight: 700; }
.chart-days .future .day { color: var(--line); }
.chart figcaption { font-size: 0.8rem; color: var(--muted); padding-top: 8px; }

/* Me */
.me .tile { background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
.muted { color: var(--muted); font-size: 0.9rem; }

/* Join */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.steps li { counter-increment: step; border: 1px solid #3a3a3a; border-radius: 8px; padding: 18px 20px; }
.steps li::before { content: counter(step); display: block; font-size: 2.4rem; font-weight: 700; line-height: 1; margin-bottom: 12px; }
.join-form { margin-top: 24px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; max-width: 720px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.strava-btn {
	background: var(--strava);
	color: #fff;
	border: 0;
	border-radius: 4px;
	height: 48px;
	padding: 0 24px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.strava-img { background: none; border: 0; padding: 0; cursor: pointer; }
.strava-img img { display: block; }

/* Leaderboard */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th { text-align: left; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--ink); }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.r { text-align: right; white-space: nowrap; }
.strong { font-weight: 700; }
.rank { width: 40px; font-weight: 700; }
tbody tr { transition: background-color 0.15s; }
tbody tr:hover { background: var(--soft); }
tr.mine { background: var(--soft); }
tr.mine:hover { background: var(--line); }
tr.mine td { font-weight: 700; }
.who { display: flex; align-items: center; gap: 10px; }
.who img, .who .ph { width: 32px; height: 32px; border-radius: 50%; flex: none; object-fit: cover; background: var(--line); }
.who > span { display: flex; flex-direction: column; line-height: 1.2; }
.view { font-size: 0.75rem; color: var(--strava); text-decoration: none; }
.view:hover { text-decoration: underline; }

@media (max-width: 720px) {
	/* Na mobilu dva řádky přes celou šířku: nahoře sekce, pod nimi menší externí odkazy */
	.top-inner { flex-wrap: wrap; row-gap: 6px; padding-top: 10px; padding-bottom: 8px; }
	.menu { flex-basis: 100%; justify-content: space-between; gap: 10px; font-size: 0.78rem; overflow-x: auto; scrollbar-width: none; }
	.menu::-webkit-scrollbar { display: none; }
	.nav { flex-basis: 100%; gap: 16px; font-size: 0.78rem; color: var(--muted); }
	.nav a { color: var(--muted); }
	html { scroll-padding-top: 90px; }
	.steps { grid-template-columns: 1fr; }
	.prize-grid { grid-template-columns: 1fr; }
	.grid4 { grid-template-columns: repeat(2, 1fr); }
	.hide-sm { display: none; }
	.hero { padding: 32px 0 44px; }
	.chart-days { height: 170px; }
}

@media (max-width: 359px) {
	.menu { font-size: 0.72rem; gap: 6px; }
}
