/* SuomiRP website. The server's own look (srp_theme / srp_loadscreen): navy, a sky-blue slant on titles,
 * ice white for what is picked, amber for names and prices, Exo 2 everywhere, square corners. */

@font-face { font-family: 'Exo 2'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/exo2-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Exo 2'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/exo2-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Exo 2'; font-style: italic; font-weight: 100 900; font-display: swap; src: url('fonts/exo2-italic-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Exo 2'; font-style: italic; font-weight: 100 900; font-display: swap; src: url('fonts/exo2-italic-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }

:root {
	--navy: #061226;
	--navy-2: #081a33;
	--abyss: #04070d;
	--deep: #0f3c74;
	--azure: #2f7fc8;
	--text: #eef5fb;
	--muted: #9db2c6;
	--ice: #d8ecf9;
	--ice-rgb: 216, 236, 249;
	--sky: #78bbe8;
	--sky-rgb: 120, 187, 232;
	--amber: #f0a020;
	--amber-rgb: 240, 160, 32;
	--line: rgba(var(--ice-rgb), 0.14);
	--surface: rgba(var(--ice-rgb), 0.06);
	--surface-hover: rgba(var(--ice-rgb), 0.1);
	--panel:
		linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 40%),
		linear-gradient(rgba(10, 29, 55, 0.8), rgba(5, 14, 29, 0.86));
	--shadow: 0 3px 0 rgba(0, 0, 0, 0.4), 0 12px 28px rgba(0, 0, 0, 0.4);
	--slant: -20deg;
	--wrap: 1160px;
	--gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
	background: var(--navy);
	color: var(--text);
	font-family: 'Exo 2', 'Segoe UI', system-ui, sans-serif;
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
a { color: var(--sky); text-decoration: none; }
a:hover { color: var(--ice); }
em { font-style: italic; color: var(--sky); }
b { color: var(--amber); font-weight: 700; }
svg { display: block; }
::selection { background: var(--sky); color: var(--navy); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 820px; }

/* ---- buttons: italic capitals, ice white for the main one ---- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font: italic 800 14px 'Exo 2', sans-serif;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text);
	background: rgba(var(--ice-rgb), 0.06);
	border: 1px solid rgba(var(--ice-rgb), 0.28);
	border-radius: 2px;
	padding: 10px 20px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
	backdrop-filter: blur(6px);
}
.btn:hover { background: rgba(var(--ice-rgb), 0.14); color: var(--text); transform: translateY(-1px); }
.btn--primary {
	color: var(--navy);
	background: linear-gradient(#ffffff, var(--ice));
	border-color: transparent;
	box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35), 0 0 0 rgba(var(--sky-rgb), 0);
}
.btn--primary:hover { color: var(--navy); background: #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35), 0 0 28px rgba(var(--sky-rgb), 0.55); }
.btn--big { padding: 15px 30px; font-size: 16px; }
.btn--small { padding: 7px 14px; font-size: 13px; }
/* Pelaa: the ice white button with a play triangle in front */
.btn--play::before {
	content: '';
	width: 0;
	height: 0;
	margin-right: 10px;
	border-style: solid;
	border-width: 0.42em 0 0.42em 0.68em;
	border-color: transparent transparent transparent currentColor;
}
.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---- the SRP badge: sky bar, ice plate, amber bar ---- */
.badge, .mini-badge { display: inline-flex; align-items: stretch; }
.badge i, .badge .plate, .mini-badge i, .mini-badge b { transform: skewX(var(--slant)); }
.bar-sky { background: linear-gradient(#86c4ee, #6fb3e3); }
.bar-amber { background: linear-gradient(#f2a828, #e89a18); }

.badge { gap: 14px; height: clamp(84px, 14vw, 150px); animation: slide-in 1.4s 0s cubic-bezier(0.22, 0.61, 0.36, 1) both, fade-in 1.4s 0s ease-in-out both; }
.badge i { width: clamp(12px, 1.8vw, 20px); }
.badge .plate {
	display: flex;
	align-items: center;
	padding: 0 clamp(22px, 3.6vw, 40px);
	background: linear-gradient(#ffffff, #eef5fc 55%, #c3def3);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.badge .plate span {
	display: block;
	transform: skewX(20deg) skewX(-12deg);
	font-size: clamp(70px, 12vw, 132px);
	line-height: 1;
	font-weight: 900;
	letter-spacing: -0.03em;
	color: #071428;
}

.mini-badge { gap: 4px; height: 28px; }
.mini-badge i { width: 5px; }
.mini-badge b {
	display: flex;
	align-items: center;
	padding: 0 8px;
	background: linear-gradient(#ffffff, #c3def3);
	color: #071428;
	font-weight: 900;
	font-style: italic;
	font-size: 17px;
	letter-spacing: -0.02em;
}

/* ---- navigation ---- */
.nav {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px var(--gutter);
	transition: background 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
}
.nav.scrolled {
	background: rgba(6, 18, 38, 0.86);
	backdrop-filter: blur(12px);
	box-shadow: inset 0 -1px 0 var(--line);
	padding-top: 10px;
	padding-bottom: 10px;
}
.nav-brand { display: flex; align-items: center; gap: 14px; color: var(--text); }
.nav-name { font-weight: 700; text-transform: uppercase; letter-spacing: 0.32em; font-size: 13px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) {
	position: relative;
	font-style: italic;
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text);
}
.nav-links a:not(.btn)::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: -4px;
	height: 2px;
	background: var(--sky);
	transform: scaleX(0) skewX(var(--slant));
	transform-origin: left;
	transition: transform 0.2s ease;
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1) skewX(var(--slant)); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--text); transition: transform 0.2s ease, opacity 0.2s ease; }

/* logged in: avatar, name and logout, right before the Pelaa button (assets/auth.js) */
.nav-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nav-user-avatar { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--surface); box-shadow: 0 0 0 2px rgba(var(--sky-rgb), 0.5); }
.nav-user-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 14px; color: var(--amber); }
.nav-user-out { padding: 0; font: inherit; font-size: 13px; color: var(--muted); background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.nav-user-out:hover { color: var(--text); border-bottom-color: var(--sky); }

/* ---- hero ---- */
.hero {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	align-items: center;
	overflow: hidden;
}
/* z-index makes it its own layer, so the pictures inside stay under the shade and the text */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 3s ease-in-out;
	animation: drift 40s ease-in-out infinite alternate;
}
/* the new picture fades in on top of the old one, which stays fully visible underneath (site.js), so the
 * dark background never shows through halfway */
.slide.active { opacity: 1; z-index: 2; }
.slide.prev { opacity: 1; z-index: 1; transition: none; }
.slide:nth-child(2) { animation-direction: alternate-reverse; }
@keyframes drift {
	from { transform: scale(1.01) translate3d(-0.4%, 0, 0); }
	to   { transform: scale(1.05) translate3d(0.8%, -0.6%, 0); }
}
.hero-shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(6, 18, 38, 0.94) 0%, rgba(6, 18, 38, 0.6) 40%, rgba(6, 18, 38, 0.1) 75%),
		linear-gradient(0deg, var(--navy) 0%, rgba(6, 18, 38, 0.4) 22%, rgba(6, 18, 38, 0) 45%),
		radial-gradient(ellipse at 70% 20%, rgba(var(--sky-rgb), 0.1), transparent 60%);
}
.hero-inner {
	position: relative;
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 120px var(--gutter) 110px;
}
.kicker {
	margin-top: 28px;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.38em;
	color: rgba(var(--ice-rgb), 0.85);
	animation: slide-in 1.4s 0.15s cubic-bezier(0.22, 0.61, 0.36, 1) both, fade-in 1.4s 0.15s ease-in-out both;
}
.hero h1 {
	margin-top: 14px;
	font-size: clamp(36px, 5.6vw, 68px);
	font-weight: 900;
	font-style: italic;
	line-height: 1.05;
	letter-spacing: -0.01em;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
	animation: slide-in 1.4s 0.25s cubic-bezier(0.22, 0.61, 0.36, 1) both, fade-in 1.4s 0.25s ease-in-out both;
}
.lead {
	max-width: 600px;
	margin-top: 22px;
	font-size: clamp(17px, 1.6vw, 19px);
	color: rgba(var(--ice-rgb), 0.88);
	animation: slide-in 1.4s 0.35s cubic-bezier(0.22, 0.61, 0.36, 1) both, fade-in 1.4s 0.35s ease-in-out both;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; animation: slide-in 1.4s 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both, fade-in 1.4s 0.45s ease-in-out both; }
.hero-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 40px;
	margin-top: 48px;
	list-style: none;
	animation: slide-in 1.4s 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both, fade-in 1.4s 0.55s ease-in-out both;
}
.hero-facts li { position: relative; padding-left: 18px; }
.hero-facts li::before {
	content: '';
	position: absolute;
	left: 0; top: 6px; bottom: 6px;
	width: 4px;
	background: var(--sky);
	transform: skewX(var(--slant));
}
.hero-facts b { display: block; font-size: 30px; font-weight: 900; font-style: italic; color: var(--text); line-height: 1.1; }
.hero-facts span { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
/* the opening text slides in from the left, one part after another: the slide eases out and the fade runs
 * evenly beside it, so the text doesn't pop to full strength in the first moment */
@keyframes slide-in { from { transform: translateX(-160px); } }
@keyframes fade-in { from { opacity: 0; } }

.scroll-hint {
	position: absolute;
	left: 50%;
	bottom: 26px;
	width: 26px;
	height: 42px;
	margin-left: -13px;
	border: 2px solid rgba(var(--ice-rgb), 0.5);
	border-radius: 14px;
}
.scroll-hint span {
	position: absolute;
	left: 50%;
	top: 8px;
	width: 4px;
	height: 8px;
	margin-left: -2px;
	border-radius: 2px;
	background: var(--ice);
	animation: scroll 1.8s ease-in-out infinite;
}
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---- sections ---- */
.section { position: relative; padding: clamp(72px, 10vw, 120px) 0; }
.title {
	position: relative;
	padding-left: 26px;
	font-size: clamp(28px, 3.6vw, 42px);
	font-weight: 900;
	font-style: italic;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	line-height: 1.1;
}
.title::before {
	content: '';
	position: absolute;
	left: 4px; top: 4px; bottom: 4px;
	width: 7px;
	background: var(--sky);
	transform: skewX(var(--slant));
}
.section-lead { margin: 14px 0 0 26px; color: var(--muted); font-size: 18px; }

/* intro */
.intro { background: linear-gradient(var(--navy), var(--navy-2)); }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.intro p { margin-top: 18px; color: rgba(var(--ice-rgb), 0.85); }
.intro .title + p { margin-top: 26px; }

/* the in-game notification tile: ice stub with the icon, frosted body, thin line along the bottom */
.notify-stack { display: grid; gap: 16px; }
.notify {
	--s: 18px;
	display: flex;
	align-items: stretch;
	min-height: 66px;
	filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.45)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}
