/* ==========================================================================
   MALTE BAY — design system
   Themes: (default) day · [data-theme="dark"] · [data-theme="flash"] (joke)
   ========================================================================== */

:root {
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-data: 'Courier New', monospace;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- DAY (default) — warm cream, cadet teal, brass ---------- */
:root {
  --bg: #f3eee4;
  --bg-soft: #ebe4d6;
  --card: rgba(255, 253, 248, 0.86);
  --card-solid: #fffdf8;
  --text: #232a30;
  --muted: #6d7682;
  --accent: #357f86;
  --accent-2: #df9f53;
  --accent-soft: rgba(53, 127, 134, 0.12);
  --border: rgba(82, 72, 52, 0.16);
  --nav-bg: rgba(38, 47, 57, 0.88);
  --nav-text: #d9d4cb;
  --nav-border: rgba(255, 255, 255, 0.12);
  --ok: #1d9e66;
  --bad: #d64545;
  --shadow-sm: 0 2px 10px rgba(63, 52, 28, 0.08);
  --shadow-md: 0 14px 44px rgba(63, 52, 28, 0.13);
  --glow: 0 8px 24px rgba(53, 127, 134, 0.28);
  --orb-1: rgba(95, 158, 160, 0.34);
  --orb-2: rgba(223, 159, 83, 0.26);
  --orb-3: rgba(168, 134, 196, 0.20);
  --grain-opacity: 0.05;
  --img-filter: none;
}

/* ---------- DARK — void blue, plasma cyan, violet ---------- */
[data-theme="dark"] {
  --bg: #07090e;
  --bg-soft: #0d1118;
  --card: rgba(15, 20, 28, 0.72);
  --card-solid: #10151d;
  --text: #e7edf4;
  --muted: #8a94a6;
  --accent: #45c4d6;
  --accent-2: #8d7bff;
  --accent-soft: rgba(69, 196, 214, 0.12);
  --border: rgba(140, 170, 210, 0.14);
  --nav-bg: rgba(8, 11, 17, 0.78);
  --nav-text: #b9c3d2;
  --nav-border: rgba(140, 170, 210, 0.16);
  --ok: #4ade80;
  --bad: #ff6b6b;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 20px 56px rgba(0, 0, 0, 0.55);
  --glow: 0 0 28px rgba(69, 196, 214, 0.32);
  --orb-1: rgba(69, 196, 214, 0.18);
  --orb-2: rgba(141, 123, 255, 0.16);
  --orb-3: rgba(33, 99, 160, 0.18);
  --grain-opacity: 0.08;
  --img-filter: none;
}

/* ---------- FLASH — the joke. Maximum luminance. ---------- */
[data-theme="flash"] {
  --bg: #ffffff;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --card-solid: #ffffff;
  --text: #f1eee7;
  --muted: #f6f4ef;
  --accent: #efece4;
  --accent-2: #f3f1ea;
  --accent-soft: rgba(255, 255, 255, 0.6);
  --border: #f7f6f2;
  --nav-bg: #ffffff;
  --nav-text: #f1eee7;
  --nav-border: #f7f6f2;
  --ok: #f1eee7;
  --bad: #f1eee7;
  --shadow-sm: none;
  --shadow-md: none;
  --glow: none;
  --orb-1: transparent;
  --orb-2: transparent;
  --orb-3: transparent;
  --grain-opacity: 0;
  --img-filter: saturate(0.07) brightness(1.45) contrast(0.82) opacity(0.85);
}

/* ==========================================================================
   BASE
   ========================================================================== */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  padding: 124px 0 64px;
  overflow-x: hidden;
}

body,
.card,
.navbar,
.theme-dock,
input,
textarea,
button,
a {
  transition:
    background-color 0.45s var(--ease),
    color 0.45s var(--ease),
    border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}

img {
  max-width: 100%;
  filter: var(--img-filter);
  transition: filter 0.6s ease, transform 0.45s var(--ease);
}

::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 8px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ==========================================================================
   BACKGROUND ATMOSPHERE — drifting orbs + film grain
   ========================================================================== */

.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: drift 28s ease-in-out infinite alternate;
  transition: background 0.6s ease;
}

.orb-a { width: 48vw; height: 48vw; background: var(--orb-1); top: -14%; left: -10%; }
.orb-b { width: 40vw; height: 40vw; background: var(--orb-2); bottom: -12%; right: -8%; animation-duration: 34s; animation-delay: -9s; }
.orb-c { width: 30vw; height: 30vw; background: var(--orb-3); top: 32%; right: 24%; animation-duration: 42s; animation-delay: -18s; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(6vw, -5vh) scale(1.14); }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* ==========================================================================
   NAVBAR — floating glass pill
   ========================================================================== */

.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(94%, 1040px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 22px;
  border-radius: 999px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--nav-border);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

