/* ═══════════════════════════════════════════════════════════════
   CAGANERS · sistema visual
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:        #0a0807;
  --bg-soft:   #121010;
  --panel:     rgba(255, 250, 244, 0.045);
  --panel-2:   rgba(255, 250, 244, 0.075);
  --line:      rgba(255, 238, 220, 0.10);
  --line-soft: rgba(255, 238, 220, 0.055);

  --ink:       #f7f1e8;
  --ink-2:     #cbbfb1;
  --muted:     #8d8175;

  --gold:      #f5b73f;
  --ember:     #ff7a35;
  --plum:      #a855f7;
  --mint:      #4ade80;
  --sky:       #56b6f5;
  --rose:      #fb6f6f;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow:    0 18px 48px -18px rgba(0, 0, 0, .85);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, .95);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --font: 'Outfit', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Space Grotesk', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ───────────────────────── fondo vivo ───────────────────────── */

.backdrop { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.backdrop::after {
  content: ''; position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
  opacity: .16; mix-blend-mode: overlay; pointer-events: none;
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .40;
  animation: drift 26s var(--ease) infinite alternate;
}
.blob.b1 { width: 46vw; height: 46vw; top: -14vw; left: -8vw;  background: radial-gradient(circle, #b4531a, transparent 68%); }
.blob.b2 { width: 40vw; height: 40vw; top: 22vh; right: -12vw; background: radial-gradient(circle, #6d28a8, transparent 68%); animation-delay: -9s; }
.blob.b3 { width: 38vw; height: 38vw; bottom: -14vw; left: 26vw; background: radial-gradient(circle, #8a6210, transparent 68%); animation-delay: -17s; }

@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(4vw, -5vh, 0) scale(1.12); }
  100% { transform: translate3d(-3vw, 4vh, 0) scale(.94); }
}

/* ───────────────────────── primitivas ───────────────────────── */

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .78rem 1.35rem;
  font: 600 .95rem/1 var(--font);
  color: var(--ink);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s, border-color .18s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover  { background: rgba(255,250,244,.12); border-color: rgba(255,238,220,.22); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.btn-primary {
  color: #1a0f04; border: none;
  background: linear-gradient(135deg, var(--gold), var(--ember));
  box-shadow: 0 10px 30px -10px rgba(245,183,63,.65);
}
.btn-primary:hover { box-shadow: 0 18px 40px -12px rgba(245,183,63,.8); background: linear-gradient(135deg, #ffc757, #ff8b4a); }
.btn-ghost { background: transparent; }
.btn-sm { padding: .5rem .95rem; font-size: .84rem; }
.btn-block { width: 100%; }

.input, .select, .textarea {
  width: 100%;
  padding: .85rem 1rem;
  font: 500 1rem/1.4 var(--font);
  color: var(--ink);
  background: rgba(0,0,0,.32);
  border: 1px solid var(--line);
  border-radius: var(--r);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(245,183,63,.55);
  box-shadow: 0 0 0 4px rgba(245,183,63,.12);
  background: rgba(0,0,0,.5);
}
.textarea { resize: vertical; min-height: 84px; }

.label {
  display: block; margin-bottom: .5rem;
  font: 600 .74rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}

.chip {
  padding: .42rem .8rem;
  font: 600 .8rem/1 var(--font);
  color: var(--ink-2);
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  cursor: pointer;
  transition: all .18s var(--ease);
}
.chip:hover { border-color: rgba(255,238,220,.25); color: var(--ink); }
.chip.on {
  color: #1a0f04; background: linear-gradient(135deg, var(--gold), var(--ember));
  border-color: transparent; box-shadow: 0 6px 18px -8px rgba(245,183,63,.8);
}
.chip-add { border-style: dashed; background: transparent; }
.chip-add:hover { border-color: rgba(255,238,220,.4); }

.tag {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .28rem .62rem;
  font: 600 .74rem/1 var(--font);
  color: var(--ink-2);
  background: rgba(255,250,244,.06);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}

.muted { color: var(--muted); }
.mono  { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ───────────────────────── pantalla de acceso ───────────────────────── */

.gate {
  display: grid; grid-template-columns: 1.05fr .95fr;
  min-height: 100dvh;
}
.gate-hero {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2rem, 6vw, 6rem);
  overflow: hidden;
}
.gate-mark {
  display: flex; align-items: center; gap: .8rem;
  margin-bottom: 2.5rem;
}
.gate-mark .glyph { font-size: 2.4rem; animation: bob 3.6s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-9px) rotate(4deg); } }

.wordmark {
  font: 800 1.35rem/1 var(--font);
  letter-spacing: -.02em;
}
.wordmark span { color: var(--gold); }

.gate-title {
  font: 800 clamp(2.8rem, 6.4vw, 5.2rem)/0.95 var(--font);
  letter-spacing: -.045em;
  margin-bottom: 1.4rem;
}
.gate-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold) 10%, var(--ember) 55%, var(--plum) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gate-sub {
  max-width: 30rem; margin-bottom: 2.6rem;
  font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.65; color: var(--ink-2);
}
.gate-feats { display: flex; flex-wrap: wrap; gap: .6rem; }

.gate-panel {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.55));
  border-left: 1px solid var(--line-soft);
}
.gate-form { width: min(26rem, 100%); padding: clamp(1.6rem, 3vw, 2.4rem); }

.tabs {
  display: grid; grid-auto-flow: column; gap: .25rem;
  padding: .3rem; margin-bottom: 1.6rem;
  background: rgba(0,0,0,.35); border: 1px solid var(--line-soft); border-radius: 999px;
}
.tabs button {
  padding: .62rem 1rem;
  font: 700 .88rem/1 var(--font); color: var(--muted);
  background: none; border: none; border-radius: 999px; cursor: pointer;
  transition: all .2s var(--ease);
}
.tabs button.on { color: #1a0f04; background: linear-gradient(135deg, var(--gold), var(--ember)); }

.field { margin-bottom: 1.05rem; }

.avatar-grid { display: flex; flex-wrap: wrap; gap: .4rem; }
.avatar-grid button {
  width: 2.6rem; height: 2.6rem; font-size: 1.3rem;
  background: rgba(0,0,0,.3); border: 1px solid var(--line-soft); border-radius: 12px;
  cursor: pointer; transition: all .18s var(--ease);
}
.avatar-grid button:hover { transform: scale(1.12) rotate(-6deg); }
.avatar-grid button.on {
  border-color: var(--gold); background: rgba(245,183,63,.16);
  box-shadow: 0 0 0 3px rgba(245,183,63,.16);
}

.hue-row { display: flex; gap: .4rem; flex-wrap: wrap; }
.hue-row button {
  width: 1.9rem; height: 1.9rem; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; transition: transform .18s var(--ease);
}
.hue-row button:hover { transform: scale(1.18); }
.hue-row button.on { border-color: var(--ink); transform: scale(1.14); }

.err {
  padding: .7rem .9rem; margin-bottom: 1rem;
  font-size: .87rem; color: #ffc9c9;
  background: rgba(251,111,111,.12); border: 1px solid rgba(251,111,111,.32);
  border-radius: var(--r-sm);
  animation: shake .35s var(--ease);
}
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }

/* ───────────────────────── cabecera de la app ───────────────────────── */

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 1rem;
  padding: .8rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(10,8,7,.72);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.brand { display: flex; align-items: center; gap: .6rem; cursor: pointer; }
.brand .glyph { font-size: 1.5rem; transition: transform .3s var(--ease); }
.brand:hover .glyph { transform: rotate(-14deg) scale(1.15); }

.nav { display: flex; gap: .2rem; margin-left: auto; }
.nav button {
  position: relative;
  padding: .55rem .95rem;
  font: 600 .9rem/1 var(--font); color: var(--muted);
  background: none; border: none; border-radius: 999px; cursor: pointer;
  transition: color .2s;
}
.nav button:hover { color: var(--ink); }
.nav button.on { color: var(--ink); background: var(--panel-2); }

.me-chip {
  display: flex; align-items: center; gap: .55rem;
  padding: .35rem .8rem .35rem .35rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; transition: all .2s var(--ease);
}
.me-chip:hover { border-color: rgba(255,238,220,.25); transform: translateY(-1px); }

.dot {
  display: inline-block; width: .5rem; height: .5rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--ember));
  box-shadow: 0 0 6px rgba(245,183,63,.7);
}

.face {
  display: grid; place-items: center;
  width: 2.1rem; aspect-ratio: 1;
  font-size: 1.05rem; border-radius: 50%;
  background: hsl(var(--h, 35) 70% 22%);
  border: 1px solid hsl(var(--h, 35) 80% 45% / .5);
  flex-shrink: 0;
}
.face.lg { width: 3.4rem; font-size: 1.7rem; }
.face.xl { width: 5rem; font-size: 2.6rem; }

/* ───────────────────────── layout ───────────────────────── */

.wrap { width: min(70rem, 100%); margin: 0 auto; padding: clamp(1.2rem, 3vw, 2.4rem) clamp(1rem, 4vw, 2rem) 7rem; }
.view { animation: rise .45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem;
}
.section-head h2 { font: 800 clamp(1.5rem, 3vw, 2.1rem)/1.1 var(--font); letter-spacing: -.035em; }
.section-head p { font-size: .9rem; color: var(--muted); margin-top: .3rem; }

/* ───────────────────────── pulso comunitario ───────────────────────── */

.pulse {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 1px;
  overflow: hidden; margin-bottom: 1.4rem;
  background: var(--line-soft);
}
.pulse .cell { padding: 1.1rem 1.2rem; background: rgba(18,16,16,.72); }
.pulse .n {
  font: 800 clamp(1.5rem, 3vw, 2.1rem)/1 var(--mono); letter-spacing: -.03em;
  background: linear-gradient(135deg, var(--gold), var(--ember));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pulse .k { margin-top: .3rem; font: 600 .7rem/1 var(--font); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }

.crown-line {
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem 1.1rem; margin: -.7rem 0 1.4rem;
  font-size: .88rem; color: var(--ink-2);
  background: linear-gradient(90deg, rgba(245,183,63,.13), transparent 70%);
  border: 1px solid rgba(245,183,63,.22);
  border-radius: var(--r);
}
.crown-line strong { color: var(--ink); }
.crown-line .glyph { font-size: 1.1rem; animation: bob 3s ease-in-out infinite; }

/* ───────────────────────── tarjetas del feed ───────────────────────── */

.feed { display: flex; flex-direction: column; gap: .9rem; }

.post {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem;
  padding: 1.1rem 1.2rem;
  animation: rise .4s var(--ease) both;
  transition: border-color .25s, transform .25s var(--ease);
}
.post:hover { border-color: rgba(255,238,220,.2); transform: translateY(-2px); }
.post-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .5rem; }
.post-name { font-weight: 700; cursor: pointer; }
.post-name:hover { color: var(--gold); }
.post-time { font-size: .8rem; color: var(--muted); }
.post-note { margin: .55rem 0; font-size: .95rem; line-height: 1.55; color: var(--ink-2); }

.incognito-tag { border-color: rgba(168,85,247,.4); background: rgba(168,85,247,.12); color: #d8b4fe; }

.guess-row { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line-soft); }
.guess-avatars { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.guess-avatar {
  padding: 0; border: 2px solid transparent; border-radius: 999px; cursor: pointer;
  background: transparent; line-height: 0; transition: all .16s var(--ease);
}
.guess-avatar .face { width: 2.1rem; font-size: 1rem; }
.guess-avatar:hover { transform: translateY(-2px); }
.guess-avatar.on { border-color: var(--plum); }

.verdict {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .7rem; border-radius: 999px;
  font: 700 .76rem/1 var(--font);
}
.verdict.best { color: #86efac; background: rgba(74,222,128,.14); border: 1px solid rgba(74,222,128,.3); }
.verdict.good { color: #fde68a; background: rgba(245,183,63,.13); border: 1px solid rgba(245,183,63,.28); }
.verdict.warn { color: #fdba74; background: rgba(255,122,53,.13); border: 1px solid rgba(255,122,53,.3); }
.verdict.bad  { color: #fca5a5; background: rgba(251,111,111,.13); border: 1px solid rgba(251,111,111,.3); }

.meta-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }

.reacts { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line-soft); }
.react {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .6rem;
  font: 600 .82rem/1 var(--font); color: var(--ink-2);
  background: rgba(255,250,244,.05); border: 1px solid var(--line-soft); border-radius: 999px;
  cursor: pointer; transition: all .16s var(--ease);
}
.react:hover { transform: translateY(-2px) scale(1.06); background: rgba(255,250,244,.1); }
.react.mine { color: var(--gold); background: rgba(245,183,63,.14); border-color: rgba(245,183,63,.4); }
.react-add { opacity: .5; }
.react-add:hover { opacity: 1; }
.react .pop { animation: pop .3s var(--ease); }
@keyframes pop { 0% { transform: scale(1); } 45% { transform: scale(1.5); } 100% { transform: scale(1); } }

.comments { margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--line-soft); }
.comment { display: flex; align-items: flex-start; gap: .5rem; padding: .4rem 0; }
.cm-name { font-weight: 700; font-size: .82rem; }
.cm-time { margin-left: .4rem; font-size: .74rem; color: var(--muted); }
.cm-body { margin-top: .15rem; font-size: .88rem; line-height: 1.45; color: var(--ink-2); word-break: break-word; }
.cm-del {
  flex-shrink: 0; padding: .2rem .4rem; font-size: .8rem; color: var(--muted);
  background: none; border: none; cursor: pointer; opacity: .5; transition: opacity .15s;
}
.cm-del:hover { opacity: 1; color: var(--rose); }
.comment-form { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; }
.cm-input {
  flex: 1; padding: .5rem .8rem; font: 500 .85rem/1 var(--font); color: var(--ink);
  background: rgba(255,250,244,.05); border: 1px solid var(--line-soft); border-radius: 999px;
}
.cm-input:focus { outline: none; border-color: rgba(245,183,63,.4); }
.cm-input::placeholder { color: var(--muted); }
.cm-send {
  flex-shrink: 0; width: 2.1rem; height: 2.1rem; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--ink); background: rgba(255,250,244,.08); border: 1px solid var(--line-soft);
  border-radius: 999px; cursor: pointer; transition: all .16s var(--ease);
}
.cm-send:hover { background: linear-gradient(135deg, var(--gold), var(--ember)); color: #1a0f04; border-color: transparent; }

/* ───────────────────────── ilustración Bristol ───────────────────────── */

.bristol-art { width: 4.6rem; height: 4.6rem; flex-shrink: 0; }
.bristol-art.sm { width: 3rem; height: 3rem; }
.bristol-art.lg { width: 100%; height: auto; aspect-ratio: 1; }

.bristol-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .7rem;
}
.bcard {
  position: relative; overflow: hidden;
  padding: .9rem .8rem; text-align: center;
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r);
  cursor: pointer; transition: all .22s var(--ease);
}
.bcard:hover { transform: translateY(-4px); border-color: rgba(255,238,220,.28); background: var(--panel-2); }
.bcard.on {
  border-color: hsl(var(--bh) 80% 55% / .75);
  background: hsl(var(--bh) 70% 50% / .13);
  box-shadow: 0 0 0 3px hsl(var(--bh) 80% 55% / .16), 0 16px 34px -18px hsl(var(--bh) 80% 50% / .6);
}
.bcard .n {
  position: absolute; top: .5rem; left: .6rem;
  font: 800 .78rem/1 var(--mono); color: var(--muted);
}
.bcard .t { margin-top: .4rem; font: 700 .88rem/1.2 var(--font); }
.bcard .s { margin-top: .2rem; font-size: .74rem; color: var(--muted); }

/* ───────────────────────── modal ───────────────────────── */

.veil {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  padding: 1rem;
  background: rgba(4,3,3,.75);
  backdrop-filter: blur(10px);
  animation: fade .25s var(--ease);
  overflow-y: auto;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: min(38rem, 100%);
  max-height: min(88dvh, 52rem);
  display: flex; flex-direction: column;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  animation: zoom .38s var(--ease);
}
.modal.wide { width: min(52rem, 100%); }
@keyframes zoom { from { opacity: 0; transform: translateY(24px) scale(.95); } to { opacity: 1; transform: none; } }

.modal-head {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.3rem 1.5rem 1rem;
  border-bottom: 1px solid var(--line-soft);
}
.modal-head h3 { font: 800 1.3rem/1.2 var(--font); letter-spacing: -.03em; }
.modal-head p { margin-top: .2rem; font-size: .84rem; color: var(--muted); }
.modal-body { padding: 1.4rem 1.5rem; overflow-y: auto; flex: 1; }
.modal-foot {
  display: flex; align-items: center; gap: .7rem;
  padding: 1.1rem 1.5rem; border-top: 1px solid var(--line-soft);
}
.x {
  margin-left: auto; width: 2.2rem; height: 2.2rem; flex-shrink: 0;
  font-size: 1.1rem; color: var(--muted);
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: 50%;
  cursor: pointer; transition: all .2s;
}
.x:hover { color: var(--ink); background: var(--panel-2); transform: rotate(90deg); }

/* ───────────────────────── controles del registro ───────────────────────── */

.stepper { display: flex; gap: .35rem; margin-bottom: 1.4rem; }
.step-title {
  margin-bottom: 1.1rem; padding-bottom: .7rem;
  font: 800 1.02rem/1.2 var(--font); letter-spacing: -.02em;
  border-bottom: 1px solid var(--line-soft);
}
.stepper i {
  height: 3px; flex: 1; border-radius: 999px; background: var(--line);
  transition: background .3s var(--ease);
}
.stepper i.on { background: linear-gradient(90deg, var(--gold), var(--ember)); }

.range { width: 100%; height: 6px; appearance: none; background: var(--line); border-radius: 999px; outline: none; }
.range::-webkit-slider-thumb {
  appearance: none; width: 22px; height: 22px; border-radius: 50%; cursor: grab;
  background: linear-gradient(135deg, var(--gold), var(--ember));
  box-shadow: 0 4px 14px -3px rgba(245,183,63,.8), 0 0 0 4px rgba(245,183,63,.14);
  transition: transform .15s;
}
.range::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.2); }
.range::-moz-range-thumb {
  width: 22px; height: 22px; border: none; border-radius: 50%; cursor: grab;
  background: linear-gradient(135deg, var(--gold), var(--ember));
}

