:root {
	--ice: #5ec8ff;
	--sky: #2a8fd6;
	--navy: #0b3d6e;
	--deep: #062644;
	--sand: #f4c56a;
	--snow: #f2f8fc;
	--mist: #d7e8f5;
	--ink: #12324a;
	--muted: #5a7388;
	--line: rgba(11, 61, 110, 0.12);
	--shop: #ff8a1f;
	--shop-deep: #e56f00;
	--ok: #1f9d63;
	--bad: #c0392b;
	--radius: 18px;
	--shadow: 0 18px 40px rgba(6, 38, 68, 0.14);
	--font: "Segoe UI", "Trebuchet MS", "Gill Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	color: var(--ink);
	background:
		radial-gradient(1200px 500px at 10% -10%, rgba(94, 200, 255, 0.35), transparent 60%),
		radial-gradient(900px 420px at 100% 0%, rgba(244, 197, 106, 0.22), transparent 55%),
		linear-gradient(180deg, #eaf5fc 0%, #f7fbfe 40%, #eef5fb 100%);
	min-height: 100vh;
	line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); text-decoration: none; }
a:hover { color: var(--navy); }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

/* Top bar */
.topbar {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(14px);
	background: rgba(247, 251, 254, 0.88);
	border-bottom: 1px solid var(--line);
}
.topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 74px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: inherit;
	min-width: 0;
}
.brand-mark {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.brand-full {
	font-size: 15px;
	letter-spacing: 0.02em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.brand-short {
	font-style: normal;
	font-size: 12px;
	color: var(--muted);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.main-nav {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: flex-end;
}
.main-nav a {
	padding: 8px 14px;
	border-radius: 999px;
	color: var(--ink);
	font-weight: 600;
	font-size: 14px;
}
.main-nav a:hover,
.main-nav a.is-on { background: rgba(42, 143, 214, 0.12); color: var(--navy); }
.main-nav .nav-shop {
	background: linear-gradient(135deg, var(--shop), var(--shop-deep));
	color: #fff !important;
	box-shadow: 0 8px 18px rgba(229, 111, 0, 0.35);
	padding: 10px 18px;
	margin-left: 4px;
}
.main-nav .nav-shop:hover,
.main-nav .nav-shop.is-on {
	filter: brightness(1.05);
	background: linear-gradient(135deg, #ff9a3d, var(--shop));
}
.nav-toggle {
	display: none;
	width: 42px;
	height: 42px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
	padding: 10px;
	cursor: pointer;
}
.nav-toggle span {
	display: block;
	height: 2px;
	background: var(--navy);
	margin: 5px 0;
}

.page-main { padding-bottom: 48px; }

/* Shared sections */
.mast-band {
	position: relative;
	overflow: hidden;
	padding: 48px 0 28px;
}
.mast-band .shell { position: relative; z-index: 1; }
.eyebrow {
	display: inline-block;
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sky);
	font-weight: 700;
	margin-bottom: 10px;
}
.display-title {
	margin: 0 0 12px;
	font-size: clamp(1.8rem, 3.5vw, 2.8rem);
	line-height: 1.15;
	color: var(--deep);
}
.lead {
	margin: 0;
	max-width: 54ch;
	color: var(--muted);
	font-size: 1.05rem;
}
.section-block { padding: 36px 0; }
.section-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}
.section-head h2 {
	margin: 0;
	font-size: clamp(1.4rem, 2.4vw, 1.9rem);
	color: var(--deep);
}
.section-head p { margin: 6px 0 0; color: var(--muted); }

.store-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	margin-top: 22px;
}
.store-btn img {
	width: min(180px, 42vw);
	height: auto;
	aspect-ratio: 499 / 171;
	transition: transform 0.2s ease, filter 0.2s ease;
}
.store-btn:hover img { transform: translateY(-2px) scale(1.02); filter: brightness(1.05); }

/* Home stage */
.stage-panel {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 28px;
	align-items: center;
}
.stage-visual {
	border-radius: 24px;
	overflow: hidden;
	box-shadow: var(--shadow);
	background: #0b3d6e;
	aspect-ratio: 1024 / 500;
}
.stage-visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.shot-rail {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}
.shot-card {
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--shadow);
	background: #fff;
	aspect-ratio: 800 / 1280;
}
.shot-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.pulse-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}
.pulse-item {
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 22px;
	box-shadow: 0 10px 24px rgba(6, 38, 68, 0.06);
}
.pulse-item .ico {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, rgba(94, 200, 255, 0.35), rgba(42, 143, 214, 0.2));
	margin-bottom: 12px;
	color: var(--navy);
}
.pulse-item h3 { margin: 0 0 8px; font-size: 1.05rem; }
.pulse-item p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.cta-strip {
	margin-top: 28px;
	padding: 28px;
	border-radius: 22px;
	background: linear-gradient(120deg, var(--navy), #14639e 55%, #1f8ec4);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	box-shadow: var(--shadow);
}
.cta-strip h2 { margin: 0 0 6px; color: #fff; }
.cta-strip p { margin: 0; color: rgba(255, 255, 255, 0.88); }
.btn-shop {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 26px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--shop), var(--shop-deep));
	color: #fff !important;
	font-weight: 800;
	letter-spacing: 0.04em;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}
