/* ============================================
   RandomDiceOnline.com — Estilos simplificados
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #0e0e1a;
  --bg2: #13131f;
  --card: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.09);
  --text: #e8e8f0;
  --muted: rgba(232,232,240,0.5);
  --gold: #f5c518;
  --purple: #6d28d9;
  --purple-light: #a78bfa;
  --red: #ef4444;
  --green: #22c55e;
  --radius: 12px;
  --t: 0.2s ease;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   NAV
   ============================================ */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(14,14,26,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex; align-items: center;
}

.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}

.logo {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--gold); text-decoration: none;
  display: flex; align-items: center; gap: 0.5rem;
  flex-shrink: 0;
}

.logo-icon {
  width: 30px; height: 30px;
  background: var(--gold);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  padding: 0.4rem 0.75rem; border-radius: 8px;
  transition: all var(--t);
}

.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-links a.active { color: var(--gold); }

.nav-cta-btn {
  background: var(--gold); color: #0e0e1a !important;
  font-weight: 600 !important;
  padding: 0.4rem 1rem !important;
}

.nav-cta-btn:hover { opacity: 0.9; background: var(--gold) !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}

.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--t); }

/* ============================================
   LAYOUT
   ============================================ */

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4.5rem 0; }
.page-top { padding-top: 60px; }

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }

/* ============================================
   TYPOGRAPHY
   ============================================ */

.page-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem,5vw,3.5rem);
  font-weight: 700; line-height: 1.15;
  color: var(--gold);
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.4rem,3vw,2rem);
  font-weight: 600; margin-bottom: 0.5rem;
}

.section-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 2rem; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  transition: all var(--t); border: none; text-decoration: none;
  font-family: 'Inter', sans-serif;
}

.btn-gold {
  background: var(--gold); color: #0e0e1a;
  box-shadow: 0 2px 12px rgba(245,197,24,0.25);
}

.btn-gold:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(245,197,24,0.35); }

.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-ghost {
  background: var(--card); color: var(--muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.07); }

.btn-purple {
  background: rgba(109,40,217,0.15);
  color: var(--purple-light);
  border: 1px solid rgba(109,40,217,0.3);
}

.btn-purple:hover {
  background: rgba(109,40,217,0.25);
  border-color: var(--purple-light);
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: all var(--t);
}

.card:hover { background: rgba(255,255,255,0.06); border-color: rgba(245,197,24,0.2); }

/* ============================================
   HOME — HERO
   ============================================ */

.hero {
  min-height: calc(100vh - 60px);
  display: flex; align-items: center;
  padding-top: 60px;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(109,40,217,0.12) 0%, transparent 70%);
}

.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
}

.hero-label {
  display: inline-block;
  background: rgba(245,197,24,0.1); border: 1px solid rgba(245,197,24,0.25);
  color: var(--gold); font-size: 0.75rem; font-weight: 600;
  padding: 0.3rem 0.75rem; border-radius: 100px;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem,4vw,3.2rem);
  font-weight: 700; line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-subtitle {
  color: var(--muted); font-size: 1rem; line-height: 1.7;
  margin-bottom: 1.75rem; max-width: 480px;
}

.hero-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Hero visual — dice preview */
.hero-visual {
  position: relative; height: 400px;
  display: flex; align-items: center; justify-content: center;
}

.dice-preview-scene {
  width: 100%; height: 100%;
  position: relative;
}

.float-die {
  position: absolute;
  animation: floatAnim 3.5s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(245,197,24,0.35));
}

@keyframes floatAnim {
  0%,100% { transform: translateY(0) rotate(var(--rot,0deg)); }
  50% { transform: translateY(-18px) rotate(calc(var(--rot,0deg) + 8deg)); }
}

/* ============================================
   HOME — QUICK ROLLER
   ============================================ */

.quick-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.quick-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 2.5rem;
  text-align: center; max-width: 640px; margin: 0 auto;
}

.dice-btns {
  display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.die-sel {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border);
  color: var(--muted);
  width: 64px; height: 64px;
  border-radius: 10px; cursor: pointer;
  font-family: 'Cinzel', serif; font-size: 0.85rem; font-weight: 600;
  transition: all var(--t);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}

.die-sel svg { transition: var(--t); }

.die-sel:hover {
  border-color: var(--gold); color: var(--gold);
  background: rgba(245,197,24,0.07);
  transform: translateY(-2px);
}

.die-sel.active {
  border-color: var(--gold); color: var(--gold);
  background: rgba(245,197,24,0.1);
}

