/* ArcBrawl — arcbrawl.com
   Ink navy stage, ivory paper, gold logo type, five element inks, violet = the Author. */
@font-face { font-family: "Lilita One"; src: url("assets/fonts/LilitaOne-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "IM Fell English"; font-style: italic; src: url("assets/fonts/IMFellEnglish-Italic.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Nunito XB"; font-weight: 800; src: url("assets/fonts/Nunito-ExtraBold.ttf") format("truetype"); font-display: swap; }

:root {
  --ink: #0a0f22;
  --ink-2: #111836;
  --ink-3: #1a2350;
  --line: #2b3670;
  --paper: #f4ecd9;
  --paper-2: #e9dec4;
  --graphite: #2a2740;
  --text: #ebe8f7;
  --muted: #a9adcf;
  --gold: #ffcf4a;
  --gold-2: #f39a1e;
  --violet: #9a6bff;
  --fire: #ff6b3d;
  --water: #3fa7ff;
  --nature: #62d04c;
  --electric: #ffd53d;
  --rock: #c39a68;
  --el: var(--gold);
  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --lore: "IM Fell English", "Iowan Old Style", Georgia, serif;
  --label: "Nunito XB", ui-rounded, system-ui, sans-serif;
  --body: ui-rounded, "SF Pro Rounded", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --wrap: min(1120px, 100% - 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--ink); color: var(--text); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: .01em; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h3 { font-size: 1.45rem; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: var(--wrap); margin-inline: auto; }
.eyebrow { font: 800 .78rem/1 var(--label); letter-spacing: .2em; text-transform: uppercase; color: var(--el); margin-bottom: 14px; }
.lore { font-family: var(--lore); font-style: italic; }
.gold { background: linear-gradient(#fff3b8, var(--gold) 45%, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 #0b1233); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; transition: background .3s, box-shadow .3s; }
.nav.solid { background: rgba(10, 15, 34, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.nav .mark { flex: none; display: block; transition: opacity .3s; }
.nav .mark img { height: 46px; width: auto; }
#nav:not(.solid) .mark { opacity: 0; pointer-events: none; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav ul a { font: 800 .82rem/1 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--text); text-decoration: none; opacity: .85; }
.nav ul a:hover { color: var(--gold); opacity: 1; }
.pill { font: 800 .74rem/1 var(--label); letter-spacing: .14em; text-transform: uppercase; padding: 9px 14px; border-radius: 999px; border: 1.5px solid rgba(255, 207, 74, .6); color: var(--gold); white-space: nowrap; }
.menu { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .3); background: rgba(10, 15, 34, .6); cursor: pointer; padding: 0; place-content: center; gap: 5px; }
.menu span { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.nav.open .menu span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav.open .menu span:nth-child(2) { opacity: 0; }
.nav.open .menu span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
@media (max-width: 860px) {
  .nav .pill { display: none; }
  .menu { display: grid; }
  .nav ul { display: none; position: absolute; left: 0; right: 0; top: 64px; margin: 0; padding: 6px 20px 14px; flex-direction: column; gap: 0; background: rgba(10, 15, 34, .97); box-shadow: 0 1px 0 var(--line), 0 20px 30px rgba(0, 0, 0, .5); }
  .nav.open ul { display: flex; }
  .nav ul a { display: block; padding: 16px 4px; font-size: .95rem; opacity: 1; border-bottom: 1px solid var(--line); }
  .nav ul li:last-child a { border-bottom: 0; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100svh, 980px); display: grid; place-items: end center; overflow: hidden; isolation: isolate; }
.hero .bg { position: absolute; inset: 0; z-index: -2; background: url("assets/art/bellweather.webp") center 16% / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(10, 15, 34, .25), rgba(10, 15, 34, .1) 30%, rgba(10, 15, 34, .78) 68%, var(--ink) 97%); }
.hero .inner { text-align: center; padding: 84px 0 48px; display: grid; justify-items: center; gap: 14px; }
.hero .logo { width: auto; max-width: min(520px, 88vw); max-height: 36svh; height: auto; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .6)); }
.hero h1 { font: italic 400 clamp(1.7rem, 4.4vw, 2.8rem)/1.15 var(--lore); color: #fff; text-shadow: 0 2px 18px #000; }
.hero .sub { max-width: 34em; color: #dcdaf0; text-shadow: 0 1px 10px #000; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; margin-top: 8px; }
.btn { font: 400 1.15rem/1 var(--display); letter-spacing: .03em; color: #2a1600; background: linear-gradient(#ffe88a, var(--gold) 50%, var(--gold-2)); border: 0; border-radius: 14px; padding: 15px 24px; cursor: pointer; box-shadow: 0 4px 0 #9a5a08, 0 10px 24px rgba(0, 0, 0, .45); text-decoration: none; display: inline-flex; gap: 10px; align-items: center; transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #9a5a08, 0 14px 28px rgba(0, 0, 0, .5); }
.btn[hidden] { display: none; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #9a5a08; }
.platforms { display: flex; gap: 8px; align-items: center; font: 800 .78rem/1 var(--label); letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.platforms span { padding: 10px 14px; border-radius: 10px; background: rgba(10, 15, 34, .7); border: 1.5px solid rgba(255, 255, 255, .28); }
.platforms b { color: var(--gold); font-weight: 800; margin-right: 4px; }

/* ---------- sections ---------- */
section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.head { max-width: 40em; margin-bottom: 44px; }
.head p { color: var(--muted); margin-top: 16px; font-size: 1.08rem; }

/* story: ink on paper */
.story { background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .15 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); color: var(--graphite); --el: #6a3fd6; }
.story::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 60px; background: linear-gradient(var(--ink), transparent); opacity: .5; }
.story .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.story h2 { color: #1b1838; }
.story h2 em { font-style: normal; color: #6a3fd6; }
.story .body { font-size: 1.12rem; line-height: 1.6; margin-top: 18px; max-width: 30em; color: #3a3552; }

.page { background: #fbf6e8; border-radius: 6px 18px 18px 6px; padding: 26px 26px 22px; box-shadow: 0 1px 0 #cdbf9c, 0 24px 50px rgba(60, 40, 10, .28), inset 14px 0 18px -12px rgba(90, 60, 20, .35); text-align: center; position: relative; }
.page .tag { font: 800 .72rem/1 var(--label); letter-spacing: .2em; text-transform: uppercase; color: #8a7a55; }
.recall { position: relative; width: min(280px, 78%); aspect-ratio: 1; margin: 14px auto 6px; overflow: hidden; border-radius: 12px; }
.recall img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.recall .pale { filter: grayscale(1) contrast(.42) brightness(1.55); opacity: .5; }
.recall .full { opacity: var(--wash, 0); }
.recall.jolt .pale, .recall.jolt .full { animation: jolt .14s ease-out; }
@keyframes jolt { 50% { transform: scale(1.035); } }
.splat { position: absolute; background: #f0591f; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; opacity: .85; pointer-events: none; animation: splat-in .2s cubic-bezier(.2, 1.5, .5, 1) both, splat-out .9s linear .34s forwards; }
@keyframes splat-in { from { scale: 0; } to { scale: 1; } }
@keyframes splat-out { to { opacity: 0; } }
.page.done .recall { animation: pop .4s ease-out; }
@keyframes pop { 50% { transform: scale(1.1); } }
.token { position: relative; width: 62px; height: 62px; margin: 0 auto 10px; }
.token img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.token .empty { filter: brightness(0); opacity: .3; }
.token .ink { clip-path: inset(calc(var(--poured, 0) * 100%) 0 0 0); }
.page.pouring .token { animation: tremble .28s linear infinite; }
@keyframes tremble { 50% { transform: scale(1.05); } }
.page.done .token { visibility: hidden; }
.page .name { font: 400 1.9rem/1.1 var(--display); color: #c9bfa3; min-height: 1.1em; transition: color .5s; }
.page.done .name { color: #d2491c; }
.page .memory { font: italic 1.2rem/1.4 var(--lore); color: #5b5270; min-height: 2.8em; margin: 6px auto 10px; max-width: 22em; }
.pour { font: 400 1.05rem/1 var(--display); letter-spacing: .04em; color: #fff; background: linear-gradient(#ff8a55, #e04a1c); border: 0; border-radius: 12px; padding: 15px 22px; cursor: pointer; box-shadow: 0 4px 0 #8f2a0b; touch-action: none; user-select: none; -webkit-user-select: none; }
.pour:active { transform: translateY(3px); box-shadow: 0 1px 0 #8f2a0b; }

/* battle */
.battle { background: radial-gradient(900px 500px at 80% 10%, rgba(255, 107, 61, .16), transparent 70%), var(--ink); --el: var(--fire); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.phones { display: flex; justify-content: center; gap: 0; }
.phone { width: min(270px, 44vw); aspect-ratio: 1080 / 2340; border-radius: 30px; overflow: hidden; border: 5px solid #0d1228; outline: 1.5px solid #3b4684; box-shadow: 0 30px 60px rgba(0, 0, 0, .6); background: #000; flex: none; }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phones .phone:nth-child(1) { transform: rotate(-4deg) translateY(10px); z-index: 1; }
.phones .phone:nth-child(2) { transform: rotate(4deg) translate(-26px, -14px); }
.rules { display: grid; gap: 12px; padding: 0; margin: 0; }
.rules li { list-style: none; padding: 16px 20px; border-radius: 16px; background: var(--ink-2); border: 1.5px solid var(--line); border-left: 5px solid var(--c, var(--gold)); }
.rules h3 { margin-bottom: 4px; }
.rules p { color: var(--muted); }

/* roster */
.roster { background: linear-gradient(var(--ink), var(--ink-2)); }
.roster .panel { transition: --el .3s; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.tab { display: inline-flex; align-items: center; gap: 8px; font: 400 1.05rem/1 var(--display); letter-spacing: .03em; color: var(--text); background: var(--ink-2); border: 2px solid var(--line); border-radius: 999px; padding: 7px 18px 7px 8px; cursor: pointer; }
.tab img { width: 32px; height: 32px; object-fit: contain; }
.tab[aria-selected="true"] { background: var(--c); border-color: var(--c); color: #10122a; }
.lines { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.linecard { flex: 0 1 calc((100% - 36px) / 3); }
.linecard { background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--el) 26%, transparent), transparent 72%), var(--ink-3); border: 1.5px solid color-mix(in srgb, var(--el) 45%, var(--line)); border-radius: 20px; padding: 16px 12px 14px; text-align: center; }
.forms { display: flex; align-items: flex-end; justify-content: center; aspect-ratio: 5 / 2.4; padding: 0 4%; }
.forms img { height: auto; min-width: 0; }
.forms img.flip { transform: scaleX(-1); }
.forms .known { filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .45)); }
.forms .shadow { filter: drop-shadow(0 0 1px var(--el)) drop-shadow(0 0 7px color-mix(in srgb, var(--el) 45%, transparent)); opacity: .9; }
.linecard h3 { margin-top: 12px; font-size: 1.25rem; color: var(--el); }
.linecard .home { font: 800 .66rem/1.3 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.shadownote { margin-top: 22px; color: var(--muted); font: italic 1.1rem/1.4 var(--lore); }

/* world */
.world { background: #101a2e; --el: var(--nature); overflow: hidden; }
.world .split { grid-template-columns: .9fr 1.1fr; }
.map { border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); transform: rotate(-2deg); border: 8px solid #f4ecd9; }
.strip { display: flex; gap: 16px; margin-top: 30px; }
.strip .phone { width: 100%; flex: 1; border-radius: 20px; border-width: 4px; }
.strip .phone { aspect-ratio: 1080 / 2030; }
.strip .phone img { object-position: bottom; }
.strip figure { margin: 0; flex: 1; min-width: 0; }
.strip figcaption { font: 800 .72rem/1.3 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; margin-top: 10px; }

/* rivals */
.rivals { background: radial-gradient(800px 500px at 15% 20%, rgba(63, 167, 255, .16), transparent 70%), var(--ink); --el: var(--water); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.feature { background: var(--ink-2); border: 1.5px solid var(--line); border-radius: 24px; padding: 26px; display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; }
.feature .phone { width: 150px; border-radius: 18px; border-width: 3px; }
.feature p { color: var(--muted); margin-top: 8px; }
.note { margin-top: 26px; color: var(--muted); font-size: .95rem; }

/* end card */
.end { text-align: center; background: linear-gradient(rgba(10, 15, 34, .55), var(--ink) 92%), url("assets/art/blankhill.webp") center / cover; padding-bottom: 90px; }
.end img { width: min(420px, 80vw); margin: 0 auto 10px; }
.end h2 { font-size: clamp(2rem, 6vw, 4rem); }
.end p { color: #dcdaf0; margin: 14px auto 26px; max-width: 30em; }
.end .platforms { justify-content: center; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: 14px; font: 800 .78rem/1 var(--label); letter-spacing: .16em; text-transform: uppercase; }
.socials b { color: var(--gold); font-weight: 800; margin-right: 4px; }
.socials a { color: #fff; text-decoration: none; padding: 13px 14px; border-radius: 10px; background: rgba(10, 15, 34, .7); border: 1.5px solid rgba(255, 255, 255, .28); transition: color .15s, border-color .15s; }
.socials a:hover, .socials a:focus-visible { color: var(--gold); border-color: var(--gold); }

footer { border-top: 1.5px solid var(--line); background: #070b1a; padding: 34px 0 44px; font-size: .92rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 0 22px; margin-left: auto; }
footer a { color: var(--text); text-decoration: none; display: inline-block; padding: 10px 0; }
footer a:hover { color: var(--gold); text-decoration: underline; }
footer .follow { display: flex; flex-wrap: wrap; gap: 0 18px; }

/* requirements */
.reqs { background: var(--ink-2); }
.req h3 { color: var(--gold); margin-bottom: 10px; }
.req ul { margin: 0; padding-left: 20px; color: #d5d8ee; }
.req li { margin: 5px 0; }
.legal-row { display: flex; flex-wrap: wrap; gap: 0 26px; margin-top: 16px; font: 800 .8rem/1 var(--label); letter-spacing: .12em; text-transform: uppercase; }
.legal-row a { color: var(--text); display: inline-block; padding: 12px 0; }
.legal-row a:hover { color: var(--gold); }

/* analytics consent */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30; max-width: 720px; margin-inline: auto; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: space-between; padding: 16px 18px; border-radius: 16px; background: #111836; border: 1.5px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .6); font-size: .95rem; color: #d5d8ee; }
.consent p { flex: 1 1 280px; }
.consent div { display: flex; gap: 10px; }
.consent button { font: 400 1rem/1 var(--display); letter-spacing: .03em; min-height: 46px; padding: 0 20px; border-radius: 12px; cursor: pointer; color: var(--text); background: transparent; border: 1.5px solid rgba(255, 255, 255, .35); }
.consent button.yes { color: #2a1600; background: linear-gradient(#ffe88a, var(--gold) 50%, var(--gold-2)); border-color: transparent; }
@media (max-width: 520px) { .consent div { width: 100%; } .consent button { flex: 1; } }

/* reveal */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .7s; }
.rv.in { opacity: 1; transform: none; }

/* legal + support pages */
.doc { padding: 120px 0 80px; }
.doc .wrap { width: min(760px, 100% - 40px); }
.doc h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.6rem; margin: 40px 0 10px; color: var(--gold); }
.doc p, .doc li { color: #d5d8ee; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .updated { color: var(--muted); font-size: .92rem; }
.doc .draft { margin: 22px 0; padding: 14px 18px; border-radius: 12px; border: 1.5px dashed var(--violet); color: #d9c9ff; font-size: .95rem; }
.doc table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: .95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { font: 800 .74rem/1.2 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card { background: var(--ink-2); border: 1.5px solid var(--line); border-radius: 18px; padding: 22px; margin-top: 18px; }
.card h2 { margin-top: 0; }

@media (max-width: 860px) {
  body { font-size: 16px; }
  .phones { padding-bottom: 20px; }
  .linecard { padding: 14px 10px 12px; border-radius: 16px; }
  .linecard h3 { font-size: 1.1rem; }
  .world .map { max-width: 92%; margin-inline: auto; }
  .strip { gap: 10px; }
  .doc { padding-top: 96px; }
  .doc th, .doc td { padding: 10px 8px; }
  .story .grid, .split, .world .split, .duo { grid-template-columns: 1fr; }
  .battle .phones { order: 2; margin-top: 10px; }
  .feature { grid-template-columns: 110px 1fr; padding: 18px; gap: 16px; }
  .feature .phone { width: 110px; }
  .lines { gap: 12px; }
  .linecard { flex-basis: calc((100% - 12px) / 2); }
  footer nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .page.done .recall, .splat, .page.pouring .token { animation: none; }
  .btn { transition: none; }
}
@media (max-width: 520px) { .linecard { flex-basis: 100%; } .forms { aspect-ratio: 5 / 2.2; } }