.big-num {
  font: 800 2.6rem/1 var(--mono); letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--gold), var(--ember));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.stars { display: flex; gap: .3rem; }
.stars button {
  font-size: 1.9rem; line-height: 1; background: none; border: none; cursor: pointer;
  filter: grayscale(1) opacity(.3); transition: all .18s var(--ease);
}
.stars button:hover { transform: scale(1.25) rotate(8deg); }
.stars button.on { filter: none; transform: scale(1.08); }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.verdicts { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: .55rem 0 .1rem; }
.verdicts .chip { padding: .3rem .6rem; font-size: .74rem; }

/* ───────────────────────── ranking ───────────────────────── */

.podium {
  /* minmax(0,1fr): el 2º y 3º puesto pueden venir vacíos (menos de 3 personas
     con registros en el periodo), y esa mezcla de columnas vacías y con
     contenido es justo lo que descuadra el reparto igualitario de 1fr a secas. */
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end;
  gap: .8rem; margin-bottom: 1.6rem;
}
.step {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: 1.3rem .8rem 1.1rem; text-align: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
  animation: rise .5s var(--ease) both;
}
.step.p1 { padding-top: 2.2rem; border-color: rgba(245,183,63,.45); background: linear-gradient(180deg, rgba(245,183,63,.14), var(--panel)); box-shadow: 0 24px 60px -28px rgba(245,183,63,.7); }
.step.p2 { animation-delay: .06s; }
.step.p3 { animation-delay: .12s; }
.step .crown { font-size: 1.6rem; }
.step .who { font: 700 .95rem/1.2 var(--font); }
.step .num { font: 800 1.7rem/1 var(--mono); }
.step .lbl { font: 600 .68rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.rank-row {
  display: grid; grid-template-columns: 2.2rem auto 1fr auto; align-items: center; gap: .9rem;
  padding: .85rem 1rem; margin-bottom: .45rem;
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r);
  cursor: pointer; transition: all .2s var(--ease);
  animation: rise .4s var(--ease) both;
}
.rank-row:hover { transform: translateX(4px); border-color: rgba(255,238,220,.22); background: var(--panel-2); }
.rank-row.me { border-color: rgba(245,183,63,.5); background: rgba(245,183,63,.07); }
.rank-row .pos { font: 800 1rem/1 var(--mono); color: var(--muted); text-align: center; }
.rank-stats { display: flex; align-items: center; gap: 1rem; }
.rank-stats .v { font: 800 1.15rem/1 var(--mono); }
.rank-stats .u { font-size: .68rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

/* ───────────────────────── estadísticas ───────────────────────── */

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .7rem; margin-bottom: 1.2rem; }
.stat { padding: 1.1rem; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line-soft); }
.stat .v { font: 800 1.7rem/1.12 var(--mono); letter-spacing: -.035em; }
.stat .k { margin-top: .35rem; font: 600 .7rem/1.3 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stat .sub { margin-top: .3rem; font-size: .76rem; color: var(--muted); }

.panel { padding: 1.3rem; margin-bottom: 1rem; }
.panel h3 { margin-bottom: 1rem; font: 700 1.02rem/1 var(--font); }
.panel h3 small { margin-left: .5rem; font: 500 .78rem/1 var(--font); color: var(--muted); }

.oracle-card {
  border-color: rgba(168,85,247,.3);
  background: linear-gradient(135deg, rgba(168,85,247,.09), var(--panel));
}
.oracle-card h3 { margin-bottom: .5rem; }

.mission-card { border-color: rgba(245,183,63,.25); }
.mission-card h3 { margin-bottom: .4rem; }

.changelog-entry { padding: 1rem 0; border-top: 1px solid var(--line-soft); }
.changelog-entry:first-child { border-top: none; padding-top: 0; }
.changelog-entry.latest .cl-head strong { color: var(--gold); }
.cl-head { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; margin-bottom: .55rem; }
.cl-head strong { font-size: 1rem; }
.cl-list { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.cl-list li { font-size: .88rem; color: var(--ink-2); line-height: 1.45; }

.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 3px; overflow-x: auto; padding-bottom: .3rem; }
.heat i {
  width: 13px; height: 13px; border-radius: 3px;
  background: rgba(255,250,244,.05);
  transition: transform .15s var(--ease);
}
.heat i:hover { transform: scale(1.5); z-index: 2; }
.heat i.l1 { background: rgba(245,183,63,.28); }
.heat i.l2 { background: rgba(245,183,63,.5); }
.heat i.l3 { background: rgba(255,122,53,.75); }
.heat i.l4 { background: linear-gradient(135deg, var(--gold), var(--ember)); box-shadow: 0 0 10px -1px rgba(245,183,63,.6); }

/* minmax(0,1fr) en vez de 1fr a secas: con columnas a 1fr, en cuanto una fila
   mezcla celdas vacías (los días en blanco antes del día 1) con celdas con
   contenido, Chromium reparte el ancho de forma desigual entre columnas -y en
   móvil, encima, se salía de la pantalla. Con el 0 explícito como mínimo, las
   siete columnas quedan siempre iguales y dentro del ancho disponible. */
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-head { text-align: center; font: 700 .68rem/1 var(--font); letter-spacing: .08em; color: var(--muted); padding-bottom: .3rem; }
.cal-cell {
  aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 8px; background: rgba(255,250,244,.03);
  transition: all .15s var(--ease);
}
.cal-cell.empty { background: none; }
.cal-cell[data-act] { cursor: pointer; }
.cal-cell[data-act]:hover { transform: scale(1.08); }
.cal-cell .cal-day { font: 700 .78rem/1 var(--mono); color: var(--ink-2); }
.cal-cell .cal-count { margin-top: 2px; font: 700 .64rem/1 var(--mono); color: var(--gold); }
.cal-cell.l1 { background: rgba(245,183,63,.22); }
.cal-cell.l2 { background: rgba(245,183,63,.42); }
.cal-cell.l3 { background: linear-gradient(135deg, var(--gold), var(--ember)); }
.cal-cell.l3 .cal-day, .cal-cell.l3 .cal-count { color: #1a0f04; }

.bars { display: flex; flex-direction: column; gap: .55rem; }
.bar-row { display: grid; grid-template-columns: 7rem 1fr 2.4rem; align-items: center; gap: .7rem; font-size: .82rem; }
.bar-track { display: block; height: 9px; background: rgba(255,250,244,.05); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; transform-origin: left; animation: grow .8s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.medals { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .6rem; }
.medal {
  padding: 1rem .7rem; text-align: center;
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r);
  transition: all .22s var(--ease);
}
.medal .i { font-size: 1.9rem; filter: grayscale(1) opacity(.28); transition: all .3s var(--ease); }
.medal .n { margin-top: .45rem; font: 700 .82rem/1.2 var(--font); color: var(--muted); }
.medal .d { margin-top: .3rem; font-size: .7rem; line-height: 1.4; color: var(--muted); opacity: .7; }
.medal.got { border-color: rgba(245,183,63,.35); background: rgba(245,183,63,.07); }
.medal.got .i { filter: none; animation: bob 4s ease-in-out infinite; }
.medal.got .n { color: var(--ink); }
.medal.got:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 18px 36px -20px rgba(245,183,63,.7); }

.clock { display: block; width: 100%; max-width: 17rem; height: auto; margin: 0 auto; }

/* ───────────────────────── récords y retos ───────────────────────── */

.records-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .8rem; }
.record {
  padding: 1.2rem; text-align: center;
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  animation: rise .45s var(--ease) both; transition: all .2s var(--ease);
}
.record[data-act] { cursor: pointer; }
.record[data-act]:hover { transform: translateY(-3px); border-color: rgba(255,238,220,.22); background: var(--panel-2); }
.record .i { font-size: 1.8rem; }
.record .v { margin-top: .4rem; font: 800 1.5rem/1.15 var(--mono); letter-spacing: -.02em; }
.record .t { margin-top: .3rem; font: 700 .88rem/1.2 var(--font); }
.record .d { margin-top: .3rem; font-size: .76rem; color: var(--muted); line-height: 1.4; }
.record .who {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  margin-top: .7rem; padding-top: .6rem; border-top: 1px solid var(--line-soft);
  font-size: .82rem; font-weight: 600;
}

