/* ============================================================
   THE BEHOLDER'S GAZETTE — MASTER DESIGN SYSTEM
   Dark High Fantasy · Parchment & Obsidian · Runic Elegance
   ============================================================ */

/* ── CSS VARIABLES ──────────────────────────────────────── */
:root {
  --bg-deep:        #0e0d0b;
  --bg-dark:        #15130f;
  --bg-card:        #1c1914;
  --bg-raised:      #232018;
  --bg-parchment:   #f0e6cc;
  --bg-parchment2:  #e8d9b8;

  --gold-bright:    #d4a843;
  --gold-mid:       #b8922e;
  --gold-dim:       #6a5418;
  --gold-glow:      rgba(212,168,67,0.18);

  --crimson:        #8b1a1a;
  --crimson-bright: #b02020;
  --crimson-glow:   rgba(139,26,26,0.25);

  --text-bright:    #f0e8d8;
  --text-mid:       #c8bda8;
  --text-dim:       #8a7d6a;
  --text-parchment: #2b2318;

  --border-gold:    1px solid var(--gold-dim);
  --border-gold2:   2px solid var(--gold-mid);
  --border-double:  4px double var(--gold-mid);

  --shadow-card:    0 4px 24px rgba(0,0,0,0.6);
  --shadow-glow:    0 0 30px var(--gold-glow);
  --shadow-crimson: 0 0 20px var(--crimson-glow);

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;

  --font-display: 'Cinzel Decorative', serif;
  --font-head:    'Cinzel', serif;
  --font-body:    'IM Fell English', serif;
  --font-ui:      'Lato', sans-serif;

  --transition: 0.3s ease;

  /* Legacy names still used by older page styles */
  --accent-gold:    var(--gold-bright);
  --accent-red:     var(--crimson-bright);
  --text-color:     var(--text-mid);
  --parchment:      var(--bg-parchment);
  --parchment-text: var(--text-parchment);
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(139,26,26,0.07) 0%, transparent 55%),
    repeating-linear-gradient(0deg,   transparent, transparent 39px, rgba(212,168,67,0.025) 40px),
    repeating-linear-gradient(90deg,  transparent, transparent 39px, rgba(212,168,67,0.025) 40px);
  font-family: var(--font-body);
  color: var(--text-mid);
  line-height: 1.7;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
a:hover { color: var(--gold-bright); }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ── NAVIGATION ─────────────────────────────────────────── */
/* ── HAMBURGER BUTTON (mobile only) ──────────────────────── */
.nav-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--gold-bright);
  font-size: 1.2rem;
  line-height: 1;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 201;
  transition: all var(--transition);
}
.nav-hamburger:hover { background: var(--gold-glow); border-color: var(--gold-mid); }

.main-nav {
  background: linear-gradient(180deg, #1a1712 0%, #0e0d0b 100%);
  border-bottom: var(--border-double);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 4px 30px rgba(0,0,0,0.8);
  /* needed so the mobile dropdown positions relative to the bar */
  isolation: isolate;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
}

.main-nav a {
  display: block;
  padding: 16px 20px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  transition: all var(--transition);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 3px;
  background: var(--gold-bright);
  transition: all var(--transition);
}

.main-nav a:hover, .main-nav a.active {
  color: var(--gold-bright);
  background: rgba(212,168,67,0.06);
}

.main-nav a:hover::after, .main-nav a.active::after { left: 0; right: 0; }

/* ── TICKER ─────────────────────────────────────────────── */
.ticker-wrap {
  width: 100%;
  background: linear-gradient(90deg, #6b0f0f 0%, #8b1a1a 50%, #6b0f0f 100%);
  overflow: hidden;
  height: 36px;
  line-height: 36px;
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--text-bright);
  position: relative;
}

.ticker {
  display: inline-block;
  white-space: nowrap;
  animation: ticker-scroll 50s linear infinite;
  padding-left: 100%;
}

@keyframes ticker-scroll {
  0%   { transform: translate3d(0,0,0); }
  100% { transform: translate3d(-100%,0,0); }
}

/* Headline links (homepage ticker): hold still while hovered so they can be clicked */
.ticker a { color: inherit; }
.ticker a:hover { color: var(--gold-bright); text-decoration: underline; }
.ticker:hover, .ticker:focus-within { animation-play-state: paused; }

/* ── HERO ────────────────────────────────────────────────── */
.hero, .page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  text-align: center;
  overflow: hidden;
}