[data-theme="flash"] .navbar { box-shadow: none; }

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

[data-theme="flash"] .nav-brand { color: var(--text); }

.brand-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px var(--accent);
  flex: none;
}

.nav-links { display: flex; gap: 6px; }

.nav-links a {
  padding: 9px 17px;
  border-radius: 999px;
  color: var(--nav-text);
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.nav-links a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: var(--glow);
}

[data-theme="flash"] .nav-links a:hover { color: var(--text); background: #fff; }

/* ==========================================================================
   LAYOUT + CARDS
   ========================================================================== */

.page {
  width: min(92%, 1040px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.card {
  position: relative;
  background: var(--card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* gradient hairline along the top edge of every card */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline, var(--accent)), transparent);
  opacity: 0.65;
}

[data-theme="dark"] .card {
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* page-load reveal */
.reveal { opacity: 0; transform: translateY(18px); animation: rise 0.8s var(--ease) forwards; }
.d2 { animation-delay: 0.12s; }
.d3 { animation-delay: 0.24s; }

@keyframes rise { to { opacity: 1; transform: none; } }

/* ==========================================================================
   TYPE UTILITIES
   ========================================================================== */

.eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-head { padding: 4px 6px 0; }

.page-title {
  margin: 4px 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-sub { margin: 0; color: var(--muted); font-size: 1.02rem; max-width: 56ch; }

.section-title {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}

.section-title::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 3px;
  flex: none;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.section-title em { font-style: italic; color: var(--accent); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  background-size: 160% 160%;
  background-position: 0% 0%;
  box-shadow: var(--glow);
  overflow: hidden;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background-position 0.45s var(--ease),
    background-color 0.45s var(--ease),
    color 0.45s var(--ease);
}

.btn:hover { transform: translateY(-2px); background-position: 100% 100%; }
.btn:active { transform: translateY(0); }

/* shine sweep */
.btn:not(.btn-ghost)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, 0.35) 50%, transparent 72%);
  transform: translateX(-130%);
  transition: transform 0.65s ease;
}

.btn:not(.btn-ghost):hover::before { transform: translateX(130%); }

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  box-shadow: none;
}

.btn-ghost:hover { background: var(--accent-soft); }

.btn-arrow { font-size: 1.05em; line-height: 1; transform: translateY(-1px); }

/* ==========================================================================
   FORMS
   ========================================================================== */

.field { margin-bottom: 18px; }

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}

input[type="text"],
input[type="number"],
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  resize: vertical;
}

input::placeholder,
textarea::placeholder { color: var(--muted); opacity: 0.7; }

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ==========================================================================
   HOME — hero
   ========================================================================== */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 46px 50px;
}

.hero-id {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
  flex: 1 1 460px;
}

.avatar-wrap {
  position: relative;
  width: 148px;
  height: 148px;
  flex: none;
}

.avatar-wrap::before,
.avatar-wrap::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(var(--accent), var(--accent-2), var(--accent));
  animation: spin 8s linear infinite;
}

.avatar-wrap::after { filter: blur(20px); opacity: 0.55; }

@keyframes spin { to { transform: rotate(360deg); } }

.avatar {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--card-solid);
}