.duel-row { display: flex; align-items: center; gap: .6rem; padding: .6rem 0; border-bottom: 1px solid var(--line-soft); font-size: .9rem; }
.duel-row:last-child { border-bottom: none; }

.cup-round { margin-bottom: 1.3rem; }
.cup-round h4 { font: 700 .82rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.cup-matches { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .6rem; }
.cup-match {
  border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden;
  background: var(--panel);
}
.cup-side { display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem; }
.cup-side:first-child { border-bottom: 1px solid var(--line-soft); }
.cup-side[data-act] { cursor: pointer; }
.cup-side[data-act]:hover { background: var(--panel-2); }
.cup-side.bye { color: var(--muted); font-size: .85rem; }
.cup-name { flex: 1; min-width: 0; font-weight: 600; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cup-count { color: var(--muted); }
.cup-side.win { background: rgba(245,183,63,.1); }
.cup-side.win .cup-name { color: var(--gold); font-weight: 800; }
.cup-side.win .cup-count { color: var(--gold); font-weight: 800; }

/* ───────────────────────── SOS: laberinto a oscuras ───────────────────────── */

.maze-wrap {
  display: flex; justify-content: center; margin: 0 auto;
  border-radius: var(--r); overflow: hidden; border: 1px solid var(--line);
  background: #050403; max-width: 22rem;
}
.maze-wrap canvas { display: block; }
.maze-wrap.shake { animation: maze-shake .32s var(--ease); }
@keyframes maze-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
.maze-hint { margin: .8rem 0; font-size: .85rem; min-height: 1.2em; }

.dpad {
  display: grid; gap: .4rem; margin: 0 auto; width: 9.5rem;
  grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr);
  grid-template-areas: ". n ." "w s e";
}
.dpad-btn {
  aspect-ratio: 1; display: grid; place-items: center;
  font-size: 1.2rem; border-radius: var(--r-sm); cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); color: var(--ink);
  transition: all .14s var(--ease); user-select: none; -webkit-user-select: none;
}
.dpad-btn:hover, .dpad-btn:active { background: var(--panel-2); border-color: rgba(245,183,63,.4); transform: scale(.94); }