.quick-num {
  font-family: 'Cinzel', serif; font-size: 5rem; font-weight: 700;
  color: var(--gold); line-height: 1; min-height: 5rem;
  display: flex; align-items: center; justify-content: center;
  margin: 1rem 0;
}

.quick-num.pop { animation: popIn 0.4s cubic-bezier(0.34,1.56,0.64,1); }

@keyframes popIn {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.quick-label {
  font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 600;
  min-height: 1.4rem; margin-bottom: 1.25rem;
}

.quick-label.crit { color: var(--gold); }
.quick-label.fail { color: var(--red); }

/* ============================================
   HOME — FEATURE CARDS
   ============================================ */

.feat-icon {
  font-size: 2rem; margin-bottom: 0.75rem;
}

.feat-title {
  font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 600;
  margin-bottom: 0.5rem;
}

.feat-desc { font-size: 0.875rem; color: var(--muted); }

/* ============================================
   DADOS PAGE — 3D DICE STAGE
   ============================================ */

.roller-page { padding-top: 60px; min-height: 100vh; }

.roller-header {
  text-align: center; padding: 2.5rem 0 0;
  border-bottom: 1px solid var(--border);
  background: rgba(109,40,217,0.05);
}

.roller-header h1 {
  font-family: 'Cinzel', serif; font-size: 2rem; font-weight: 700;
  margin-bottom: 0.35rem;
}

.roller-header p { color: var(--muted); font-size: 0.875rem; padding-bottom: 1.5rem; }

.roller-body {
  max-width: 780px; margin: 0 auto; padding: 2rem 1.5rem 5rem;
}

/* Tabs */
.tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 4px; gap: 4px;
  margin-bottom: 1.75rem;
}

.tab {
  padding: 0.75rem 1rem; border-radius: 9px; border: none;
  background: transparent; color: var(--muted);
  font-family: 'Cinzel', serif; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all var(--t);
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}

.tab:hover { color: var(--text); }

.tab.active[data-mode="player"] { background: rgba(245,197,24,0.12); color: var(--gold); }
.tab.active[data-mode="gm"] { background: rgba(109,40,217,0.15); color: var(--purple-light); }

.panel { display: none; }
.panel.active { display: block; }

/* Die selector */
.die-selector {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  justify-content: center; margin-bottom: 1.5rem;
}

.die-btn {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border);
  color: var(--muted);
  width: 68px; height: 68px;
  border-radius: 11px; cursor: pointer;
  font-family: 'Cinzel', serif; font-size: 0.82rem; font-weight: 600;
  transition: all var(--t);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}

.die-btn:hover {
  border-color: var(--gold); color: var(--gold);
  background: rgba(245,197,24,0.08); transform: translateY(-2px);
}

.die-btn.active {
  border-color: var(--gold); color: var(--gold);
  background: rgba(245,197,24,0.12);
  box-shadow: 0 0 16px rgba(245,197,24,0.15);
}

/* 3D Canvas Stage */
.canvas-stage {
  background: radial-gradient(ellipse at center, rgba(109,40,217,0.07) 0%, transparent 70%),
              rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  margin-bottom: 1.25rem;
}

#diceCanvas {
  display: block; width: 100% !important;
  border-radius: 15px;
}

.canvas-result {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(14,14,26,0.95) 0%, transparent 100%);
  text-align: center;
  pointer-events: none;
}

.result-big {
  font-family: 'Cinzel', serif; font-size: 3.5rem; font-weight: 700;
  color: var(--gold); line-height: 1;
  min-height: 3.5rem;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.result-big.show { opacity: 1; transform: scale(1); }
.result-big.crit { color: var(--gold); filter: drop-shadow(0 0 10px rgba(245,197,24,0.7)); }
.result-big.fail { color: var(--red); }

.result-detail {
  font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; min-height: 1.2rem;
}

.result-tag {
  font-family: 'Cinzel', serif; font-size: 0.95rem; font-weight: 700;
  min-height: 1.3rem;
}
.result-tag.crit { color: var(--gold); }
.result-tag.fail { color: var(--red); }

/* Controls */
.controls-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.ctrl {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
}

.ctrl-label {
  font-size: 0.7rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem;
}

.counter { display: flex; align-items: center; gap: 0.75rem; }

.ctr-btn {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04); color: var(--text);
  font-size: 1.2rem; cursor: pointer; transition: all var(--t);
  display: flex; align-items: center; justify-content: center;
}

