/* PhoneBlasters.com — the only stylesheet. System fonts, no webfonts. */
:root {
  --bg: #07040f;
  --band: #0e0820;
  --card: #150e2a;
  --ink: #f4f2ff;
  --ink-dim: #c9c3e8;
  --muted: #9a93c2;
  --red: #ff2a4a;
  --red-ink: #ff6b80;
  --blue: #2b8cff;
  --blue-ink: #6cb2ff;
  --uv: #8a3cff;
  --uv-ink: #c7a8ff;
  --line: #2c2050;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  --r: 16px;
  --input: #0f0c22;
  --ok: #6dffb0;
  --top-bg: #07040fee;
  color-scheme: dark;
}
/* light mode */
[data-theme=light] {
  --bg: #f6f3fb; --band: #ece6f6; --card: #ffffff;
  --ink: #16121f; --ink-dim: #3d3550; --muted: #5f5775;
  --red: #e0213f; --red-ink: #c81d38; --blue: #1f6fd6; --blue-ink: #1a5fb8;
  --uv: #7a2ff0; --uv-ink: #6324c9; --line: #d9d0e8;
  --input: #f8f6fc; --ok: #0a7a45; --top-bg: #f6f3fbee;
  color-scheme: light;
}
/* hero tokens (dark); light mode below swaps them for a daytime room */
.hero { --bg: #07040f; --ink: #f4f2ff; --ink-dim: #c9c3e8; --muted: #9a93c2; --red-ink: #ff6b80; --line: #2c2050; --uv-ink: #c7a8ff; color: var(--ink); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--uv-ink); }
img { max-width: 100%; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red-ink); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red-ink); outline-offset: 3px; }

