/* ============================================================
   k100 – Base theme styles
   ============================================================ */

/* ── Reset / normalize ───────────────────────────────────── */
*, *::before, *::after {
	box-sizing: border-box;
}

html {
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	padding: 0;
	background-color: #111;
	color: #e8e4de;
	font-family: 'Georgia', 'Times New Roman', Times, serif;
	line-height: 1.6;
	min-height: 100dvh;
	overflow-x: hidden;
}

img, video {
	max-width: 100%;
	display: block;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-weight: 600;
	line-height: 1.2;
}

p {
	margin: 0 0 1em;
}

button {
	cursor: pointer;
	border: none;
	background: none;
	padding: 0;
	font-family: inherit;
}

/* ── Site wrapper ─────────────────────────────────────────── */
.k100-exhibition {
	display: flex;
	flex-direction: column;
	min-height: 100dvh;
}

.timeline-outer {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

/* ── No events message ───────────────────────────────────── */
.no-events {
	text-align: center;
	color: #888;
	padding: 3rem 1rem;
	font-style: italic;
}

/* ============================================================
   Splash-ekraan
   ============================================================ */
@keyframes k100-zoom {
	from { transform: scale(1); }
	to   { transform: scale(1.07); }
}

@keyframes k100-emerge {
	from {
		opacity: 0;
		transform: scale(0.28) translateY(12px);
		letter-spacing: -.12em;
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
		letter-spacing: -.04em;
	}
}

@keyframes k100-fadein {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes k100-pulse-ring {
	0%   { box-shadow: 0 0 0 0 rgba(200,169,110,.55); }
	70%  { box-shadow: 0 0 0 14px rgba(200,169,110,0); }
	100% { box-shadow: 0 0 0 0   rgba(200,169,110,0); }
}

.k100-splash {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	transition: opacity .55s ease, visibility .55s ease;
}

.k100-splash.is-dismissed {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

/* Hero-olek: number + nupp kaovad, overlay tuhmub, taust + tekst jäävad */
.k100-splash.is-hero {
	pointer-events: none; /* luba klikid läbi (topbar jt) */
}

.k100-splash.is-hero .splash-number {
	opacity: 0;
	transform: scale(.85);
	transition: opacity .45s ease, transform .5s ease;
	pointer-events: none;
}

.k100-splash.is-hero .splash-start {
	opacity: 0;
	transition: opacity .3s ease;
	pointer-events: none;
}

.k100-splash.is-hero .splash-overlay {
	opacity: .18;
	transition: opacity 1.1s ease;
}

.k100-splash.is-hero .splash-bg {
	animation-play-state: paused;
}

.k100-splash.is-hero .splash-content {
	pointer-events: none;
}

.splash-bg {
	position: absolute;
	inset: 0;
	background-color: #0d0d0d;
	background-size: cover;
	background-position: center;
	animation: k100-zoom 14s ease-in-out infinite alternate;
}

.splash-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0,0,0,.45) 0%,
		rgba(0,0,0,.70) 60%,
		rgba(0,0,0,.88) 100%
	);
}

.splash-content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.6rem;
	padding: 2rem 2.5rem;
	text-align: center;
	max-width: min(680px, 90vw);
}