/*
 * La mano entra volando desde el lateral, cierra el puño justo al llegar al
 * rollo -con una chispa del golpe- y el conjunto agarrado hace un bailecito
 * de victoria antes de quedarse quieto, ladeado y triunfal.
 */
.grab-anim { position: relative; height: 4.6rem; width: 7.5rem; margin: 0 auto .3rem; }
.grab-hand, .grab-fist, .grab-paper, .grab-spark {
  position: absolute; top: 50%; left: 60%; transform: translate(-50%, -50%);
}
.grab-hand {
  font-size: 2.5rem;
  animation: grab-swoop .32s cubic-bezier(.3,-.4,.6,1.4) both, grab-hide 1ms .32s linear forwards;
}
.grab-fist {
  font-size: 2.5rem; opacity: 0;
  animation: grab-appear 1ms .32s linear forwards, grab-shake .9s .33s ease-in-out 2 both;
}
.grab-paper {
  font-size: 2.2rem;
  animation: grab-paper-vanish .16s .3s ease-in forwards;
}
.grab-spark {
  font-size: 1.6rem; opacity: 0;
  animation: grab-spark-pop .55s .3s ease-out forwards;
}

@keyframes grab-swoop {
  0%   { transform: translate(-320%, -20%) rotate(-45deg) scale(.7); opacity: 0; }
  55%  { opacity: 1; }
  100% { transform: translate(-50%, -50%) rotate(-6deg) scale(1); opacity: 1; }
}
@keyframes grab-hide { to { opacity: 0; } }
@keyframes grab-appear { to { opacity: 1; } }
@keyframes grab-paper-vanish {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(.25) rotate(-25deg); }
}
@keyframes grab-shake {
  0%, 100% { transform: translate(-50%, -50%) rotate(-6deg) scale(1.05); }
  20%      { transform: translate(-44%, -64%) rotate(14deg) scale(1.15); }
  45%      { transform: translate(-56%, -42%) rotate(-20deg) scale(1.08); }
  70%      { transform: translate(-46%, -60%) rotate(12deg) scale(1.12); }
}
@keyframes grab-spark-pop {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.2) rotate(0deg); }
  45%  { opacity: 1; transform: translate(-95%, -85%) scale(1.5) rotate(35deg); }
  100% { opacity: 0; transform: translate(-120%, -105%) scale(1.9) rotate(70deg); }
}