.btn-shop:hover { filter: brightness(1.06); }

/* About */
.about-layout {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 28px;
	align-items: start;
}
.prose-card {
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid var(--line);
	border-radius: 22px;
	padding: 28px;
	box-shadow: var(--shadow);
}
.prose-card p { color: var(--muted); }
.about-photos {
	display: grid;
	gap: 14px;
}
.about-photos figure {
	margin: 0;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: var(--shadow);
	background: #fff;
	max-width: 280px;
	margin-left: auto;
}
.about-photos img {
	width: 100%;
	aspect-ratio: 800 / 1280;
	object-fit: cover;
}
.pillar-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	margin-top: 24px;
}
.pillar {
	background: #fff;
	border-radius: 16px;
	padding: 18px;
	border: 1px solid var(--line);
	text-align: center;
}
.pillar .ico {
	width: 40px;
	height: 40px;
	margin: 0 auto 10px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--mist);
	color: var(--navy);
}
.pillar h3 { margin: 0 0 6px; font-size: 0.98rem; }
.pillar p { margin: 0; font-size: 0.88rem; color: var(--muted); }

/* Game */
.game-intro {
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}
.game-badge {
	margin: 0;
	width: 200px;
	max-width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 28px;
	overflow: hidden;
	box-shadow: var(--shadow);
	flex-shrink: 0;
	justify-self: start;
}
.game-badge img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.game-copy {
	min-width: 0;
	max-width: 100%;
}
.game-copy .lead {
	max-width: 56ch;
}
.feat-board {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin-top: 8px;
}
.feat-tile {
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: 14px;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 18px;
}
.feat-tile .ico {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: linear-gradient(160deg, #7ad0ff, #2a8fd6);
	color: #fff;
}
.feat-tile h3 { margin: 0 0 6px; font-size: 1rem; }
.feat-tile p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.gallery-strip {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 12px;
	margin-top: 24px;
}
.gallery-strip .shot-card { max-height: 320px; }

/* Contact */
.contact-grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 24px;
	align-items: start;
}
.contact-photo {
	border-radius: 20px;
	overflow: hidden;
	box-shadow: var(--shadow);
	max-width: 320px;
}
.contact-photo img {
	width: 100%;
	aspect-ratio: 800 / 1280;
	object-fit: cover;
}
.info-list { display: grid; gap: 12px; margin-top: 18px; }
.info-row {
	display: grid;
	grid-template-columns: 44px 1fr;
	gap: 12px;
	align-items: start;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 14px;
}
.info-row .ico {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: var(--mist);
	color: var(--navy);
}
.info-row strong { display: block; font-size: 0.85rem; color: var(--muted); }
.info-row span, .info-row a { color: var(--ink); font-weight: 600; word-break: break-word; }

