/* opentpw.io. No external fonts, scripts or trackers (privacy.html). */
:root {
	--night: #1d1450;
	--purple: #3b2a8f;
	--purple-light: #5a45c6;
	--green: #8be04e;
	--yellow: #ffd23f;
	--pink: #ff6fb5;
	--sky: #5ad1ff;
	--paper: #fbf8ff;
	--ink: #231a4d;
	--muted: #5d5683;
	--card: #ffffff;
	--line: #e3dcf7;
	--radius: 18px;
	--font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root {
		--paper: #140e36;
		--ink: #f1edff;
		--muted: #b5acdf;
		--card: #21185a;
		--line: #362a7c;
		color-scheme: dark;
	}
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-light); }
@media (prefers-color-scheme: dark) { a { color: var(--sky); } }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--night) 92%, transparent); backdrop-filter: blur(10px); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: .2px; }
.brand img { width: 38px; height: 38px; }
.brand b { color: var(--yellow); }
.top nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.top nav a { color: #e8e3ff; text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover { color: var(--yellow); }

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--night); }
.hero > 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(90deg, rgba(29, 20, 80, .92) 0%, rgba(29, 20, 80, .65) 45%, rgba(29, 20, 80, .05) 80%); }
.hero .wrap { position: relative; z-index: 1; padding: 110px 0 120px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.05; margin: 0 0 18px; max-width: 12ch; }
.hero h1 span { color: var(--yellow); }
.hero p { font-size: clamp(17px, 2vw, 20px); max-width: 34rem; margin: 0 0 30px; color: #ece8ff; }
.badge { display: inline-block; margin-bottom: 18px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: var(--yellow); font-size: 14px; font-weight: 700; letter-spacing: .3px; }

.buttons { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.button { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 800; text-decoration: none; font-size: 17px; transition: transform .12s ease, box-shadow .12s ease; }
.button:hover { transform: translateY(-2px); }
.button.play { background: var(--green); color: var(--night); box-shadow: 0 6px 0 #4f9a22; }
.button.download { background: var(--yellow); color: var(--night); box-shadow: 0 6px 0 #c99a00; }
.button.ghost { color: #fff; border: 2px solid rgba(255, 255, 255, .5); }
.small { font-size: 14px; color: #d8d1ff; }
.hero .small { margin: 22px 0 0; font-size: 15px; }
.small a { color: #fff; }

/* Sections */
section { padding: 84px 0; }
section h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; line-height: 1.15; }
.lead { color: var(--muted); max-width: 44rem; margin: 0 0 40px; font-size: 18px; }
.note { border-left: 5px solid var(--yellow); background: var(--card); padding: 14px 18px; border-radius: 10px; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature h3 { margin: 6px 0 8px; font-size: 20px; }
.feature p { margin: 0; color: var(--muted); }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; }
.icon.a { background: #e4f9d6; } .icon.b { background: #fff4c7; } .icon.c { background: #ffe0ef; } .icon.d { background: #dcf4ff; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--night); }
.gallery figure.wide { grid-column: 1 / -1; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { color: #e8e3ff; padding: 10px 16px; font-size: 15px; }

.band { background: var(--night); color: #fff; }
.band .lead { color: #cfc7ff; }

.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.platform { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.platform h3 { margin: 0 0 10px; }
.platform a { display: block; padding: 8px 0; font-weight: 700; border-top: 1px solid var(--line); text-decoration: none; }
.platform a:first-of-type { border-top: 0; }
.platform span { color: var(--muted); font-weight: 500; font-size: 14px; }
.band .platform { background: #2a1f6e; border-color: #3d2f8f; }
.band .platform a { color: var(--yellow); border-color: #3d2f8f; }
.band .platform span { color: #b9b0ea; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: var(--radius); }
.split ul { padding-left: 20px; color: var(--muted); }

details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; }
summary { font-weight: 800; cursor: pointer; }
details p { color: var(--muted); margin: 10px 0 0; }

footer { background: var(--night); color: #bdb4ea; padding: 40px 0; font-size: 15px; }
footer .wrap { display: grid; gap: 14px; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: #fff; }

/* Text pages (privacy, rules) */
.page { padding: 60px 0 80px; max-width: 760px; }
.page h1 { font-size: clamp(30px, 5vw, 44px); margin: 0 0 8px; }
.page h2 { font-size: 24px; margin: 36px 0 8px; }
.page .updated { color: var(--muted); margin: 0 0 30px; }
.page table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 15px; }
.page th, .page td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }

@media (max-width: 760px) {
	.top { position: static; }
	.top nav { margin-left: 0; gap: 14px; }
	.hero .wrap { padding: 70px 0 80px; }
	.hero::after { background: linear-gradient(180deg, rgba(29, 20, 80, .55) 0%, rgba(29, 20, 80, .92) 70%); }
	.gallery { grid-template-columns: 1fr; }
	.split { grid-template-columns: 1fr; }
	section { padding: 60px 0; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.button, .gallery img { transition: none; }
}
