/* Магазин монет Final Frontier (2026-11-09): тёмный, золото — как в игре. Сначала телефон, на широком — в колонку 720. */
:root {
	--bg: #0a111c;
	--card: rgba(16, 26, 42, 0.86);
	--line: rgba(140, 180, 230, 0.18);
	--text: #e3eaf6;
	--muted: #9fb0c8;
	--gold: #ffd27a;
	--gold2: #f0a83a;
	--blue: #5fb4ff;
	--red: #ff7a6e;
	--green: #6fe39a;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; min-height: 100vh; }
.bg { position: fixed; inset: 0; z-index: -1; background:
	linear-gradient(180deg, rgba(10, 17, 28, 0.55) 0%, rgba(10, 17, 28, 0.88) 38%, var(--bg) 70%),
	url("bg.webp") center top / cover no-repeat; }
a { color: var(--blue); }
.hidden { display: none !important; }
.top { max-width: 720px; margin: 0 auto; padding: 28px 16px 8px; text-align: center; }
.logo { width: min(520px, 92%); height: auto; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.6)); }
.lead { margin: 10px auto 0; max-width: 520px; color: #cbd6e8; }
main { max-width: 720px; margin: 0 auto; padding: 8px 16px 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px; margin: 14px 0;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35); backdrop-filter: blur(6px); }
h2 { margin: 0 0 12px; font-size: 20px; color: var(--gold); display: flex; align-items: center; gap: 10px; }
.step { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 15px;
	color: #1a1205; background: linear-gradient(180deg, var(--gold), var(--gold2)); flex: none; }
.row { display: flex; gap: 10px; align-items: center; }
.row.center { justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.hint { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.muted { color: var(--muted); }
.err { color: var(--red); margin: 10px 0 0; }
.banner { background: rgba(95, 180, 255, 0.14); border: 1px solid rgba(95, 180, 255, 0.4); border-radius: 12px;
	padding: 10px 14px; margin: 6px 0 0; text-align: center; }
.banner.warn { background: rgba(255, 210, 122, 0.12); border-color: rgba(255, 210, 122, 0.45); color: var(--gold); }
.banner .btn { margin-left: 8px; vertical-align: middle; }
input { font: inherit; color: var(--text); background: rgba(5, 10, 18, 0.7); border: 1px solid var(--line);
	border-radius: 12px; padding: 12px 14px; outline: none; min-width: 0; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(95, 180, 255, 0.2); }
.pid { flex: 1; font-size: 24px; letter-spacing: 6px; text-align: center; font-weight: 700; }
.btn { font: inherit; font-weight: 700; border: 0; border-radius: 12px; padding: 12px 18px; cursor: pointer; color: #eaf4ff;
	background: linear-gradient(180deg, #3d7fd6, #2a5ea8); box-shadow: 0 3px 0 #1c3f72; text-decoration: none;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #1c3f72; }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.btn.ghost { background: transparent; border: 1px solid var(--line); box-shadow: none; color: var(--text); }
.btn.small { padding: 8px 12px; font-size: 14px; }
.btn.gold { color: #2a1a03; background: linear-gradient(180deg, #ffe08f, #f0a83a); box-shadow: 0 3px 0 #a86a12; }
.btn.big { width: 100%; font-size: 19px; padding: 15px 18px; margin-top: 14px; }
.who { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; padding: 12px; border-radius: 12px;
	background: rgba(111, 227, 154, 0.08); border: 1px solid rgba(111, 227, 154, 0.35); }
.who-av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: #1a1205;
	background: linear-gradient(180deg, var(--gold), var(--gold2)); flex: none; }
.who .grow { flex: 1 1 150px; }
.who-name { font-weight: 700; font-size: 18px; overflow-wrap: anywhere; }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pack { position: relative; text-align: center; border-radius: 14px; padding: 14px 10px 12px; cursor: pointer;
	background: linear-gradient(180deg, rgba(40, 58, 88, 0.85), rgba(20, 30, 48, 0.9)); border: 2px solid transparent;
	color: var(--text); font: inherit; }
.pack:hover:not(:disabled) { border-color: rgba(255, 210, 122, 0.4); }
.pack:disabled { cursor: default; }
.pack:disabled:not(.on) { opacity: 0.6; }
.pack.on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 210, 122, 0.18), 0 8px 24px rgba(240, 168, 58, 0.25); }
.pack img { width: 64px; height: auto; filter: drop-shadow(0 4px 10px rgba(240, 168, 58, 0.4)); }
.pack .n { font-size: 22px; font-weight: 800; color: var(--gold); margin-top: 4px; }
.pack .gift { font-size: 13px; color: var(--green); min-height: 39px; display: flex; align-items: center; justify-content: center; }
.pack .price { margin-top: 8px; font-size: 18px; font-weight: 700; padding: 6px; border-radius: 10px; background: rgba(0, 0, 0, 0.3); }
.pack .badge { position: absolute; top: -9px; right: -6px; font-size: 13px; font-weight: 800; color: #08240f; padding: 3px 8px;
	border-radius: 10px; background: linear-gradient(180deg, #8ff0b3, #3fc276); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
.field { display: grid; gap: 6px; margin-bottom: 12px; color: var(--muted); font-size: 14px; }
.check { display: flex; gap: 10px; align-items: center; color: #cbd6e8; }
.check input { width: 20px; height: 20px; accent-color: var(--gold2); flex: none; }
.check input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.why { text-align: center; margin-top: 8px; }
#result { text-align: center; }
#result h2 { justify-content: center; }
.r-icon { width: 64px; height: 64px; margin: 4px auto 10px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; }
.r-icon.spin { border: 5px solid rgba(255, 210, 122, 0.2); border-top-color: var(--gold); animation: spin 0.9s linear infinite; }
.r-icon.ok { background: rgba(111, 227, 154, 0.15); color: var(--green); }
.r-icon.bad { background: rgba(255, 122, 110, 0.15); color: var(--red); }
@keyframes spin { to { transform: rotate(360deg); } }
.foot { max-width: 720px; margin: 0 auto; padding: 8px 16px 40px; display: flex; flex-wrap: wrap; gap: 8px 18px;
	justify-content: center; font-size: 14px; }
.foot a { color: var(--muted); }
.doc { max-width: 760px; margin: 0 auto; padding: 8px 16px 40px; }
.doc .card { line-height: 1.6; }
.doc h1 { color: var(--gold); font-size: 24px; margin: 6px 0 4px; }
.doc h2 { font-size: 18px; margin: 22px 0 8px; display: block; }
@media (max-width: 380px) {
	.packs { grid-template-columns: 1fr 1fr; }
	.pid { letter-spacing: 3px; }
}