/* Shop */
.shop-layout {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 22px;
	align-items: start;
}
.coin-blurb {
	background: linear-gradient(135deg, rgba(94, 200, 255, 0.18), rgba(255, 255, 255, 0.9));
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 18px 20px;
	margin-bottom: 16px;
	color: var(--muted);
}
.coin-blurb strong { color: var(--deep); }
.coin-board {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
	gap: 10px;
	max-height: 520px;
	overflow: auto;
	padding-right: 4px;
}
.coin-tile {
	border: 1px solid var(--line);
	background: #fff;
	border-radius: 14px;
	padding: 12px 10px;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.coin-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(6, 38, 68, 0.1); }
.coin-tile.is-pick {
	border-color: var(--shop);
	box-shadow: 0 0 0 2px rgba(255, 138, 31, 0.25);
}
.coin-tile img {
	width: 42px;
	height: 42px;
	margin: 0 auto 8px;
	object-fit: contain;
}
.coin-tile .coin-title {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--deep);
	min-height: 2.4em;
	line-height: 1.2;
}
.coin-tile .coin-price {
	margin-top: 6px;
	font-size: 1rem;
	font-weight: 800;
	color: var(--shop-deep);
}
.order-panel {
	background: #fff;
	border: 2px solid rgba(255, 138, 31, 0.35);
	border-radius: 20px;
	padding: 20px;
	box-shadow: var(--shadow);
	position: sticky;
	top: 90px;
}
.order-panel h2 {
	margin: 0 0 14px;
	font-size: 1.25rem;
	color: var(--deep);
}
.field { margin-bottom: 12px; }
.field > label,
.field-label {
	display: block;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--muted);
	margin-bottom: 6px;
}
.field input:not([type="radio"]):not([type="checkbox"]),
.field select {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 11px 12px;
	font: inherit;
	background: #f9fcfe;
	color: var(--ink);
}
.field input[readonly] { background: #eef4f9; color: var(--muted); }
.field.is-bad input:not([type="radio"]):not([type="checkbox"]),
.field.is-bad select { border-color: var(--bad); background: #fff5f4; }
.field-hint { display: none; color: var(--bad); font-size: 0.78rem; margin-top: 4px; }
.field.is-bad .field-hint { display: block; }
.pay-list { display: grid; gap: 8px; }
.pay-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 10px;
	cursor: pointer;
	background: #f9fcfe;
	margin: 0;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--ink);
}
.pay-option.is-view {
	opacity: 0.55;
	cursor: default;
	pointer-events: none;
}
.pay-option input[type="radio"] {
	width: 16px;
	height: 16px;
	margin: 0;
	flex-shrink: 0;
	accent-color: var(--shop-deep);
}
.pay-option span { line-height: 1.3; }
.currency-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}
.currency-row button {
	border: 1px solid var(--line);
	background: #fff;
	border-radius: 999px;
	padding: 7px 14px;
	font-weight: 700;
	cursor: pointer;
	color: var(--ink);
}
.currency-row button.is-on {
	background: var(--navy);
	border-color: var(--navy);
	color: #fff;
}
.agree-row {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 0.86rem;
	color: var(--muted);
	margin: 12px 0 16px;
}
.agree-row a { font-weight: 600; }
.agree-row.is-bad { color: var(--bad); }
.btn-confirm {
	width: 100%;
	border: 0;
	border-radius: 12px;
	padding: 14px 16px;
	font-size: 1rem;
	font-weight: 800;
	color: #fff;
	cursor: pointer;
	background: linear-gradient(135deg, var(--shop), var(--shop-deep));
	box-shadow: 0 10px 22px rgba(229, 111, 0, 0.28);
}
.btn-confirm:disabled { opacity: 0.55; cursor: wait; }
.form-alert {
	display: none;
	margin-bottom: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	background: #ffe8e6;
	color: var(--bad);
	font-size: 0.9rem;
}
.form-alert.is-show { display: block; }
.delivery-box {
	margin-top: 28px;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: 24px;
}
.delivery-box h2 { margin: 0 0 8px; color: var(--deep); }
.delivery-box h3 { margin: 18px 0 6px; font-size: 1rem; color: var(--navy); }
.delivery-box p { margin: 0; color: var(--muted); }
.coin-loading, .coin-empty {
	padding: 28px;
	text-align: center;
	color: var(--muted);
	grid-column: 1 / -1;
}

