/* Pressure Flux site — Sticker Paper & Ink edition.
   Matches the game's Sticker skin and ChromeTheme.swift: warm printed halftone paper
   strata (#fff7e8, #f2eefc, #fffcf5), deep comic ink (#2b2340), crisp white die-cut
   borders, tactile offset ink shadows, and Sticker Violet (#6a43c6) primary actions.
   Fonts are the ones the game ships (Fredoka & Nunito). No external or data: URLs (CSP). */

@font-face { font-family: "Fredoka"; src: url("../fonts/fredoka_semibold.woff2") format("woff2"), url("../fonts/fredoka_semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito_regular.woff2") format("woff2"), url("../fonts/nunito_regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito_bold.woff2") format("woff2"), url("../fonts/nunito_bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --paper: #fff7e8;          /* Service Shaft warm cream paper */
  --paper-2: #f2eefc;        /* Crystal Seam soft lavender paper */
  --paper-3: #ede8f6;        /* Foundry mist paper */
  --paper-peach: #ffefe2;    /* Magma Core warm peach paper */
  --card: #fffcf5;           /* ChromeTheme.panel ivory card */
  --ink: #2b2340;            /* ChromeTheme.ink deep comic plum */
  --ink-deep: #1b1530;
  --text: #2b2340;
  --muted: #584c73;
  --faint: #786c92;
  --line: rgba(43, 35, 64, 0.16);
  --panel: #fffcf5;
  --panel-edge: rgba(43, 35, 64, 0.22);
  --primary: #6a43c6;        /* ChromeTheme.primaryFill */
  --primary-light: #7f58dc;
  --primary-deep: #5330a8;
  --gold: #f6c445;           /* ChromeTheme.rewardFill */
  --gold-light: #ffe07d;
  --cyan: #1cb5eb;           --cyan-core: #7be4ff;
  --magenta: #df46c8;        --magenta-core: #f79be8;
  --lime: #2ec253;           --lime-core: #86efac;
  --amber: #f59e0b;          --amber-core: #fde68a;
  --teal: #18b294;
  --danger: #d93848;         /* ChromeTheme.coral */
  --radius: 20px;
  --max: 1120px;
  --display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, sans-serif;
  --dots: radial-gradient(circle, rgba(43, 35, 64, 0.055) 1.25px, transparent 1.35px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-image:
    var(--dots),
    radial-gradient(900px 600px at 85% -5%, rgba(223, 70, 200, 0.09), transparent 65%),
    radial-gradient(800px 600px at 10% 20%, rgba(28, 181, 235, 0.10), transparent 65%);
  background-size: 16px 16px, auto, auto;
  background-color: var(--paper);
  color: var(--text);
  font: 400 17px/1.62 var(--body);
  overflow-x: hidden;
}

main { flex: 1; width: 100%; }

a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1.5px; font-weight: 700; }
a:hover { color: var(--ink-deep); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: 0.005em; color: var(--ink); }
.eyebrow {
  display: inline-block;
  padding: 5px 12px;
  font: 700 0.76rem/1 var(--body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 2px 0 var(--ink);
}

/* ---------- header (subpages: press, support, privacy, terms, 404) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 247, 232, 0.90);
  border-bottom: 2.5px solid var(--ink);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand {
  white-space: nowrap; display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font: 600 1.15rem/1 var(--display); letter-spacing: 0.04em;
}
.brand:hover { color: var(--primary); }
.brand img {
  width: 36px; height: 36px; border-radius: 10px;
  border: 2px solid var(--ink);
  box-shadow: 0 0 0 2px #fff, 0 2px 0 var(--ink);
}
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .cta {
  white-space: nowrap; color: #fff;
  background: linear-gradient(180deg, var(--primary-light), var(--primary));
  padding: 9px 16px; border-radius: 999px;
  border: 2px solid var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 3px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
}
.nav .cta:hover { color: #fff; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 4px 0 var(--ink); }
.nav .cta:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }
@media (max-width: 640px) { .nav a:not(.cta) { display: none; } .nav .cta { font-size: 0.88rem; padding: 8px 13px; } .brand { font-size: 1rem; } }

.btn {
  font: 600 1.05rem/1 var(--display); letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%);
  border: 2.5px solid var(--ink); border-radius: 14px;
  padding: 0 22px; min-height: 48px; cursor: pointer;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.32), 0 4px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4), 0 6px 0 var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.btn[disabled], .btn[aria-disabled="true"], .nav .cta[aria-disabled="true"] { opacity: 0.55; cursor: default; pointer-events: none; }

/* ---------- Wordmark: Sticker die-cut logo (FuzeLogoArt.stickerImage) ---------- */
.wordmark {
  color: var(--ink);
  line-height: 1;
  margin: 0 0 22px;
  font-weight: 600;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  /* Die-cut white sticker border with crisp outer comic ink rim + soft lift shadow */
  filter:
    drop-shadow(0 2px 0 var(--ink))
    drop-shadow(0 -2px 0 var(--ink))
    drop-shadow(2px 0 0 var(--ink))
    drop-shadow(-2px 0 0 var(--ink))
    drop-shadow(1.5px 1.5px 0 var(--ink))
    drop-shadow(-1.5px 1.5px 0 var(--ink))
    drop-shadow(1.5px -1.5px 0 var(--ink))
    drop-shadow(-1.5px -1.5px 0 var(--ink))
    drop-shadow(0 5px 0 rgba(43, 35, 64, 0.22));
}
.wm-over {
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  letter-spacing: 0.32em;
  margin-right: -0.32em;
  margin-bottom: 0.14em;
  -webkit-text-stroke: 6px #fff;
  paint-order: stroke fill;
}
.wm-word {
  font-size: clamp(4.6rem, 12vw, 7.4rem);
  letter-spacing: 0.06em;
  margin-right: -0.06em;
  display: flex;
  -webkit-text-stroke: 12px #fff;
  paint-order: stroke fill;
}
.wm-l, .wm-u { position: relative; display: inline-block; }
.wm-crack { position: absolute; left: 4%; top: 10%; width: 52%; height: 82%; overflow: visible; }
.wm-crack polyline { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linejoin: miter; vector-effect: non-scaling-stroke; }
.wm-cell {
  position: absolute; left: 50%; top: 50%;
  width: 0.29em; height: 0.29em; margin: -0.1em 0 0 -0.175em;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #fff 0%, var(--cyan-core) 26%, var(--cyan) 62%, #0c85b8 100%);
  border: 0.032em solid var(--ink);
  box-shadow: 0 0 0 0.03em #fff;
  animation: breathe 1.8s ease-in-out infinite alternate;
}
@keyframes breathe { from { transform: scale(0.95); } to { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .wm-cell { animation: none; } }

/* ---------- Social links & icons ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.socials[hidden] { display: none; }
.socials a {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.9rem; color: var(--ink); text-decoration: none;
  padding: 7px 14px; border-radius: 999px;
  background: var(--card); border: 2px solid var(--ink);
  box-shadow: 0 2px 0 var(--ink);
}
.socials a:hover { color: var(--primary); transform: translateY(-1px); box-shadow: 0 3px 0 var(--ink); }
.social-icon { width: 1.25em; height: 1.25em; flex: none; overflow: visible; }
.social-icon .cyan { fill: var(--cyan); transform: translate(-1.3px, -1.3px); }
.social-icon .magenta { fill: var(--magenta); transform: translate(1.3px, 1.3px); }
.social-icon .face { fill: var(--ink); }

/* ---------- sections ---------- */
section { padding: 56px 0; }
@media (min-width: 900px) { section { padding: 80px 0; } }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.8rem, 4.2vw, 2.6rem); margin-top: 10px; }
.section-head p { color: var(--muted); margin: 12px 0 0; }

/* ---------- prose pages (privacy, terms, support, press, 404) ---------- */
.prose { max-width: 740px; margin: 0 auto; padding: 48px 16px 80px; }
.prose.not-found { text-align: center; padding-top: 96px; padding-bottom: 120px; }
.prose h1 { font-size: clamp(2.1rem, 5vw, 2.9rem); margin: 14px 0 8px; }
.prose .meta { color: var(--muted); margin: 0 0 28px; font-weight: 700; }
.prose h2 { font-size: 1.4rem; margin: 40px 0 12px; padding-top: 24px; border-top: 2px solid var(--line); }
.prose h3 { font-size: 1.12rem; margin: 26px 0 6px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); }
.prose a { overflow-wrap: anywhere; }

