/* ==========================================================================
   CAMILOH BOT · Web + panel
   Dos momentos: landing pública y panel de configuración.
   Base: vino profundo, tarjetas crema, acentos rojo/frambuesa.
   Tipografías del portafolio (Soria, Inter, Instrument Serif, Matrix Mono).
   ========================================================================== */

@font-face {
  font-family: 'Soria';
  src: url('/static/fonts/soria.ttf') format('truetype');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/static/fonts/Inter-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/static/fonts/InstrumentSerif-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/static/fonts/InstrumentSerif-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  /* fondos */
  --wine-990: #22030a;
  --wine-950: #33050d;
  --wine-900: #45080f;
  --wine-800: #5a0b16;
  --wine-700: #720f1d;
  --wine-600: #8e1220;

  /* acentos */
  --rose: #f4324f;
  --rose-deep: #c0142f;
  --red: #d81e3c;
  --cream: #fff6ef;
  --cream-2: #f7e6dd;
  --paper: #fffdfa;
  --mint: #5fd6a4;
  --mint-ink: #0f4a33;
  --gold: #ffcb45;
  --ink: #2a1014;
  --ink-soft: #7d5a60;
  --line: rgba(74, 10, 20, 0.12);

  --radius-xl: 32px;
  --radius-lg: 26px;
  --radius: 20px;
  --radius-sm: 14px;

  --shadow-card: 0 18px 40px rgba(20, 0, 4, 0.24);
  --shadow-soft: 0 28px 60px rgba(20, 0, 4, 0.35);

  --font-display: 'Soria', Georgia, 'Times New Roman', serif;
  --font-label: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* Matrix Mono (como Miltown) es de display: sus glifos se solapan en
     texto corrido, así que el código usa una monoespaciada del sistema. */
  --font-mono: ui-monospace, 'Cascadia Mono', 'Segoe UI Mono', 'Consolas', 'Courier New', monospace;
  --font-accent: 'Instrument Serif', 'Soria', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  background-color: var(--wine-950);
  background-image:
    radial-gradient(circle at 8% 4%, rgba(244, 50, 79, 0.22), transparent 46%),
    radial-gradient(circle at 92% 96%, rgba(114, 15, 29, 0.55), transparent 52%),
    radial-gradient(circle at 60% 0%, rgba(255, 203, 69, 0.06), transparent 40%);
  background-attachment: fixed;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.08; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
.code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1px 6px;
}
.tiny { font-size: 0.82rem; color: var(--ink-soft); margin-top: 12px; }
.ico { flex: none; }

/* ── Animación de entrada ─────────────────────────────────────────────── */

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.rise { animation: rise 0.45s ease both; }

/* ==========================================================================
   LANDING PÚBLICA
   ========================================================================== */

.pub-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 30px;
  background: rgba(45, 5, 12, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 246, 239, 0.08);
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--rose), var(--red));
  box-shadow: 0 8px 18px rgba(244, 50, 79, 0.35), inset 0 -6px 12px rgba(0, 0, 0, 0.2);
  flex: none;
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--cream);
  letter-spacing: 0.01em;
}
.brand-text span {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 246, 239, 0.55);
}

.pub-nav { display: flex; gap: 4px; margin-left: auto; }
.pub-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: rgba(255, 246, 239, 0.78);
  padding: 9px 14px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.pub-nav a:hover { background: rgba(255, 246, 239, 0.1); color: var(--cream); }
.pub-nav a.btn, .pub-nav a.btn:hover { color: var(--wine-800); }

.pub { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 26px; }

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 36px;
  align-items: center;
  padding: 64px 0 48px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 246, 239, 0.18);
  background: rgba(255, 246, 239, 0.07);
  color: rgba(255, 246, 239, 0.86);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(95, 214, 164, 0.18);
}

.landing-title {
  margin: 20px 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.7rem, 5.6vw, 4.3rem);
  line-height: 0.98;
  color: var(--cream);
}
.landing-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--rose);
}
.landing-sub {
  max-width: 46ch;
  color: rgba(255, 246, 239, 0.72);
  font-size: 1.05rem;
}

.landing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }

.landing-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: rgba(255, 246, 239, 0.5);
}