.hero-name {
  margin: 2px 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  letter-spacing: -0.035em;
  line-height: 1;
  background: linear-gradient(120deg, var(--text) 35%, var(--accent) 75%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline { margin: 0 0 14px; color: var(--muted); font-size: 1rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.hero-stats {
  flex: 0 1 340px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stats-label {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.stats-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.stats-img:hover { transform: scale(1.02); }

.social-links { display: flex; gap: 12px; }
.social-links .btn { flex: 1; }

/* ==========================================================================
   HOME — comments
   ========================================================================== */

.comment-section { padding: 44px 50px; }

.btn-submit { margin-top: 6px; }

.comments-head { margin-top: 48px; }

.comment-card {
  display: flex;
  gap: 15px;
  padding: 18px 20px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.45s var(--ease);
}

.comment-card:hover {
  transform: translateX(5px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.comment-avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.comment-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.comment-name { font-weight: 700; font-size: 1.02rem; }
.comment-date { color: var(--muted); font-size: 0.78rem; }
.comment-text { margin: 7px 0 0; line-height: 1.6; overflow-wrap: anywhere; }

.no-comments { color: var(--muted); font-style: italic; }

/* ==========================================================================
   CALCULATOR
   ========================================================================== */

.calc-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 26px;
}

.calc-card { flex: 1.5; padding: 40px 42px; }

.calc-row { display: flex; gap: 12px; }
.calc-row input { flex: 1; min-width: 0; }

#result {
  margin-top: 28px;
  min-height: 36px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  color: var(--ok);
}

#result.error { color: var(--bad); }

[data-theme="dark"] #result { text-shadow: 0 0 22px rgba(74, 222, 128, 0.45); }
[data-theme="dark"] #result.error { text-shadow: 0 0 22px rgba(255, 107, 107, 0.45); }
[data-theme="flash"] #result { text-shadow: none; }

.pop { animation: pop 0.45s var(--ease); }

@keyframes pop {
  0% { transform: scale(0.86); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.sidebar { flex: 1; min-width: 270px; padding: 28px 30px; }

.sidebar h3 {
  margin: 0 0 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  text-align: center;
}

.mineral-block {
  padding: 13px 14px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.mineral-block:hover {
  background: var(--accent-soft);
  border-color: var(--border);
  transform: translateX(5px);
}

.mineral-top { display: flex; align-items: center; gap: 10px; }

.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-quant  { background: #ff5d5d; box-shadow: 0 0 12px rgba(255, 93, 93, 0.75); }
.dot-oura   { background: #b78bff; box-shadow: 0 0 12px rgba(183, 139, 255, 0.75); }
.dot-borase { background: #50d3a5; box-shadow: 0 0 12px rgba(80, 211, 165, 0.75); }
.dot-gold   { background: #ffcf5c; box-shadow: 0 0 12px rgba(255, 207, 92, 0.75); }

[data-theme="flash"] .dot { background: var(--border); box-shadow: none; }

.mineral-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
}

.mineral-values {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 6px;
  font-family: var(--font-data);
  font-size: 0.85rem;
  color: var(--muted);
}

.mineral-values b { color: var(--text); font-size: 0.95rem; }

/* ==========================================================================
   DEADLOCK BUILDS
   ========================================================================== */

.builds {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
}

.hero-row {
  --hero: var(--accent);
  --hairline: var(--hero);
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 32px 36px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.45s var(--ease), border-color 0.45s var(--ease);
}

.hero-haze     { --hero: #a78bfa; }
.hero-vindicta { --hero: #fb923c; }

[data-theme="flash"] .hero-row { --hero: #f2efe9; }

.hero-row:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md), 0 18px 48px color-mix(in srgb, var(--hero) 22%, transparent);
}

.hero-row-head {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 230px;
}

.hero-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.32em;
  color: var(--hero);
}

.hero-row h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.5vw, 3.1rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1;
  background: linear-gradient(120deg, var(--text) 25%, var(--hero));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-img-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.55s var(--ease), filter 0.6s ease;
}

.hero-row:hover .hero-image { transform: scale(1.035); }

/* ==========================================================================
   THEME DOCK — the buttons in the corner
   ========================================================================== */

.theme-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--nav-border);
  box-shadow: var(--shadow-md);
  transition: opacity 0.4s ease, background-color 0.45s var(--ease), border-color 0.45s var(--ease);
}

[data-theme="flash"] .theme-dock { opacity: 0.45; box-shadow: none; }
[data-theme="flash"] .theme-dock:hover { opacity: 1; }

.theme-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  color: var(--nav-text);
  background: transparent;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.theme-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }

.theme-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: var(--glow);
}

[data-theme="flash"] .theme-btn { color: #dad7cf; }
[data-theme="flash"] .theme-btn:hover { color: #c9c5bb; background: #fafaf7; }

.theme-btn svg { display: block; }

/* ==========================================================================
   FLASHBANG OVERLAY
   ========================================================================== */

.flashbang {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #fff;
  display: grid;
  place-items: center;
  pointer-events: none;
  animation: bang 1.6s ease-out forwards;
}

.flashbang span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 3rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #eae7df;
  animation: bang-text 1.6s ease-out forwards;
}

@keyframes bang {
  0% { opacity: 0; }
  5% { opacity: 1; }
  45% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes bang-text {
  0%, 12% { opacity: 0; transform: scale(0.92); }
  28% { opacity: 1; transform: scale(1); }
  70% { opacity: 1; }
  100% { opacity: 0; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  margin-top: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 860px) {
  body { padding-top: 104px; }

  .navbar { top: 10px; padding: 8px 10px 8px 16px; }
  .nav-links a { padding: 8px 12px; font-size: 0.85rem; }

  .hero { padding: 32px 26px; }
  .avatar-wrap { width: 116px; height: 116px; }

  .comment-section { padding: 32px 26px; }

  .calc-wrapper { flex-direction: column; }
  .calc-card, .sidebar { width: 100%; flex: none; }
  .calc-card { padding: 30px 26px; }

  .hero-row { flex-direction: column; align-items: flex-start; gap: 20px; padding: 26px 24px; }
  .hero-row-head { min-width: 0; }
}

@media (max-width: 560px) {
  .brand-name { display: none; }
  .hero-id { flex-direction: column; align-items: flex-start; }
  .calc-row { flex-direction: column; }
  .social-links { flex-direction: column; }
  .theme-dock { right: 12px; bottom: 12px; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