/* ───────────────────────── botón flotante ───────────────────────── */

.fab-stack {
  position: fixed; right: clamp(1rem, 4vw, 2.5rem); bottom: clamp(1rem, 4vw, 2.2rem); z-index: 45;
  display: flex; flex-direction: column; align-items: flex-end; gap: .6rem;
}
.fab-mini {
  padding: .55rem 1rem;
  font: 700 .82rem/1 var(--font); color: var(--ink);
  background: rgba(24, 20, 18, .92); border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; box-shadow: var(--shadow);
  transition: transform .2s var(--ease), border-color .2s;
}
.fab-mini:hover { transform: translateY(-2px); border-color: rgba(245,183,63,.5); }
.fab {
  display: flex; align-items: center; gap: .6rem;
  padding: 1rem 1.6rem;
  font: 800 1rem/1 var(--font); color: #1a0f04;
  background: linear-gradient(135deg, var(--gold), var(--ember));
  border: none; border-radius: 999px; cursor: pointer;
  box-shadow: 0 16px 40px -12px rgba(245,183,63,.85);
  transition: transform .2s var(--ease), box-shadow .25s;
}
.fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 24px 56px -14px rgba(245,183,63,1); }
.fab:active { transform: scale(.97); }
.fab .glyph { font-size: 1.25rem; }