.hero-overlay, .page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,13,11,0.75) 0%, rgba(14,13,11,0.93) 70%, rgba(14,13,11,1) 100%);
}

.hero-content, .page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px 70px;
}

.hero-logo {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.8rem);
  color: var(--gold-bright);
  text-shadow: 0 0 40px rgba(212,168,67,0.5), 2px 2px 0 #000;
  margin-bottom: 14px;
  animation: fadeInDown 1s ease both;
}

.hero-tagline {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--text-mid);
  font-size: 1.1rem;
  margin-bottom: 14px;
  animation: fadeIn 1.5s ease both;
}

.hero-description {
  color: var(--text-dim);
  font-size: 0.98rem;
  max-width: 620px;
  margin: 0 auto 26px;
  animation: fadeIn 2s ease both;
}

.hero-date {
  font-family: var(--font-head);
  color: var(--gold-bright);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 8px 22px;
  border: 1px solid var(--gold-dim);
  display: inline-block;
  border-radius: var(--radius-sm);
  background: rgba(212,168,67,0.06);
  animation: fadeIn 2.5s ease both;
}

.page-hero-logo {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  color: var(--gold-bright);
  text-shadow: 0 0 30px rgba(212,168,67,0.4);
  margin-bottom: 12px;
}

.page-hero-tagline { font-style: italic; color: var(--text-mid); font-size: 1.05rem; margin-bottom: 8px; }
.page-hero-description { color: var(--text-dim); font-size: 0.92rem; max-width: 560px; margin: 0 auto; }

/* ── LAYOUT ─────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 48px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}

/* ── SECTION TITLES ─────────────────────────────────────── */
.welcome-section { text-align: center; margin-bottom: 32px; }

.section-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--gold-bright);
  display: inline-block;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 6px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-mid), transparent);
}

.section-subtitle {
  color: var(--text-dim);
  font-style: italic;
  font-size: 0.92rem;
  max-width: 540px;
  margin: 10px auto 0;
}

.section-divider {
  margin: 56px 0 28px;
  padding-top: 28px;
  border-top: var(--border-gold);
  position: relative;
}

.section-divider::before {
  content: '⚜';
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--bg-deep);
  padding: 0 12px;
  color: var(--gold-dim);
  font-size: 1.1rem;
}

/* ── FEATURED ARTICLE ───────────────────────────────────── */
.featured-article {
  background: var(--bg-parchment);
  color: var(--text-parchment);
  padding: 44px;
  border: var(--border-gold2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card), inset 0 0 60px rgba(0,0,0,0.05);
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease both;
}

.featured-article::before {
  content: 'EXCLUSIVE';
  position: absolute;
  top: 0; left: 0;
  background: linear-gradient(135deg, var(--crimson), #6b1212);
  color: var(--text-bright);
  padding: 6px 18px;
  font-family: var(--font-head);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  border-bottom-right-radius: var(--radius-md);
}

.featured-headline {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--text-parchment);
  line-height: 1.25;
  margin: 20px 0 14px;
}

.article-meta {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: #666;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  padding-bottom: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.featured-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #3a2f1e;
  margin-bottom: 22px;
}

/* ── ARTICLE GRID & CARDS ───────────────────────────────── */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }

.card {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-dark) 100%);
  border: var(--border-gold);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease both;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover { transform: translateY(-6px); border-color: var(--gold-mid); box-shadow: 0 12px 40px rgba(0,0,0,0.5), var(--shadow-glow); }
.card:hover::before { opacity: 1; }