.splash-number {
	font-size: clamp(5rem, 18vw, 13rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.04em;
	color: var(--tl-accent, #c8a96e);
	text-shadow:
		0 2px 30px rgba(200,169,110,.5),
		0 0 80px rgba(200,169,110,.18);
	animation: k100-emerge 1.1s cubic-bezier(.22,1,.36,1) both;
}

.splash-heading {
	margin: 0;
	font-size: clamp(1.05rem, 2.4vw, 1.55rem);
	font-weight: 400;
	line-height: 1.5;
	color: rgba(255,255,255,.92);
	text-shadow: 0 1px 8px rgba(0,0,0,.6);
	max-width: 52ch;
	animation: k100-fadein .9s .55s ease both;
}

.splash-start {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	padding: .85rem 2.2rem;
	border-radius: 999px;
	background: var(--tl-accent, #c8a96e);
	color: #0d0d0d;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	border: none;
	cursor: pointer;
	transition: transform .18s ease, background .18s ease;
	animation: k100-fadein .9s .85s ease both, k100-pulse-ring 2.2s 1.8s ease-out 3;
}

.splash-start:hover {
	transform: scale(1.04);
	background: #d9bb82;
}

/* ============================================================
   Ujuvad CTA nupud
   ============================================================ */
@keyframes k100-cta-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(200,169,110,.6); }
	70%  { box-shadow: 0 0 0 12px rgba(200,169,110,0); }
	100% { box-shadow: 0 0 0 0   rgba(200,169,110,0); }
}

.k100-cta-float {
	position: fixed;
	bottom: 2rem;
	right: 1.5rem;
	z-index: 225; /* üle kõige: splash 200, topbar 220, CTA 225 */
	display: flex;
	flex-direction: column;
	gap: .6rem;
	align-items: flex-end;
}

.k100-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .65rem 1.3rem;
	border-radius: 999px;
	background: rgba(14,14,14,.78);
	color: rgba(255,255,255,.94);
	text-decoration: none;
	font-size: .88rem;
	font-weight: 700;
	letter-spacing: .04em;
	border: 1.5px solid var(--tl-accent, #c8a96e);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: background .2s, color .2s, transform .18s;
	white-space: nowrap;
	animation: k100-cta-pulse 2s ease-out 3;
}

.k100-cta-btn:hover {
	background: var(--tl-accent, #c8a96e);
	color: #0d0d0d;
	transform: translateY(-2px);
}

.k100-cta-btn svg {
	flex-shrink: 0;
}

/* mobiilil peida ujuvad CTA nupud; näitusel tõsta strip-navi kohale */
@media (max-width: 767px) {
	.k100-cta-float {
		display: none;
	}
}

@media (max-width: 1024px) {
	body.k100-exhibition .k100-cta-float {
		bottom: calc(var(--strip-height, 160px) + .7rem);
	}
}

/* ── Menüüpaneel CTA ─────────────────────────────────────── */
.k100-menu-cta {
	margin-top: auto;
	padding-top: 1.2rem;
	border-top: 1px solid rgba(255,255,255,.1);
	display: flex;
	flex-direction: column;
	gap: .55rem;
}

.k100-menu-cta-btn {
	display: flex;
	align-items: center;
	gap: .7rem;
	padding: .85rem 1rem;
	border-radius: .55rem;
	background: rgba(200,169,110,.1);
	border: 1.5px solid rgba(200,169,110,.45);
	color: rgba(255,255,255,.94);
	text-decoration: none;
	font-size: .93rem;
	font-weight: 700;
	letter-spacing: .03em;
	transition: background .2s, border-color .2s;
}

.k100-menu-cta-btn:hover {
	background: rgba(200,169,110,.22);
	border-color: rgba(200,169,110,.7);
	color: #fff;
}

/* ── Leheküljepõhine fikseeritud päiseriba (splash-leht, viktoriin jt) ─── */
/* Sõltumatu klass – ei sõltu timeline.css .event-top-actions reeglite kaskaadist */
body.k100-content-body,
body.k100-quiz-body {
	--k100-page-topbar-top: 1.5rem;
	--k100-page-topbar-h: 54px;
}

.k100-page-topbar {
	position: fixed;
	top: var(--k100-page-topbar-top, 1.5rem);
	left: 1.5rem;
	display: flex;
	align-items: center;
	gap: .6rem;
	z-index: 220;
}

@media (max-width: 767px) {
	body.k100-content-body .k100-page-topbar,
	body.k100-quiz-body .k100-page-topbar {
		top: 1rem;
		left: 1rem;
	}

	body.k100-content-body,
	body.k100-quiz-body {
		--k100-page-topbar-top: 1rem;
		--k100-page-topbar-h: 42px;
	}
}

@media (max-width: 640px) {
	body.k100-content-body,
	body.k100-quiz-body {
		--k100-page-topbar-h: 32px;
	}
}

.event-logo-slot-link {
	text-decoration: none;
	color: inherit;
}

/* Splash lehel peab menüü tulema splash-kihist ettepoole. */
body.k100-splash-page .timeline-menu-backdrop {
	z-index: 230;
}

body.k100-splash-page .timeline-menu-panel {
	z-index: 240;
}

/* ── Privacy consent checkbox (quiz + memory forms) ──────── */
.k100-consent-field,
.quiz-consent-field,
.memory-share-consent-field {
	margin: .35rem 0 .55rem;
}

.k100-consent-field-label,
.quiz-consent-field-label,
.memory-share-consent-field-label {
	display: flex;
	align-items: flex-start;
	gap: .55rem;
	font-size: .84rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, .82);
	cursor: pointer;
}

.k100-consent-field-label input[type="checkbox"],
.quiz-consent-field-label input[type="checkbox"],
.memory-share-consent-field-label input[type="checkbox"] {
	margin-top: .2rem;
	flex-shrink: 0;
	accent-color: #c8a96e;
}

.k100-consent-field-text a,
.quiz-consent-field-text a,
.memory-share-consent-field-text a {
	color: #c8a96e;
	text-decoration: underline;
	text-underline-offset: .12em;
}

.k100-consent-field.is-unconfigured,
.quiz-consent-field.is-unconfigured,
.memory-share-consent-field.is-unconfigured {
	opacity: .75;
}