/* header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 10px clamp(12px, 4vw, 40px); background: linear-gradient(var(--top-bg), transparent); }
.brand { display: block; line-height: 0; }
.brand img { width: clamp(170px, 22vw, 260px); height: auto; }
.top nav { display: flex; gap: clamp(10px, 2.5vw, 26px); align-items: center; }
.top nav a:not(.btn) { color: var(--ink-dim); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 560px) { .top nav a:not(.btn) { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  font: 800 17px/1 var(--sans); color: #fff; text-decoration: none; padding: 15px 24px; border-radius: 999px;
  background: var(--red); box-shadow: 0 0 0 1px #ff6b80 inset, 0 0 18px #ff2a4a99, 0 0 42px #ff2a4a44;
  transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #ffb3bf inset, 0 0 24px #ff2a4acc, 0 0 60px #ff2a4a66; }
.btn-sm { padding: 10px 16px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--red-ink), 0 0 18px #ff2a4a55; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* hero + 3D scene */
.hero { background: #07040f; position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.scene { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 30%, #1e1240, var(--bg) 70%); }
.scene canvas { display: block; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity .8s ease; }
.scene.ready canvas { opacity: 1; }
.scene::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, #07040fcc 0%, #07040f55 38%, #07040f00 60%), linear-gradient(#07040f00 70%, var(--bg)); }
.scene-msg { position: absolute; top: 45%; width: 100%; text-align: center; color: var(--muted); }
.scene-fallback { display: none; }
.scene.no-webgl .scene-fallback { display: block; }
.hero-copy { padding: 120px clamp(16px, 5vw, 64px) clamp(90px, 14vh, 150px); max-width: 640px; pointer-events: none; }
.hero-copy a { pointer-events: auto; }
.eyebrow { font: 600 13px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--uv-ink); margin: 0 0 14px; }
h1 { font-size: clamp(40px, 7vw, 80px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 18px; text-shadow: 0 4px 30px #000a; }
@font-face { font-family: "PB Blaster"; src: url("/css/blaster.woff2") format("woff2"); font-weight: 900; font-style: italic; font-display: swap; }
/* "blaster" in the headline matches the logo: Montserrat Black Italic, laser red, with motion trails */
.hl { font-family: "PB Blaster", var(--sans); font-style: italic; font-weight: 900; letter-spacing: -0.01em; font-size: 0.94em;
  color: #ff2a4a; display: inline-block; transform: skewX(-6deg); white-space: nowrap; margin-right: -0.04em;
  text-shadow: -0.07em 0 0 rgba(255,42,74,.42), -0.15em 0 0 rgba(255,42,74,.18), 0 0 22px rgba(255,42,74,.45);
  animation: trail 2.4s ease-in-out infinite; }
@keyframes trail {
  0%, 100% { text-shadow: -0.07em 0 0 rgba(255,42,74,.42), -0.15em 0 0 rgba(255,42,74,.18), 0 0 22px rgba(255,42,74,.45); }
  50% { text-shadow: -0.11em 0 0 rgba(255,42,74,.36), -0.24em 0 0 rgba(255,42,74,.12), 0 0 30px rgba(255,42,74,.6); } }
@media (prefers-reduced-motion: reduce) { .hl { animation: none; } }
/* a laser beam cuts through the word */
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-dim); margin: 0 0 26px; max-width: 34em; text-shadow: 0 2px 16px #000c; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hud-wrap { position: absolute; right: clamp(16px, 4vw, 40px); bottom: clamp(24px, 5vh, 44px); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.modes { display: flex; background: #07040fcc; border: 1px solid var(--line); border-radius: 999px; padding: 4px; backdrop-filter: blur(6px); }
.modes button { font: 700 14px/1 var(--sans); color: var(--ink-dim); background: none; border: 0; padding: 9px 14px; border-radius: 999px; cursor: pointer; }
.modes button[aria-pressed=true] { background: var(--red); color: #fff; box-shadow: 0 0 14px #ff2a4a88; }
.hud { display: flex; gap: 12px; align-items: center;
  font: 700 15px/1 var(--mono); background: #07040fcc; border: 1px solid var(--line); padding: 10px 16px; border-radius: 999px; backdrop-filter: blur(6px); }
.hud .hud-solo { display: none; color: #fff; }
.hud[data-mode=solo] .hud-team { display: none; }
.hud[data-mode=solo] .hud-solo { display: inline; }
.hud b { font-size: 20px; margin-left: 4px; }
.hud-red { color: var(--red-ink); } .hud-blue { color: var(--blue-ink); } .hud-vs { color: var(--muted); font-weight: 400; }
.drag-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; display: flex; align-items: center; gap: 8px;
  font: 600 13px var(--sans); color: var(--ink); background: #07040fcc; border: 1px solid var(--line); padding: 7px 14px 7px 7px; border-radius: 999px; white-space: nowrap; backdrop-filter: blur(6px); }
.drag-hint .d3 { font: 800 11px var(--mono); background: var(--red); color: #fff; border-radius: 999px; padding: 4px 8px; box-shadow: 0 0 12px #ff2a4a88; }
@media (pointer: coarse) { .drag-hint .dh-desk { display: none; } }
@media (max-width: 700px) { .drag-hint { top: calc(max(64svh, 380px) - 52px); bottom: auto; transform: translateX(-50%); white-space: nowrap; } }
@media (max-width: 700px) {
  .hero { display: block; min-height: 0; }
  .scene { position: relative; height: 64svh; min-height: 380px; }
  .scene::after { background: linear-gradient(#07040f00 70%, var(--bg)); }
  .hero-copy { padding: 14px 20px 56px; margin-top: 0; position: relative; }
  .hud-wrap { top: 64px; bottom: auto; right: 50%; transform: translateX(50%); align-items: center; }
  .hud { white-space: nowrap; }
}
.hud span { white-space: nowrap; }

/* bands */
.band { padding: clamp(64px, 10vw, 120px) 0; }
.band-alt { background: var(--band); border-block: 1px solid var(--line); }
.wrap { width: min(1120px, 100% - 2 * clamp(16px, 5vw, 48px)); margin: 0 auto; }
.narrow { width: min(720px, 100% - 32px); }
.num { font: 700 14px var(--mono); color: var(--red-ink); margin: 0 0 6px; letter-spacing: .1em; }
h2 { font-size: clamp(30px, 4.5vw, 46px); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 28px; }
h3 { font-size: 20px; margin: 0 0 8px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; position: relative; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; top: 18px; right: 22px; font: 800 44px/1 var(--mono); color: #ffffff10; }
.step-ico { font-size: 34px; display: block; margin-bottom: 10px; }
.steps p, .card p { color: var(--ink-dim); margin: 0; }
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; border-top: 3px solid var(--red); }
.card:nth-child(2n) { border-top-color: var(--blue); }
.card-ar, .card-uv { border-top-color: var(--uv) !important; }
.card-blue { border-top-color: var(--blue) !important; }
.card-solo { border-top-color: var(--red) !important; }
.card .btn { margin-top: 16px; }
.tags { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tag { margin: 0; display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.tag img { width: 80px; height: 80px; border-radius: 6px; box-shadow: 0 0 0 3px var(--red), 0 0 18px #ff2a4a66; image-rendering: pixelated; }
.tag figcaption { display: grid; gap: 2px; }
.tag figcaption span { color: var(--muted); font-size: 14px; }
.tag figcaption em { font-style: normal; font: 800 15px var(--mono); color: var(--red-ink); }
.fine { font-size: 14px; color: var(--muted); margin-top: 22px; }

/* form */
.form { display: grid; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 4vw, 34px); margin-top: 26px; }
.row2 { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.opt { color: var(--muted); font-weight: 400; }
input:not([type=radio]):not([type=checkbox]), select {
  font: 17px var(--sans); color: var(--ink); background: var(--input); border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; width: 100%; }
input:focus, select:focus { border-color: var(--uv-ink); outline: none; box-shadow: 0 0 0 3px #38f2ff33; }
input[aria-invalid=true] { border-color: var(--red); }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; background: var(--input); border: 1.5px solid var(--line); padding: 9px 14px; border-radius: 999px; cursor: pointer; }
.chip:has(input:checked) { border-color: var(--uv-ink); background: color-mix(in srgb, var(--uv) 18%, var(--input)); }
.chip input { accent-color: var(--uv-ink); margin: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.progress { height: 6px; background: var(--input); border-radius: 9px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--red); box-shadow: 0 0 10px var(--red); transition: width .4s ease; }
.form-msg { margin: 0; font-weight: 600; min-height: 1.6em; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--red-ink); }
.form.done .row2, .form.done fieldset, .form.done label, .form.done .btn { display: none; }

/* footer */
.foot { padding: 48px 0 60px; border-top: 1px solid var(--line); text-align: center; }
.foot p { margin: 8px 0; color: var(--ink-dim); }

/* plain pages */
.page { padding: 120px 0 80px; }
.page h1 { font-size: clamp(34px, 5vw, 54px); }
.page h2 { font-size: 26px; margin: 40px 0 12px; }
.page p, .page li { color: var(--ink-dim); }

/* laser rule under section headings */
h2 { position: relative; padding-bottom: 14px; }
h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 120px; height: 3px; border-radius: 3px; background: #fff;
  box-shadow: 0 0 6px var(--red), 0 0 16px var(--red); }
.foot .brand img { width: 240px; margin: 0 auto 8px; }
.sub { margin: 40px 0 16px; font-size: 22px; }
.tags-pu .tag img { width: 64px; height: 64px; box-shadow: 0 0 0 3px var(--uv), 0 0 18px #8a3cff66; }
.rules { display: grid; gap: 8px 40px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.rules ol { margin: 0; padding-left: 1.4em; display: grid; gap: 12px; }
.rules li { color: var(--ink-dim); }
.rules li::marker { color: var(--red-ink); font-weight: 800; font-family: var(--mono); }
.rules b { color: var(--ink); }
.games { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.games li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; color: var(--muted); font-size: 15px; }
.games b { display: block; color: var(--ink); font-size: 17px; }
.games li:first-child { border-color: var(--red); box-shadow: 0 0 14px #ff2a4a44; }

/* theme toggle */
.theme-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.theme-btn:hover { border-color: var(--red-ink); }
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn .moon { display: none; }
[data-theme=light] .theme-btn .sun { display: none; }
[data-theme=light] .theme-btn .moon { display: block; }
.logo-light { display: none !important; }
[data-theme=light] .logo-dark { display: none !important; }
[data-theme=light] .logo-light { display: block !important; }
/* header sits over the dark hero at the top of the page */
.top.scrolled { background: var(--top-bg); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }

/* light mode: no dark glow behind headings outside the 3D hero */
[data-theme=light] main h1, [data-theme=light] .legal h1 { text-shadow: none; }
[data-theme=light] .hero h1 { text-shadow: 0 4px 30px #000a; }

/* obfuscated email: stored backwards, shown the right way round */
.em-txt { unicode-bidi: bidi-override; direction: rtl; }

/* light mode hero: daytime room, light backdrop, dark text */
[data-theme=light] .hero { --bg: #f6f3fb; --ink: #16121f; --ink-dim: #3d3550; --muted: #5f5775; --red-ink: #c81d38; --line: #d9d0e8; --uv-ink: #6324c9; background: #f6f3fb; }
[data-theme=light] .scene { background: radial-gradient(ellipse at 50% 30%, #ffffff, #ece6f6 70%); }
[data-theme=light] .scene::after { background: linear-gradient(90deg, #f6f3fbee 0%, #f6f3fb99 36%, #f6f3fb00 60%), linear-gradient(#f6f3fb00 70%, #f6f3fb); }
[data-theme=light] .hero h1 { text-shadow: 0 2px 24px #ffffffcc; }
[data-theme=light] .lede { text-shadow: 0 1px 12px #ffffff; }
[data-theme=light] .modes, [data-theme=light] .hud, [data-theme=light] .drag-hint { background: #ffffffd9; }
[data-theme=light] .hud .hud-solo { color: var(--ink); }
[data-theme=light] .hl { text-shadow: -0.07em 0 0 rgba(255,42,74,.35), -0.15em 0 0 rgba(255,42,74,.14), 0 0 16px rgba(255,42,74,.25); animation: none; }
@media (max-width: 700px) { [data-theme=light] .scene::after { background: linear-gradient(#f6f3fb00 70%, #f6f3fb); } }
.modes button { white-space: nowrap; }
@media (max-width: 420px) { .modes button { padding: 8px 10px; font-size: 13px; } }