.ctr-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(245,197,24,0.08); }

.ctr-val {
  font-family: 'Cinzel', serif; font-size: 1.4rem; font-weight: 700;
  min-width: 2.5rem; text-align: center;
}

/* Advantage toggle */
.adv-toggle {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 3px; gap: 3px;
  margin-bottom: 1rem;
}

.adv-btn {
  padding: 0.6rem 0.5rem; border-radius: 8px; border: none;
  background: transparent; color: var(--muted);
  font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all var(--t);
}

.adv-btn:hover { color: var(--text); }
.adv-btn.active[data-type="advantage"]    { background: rgba(34,197,94,0.12); color: var(--green); }
.adv-btn.active[data-type="normal"]       { background: rgba(245,197,24,0.1); color: var(--gold); }
.adv-btn.active[data-type="disadvantage"] { background: rgba(239,68,68,0.1); color: var(--red); }

/* Roll button */
.roll-btn {
  width: 100%;
  background: var(--gold); color: #0e0e1a;
  font-family: 'Cinzel', serif; font-size: 1.2rem; font-weight: 700;
  padding: 1rem; border: none; border-radius: var(--radius);
  cursor: pointer; transition: all var(--t);
  letter-spacing: 0.05em;
  box-shadow: 0 3px 15px rgba(245,197,24,0.2);
}

.roll-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(245,197,24,0.35); }
.roll-btn:active { transform: translateY(0); }
.roll-btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.roll-btn.rolling { animation: btnPulse 0.15s ease infinite alternate; }

@keyframes btnPulse {
  from { box-shadow: 0 3px 15px rgba(245,197,24,0.2); }
  to   { box-shadow: 0 3px 30px rgba(245,197,24,0.5); }
}

/* Presets */
.presets { margin-top: 1.25rem; }
.presets-title {
  font-family: 'Cinzel', serif; font-size: 0.85rem; color: var(--muted);
  margin-bottom: 0.6rem;
}
.preset-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.preset-chip {
  background: rgba(109,40,217,0.1);
  border: 1px solid rgba(109,40,217,0.2);
  color: var(--purple-light);
  padding: 0.35rem 0.875rem; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
  transition: all var(--t);
}

.preset-chip:hover { background: rgba(109,40,217,0.2); border-color: var(--purple-light); }

.save-chip {
  background: none; border: 1px dashed rgba(255,255,255,0.12);
  color: var(--muted); padding: 0.35rem 0.875rem; border-radius: 100px;
  font-size: 0.8rem; cursor: pointer; transition: all var(--t);
}

.save-chip:hover { border-color: var(--gold); color: var(--gold); }

/* History */
.history {
  margin-top: 1.25rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}

.history-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.875rem 1.25rem; border-bottom: 1px solid var(--border);
}

.history-head h3 { font-family: 'Cinzel', serif; font-size: 0.85rem; color: var(--muted); }

.hist-clear {
  background: none; border: none; color: var(--muted);
  font-size: 0.78rem; cursor: pointer; transition: color var(--t);
  padding: 0.2rem 0.5rem; border-radius: 5px;
}

.hist-clear:hover { color: var(--red); background: rgba(239,68,68,0.08); }

.hist-list { list-style: none; max-height: 200px; overflow-y: auto; }

.hist-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.65rem 1.25rem; border-bottom: 1px solid var(--border);
  font-size: 0.82rem; transition: background var(--t);
  animation: slideIn 0.25s ease;
}

.hist-item:hover { background: rgba(255,255,255,0.03); }
.hist-item:last-child { border-bottom: none; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hist-badge {
  font-family: 'Cinzel', serif; font-size: 0.7rem; font-weight: 700;
  background: rgba(109,40,217,0.15); color: var(--purple-light);
  border: 1px solid rgba(109,40,217,0.2);
  border-radius: 5px; padding: 0.15rem 0.45rem; margin-right: 0.6rem;
}

.hist-formula { color: var(--muted); }

.hist-val { font-family: 'Cinzel', serif; font-weight: 700; }
.hist-val.crit { color: var(--gold); }
.hist-val.fail { color: var(--red); }
.hist-val.normal { color: var(--text); }

.hist-empty { padding: 1.5rem; text-align: center; color: var(--muted); font-size: 0.82rem; }

/* ============================================
   GM MODE
   ============================================ */

.gm-info {
  background: rgba(109,40,217,0.06);
  border: 1px solid rgba(109,40,217,0.15);
  border-radius: 10px; padding: 0.875rem 1rem;
  font-size: 0.875rem; color: var(--muted);
  margin-bottom: 1.25rem;
}

.gm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }

