/* Holiday Train - the game's site. The colours are the game's: the night sky, the logo's cherry red and gold. */
@font-face { font-family: "Rubik"; src: url("fonts/Rubik.ttf") format("truetype"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }

:root {
	--night: #0e1537;
	--night-2: #17214d;
	--night-3: #22306a;
	--ink: #f3f5ff;
	--ink-soft: #b9c1e6;
	--red: #e3262b;
	--red-deep: #9e1418;
	--gold: #ffd23f;
	--gold-deep: #e39a12;
	--snow: #ffffff;
	--line: rgba(255, 255, 255, 0.12);
	--radius: 18px;
	color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--night);
	color: var(--ink);
	font: 400 17px/1.6 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ffe27a; }
h1, h2, h3 { font-family: "Rubik", "Manrope", sans-serif; line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; }
h2 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 700; margin-top: 1.6em; }
h3 { font-size: 19px; font-weight: 700; margin-top: 1.4em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: 0.35em; }

/* the language: both texts are in the page, the one not chosen is hidden */
html[data-lang="en"] .ru, html[data-lang="ru"] .en { display: none !important; }

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

/* top bar */
.bar {
	position: sticky; top: 0; z-index: 10;
	background: rgba(14, 21, 55, 0.86);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.bar .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
	font: 800 18px "Rubik", sans-serif; letter-spacing: 0.2px; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 10px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, 0.07); }
.lang { margin-left: 6px; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 10px;
	font: 700 14px "Manrope", sans-serif; padding: 7px 10px; cursor: pointer; }
.lang:hover { background: rgba(255, 255, 255, 0.07); }
@media (max-width: 640px) {
	.brand span { display: none; }
	.nav a { padding: 8px 7px; font-size: 14px; }
}

/* the picture at the top of the home page */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::after { content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(14, 21, 55, 0.0) 35%, rgba(14, 21, 55, 0.55) 70%, var(--night) 100%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: 48px; text-align: center; }
.hero .logo { width: min(520px, 86vw); margin: 0 auto 10px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45)); }
.tagline { font: 700 clamp(19px, 2.8vw, 25px)/1.35 "Rubik", sans-serif; margin: 0 auto 22px; max-width: 640px;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px 11px 14px; border-radius: 14px;
	background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 255, 255, 0.28); color: var(--snow); text-decoration: none; }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11px; line-height: 1.1; color: var(--ink-soft); }
.store b { display: block; font: 700 17px/1.2 "Manrope", sans-serif; }
.soon { margin-top: 14px; color: var(--ink-soft); font-size: 15px; }

/* sections */
section { padding: 56px 0; }
.lead { font-size: 19px; color: var(--ink-soft); max-width: 720px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 28px; }
.card { background: linear-gradient(180deg, var(--night-2), #131b42); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.icon { font-size: 30px; line-height: 1; margin-bottom: 12px; }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 28px auto 0; max-width: 820px; }
.shots img { border-radius: 22px; border: 3px solid rgba(255, 255, 255, 0.16); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); aspect-ratio: 1086 / 1932; object-fit: cover; width: 100%; }
@media (max-width: 760px) {
	.shots { grid-template-columns: repeat(4, 44vw); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin-right: -16px; padding-right: 16px; }
	.shots img { scroll-snap-align: start; }
}

.ribbon { background: linear-gradient(180deg, var(--red), var(--red-deep)); border-top: 4px solid var(--gold); border-bottom: 4px solid var(--gold); }
.ribbon .wrap { display: flex; align-items: center; gap: 24px; padding: 28px 16px; }
.ribbon img { width: 150px; flex: none; margin: -40px 0 -28px; }
.ribbon p { margin: 0; font: 700 clamp(18px, 2.6vw, 23px)/1.4 "Rubik", sans-serif; }
@media (max-width: 560px) { .ribbon img { width: 100px; } }

/* text pages: support, privacy, deletion */
.page { padding: 44px 0 64px; }
.page h1 { margin-bottom: 0.3em; }
.meta { color: var(--ink-soft); font-size: 15px; margin-bottom: 28px; }
.box { background: var(--night-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 22px 0; }
.box > :last-child { margin-bottom: 0; }
.mail { font: 700 20px "Rubik", sans-serif; word-break: break-all; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 46px; margin-bottom: 14px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 32px; height: 32px; border-radius: 50%;
	background: var(--gold); color: var(--night); font: 800 16px/32px "Rubik", sans-serif; text-align: center; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--ink-soft); font-weight: 700; }
.table-scroll { overflow-x: auto; }
@media (max-width: 560px) { table { font-size: 14px; } th, td { padding: 8px 6px; } }

details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 700; font-size: 17.5px; list-style: none; position: relative; padding-right: 30px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font: 700 22px "Rubik", sans-serif; color: var(--gold); }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--ink-soft); }

/* the support form */
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
input, select, textarea {
	font: 400 16px "Manrope", sans-serif; color: var(--ink); background: #0b1130; border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 12px; padding: 12px 14px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 150px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none;
	font: 800 17px "Rubik", sans-serif; color: var(--snow); padding: 14px 26px; border-radius: 14px;
	background: linear-gradient(180deg, #ff4a4f, var(--red)); box-shadow: 0 4px 0 var(--red-deep), 0 10px 24px rgba(227, 38, 43, 0.35); }
.btn:hover { color: var(--snow); filter: brightness(1.06); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--red-deep); }
.note { color: var(--ink-soft); font-size: 14.5px; }

footer { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--ink-soft); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--ink-soft); }
footer a:hover { color: var(--ink); }
footer .copy { margin-left: auto; }
@media (max-width: 640px) { footer .copy { margin-left: 0; width: 100%; } }