/* ───────────────────────── varios ───────────────────────── */

.empty { padding: 3.5rem 1.5rem; text-align: center; }
.empty .glyph { font-size: 3.2rem; opacity: .5; }
.empty h3 { margin: .9rem 0 .4rem; font: 700 1.15rem/1 var(--font); }
.empty p { font-size: .9rem; color: var(--muted); }

.skeleton {
  height: 5.4rem; margin-bottom: .9rem; border-radius: var(--r-lg);
  background: linear-gradient(90deg, rgba(255,250,244,.03) 25%, rgba(255,250,244,.08) 50%, rgba(255,250,244,.03) 75%);
  background-size: 200% 100%;
  animation: sheen 1.4s linear infinite;
}
@keyframes sheen { to { background-position: -200% 0; } }

.toast-wrap { position: fixed; left: 50%; bottom: 5.5rem; z-index: 80; transform: translateX(-50%); display: flex; flex-direction: column; gap: .5rem; align-items: center; pointer-events: none; }
.toast {
  padding: .8rem 1.3rem;
  font: 600 .9rem/1 var(--font); color: var(--ink);
  background: rgba(24,20,18,.95); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow);
  animation: toast-in .35s var(--ease), toast-out .35s var(--ease) 2.6s forwards;
}
.toast.win { border-color: rgba(245,183,63,.5); background: linear-gradient(135deg, rgba(245,183,63,.22), rgba(255,122,53,.16)); }
@keyframes toast-in  { from { opacity: 0; transform: translateY(20px) scale(.9); } }
@keyframes toast-out { to   { opacity: 0; transform: translateY(-14px) scale(.94); } }