.card-tag {
  font-family: var(--font-head);
  font-size: 0.62rem;
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 3px 9px;
  background: rgba(212,168,67,0.1);
  border: 1px solid var(--gold-dim);
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 13px;
}

.card h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--text-bright); line-height: 1.4; }
.card h3 a:hover { color: var(--gold-bright); }
.card p { font-size: 0.86rem; color: var(--text-dim); margin-bottom: 16px; line-height: 1.65; }
.card-date { font-family: var(--font-ui); font-size: 0.7rem; color: var(--text-dim); margin-top: 4px; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: linear-gradient(145deg, var(--crimson), #6b1212);
  color: var(--text-bright);
  padding: 10px 20px;
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border: 1px solid rgba(212,168,67,0.3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
}

.btn:hover {
  background: linear-gradient(145deg, var(--crimson-bright), var(--crimson));
  color: var(--gold-bright);
  border-color: var(--gold-dim);
  box-shadow: var(--shadow-crimson);
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(145deg, var(--gold-bright), var(--gold-mid));
  color: #000;
  border-color: var(--gold-mid);
}

.btn-gold:hover {
  background: linear-gradient(145deg, #e0b84d, var(--gold-bright));
  color: #000;
  box-shadow: var(--shadow-glow);
}

/* ── SIDEBAR ─────────────────────────────────────────────── */
aside { animation: fadeInRight 0.8s ease both; }

.sidebar-widget {
  background: linear-gradient(145deg, var(--bg-raised), var(--bg-dark));
  border: var(--border-gold);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 26px;
  transition: transform var(--transition);
  position: relative;
  overflow: hidden;
}

.sidebar-widget::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--crimson), var(--gold-mid), var(--crimson));
}

.sidebar-widget:hover { transform: translateY(-3px); }

.widget-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--gold-bright);
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 11px;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

.quick-links { display: flex; flex-direction: column; gap: 9px; }

.quick-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 13px;
  background: rgba(212,168,67,0.04);
  border: var(--border-gold);
  border-radius: var(--radius-sm);
  color: var(--text-mid);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  transition: all var(--transition);
}

.quick-link:hover {
  background: rgba(212,168,67,0.1);
  border-color: var(--gold-mid);
  color: var(--gold-bright);
  transform: translateX(4px);
}