.landing-art { position: relative; display: grid; place-items: center; min-height: 400px; }
.landing-art::before {
  content: '';
  position: absolute;
  width: 84%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(244, 50, 79, 0.55), rgba(114, 15, 29, 0.15) 62%, transparent 72%);
  filter: blur(6px);
}
.landing-art img {
  position: relative;
  width: min(100%, 400px);
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.art-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 16px;
  background: var(--cream);
  color: var(--wine-800);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--shadow-card);
}
.art-chip .ico { color: var(--rose-deep); }
.art-chip-a { top: 10%; left: 0; transform: rotate(-4deg); }
.art-chip-b { top: 40%; right: -4%; transform: rotate(3deg); }
.art-chip-c { bottom: 8%; left: 8%; transform: rotate(-2deg); }

.landing-section { padding: 46px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.section-eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 700;
}
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--cream); margin-top: 8px; }
.section-sub { color: rgba(255, 246, 239, 0.62); max-width: 52ch; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(244px, 1fr));
  gap: 16px;
}
.feature {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 246, 239, 0.055);
  border: 1px solid rgba(255, 246, 239, 0.1);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.feature:hover { transform: translateY(-3px); background: rgba(255, 246, 239, 0.09); border-color: rgba(244, 50, 79, 0.4); }
.feature-ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(244, 50, 79, 0.95), rgba(142, 18, 32, 0.95));
  color: var(--cream);
  margin-bottom: 14px;
  box-shadow: 0 10px 20px rgba(244, 50, 79, 0.22);
}
.feature h3 { font-size: 1.06rem; color: var(--cream); margin-bottom: 6px; }
.feature p { font-size: 0.88rem; color: rgba(255, 246, 239, 0.62); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--rose);
}
.step h3 { font-size: 1.05rem; margin: 10px 0 6px; }
.step p { font-size: 0.88rem; color: var(--ink-soft); }

.cta-band {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  padding: 34px 38px;
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, rgba(244, 50, 79, 0.9), rgba(114, 15, 29, 0.95));
  box-shadow: var(--shadow-soft);
  margin: 30px 0 60px;
}
.cta-band h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--cream); }
.cta-band p { color: rgba(255, 246, 239, 0.78); font-size: 0.94rem; margin-top: 6px; }
.cta-band .btn { margin-left: auto; }

.pub-foot {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 246, 239, 0.1);
  color: rgba(255, 246, 239, 0.5);
  font-size: 0.82rem;
}
.pub-foot a { color: rgba(255, 246, 239, 0.72); text-decoration: none; }
.pub-foot a:hover { color: var(--cream); }
.pub-foot .sep { margin-left: auto; }

/* ─── Footer Estilo Portafolio Camiloh ─── */
.pf-footer.ft {
  position: relative;
  z-index: 3;
  margin-top: clamp(40px, 6vw, 96px);
  padding: clamp(56px, 7vw, 104px) 6% clamp(24px, 3vw, 40px);
  border-radius: clamp(32px, 5vw, 64px) clamp(32px, 5vw, 64px) 0 0;
  color: var(--paper);
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(80, 120, 255, 0.38), transparent 60%),
    radial-gradient(760px 520px at 0% 108%, rgba(124, 92, 255, 0.28), transparent 60%),
    #0c0f1d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.ft-inner { position: relative; max-width: 1300px; margin: 0 auto; }
.ft-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px 48px; }
.ft-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--paper);
}
.ft-mail {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  color: var(--paper);
  padding-bottom: 6px;
  text-decoration: none;
}
.ft-mail::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--paper);
  transform-origin: left;
  transform: scaleX(0.25);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.ft-mail svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) and (pointer: fine) {
  .ft-mail:hover::after { transform: scaleX(1); }
  .ft-mail:hover svg { transform: translate(4px, -4px); }
}

.ft-main {
  display: grid;
  grid-template-columns: minmax(190px, 24%) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: end;
  margin: clamp(32px, 5vw, 64px) 0 clamp(8px, 1.5vw, 20px);
}
.ft-projects { display: flex; flex-direction: column; padding-bottom: clamp(8px, 1.4vw, 20px); }
.ft-kicker {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 241, 225, 0.55);
  margin: 0 0 8px;
}
.ft-proj {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(247, 241, 225, 0.16);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--paper);
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.ft-proj svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.6;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.ft-proj:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .ft-proj:hover { transform: translateX(6px); }
  .ft-proj:hover svg { transform: translate(3px, -3px); opacity: 1; }
}

