@import "tailwindcss";

:root {
  --ink: #f7eed8;
  --ink-soft: #b8af9c;
  --night: #080b15;
  --panel: #141a2b;
  --gold: #f3b535;
  --gold-bright: #ffd867;
  --line: rgba(244, 194, 89, 0.22);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--night); color: var(--ink); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--gold); color: #16100a; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: relative; z-index: 20; width: min(1180px, calc(100% - 40px)); margin: 0 auto; min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid rgba(255,255,255,.08); }
.wordmark { font-family: var(--display); font-weight: 900; letter-spacing: .16em; color: var(--gold-bright); font-size: 1.05rem; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); font-size: .86rem; color: var(--ink-soft); }
.nav-links a { padding: 12px 0; transition: color .2s ease; }
.nav-links a:hover, .nav-links a:focus-visible, .nav-links [aria-current="page"] { color: var(--ink); }
.status-pill { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; color: #dbcfae; font-size: .72rem; text-transform: uppercase; letter-spacing: .11em; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: #79d7a2; box-shadow: 0 0 12px #79d7a2; }
.hero { position: relative; isolation: isolate; min-height: 690px; width: min(1280px, 100%); margin: 0 auto; padding: 74px max(28px, calc((100% - 1180px) / 2)) 92px; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: clamp(32px, 6vw, 88px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -3; background: radial-gradient(circle at 70% 41%, rgba(65,86,152,.2), transparent 34%), linear-gradient(180deg, rgba(16,20,37,.12), rgba(8,11,21,.7)); }
.hero::after { content: ""; position: absolute; z-index: -2; left: 0; right: 0; bottom: 0; height: 210px; background: linear-gradient(155deg, transparent 48%, rgba(50,35,25,.35) 49%, rgba(16,14,18,.82) 72%), linear-gradient(205deg, transparent 56%, rgba(57,40,24,.27) 57%); clip-path: polygon(0 38%, 9% 55%, 19% 43%, 30% 69%, 43% 48%, 55% 66%, 66% 42%, 79% 64%, 91% 41%, 100% 55%, 100% 100%, 0 100%); }
.hero-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(85px); opacity: .3; pointer-events: none; }
.hero-glow--one { width: 280px; height: 280px; background: #274ab8; right: 5%; top: 12%; }
.hero-glow--two { width: 220px; height: 220px; background: #d08222; left: 24%; bottom: -9%; opacity: .14; }
.eyebrow { margin: 0 0 16px; color: var(--gold-bright); font-size: .72rem; font-weight: 750; letter-spacing: .22em; text-transform: uppercase; }
.title-art { display: block; width: min(600px, 108%); margin: -76px 0 -82px -6%; filter: drop-shadow(0 18px 30px rgba(0,0,0,.42)); }
.hero-lede { max-width: 590px; margin: 0; color: #d5cdbd; font-family: var(--display); font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.55; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 9px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.button--primary { color: #271608; background: linear-gradient(180deg, var(--gold-bright), #d9901d); box-shadow: inset 0 1px rgba(255,255,255,.65), 0 12px 30px rgba(196,117,14,.2); }
.button--primary:hover, .button--primary:focus-visible { transform: translateY(-2px); }
.button--quiet { color: #c9c0af; border: 1px solid rgba(255,255,255,.12); }
.button--quiet:hover, .button--quiet:focus-visible { border-color: var(--line); color: var(--ink); }
.button--disabled { color: #d7caa9; border: 1px solid var(--line); cursor: default; }
.platform-list { display: flex; flex-wrap: wrap; gap: 10px 17px; align-items: center; padding: 0; margin: 30px 0 0; color: #8e8a83; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; list-style: none; }
.platform-list li:not(:first-child) { color: #c7bdab; }
.platform-list li:not(:first-child)::before { content: "◆"; color: var(--gold); font-size: .52rem; margin-right: 8px; }

.hero-stage { position: relative; min-height: 500px; display: flex; align-items: center; justify-content: center; }
.mine-ring { position: absolute; border: 1px solid rgba(242,190,80,.14); border-radius: 50%; }
.mine-ring--outer { width: 500px; height: 500px; background: radial-gradient(circle, rgba(21,28,49,.5) 0 48%, transparent 49%), conic-gradient(from 12deg, transparent, rgba(240,180,57,.12), transparent 27%, rgba(66,95,173,.12), transparent 62%); box-shadow: inset 0 0 80px rgba(0,0,0,.55); }
.mine-ring--inner { width: 340px; height: 340px; border-style: dashed; opacity: .7; }
.portrait-card { position: absolute; width: 245px; height: 330px; overflow: hidden; border: 1px solid var(--line); border-radius: 120px 120px 22px 22px; background: linear-gradient(180deg, rgba(40,50,81,.92), rgba(18,22,37,.98)); box-shadow: 0 28px 48px rgba(0,0,0,.48), inset 0 0 45px rgba(255,255,255,.025); }
.portrait-card::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(255,255,255,.06); border-radius: inherit; }
.portrait-card--prospector { left: 5%; transform: rotate(-5deg); }
.portrait-card--aristocrat { right: 5%; transform: rotate(5deg); }
.portrait-card span { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 16px; text-align: center; color: #e9d8ad; font-family: var(--display); font-size: .94rem; font-weight: 700; letter-spacing: .03em; }
.sprite { background-repeat: no-repeat; }
.portrait-card .sprite { position: absolute; left: 0; bottom: 36px; width: 100%; aspect-ratio: 1; background-size: 600% 500%; filter: drop-shadow(0 13px 16px rgba(0,0,0,.46)); }
.sprite--prospector, .sprite--prospector-happy { background-image: url('/images/prospector.png'); }
.sprite--aristocrat, .sprite--aristocrat-annoyed { background-image: url('/images/aristocrat.png'); }
.sprite--prospector { background-position: 40% 75%; }
.sprite--aristocrat { background-position: 60% 50%; }
.versus { position: relative; z-index: 4; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #291605; background: linear-gradient(145deg, #ffe077, #d68619); border: 4px solid #22190f; box-shadow: 0 0 0 1px rgba(255,217,103,.5), 0 15px 25px rgba(0,0,0,.5); font-family: var(--display); font-size: 1rem; font-weight: 900; transform: rotate(-7deg); }
.gem-cluster { position: absolute; inset: 0; }
.mini-gem { --size: 34px; position: absolute; width: var(--size); height: var(--size); left: 8%; top: 11%; border-radius: 8px; transform: rotate(45deg); opacity: .78; border: 1px solid rgba(255,255,255,.45); box-shadow: inset 8px 8px 13px rgba(255,255,255,.17), inset -8px -8px 12px rgba(0,0,0,.28), 0 8px 14px rgba(0,0,0,.35); }
.mini-gem:nth-child(2n) { --size: 22px; }
.mini-gem:nth-child(2) { left: 27%; top: 86%; }.mini-gem:nth-child(3) { left: 44%; top: 6%; }
.mini-gem:nth-child(4) { left: 61%; top: 88%; }.mini-gem:nth-child(5) { left: 79%; top: 14%; }.mini-gem:nth-child(6) { left: 91%; top: 80%; }
.mini-gem--red, .colour-dot--red { background: #ee4633; }
.mini-gem--blue, .colour-dot--blue { background: #2979e9; }
.mini-gem--green, .colour-dot--green { background: #55bd4c; }
.mini-gem--gold, .colour-dot--gold { background: #f4be36; }
.mini-gem--purple, .colour-dot--purple { background: #9b4ee9; }
.mini-gem--cyan, .colour-dot--cyan { background: #28cfd3; }

.ticker { overflow: hidden; border-top: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07); background: #0b0f1d; }
.ticker > div { width: max-content; min-width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 58px); padding: 0 24px; color: #988f7d; font-size: .69rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ticker i { width: 5px; height: 5px; transform: rotate(45deg); background: var(--gold); }

.section { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 126px 0; }
.section-heading { max-width: 690px; margin-bottom: 58px; }
.section h2, .closing-section h2, .legal-hero h1 { margin: 0; color: var(--ink); font-family: var(--display); font-weight: 700; letter-spacing: -.035em; line-height: 1.03; }
.section h2 { font-size: clamp(2.55rem, 5.8vw, 5rem); }
.section-heading > p:last-child, .cast-copy > p:not(.eyebrow) { max-width: 590px; color: var(--ink-soft); font-size: 1rem; line-height: 1.75; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { position: relative; min-height: 350px; overflow: hidden; padding: 28px; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; background: linear-gradient(145deg, rgba(25,31,49,.96), rgba(13,17,29,.98)); box-shadow: 0 22px 60px rgba(0,0,0,.2); }
.step-card--raised { transform: translateY(-22px); border-color: var(--line); }
.step-number { color: #827b6d; font-family: var(--display); font-size: .77rem; font-weight: 700; letter-spacing: .08em; }
.step-card h3 { position: absolute; left: 28px; bottom: 78px; margin: 0; font-family: var(--display); font-size: 1.42rem; }
.step-card p { position: absolute; left: 28px; right: 28px; bottom: 23px; margin: 0; color: #9d978d; font-size: .83rem; line-height: 1.55; }
.step-gem { position: absolute; width: 105px; height: 105px; top: 72px; left: calc(50% - 52px); border-radius: 24px; transform: rotate(45deg); clip-path: polygon(18% 0, 82% 0, 100% 18%, 100% 82%, 82% 100%, 18% 100%, 0 82%, 0 18%); border: 2px solid rgba(255,255,255,.46); box-shadow: inset 24px 20px 35px rgba(255,255,255,.24), inset -24px -20px 30px rgba(0,0,0,.25), 0 24px 35px rgba(0,0,0,.34); }
.step-gem::before { content: ""; position: absolute; inset: 8px; border-top: 3px solid rgba(255,255,255,.55); border-left: 3px solid rgba(255,255,255,.2); clip-path: polygon(0 0, 100% 0, 48% 38%); }
.step-gem--blue { background: #2575e4; }.step-gem--gold { background: #efae22; }.step-gem--red { background: #e8422f; }

.cast-section { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(40px, 7vw, 90px); border-top: 1px solid rgba(255,255,255,.07); }
.cast-copy h2 { font-size: clamp(2.55rem, 5.2vw, 4.8rem); }
.colour-key { display: flex; gap: 10px; margin-top: 28px; }
.colour-dot { width: 13px; height: 13px; border-radius: 4px; transform: rotate(45deg); box-shadow: inset 2px 2px rgba(255,255,255,.35); }
.cast-portraits { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.cast-card { position: relative; min-height: 430px; overflow: hidden; border-radius: 190px 190px 20px 20px; border: 1px solid rgba(255,255,255,.09); background: radial-gradient(circle at 50% 25%, rgba(70,81,124,.46), transparent 36%), #111729; }
.cast-card--aristocrat { margin-top: 52px; background: radial-gradient(circle at 50% 25%, rgba(122,70,101,.34), transparent 38%), #171423; }
.cast-card .sprite { position: absolute; width: 112%; aspect-ratio: 1; left: -6%; top: 42px; background-size: 600% 500%; filter: drop-shadow(0 18px 20px rgba(0,0,0,.48)); }
.sprite--prospector-happy { background-position: 20% 75%; }
.sprite--aristocrat-annoyed { background-position: 40% 50%; }
.cast-card > div:last-child { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 26px 22px 23px; background: linear-gradient(180deg, transparent, rgba(8,10,17,.97) 38%); text-align: center; }
.cast-card p { margin: 0 0 6px; color: #978f80; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }
.cast-card h3 { margin: 0; color: #eadfc7; font-family: var(--display); font-size: 1.18rem; }

.closing-section { position: relative; overflow: hidden; padding: 120px 24px 130px; border-top: 1px solid rgba(255,255,255,.07); background: radial-gradient(circle at 50% 130%, rgba(179,104,18,.18), transparent 45%), #0a0e19; text-align: center; }
.closing-section h2 { max-width: 790px; margin: 0 auto; font-size: clamp(2.6rem, 6vw, 5.4rem); }
.closing-section > p:not(.eyebrow) { color: var(--ink-soft); margin: 24px auto 30px; }
.closing-gem { position: absolute; width: 105px; height: 105px; border-radius: 25px; transform: rotate(45deg); opacity: .25; filter: blur(.3px); }
.closing-gem--left { left: 8%; top: 28%; background: #2f7be8; }.closing-gem--right { right: 10%; bottom: 15%; width: 65px; height: 65px; background: #a64ee8; }

.site-footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #807b71; font-size: .73rem; }
.site-footer > div { display: flex; align-items: center; gap: 18px; }.site-footer strong { color: var(--gold); font-family: var(--display); letter-spacing: .12em; }.site-footer nav { display: flex; gap: 28px; }.site-footer a:hover { color: var(--ink); }

.legal-page { min-height: 100vh; background: radial-gradient(circle at 72% 0, rgba(54,73,128,.18), transparent 27%), var(--night); }
.legal-hero { width: min(980px, calc(100% - 48px)); margin: 0 auto; padding: 100px 0 70px; border-bottom: 1px solid rgba(255,255,255,.08); }
.legal-hero h1 { font-size: clamp(3.5rem, 8vw, 7.4rem); }
.legal-hero > p:last-child { color: #8f897e; margin: 18px 0 0; font-size: .78rem; }
.legal-layout { width: min(980px, calc(100% - 48px)); margin: 0 auto; padding: 68px 0 112px; display: grid; grid-template-columns: 210px 1fr; gap: 68px; align-items: start; }
.legal-nav { position: sticky; top: 30px; display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.legal-nav p { margin: 0 0 9px; color: var(--gold-bright); font-size: .69rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.legal-nav a { color: #817d75; font-size: .77rem; line-height: 1.3; }.legal-nav a:hover, .legal-nav a:focus-visible { color: var(--ink); }
.legal-content { min-width: 0; }
.legal-content section { scroll-margin-top: 28px; padding: 42px 0; border-bottom: 1px solid rgba(255,255,255,.075); }
.legal-content section:first-of-type { padding-top: 16px; }
.legal-content h2 { margin: 0 0 18px; color: #eee4cf; font-family: var(--display); font-size: clamp(1.55rem, 3vw, 2.05rem); }
.legal-content p, .legal-content li { color: #aaa398; font-size: .91rem; line-height: 1.8; }
.legal-content strong { color: #ded2b9; }.legal-content a { color: var(--gold-bright); text-decoration: underline; text-decoration-color: rgba(255,216,103,.35); text-underline-offset: 3px; }
.legal-content ul { padding-left: 1.25rem; }.legal-content li + li { margin-top: 10px; }
.pre-release-note { padding: 22px 24px; margin-bottom: 20px; border: 1px solid rgba(244,190,74,.28); border-radius: 12px; background: rgba(166,99,18,.09); }
.pre-release-note strong { display: block; margin-bottom: 7px; color: var(--gold-bright); font-family: var(--display); }.pre-release-note p { margin: 0; }
.pending-contact { display: flex; gap: 16px; align-items: flex-start; padding: 20px; margin-top: 20px; border-radius: 10px; background: #12182a; }.pending-contact > span { color: var(--gold); margin-top: 4px; }.pending-contact p { margin: 0; }
.contact-warning { padding: 14px 16px; border-left: 3px solid var(--gold); background: rgba(244,181,53,.07); }
.legal-back { margin-top: 40px; }.legal-footer { border-top: 1px solid rgba(255,255,255,.07); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 58px; text-align: center; }
  .hero-copy { z-index: 2; }.title-art { margin-inline: auto; }.hero-lede { margin-inline: auto; }.hero-actions, .platform-list { justify-content: center; }
  .hero-stage { min-height: 440px; }.mine-ring--outer { width: 440px; height: 440px; }.mine-ring--inner { width: 290px; height: 290px; }
  .portrait-card { width: 220px; height: 300px; }.portrait-card--prospector { left: 12%; }.portrait-card--aristocrat { right: 12%; }
  .steps-grid { grid-template-columns: 1fr; }.step-card--raised { transform: none; }.step-card { min-height: 310px; }
  .cast-section { grid-template-columns: 1fr; }.cast-copy { max-width: 640px; }.cast-portraits { max-width: 650px; }
  .legal-layout { grid-template-columns: 1fr; gap: 20px; }.legal-nav { position: static; display: grid; grid-template-columns: repeat(2, 1fr); padding: 0 0 30px; border-bottom: 1px solid rgba(255,255,255,.08); }.legal-nav p { grid-column: 1 / -1; }
  .title-art { display: block;}
}

@media (max-width: 640px) {
  .site-header { width: min(100% - 28px, 1180px); min-height: 72px; }.nav-links { gap: 14px; }.nav-links a:first-child, .nav-links a:nth-child(2) { display: none; }.status-pill { display: none; }
  .hero { min-height: auto; padding: 48px 18px 76px; gap: 24px; }.title-art { width: 112%; max-width: none; margin: -45px -6% -55px; }.hero-lede { font-size: 1.15rem; }.button { width: 100%; }.hero-actions { display: grid; width: 100%; }
  .hero-stage { min-height: 360px; }.mine-ring--outer { width: 350px; height: 350px; }.mine-ring--inner { width: 235px; height: 235px; }.portrait-card { width: 170px; height: 240px; }.portrait-card--prospector { left: 1%; }.portrait-card--aristocrat { right: 1%; }.portrait-card span { font-size: .78rem; bottom: 11px; }.portrait-card .sprite { bottom: 28px; }.versus { width: 46px; height: 46px; font-size: .8rem; }
  .ticker > div { justify-content: flex-start; gap: 20px; overflow: hidden; }.ticker span:nth-of-type(n+3), .ticker i:nth-of-type(n+2) { display: none; }
  .section { width: min(100% - 32px, 1120px); padding: 88px 0; }.section-heading { margin-bottom: 36px; }.steps-grid { gap: 14px; }.step-card { min-height: 300px; }
  .cast-portraits { grid-template-columns: 1fr; }.cast-card { min-height: 420px; }.cast-card--aristocrat { margin-top: 0; }
  .closing-gem { display: none; }.closing-section { padding: 92px 20px; }
  .site-footer { min-height: 138px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 15px; padding: 30px 0; }.site-footer > div { flex-direction: column; align-items: flex-start; gap: 7px; }
  .legal-hero { padding: 76px 0 50px; }.legal-layout { width: min(100% - 32px, 980px); padding-top: 42px; }.legal-nav { grid-template-columns: 1fr; }.legal-nav p { grid-column: auto; }.legal-content p, .legal-content li { font-size: .88rem; }.pre-release-note { padding: 19px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

/* --- Account deletion form (self-service portal) --- */
.delete-form { display: flex; flex-direction: column; gap: .6rem; max-width: 26rem; margin: 1.5rem 0; }
.delete-form label { font-weight: 600; }
.delete-form input { padding: .7rem .8rem; font-size: 1.1rem; letter-spacing: .12em; text-transform: uppercase;
  border-radius: .5rem; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: inherit; }
.delete-form input:focus { outline: 2px solid #6ea8fe; outline-offset: 1px; }
.delete-form #code-help, .legal-content #code-help { font-size: .85rem; opacity: .7; margin: 0; }
.delete-form .button { align-self: flex-start; margin-top: .4rem; }