/* Home page: indexable game overview in text (docs/SITE.md) */
.prose.about { width: 100%; padding-top: 24px; border-top: 2px solid var(--line); }
.prose.about h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-top: 14px; padding-top: 0; border-top: 0; }
.prose.about h3 { font-size: 1.18rem; margin-top: 30px; }

/* Sticker PaperCard boxes on prose pages */
.prose .summary,
.contact-card {
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
  box-shadow: inset 0 0 0 3px #fff, 0 4px 0 var(--ink), 0 10px 24px rgba(43, 35, 64, 0.08);
}
.prose .summary > :last-child { margin-bottom: 0; }
.contact-card { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.contact-card p { margin: 0; }

.label {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(106, 67, 198, 0.10);
  border: 1.5px solid rgba(43, 35, 64, 0.22);
  color: var(--ink);
  font-variant-caps: all-small-caps;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 0.96rem; background: var(--card); border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; box-shadow: 0 3px 0 var(--ink); }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1.5px solid var(--line); vertical-align: top; color: var(--muted); }
.prose tr:last-child th, .prose tr:last-child td { border-bottom: 0; }
.prose th { color: var(--ink); font-weight: 700; width: 34%; background: rgba(43, 35, 64, 0.035); }

.prose .shot { margin: 18px 0 6px; }
.prose .shot img {
  display: block; width: 100%; height: auto;
  border-radius: 16px;
  border: 2.5px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink), 0 12px 24px rgba(43, 35, 64, 0.12);
}
.prose .shot figcaption { color: var(--faint); font-size: 0.9rem; margin-top: 10px; font-weight: 700; }

details {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 10px;
  box-shadow: 0 3px 0 var(--ink);
}
details summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--primary); font: 600 1.35rem/1 var(--display); }
details[open] summary::after { content: "–"; }
details > :not(summary) { margin-top: 12px; color: var(--muted); }

/* Press kit asset grid */
.press-zip { margin: 16px 0 22px; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 16px; margin: 18px 0 28px; }
.asset-grid a.wide { grid-column: span 2; }
.asset-grid a {
  display: block; text-decoration: none; color: var(--ink); font-size: 0.88rem; font-weight: 700;
  background: var(--card); padding: 8px 8px 10px; border-radius: 18px;
  border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink);
  transition: transform 0.14s, box-shadow 0.14s;
}
.asset-grid a:hover { color: var(--primary); transform: translateY(-3px); box-shadow: 0 6px 0 var(--ink); }
.asset-grid img { width: 100%; border-radius: 11px; border: 1.5px solid var(--line); display: block; margin-bottom: 8px; background: var(--paper); }
@media (max-width: 420px) { .asset-grid a.wide { grid-column: span 1; } }

/* ---------- footer ---------- */
.site-footer {
  border-top: 2.5px solid var(--ink);
  background: var(--card);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--primary); text-decoration: underline; }
.site-footer p { margin: 0; }
