/* mushedapps.com: one stylesheet for the whole site, matching CRACK'D's own look (night-blue scenes, cream paper
   cards with a thin navy outline and soft shadow, glossy pill buttons). No external requests: fonts live in /fonts. */

@font-face { font-family: "Titan One"; src: url("/fonts/TitanOne.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Lilita One"; src: url("/fonts/LilitaOne.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* CRACK'D palette, from the game */
  --navy: #202b52;
  --ink: #1b2346;
  --periwinkle: #6e7dd8;
  --deep: #26306a;
  --cream: #f1e4cf;
  --paper: #fbf5ea;
  --coral: #ec8066;
  --butter: #f3c24f;
  --lavender: #9a8bd8;
  --mint: #bfd9c2;
  --brass: #c9a15a;

  --text: #2a3360;
  --muted: #5b6386;
  --line: 1.5px solid rgba(32, 43, 82, 0.28);
  --shadow: 0 14px 34px rgba(27, 35, 70, 0.16), 0 2px 6px rgba(27, 35, 70, 0.08);
  --radius: 22px;

  --display: "Titan One", "Arial Rounded MT Bold", "Arial Black", system-ui, sans-serif;
  --caps: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--coral); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; border-radius: 12px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.gap-top { margin-top: 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- type ---------- */
h1, h2, h3 { color: var(--ink); line-height: 1.12; margin: 0 0 14px; font-weight: 400; }
h1 { font-family: var(--display); font-size: clamp(38px, 7vw, 68px); }
h2 { font-family: var(--display); font-size: clamp(28px, 4.6vw, 42px); }
h3 { font-family: var(--display); font-size: 22px; }
.eyebrow { font-family: var(--caps); text-transform: uppercase; letter-spacing: 2px; font-size: 15px; color: var(--coral); margin: 0 0 8px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); max-width: 640px; }
.muted { color: var(--muted); }

/* ---------- header ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 5; padding: 16px 0; }
.site-header.solid { position: static; background: var(--ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wordmark { display: block; padding: 4px 0; }
.wordmark img { display: block; height: 56px; width: auto; margin: -6px 0; }
.nav { display: flex; gap: 8px; flex-wrap: wrap; }
.nav a {
  font-family: var(--display); font-size: 15px; letter-spacing: 0.5px; color: #f6f7fb; text-decoration: none;
  padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px;
  background: linear-gradient(180deg, #3d4a9e, #293070); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 12px rgba(16, 20, 50, 0.35);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--butter); }

/* ---------- buttons: glossy pills; only the page's main action is orange ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 28px;
  border-radius: 999px; font-family: var(--display); font-size: 18px; letter-spacing: 0.5px; text-decoration: none;
  color: #f6f7fb; background: linear-gradient(180deg, #3d4a9e, #293070);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.28), inset 0 -3px 0 rgba(0, 0, 0, 0.18), 0 8px 20px rgba(27, 35, 70, 0.3);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.btn:hover { color: #f6f7fb; transform: translateY(-2px); filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn-main { color: #1f0d00; background: linear-gradient(180deg, #ffbd59, #ff6b35); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), inset 0 -3px 0 rgba(120, 40, 0, 0.18), 0 10px 26px rgba(255, 107, 53, 0.4); }
.btn-main:hover { color: #1f0d00; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.pill {
  display: inline-block; font-family: var(--caps); letter-spacing: 1px; text-transform: uppercase; font-size: 14px;
  padding: 7px 16px; border-radius: 999px; color: var(--ink); background: var(--butter);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 12px rgba(27, 35, 70, 0.2);
}

/* ---------- cards ---------- */
.card { background: var(--paper); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.card.cream { background: var(--cream); }

/* ---------- night hero: a scene from the game behind the words ---------- */
.night {
  position: relative; color: var(--paper); background-color: var(--deep); background-size: cover; background-position: center 30%;
  padding: 120px 0 72px; overflow: hidden;
}
.night::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 35, 70, 0.25), rgba(27, 35, 70, 0.55) 70%, rgba(27, 35, 70, 0.85)); }
.night > * { position: relative; }
.night h1, .night h2 { color: var(--paper); text-shadow: 0 3px 18px rgba(16, 20, 50, 0.45); }
.night .lead { color: rgba(251, 245, 234, 0.92); }
.scene-home { background-image: url("/assets/crackd/scenes/home.jpg"); }
.scene-lit { background-image: url("/assets/crackd/scenes/home_lit.jpg"); }