.notify-stack .notify:nth-child(2) { margin-left: 36px; }
.notify-stack .notify:nth-child(3) { margin-left: 12px; }
.notify-stub {
	flex: none;
	display: grid;
	place-items: center;
	width: 66px;
	background: linear-gradient(#ffffff, var(--ice));
	clip-path: polygon(var(--s) 0, 100% 0, calc(100% - var(--s)) 100%, 0 100%);
}
.notify-stub svg { width: 26px; height: 26px; fill: var(--azure); }
.notify-body {
	position: relative;
	flex: 1;
	margin-left: -12px;
	padding: 10px 18px 12px 26px;
	background: var(--panel);
	clip-path: polygon(var(--s) 0, 100% 0, 100% 100%, 0 100%);
}
.notify-body::after {
	content: '';
	position: absolute;
	left: 14px; right: 0; bottom: 0;
	height: 2px;
	background: var(--sky);
	transform-origin: left;
	animation: fill 6s linear infinite;
}
.notify:nth-child(2) .notify-body::after { animation-delay: -2s; }
.notify:nth-child(3) .notify-body::after { animation-delay: -4s; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.notify h3 { font-size: 14px; font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.notify p { margin: 2px 0 0 !important; font-size: 15px; color: rgba(var(--ice-rgb), 0.85); }

/* the comeback band: a big slanted headline, the story and three points */
.rebuild {
	position: relative;
	padding: clamp(64px, 8vw, 100px) 0;
	background:
		radial-gradient(ellipse at 15% 50%, rgba(var(--amber-rgb), 0.12), transparent 55%),
		radial-gradient(ellipse at 85% 40%, rgba(var(--sky-rgb), 0.1), transparent 55%),
		var(--navy-2);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	overflow: hidden;
}
.rebuild-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.rebuild-tag {
	display: inline-block;
	padding: 4px 14px;
	font-size: 13px;
	font-style: italic;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent-ink, #1a1306);
	background: linear-gradient(#f2a828, #e89a18);
	transform: skewX(var(--slant));
}
.rebuild h2 {
	margin-top: 18px;
	font-size: clamp(34px, 4.6vw, 58px);
	font-weight: 900;
	font-style: italic;
	text-transform: uppercase;
	line-height: 1.02;
	letter-spacing: 0.01em;
}
.rebuild-body > p { font-size: 18px; color: rgba(var(--ice-rgb), 0.88); }
.rebuild-points { list-style: none; display: grid; gap: 14px; margin-top: 26px; }
.rebuild-points li { position: relative; padding-left: 24px; }
.rebuild-points li::before {
	content: '';
	position: absolute;
	left: 2px; top: 5px; bottom: 5px;
	width: 5px;
	background: var(--sky);
	transform: skewX(var(--slant));
}
.rebuild-points b { display: block; font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text); }
.rebuild-points span { color: var(--muted); font-size: 16px; }

/* features */
.features { background: var(--navy-2); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
.card {
	position: relative;
	padding: 26px 24px 28px;
	background: var(--panel);
	border-radius: 3px;
	box-shadow: inset 0 1px 0 rgba(var(--ice-rgb), 0.16), var(--shadow);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card::before {
	content: '';
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 3px;
	background: var(--sky);
	transform: scaleY(0.25);
	transform-origin: top;
	transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(var(--ice-rgb), 0.22), 0 3px 0 rgba(0, 0, 0, 0.4), 0 18px 36px rgba(0, 0, 0, 0.5); }
.card:hover::before { transform: scaleY(1); }
.card--amber::before { background: var(--amber); }
.card--wide { grid-column: 1 / -1; }
.card-icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	background: linear-gradient(#ffffff, var(--ice));
	clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.card-icon svg { width: 24px; height: 24px; fill: var(--azure); }
.card--amber .card-icon svg { fill: #b06e00; }
.card h3 { margin-top: 18px; font-size: 20px; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: 0.03em; }
.card p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* in-game menus: one big shot, two beside it; a click opens it full size (site.js) */
.shots { background: var(--navy-2); padding-top: 0; }
.shot-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 46px; }
.shot { grid-column: span 2; }
.shot--big { grid-column: span 4; grid-row: span 2; }
.shot--wide { grid-column: span 3; }
.shot {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 3px;
	box-shadow: inset 0 1px 0 rgba(var(--ice-rgb), 0.16), var(--shadow);
	background: var(--navy);
}
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.shot:hover img { transform: scale(1.03); }
.shot span {
	position: absolute;
	left: 0;
	bottom: 14px;
	padding: 5px 14px 5px 18px;
	font-size: 13px;
	font-style: italic;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--navy);
	background: linear-gradient(#ffffff, var(--ice));
	clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgba(4, 7, 13, 0.92);
	cursor: zoom-out;
}
.lightbox img { max-width: 100%; max-height: 100%; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }

/* paths */
.paths { overflow: hidden; }
.paths-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center 30%;
	background-attachment: fixed;
}
.paths-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(var(--navy-2), rgba(6, 18, 38, 0.68) 25%, rgba(6, 18, 38, 0.68) 75%, var(--navy));
}
.paths .wrap { position: relative; }
.path-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
.path {
	--c: var(--sky);
	position: relative;
	padding: 30px 26px;
	background: rgba(6, 18, 38, 0.72);
	backdrop-filter: blur(10px);
	border-top: 3px solid var(--c);
	box-shadow: var(--shadow);
	transition: transform 0.2s ease;
}
.path:hover { transform: translateY(-4px); }
.path[data-path="ice"] { --c: var(--ice); }
.path[data-path="amber"] { --c: var(--amber); }
.path-num { font-size: 46px; font-weight: 900; font-style: italic; line-height: 1; color: var(--c); opacity: 0.9; }
.path h3 { margin-top: 12px; font-size: 22px; font-weight: 800; font-style: italic; text-transform: uppercase; line-height: 1.2; }
.path p { margin-top: 10px; color: rgba(var(--ice-rgb), 0.82); font-size: 16px; }
.path ul { margin-top: 16px; list-style: none; display: grid; gap: 6px; }
.path li { position: relative; padding-left: 20px; font-size: 15px; color: var(--muted); }
.path li::before {
	content: '';
	position: absolute;
	left: 2px; top: 8px;
	width: 8px; height: 8px;
	background: var(--c);
	transform: skewX(var(--slant));
}

/* getting started */
.start { background: var(--navy); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 46px; }
.step {
	display: flex;
	gap: 18px;
	padding: 22px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 3px;
}
.step-key {
	flex: none;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	font-size: 22px;
	font-weight: 900;
	font-style: italic;
	color: var(--navy);
	background: linear-gradient(#ffffff, var(--ice));
	clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.step h3 { font-size: 18px; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: 0.03em; }
.step p { margin-top: 4px; color: var(--muted); font-size: 16px; }
.keys {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	margin-top: 30px;
	padding: 14px 18px;
	font-size: 13px;
	font-style: italic;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--muted);
	border-top: 1px solid var(--line);
}
kbd {
	display: inline-block;
	min-width: 26px;
	margin-right: 6px;
	padding: 2px 7px;
	font: normal 800 12px 'Exo 2', sans-serif;
	text-align: center;
	color: var(--navy);
	background: var(--ice);
	border-radius: 2px;
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

/* FAQ */
.faq { background: linear-gradient(var(--navy), var(--navy-2)); }
.faq .title { margin-bottom: 36px; }
details {
	margin-top: 10px;
	background: var(--panel);
	border-radius: 3px;
	box-shadow: inset 0 1px 0 rgba(var(--ice-rgb), 0.12);
}
summary {
	position: relative;
	padding: 18px 54px 18px 22px;
	font-weight: 700;
	font-size: 17px;
	list-style: none;
	cursor: pointer;
}
summary::-webkit-details-marker { display: none; }
summary::after {
	content: '+';
	position: absolute;
	right: 20px; top: 50%;
	width: 26px; height: 26px;
	margin-top: -13px;
	display: grid;
	place-items: center;
	font-weight: 800;
	color: var(--navy);
	background: var(--ice);
	border-radius: 2px;
	transition: transform 0.2s ease;
}
details[open] summary::after { content: '–'; }
details[open] { box-shadow: inset 3px 0 0 var(--sky), inset 0 1px 0 rgba(var(--ice-rgb), 0.12); }
details p { padding: 0 22px 20px; color: var(--muted); }

/* final call */
.cta-band {
	position: relative;
	padding: clamp(70px, 9vw, 110px) 0;
	text-align: center;
	background:
		radial-gradient(ellipse at 50% 120%, rgba(var(--sky-rgb), 0.25), transparent 60%),
		linear-gradient(var(--navy-2), var(--abyss));
	overflow: hidden;
}
.cta-band::before, .cta-band::after {
	content: '';
	z-index: 1;
	position: absolute;
	top: -10%; bottom: -10%;
	width: 40px;
	transform: skewX(var(--slant));
	opacity: 0.85;
}
.cta-band::before { left: 6%; background: linear-gradient(#86c4ee, #6fb3e3); box-shadow: 0 0 40px rgba(var(--sky-rgb), 0.5); }
.cta-band::after { left: calc(6% + 56px); width: 24px; background: linear-gradient(#f2a828, #e89a18); box-shadow: 0 0 30px rgba(var(--amber-rgb), 0.4); }
/* the pier at sunset, dimmed to navy at the edges so the text and the bars stay on top */
.cta-bg { position: absolute; inset: 0; background-size: cover; background-position: 60% 60%; }
.cta-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(var(--navy) 0%, rgba(6, 18, 38, 0.55) 30%, rgba(6, 18, 38, 0.55) 70%, var(--abyss) 100%),
		radial-gradient(ellipse at 50% 50%, rgba(6, 18, 38, 0.1), rgba(6, 18, 38, 0.6) 75%);
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55); }
.cta-band h2 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 1.1; }
.cta-band p { margin: 14px auto 32px; max-width: 520px; color: rgba(var(--ice-rgb), 0.85); }

/* footer */
.footer { padding: 28px 0; background: var(--abyss); border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.footer p { flex: 1; min-width: 220px; font-size: 13px; color: var(--muted); }
.footer a { font-weight: 700; font-style: italic; }

[hidden] { display: none !important; }

/* ---- rules page (saannot.html) ---- */
.nav-links a.current::after { transform: scaleX(1) skewX(var(--slant)); }

/* a short head with a background shot, the same shade as the hero */
.page-head { position: relative; padding: 150px 0 70px; overflow: hidden; }
.page-head-bg { position: absolute; inset: 0; background-size: cover; background-position: center 35%; }
.page-head-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(6, 18, 38, 0.94) 0%, rgba(6, 18, 38, 0.65) 45%, rgba(6, 18, 38, 0.25) 80%),
		linear-gradient(0deg, var(--navy) 0%, rgba(6, 18, 38, 0) 55%);
}
.page-head-inner { position: relative; }
.page-head .kicker { margin-top: 0; }
.page-head h1 {
	margin-top: 12px;
	font-size: clamp(34px, 5vw, 60px);
	font-weight: 900;
	font-style: italic;
	text-transform: uppercase;
	line-height: 1.05;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
	animation: slide-in 1.4s 0.25s cubic-bezier(0.22, 0.61, 0.36, 1) both, fade-in 1.4s 0.25s ease-in-out both;
}

.rules { background: var(--navy); padding-top: 40px; }
.rules-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }

/* table of contents */
.rules-toc { position: sticky; top: 90px; }
.toc-title { font-size: 13px; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.rules-toc nav { display: grid; gap: 2px; margin-top: 12px; border-left: 1px solid var(--line); }
.rules-toc a {
	display: flex;
	gap: 10px;
	padding: 6px 12px;
	margin-left: -1px;
	font-size: 15px;
	line-height: 1.35;
	color: var(--muted);
	border-left: 2px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.rules-toc a span { flex: none; width: 20px; font-weight: 800; font-style: italic; color: rgba(var(--sky-rgb), 0.7); }
.rules-toc a:hover { color: var(--text); background: var(--surface); }
.rules-toc a.active { color: var(--text); border-left-color: var(--sky); background: var(--surface); }

/* class tags: A sky, B ice, C amber, D red */
.cls {
	--c: var(--sky);
	display: inline-grid;
	place-items: center;
	min-width: 26px;
	height: 22px;
	margin-left: 6px;
	padding: 0 6px;
	font: italic 900 13px 'Exo 2', sans-serif;
	color: var(--navy);
	background: var(--c);
	clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
	vertical-align: 3px;
}
.cls[data-c="b"] { --c: var(--ice); }
.cls[data-c="c"] { --c: var(--amber); }
.cls[data-c="d"] { --c: #ef5a5a; }
.cls + .cls { margin-left: 3px; }

.rules-intro { padding: 24px; background: var(--panel); border-radius: 3px; box-shadow: inset 0 1px 0 rgba(var(--ice-rgb), 0.14), var(--shadow); }
.rules-intro > p { color: rgba(var(--ice-rgb), 0.85); }
.cls-legend { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.cls-legend li { padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; }
.cls-legend .cls { margin-left: 0; }
.cls-legend b { display: block; margin-top: 8px; font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; font-size: 15px; color: var(--text); }
.cls-legend span:not(.cls) { font-size: 14px; color: var(--muted); }
.rules-note { font-size: 16px; }
code {
	padding: 1px 6px;
	font: 700 0.92em 'Exo 2', sans-serif;
	color: var(--ice);
	background: rgba(var(--sky-rgb), 0.14);
	border-radius: 2px;
}

/* sections and rules */
.rule-group { margin-top: clamp(48px, 6vw, 72px); }
.group-head { display: flex; align-items: baseline; gap: 16px; }
.group-num { flex: none; font-size: 40px; font-weight: 900; font-style: italic; line-height: 1; color: var(--sky); }
.group-head h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.15; }
.group-lead { margin-top: 10px; color: var(--muted); }
.group-outro { margin-top: 16px; color: rgba(var(--ice-rgb), 0.85); }

.rule {
	position: relative;
	margin-top: 14px;
	padding: 20px 24px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 3px;
}
.rule::before {
	content: '';
	position: absolute;
	left: -1px; top: -1px; bottom: -1px;
	width: 3px;
	background: var(--sky);
	transform: scaleY(0.35);
	transform-origin: top;
	transition: transform 0.3s ease;
}
.rule:hover::before { transform: scaleY(1); }
.rule h3 { font-size: 18px; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.3; }
.rule p, .rule ul { margin-top: 8px; color: rgba(var(--ice-rgb), 0.82); font-size: 16px; }
.rule h3 + p { margin-top: 8px; }
.rule > p:first-child { margin-top: 0; }
.rule ul { list-style: none; display: grid; gap: 4px; }
.rule li { position: relative; padding-left: 20px; }
.rule li::before {
	content: '';
	position: absolute;
	left: 2px; top: 9px;
	width: 7px; height: 7px;
	background: var(--sky);
	transform: skewX(var(--slant));
}
.rule .example {
	margin-top: 12px;
	padding: 10px 14px;
	background: rgba(var(--sky-rgb), 0.07);
	border-left: 2px solid rgba(var(--sky-rgb), 0.6);
	color: rgba(var(--ice-rgb), 0.78);
}
.rule .example b {
	display: block;
	font-size: 12px;
	font-style: italic;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--sky);
}
.rule--alert { border-color: rgba(var(--amber-rgb), 0.35); background: rgba(var(--amber-rgb), 0.06); }
.rule--alert::before { background: var(--amber); transform: none; }

.penalty-table { margin-top: 16px; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.penalty-row { display: grid; grid-template-columns: 90px 1fr 100px; gap: 14px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 16px; }
.penalty-row:first-child { border-top: 0; }
.penalty-row .cls { margin-left: 0; }
.penalty-row > span:last-child { font-weight: 800; font-style: italic; color: var(--amber); text-align: right; }
.penalty-row--head { background: var(--surface); font-size: 13px; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.penalty-row--head > span:last-child { color: var(--muted); }

.golden { list-style: none; counter-reset: golden; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.golden li {
	counter-increment: golden;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	font-size: 17px;
	font-weight: 800;
	font-style: italic;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	background: var(--panel);
	border-radius: 3px;
	box-shadow: inset 0 1px 0 rgba(var(--ice-rgb), 0.14), var(--shadow);
}
.golden li::before {
	content: counter(golden, decimal-leading-zero);
	flex: none;
	font-size: 30px;
	font-weight: 900;
	color: var(--sky);
}

/* scroll reveal (site.js adds .in) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---- smaller screens ---- */
@media (max-width: 960px) {
	.grid, .path-row { grid-template-columns: repeat(2, 1fr); }
	.split, .rebuild-inner { grid-template-columns: 1fr; }
	.paths-bg { background-attachment: scroll; }
	.rules-layout { grid-template-columns: minmax(0, 1fr); }
	.rules-toc { position: static; }
	.rules-toc nav { grid-template-columns: repeat(2, 1fr); border-left: 0; }
	.rules-toc a { margin-left: 0; }
	.cls-legend { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
	.nav-toggle { display: block; }
	.nav-links {
		position: fixed;
		top: 0; right: 0; bottom: 0;
		width: min(78vw, 300px);
		flex-direction: column;
		align-items: flex-start;
		gap: 22px;
		padding: 90px 28px 28px;
		background: rgba(6, 18, 38, 0.97);
		box-shadow: -1px 0 0 var(--line), -20px 0 40px rgba(0, 0, 0, 0.5);
		transform: translateX(100%);
		transition: transform 0.3s ease;
	}
	.nav.open .nav-links { transform: none; }
	.nav-toggle { position: relative; z-index: 2; }
	.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
	.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.nav-name { display: none; }
	.grid, .path-row, .steps { grid-template-columns: 1fr; }
	.shot-grid { grid-template-columns: 1fr; }
	.shot, .shot--big, .shot--wide { grid-column: auto; grid-row: auto; }
	.notify-stack .notify:nth-child(n) { margin-left: 0; }
	.hero-shade { background: linear-gradient(0deg, var(--navy) 0%, rgba(6, 18, 38, 0.75) 40%, rgba(6, 18, 38, 0.55) 100%); }
	.cta-band::before, .cta-band::after { opacity: 0.25; }
	.scroll-hint { display: none; }
	.page-head { padding: 120px 0 50px; }
	.rules-toc nav, .golden { grid-template-columns: 1fr; }
	.rules-intro, .rule { padding: 16px 18px; }
	.penalty-row { grid-template-columns: 50px 1fr auto; padding: 12px 14px; }
	.group-num { font-size: 32px; }
}

/* ---- aloituskysely (kysely.html, assets/kysely.js) ---- */
.survey { background: var(--navy); padding-top: 40px; }
.survey-panel { padding: 24px; background: var(--panel); border-radius: 3px; box-shadow: inset 0 1px 0 rgba(var(--ice-rgb), 0.14), var(--shadow); }
.survey-panel h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.15; }
.survey-panel p { margin-top: 12px; color: rgba(var(--ice-rgb), 0.85); }
.survey-actions { margin-top: 22px; }
.survey-count { font-size: 18px; }
.survey-missed { margin-top: 10px; padding: 0; list-style: none; }
.survey-missed li { margin-top: 8px; padding: 10px 14px; background: var(--surface); border-left: 3px solid var(--amber); border-radius: 3px; font-weight: 700; }
.survey-lead { margin-bottom: 8px; color: var(--muted); }
.survey-msg { margin-bottom: 18px; padding: 12px 16px; border-left: 3px solid var(--sky); background: rgba(var(--sky-rgb), 0.08); }
.survey-msg--error { border-left-color: var(--amber); background: rgba(var(--amber-rgb), 0.1); color: var(--text); }
.survey-form .survey-msg { margin-top: 18px; margin-bottom: 0; }

.survey-q { min-width: 0; margin-top: 18px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; }
.survey-q.missing { border-color: var(--amber); }
.survey-q legend { padding: 0 8px; margin-left: -8px; font-size: 18px; font-weight: 800; font-style: italic; line-height: 1.3; }
.survey-opt {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-top: 8px;
	padding: 10px 14px;
	color: rgba(var(--ice-rgb), 0.85);
	background: rgba(var(--ice-rgb), 0.04);
	border: 1px solid var(--line);
	border-radius: 2px;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.survey-opt:hover { background: var(--surface-hover); }
.survey-opt input { flex: none; margin-top: 5px; accent-color: var(--sky); }
.survey-opt:has(input:checked) { color: var(--text); background: rgba(var(--sky-rgb), 0.12); border-color: var(--sky); }
.survey-opt:has(input:focus-visible) { outline: 2px solid var(--sky); outline-offset: 2px; }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }

/* Reduce motion (Windows: Animation effects off) stops what keeps moving: the background drift, the scroll hint,
 * the notification lines and hover lifts. The opening slide-in and the picture crossfade run once and still play. */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.slide { animation: none; }
	.scroll-hint span, .notify-body::after { animation: none; }
	.card, .path, .btn, .shot img { transition: none; }
	.card:hover, .path:hover, .btn:hover { transform: none; }
	.shot:hover img { transform: none; }
}