.gm-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
}

.gm-card-title {
  font-family: 'Cinzel', serif; font-size: 0.875rem; font-weight: 600;
  color: var(--purple-light); margin-bottom: 0.875rem;
  display: flex; align-items: center; gap: 0.4rem;
}

/* Multi-roll */
.mr-entry {
  display: grid; grid-template-columns: 44px 1fr 44px 26px;
  gap: 0.4rem; align-items: center; margin-bottom: 0.4rem;
}

.mr-entry input[type="number"], .mr-entry select {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--text); border-radius: 7px; padding: 0.35rem 0.4rem;
  font-family: 'Cinzel', serif; font-size: 0.82rem; text-align: center;
  -moz-appearance: textfield; width: 100%;
}

.mr-entry input::-webkit-inner-spin-button { -webkit-appearance: none; }
.mr-entry input:focus, .mr-entry select:focus { outline: none; border-color: var(--purple-light); }

.mr-rm {
  background: none; border: 1px solid rgba(239,68,68,0.2);
  color: rgba(239,68,68,0.4); width: 24px; height: 24px;
  border-radius: 5px; cursor: pointer; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t);
}

.mr-rm:hover { border-color: var(--red); color: var(--red); background: rgba(239,68,68,0.08); }

.gm-btn {
  background: rgba(109,40,217,0.12); border: 1px solid rgba(109,40,217,0.25);
  color: var(--purple-light); padding: 0.5rem 1rem;
  border-radius: 8px; cursor: pointer; font-family: 'Cinzel', serif;
  font-size: 0.82rem; font-weight: 600; transition: all var(--t);
  display: inline-flex; align-items: center; gap: 0.35rem;
}

.gm-btn:hover { background: rgba(109,40,217,0.22); border-color: var(--purple-light); }

.add-row-btn {
  background: none; border: 1px dashed rgba(109,40,217,0.25);
  color: var(--muted); padding: 0.35rem 0.75rem;
  border-radius: 7px; cursor: pointer; font-size: 0.78rem; transition: all var(--t);
  margin-right: 0.5rem; margin-top: 0.25rem;
}

.add-row-btn:hover { border-color: var(--purple-light); color: var(--purple-light); }

.mr-output { margin-top: 0.75rem; font-size: 0.82rem; color: var(--muted); min-height: 1.2rem; }

/* Initiative */
.init-row { display: flex; gap: 0.4rem; margin-bottom: 0.6rem; }

.init-row input {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--text); border-radius: 7px; padding: 0.4rem 0.6rem;
  font-size: 0.82rem; flex: 1;
}

.init-row input:focus { outline: none; border-color: var(--purple-light); }

.init-list { list-style: none; max-height: 130px; overflow-y: auto; }

.init-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.4rem 0.5rem; border-radius: 7px;
  font-size: 0.82rem; margin-bottom: 0.25rem;
  border: 1px solid transparent;
  animation: slideIn 0.25s ease;
}

.init-list li:first-child {
  background: rgba(245,197,24,0.08); border-color: rgba(245,197,24,0.2);
  color: var(--gold); font-weight: 600;
}

.init-list li:not(:first-child) { background: rgba(255,255,255,0.03); border-color: var(--border); }

.init-score { font-family: 'Cinzel', serif; font-weight: 700; }

.init-actions { display: flex; gap: 0.4rem; margin-top: 0.5rem; }
.init-actions button {
  flex: 1; padding: 0.35rem; border-radius: 7px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.04);
  color: var(--muted); font-size: 0.75rem; cursor: pointer; transition: all var(--t);
}

.init-actions button:hover { border-color: var(--purple-light); color: var(--purple-light); }

/* Direction */
.dir-result { text-align: center; padding: 0.5rem 0; }

.dir-arrow {
  font-size: 3rem; display: block;
  transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

.dir-arrow.spin { animation: arrowSpin 0.75s cubic-bezier(0.2,0.8,0.2,1); }

@keyframes arrowSpin {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(480deg) scale(1.25); }
  100% { transform: rotate(720deg) scale(1); }
}

.dir-label {
  font-family: 'Cinzel', serif; font-size: 0.875rem; color: var(--purple-light); margin-top: 0.35rem;
}