/* ---------- phone screenshots ---------- */
.phone { border-radius: 28px; overflow: hidden; border: 4px solid var(--ink); box-shadow: 0 18px 40px rgba(16, 20, 50, 0.35); background: var(--ink); }
.phone img { width: 100%; height: auto; }

/* ---------- contact card (the 404 and inner pages) ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.contact p { margin: 0; }
.email { font-weight: 800; font-size: 18px; word-break: break-all; }

/* ---------- CRACK'D page ---------- */
.game-hero { text-align: center; padding: 110px 0 64px; }
/* no extra shadow: the logo render has its own */
.game-hero .logo { width: min(620px, 92%); margin: 0 auto 8px; }
.game-hero .lead { margin: 0 auto 22px; }
.game-hero .actions { justify-content: center; margin-top: 22px; }
.game-hero .specs { margin: 18px auto 0; font-size: 15px; color: rgba(251, 245, 234, 0.85); }

.steps { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { text-align: center; }
.step .phone { max-width: 250px; margin: 0 auto 18px; }
.step .num { font-family: var(--display); display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--butter); color: var(--ink); margin-bottom: 8px; }

.gallery { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 22px; -webkit-overflow-scrolling: touch; }
.gallery .phone { flex: 0 0 min(230px, 62vw); scroll-snap-align: center; }
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-thumb { background: rgba(32, 43, 82, 0.25); border-radius: 8px; }

.icon-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 22px 0 0; padding: 0; list-style: none; }
.icon-row li { width: 120px; text-align: center; font-size: 14px; color: var(--muted); }
/* the renders' own floor shadows were stripped (dev/clean-alpha.ps1); this is a light, even one instead */
.icon-row img { width: 110px; height: 110px; object-fit: contain; margin: 0 auto 4px; filter: drop-shadow(0 4px 6px rgba(27, 35, 70, 0.12)); }
.icon-row.gear li { width: 112px; }
.icon-row.gear img { width: 108px; height: 108px; }
@media (max-width: 520px) { .icon-row li, .icon-row.gear li { width: 92px; } .icon-row img, .icon-row.gear img { width: 84px; height: 84px; } }

.two-up { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 820px) { .two-up { grid-template-columns: 1fr 1fr; } }

.specs-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.specs-list li { display: flex; gap: 10px; align-items: baseline; }
.specs-list li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); flex: 0 0 auto; transform: translateY(-1px); }

.support .card { max-width: 760px; margin: 0 auto; }
.support p { margin: 0 0 12px; }

/* ---------- privacy policy ---------- */
.doc { max-width: 760px; margin: 0 auto; }
.doc h1 { font-size: clamp(32px, 6vw, 46px); }
.doc h2 { font-family: var(--body); font-weight: 800; font-size: 21px; margin-top: 30px; }
.doc ul { padding-left: 22px; }
.doc .effective { color: var(--muted); margin-top: -6px; }
.doc .summary { background: var(--cream); border: var(--line); border-radius: 16px; padding: 16px 20px; }

/* ---------- 404 ---------- */
.lost { text-align: center; padding: 140px 0 80px; min-height: 100vh; }
.lost img { width: 150px; margin: 0 auto 18px; filter: drop-shadow(0 10px 20px rgba(16, 20, 50, 0.4)); }
.center-block { margin-left: auto; margin-right: auto; }

/* ---------- footer ---------- */
.site-footer { padding: 30px 0 40px; font-size: 15px; color: rgba(251, 245, 234, 0.75); background: var(--ink); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer a { color: rgba(251, 245, 234, 0.85); }
.site-footer a:hover { color: var(--butter); }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