.ft-word {
  display: block;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  padding: 0.08em 0.06em 0.12em;
  text-align: right;
  font-family: var(--font-accent);
  font-size: clamp(5.6rem, 14vw, 13rem);
  font-style: italic;
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0;
  user-select: none;
  background: linear-gradient(112deg, var(--paper) 8%, #a9e9ff 54%, #ffb08f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.14));
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.ft-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(247, 241, 225, 0.14);
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(247, 241, 225, 0.7);
}
.ft-bottom p { margin: 0; }
.ft-community { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ft-social { display: flex; gap: 10px; }
.ft-discord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px 0 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(124, 92, 255, 0.38);
  border: 1.5px solid rgba(185, 165, 255, 0.5);
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, color 0.3s ease;
}
.ft-discord svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ft-discord:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .ft-discord:hover {
    background: var(--paper);
    color: #0c0f1d;
    transform: translateY(-2px);
  }
}

.ft-social-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--paper);
  border: 1.5px solid rgba(247, 241, 225, 0.22);
  background: rgba(247, 241, 225, 0.06);
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, color 0.3s ease;
}
.ft-social-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.ft-social-link:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) {
  .ft-social-link:hover {
    background: var(--paper);
    color: #0c0f1d;
    transform: translateY(-3px);
  }
}

.ft-up {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #0c0f1d;
  background: var(--paper);
  border: 0;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ft-up svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ft-up:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) {
  .ft-up:hover { transform: translateY(-4px); }
}

/* luz tenue que sigue al cursor en el footer ([data-light]) */
[data-light]::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  mix-blend-mode: screen;
  background: radial-gradient(
    circle 380px at var(--mx, 50%) var(--my, 50%),
    rgba(255, 214, 150, 0.3) 0%,
    rgba(255, 160, 90, 0.12) 45%,
    transparent 72%
  );
}
[data-light].is-lit::after { opacity: 1; }

@media (max-width: 800px) {
  .ft-main { grid-template-columns: 1fr; }
  .ft-projects { order: 2; }
  .ft-word { text-align: center; }
  .ft-top { flex-direction: column; align-items: flex-start; }
  .ft-bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   BOTONES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 0;
  font-family: var(--font-label);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.15s ease;
}
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(160deg, var(--rose), var(--rose-deep));
  color: var(--cream);
  box-shadow: 0 12px 24px rgba(244, 50, 79, 0.32);
}
.btn-primary:hover { box-shadow: 0 16px 30px rgba(244, 50, 79, 0.4); }

.btn-cream {
  background: var(--cream);
  color: var(--wine-800);
  box-shadow: 0 10px 22px rgba(20, 0, 4, 0.22);
}
.btn-ghost {
  background: rgba(255, 246, 239, 0.1);
  color: var(--cream);
  border: 1px solid rgba(255, 246, 239, 0.22);
}
.btn-ghost:hover { background: rgba(255, 246, 239, 0.18); }

.btn-dark {
  background: linear-gradient(160deg, var(--wine-700), var(--wine-900));
  color: var(--cream);
  box-shadow: 0 12px 24px rgba(20, 0, 4, 0.28);
}
.btn-danger { background: #a5162a; color: #fff3f2; }
.btn-big { padding: 16px 28px; font-size: 1rem; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   LOGIN
   ========================================================================== */

.login-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 74px);
  padding: 48px 22px 70px;
  position: relative;
  z-index: 1;
}
.login-card {
  position: relative;
  width: min(100%, 470px);
  padding: 38px 36px 32px;
  background: var(--cream);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  text-align: left;
}
.login-mascot {
  width: 108px;
  margin: -6px auto 14px;
  filter: drop-shadow(0 12px 18px rgba(142, 18, 32, 0.18));
}
.login-card h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 2.6rem);
  color: var(--wine-700);
  text-align: center;
}
.login-card .lead {
  margin: 10px auto 22px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 34ch;
}
.login-card .btn { width: 100%; margin-bottom: 10px; }
.login-foot { margin-top: 18px; text-align: center; font-size: 0.78rem; color: var(--ink-soft); }

.login-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin: 0 0 22px; padding: 0; }
.login-chips li {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--wine-700);
}