/* Encounter */
.enc-output {
  background: rgba(109,40,217,0.05); border: 1px solid rgba(109,40,217,0.12);
  border-radius: 8px; padding: 0.875rem; font-size: 0.82rem;
  color: var(--muted); line-height: 1.6; min-height: 54px;
  margin-top: 0.75rem; transition: opacity 0.3s ease;
}

/* ============================================
   BLOG PAGE
   ============================================ */

.page-header {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(109,40,217,0.04);
}

.page-header h1 { font-family: 'Cinzel', serif; font-size: 2rem; font-weight: 700; margin-bottom: 0.35rem; }
.page-header p { color: var(--muted); }

.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }

.blog-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all var(--t); display: flex; flex-direction: column;
  cursor: pointer;
}

.blog-card:hover { transform: translateY(-4px); border-color: rgba(109,40,217,0.3); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

.blog-img {
  height: 160px;
  background: linear-gradient(135deg, #1a0a40, #0d1530);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
}

.blog-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }

.blog-tag {
  display: inline-block;
  background: rgba(109,40,217,0.12); color: var(--purple-light);
  border: 1px solid rgba(109,40,217,0.2);
  font-size: 0.7rem; font-weight: 600; padding: 0.15rem 0.5rem;
  border-radius: 100px; text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 0.6rem;
}

.blog-card h3 {
  font-family: 'Cinzel', serif; font-size: 0.95rem; font-weight: 600;
  margin-bottom: 0.5rem; line-height: 1.4;
}

.blog-card p { font-size: 0.82rem; color: var(--muted); flex: 1; margin-bottom: 1rem; }
.blog-meta { font-size: 0.75rem; color: var(--muted); display: flex; justify-content: space-between; }

/* ============================================
   TIENDA PAGE
   ============================================ */

.shop-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }

.shop-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all var(--t);
}

.shop-card:hover { transform: translateY(-4px); border-color: rgba(245,197,24,0.25); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

.shop-img {
  height: 150px; background: linear-gradient(135deg, #1a0a40, #2a1a50);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; position: relative;
}

.shop-badge-el {
  position: absolute; top: 10px; right: 10px;
  background: var(--gold); color: #0e0e1a;
  font-size: 0.65rem; font-weight: 700; padding: 0.15rem 0.5rem;
  border-radius: 5px; text-transform: uppercase;
}

.shop-body { padding: 1.1rem; }

.shop-card h3 { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.2rem; }
.shop-sub { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.75rem; }

.shop-row { display: flex; align-items: center; justify-content: space-between; }
.shop-price { font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 700; color: var(--gold); }
.shop-old { font-size: 0.75rem; color: var(--muted); text-decoration: line-through; margin-left: 0.3rem; }

.shop-add {
  background: rgba(245,197,24,0.1); border: 1px solid rgba(245,197,24,0.2);
  color: var(--gold); padding: 0.35rem 0.75rem;
  border-radius: 7px; font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: all var(--t);
}

.shop-add:hover { background: rgba(245,197,24,0.18); }

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

.footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem; margin-bottom: 2.5rem;
}

.footer-brand .logo { display: inline-flex; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.85rem; color: var(--muted); line-height: 1.7; margin-bottom: 1rem; }
.footer-slogan { font-family: 'Cinzel', serif; font-size: 0.75rem; color: var(--gold); opacity: 0.7; letter-spacing: 0.1em; }

.footer-col h4 { font-family: 'Cinzel', serif; font-size: 0.82rem; margin-bottom: 0.875rem; letter-spacing: 0.05em; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.82rem; transition: color var(--t); }
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.25rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}

.footer-bottom p { font-size: 0.78rem; color: var(--muted); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.78rem; color: var(--muted); text-decoration: none; transition: color var(--t); }
.footer-legal a:hover { color: var(--muted); opacity: 0.8; }

/* ============================================
   MISC
   ============================================ */

.divider { height: 1px; background: var(--border); margin: 2rem 0; }
.text-center { text-align: center; }
.gold { color: var(--gold); }
.purple { color: var(--purple-light); }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

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

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-btns { justify-content: center; }
  .hero-visual { height: 240px; order: -1; }
  .blog-grid { grid-template-columns: repeat(2,1fr); }
  .shop-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gm-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 60px; left: 0; right: 0;
    background: rgba(14,14,26,0.98); padding: 1rem;
    border-bottom: 1px solid var(--border); backdrop-filter: blur(16px);
  }
  .hamburger { display: flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .controls-row { grid-template-columns: 1fr; }
  .hero-subtitle { max-width: 100%; }
}
