/* PAK LEGACY website. Dark, flat, sharp corners. Every animation moves only
   transform or opacity (cheap for the browser), and none runs for people who
   asked their system for less motion. */

:root {
	color-scheme: dark;
	--bg: #0b0d0c;
	--panel: #111513;
	--panel-2: #161b18;
	--line: #232b27;
	--line-2: #2f3a34;
	--text: #e8ede9;
	--muted: #8b968f;
	--accent: #22d07a;
	--accent-2: #4be59a;
	--ink: #03130a;
	--gold: #f0b43c;
	--gold-ink: #1c1303;
	--red: #ff5a52;
	--blurple: #5865f2;
	--cut: 14px;
	--wrap: 1440px;
	--gut: clamp(16px, 4vw, 48px);
	--head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
	--body: "Barlow", "Segoe UI", Roboto, Arial, sans-serif;
	--ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--bg);
	color: var(--text);
	font: 500 17px/1.55 var(--body);
	overflow-x: hidden;
}
main { flex: 1; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: .95; margin: 0; }
p { margin: 0; }
kbd {
	font: 700 .8em/1 var(--body);
	padding: 3px 6px;
	border: 1px solid var(--line-2);
	border-bottom-width: 3px;
	background: var(--panel-2);
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { color: var(--muted); font-size: 14px; }
.small a { color: var(--text); }
.i { width: 1.25em; height: 1.25em; flex: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* ---------------------------------------------------------------- buttons */

.btn {
	--b: var(--panel-2);
	--f: var(--text);
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 22px;
	border: 0;
	background: var(--b);
	color: var(--f);
	font: 800 17px/1 var(--head);
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	overflow: hidden;
	isolation: isolate;
	clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
	transition: transform .18s var(--ease);
	-webkit-tap-highlight-color: transparent;
}
/* the light bar that slides over a button under the pointer */
.btn::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(255, 255, 255, .14);
	transform: translateX(-101%) skewX(-18deg);
	transition: transform .35s var(--ease);
}
.btn:hover::after, .btn:focus-visible::after { transform: translateX(0) skewX(0); }
.btn:active { transform: translateY(2px); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn .i:last-child:not(:first-child) { transition: transform .25s var(--ease); }
.btn:hover .i:last-child:not(:first-child) { transform: translateX(4px); }

.btn-lg { min-height: 56px; padding: 0 28px; font-size: 19px; }
.btn-xl { min-height: 68px; padding: 0 34px; font-size: 22px; --cut: 18px; }
.btn-primary { --b: var(--accent); --f: var(--ink); }
.btn-gold { --b: var(--gold); --f: var(--gold-ink); }
.btn-discord { --b: var(--blurple); --f: #fff; }
.btn-line { --b: transparent; box-shadow: inset 0 0 0 2px var(--line-2); clip-path: none; }
.btn-line:hover { box-shadow: inset 0 0 0 2px var(--text); }

/* ---------------------------------------------------------------- top bar */

.top {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgba(11, 13, 12, .92);
	border-bottom: 1px solid var(--line);
	backdrop-filter: saturate(1.2) blur(8px);
}
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.logo {
	display: flex;
	align-items: baseline;
	font: 800 28px/1 var(--head);
	letter-spacing: .02em;
	text-decoration: none;
	white-space: nowrap;
}
.logo b { color: var(--accent); font-weight: 800; }
.logo span { margin-left: .28em; }
.nav { display: flex; align-items: center; gap: 10px; }
.nav .btn { min-height: 46px; padding: 0 18px; --cut: 10px; font-size: 16px; }
.nav-me {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 4px 12px 4px 4px;
	border: 1px solid var(--line-2);
	text-decoration: none;
	font-weight: 600;
	max-width: 220px;
	transition: border-color .2s;
}
.nav-me:hover, .nav-me[aria-current] { border-color: var(--accent); }
.nav-me img { width: 36px; height: 36px; }
.nav-me span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- home */

.hero {
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid var(--line);
	/* a plain grid of thin lines, drawn once (an SVG tile, not a gradient) */
	background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M56 0H0v56' fill='none' stroke='%23ffffff' stroke-opacity='.045'/%3E%3C/svg%3E");
}
/* one thin line slowly sweeping down, like a radar */
.hero-scan {
	position: absolute;
	inset: 0;
	border-top: 1px solid rgba(34, 208, 122, .35);
	transform: translateY(-100%);
	animation: scan 7s linear infinite;
	pointer-events: none;
}
@keyframes scan { to { transform: translateY(100%); } }
.hero-in {
	position: relative;
	padding-top: clamp(56px, 11vw, 150px);
	padding-bottom: clamp(56px, 9vw, 130px);
}
.kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font: 700 15px/1 var(--head);
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--muted);
}
.live { width: 9px; height: 9px; background: var(--accent); animation: blink 1.6s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.title {
	margin-top: 18px;
	font-size: clamp(64px, 15vw, 210px);
	line-height: .82;
	letter-spacing: -.01em;
}
.title span { color: var(--accent); }
.lead {
	margin-top: 26px;
	max-width: 30em;
	font-size: clamp(18px, 2vw, 22px);
	color: #c4ccc6;
}
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.connect {
	display: inline-flex;
	align-items: stretch;
	margin-top: 26px;
	max-width: 100%;
	border: 1px solid var(--line-2);
	background: var(--panel);
	color: var(--text);
	font: 600 16px/1 ui-monospace, Consolas, monospace;
	cursor: pointer;
	padding: 0;
}
.connect-cmd { padding: 15px 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.connect-act {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 16px;
	border-left: 1px solid var(--line-2);
	font: 800 14px/1 var(--head);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--accent);
}
.connect:hover { border-color: var(--accent); }

/* the hero comes in once, piece by piece */
.rise { opacity: 0; transform: translateY(18px); animation: rise .7s var(--ease) forwards; }
.rise:nth-child(2) { animation-delay: .08s; }
.rise:nth-child(3) { animation-delay: .16s; }
.rise:nth-child(4) { animation-delay: .24s; }
.rise:nth-child(5) { animation-delay: .32s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	padding-top: clamp(40px, 6vw, 80px);
	padding-bottom: clamp(48px, 7vw, 96px);
}
.step { padding: 0 clamp(16px, 3vw, 40px); border-left: 1px solid var(--line); }
.step:first-child { padding-left: 0; border-left: 0; }
.step-n { font: 800 15px/1 var(--head); letter-spacing: .2em; color: var(--accent); }
.step h2 { font-size: clamp(34px, 4vw, 52px); margin: 12px 0 10px; }
.step p { color: var(--muted); max-width: 26em; }

/* ---------------------------------------------------------------- pages */

.page { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(56px, 8vw, 110px); }
.page-head { margin-bottom: clamp(24px, 4vw, 44px); }
.page-head h1 { font-size: clamp(52px, 9vw, 112px); }
.page-head p { margin-top: 14px; color: var(--muted); max-width: 40em; }
.page-head p b { color: var(--text); }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.h-coins { display: block; color: var(--gold); font-size: .45em; letter-spacing: .04em; margin-top: 10px; }
.back { display: inline-block; margin-bottom: 18px; color: var(--muted); text-decoration: none; font-weight: 600; }
.back:hover { color: var(--text); }

.alert, .notice {
	margin-bottom: 26px;
	padding: 16px 20px;
	border-left: 4px solid var(--red);
	background: rgba(255, 90, 82, .08);
	font-weight: 600;
}
.notice { border-color: var(--accent); background: rgba(34, 208, 122, .08); }

/* ---------------------------------------------------------------- packages */

.packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 22px); }
.pack {
	--cut: 22px;
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(22px, 2.4vw, 34px);
	min-height: 360px;
	background: var(--panel);
	text-decoration: none;
	clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
	box-shadow: inset 0 0 0 1px var(--line);
	opacity: 0;
	transform: translateY(16px);
	animation: rise .6s var(--ease) forwards;
	animation-delay: calc(var(--i) * 70ms);
	transition: box-shadow .2s, background-color .2s;
}
/* the lift on hover sits on the inside, so it never fights the entry animation */
.pack > * { transition: transform .3s var(--ease); }
.pack:hover { box-shadow: inset 0 0 0 2px var(--accent); background: var(--panel-2); }
.pack:hover > * { transform: translateY(-4px); }
.pack:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.pack-tag {
	position: absolute;
	top: 0;
	right: 0;
	padding: 8px 14px;
	background: var(--gold);
	color: var(--gold-ink);
	font: 800 13px/1 var(--head);
	letter-spacing: .14em;
	text-transform: uppercase;
}
.pack:hover .pack-tag { transform: none; }
.pack-name { font: 800 22px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pack-coins {
	margin-top: auto;
	padding-top: 40px;
	font: 800 clamp(54px, 5.4vw, 84px)/.9 var(--head);
	color: var(--text);
	transition: color .2s, transform .3s var(--ease);
}
.pack:hover .pack-coins { color: var(--gold); }
.pack-unit { font: 700 18px/1 var(--head); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
.pack-price { margin: 22px 0 22px; padding-top: 18px; border-top: 1px solid var(--line-2); font-size: 22px; font-weight: 600; }
.pack-buy { width: 100%; }

/* ---------------------------------------------------------------- buying */

.buy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.flow { list-style: none; padding: 0; margin: 0 0 18px; counter-reset: f calc(var(--start, 1) - 1); }
.flow[start="2"] { --start: 2; margin-top: 26px; }
.flow li { counter-increment: f; display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; padding: 12px 0; }
.flow li::before {
	content: "0" counter(f);
	grid-row: span 2;
	font: 800 30px/1 var(--head);
	color: var(--accent);
}
.flow b { font: 800 22px/1.1 var(--head); text-transform: uppercase; letter-spacing: .04em; }
.flow span { color: var(--muted); font-size: 15px; }

.bank { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.bank-amount { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.bank-amount span { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
.bank-amount strong { font: 800 clamp(34px, 4vw, 46px)/1 var(--head); color: var(--gold); }
.bank-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.bank-k { grid-column: 1; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.bank-v { grid-column: 1; font: 600 19px/1.3 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.copy {
	grid-column: 2;
	grid-row: 1 / span 2;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 16px;
	border: 1px solid var(--line-2);
	background: transparent;
	color: var(--text);
	font: 800 14px/1 var(--head);
	letter-spacing: .1em;
	text-transform: uppercase;
	cursor: pointer;
}
.copy:hover { border-color: var(--accent); color: var(--accent); }
.copy.is-done, .connect.is-done .connect-act { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.bank-note { padding: 14px 22px; color: var(--muted); font-size: 15px; }

.buy-send { position: sticky; top: 96px; }
.buy-form, .gate { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); padding: clamp(20px, 2.4vw, 32px); }
.buy-form { display: grid; gap: 18px; }
.to { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.to-k { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.to-v { grid-column: 1; font: 800 26px/1.1 var(--head); overflow-wrap: anywhere; }
.to-v em { font-style: normal; color: var(--muted); font-size: .7em; letter-spacing: .04em; }
.to-c { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: flex; align-items: center; gap: 6px; color: var(--gold); font: 800 22px/1 var(--head); }

.opts { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-box {
	display: grid;
	gap: 4px;
	padding: 14px 16px;
	box-shadow: inset 0 0 0 1px var(--line-2);
	transition: box-shadow .15s, background-color .15s;
}
.opt-name { font: 700 14px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.opt-coins { font: 800 30px/1 var(--head); }
.opt-price { font-size: 15px; color: var(--muted); }
.opt:hover .opt-box { box-shadow: inset 0 0 0 1px var(--text); }
.opt input:checked + .opt-box { box-shadow: inset 0 0 0 2px var(--accent); background: rgba(34, 208, 122, .07); }
.opt input:checked + .opt-box .opt-coins { color: var(--accent); }
.opt input:focus-visible + .opt-box { outline: 3px solid var(--accent); outline-offset: 2px; }

.drop {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 180px;
	border: 2px dashed var(--line-2);
	cursor: pointer;
	text-align: center;
	transition: border-color .2s, background-color .2s;
}
.drop:hover, .drop.is-over { border-color: var(--accent); background: rgba(34, 208, 122, .05); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-empty { display: grid; justify-items: center; gap: 6px; padding: 24px; color: var(--muted); }
.drop-empty .i { width: 40px; height: 40px; color: var(--accent); }
.drop-empty b { font: 800 22px/1.1 var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--text); }
.drop-img { max-height: 320px; width: auto; margin: 10px; }
.drop.has-file { border-style: solid; border-color: var(--accent); }
.drop.has-file .drop-empty { display: none; }

.field { display: grid; gap: 8px; }
.field > span { font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.field em { font-style: normal; text-transform: none; letter-spacing: 0; opacity: .7; }
.field input {
	width: 100%;
	min-height: 54px;
	padding: 0 16px;
	border: 1px solid var(--line-2);
	background: var(--bg);
	color: var(--text);
	font: 500 17px/1 var(--body);
	border-radius: 0;
}
.field input:focus { outline: none; border-color: var(--accent); }
.send { width: 100%; }
.send[disabled] { opacity: .6; cursor: wait; }

.gate { display: grid; gap: 16px; justify-items: start; }
.gate h2 { font-size: clamp(32px, 4vw, 44px); }
.gate p { color: var(--muted); }
.howto { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.howto li::marker { color: var(--accent); font-weight: 700; }

/* ---------------------------------------------------------------- requests */

.orders { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.order {
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 6px 20px;
	padding: 20px 4px;
	border-bottom: 1px solid var(--line);
}
.order.is-new { animation: flash 1.6s var(--ease); }
@keyframes flash { from { background-color: rgba(34, 208, 122, .16); } }
.order-id { font: 800 22px/1 var(--head); color: var(--muted); }
.order-what { display: grid; }
.order-what b { font: 800 24px/1.1 var(--head); text-transform: uppercase; letter-spacing: .04em; }
.order-what span, .order-when { color: var(--muted); font-size: 15px; }
.order-why { grid-column: 2 / -1; color: var(--red); font-size: 15px; }
.chip { padding: 8px 12px; font: 800 14px/1 var(--head); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.chip-wait { background: rgba(240, 180, 60, .14); color: var(--gold); }
.chip-ok { background: var(--accent); color: var(--ink); }
.chip-no { background: rgba(255, 90, 82, .14); color: var(--red); }

/* ---------------------------------------------------------------- footer */

.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 26px; padding-bottom: 26px; }
.foot a { color: var(--text); }

/* ---------------------------------------------------------------- smaller screens */

@media (max-width: 1100px) {
	.packs { grid-template-columns: repeat(2, 1fr); }
	.pack { min-height: 300px; }
}

@media (max-width: 860px) {
	.buy { grid-template-columns: 1fr; }
	.buy-send { position: static; }
	.steps { grid-template-columns: 1fr; gap: 34px; }
	.step { padding: 0 0 0 20px; border-left: 2px solid var(--line); }
	.step:first-child { padding-left: 20px; border-left: 2px solid var(--accent); }
}

@media (max-width: 600px) {
	body { font-size: 16px; }
	.top-in { min-height: 62px; }
	.logo { font-size: 23px; }
	.nav { gap: 8px; }
	.nav .btn { min-height: 42px; padding: 0 14px; font-size: 15px; }
	.nav-login span { display: none; }
	.nav-login { padding: 0 12px; }
	.nav-me { padding: 3px; border-color: var(--line-2); }
	.nav-me span { display: none; }
	.cta .btn { width: 100%; }
	.connect { width: 100%; }
	.connect-cmd { flex: 1; text-align: left; }
	.packs { grid-template-columns: 1fr; }
	.pack { min-height: 0; }
	.pack-coins { padding-top: 26px; }
	.opts { grid-template-columns: 1fr 1fr; gap: 8px; }
	.opt-coins { font-size: 26px; }
	.bank-row { padding: 14px 16px; }
	.bank-amount { padding: 18px 16px; }
	.order { grid-template-columns: minmax(0, 1fr) auto; padding: 18px 0; }
	.order-id { grid-column: 1 / -1; font-size: 16px; }
	.order-when { grid-column: 1; grid-row: 3; }
	.order-why { grid-column: 1 / -1; }
}

@media (max-width: 345px) {
	.nav-coins span { display: none; }
	.nav-coins { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.rise, .pack { opacity: 1; transform: none; }
	.hero-scan { display: none; }
}

/* the two bomb sites, as quiet outlines on wide screens */
.hero-sites {
	position: absolute;
	right: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut)));
	bottom: clamp(40px, 6vw, 96px);
	display: none;
	gap: 28px;
	align-items: flex-start;
	pointer-events: none;
}
.hero-sites span {
	position: relative;
	display: grid;
	place-items: center;
	--s: clamp(140px, 11vw, 190px);
	width: var(--s);
	height: var(--s);
	border: 2px solid var(--line-2);
	font: 800 calc(var(--s) * .62)/1 var(--head);
	color: transparent;
	-webkit-text-stroke: 2px var(--line-2);
	opacity: 0;
	animation: site .9s var(--ease) .35s forwards;
}
.hero-sites span:last-child { margin-top: 64px; animation-delay: .5s; }
.hero-sites span::after {
	content: "";
	position: absolute;
	width: 10px;
	height: 10px;
	top: 14px;
	right: 14px;
	background: var(--accent);
	animation: blink 1.6s steps(2, jump-none) infinite;
}
.hero-sites span:last-child::after { background: var(--red); animation-delay: .8s; }
@keyframes site { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@media (min-width: 1100px) { .hero-sites { display: flex; } }
@media (prefers-reduced-motion: reduce) { .hero-sites span { opacity: 1; } }
