/* Pirate King website, in the game's own look: deep red lacquer, red-and-gold rim lights gliding
   round the panels, drifting light, rising embers, gold display type leaning forward. */
@property --a {
	syntax: "<angle>";
	initial-value: 0deg;
	inherits: false;
}

:root {
	--bg: #120403;
	--lac: #2b0b08;
	--lac-2: #4a120c;
	--rim: #6b2418;
	--gold: #d9a93f;
	--gold-hi: #ffc94a;
	--red: #c8321f;
	--red-hi: #ff4d3a;
	--x: #ff2a4a;
	--txt: #f6e7c4;
	--dim: #c9b48e;
	--ink: #1d1410;
	color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
	margin: 0;
	color: var(--txt);
	font: 18px/1.6 "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
	background: var(--bg);
	min-height: 100vh;
	overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-hi); }
a:hover { color: #fff; }

/* ---------- the lacquer backdrop: glow, drifting lights, lattice, embers ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
	background: radial-gradient(ellipse 90% 60% at 50% 18%, #6a1a10 0%, #3a0c08 40%, var(--bg) 80%); }
.backdrop::before { /* a faint gold lattice */
	content: ""; position: absolute; inset: 0; opacity: 0.07;
	background:
		repeating-linear-gradient(45deg, var(--gold) 0 1px, transparent 1px 46px),
		repeating-linear-gradient(-45deg, var(--gold) 0 1px, transparent 1px 46px);
}
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; mix-blend-mode: screen; }
.orb.r { width: 46vmax; height: 46vmax; background: #b0261a; left: -12vmax; top: 10vh; animation: drift1 22s ease-in-out infinite alternate; }
.orb.g { width: 34vmax; height: 34vmax; background: #b8862a; right: -10vmax; top: 40vh; opacity: 0.35; animation: drift2 26s ease-in-out infinite alternate; }
.orb.x { width: 28vmax; height: 28vmax; background: #7a0f24; left: 30vw; bottom: -14vmax; opacity: 0.45; animation: drift1 30s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(18vw, 12vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-16vw, -14vh) scale(0.9); } }
#embers { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }

/* ---------- type ---------- */
.disp, h1, h2, h3, .btn, .kicker, .nav a, .brand span {
	font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
	font-weight: 700;
	font-style: italic;
	letter-spacing: 0.01em;
}
.kicker { color: var(--gold); text-transform: uppercase; font-size: 17px; letter-spacing: 0.14em; margin: 0; }
h2 { font-size: clamp(30px, 6vw, 58px); overflow-wrap: break-word; line-height: 1; margin: 6px 0 14px; text-transform: uppercase; }
.gold-text {
	background: linear-gradient(100deg, #b8862a 0%, #ffe39a 25%, #ffc94a 45%, #fff6d8 50%, #ffc94a 55%, #b8862a 100%);
	background-size: 250% 100%;
	-webkit-background-clip: text; background-clip: text; color: transparent;
	animation: shine 5s linear infinite;
}
@keyframes shine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.lead { color: var(--dim); font-size: 20px; max-width: 640px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; padding-block: 12px;
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	background: linear-gradient(rgba(18, 4, 3, 0.85), rgba(18, 4, 3, 0.5)); border-bottom: 1px solid rgba(217, 169, 63, 0.18); }
.top .wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 42px; height: 42px; border-radius: 11px; box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgba(255, 77, 58, 0.5); }
.brand span { font-size: 26px; color: var(--gold-hi); text-transform: uppercase; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--dim); font-size: 20px; text-transform: uppercase; }
.nav a:hover, .nav a.on { color: var(--gold-hi); }

/* ---------- rim-lit lacquer panels: a red and a gold light glide round the edge ---------- */
.rim { position: relative; border-radius: 22px; isolation: isolate;
	background: linear-gradient(180deg, var(--lac-2), var(--lac) 60%, #1f0705);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 220, 160, 0.12); }
.rim::before { content: ""; position: absolute; inset: -2px; border-radius: 24px; padding: 2px; z-index: -1;
	background: conic-gradient(from var(--a),
		rgba(217, 169, 63, 0.25) 0deg, rgba(217, 169, 63, 0.25) 40deg,
		#ff3b2f 70deg, #ffd0b8 80deg, #ff3b2f 90deg,
		rgba(217, 169, 63, 0.25) 120deg, rgba(217, 169, 63, 0.25) 220deg,
		#ffc94a 250deg, #fff4cc 260deg, #ffc94a 270deg,
		rgba(217, 169, 63, 0.25) 300deg);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude;
	animation: glide 7s linear infinite; }
.rim.slow::before { animation-duration: 11s; }
.rim.x::before { background: conic-gradient(from var(--a), rgba(255, 42, 74, 0.25) 0deg, #ff2a4a 70deg, #ffd0d8 80deg, #ff2a4a 90deg, rgba(255, 42, 74, 0.25) 130deg, rgba(255, 42, 74, 0.25) 220deg, #ffc94a 255deg, rgba(255, 42, 74, 0.25) 300deg); }
@keyframes glide { to { --a: 360deg; } }
.pad { padding: clamp(22px, 4vw, 40px); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 30px; border-radius: 14px; font-size: 26px;
	text-decoration: none; text-transform: uppercase; color: #fff; border: 2px solid var(--gold-hi); cursor: default;
	background: linear-gradient(#d23a24, #8a1f12); box-shadow: 0 0 0 0 rgba(255, 77, 58, 0.6), 0 10px 30px rgba(0, 0, 0, 0.5);
	animation: pulse 2.4s ease-out infinite; }
.btn.ghost { background: rgba(0, 0, 0, 0.35); border-color: rgba(217, 169, 63, 0.6); color: var(--gold-hi); animation: none; cursor: pointer; }
.btn.ghost:hover { border-color: var(--gold-hi); color: #fff; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 58, 0.55), 0 10px 30px rgba(0, 0, 0, 0.5); } 70% { box-shadow: 0 0 0 22px rgba(255, 77, 58, 0), 0 10px 30px rgba(0, 0, 0, 0.5); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 58, 0), 0 10px 30px rgba(0, 0, 0, 0.5); } }
.apple { width: 22px; height: 22px; fill: currentColor; }

/* ---------- hero ---------- */
.hero { text-align: center; padding-block: clamp(30px, 6vw, 70px) 30px; }
.medallion { position: relative; width: 210px; height: 210px; margin: 0 auto 8px; }
.medallion .rays { position: absolute; inset: -110px; border-radius: 50%;
	background: repeating-conic-gradient(rgba(255, 201, 74, 0.16) 0deg 6deg, transparent 6deg 18deg);
	-webkit-mask: radial-gradient(circle, #000 25%, transparent 68%); mask: radial-gradient(circle, #000 25%, transparent 68%);
	animation: spin 40s linear infinite; }
.medallion .glow { position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 77, 58, 0.55), transparent 65%); animation: breathe 3s ease-in-out infinite; }
.medallion img { position: relative; width: 100%; height: 100%; border-radius: 48px; box-shadow: 0 0 0 3px var(--gold-hi), 0 20px 50px rgba(0, 0, 0, 0.6); animation: bob 4s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.12); opacity: 0.75; } }
@keyframes bob { 50% { transform: translateY(-8px); } }
.hero h1 { font-size: clamp(54px, 17vw, 168px); line-height: 0.88; margin: 18px 0 8px; text-transform: uppercase;
	filter: drop-shadow(0 4px 0 #1d1410) drop-shadow(0 0 30px rgba(255, 201, 74, 0.35)); }
.hero .tag { font-size: clamp(20px, 3vw, 26px); margin: 0 0 26px; color: var(--txt); }
.hero .ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .soon { color: var(--dim); font-size: 15px; margin-top: 14px; }

/* race lines streaking behind the title, like the game's big reveals */
.lines { position: relative; height: 0; }
.lines i { position: absolute; left: -10%; height: 3px; width: 34%; border-radius: 3px; opacity: 0;
	background: linear-gradient(90deg, transparent, var(--gold-hi), #fff); animation: race 3.6s linear infinite; }
.lines i:nth-child(1) { top: -250px; animation-delay: 0s; }
.lines i:nth-child(2) { top: -200px; animation-delay: 1.1s; background: linear-gradient(90deg, transparent, var(--red-hi), #ffd0b8); }
.lines i:nth-child(3) { top: -150px; animation-delay: 2.2s; }
.lines i:nth-child(4) { top: -120px; animation-delay: 0.6s; background: linear-gradient(90deg, transparent, var(--red-hi), #ffd0b8); }
@keyframes race { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 0.9; } 60% { opacity: 0.9; } 100% { transform: translateX(380%); opacity: 0; } }

/* ---------- phones ---------- */
.phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 3vw, 34px); margin: 40px 0 10px; }
.phone { position: relative; width: clamp(150px, 24vw, 250px); aspect-ratio: 720 / 1560; border-radius: 30px; padding: 7px; flex: none;
	background: linear-gradient(160deg, #3a2418, #0e0605); box-shadow: 0 0 0 2px rgba(217, 169, 63, 0.55), 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 60px rgba(255, 77, 58, 0.25); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }
.phone::after { content: ""; position: absolute; inset: 7px; border-radius: 24px; pointer-events: none;
	background: linear-gradient(115deg, rgba(255, 255, 255, 0.12) 0%, transparent 30%); }
.phones .phone:nth-child(1) { transform: rotate(-7deg) translateY(10px); animation: float1 6s ease-in-out infinite; }
.phones .phone:nth-child(2) { width: clamp(170px, 28vw, 290px); z-index: 2; animation: float2 6s ease-in-out infinite; }
.phones .phone:nth-child(3) { transform: rotate(7deg) translateY(10px); animation: float3 6s ease-in-out infinite; }
@keyframes float1 { 50% { transform: rotate(-7deg) translateY(-4px); } }
@keyframes float2 { 50% { transform: translateY(-14px); } }
@keyframes float3 { 50% { transform: rotate(7deg) translateY(-2px); } }

/* ---------- numbers ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; text-align: center; }
.stat b { display: block; font-family: "Barlow Condensed", sans-serif; font-style: italic; font-size: clamp(46px, 7vw, 66px); line-height: 1; }
.stat span { color: var(--dim); text-transform: uppercase; font-size: 14px; letter-spacing: 0.12em; font-weight: 700; }

/* ---------- sections ---------- */
section { margin-block: clamp(50px, 9vw, 110px); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; margin-top: 30px; }
.feat { padding: 26px 24px 24px; text-align: left; transition: transform 0.25s ease; }
.feat:hover { transform: translateY(-6px); }
.feat .ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; margin-bottom: 14px;
	color: var(--ink); background: radial-gradient(circle at 35% 30%, #fff6d8, var(--c, var(--gold-hi)) 55%, #6b2418 100%);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.5), 0 0 26px var(--c, var(--gold-hi)); animation: halo 2.8s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes halo { 50% { box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.5), 0 0 6px var(--c, var(--gold-hi)); } }
.feat h3 { margin: 0 0 6px; font-size: 30px; line-height: 1.05; color: var(--gold-hi); text-transform: uppercase; }
.feat p { margin: 0; color: var(--dim); }

/* the voyage, step by step */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; margin-top: 34px; counter-reset: s; }
.step { padding: 18px 18px 22px; text-align: center; }
.step .shot { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; margin-bottom: 14px; box-shadow: 0 0 0 2px rgba(217, 169, 63, 0.45); }
.step .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.6s ease; }
.step:hover .shot img { transform: scale(1.06); }
.step h3 { margin: 0; font-size: 32px; text-transform: uppercase; }
.step h3::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 40px; height: 40px; margin-right: 10px;
	border-radius: 50%; background: var(--red); color: #fff; font-size: 24px; box-shadow: 0 0 0 2px var(--gold-hi), 0 0 18px rgba(255, 77, 58, 0.7); vertical-align: 4px; }
.step p { margin: 8px 0 0; color: var(--dim); }

/* X cards: crimson and black, lightning */
.xband { overflow: hidden; background: radial-gradient(ellipse at 70% 40%, #4a0a14, #16070c 70%); }
.xband .wrap2 { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 5vw, 56px); align-items: center; }
.bigx { position: relative; font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-style: italic; font-size: clamp(130px, 22vw, 230px); line-height: 0.8;
	color: var(--x); text-shadow: 0 0 30px rgba(255, 42, 74, 0.8), 0 0 80px rgba(255, 42, 74, 0.5); animation: flick 4s steps(1) infinite; }
@keyframes flick { 0%, 100% { opacity: 1; } 47% { opacity: 1; } 48% { opacity: 0.55; } 49% { opacity: 1; } 51% { opacity: 0.7; } 52% { opacity: 1; } }
.bolt { position: absolute; width: 3px; height: 60%; left: 50%; top: 20%; background: linear-gradient(#fff, var(--x)); filter: drop-shadow(0 0 8px var(--x));
	clip-path: polygon(40% 0, 100% 0, 60% 40%, 100% 40%, 0 100%, 30% 55%, 0 55%); width: 60px; opacity: 0; animation: strike 4s infinite; }
@keyframes strike { 0%, 46% { opacity: 0; } 48% { opacity: 1; } 53% { opacity: 0; } 100% { opacity: 0; } }
.xband h2 { color: #fff; }
.xband h2 em { color: var(--x); font-style: italic; }
.xlist { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; padding: 0; list-style: none; }
.xlist li { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 42, 74, 0.6); color: #ffd0d8; font-weight: 700; font-size: 16px; background: rgba(255, 42, 74, 0.08); }

.xcards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.xcard { position: relative; margin: 0; border-radius: 16px; overflow: hidden; background: #16070c;
	box-shadow: 0 0 0 2px var(--x), 0 0 22px rgba(255, 42, 74, 0.45), 0 16px 34px rgba(0, 0, 0, 0.6);
	animation: xglow 2.6s ease-in-out infinite; transition: transform 0.3s ease; }
.xcard:nth-child(2) { animation-delay: 0.5s; } .xcard:nth-child(3) { animation-delay: 1s; } .xcard:nth-child(4) { animation-delay: 1.5s; } .xcard:nth-child(5) { animation-delay: 2s; }
.xcard:hover { transform: translateY(-8px) rotate(-1.5deg); }
.xcard img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.xcard::after { content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.22) 45%, transparent 60%); background-size: 300% 100%; animation: sheen 4.5s linear infinite; }
.xcard .xb { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
	font-family: "Barlow Condensed", sans-serif; font-style: italic; font-weight: 700; font-size: 22px; color: #fff; background: var(--x); box-shadow: 0 0 0 2px #16070c, 0 0 14px var(--x); }
.xcard figcaption { padding: 10px 12px 12px; background: linear-gradient(#2a0a12, #16070c); border-top: 2px solid var(--x); }
.xcard b { display: block; font-family: "Barlow Condensed", sans-serif; font-style: italic; font-size: clamp(17px, 1.9vw, 24px); white-space: nowrap; line-height: 1; color: #fff; text-transform: uppercase; }
.xcard i { display: block; font-style: normal; font-weight: 700; font-size: clamp(10px, 1vw, 13px); color: #ff8095; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }
@keyframes xglow { 50% { box-shadow: 0 0 0 2px var(--x), 0 0 40px rgba(255, 42, 74, 0.8), 0 16px 34px rgba(0, 0, 0, 0.6); } }
@keyframes sheen { from { background-position: 150% 0; } to { background-position: -150% 0; } }

/* final call */
.final { text-align: center; }
.final h2 { margin-bottom: 18px; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- text pages (support, privacy) ---------- */
.page { padding-block: 34px 60px; max-width: 820px; }
.page h1 { font-size: clamp(48px, 9vw, 80px); line-height: 0.95; margin: 6px 0 10px; text-transform: uppercase; }
.page .rim { margin-top: 24px; }
.page h3 { font-family: "Barlow Condensed", sans-serif; font-style: italic; color: var(--gold-hi); font-size: 26px; margin: 26px 0 4px; text-transform: uppercase; }
.page h3:first-child { margin-top: 0; }
.page p, .page li { color: #ead9b4; }
.mail { font-size: clamp(18px, 4vw, 30px); font-weight: 700; overflow-wrap: anywhere; }
.small { color: var(--dim); font-size: 15px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--rim); }
th { color: var(--gold-hi); }

footer { text-align: center; color: var(--dim); font-size: 14px; padding-block: 30px 40px; border-top: 1px solid rgba(217, 169, 63, 0.15); }
footer a { color: var(--dim); margin: 0 8px; }

@media (max-width: 640px) {
	body { font-size: 17px; }
	.top { padding-block: 8px; }
	.top .wrap { flex-wrap: nowrap; gap: 8px; }
	.brand img { width: 34px; height: 34px; }
	.brand span { font-size: 21px; white-space: nowrap; }
	.nav { gap: 12px; flex-wrap: nowrap; }
	.nav a { font-size: 16px; }
	.nav a.wide { display: none; }   /* Play and Voyage are on the page itself */
	.hero { padding-top: 22px; }
	.medallion { width: 150px; height: 150px; }
	.medallion img { border-radius: 34px; }
	.medallion .rays { inset: -80px; }
	.kicker { font-size: 14px; }
	.hero .tag { font-size: 19px; }
	.hero .ctas { flex-direction: column; align-items: stretch; max-width: 340px; margin-inline: auto; }
	.btn { font-size: 21px; padding: 12px 18px; justify-content: center; white-space: nowrap; }
	.pad { padding: 20px 18px; }
	.rim { border-radius: 18px; }
	.page h1 { font-size: clamp(40px, 12vw, 60px); }
	.page h3 { font-size: 22px; }
	.stats { grid-template-columns: repeat(2, 1fr); gap: 18px 8px; }
	.stats .stat:last-child { grid-column: 1 / -1; }
	.feat { padding: 20px 18px; }
	.feat h3 { font-size: 26px; }
	.steps { grid-template-columns: 1fr 1fr; gap: 12px; }
	.step { padding: 10px 10px 14px; }
	.step .shot { aspect-ratio: 3 / 4; margin-bottom: 10px; border-radius: 12px; }
	.step h3 { font-size: 22px; }
	.step h3::before { width: 30px; height: 30px; font-size: 18px; margin-right: 6px; vertical-align: 2px; }
	.step p { font-size: 14px; line-height: 1.45; }
	.feat { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
	.feat .ic { width: 50px; height: 50px; font-size: 24px; margin: 0; grid-row: 1; }
	.feat h3 { grid-row: 1; margin: 0; }
	.feat p { grid-column: 1 / -1; margin-top: 10px; }
	.lead { font-size: 18px; }
	.phones { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px 20px 30px; margin-inline: -20px; }
	.phones .phone { scroll-snap-align: center; transform: none !important; animation: none !important; width: 62vw !important; }
	.xband .wrap2 { grid-template-columns: 1fr; text-align: center; }
	.xcards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -18px; padding: 6px 18px 18px; }
	.xcard { flex: 0 0 58%; scroll-snap-align: center; }
	.lines { display: none; }
}

@media (max-width: 380px) {
	.brand span { font-size: 18px; }
	.brand img { width: 30px; height: 30px; }
	.nav { gap: 8px; }
	.nav a { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal { opacity: 1; transform: none; }
}