.setup-box {
  margin: 6px 0 16px;
  padding: 16px 18px;
  background: #fff2ec;
  border: 1.5px dashed rgba(192, 20, 47, 0.45);
  border-radius: var(--radius);
}
.setup-box strong { display: block; margin-bottom: 6px; color: var(--rose-deep); font-size: 0.92rem; }
.setup-box ul { margin: 8px 0; padding-left: 18px; }
.setup-box li { font-size: 0.8rem; }
.setup-box p { font-size: 0.84rem; }

/* ==========================================================================
   PANEL
   ========================================================================== */

.app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  align-items: start;
}

/* ── Sidebar ──────────────────────────────────────────────────────────── */

.side {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 20px 20px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(90, 11, 22, 0.92), rgba(58, 7, 15, 0.94));
  border: 1px solid rgba(255, 246, 239, 0.07);
  box-shadow: var(--shadow-card);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.side-brand { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; padding-bottom: 18px; }
.side-brand img { width: 116px; filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.34)); }
.side-brand strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.01em;
  margin-top: 6px;
}
.side-brand strong em { font-style: normal; color: var(--rose); }
.side-brand span {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 246, 239, 0.45);
}

.side-label {
  margin: 16px 0 6px 12px;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 246, 239, 0.38);
}

.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 15px;
  border: 0;
  background: transparent;
  color: rgba(255, 246, 239, 0.76);
  font-size: 0.94rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s ease, color 0.15s ease;
}
.side-item .ico { color: rgba(255, 246, 239, 0.52); transition: color 0.15s ease; }
.side-item:hover { background: rgba(255, 246, 239, 0.08); color: var(--cream); }
.side-item:hover .ico { color: var(--cream); }
.side-item.is-active {
  background: linear-gradient(120deg, var(--rose), #a3122a);
  color: #fff;
  box-shadow: 0 10px 22px rgba(244, 50, 79, 0.28);
}
.side-item.is-active .ico { color: #fff; }

.side-promo {
  margin-top: auto;
  padding: 18px 16px;
  border-radius: var(--radius);
  background: rgba(255, 246, 239, 0.07);
  border: 1px solid rgba(255, 246, 239, 0.1);
  text-align: center;
}
.side-promo .ico { color: var(--gold); }
.side-promo strong { display: block; margin: 8px 0 4px; color: var(--cream); font-size: 0.94rem; }
.side-promo p { font-size: 0.76rem; color: rgba(255, 246, 239, 0.55); margin-bottom: 12px; }
.side-promo .btn { font-size: 0.82rem; padding: 10px 14px; }

.side-out { margin-top: 6px; }
.side-out .side-item { color: rgba(255, 246, 239, 0.55); font-weight: 500; }

/* ── Workspace ────────────────────────────────────────────────────────── */

.workspace { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 10px 14px;
  border-radius: 22px;
  background: rgba(90, 11, 22, 0.88);
  border: 1px solid rgba(255, 246, 239, 0.07);
  box-shadow: var(--shadow-card);
}

.guild-menu, .user-menu { position: relative; }
.guild-menu summary, .user-menu summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 15px;
  cursor: pointer;
  list-style: none;
  color: var(--cream);
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 0.15s ease;
}
.guild-menu summary::-webkit-details-marker, .user-menu summary::-webkit-details-marker { display: none; }
.guild-menu summary:hover, .user-menu summary:hover { background: rgba(255, 246, 239, 0.08); }
.guild-menu summary .ico:first-child { color: #8ea1ff; }
.guild-menu summary .chev, .user-menu summary .chev { color: rgba(255, 246, 239, 0.45); transition: transform 0.18s ease; }
details[open] > summary .chev { transform: rotate(180deg); }
.guild-name { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  min-width: 250px;
  padding: 8px;
  border-radius: 18px;
  background: var(--cream);
  box-shadow: var(--shadow-soft);
}
.menu-panel a, .menu-panel button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--cream-2); }
.menu-panel a.is-current { background: var(--cream-2); color: var(--rose-deep); }
.menu-panel .menu-empty { padding: 10px 12px; font-size: 0.82rem; color: var(--ink-soft); }
.user-menu .menu-panel { left: auto; right: 0; min-width: 210px; }

.top-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(95, 214, 164, 0.12);
  border: 1px solid rgba(95, 214, 164, 0.3);
  color: #b6f4d8;
  font-size: 0.82rem;
  font-weight: 600;
}
.online-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(95, 214, 164, 0.16); }