/* Confirm / finish / error */
.status-shell {
	width: min(720px, calc(100% - 32px));
	margin: 40px auto;
	background: #fff;
	border-radius: 22px;
	padding: 28px;
	box-shadow: var(--shadow);
	border: 1px solid var(--line);
}
.status-shell h1 { margin: 0 0 10px; color: var(--deep); }
.receipt-list { list-style: none; padding: 0; margin: 18px 0; }
.receipt-list li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
	font-size: 0.95rem;
}
.receipt-list span { color: var(--muted); }
.receipt-list strong { color: var(--ink); text-align: right; word-break: break-all; }
.badge-ok, .badge-bad {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	font-weight: 700;
	margin-bottom: 12px;
}
.badge-ok { background: rgba(31, 157, 99, 0.12); color: var(--ok); }
.badge-bad { background: rgba(192, 57, 43, 0.12); color: var(--bad); }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn-ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 18px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: #fff;
	color: var(--ink) !important;
	font-weight: 700;
}

/* Footer */
.site-foot {
	margin-top: 20px;
	background: linear-gradient(180deg, #0a355f, #062644);
	color: rgba(255, 255, 255, 0.88);
	padding: 36px 0 18px;
}
.foot-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1.2fr 1fr;
	gap: 18px;
}
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-brand img { width: 56px; height: 56px; border-radius: 14px; }
.foot-brand strong { display: block; color: #fff; }
.foot-brand p { margin: 4px 0 0; font-size: 0.9rem; opacity: 0.8; }
.foot-links, .foot-legal { display: grid; gap: 8px; align-content: start; }
.foot-links a, .foot-legal a, .foot-meta a { color: rgba(255, 255, 255, 0.9); }
.foot-links .foot-shop {
	display: inline-flex;
	width: fit-content;
	padding: 6px 12px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--shop), var(--shop-deep));
	color: #fff !important;
	font-weight: 800;
}
.foot-meta p { margin: 0 0 8px; font-size: 0.9rem; }
.foot-copy {
	margin-top: 22px;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.85rem;
	opacity: 0.75;
}

.ico svg { width: 22px; height: 22px; fill: currentColor; }

@media (max-width: 960px) {
	.stage-panel,
	.about-layout,
	.game-intro,
	.contact-grid,
	.shop-layout,
	.foot-grid {
		grid-template-columns: 1fr;
	}
	.game-badge {
		width: min(180px, 46vw);
		margin-bottom: 4px;
	}
	.pillar-row { grid-template-columns: repeat(2, 1fr); }
	.shot-rail { grid-template-columns: repeat(2, 1fr); }
	.gallery-strip { grid-template-columns: repeat(3, 1fr); }
	.about-photos figure { margin-left: 0; max-width: 240px; }
	.order-panel { position: static; }
}
@media (max-width: 760px) {
	.nav-toggle { display: inline-block; }
	.main-nav {
		display: none;
		position: absolute;
		left: 16px;
		right: 16px;
		top: 74px;
		background: #fff;
		border: 1px solid var(--line);
		border-radius: 16px;
		padding: 10px;
		flex-direction: column;
		align-items: stretch;
		box-shadow: var(--shadow);
	}
	.main-nav.is-open { display: flex; }
	.main-nav .nav-shop { margin-left: 0; text-align: center; }
	.pulse-grid, .feat-board { grid-template-columns: 1fr; }
	.gallery-strip { grid-template-columns: repeat(2, 1fr); }
	.brand-full { font-size: 13px; max-width: 46vw; }
}
