/* Minimal black + white with very subtle anaglyph (red/cyan) */
:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --elev: #151515;
  --border: #242424;
  --text: #ffffff;      /* boosted brightness */
  --muted: #bbbbbb;
}

* { box-sizing: border-box }
html, body { height: 100% }
body {
  margin: 0;
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial;
  color: var(--text);
  background: linear-gradient(180deg, #0a0a0a, #0b0b0b);
}

/* Hide content until JS marks ready (replaces inline styles) */
.preload-hidden { visibility: hidden }

header, footer { max-width: 1100px; margin: 28px auto; padding: 0 20px }
main { max-width: 1100px; margin: 0 auto; padding: 0 20px 72px; display: grid; gap: 18px }
@media (min-width: 980px) { main { grid-template-columns: 1fr 1fr } }

.hero h1 { margin: 0 0 10px; font-weight: 800; font-size: clamp(28px, 5vw, 44px); letter-spacing: .2px; line-height: 1.1 }
.hero p { margin: 8px 0 0; color: var(--muted); max-width: 72ch }

/* Base text styling */
.grad-text,
h1, h2, h3, h4, h5, h6,
p, span, a, label, small, strong, em,
button, input, textarea, select,
pre, code,
li, dt, dd, th, td, figcaption {
  color: var(--text);
  text-shadow: none;
}
input::placeholder, textarea::placeholder { color: var(--muted); text-shadow: none; }

.card {
  background: linear-gradient(180deg, var(--surface), var(--elev));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 18px 22px;
  margin-top: 12px;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}
.card h2 { margin: 0 0 8px; font-size: 18px; font-weight: 700 }

.row { margin: 14px 0 }
.split { display: flex; gap: 12px; flex-wrap: wrap }
.split > label { flex: 1; min-width: 140px }

/* Inputs */
input[type="text"], input[type="number"], input[type="file"], button {
  width: auto; padding: 12px 12px; border-radius: 10px; border: 1px solid var(--border);
  background: #0f0f10; color: var(--text); transition: box-shadow .15s ease, border-color .15s ease, transform .06s ease, background .15s ease;
}
input[type="text"], input[type="number"], input[type="file"] { outline: none }
input[type="text"]:focus, input[type="number"]:focus, input[type="file"]:focus {
  border-color: #2e2e2e; box-shadow: 0 0 0 2px rgba(77,227,255,.15), 0 0 0 4px rgba(255,77,77,.10);
}

/* Minimal monochrome buttons; anaglyph everywhere but slightly stronger on hover */
button {
  cursor: pointer; border: 1px solid var(--border); color: var(--text); background: #111111; font-weight: 600;
}
button:hover { background: #141414; border-color: #2e2e2e; text-shadow: none }
button:active { background: #101010; transform: translateY(0) scale(.99) }
button:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(77,227,255,.18), 0 0 0 5px rgba(255,77,77,.12) }

.result { margin-top: 14px }
.result input[type="text"] { width: 100% }
.result a { border-bottom: 1px dotted #2a2a2a; text-decoration: none }
.result .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap }
.result .hint { margin-right: auto }
.ok { color: var(--text) }
.error { color: var(--text) }
.hint { color: var(--muted); font-size: .92em }

pre.code {
  background: #0c0c0e;
  padding: 14px; border-radius: 10px; overflow: auto; border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

img.unlocked-image {
  max-width: 100%; height: auto; border-radius: 12px;
  box-shadow: 0 0 0 1px var(--border), 0 16px 34px rgba(0,0,0,.45);
}

a { color: var(--text) }
a:hover { color: #ffffff }

#status { font-variant-numeric: tabular-nums; letter-spacing: .2px }

@media (max-width: 640px) { .split { flex-direction: column } }

/* Remove any anaglyph drop-shadows */
button,
input[type="text"], input[type="number"], input[type="file"],
textarea, select,
pre.code,
img.unlocked-image,
.result input[type="text"] { filter: none }

/* Clickable brand link */
a.site-logo {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .2px;
}
.hero a.site-logo { display: inline-block; margin-bottom: 8px; opacity: .9 }
.hero a.site-logo:hover { opacity: 1 }