.confetti { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.confetti i {
  position: absolute; top: -12px; width: 10px; height: 14px; border-radius: 2px;
  animation: fall linear forwards;
}
@keyframes fall {
  to { transform: translateY(105vh) rotate(720deg); opacity: 0; }
}

.divider { height: 1px; margin: 1.6rem 0; background: var(--line-soft); }

/* ───────────────────────── responsive ───────────────────────── */

@media (max-width: 900px) {
  .gate { grid-template-columns: 1fr; }
  .gate-hero { padding: 3rem 1.5rem 1rem; text-align: center; align-items: center; }
  .gate-sub { margin-bottom: 1.6rem; }
  .gate-feats { justify-content: center; }
  .gate-panel { border-left: none; border-top: 1px solid var(--line-soft); }
}
@media (max-width: 620px) {
  .post { grid-template-columns: 1fr; }
  .bristol-art { width: 3.4rem; height: 3.4rem; }
  .me-chip span.nm { display: none; }
  .podium { grid-template-columns: 1fr; }
  .step.p1 { order: -1; }
  .rank-row { grid-template-columns: 1.8rem auto 1fr; }
  .rank-stats { grid-column: 1 / -1; justify-content: space-between; }

  /* Sin backdrop-filter el header deja de ser bloque contenedor
     y la nav fija puede anclarse abajo de verdad. */
  .topbar {
    background: rgba(10, 8, 7, .96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* La navegación baja al pulgar. */
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: grid; grid-template-columns: repeat(6, 1fr); gap: .2rem;
    margin: 0; padding: .4rem .4rem calc(.4rem + env(safe-area-inset-bottom));
    background: rgba(10, 8, 7, .92);
    border-top: 1px solid var(--line-soft);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
  }
  .nav button { padding: .6rem .1rem; font-size: .7rem; border-radius: 12px; white-space: nowrap; }
  .me-chip { margin-left: auto; }

  .wrap { padding-bottom: 9.5rem; }
  .fab-stack { bottom: calc(4.4rem + env(safe-area-inset-bottom)); }
  .fab { padding: .85rem 1.15rem; font-size: .9rem; }

  /* Modal más aprovechado: dos columnas de Bristol y menos margen. */
  .modal-head, .modal-foot { padding-left: 1rem; padding-right: 1rem; }
  .modal-body { padding: 1.1rem 1rem; }
  .bristol-grid { grid-template-columns: repeat(2, 1fr); gap: .55rem; }
  .bcard { padding: .8rem .5rem; }
  .bcard .t { font-size: .82rem; }
  .bcard .s { font-size: .68rem; }

  /* La tira de cifras se desliza en horizontal en vez de apilarse. */
  .pulse {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(7.5rem, 1fr);
    grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory;
    /* Difumina el borde derecho: sin esto no hay pista de que se puede
       deslizar y las primeras celdas parecen cortadas sin más. */
    mask-image: linear-gradient(to right, #000 calc(100% - 1.6rem), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 1.6rem), transparent 100%);
  }
  .pulse .cell { padding: .85rem 1rem; scroll-snap-align: start; }
}

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

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,250,244,.12); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,250,244,.22); background-clip: padding-box; }

::selection { background: rgba(245,183,63,.3); color: var(--ink); }

/* ───────────────────────── modo directo ───────────────────────── */

.live-card {
  padding: 1rem 1.2rem; margin-bottom: 1.2rem;
  border-color: rgba(251, 111, 111, .45);
  background: linear-gradient(90deg, rgba(251, 111, 111, .1), var(--panel) 60%);
  animation: rise .4s var(--ease) both;
}
.live-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.live-timer {
  margin-left: auto;
  font-weight: 700; font-size: 1.15rem; letter-spacing: .02em;
  color: var(--rose);
}
.live-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--rose);
  box-shadow: 0 0 0 0 rgba(251, 111, 111, .6);
  animation: latido 1.6s ease-out infinite;
}
@keyframes latido {
  0%   { box-shadow: 0 0 0 0 rgba(251, 111, 111, .6); }
  70%  { box-shadow: 0 0 0 10px rgba(251, 111, 111, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 111, 111, 0); }
}
.live-actions { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; margin-top: .7rem; }

/* Llegas del "VOTA AQUÍ" de Discord: un par de destellos para señalar la porra. */
.live-card.live-focus { animation: rise .4s var(--ease) both, porra-foco 1.6s var(--ease) .3s 2; }
@keyframes porra-foco {
  0%, 100% { box-shadow: none; }
  45%      { box-shadow: 0 0 0 3px rgba(245, 183, 63, .38); }
}

.bet-chip {
  width: 2.1rem; height: 2.1rem;
  font: 700 .9rem/1 var(--mono); color: var(--ink-2);
  background: rgba(0, 0, 0, .3); border: 1px solid var(--line-soft); border-radius: 10px;
  cursor: pointer; transition: all .16s var(--ease);
}
.bet-chip:hover { transform: translateY(-2px) scale(1.08); border-color: rgba(255,238,220,.3); color: var(--ink); }
.bet-chip.on {
  color: #1a0f04; background: linear-gradient(135deg, var(--gold), var(--ember));
  border-color: transparent; box-shadow: 0 6px 16px -8px rgba(245,183,63,.8);
}

/* ───────────────────────── motes y resumen ───────────────────────── */

.title-chip { border-color: rgba(245, 183, 63, .4); background: rgba(245, 183, 63, .1); color: var(--ink); }

.wrap-big {
  font: 800 4rem/1 var(--mono); letter-spacing: -.05em;
  background: linear-gradient(120deg, var(--gold), var(--ember), var(--plum));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wrap-mid { font: 800 1.5rem/1.2 var(--mono); letter-spacing: -.03em; }
.wrap-k {
  margin-top: .3rem;
  font: 600 .7rem/1.3 var(--font); letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted);
}
.wrap-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
  margin-top: 1.4rem; padding: 1.2rem;
  background: rgba(0, 0, 0, .28); border: 1px solid var(--line-soft); border-radius: var(--r);
}
.wrap-mote {
  display: inline-block;
  margin-top: 1rem; padding: .8rem 1.8rem;
  font: 800 1.6rem/1.1 var(--font); letter-spacing: -.02em; color: #1a0f04;
  background: linear-gradient(135deg, var(--gold), var(--ember));
  border-radius: 999px;
  box-shadow: 0 16px 40px -14px rgba(245, 183, 63, .8);
  animation: zoom .5s var(--ease);
}

/* ───────────────────────── guía de baños ───────────────────────── */