.user-menu summary img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255, 246, 239, 0.22); }
.user-menu summary span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Hero del panel ───────────────────────────────────────────────────── */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(200px, 32%) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 268px;
  padding: 10px 34px 10px 6px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 18% 30%, rgba(244, 50, 79, 0.5), transparent 58%),
    linear-gradient(115deg, #8e1220 0%, #5a0b16 62%, #47080f 100%);
  border: 1px solid rgba(255, 246, 239, 0.08);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.hero img.hero-mascot { width: 100%; max-width: 300px; justify-self: center; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.35)); }
.hero-copy { padding: 22px 0; }
.hero-greet {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  color: var(--cream);
  letter-spacing: -0.02em;
}
.hero-greet span { color: #ffd0d8; }
.hero-sub { margin-top: 8px; color: rgba(255, 246, 239, 0.75); font-size: 1rem; }
.hero-actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }

.hero-shape {
  position: absolute;
  pointer-events: none;
  opacity: 0.85;
}
.hero-shape.star {
  width: 46px; height: 46px;
  background: rgba(255, 246, 239, 0.16);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.hero-shape.star-a { top: 22px; right: 74px; }
.hero-shape.star-b { bottom: 34px; right: 30px; width: 26px; height: 26px; background: rgba(255, 203, 69, 0.5); }
.hero-shape.star-c { top: 50%; right: 128px; width: 18px; height: 18px; background: rgba(255, 246, 239, 0.28); }
.hero-heart {
  position: absolute;
  top: 30px;
  right: 24px;
  color: rgba(255, 255, 255, 0.35);
}

/* ── Stats ────────────────────────────────────────────────────────────── */

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--cream);
  box-shadow: var(--shadow-card);
}
.stat-ico {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--wine-700), var(--wine-900));
  color: var(--cream);
  flex: none;
}
.stat-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.stat-value { font-size: 1.85rem; font-weight: 800; line-height: 1.05; color: var(--wine-800); letter-spacing: -0.02em; }
.stat-label { font-size: 0.82rem; color: var(--ink-soft); }
.stat-note {
  margin-left: auto;
  align-self: flex-start;
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.7rem;
  font-weight: 700;
  color: #1f8a61;
  background: rgba(95, 214, 164, 0.16);
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── Filas de paneles ─────────────────────────────────────────────────── */

.grid-main { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(280px, 1fr); gap: 16px; align-items: start; }

.feed {
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.feed-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  background: linear-gradient(120deg, #8e1220, #5a0b16);
  color: var(--cream);
}
.feed-head h2 { font-size: 1.12rem; display: flex; align-items: center; gap: 9px; }
.feed-head .more {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 246, 239, 0.78);
  text-decoration: none;
}
.feed-head .more:hover { color: #fff; }

.feed-list { list-style: none; margin: 0; padding: 4px 0; }
.feed-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 22px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.feed-row:last-child { border-bottom: 0; }
.feed-row:hover { background: #fff8f2; }
.feed-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #b3172c, #7a0f1d);
  color: #fff;
  flex: none;
}
.feed-dot.dot-ok { background: linear-gradient(160deg, #3fbf8c, #1d7d55); }
.feed-dot.dot-warn { background: linear-gradient(160deg, #ffb02e, #d1791a); }
.feed-body { min-width: 0; display: flex; flex-direction: column; }
.feed-title { font-size: 0.93rem; font-weight: 600; color: #3a1218; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-sub { font-size: 0.79rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-state { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }

.chip {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(95, 214, 164, 0.16);
  color: #1d7d55;
  white-space: nowrap;
}
.chip-warn { background: rgba(255, 176, 46, 0.18); color: #a8620f; }

.status-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--cream);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.status-head { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; font-weight: 700; color: #3a1218; }
.status-head .dot { width: 8px; height: 8px; border-radius: 50%; background: #2fb983; box-shadow: 0 0 0 4px rgba(47, 185, 131, 0.16); }
.status-head .ico { margin-left: auto; color: rgba(74, 10, 20, 0.2); }
.status-card img { width: 132px; margin: 12px auto 6px; filter: drop-shadow(0 14px 18px rgba(142, 18, 32, 0.16)); }
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 26px;
  border-radius: 999px;
  background: linear-gradient(160deg, #6ee0b0, #3bbd89);
  color: var(--mint-ink);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 18px rgba(59, 189, 137, 0.28);
}
.status-meta { margin-top: 10px; font-size: 0.78rem; color: var(--ink-soft); }
.status-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 16px;
  padding: 13px;
  border-radius: 999px;
  background: linear-gradient(120deg, #a3162c, #7a0f1d);
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(122, 15, 29, 0.3);
}
.status-btn:hover { filter: brightness(1.08); }

/* ── Columna apilada (estado + accesos) ───────────────────────────────── */

.stack { display: flex; flex-direction: column; gap: 16px; }

/* ── Accesos rápidos ──────────────────────────────────────────────────── */

.quick {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--cream);
  box-shadow: var(--shadow-card);
}
.quick h2 { font-size: 1rem; color: var(--wine-800); margin-bottom: 12px; }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quick-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border-radius: 13px;
  background: #fff7f0;
  color: var(--wine-700);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.15s ease;
}
.quick-link .ico { color: var(--rose-deep); }
.quick-link:hover { background: var(--cream-2); transform: translateY(-1px); }

/* ==========================================================================
   CONTENIDO DE SECCIONES
   ========================================================================== */

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 4px 2px 0; }
.eyebrow { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: #ff9dad; font-weight: 700; }
.page-title { font-size: clamp(1.7rem, 3.2vw, 2.3rem); color: var(--cream); margin: 6px 0 4px; }
.page-sub { color: rgba(255, 246, 239, 0.62); font-size: 0.92rem; }

.guild-head { display: flex; align-items: center; gap: 16px; padding: 4px 2px; }
.guild-avatar { width: 62px; height: 62px; border-radius: 20px; flex: none; border: 2px solid rgba(255, 246, 239, 0.16); }
.guild-initial { display: grid; place-items: center; background: linear-gradient(160deg, var(--rose), var(--rose-deep)); color: var(--cream); font-weight: 800; font-size: 1.5rem; }
.guild-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--cream); }
.guild-sub { color: rgba(255, 246, 239, 0.62); font-size: 0.9rem; }

.card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--cream);
  box-shadow: var(--shadow-card);
}
.card-title { font-size: 1.2rem; color: var(--wine-800); margin-bottom: 6px; }
.card-help { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 20px; max-width: 74ch; }

.form { display: flex; flex-direction: column; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.label { font-size: 0.92rem; font-weight: 600; color: #3a1218; }

.input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  padding: 12px 14px;
  background: #fff;
  border: 1.5px solid #e8d3ca;
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(244, 50, 79, 0.13); }
.select {
  appearance: none;
  padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--wine-700) 50%),
    linear-gradient(135deg, var(--wine-700) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  background-color: #fff;
}
.textarea { resize: vertical; line-height: 1.55; font-size: 0.86rem; }
.hint { font-size: 0.8rem; color: var(--ink-soft); }

.rule { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.card .btn-ghost { background: var(--cream-2); color: var(--wine-700); border: 0; }
.card .btn-ghost:hover { background: #f2d9cd; }

.summary { list-style: none; margin: 0; padding: 0; }
.summary li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.summary li:last-child { border-bottom: 0; }
.summary span { color: var(--ink-soft); font-size: 0.9rem; }
.summary strong { font-family: var(--font-mono); font-size: 0.9rem; text-align: right; color: var(--wine-800); }

/* checklist honeypot */
.checklist { display: flex; flex-direction: column; gap: 10px; }
.search { max-width: 320px; }
.checklist-rows {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
  padding: 12px;
  border: 1.5px dashed #e0c3b7;
  border-radius: var(--radius);
  background: #fff8f2;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 11px;
  background: #fff;
  border: 1.5px solid #efdcd2;
  font-size: 0.88rem;
  cursor: pointer;
}
.check-row:hover { border-color: #d9a999; }
.check-row input { accent-color: var(--rose); width: 16px; height: 16px; }
.check-row .mono { color: var(--ink-soft); }

/* radios anti-raid */
.radio-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.radio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1.5px solid #e8d3ca;
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.radio-card:hover { transform: translateY(-2px); border-color: #d9a999; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card strong { font-size: 0.98rem; color: var(--wine-800); }
.radio-card small { color: var(--ink-soft); font-size: 0.8rem; }
.radio-card.is-picked,
.radio-card:has(input:checked) { background: #fff2f4; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(244, 50, 79, 0.1); }

/* ==========================================================================
   SERVIDORES
   ========================================================================== */

.servers-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 6px 2px 2px; }
.guild-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.guild-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--cream);
  box-shadow: var(--shadow-card);
  transition: transform 0.16s ease;
}
.guild-card:hover { transform: translateY(-3px); }
.guild-card-top { display: flex; align-items: center; gap: 13px; min-width: 0; }
.guild-card-icon { width: 54px; height: 54px; border-radius: 17px; flex: none; }
.guild-card-meta { min-width: 0; display: flex; flex-direction: column; }
.guild-card-meta strong {
  font-size: 0.98rem;
  color: #3a1218;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.guild-card-meta small { color: var(--ink-soft); font-size: 0.72rem; overflow-wrap: anywhere; }
.guild-card .btn { width: 100%; }

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 48px 24px;
  border-radius: var(--radius-lg);
  background: var(--cream);
  box-shadow: var(--shadow-card);
}
.empty-face { font-family: var(--font-display); font-size: 2.6rem; color: var(--rose); }
.empty .card-title { margin: 0; }

/* ==========================================================================
   ERROR · TOASTS · AVISOS
   ========================================================================== */

.error-card {
  max-width: 560px;
  margin: 40px auto;
  padding: 38px;
  text-align: center;
  border-radius: var(--radius-xl);
  background: var(--cream);
  box-shadow: var(--shadow-soft);
}
.error-code {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fff2f4;
  color: var(--rose-deep);
  margin-bottom: 14px;
}
.error-card .page-title { color: var(--wine-800); }
.error-card .page-sub { color: var(--ink-soft); }
.error-card .actions { justify-content: center; }
.error-card .btn-ghost { background: var(--cream-2); color: var(--wine-700); }

.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  animation: toast-in 0.25s ease;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast-ok { background: var(--mint); color: var(--mint-ink); }
.toast-err { background: #ffd9de; color: #8c1226; }
.toast.is-hidden { opacity: 0; transform: translate(-50%, -12px); }
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, -12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.demo-banner {
  position: relative;
  z-index: 2;
  padding: 9px 20px;
  background: rgba(255, 203, 69, 0.14);
  border-bottom: 1px solid rgba(255, 203, 69, 0.28);
  color: #ffe3a3;
  font-size: 0.82rem;
  text-align: center;
}
.demo-banner strong { color: var(--gold); }

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

@media (max-width: 1180px) {
  .app { grid-template-columns: 250px minmax(0, 1fr); }
  .grid-main { grid-template-columns: minmax(0, 1fr); }
  .side-brand img { width: 96px; }
  .landing-hero { gap: 20px; }
}

@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .side { position: static; max-height: none; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 14px; gap: 8px; }
  .side-brand { flex-direction: row; padding: 0 10px 0 0; gap: 8px; }
  .side-brand img { width: 44px; }
  .side-brand strong { font-size: 1.1rem; margin: 0; }
  .side-brand span, .side-label, .side-promo, .side-out { display: none; }
  .side-nav { flex-direction: row; gap: 4px; overflow-x: auto; }
  .side-item { white-space: nowrap; padding: 9px 12px; font-size: 0.86rem; }
  .landing-hero { grid-template-columns: minmax(0, 1fr); padding-top: 40px; }
  .landing-art { order: -1; min-height: 260px; }
  .landing-art img { width: min(70%, 300px); }
  .art-chip { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(160px, 30%) minmax(0, 1fr); padding-right: 22px; }
}

@media (max-width: 720px) {
  .pub-top { padding: 12px 16px; gap: 10px; }
  .pub-nav a:not(.btn) { display: none; }
  .pub { padding: 0 16px; }
  .login-card { padding: 28px 22px; }
  .stats, .quick-grid, .grid-2, .radio-cards { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: minmax(0, 1fr); text-align: center; padding: 18px 18px 24px; }
  .hero img.hero-mascot { max-width: 190px; }
  .hero-copy { padding: 0 0 6px; }
  .hero-actions { justify-content: center; }
  .hero-shape { display: none; }
  .top { flex-wrap: wrap; }
  .online-pill { display: none; }
  .guild-name { max-width: 130px; }
  .card { padding: 20px; }
  .feed-row { padding: 12px 16px; }
  .feed-head { padding: 14px 16px; }
  .stat-note { display: none; }
}

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