/* mika.onl · estilos. Negro cálido, tipografía propia (Bricolage Grotesque para lo grande,
   Geist para lo demás) y un solo color de marca, lima, para lo principal; rosa para avisos.
   Móvil por defecto; a partir de 960px el menú pasa a la izquierda. */
@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/static/geist-1.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/static/bricolage-1.woff2") format("woff2");
}
:root {
  --bg: #0b0b0c;
  --ink: #0b0b0c;
  --s1: #141416;
  --s2: #1c1c20;
  --s3: #2a2a2f;
  --line: #242428;
  --text: #f3f2ee;
  --muted: #a3a3ab;
  --faint: #6b6b74;
  --lime: #d2ff3a;
  --pink: #ff4f9a;
  --coral: #ff6b5e;
  --accent: var(--lime);
  --up: var(--lime);
  --down: var(--coral);
  --link: #9dc1ff;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Bricolage", "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --r: 16px;
  --nav-h: 58px;
  --side: 0px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body {
  font: 450 15px/1.45 var(--font); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow: hidden; overscroll-behavior: none;
}
a { color: inherit; }
h1, h2, p { margin: 0; }
b, strong { font-weight: 700; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
::placeholder { color: var(--faint); }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
kbd { font: 600 12px/1 var(--mono); padding: 4px 7px; border-radius: 6px; background: var(--s3); border-bottom: 2px solid #0008; color: var(--text); }
code { font-family: var(--mono); font-size: .86em; background: var(--s2); border-radius: 6px; padding: 1px 6px; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico .fill { fill: currentColor; stroke: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.skip { position: fixed; left: 8px; top: -60px; z-index: 99; background: var(--lime); color: var(--ink); padding: 8px 12px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 8px; }
.noscript { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; }

#app { position: fixed; inset: 0 0 calc(var(--nav-h) + var(--safe-b)) var(--side); }
body.no-nav #app { inset: 0; }
.boot { display: grid; place-items: center; height: 100%; }
.spinner { width: 28px; height: 28px; border-radius: 50%; margin: 28px auto; border: 3px solid #ffffff1f; border-top-color: var(--lime); animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(100deg, var(--s1) 30%, var(--s2) 50%, var(--s1) 70%) 0 0 / 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.logo { font: 800 26px/1 var(--display); letter-spacing: -.045em; color: var(--text); white-space: nowrap; }
.logo i { font-style: normal; color: var(--lime); }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: var(--s2); display: block; }
.avatar.ph { display: grid; place-items: center; font: 800 16px/1 var(--display); color: var(--ink); }
.avatar.big { width: 104px; height: 104px; font-size: 42px; }

/* ---------- botones y campos */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 18px;
  border-radius: 14px; background: var(--s2); font-weight: 650; text-decoration: none; white-space: nowrap;
  transition: transform .12s var(--ease), background .15s, filter .15s, opacity .15s;
}
.btn:hover { background: var(--s3); }
.btn:active { transform: scale(.96); }
.btn.primary { background: var(--lime); color: var(--ink); font-weight: 700; }
.btn.primary:hover { background: var(--lime); filter: brightness(1.08); }
.btn.danger { background: #ff6b5e1f; color: var(--coral); }
.btn.danger:hover { background: #ff6b5e33; }
.btn.big { min-height: 52px; padding: 10px 24px; font-size: 16.5px; border-radius: 16px; }
.btn.icon-only { padding: 8px; width: 42px; }
.btn:disabled { opacity: .45; pointer-events: none; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex: none; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--s2); color: var(--text); }
.field { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--s1); outline: none; transition: border-color .15s, background .15s; }
.field:focus { border-color: var(--lime); background: var(--bg); }
.field.code { font-family: var(--mono); font-size: 13.5px; resize: vertical; min-height: 180px; line-height: 1.55; letter-spacing: 0; }
.chips-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.chips-row::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 14px;
  background: var(--s1); color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); transition: background .15s, color .15s, box-shadow .15s;
}
.chip:hover { color: var(--text); }
.chip.on { background: var(--text); color: var(--ink); box-shadow: none; }
.chip .n { font-weight: 500; opacity: .55; font-size: 12px; font-variant-numeric: tabular-nums; }
/* Las secciones son pestañas de texto con subrayado; los filtros, pastillas. */
.tabs { gap: 22px; border-bottom: 1.5px solid var(--line); padding: 0; }
.tabs .chip { background: none; box-shadow: none; padding: 10px 0 11px; border-radius: 0; font: 700 16px/1.2 var(--display); letter-spacing: -.02em; color: var(--faint); position: relative; }
.tabs .chip:hover { color: var(--text); }
.tabs .chip.on { background: none; color: var(--text); }
.tabs .chip.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1.5px; height: 3px; border-radius: 3px 3px 0 0; background: var(--lime); }
.tabs.center { justify-content: center; margin: 6px 0 16px; }
.label { color: var(--faint); font-size: 11.5px; font-weight: 700; margin: 14px 2px 8px; text-transform: uppercase; letter-spacing: .09em; }
.empty { text-align: center; color: var(--muted); padding: 48px 16px; display: grid; gap: 10px; justify-items: center; }
.empty > .ico { width: 30px; height: 30px; color: var(--ink); background: var(--lime); border-radius: 14px; padding: 11px; box-sizing: content-box; transform: rotate(-6deg); }
.empty-title { color: var(--text); font: 800 20px/1.2 var(--display); letter-spacing: -.03em; }
.empty .btn { margin-top: 8px; }

/* ---------- menú */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr); background: var(--bg); border-top: 1px solid var(--line);
}
body.in-feed .nav { background: #000; border-top-color: #ffffff12; }
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--faint); font-size: 10.5px; font-weight: 600; transition: color .15s; }
.nav a.active { color: var(--text); }
.nav .brand, .nav .wide-only { display: none; }
.nav-ico { position: relative; width: 26px; height: 26px; display: grid; place-items: center; }
.nav-ico .ico { width: 24px; height: 24px; }
.nav a.active .nav-ico .ico { stroke-width: 2.4; }
.nav-ico .avatar { width: 26px; height: 26px; font-size: 12px; }
.nav a.active .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--lime); }
.nav-ico.plus { width: 46px; height: 32px; border-radius: 12px; background: var(--lime); color: var(--ink); }
.nav-ico.plus .ico { width: 20px; height: 20px; stroke-width: 3; }
.nav a.create .nav-label { display: none; }
.badge-dot {
  position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--pink);
  color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2.5px var(--bg); font-variant-numeric: tabular-nums;
}