.aspects { display: flex; flex-direction: column; gap: .55rem; }
.aspect-row {
  display: grid; grid-template-columns: 7.5rem auto 1fr; align-items: center; gap: .8rem;
  padding: .55rem .7rem;
  background: rgba(0, 0, 0, .22); border: 1px solid var(--line-soft); border-radius: var(--r-sm);
}
.aspect-name { font-weight: 600; font-size: .9rem; }
.aspect-dots { display: flex; gap: .3rem; }
.aspect-dots button {
  width: 2.1rem; height: 2.1rem;
  font: 700 .85rem/1 var(--mono); color: var(--muted);
  background: var(--panel); border: 1px solid var(--line); border-radius: 50%;
  cursor: pointer; transition: all .15s var(--ease);
}
.aspect-dots button:hover { color: var(--ink); border-color: rgba(255,238,220,.3); }
.aspect-dots button.on {
  color: #1a0f04; border-color: transparent;
  background: linear-gradient(135deg, var(--gold), var(--ember));
}
.aspect-word { font-size: .8rem; }

.bath-tag { cursor: pointer; border-color: rgba(86,182,245,.3); }
.bath-tag:hover { border-color: rgba(86,182,245,.6); color: var(--ink); }
.bath-inline { margin-top: .45rem; font-size: .8rem; color: var(--ink-2); }

.bath-list { display: flex; flex-direction: column; gap: .7rem; }
.bath-card {
  display: flex; gap: 1rem; align-items: center;
  padding: 1rem 1.1rem; cursor: pointer;
  animation: rise .4s var(--ease) both;
  transition: border-color .25s, transform .25s var(--ease);
}
.bath-card:hover { border-color: rgba(255,238,220,.22); transform: translateY(-1px); }
.bath-name { font: 700 1.02rem/1.2 var(--font); }
.bath-score {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 4rem; height: 4rem; border-radius: 18px;
  background: hsl(var(--sh, 30) 70% 50% / .14);
  border: 1px solid hsl(var(--sh, 30) 70% 55% / .45);
}
.bath-score .n { font: 800 1.35rem/1 var(--mono); color: hsl(var(--sh, 30) 80% 66%); }
.bath-score .k { margin-top: .2rem; font-size: .8rem; }
.bath-score.lg { width: 6rem; height: 6rem; border-radius: 24px; }
.bath-score.lg .n { font-size: 2.2rem; }
.bath-score.lg .k { color: var(--muted); font-size: .72rem; font-weight: 600; }

.champ-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .6rem; }
.champ {
  padding: .75rem .85rem;
  background: rgba(0, 0, 0, .22); border: 1px solid var(--line-soft); border-radius: var(--r-sm);
}
.champ-k { font: 700 .72rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.champ-v { font-size: .86rem; cursor: pointer; padding: .15rem 0; }
.champ-v:hover { color: var(--gold); }
.champ-v .mono { color: var(--mint); font-weight: 700; margin-left: .2rem; }
.champ-v.bad .mono { color: var(--rose); }

.review { display: flex; gap: .7rem; padding: .7rem 0; border-bottom: 1px solid var(--line-soft); }
.review:last-child { border-bottom: none; }

.post-modal .post { border: none; background: none; padding: 0; animation: none; }
.post-modal .post:hover { transform: none; }

.trip-card { cursor: pointer; border-color: rgba(168,85,247,.3); background: linear-gradient(135deg, rgba(168,85,247,.08), var(--panel)); }
.trip-card:hover { border-color: rgba(168,85,247,.55); }
.trip-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0 1rem; }

/* ───────────────────────── panel de administración ───────────────────────── */

.adm-tabs { margin-bottom: 1.2rem; }
.adm-row { display: flex; align-items: center; gap: .7rem; padding: .7rem 0; border-bottom: 1px solid var(--line-soft); }
.adm-row:last-child { border-bottom: none; }
.adm-line { display: flex; align-items: baseline; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.adm-line:last-child { border-bottom: none; }
.adm-tag { font-size: .66rem; padding: .18rem .45rem; }
.adm-box {
  padding: 1rem 1.1rem; margin-bottom: 1rem;
  background: rgba(0, 0, 0, .22); border: 1px solid var(--line-soft); border-radius: var(--r);
}
.adm-box h4 { font: 700 .95rem/1 var(--font); margin-bottom: .6rem; }
.adm-box > p { font-size: .82rem; line-height: 1.5; }
.adm-box.danger { border-color: rgba(251,111,111,.3); }
.adm-secret {
  display: flex; flex-direction: column; gap: .45rem; align-items: flex-start;
  margin-top: .8rem; padding: .9rem 1rem;
  background: rgba(74,222,128,.07); border: 1px solid rgba(74,222,128,.3); border-radius: var(--r-sm);
}
.adm-comment {
  display: flex; align-items: center; gap: .5rem; justify-content: space-between;
  margin-top: .35rem; padding: .35rem .6rem;
  font-size: .8rem; color: var(--ink-2);
  background: rgba(0, 0, 0, .2); border-radius: var(--r-sm);
}
.kv { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; font-size: .86rem; }
.kv > span { color: var(--muted); }

@media (max-width: 620px) {
  /* Nombre y palabra arriba, los cinco botones debajo a todo lo ancho. */
  .aspect-row { grid-template-columns: 1fr auto; grid-template-areas: 'name word' 'dots dots'; gap: .5rem; }
  .aspect-name { grid-area: name; }
  .aspect-word { grid-area: word; text-align: right; }
  .aspect-dots { grid-area: dots; justify-content: space-between; }
  .aspect-dots button { width: 2.6rem; height: 2.6rem; }
  .bath-card { align-items: flex-start; gap: .75rem; padding: .9rem; }
  .bath-card .bath-score { width: 3.2rem; height: 3.2rem; border-radius: 14px; }
  .bath-card .bath-score .n { font-size: 1.1rem; }
  /* Las etiquetas de aspecto se quedan en el icono para dejar sitio a la barra. */
  .bath-card .bar-row { grid-template-columns: 1.4rem 1fr 1.9rem !important; gap: .5rem; }
  .bath-card .bar-row > span:first-child { overflow: hidden; white-space: nowrap; width: 1.4rem; }
  .adm-row { flex-wrap: wrap; }
}