/* Patreon */
.patreon-widget { background: linear-gradient(145deg, #1c1410, var(--bg-dark)); border-color: var(--gold-mid); }
.patreon-tier { display: flex; align-items: center; gap: 11px; padding: 9px; background: rgba(0,0,0,0.3); border-radius: var(--radius-sm); margin-bottom: 9px; transition: all var(--transition); border: 1px solid transparent; }
.patreon-tier:hover { background: rgba(212,168,67,0.07); border-color: var(--gold-dim); transform: translateX(4px); }
.tier-icon { font-size: 1.3rem; width: 34px; text-align: center; }
.tier-info { display: flex; flex-direction: column; flex: 1; }
.tier-name { font-family: var(--font-head); color: var(--gold-bright); font-size: 0.78rem; }
.tier-price { font-family: var(--font-ui); font-size: 0.68rem; color: var(--text-dim); }

.patreon-btn {
  display: block;
  background: linear-gradient(145deg, var(--gold-bright), var(--gold-mid));
  color: #000;
  text-align: center;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  transition: all var(--transition);
  margin-top: 12px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
}

.patreon-btn:hover { background: linear-gradient(145deg, #e0b84d, var(--gold-bright)); box-shadow: var(--shadow-glow); transform: scale(1.02); color: #000; }

/* Form inputs */
.sidebar-widget input[type="email"],
.sidebar-widget input[type="text"],
input[type="email"],
input[type="text"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px 13px;
  margin-top: 8px;
  background: rgba(0,0,0,0.4);
  border: var(--border-gold);
  border-radius: var(--radius-sm);
  color: var(--text-bright);
  font-family: var(--font-ui);
  font-size: 0.86rem;
  transition: border-color var(--transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 2px var(--gold-glow);
}

select option { background: var(--bg-raised); color: var(--text-bright); }

/* ── ECONOMY WIDGET ──────────────────────────────────────── */
.economy-widget {
  background: linear-gradient(145deg, var(--bg-raised), var(--bg-dark));
  border: var(--border-gold2);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 26px;
}

.economy-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; border-bottom: var(--border-gold); padding-bottom: 11px; }
.economy-title { font-family: var(--font-head); color: var(--gold-bright); font-size: 0.95rem; letter-spacing: 0.05em; }
.economy-timer { font-family: var(--font-ui); font-size: 0.7rem; color: var(--text-dim); }
.economy-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; }

.economy-item { background: rgba(0,0,0,0.3); padding: 11px; border-radius: var(--radius-sm); border-left: 3px solid var(--gold-dim); transition: all var(--transition); }
.economy-item.price-up   { border-left-color: #4caf50; animation: pulse-green 0.5s ease; }
.economy-item.price-down { border-left-color: #f44336; animation: pulse-red 0.5s ease; }

@keyframes pulse-green { 0%,100% { background: rgba(0,0,0,0.3); } 50% { background: rgba(76,175,80,0.08); } }
@keyframes pulse-red   { 0%,100% { background: rgba(0,0,0,0.3); } 50% { background: rgba(244,67,54,0.08);  } }

.item-name  { font-family: var(--font-ui); font-size: 0.76rem; color: var(--text-mid); margin-bottom: 3px; }
.item-price { font-family: var(--font-head); font-size: 0.9rem; color: var(--gold-bright); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.price-change { font-family: var(--font-ui); font-size: 0.62rem; padding: 2px 5px; border-radius: 3px; font-weight: 700; }
.price-change.up     { background: rgba(76,175,80,0.15);   color: #4caf50; }
.price-change.down   { background: rgba(244,67,54,0.15);   color: #f44336; }
.price-change.stable { background: rgba(200,200,200,0.08); color: var(--text-dim); }

.market-trend { margin-top: 13px; padding-top: 13px; border-top: var(--border-gold); font-family: var(--font-ui); font-size: 0.74rem; color: var(--text-dim); }
.trend-indicator { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
.trend-up { background: #4caf50; } .trend-down { background: #f44336; } .trend-stable { background: var(--text-dim); }

.refresh-btn {
  background: transparent;
  border: var(--border-gold);
  color: var(--gold-bright);
  padding: 4px 9px;
  font-family: var(--font-head);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition);
}
.refresh-btn:hover { background: var(--gold-glow); }

/* ── POLL BARS ───────────────────────────────────────────── */
.poll-bar { background: rgba(0,0,0,0.4); height: 20px; border-radius: 10px; margin-bottom: 9px; overflow: hidden; border: 1px solid var(--gold-dim); }
.poll-fill { height: 100%; background: linear-gradient(90deg, var(--gold-mid), var(--gold-bright)); text-align: right; padding-right: 7px; font-family: var(--font-ui); font-size: 0.65rem; line-height: 20px; color: #000; font-weight: 700; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #090807 100%);
  border-top: var(--border-double);
  padding: 60px 24px 40px;
  margin-top: 80px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-mid), transparent);
}

.footer-content { max-width: 1280px; margin: 0 auto; text-align: center; }

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--gold-bright);
  margin-bottom: 11px;
  text-shadow: 0 0 20px var(--gold-glow);
}

.footer-links { display: flex; justify-content: center; gap: 26px; margin: 18px 0; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); font-family: var(--font-ui); font-size: 0.82rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold-bright); }
.footer-tagline { color: var(--text-dim); font-family: var(--font-ui); font-size: 0.85rem; }
.footer-quip { margin: 12px auto 0; max-width: 640px; color: var(--text-dim); font-style: italic; font-size: 0.82rem; }
.footer-quip a { color: inherit; text-decoration: underline; }
.footer-copy { margin-top: 16px; color: var(--text-dim); font-family: var(--font-ui); font-size: 0.72rem; opacity: 0.5; }

/* ── TOOL PAGES ──────────────────────────────────────────── */
.tool-body { max-width: 1200px; margin: 0 auto; padding: 60px 24px; }

.tool-container {
  background: linear-gradient(145deg, var(--bg-card), var(--bg-dark));
  border: var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-card);
}

.generate-btn {
  background: linear-gradient(145deg, var(--crimson), #6b1212);
  color: var(--text-bright);
  border: 1px solid rgba(212,168,67,0.3);
  padding: 15px 44px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-crimson);
  text-transform: uppercase;
}

.generate-btn:hover {
  background: linear-gradient(145deg, var(--crimson-bright), var(--crimson));
  box-shadow: 0 6px 24px rgba(139,26,26,0.5);
  transform: scale(1.03);
  color: var(--gold-bright);
}

.generate-btn:active { transform: scale(0.98); }

/* ── READING PROGRESS ────────────────────────────────────── */
.reading-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 1000; }
.reading-progress-bar { height: 100%; background: linear-gradient(90deg, var(--crimson), var(--gold-bright)); width: 0%; transition: width 0.1s ease; }

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-mid); }

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeIn      { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInDown  { from { opacity: 0; transform: translateY(-22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp    { from { opacity: 0; transform: translateY(22px);  } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(22px);  } to { opacity: 1; transform: translateX(0); } }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .container { grid-template-columns: 1fr; }
  .economy-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-content, .page-hero-content { padding: 55px 20px 48px; }
  .featured-article { padding: 26px; }
  .tool-container { padding: 22px; }
  .footer-links { flex-direction: column; gap: 12px; }

  /* ── Hamburger nav ── */
  .nav-hamburger { display: block; }

  .main-nav {
    position: sticky;
    top: 0;
    z-index: 200;
  }

  .main-nav ul {
    display: none;               /* hidden until toggled */
    flex-direction: column;
    width: 100%;
    background: linear-gradient(180deg, #1a1712 0%, #0e0d0b 100%);
    border-top: 1px solid var(--gold-dim);
    padding: 8px 0 12px;
    position: absolute;          /* drop down over content */
    top: 100%;
    left: 0;
    right: 0;
    z-index: 199;
    box-shadow: 0 12px 40px rgba(0,0,0,0.9);
    animation: fadeInDown 0.2s ease;
  }

  .main-nav ul.nav-open {
    display: flex;               /* shown when toggled */
  }

  .main-nav li {
    border-bottom: 1px solid rgba(212,168,67,0.08);
  }
  .main-nav li:last-child { border-bottom: none; }

  .main-nav a {
    padding: 14px 24px;
    font-size: 0.82rem;
  }
  .main-nav a::after { display: none; }
  .main-nav a:hover, .main-nav a.active {
    border-left: 3px solid var(--gold-bright);
    padding-left: 21px;
  }
}

@media (max-width: 500px) {
  .article-grid { grid-template-columns: 1fr; }
  .card { padding: 18px; }
}

/* Subscribe and contact forms (raven-form.js) */
.raven-status { margin-top: 10px; font-size: 0.85rem; min-height: 1em; }
.raven-ok { color: var(--gold-bright); }
.raven-err { color: #e07a6a; }
.raven-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer satire notice (every page) */
.satire-note { margin-top: 4px; color: var(--text-dim); font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: 0.04em; }

/* ── Floating dice button (dice-fab.js, F23) ─────────────── */
.dice-fab { position: fixed; right: 18px; bottom: 18px; z-index: 300; width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--gold-mid); background: radial-gradient(circle at 35% 30%, var(--bg-raised), var(--bg-deep)); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-card), var(--shadow-glow); transition: transform 0.15s; }
.dice-fab:hover, .dice-fab:focus-visible, .dice-fab.open { transform: rotate(-12deg) scale(1.06); border-color: var(--gold-bright); }
.dice-pop { position: fixed; right: 18px; bottom: 84px; z-index: 300; width: 300px; max-width: calc(100vw - 32px); max-height: calc(100vh - 110px); overflow-y: auto; box-sizing: border-box; background: linear-gradient(145deg, var(--bg-card), var(--bg-dark)); border: var(--border-gold2); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 14px; font-family: var(--font-ui); color: var(--text-mid); }
.dice-pop[hidden] { display: none; }
.dice-pop-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.dice-pop-head strong { font-family: var(--font-head); color: var(--gold-bright); font-size: 0.95rem; letter-spacing: 0.04em; }
.dice-pop-x { background: none; border: none; color: var(--text-dim); font-size: 1rem; cursor: pointer; padding: 2px 6px; }
.dice-pop-x:hover { color: var(--text-bright); }
.dice-pop-form { display: flex; gap: 6px; margin: 0 0 8px; }
.dice-pop-input { flex: 1; min-width: 0; margin: 0; padding: 8px 10px; font-size: 0.95rem; font-family: var(--font-ui); background: var(--bg-deep); color: var(--text-bright); border: 1px solid var(--gold-dim); border-radius: var(--radius-sm); }
.dice-pop-roll { padding: 8px 14px; font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; background: var(--gold-mid); color: var(--bg-dark); border: none; border-radius: var(--radius-sm); cursor: pointer; }
.dice-pop-roll:hover { background: var(--gold-bright); }
.dice-pop-chips, .dice-pop-modes { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.dice-pop-chips button, .dice-pop-modes button { flex: 1 0 auto; padding: 5px 7px; font-size: 0.75rem; font-family: var(--font-ui); background: var(--bg-deep); color: var(--text-mid); border: 1px solid var(--gold-dim); border-radius: var(--radius-sm); cursor: pointer; }
.dice-pop-chips button:hover, .dice-pop-modes button:hover { color: var(--gold-bright); border-color: var(--gold-mid); }
.dice-pop-modes button.on { background: var(--gold-mid); color: var(--bg-dark); border-color: var(--gold-mid); font-weight: 700; }
.dice-pop-result { text-align: center; min-height: 0; }
.dice-pop-total { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--gold-bright); line-height: 1.1; margin-top: 4px; }
.dice-pop-detail { font-size: 0.78rem; color: var(--text-mid); overflow-wrap: anywhere; }
.dice-pop-note { font-size: 0.78rem; color: var(--text-dim); margin-top: 4px; }
.dice-crit { display: inline-block; font-weight: 700; font-size: 0.72rem; padding: 1px 6px; border-radius: 3px; margin-left: 4px; }
.dice-crit.hit { background: var(--gold-mid); color: var(--bg-dark); }
.dice-crit.miss { background: var(--crimson); color: var(--text-bright); }
.dice-pop-recent { list-style: none; margin: 10px 0 0; padding: 0; }
.dice-pop-recent:empty { display: none; }
.dice-pop-recent button { display: flex; justify-content: space-between; gap: 8px; width: 100%; background: none; border: none; border-top: 1px dashed rgba(201,160,64,0.18); padding: 5px 2px; font-size: 0.8rem; font-family: var(--font-ui); color: var(--text-mid); cursor: pointer; text-align: left; }
.dice-pop-recent button span { min-width: 0; overflow-wrap: anywhere; }
.dice-pop-recent button:hover { color: var(--gold-bright); }
.dice-pop-recent b { color: var(--text-bright); }
.dice-pop-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--gold-dim); font-size: 0.75rem; }
.dice-pop-foot a { color: var(--gold-bright); }
.dice-pop-hide { background: none; border: none; color: var(--text-dim); font-size: 0.75rem; cursor: pointer; text-decoration: underline; padding: 0; font-family: var(--font-ui); }
@media (max-width: 640px) {
  .dice-fab { right: 12px; bottom: 12px; width: 48px; height: 48px; font-size: 1.4rem; }
  .dice-pop { right: 12px; left: 12px; width: auto; max-width: none; bottom: 70px; }
}
@media print { .dice-fab, .dice-pop { display: none !important; } }