/* gente conectada ahora */
.online { position: fixed; z-index: 31; top: calc(20px + var(--safe-t)); right: 14px; display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #141416d9; backdrop-filter: blur(10px); font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums; pointer-events: none; box-shadow: inset 0 0 0 1px #ffffff14; }
.online i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: live 2s ease-out infinite; }
.online span { display: none; }
@keyframes live { 0% { box-shadow: 0 0 0 0 #d2ff3a99; } 100% { box-shadow: 0 0 0 7px #d2ff3a00; } }
body.in-feed .online { top: calc(54px + var(--safe-t)); right: 8px; background: #0000008c; }

/* ---------- capa: hojas, diálogos, avisos */
.layer { position: fixed; inset: 0; z-index: 60; }
.scrim { position: absolute; inset: 0; background: #000b; display: flex; align-items: flex-end; justify-content: center; animation: fade .18s; }
.scrim.out { opacity: 0; transition: opacity .18s; }
.scrim.out .panel { transform: translateY(40px); transition: transform .18s; }
@keyframes fade { from { opacity: 0; } }
.panel {
  width: 100%; max-width: 560px; height: min(76dvh, 680px); background: var(--s1); border-radius: 28px 28px 0 0;
  display: flex; flex-direction: column; padding-bottom: var(--safe-b); animation: rise .28s var(--ease); box-shadow: 0 -10px 50px #000a, inset 0 1px #ffffff0f;
}
@keyframes rise { from { transform: translateY(60px); opacity: .4; } }
.panel.compact { height: auto; max-height: 86dvh; }
.panel:focus { outline: none; }
.panel .grab { width: 38px; height: 4px; border-radius: 2px; background: var(--s3); margin: 10px auto 0; flex: none; touch-action: none; }
.panel > header { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 20px; flex: none; touch-action: none; cursor: grab; }
.panel > header h2 { flex: 1; font: 800 19px/1.2 var(--display); letter-spacing: -.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-text { padding: 2px 20px 12px; }
.sheet-actions { display: flex; gap: 8px; justify-content: flex-end; padding: 8px 16px 18px; flex-wrap: wrap; }
.sheet-head { display: flex; gap: 12px; align-items: center; margin: 2px 12px 4px; padding: 12px; background: var(--s2); border-radius: 18px; }
.sheet-head b { display: block; overflow-wrap: anywhere; font: 800 17px/1.2 var(--display); letter-spacing: -.02em; }
.menu { padding: 8px; display: grid; gap: 2px; overflow-y: auto; }
.menu-item { display: flex; align-items: center; gap: 14px; text-align: left; padding: 13px 12px; border-radius: 14px; font-weight: 600; width: 100%; transition: background .12s; }
.menu-item:hover { background: var(--s2); }
.menu-item > .ico { color: var(--muted); }
.menu-item.danger { color: var(--coral); }
.menu-item .box { width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 2px var(--s3); display: grid; place-items: center; flex: none; }
.menu-item .box .ico { width: 15px; height: 15px; stroke-width: 3.2; }
.menu-item.on .box { background: var(--lime); box-shadow: none; color: var(--ink); }
.inline-form { display: flex; gap: 8px; padding: 12px 14px 16px; border-top: 1px solid var(--line); }
.inline-form.flat { padding: 0; border: 0; }
.source { margin: 0 16px; padding: 14px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 16px; overflow: auto; flex: 1; font: 13px/1.55 var(--mono); letter-spacing: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.source code { background: none; padding: 0; font-size: inherit; }
.toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b) + 14px); z-index: 80; display: grid; gap: 8px; justify-items: center; pointer-events: none; padding: 0 12px; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; background: var(--text); color: var(--ink); padding: 11px 16px; border-radius: 16px;
  font-weight: 650; font-size: 14px; max-width: min(100%, 460px); box-shadow: 0 10px 34px #000a; animation: rise .24s var(--ease);
}
.toast .ico { color: #2f9e00; stroke-width: 2.8; }
.toast.error .ico { color: #e02d3c; }
.toast button { font-weight: 800; margin-left: 4px; text-decoration: underline; text-underline-offset: 3px; }
.toast.out { opacity: 0; transform: translateY(8px); transition: .2s; }

/* ---------- markdown y embeds */
.md { white-space: pre-wrap; overflow-wrap: anywhere; }
.md strong { font-weight: 750; }
.md .u { text-decoration: underline; }
.md .s { text-decoration: line-through; }
.md pre { text-align: left; background: #0009; border: 1px solid #fff2; border-radius: 10px; padding: 8px 10px; overflow-x: auto; font: 13px/1.5 var(--mono); letter-spacing: 0; white-space: pre; margin: 4px 0; color: var(--text); }
.md code { background: #0007; color: var(--text); }
.md pre code { background: none; padding: 0; }
.md blockquote { margin: 2px 0; padding-left: 10px; border-left: 4px solid currentColor; text-align: left; opacity: .9; }
.md .h1 { font-size: 1.5em; font-weight: 800; line-height: 1.15; }
.md .h2 { font-size: 1.25em; font-weight: 800; }
.md .h3 { font-size: 1.1em; font-weight: 750; }
.md .sub { font-size: .8em; opacity: .7; }
.md .li { padding-left: 1.1em; text-indent: -1.1em; text-align: left; }
.md .li::before { content: "•  "; }
.md .mention { background: #9dc1ff2e; color: #c9dcff; border-radius: 6px; padding: 0 4px; font-weight: 600; text-decoration: none; }
.md .emoji { height: 1.375em; width: auto; vertical-align: -.3em; }
.md .spoiler { background: #000d; color: transparent; border-radius: 4px; cursor: pointer; }
.md .spoiler * { visibility: hidden; }
.md .spoiler.shown { color: inherit; background: #fff2; }
.md .spoiler.shown * { visibility: visible; }
.md a { color: var(--link); }
.md .ts { background: #fff2; border-radius: 4px; padding: 0 3px; }
.embed { width: 100%; text-align: left; background: var(--s1); border-radius: 14px; border-left: 4px solid var(--s3); padding: 12px 14px; display: grid; gap: 8px; grid-template-columns: 1fr auto; font-size: 14px; }
.embed .e-main { min-width: 0; display: grid; gap: 6px; }
.embed .e-author { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; }
.embed .e-author img { width: 22px; height: 22px; border-radius: 50%; }
.embed .e-title { font-weight: 750; font-size: 15px; }
.embed .e-title a { color: var(--link); text-decoration: none; }
.embed .e-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.embed .e-field { grid-column: 1 / -1; }
.embed .e-field.inline { grid-column: auto; }
.embed .e-field b { display: block; font-size: 13px; }
.embed .e-thumb img { max-width: 80px; max-height: 80px; border-radius: 8px; }
.embed .e-image { grid-column: 1 / -1; }
.embed .e-image img { max-width: 100%; max-height: 46dvh; border-radius: 8px; display: block; }
.embed .e-footer { grid-column: 1 / -1; color: var(--muted); font-size: 12px; display: flex; gap: 6px; align-items: center; }
.embed .e-footer img { width: 18px; height: 18px; border-radius: 50%; }

/* ---------- feed de reels */
.feed-wrap { height: 100%; position: relative; background: #000; }
.feed { height: 100%; overflow-y: scroll; scroll-snap-type: y mandatory; overscroll-behavior: contain; overflow-anchor: none; scrollbar-width: none; outline: none; }
.feed::-webkit-scrollbar { display: none; }
.feed-top { position: absolute; top: 0; left: 0; right: 0; z-index: 12; display: flex; align-items: center; gap: 6px; padding: calc(8px + var(--safe-t)) 8px 30px; background: linear-gradient(#000b, #0000); pointer-events: none; }
.feed-top > * { pointer-events: auto; }
.feed-tabs { flex: 1; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 18px), transparent); padding: 0 6px; }
.feed-tabs::-webkit-scrollbar { display: none; }
.feed-tabs a { flex: none; padding: 8px 10px 12px; font: 700 16.5px/1 var(--display); letter-spacing: -.025em; color: #ffffff9c; text-decoration: none; text-shadow: 0 1px 6px #000c; position: relative; transition: color .15s; }
.feed-tabs a.on { color: #fff; }
.feed-tabs a.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 3.5px; border-radius: 2px; background: var(--lime); }
.feed-title { flex: 1; text-align: center; font: 800 17px/1.2 var(--display); letter-spacing: -.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 6px #000c; padding: 8px 0; }
.round { width: 38px; height: 38px; border-radius: 50%; background: #0000008c; backdrop-filter: blur(10px); display: grid; place-items: center; flex: none; color: #fff; transition: background .15s, transform .12s; }
.round:hover { background: #000c; }
.round:active { transform: scale(.92); }
.round.pulse { animation: pulse 1.4s ease-out 3; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 #d2ff3acc; } 100% { box-shadow: 0 0 0 16px #d2ff3a00; } }
.stepper { display: none; }

.reel { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #000; content-visibility: auto; }
.backdrop { position: absolute; inset: -60px; background: center / cover no-repeat; filter: blur(46px) brightness(.4) saturate(1.35); transform: translateZ(0); pointer-events: none; }
.reel-box { position: absolute; inset: 0; }
.frame { position: absolute; inset: 0; overflow: hidden; background: #000; }
.slot { position: absolute; inset: 0; display: grid; place-items: center; }
.slot > .spinner { margin: 0; }
.shade { position: absolute; left: 0; right: 0; bottom: 0; height: 44%; background: linear-gradient(#0000, #000000b8 62%, #000000e6); pointer-events: none; transition: opacity .2s; }
.frame[data-kind="is-text"] .shade { height: 36%; background: linear-gradient(#0000, #101012 78%); }

.stage { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stage .media { position: relative; max-width: 100%; min-height: 0; display: flex; justify-content: center; align-items: center; }
.stage.full > .media.image, .stage.full > .media.video { width: 100%; height: 100%; }
.stage.full .media img, .stage.full .media video { width: 100%; height: 100%; object-fit: contain; display: block; }
.media.image img, .media.video video { opacity: 0; transition: opacity .25s; }
.media.loaded img, .media.loaded video, .column .media img, .column .media video { opacity: 1; }
.media.spoiled img, .media.spoiled video { filter: blur(40px) brightness(.6); transform: scale(1.1); }
.spoiler-cover { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; }
.spoiler-cover span { background: var(--text); color: var(--ink); padding: 8px 16px; border-radius: 999px; font-weight: 800; letter-spacing: .1em; font-size: 13px; }

.stage.is-mixed, .stage.is-youtube { padding: calc(62px + var(--safe-t)) 66px 150px 12px; }
.column { width: 100%; max-height: 100%; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; scrollbar-width: none; border-radius: 16px; overscroll-behavior: contain; }
.column::-webkit-scrollbar { display: none; }
.column > .media { flex: none; }
.column > .media img, .column > .media video { max-width: 100%; max-height: 56dvh; border-radius: 14px; display: block; }
.bubble { background: #141416eb; backdrop-filter: blur(10px); border-radius: 16px; padding: 12px 14px; font-size: 15.5px; }
.media.youtube { width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 10px 40px #000a; }
.media.youtube iframe { width: 100%; height: 100%; border: 0; display: block; }
.yt-facade { position: relative; width: 100%; height: 100%; display: block; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; transition: transform .15s var(--ease); box-shadow: 0 6px 24px #0008; }
.yt-facade:hover .yt-play { transform: scale(1.1); }
.yt-play .ico { width: 28px; height: 28px; margin-left: 3px; }
.yt-tag { position: absolute; left: 10px; top: 10px; background: #000c; border-radius: 8px; padding: 3px 9px; font-size: 12px; font-weight: 700; }

/* Tarjeta de un tag de texto: letra grande del color del tag sobre negro con su resplandor. */
.textcard { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: calc(70px + var(--safe-t)) 72px 156px 22px; text-align: left; font-family: var(--display); font-weight: 800; }
.tc-inner { position: relative; max-height: 100%; overflow-y: auto; scrollbar-width: none; width: 100%; }
.tc-inner::-webkit-scrollbar { display: none; }
.textcard .md a { color: inherit; text-decoration: underline; }
.textcard.s1 { font-size: clamp(44px, 14.5vw, 68px); line-height: .98; letter-spacing: -.055em; }
.textcard.s2 { font-size: clamp(31px, 9.5vw, 44px); line-height: 1.04; letter-spacing: -.045em; }
.textcard.s3 { font-size: clamp(23px, 6.4vw, 28px); line-height: 1.16; letter-spacing: -.03em; font-weight: 700; }
.textcard.s4 { font-size: 18px; line-height: 1.4; font-weight: 600; letter-spacing: -.015em; font-family: var(--font); color: var(--text) !important; }
.textcard.s5 { font-size: 15px; line-height: 1.5; font-weight: 450; letter-spacing: 0; font-family: var(--font); color: var(--text) !important; align-items: flex-start; }

.carousel { position: absolute; inset: 0; }
.c-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.c-track::-webkit-scrollbar { display: none; }
.c-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; }
.c-slide .media { width: 100%; height: 100%; }
.c-dots { position: absolute; left: 0; right: 0; top: calc(58px + var(--safe-t)); display: flex; gap: 5px; justify-content: center; pointer-events: none; }
.c-dots i { width: 6px; height: 6px; border-radius: 50%; background: #fff6; transition: .2s; }
.c-dots i.on { background: var(--lime); width: 18px; border-radius: 3px; }
.c-count { position: absolute; right: 12px; top: calc(54px + var(--safe-t)); background: #000a; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.c-nav { display: none; position: absolute; top: 50%; margin-top: -20px; width: 40px; height: 40px; border-radius: 50%; background: #000a; place-items: center; }
.c-nav.prev { left: 10px; } .c-nav.next { right: 10px; }

.stage.is-audio { padding: 0 64px 40px 12px; }
.media.audio { width: min(100%, 340px); flex-direction: column; gap: 16px; background: #141416f2; backdrop-filter: blur(14px); border-radius: 28px; padding: 24px 20px 18px; box-shadow: 0 16px 50px #000a, inset 0 1px #ffffff14; }
.a-art { width: 116px; height: 116px; border-radius: 28px; background: var(--lime); color: var(--ink); display: grid; place-items: center; position: relative; transform: rotate(-4deg); }
.a-art .ico { width: 46px; height: 46px; transition: transform .2s; }
.a-bars { position: absolute; bottom: 14px; display: flex; gap: 3px; align-items: flex-end; height: 18px; opacity: 0; transition: opacity .2s; }
.a-bars i { width: 4px; height: 6px; background: var(--ink); border-radius: 2px; }
.audio.playing .a-bars { opacity: 1; }
.audio.playing .a-art .ico { transform: translateY(-10px); }
.audio.playing .a-bars i { animation: bars .7s ease-in-out infinite alternate; }
.a-bars i:nth-child(2) { animation-delay: .15s !important; } .a-bars i:nth-child(3) { animation-delay: .3s !important; }
.a-bars i:nth-child(4) { animation-delay: .1s !important; } .a-bars i:nth-child(5) { animation-delay: .4s !important; }
@keyframes bars { to { height: 18px; } }
.a-name { font: 800 19px/1.2 var(--display); letter-spacing: -.03em; text-align: center; overflow-wrap: anywhere; }
.a-row { display: flex; align-items: center; gap: 12px; width: 100%; }
.a-play { width: 48px; height: 48px; border-radius: 50%; background: var(--text); color: var(--ink); display: grid; place-items: center; flex: none; transition: transform .12s; }
.a-play:active { transform: scale(.9); }
.a-track { flex: 1; height: 22px; display: flex; align-items: center; cursor: pointer; position: relative; }
.a-track::before { content: ""; position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: #fff3; }
.a-fill { height: 4px; border-radius: 2px; background: var(--lime); width: 0; position: relative; }
.a-time { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); min-width: 34px; text-align: right; }
.audio.failed .a-play { opacity: .4; pointer-events: none; }

.linkcard { display: block; width: 100%; text-decoration: none; background: var(--s1); border-radius: 18px; overflow: hidden; text-align: left; box-shadow: inset 0 0 0 1px #ffffff14; }
.l-img img { width: 100%; max-height: 38dvh; object-fit: cover; display: block; }
.l-body { padding: 12px 14px 14px; display: grid; gap: 4px; }
.l-host { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; font-weight: 600; }
.l-host .ico { width: 13px; height: 13px; }
.l-title { font: 700 16.5px/1.25 var(--display); letter-spacing: -.02em; }
.l-text { color: var(--muted); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.filecard { display: flex; align-items: center; gap: 12px; width: 100%; text-decoration: none; background: var(--s1); border-radius: 18px; padding: 12px 14px; box-shadow: inset 0 0 0 1px #ffffff14; text-align: left; }
.f-ico { position: relative; width: 44px; height: 52px; border-radius: 12px; background: var(--lime); color: var(--ink); display: grid; place-items: center; flex: none; }
.f-ico span { position: absolute; bottom: 5px; font-size: 9px; font-weight: 800; }
.f-ico .ico { margin-top: -8px; }
.f-body { flex: 1; min-width: 0; }
.f-name { font-weight: 700; overflow-wrap: anywhere; }
.filecard > .ico { color: var(--muted); }

.tomb { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 24px; color: var(--muted); max-width: 300px; z-index: 2; }
.tomb .ico { width: 30px; height: 30px; color: var(--faint); }
.tomb b { color: var(--text); font: 800 19px/1.2 var(--display); letter-spacing: -.03em; }
.tomb .btn { margin-top: 8px; }
.tomb .tomb-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* barra de acciones: en el móvil, iconos sueltos sobre el contenido y los votos en una pastilla */
.rail { position: absolute; right: 6px; bottom: 16px; z-index: 6; width: 54px; display: flex; flex-direction: column; align-items: center; gap: 15px; transition: opacity .2s; }
.rail .who { position: relative; margin-bottom: 2px; }
.rail .who .avatar { width: 44px; height: 44px; box-shadow: 0 0 0 2px #fff, 0 4px 14px #0009; }
.votes { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #0000007a; backdrop-filter: blur(12px); border-radius: 999px; padding: 4px 0; width: 46px; box-shadow: inset 0 0 0 1px #ffffff1a; }
.act { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 12px; font-weight: 700; text-shadow: 0 1px 5px #000d; min-width: 46px; font-variant-numeric: tabular-nums; }
.bubble-btn { width: 40px; height: 36px; display: grid; place-items: center; transition: transform .16s var(--ease), color .15s; filter: drop-shadow(0 1px 4px #000b); }
.bubble-btn .ico { width: 29px; height: 29px; stroke-width: 1.9; }
.votes .bubble-btn { height: 38px; filter: none; }
.votes .bubble-btn .ico { width: 24px; height: 24px; stroke-width: 2.1; }
.act:active .bubble-btn { transform: scale(.8); }
.act .n:empty { display: none; }
.act.up.on { color: var(--lime); }
.act.down.on { color: var(--coral); }
.act.on .ico path { fill: currentColor; }
.act.on:not(.up):not(.down) { color: var(--lime); }
.act.on:not(.up):not(.down) .n { color: #fff; }
.score { font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; min-height: 17px; line-height: 17px; }
.score.pos { color: var(--lime); } .score.neg { color: var(--coral); }

/* pie del reel */
.meta { position: absolute; left: 0; right: 60px; bottom: 0; z-index: 5; padding: 0 10px 20px 14px; text-shadow: 0 1px 5px #000c; pointer-events: none; transition: opacity .2s; display: grid; gap: 5px; }
.meta a, .meta button, .meta .cap, .meta .tools { pointer-events: auto; }
.meta .name { font: 800 23px/1.08 var(--display); letter-spacing: -.04em; overflow-wrap: anywhere; }
.meta .by { font-size: 13.5px; color: #e4e3ea; display: flex; flex-wrap: wrap; gap: 0 6px; align-items: center; }
.meta .by { min-width: 0; }
.meta .by a { font-weight: 700; text-decoration: none; color: #fff; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta .by .dot { opacity: .45; }
.cap { font-size: 14.5px; max-height: 2.9em; overflow: hidden; cursor: pointer; position: relative; line-height: 1.45; }
.cap.long:not(.open)::after { content: "… más"; position: absolute; right: 0; bottom: 0; padding-left: 28px; background: linear-gradient(90deg, #0000, #000d 40%); font-weight: 700; }
.cap.open { max-height: 40dvh; overflow-y: auto; background: #000b; backdrop-filter: blur(10px); border-radius: 14px; padding: 8px 10px; margin: 0 -4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.chips:empty { display: none; }
.rchip { pointer-events: auto; display: inline-flex; gap: 5px; align-items: center; font-size: 13px; padding: 3px 10px; border-radius: 999px; background: #0009; box-shadow: inset 0 0 0 1px #fff3; backdrop-filter: blur(6px); text-shadow: none; }
.rchip b { font-weight: 700; font-variant-numeric: tabular-nums; }
.rchip.on { box-shadow: inset 0 0 0 1.5px var(--lime); background: #d2ff3a2e; }
.tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.tools.busy { opacity: .6; pointer-events: none; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 750; font-size: 13.5px; text-shadow: none; transition: transform .12s; }
.pill:active { transform: scale(.94); }
.args-form { display: flex; align-items: center; flex: 1; min-width: 180px; background: #000b; box-shadow: inset 0 0 0 1px #fff3; border-radius: 999px; padding-left: 14px; backdrop-filter: blur(8px); }
.args { flex: 1; min-width: 0; background: none; border: 0; outline: none; padding: 9px 0; font-size: 14px; }
.args-form .icon-btn { color: var(--lime); }

.flash { position: absolute; inset: 0; margin: auto; width: 86px; height: 86px; border-radius: 50%; background: #000a; display: grid; place-items: center; opacity: 0; pointer-events: none; z-index: 7; }
.flash .ico { width: 38px; height: 38px; }
.flash.go { animation: flash .55s ease-out; }
@keyframes flash { 0% { opacity: 0; transform: scale(.7); } 25% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.25); } }
.frame.buffering::after { content: ""; position: absolute; inset: 0; margin: auto; width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff3; border-top-color: #fff; animation: spin .8s linear infinite; z-index: 3; }
.seek { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; z-index: 8; display: flex; align-items: flex-end; cursor: pointer; touch-action: none; }
.seek-bar { width: 100%; height: 3px; background: #fff3; transition: height .12s; }
.seek-fill { height: 100%; width: 0; background: var(--lime); border-radius: 0 2px 2px 0; }
.seek:hover .seek-bar, .seek.dragging .seek-bar { height: 7px; }
.seek-time { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); background: #000d; padding: 5px 13px; border-radius: 999px; font-weight: 750; font-variant-numeric: tabular-nums; opacity: 0; pointer-events: none; transition: opacity .12s; }
.seek.dragging .seek-time { opacity: 1; }
.burst { position: absolute; z-index: 9; pointer-events: none; color: var(--lime); animation: burst .75s ease-out forwards; transform: translate(-50%, -50%); }
.burst .ico { width: 104px; height: 104px; filter: drop-shadow(0 4px 16px #0009); }
.burst .ico path { fill: currentColor; stroke: var(--ink); stroke-width: 1; }
@keyframes burst { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(-14deg); } 22% { opacity: 1; transform: translate(-50%, -55%) scale(1.15) rotate(4deg); } 100% { opacity: 0; transform: translate(-50%, -115%) scale(1); } }
.reel.clean .meta, .reel.clean .rail, .reel.clean .shade { opacity: 0; pointer-events: none; }
.reel.clean .meta * { pointer-events: none; }

.react-pop { position: absolute; right: 62px; z-index: 12; display: flex; gap: 2px; padding: 6px; border-radius: 999px; background: #1c1c20f5; backdrop-filter: blur(14px); box-shadow: 0 10px 34px #000b, inset 0 0 0 1px #ffffff1a; animation: pop .2s var(--ease); transform-origin: right center; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
.react-pop button { width: 42px; height: 46px; border-radius: 14px; display: grid; place-items: center; position: relative; transition: transform .14s var(--ease); }
.react-pop button:hover { transform: scale(1.25) translateY(-4px); }
.react-pop .e { font-size: 25px; line-height: 1; }
.react-pop .c { position: absolute; bottom: 0; right: 2px; font-size: 10px; font-weight: 800; color: var(--muted); }
.react-pop button.on { background: #d2ff3a33; }

/* El final solo es punto de anclaje cuando ya no hay más: si lo fuera desde el principio, el
   navegador seguiría pegado a él al insertar los reels encima. */
.end { height: 100%; display: grid; place-items: center; color: var(--muted); }
.end.done { scroll-snap-align: start; }
.end-card { display: grid; gap: 14px; justify-items: center; }
.end-card .ico { width: 30px; height: 30px; color: var(--ink); background: var(--lime); border-radius: 14px; padding: 11px; box-sizing: content-box; transform: rotate(-6deg); }
.end-card b { color: var(--text); font: 800 24px/1.1 var(--display); letter-spacing: -.04em; }

/* ---------- comentarios */
.panel.comments .items { flex: 1; overflow-y: auto; padding: 4px 18px; overscroll-behavior: contain; }
.comment { display: flex; gap: 11px; padding: 10px 0; align-items: flex-start; }
.comment .avatar { width: 36px; height: 36px; font-size: 14px; }
.comment.pending { opacity: .5; }
.c-head { font-size: 13px; color: var(--faint); display: flex; gap: 8px; align-items: baseline; }
.c-head a { color: var(--text); font-weight: 700; text-decoration: none; }
.c-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.c-del { color: var(--faint); padding: 6px; border-radius: 8px; }
.c-del:hover { color: var(--coral); }
.c-del .ico { width: 16px; height: 16px; }
.c-reply { margin-left: 2px; font-size: 12.5px; font-weight: 650; color: var(--muted); }
.c-reply:hover { color: var(--lime); }
.mention, .c-body a.mention { background: #d2ff3a24; color: var(--lime); border-radius: 6px; padding: 0 4px; font-weight: 650; text-decoration: none; }
.c-body a:not(.mention) { color: var(--link); }
.c-body .emoji { height: 1.375em; width: auto; vertical-align: -.3em; }
.comment-form { display: flex; gap: 10px; padding: 10px 12px 12px; border-top: 1px solid var(--line); align-items: flex-end; position: relative; }
.suggest { position: absolute; left: 10px; right: 10px; bottom: calc(100% + 6px); background: var(--s2); border-radius: 18px; padding: 6px; display: grid; gap: 2px; box-shadow: 0 -8px 34px #000a, inset 0 0 0 1px #ffffff14; max-height: 260px; overflow-y: auto; z-index: 3; animation: rise .16s var(--ease); }
.suggest button { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 12px; text-align: left; }
.suggest button.on, .suggest button:hover { background: var(--s3); }
.suggest .avatar { width: 30px; height: 30px; font-size: 13px; }
.counter.over { color: var(--coral); }
.comment-form .avatar { width: 36px; height: 36px; margin-bottom: 4px; font-size: 14px; }
.comment-form .wrap { position: relative; display: flex; }
.comment-form textarea { flex: 1; resize: none; height: 44px; max-height: 120px; padding: 10.5px 16px; border-radius: 22px; border: 1.5px solid var(--line); background: var(--bg); outline: none; line-height: 1.4; }
.comment-form textarea:focus { border-color: var(--lime); }
.counter { position: absolute; right: 12px; bottom: -3px; font-size: 11px; color: var(--faint); background: var(--bg); padding: 0 4px; border-radius: 4px; }
.send { width: 44px; height: 44px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; flex: none; transition: opacity .15s, transform .12s; }
.send:disabled { background: var(--s2); color: var(--faint); }
.send:active { transform: scale(.9); }

/* ---------- páginas */
.page { height: 100%; overflow-y: auto; overflow-x: hidden; padding: calc(16px + var(--safe-t)) 14px 44px; scrollbar-width: thin; scrollbar-color: var(--s3) transparent; }
.page .wrap { max-width: 900px; margin: 0 auto; }
.page h1 { font: 800 34px/1 var(--display); letter-spacing: -.05em; margin: 4px 2px 16px; }
.page h2 { font: 800 20px/1.1 var(--display); letter-spacing: -.035em; margin: 32px 2px 12px; }
.search { position: sticky; top: calc(-16px - var(--safe-t)); z-index: 4; background: linear-gradient(var(--bg) 84%, #0b0b0c00); padding: 4px 0 12px; display: flex; align-items: center; }
.search > .ico { position: absolute; left: 16px; color: var(--faint); pointer-events: none; }
.search input { width: 100%; padding: 13px 46px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--s1); outline: none; transition: border-color .15s; font-weight: 500; }
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus { border-color: var(--lime); }
.search .icon-btn { position: absolute; right: 6px; }
.explore-head { display: grid; gap: 14px; margin-bottom: 14px; }
.explore-head.searching { display: none; }
.explore-body { display: grid; gap: 12px; }
.totals { display: grid; grid-template-columns: repeat(4, 1fr); min-height: 60px; background: var(--s1); border-radius: 20px; padding: 12px 4px; }
.totals > div { text-align: center; }
.totals > div + div { box-shadow: -1px 0 var(--line); }
.totals b { display: block; font: 800 22px/1.1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.totals span { color: var(--muted); font-size: 12px; }
.promo { display: flex; align-items: center; gap: 13px; padding: 14px 14px 14px 16px; border-radius: 20px; text-decoration: none; background: var(--pink); color: var(--ink); transition: transform .15s var(--ease); }
.promo:hover { transform: translateY(-2px) rotate(-.4deg); }
.promo-ico { width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: var(--pink); display: grid; place-items: center; flex: none; transform: rotate(-8deg); }
.promo-ico .ico { width: 26px; height: 26px; }
.promo b { display: block; font: 800 19px/1.1 var(--display); letter-spacing: -.035em; }
.promo .muted { display: block; font-size: 13px; color: #0b0b0cb8; font-weight: 550; margin-top: 2px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.tile { aspect-ratio: 3 / 4; position: relative; overflow: hidden; border-radius: 12px; text-decoration: none; background: var(--s1); display: block; color: #fff; }
.t-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s var(--ease); }
.tile:hover .t-img { transform: scale(1.06); }
.tile::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(#0000, #000000d9); pointer-events: none; }
.tile.skeleton::after, .tile.plain::after { display: none; }
.t-kind { position: absolute; top: 7px; right: 7px; z-index: 1; filter: drop-shadow(0 1px 3px #000c); color: #fff; }
.t-kind .ico { width: 17px; height: 17px; }
.t-name { position: absolute; left: 8px; right: 8px; bottom: 23px; z-index: 1; font-weight: 650; font-size: 12.5px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 3px #000c; color: #fff; }
.t-meta { position: absolute; left: 8px; bottom: 6px; z-index: 1; display: flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: #ffffffc7; text-shadow: 0 1px 3px #000c; font-variant-numeric: tabular-nums; }
.t-meta .ico { width: 12px; height: 12px; stroke-width: 2.6; }
.t-meta i { width: 6px; }
.tile.plain .t-name { inset: 10px 10px 28px; display: flex; align-items: flex-end; white-space: normal; font: 800 17px/1.02 var(--display); letter-spacing: -.04em; overflow-wrap: anywhere; color: inherit; text-shadow: none; }
.tile.plain .t-meta { color: var(--muted); text-shadow: none; }
.tile.plain .t-kind { color: currentColor; filter: none; opacity: .8; }
.sentinel { height: 1px; }

.list { display: grid; gap: 6px; }
.list > * { min-width: 0; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 18px; background: var(--s1); text-decoration: none; transition: background .15s; min-height: 62px; }
a.row:hover { background: var(--s2); }
.row .body { min-width: 0; flex: 1; }
.row .t { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .d { color: var(--muted); font-size: 13px; }
.row .rank { width: 24px; text-align: center; color: var(--faint); font: 800 17px/1 var(--display); flex: none; font-variant-numeric: tabular-nums; }
.row .rank.top { color: var(--lime); }
.row > .ico.muted { color: var(--faint); width: 18px; height: 18px; }
.row.tall { align-items: flex-start; }
.row.skeleton { min-height: 66px; }
.row.unread { box-shadow: inset 3px 0 var(--pink); background: linear-gradient(90deg, #ff4f9a1c, var(--s1) 55%); }
.a-text { overflow-wrap: anywhere; }
.quote { color: var(--muted); border-left: 3px solid var(--s3); padding-left: 9px; margin-top: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.a-thumb { width: 44px; height: 58px; border-radius: 10px; object-fit: cover; flex: none; }
.act-ico { background: var(--lime) !important; color: var(--ink) !important; }
.act-ico.reaction { background: #ffd84a !important; }
.act-ico .ico { width: 20px; height: 20px; }
.act-ico.vote .ico path { fill: currentColor; }
.people { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.person { display: grid; gap: 6px; justify-items: center; text-decoration: none; width: 70px; flex: none; font-size: 12.5px; font-weight: 600; text-align: center; }
.person .avatar { width: 58px; height: 58px; font-size: 22px; }
.person span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* perfil */
.profile { text-align: center; padding: 10px 0 16px; display: grid; justify-items: center; gap: 4px; }
.profile .avatar.big { box-shadow: 0 0 0 4px var(--bg), 0 0 0 6.5px var(--lime); margin-bottom: 12px; }
.profile .pn { font-size: 32px; margin: 0; overflow-wrap: anywhere; }
.pu { color: var(--muted); font-weight: 500; }
.stats { display: flex; justify-content: center; margin: 14px 0 4px; max-width: 100%; }
.stats > div { padding: 0 clamp(7px, 3vw, 16px); min-width: 0; }
.stats > div + div { box-shadow: -1px 0 var(--line); }
.stats b { display: block; font: 800 22px/1.1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 12.5px; }
.stats .hot b { color: #ff8a3c; }
.roles, .badges, .actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 8px; }
.actions { gap: 8px; margin-top: 12px; }
.actions.start { justify-content: flex-start; }
.role { font-size: 12px; padding: 2px 9px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--muted); font-weight: 650; }
.badge { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--s1); font-weight: 600; }
.profile-skeleton { display: grid; justify-items: center; gap: 14px; padding: 16px 0; }
.line { width: 190px; height: 24px; border-radius: 12px; } .line.short { width: 110px; height: 14px; }
.pane { display: grid; gap: 12px; }
.pane > .chips-row { justify-content: center; }
.cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.col-card { text-decoration: none; display: grid; gap: 2px; }
.col-cover { aspect-ratio: 4 / 3; border-radius: 18px; background: center / cover var(--s1); display: grid; place-items: center; margin-bottom: 6px; transition: transform .2s var(--ease); }
.col-card:hover .col-cover { transform: scale(1.02); }
.col-cover .ico { width: 30px; height: 30px; }
.col-name { font: 700 16.5px/1.2 var(--display); letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* crear y editar */
.editor-layout { display: grid; gap: 24px; }
.editor { display: grid; gap: 14px; }
.editor label { display: grid; gap: 7px; font-weight: 650; font-size: 14px; }
.snippets { display: flex; gap: 6px; flex-wrap: wrap; }
.snippets .chip { font: 600 12.5px/1.2 var(--mono); letter-spacing: 0; padding: 6px 10px; border-radius: 10px; }
.snippets .chip:hover { box-shadow: inset 0 0 0 1.5px var(--lime); }
.drop { border: 2px dashed var(--s3); border-radius: 20px; padding: 20px 14px; text-align: center; display: grid; gap: 4px; justify-items: center; font-size: 14px; width: 100%; transition: .15s; }
.drop .ico { width: 24px; height: 24px; color: var(--ink); background: var(--lime); border-radius: 12px; padding: 9px; box-sizing: content-box; margin-bottom: 4px; }
.drop:hover, .drop.over { border-color: var(--lime); background: #d2ff3a0f; }
.uploads { display: grid; gap: 6px; }
.uploads:empty { display: none; }
.upload { display: flex; align-items: center; gap: 10px; background: var(--s1); border-radius: 14px; padding: 10px 12px; font-size: 14px; }
.upload .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-bar { width: 90px; height: 6px; border-radius: 3px; background: var(--s3); overflow: hidden; flex: none; }
.u-bar i { display: block; height: 100%; width: 0; background: var(--lime); transition: width .2s; }
.editor .actions { justify-content: flex-start; margin-top: 4px; }
.phone, .game-card { position: relative; width: min(100%, 320px); aspect-ratio: 9 / 15; margin: 0 auto; border-radius: 30px; overflow: hidden; background: #101012; box-shadow: 0 0 0 1.5px var(--line), 0 24px 70px #000a; display: grid; place-items: center; }
.phone.busy { opacity: .6; }
.phone .stage.is-mixed, .phone .stage.is-youtube, .phone .stage.is-audio, .game-card .stage.is-mixed, .game-card .stage.is-youtube, .game-card .stage.is-audio { padding: 14px; }
.phone .textcard, .game-card .textcard { padding: 22px 18px; }
.phone .textcard.s1, .game-card .textcard.s1 { font-size: 46px; } .phone .textcard.s2, .game-card .textcard.s2 { font-size: 30px; }
.phone .meta, .game-card .meta { right: 0; padding: 40px 14px 14px; background: linear-gradient(#0000, #000c); }
.phone .media img, .phone .media video, .game-card .media img, .game-card .media video { opacity: 1; }
.phone .c-dots, .game-card .c-dots { top: 12px; } .phone .c-count, .game-card .c-count { top: 8px; }
.phone .empty > .ico { background: var(--s2); color: var(--muted); transform: none; }

/* juego */
.game { max-width: 520px; margin: 0 auto; }
.game-stats { margin: 0 0 16px; background: var(--s1); border-radius: 20px; padding: 14px 4px; }
.game-stats > div { flex: 1; text-align: center; padding: 0 6px; }
.game-card { aspect-ratio: 4 / 5; width: auto; max-width: min(100%, 400px); height: min(46dvh, 500px); transition: box-shadow .25s; }
.game-card.win { box-shadow: 0 0 0 3px var(--lime), 0 20px 70px #d2ff3a33; }
.game-card.lose { box-shadow: 0 0 0 3px var(--coral), 0 20px 70px #ff6b5e33; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.option { display: flex; align-items: center; gap: 10px; padding: 11px; border-radius: 18px; background: var(--s1); box-shadow: inset 0 0 0 2px transparent; text-align: left; font-weight: 650; min-width: 0; transition: background .15s, box-shadow .15s, transform .12s; }
.option:hover:not(:disabled) { background: var(--s2); }
.option:active:not(:disabled) { transform: scale(.97); }
.option kbd { display: none; }
.option span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.option .avatar { width: 36px; height: 36px; font-size: 14px; }
.option.right { box-shadow: inset 0 0 0 2px var(--lime); background: #d2ff3a1f; }
.option.wrong { box-shadow: inset 0 0 0 2px var(--coral); background: #ff6b5e1f; }
.option:disabled { cursor: default; }
.option:disabled:not(.right):not(.wrong) { opacity: .45; }
.result { text-align: center; margin: 14px 0 4px; display: grid; gap: 4px; min-height: 52px; }
.verdict { font: 800 26px/1.1 var(--display); letter-spacing: -.04em; }
.verdict.ok { color: var(--lime); } .verdict.ko { color: var(--coral); }

/* ajustes */
.settings { max-width: 640px; margin: 0 auto; }
.row.toggle { cursor: pointer; position: relative; }
.row.toggle .t { white-space: normal; }
.row.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch { width: 48px; height: 28px; border-radius: 14px; background: var(--s3); position: relative; flex: none; transition: background .18s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease), background .2s; box-shadow: 0 1px 4px #0006; }
.row.toggle input:checked + .switch { background: var(--lime); }
.row.toggle input:checked + .switch::after { transform: translateX(20px); background: var(--ink); }
.row.toggle input:focus-visible + .switch { outline: 2px solid var(--lime); outline-offset: 2px; }
.row.toggle.master { background: var(--s2); padding: 14px; }
.row.toggle.master .t { font: 800 18px/1.2 var(--display); letter-spacing: -.03em; }
.sub-list { display: grid; gap: 6px; margin-left: 16px; padding-left: 12px; border-left: 2px solid var(--line); }
.row.toggle.off { opacity: .4; pointer-events: none; }
.note { display: flex; gap: 10px; align-items: center; color: var(--muted); background: var(--s1); border-radius: 18px; padding: 14px; }
.device { display: grid; gap: 8px; margin-top: 10px; }
.shortcuts { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.shortcuts div { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.only-desktop { display: none; }

/* portada */
.landing { height: 100%; overflow-y: auto; display: grid; place-items: center; padding: 32px 20px; position: relative; overflow-x: hidden; }
.blob { position: absolute; width: 64vmax; height: 64vmax; border-radius: 50%; filter: blur(100px); opacity: .2; pointer-events: none; animation: drift 16s ease-in-out infinite alternate; }
.blob.one { background: var(--lime); top: -36vmax; left: -28vmax; }
.blob.two { background: var(--pink); bottom: -40vmax; right: -30vmax; animation-delay: -8s; opacity: .17; }
@keyframes drift { to { transform: translate(6vmax, 4vmax) scale(1.1); } }
.landing .card { position: relative; max-width: 420px; width: 100%; display: grid; gap: 18px; justify-items: start; }
.landing .logo { font-size: clamp(64px, 21vw, 96px); letter-spacing: -.065em; line-height: .9; margin-left: -3px; }
.tagline { color: var(--muted); font-size: 18px; line-height: 1.35; max-width: 360px; }
.tagline b { color: var(--text); font-weight: 650; }
.notice { display: flex; gap: 8px; align-items: center; background: #ff6b5e1f; color: #ffc9c4; border-radius: 14px; padding: 10px 14px; text-align: left; width: 100%; }
.guild { display: flex; align-items: center; gap: 12px; text-align: left; background: #ffffff0a; box-shadow: inset 0 0 0 1px #ffffff14; border-radius: 20px; padding: 12px 14px; width: 100%; backdrop-filter: blur(10px); }
.guild img, .guild .avatar { width: 46px; height: 46px; border-radius: 14px; }
.guild b { font: 700 17px/1.2 var(--display); letter-spacing: -.02em; }
.steps { text-align: left; width: 100%; }
.steps ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: step; }
.steps li { counter-increment: step; padding: 4px 0 4px 40px; position: relative; min-height: 30px; line-height: 1.5; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 10px; background: var(--s2); color: var(--lime); font: 800 16px/30px var(--display); text-align: center; }
.cmd { display: inline-flex; align-items: center; gap: 6px; background: var(--lime); color: var(--ink); border-radius: 9px; padding: 2px 8px 2px 3px; vertical-align: middle; }
.cmd code { background: none; font-weight: 700; font-size: 14px; }
.cmd .ico { width: 14px; height: 14px; }
.landing .btn.big { width: 100%; }

@media (min-width: 600px) and (max-width: 959px) {
  .grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .cols { grid-template-columns: repeat(3, 1fr); }
}
/* ---------- pantallas grandes: menú a la izquierda, reel centrado */
@media (min-width: 960px) {
  :root { --side: 78px; --nav-h: 0px; }
  #app { inset: 0 0 0 var(--side); }
  .nav { top: 0; right: auto; width: var(--side); height: 100%; display: flex; flex-direction: column; gap: 4px; padding: 16px 11px; border-top: 0; border-right: 1px solid var(--line); background: var(--bg); }
  body.in-feed .nav { background: var(--bg); border-right-color: var(--line); }
  .nav .brand { display: grid; place-items: center; height: 54px; margin-bottom: 12px; text-decoration: none; }
  .nav .brand .logo { display: none; font-size: 28px; }
  .logo-mini { width: 44px; height: 44px; border-radius: 14px; background: var(--lime); color: var(--ink); font: 800 30px/40px var(--display); text-align: center; letter-spacing: -.05em; transform: rotate(-6deg); }
  .nav .wide-only { display: flex; }
  .nav a[data-tab] { flex-direction: row; justify-content: center; gap: 14px; height: 52px; border-radius: 16px; font-size: 15.5px; color: var(--muted); transition: background .15s, color .15s; }
  .nav a[data-tab]:hover { background: var(--s1); color: var(--text); }
  .nav a.active { background: var(--s1); color: var(--text); }
  .nav-label, .nav a.create .nav-label { display: none; }
  .nav a[data-tab="ajustes"] { margin-top: auto; }
  .toasts { bottom: 22px; left: var(--side); }
  .online, body.in-feed .online { top: auto; right: auto; bottom: 84px; left: 0; width: var(--side); justify-content: center; background: none; box-shadow: none; backdrop-filter: none; color: var(--muted); }
  .scrim { align-items: center; padding: 24px; }
  .panel { border-radius: 28px; height: min(76dvh, 640px); max-width: 520px; padding-bottom: 0; }
  .panel .grab { display: none; }
  .panel > header { padding-top: 16px; cursor: default; }
  .panel.dialog { max-width: 420px; }

  .feed-wrap { background: var(--bg); }
  .feed-top { background: none; padding: 16px 20px; justify-content: center; }
  .feed-tabs { flex: none; mask-image: none; background: var(--s1); border-radius: 999px; padding: 4px; gap: 2px; }
  .feed-tabs a { padding: 9px 17px; border-radius: 999px; font: 650 14.5px/1 var(--font); letter-spacing: -.01em; color: var(--muted); text-shadow: none; }
  .feed-tabs a:hover { color: var(--text); }
  .feed-tabs a.on { background: var(--text); color: var(--ink); }
  .feed-tabs a.on::after { display: none; }
  .feed-title { flex: none; background: var(--s1); border-radius: 999px; padding: 10px 22px; max-width: 420px; text-shadow: none; }
  .feed-top .round { background: var(--s1); position: absolute; top: 16px; width: 42px; height: 42px; }
  .feed-top .round:hover { background: var(--s2); }
  .feed-top .back { left: 20px; } .feed-top .mute { right: 20px; }
  .stepper { display: grid; gap: 10px; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); z-index: 12; }
  .stepper .round { background: var(--s1); width: 46px; height: 46px; }
  .stepper .round:hover { background: var(--s2); }
  .reel { background: var(--bg); display: grid; place-items: center; }
  .reel-box { position: relative; inset: auto; height: calc(100% - 100px); margin-top: 48px; aspect-ratio: 9 / 16; max-width: calc(100% - 230px); }
  .frame { border-radius: 26px; box-shadow: 0 0 0 1px var(--line), 0 30px 90px #000c; }
  .rail { right: auto; left: calc(100% + 16px); bottom: 4px; gap: 12px; }
  .votes { background: var(--s1); backdrop-filter: none; box-shadow: none; width: 48px; }
  .bubble-btn { width: 48px; height: 48px; border-radius: 50%; background: var(--s1); filter: none; transition: background .15s, transform .14s var(--ease); }
  .bubble-btn .ico { width: 23px; height: 23px; }
  .votes .bubble-btn { background: none; height: 42px; }
  .act:hover .bubble-btn { background: var(--s2); }
  .votes .act:hover .bubble-btn { background: none; color: var(--text); }
  .act { text-shadow: none; color: var(--muted); gap: 3px; }
  .act:hover { color: var(--text); }
  .rail .who .avatar { width: 48px; height: 48px; box-shadow: none; }
  .meta { right: 0; padding-right: 16px; }
  .react-pop { right: 8px; }
  .stage.is-mixed, .stage.is-youtube { padding: 20px 16px 150px; }
  .stage.is-audio { padding: 0 16px 60px; }
  .textcard { padding: 40px 28px 150px; }
  .textcard.s1 { font-size: 60px; } .textcard.s2 { font-size: 40px; }
  .c-dots { top: 14px; } .c-count { top: 10px; }
  .c-nav { display: grid; opacity: 0; transition: opacity .15s; }
  .frame:hover .c-nav, .c-nav:focus-visible { opacity: 1; }
  .end { background: var(--bg); }

  .page { padding: 32px 36px 64px; }
  .page h1 { font-size: 44px; margin-bottom: 20px; }
  .search { top: -32px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 10px; }
  .tile { border-radius: 18px; }
  .t-name { font-size: 14px; left: 12px; right: 12px; bottom: 28px; }
  .t-meta { left: 12px; bottom: 10px; font-size: 12.5px; }
  .tile.plain .t-name { inset: 14px 14px 34px; font-size: 24px; }
  .cols { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .editor-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 40px; }
  .editor-side { position: sticky; top: 0; }
  .option kbd { display: inline-block; }
  .only-desktop { display: block; }
  .list.activity, .explore-body > .list { max-width: 700px; }
  .landing .card { max-width: 460px; }
}
@media (min-width: 1240px) {
  :root { --side: 236px; }
  .nav { padding: 20px 14px; }
  .nav .brand { justify-content: flex-start; padding: 0 12px; place-items: center start; }
  .nav .brand .logo { display: block; } .logo-mini { display: none; }
  .nav a[data-tab] { justify-content: flex-start; padding: 0 14px; }
  .nav-label, .nav a.create .nav-label { display: block; font-weight: 600; }
  .nav a.active .nav-label { font-weight: 700; }
  .nav a.create { background: var(--lime); color: var(--ink); margin: 8px 0; }
  .nav a.create:hover { background: var(--lime); filter: brightness(1.08); color: var(--ink); }
  .nav a.create .nav-ico.plus { background: none; width: 26px; }
  .nav a.create .nav-label { font-weight: 700; }
  .online, body.in-feed .online { justify-content: flex-start; padding-left: 30px; font-size: 13.5px; }
  .online span { display: inline; font-weight: 500; }
}
@media (max-width: 959px) { .logo-mini { display: none; } }
@media (max-height: 700px) and (max-width: 959px) {
  .rail { gap: 10px; }
  .bubble-btn .ico { width: 25px; height: 25px; }
  .rail .who .avatar { width: 38px; height: 38px; }
  .meta .name { font-size: 20px; }
}
@media (max-width: 360px) {
  .totals { grid-template-columns: repeat(2, 1fr); gap: 10px 0; }
  .options { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
