/* Estilo casual: azul noche suave, mandarina para lo que se puede pulsar, esquinas redondeadas
   y texto cómodo de leer. Modo oscuro por defecto, claro si el sistema lo pide. */
:root {
  --bg: #161b3d;          /* azul noche */
  --surface: #1e2450;
  --surface-2: #272e62;
  --border: #353d77;
  --text: #f2f4ff;
  --muted: #adb3d9;
  --accent: #ff9442;      /* mandarina: lo activo y lo que se puede pulsar */
  --on-accent: #1d0c00;
  --accent-soft: rgba(255, 148, 66, .16);
  --link: #9db4ff;
  --hot: #ff9442;
  --up: #7ee06a;
  --down: #ff6b8b;
  --steam: #66c0f4;
  --roblox: #ff4d4d;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(5, 8, 30, .3), 0 10px 28px rgba(5, 8, 30, .28);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "Bricolage Grotesque", system-ui, sans-serif;   /* cifras de rankings y cuenta atrás */
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #eef1fb; --surface: #ffffff; --surface-2: #e3e8f8; --border: #cbd3ef;
    --text: #10164a; --muted: #565f97;
    --accent: #2b3bd8; --on-accent: #ffffff; --accent-soft: rgba(43, 59, 216, .1); --link: #2b3bd8;
    --hot: #f06a00; --up: #1f9d4a; --down: #d6264f;
    --shadow: 0 1px 2px rgba(16, 22, 74, .08), 0 10px 26px rgba(16, 22, 74, .08); color-scheme: light;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
/* Titulares redondos y con cuerpo, sin gritar */
h1, h2, h3 { font-family: var(--font-display); margin: 0; font-weight: 750; letter-spacing: -.015em; line-height: 1.12; }
h1 { font-size: 40px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}
/* Dos filas: marca y pestañas arriba; buscador, avisos y actualizar debajo */
.topbar-inner {
  max-width: 1320px; margin: 0 auto; padding: 8px 16px 10px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px;
}
.toolrow { flex: 1 1 100%; display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--accent); white-space: nowrap; }
.brand svg { width: 30px; height: 30px; }
.brand span, .brand b { color: var(--text); font-weight: 800; }
/* Pestañas como texto con una barra debajo de la activa */
/* Si no caben, las pestañas se desplazan en horizontal en vez de cortarse */
.tabs { display: flex; gap: 2px; flex: 1 1 0; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  padding: 8px 11px 10px; cursor: pointer; white-space: nowrap; position: relative; flex: none;
  font-weight: 600; color: var(--muted); transition: color .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.tabs a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 3px; border-radius: 2px; background: transparent; transition: background .15s; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); }
.tabs a.active::after { background: var(--accent); }
.tab-count { background: var(--accent); color: var(--on-accent); border-radius: 10px; font: 700 10px/17px var(--font-num); padding: 0 6px; line-height: 17px; }
.tabs a:hover::after { background: var(--border); }
.status { flex: none; display: flex; align-items: center; gap: 10px; font-size: 13px; white-space: nowrap; }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); border-radius: 10px;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { border-color: var(--accent); }
.icon-btn.spin svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

main { max-width: 1320px; margin: 0 auto; padding: 20px 16px 40px; }
.foot { text-align: center; font-size: 12px; padding: 0 16px 30px; }

/* ---------- Controles ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.toolbar input[type=search], .toolbar select {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 12px; min-height: 38px; outline: none;
}
.toolbar input[type=search] { flex: 1 1 260px; min-width: 0; }
.toolbar input:focus, .toolbar select:focus { border-color: var(--accent); }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; padding: 5px 12px; border-radius: 7px; cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 500; }
.seg button.active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.check { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); cursor: pointer; font-size: 14px; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip {
  border: 1px solid var(--border); background: var(--surface); border-radius: 10px;
  padding: 4px 11px; font-size: 13px; cursor: pointer; color: var(--muted); transition: all .12s;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.chip.active .n { opacity: .8; }
.chip .n { font-size: 11px; opacity: .7; }
.chip .flag { font-size: 10px; font-weight: 700; letter-spacing: .04em; opacity: .65; }
.chips.big .chip { padding: 8px 16px; font-size: 14px; font-weight: 600; }
.chip.off { opacity: .45; text-decoration: line-through; }

.btn {
  border: 1px solid var(--border); background: var(--surface); padding: 10px 22px;
  border-radius: 10px; cursor: pointer; font-weight: 600; font-weight: 700;
}
.btn:hover { border-color: var(--accent); }
.more-wrap { display: flex; justify-content: center; margin-top: 20px; }

/* ---------- Noticias ---------- */
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.trending { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 4px; }
.trending-label { font-size: 13px; font-weight: 600; color: var(--hot); white-space: nowrap; }
.trending .chips { margin-bottom: 10px; }
.trending .chip { border-color: color-mix(in srgb, var(--hot) 35%, var(--border)); }
.trending .chip.active { background: color-mix(in srgb, var(--hot) 18%, transparent); border-color: var(--hot); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, border-color .15s, box-shadow .15s;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.thumb { aspect-ratio: 16 / 9; background: var(--surface-2); position: relative; overflow: hidden; }
.thumb img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--muted);
  background: var(--surface-2);
}
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 12px; color: var(--muted); }
.meta > span { white-space: nowrap; }
.src { font-weight: 700; color: var(--text); }
.lang { font-size: 10px; font-weight: 700; border: 1px solid var(--border); border-radius: 4px; padding: 0 4px; }
.hot-badge { color: var(--hot); font-weight: 600; margin-left: auto; white-space: nowrap; }
.card h3 { font-size: 19px; line-height: 1.15; font-weight: 800; }
.card p { margin: 0; font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.hero {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 0; margin-bottom: 16px;
}
.hero .thumb { aspect-ratio: auto; min-height: 280px; }
.hero .card-body { padding: 22px; justify-content: center; gap: 10px; }
.hero h3 { font-size: 34px; line-height: 1.05; }
.hero p { -webkit-line-clamp: 5; font-size: 14.5px; }
.hero .meta { font-size: 13px; }

.news-side { position: sticky; top: 124px; display: flex; flex-direction: column; gap: 16px; }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.side-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.side-head h3 { font-size: 15px; }
.side-head a { font-size: 12px; color: var(--accent); font-weight: 600; }
.mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mini-list li a { display: grid; grid-template-columns: 18px 44px 1fr; gap: 10px; align-items: center; padding: 5px 6px; border-radius: 12px; }
.mini-list li a:hover { background: var(--surface-2); }
.mini-list .r { font-weight: 700; color: var(--muted); font-size: 13px; text-align: right; }
.mini-list img { width: 44px; height: 44px; object-fit: cover; border-radius: 12px; background: var(--surface-2); }
.mini-list.wide li a { grid-template-columns: 18px 80px 1fr; }
.mini-list.wide img { width: 80px; height: 37px; border-radius: 5px; }
.mini-list li a > div { min-width: 0; }
.mini-list .t { font-size: 13.5px; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-list .s { font-size: 12px; color: var(--muted); }

/* ---------- Rankings ---------- */
.rank-header { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 14px; }
.rank-header h1 { font-size: 40px; }
.rank-header p { margin: 4px 0 0; font-size: 14px; max-width: 760px; }
.rank-list { display: flex; flex-direction: column; gap: 8px; }
.row {
  display: grid; grid-template-columns: 52px 184px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 16px 10px 10px;
  transition: border-color .15s, background .15s;
}
.row:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); background: var(--surface-2); }
.row .rank { font-family: var(--font-num); font-size: 26px; font-weight: 700; text-align: center; line-height: 1; }
.row .rank small { display: block; font-size: 11px; font-family: var(--font-body); font-weight: 600; margin-top: 4px; }
.row .rank .up { color: var(--up); } .row .rank .down { color: var(--down); } .row .rank .same { color: var(--muted); } .row .rank .new { color: var(--hot); }
.row.top1 .rank { color: #f5b82e; } .row.top2 .rank { color: #9aa4b8; } .row.top3 .rank { color: #d48a55; }
.row .art { width: 184px; aspect-ratio: 460 / 215; border-radius: 12px; object-fit: cover; background: var(--surface-2); display: block; }
.row .art.square { width: 72px; height: 72px; aspect-ratio: 1; border-radius: 14px; }
.row.roblox { grid-template-columns: 52px 72px minmax(0, 1fr) auto; }
.row .info { min-width: 0; }
.row .name { font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .sub { font-size: 13px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.tag { font-size: 11.5px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 1px 7px; color: var(--muted); }
.stats { display: flex; gap: 22px; text-align: right; }
.stat { min-width: 86px; }
.stat b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.stat .pos { color: var(--up); } .stat .mid { color: #f3c969; } .stat .neg { color: var(--down); }
.stat.hl b { color: var(--accent); }
.price .disc { background: var(--up); color: #062; border-radius: 5px; padding: 0 5px; font-size: 12px; margin-right: 6px; }

.empty, .loading { text-align: center; color: var(--muted); padding: 50px 10px; }
.loading::before {
  content: ""; display: block; width: 28px; height: 28px; margin: 0 auto 12px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--accent); animation: spin .8s linear infinite;
}
.error { color: var(--down); }

.store-head { margin-top: 22px; }
.store-row .rank { color: var(--muted); }

/* ---------- Buscador ---------- */
.search { position: relative; flex: 1 1 auto; min-width: 0; }
.search > svg { position: absolute; left: 11px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; min-height: 38px; padding: 8px 12px 8px 34px; border-radius: 10px; outline: none;
  background: var(--surface); border: 1px solid var(--border);
}
.search input:focus { border-color: var(--accent); }
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; max-height: 70vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 6px;
}
.sr-head { font-size: 11px; font-weight: 700; color: var(--muted); padding: 8px 8px 4px; }
.sr-item { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 12px; }
.sr-item.text { grid-template-columns: 1fr auto; }
.sr-item:hover { background: var(--surface-2); }
.sr-img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.sr-img.wide { width: 76px; height: 29px; }
.sr-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-sub { font-size: 12px; color: var(--muted); white-space: nowrap; }
.sr-empty { padding: 14px; color: var(--muted); font-size: 14px; text-align: center; }

/* ---------- Campana ---------- */
.bell-wrap { position: relative; }
.badge {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--hot); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.bell-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(380px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; z-index: 40;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 6px;
}
.bp-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; font-size: 14px; }
.bp-head a { color: var(--accent); font-weight: 600; font-size: 13px; }
.notif { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 8px 10px; border-radius: 10px; position: relative; }
.notif:hover { background: var(--surface-2); }
.notif.unread::before { content: ""; position: absolute; left: 2px; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--hot); }
.notif-img { width: 64px; height: 30px; object-fit: cover; border-radius: 5px; background: var(--surface-2); }
.notif-body { min-width: 0; }
.notif-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.notif-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-head span { font-size: 12px; white-space: nowrap; }
.notif-text { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-list { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px; }
.notif-list .empty { padding: 30px 10px; }

/* ---------- Avisos flotantes ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px;
  padding: 12px 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; font-size: 14px;
  animation: toast-in .25s ease-out; transition: opacity .5s, transform .5s;
}
.toast span { color: var(--muted); font-size: 13px; }
.toast.review-toast { flex-direction: row; gap: 10px; align-items: flex-start; border-left-color: var(--hot); }
.toast.review-toast > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.toast.out { opacity: 0; transform: translateY(10px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Carruseles ---------- */
#home > section { margin-bottom: 34px; }
.row-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 0 0 12px; }
.row-head h2 { font-size: 27px; }
.row-head a, .row-head .link-btn { font-size: 13px; color: var(--accent); font-weight: 600; white-space: nowrap; }

.fc-wrap { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 10px; }
.fc-arrow, .rc-arrow {
  width: 44px; height: 88px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
  background: var(--surface); font-size: 30px; line-height: 1; color: var(--text); transition: background .15s, border-color .15s, opacity .15s;
}
.fc-arrow:hover, .rc-arrow:hover:not(:disabled) { background: var(--accent-soft); border-color: var(--accent); }
.fc-stage { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); min-height: 360px; }
.fc-slide { display: none; grid-template-columns: 1.7fr 1fr; min-height: 360px; animation: fade .45s ease; }
.fc-slide.active { display: grid; }
@keyframes fade { from { opacity: 0; } }
.fs-media { position: relative; display: block; background: var(--surface-2); min-height: 360px; overflow: hidden; }
.fs-media .main-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: opacity .2s; }
.fs-media .ph { position: absolute; inset: 0; display: grid; place-items: center; font: 700 40px var(--font-display); color: var(--muted); background: var(--surface-2); }
.fs-info { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fs-info h3 { font-size: 32px; line-height: 1.05; }
.fs-info h3:hover { color: var(--accent); }
.fs-info p { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.fs-related { margin-top: auto; border-top: 1px solid var(--border); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.fs-related-head { font-size: 12.5px; color: var(--hot); }
.fs-related a { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.fs-related a:hover { color: var(--accent); }
.fs-related .src { font-weight: 700; margin-right: 4px; }
.fs-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fs-shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; cursor: pointer; background: var(--surface-2); opacity: .8; transition: opacity .15s, outline-color .15s; outline: 2px solid transparent; }
.fs-shots img:hover { opacity: 1; outline-color: var(--accent); }
.fs-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; }
.price-tag { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 4px 10px; font-weight: 700; white-space: nowrap; }
.disc { background: var(--up); color: #053; border-radius: 5px; padding: 0 5px; font-size: 12px; font-weight: 700; }
.fc-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.fc-dots button { width: 18px; height: 5px; border-radius: 10px; border: 0; background: var(--border); cursor: pointer; padding: 0; transition: background .15s, width .15s; }
.fc-dots button.active { background: var(--accent); width: 30px; }

.rc-wrap { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 10px; }
.rc-arrow:disabled { opacity: .3; cursor: default; }
.rc-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 8px; }
.rc-track::-webkit-scrollbar { display: none; }
.rc-card {
  flex: 0 0 260px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  transition: transform .15s, border-color .15s; display: flex; flex-direction: column;
}
.rc-card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.rc-card.news { flex-basis: 280px; }
.rc-card.roblox { flex-basis: 170px; }
.rc-card .thumb.wide { aspect-ratio: 460 / 215; }
.rc-card .thumb.square { aspect-ratio: 1; }
.rc-card .thumb img { position: absolute; inset: 0; }
.rank-pill { position: absolute; z-index: 2; left: 8px; top: 8px; background: var(--accent); color: var(--on-accent); font: 700 12px/1.4 var(--font-num); padding: 2px 7px; border-radius: 10px; }
.rank-pill.hot { background: var(--hot); }
.rc-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.rc-title { font-weight: 600; font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rc-title.one { -webkit-line-clamp: 1; }
.rc-sub { font-size: 12.5px; color: var(--muted); }

/* ---------- Ficha de juego ---------- */
.crumbs { margin-bottom: 8px; font-size: 14px; }
.crumbs a { color: var(--accent); font-weight: 600; }
.game-title { font-size: 46px; margin-bottom: 14px; }
.game-hero { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 20px; margin-bottom: 34px; }
.gallery { min-width: 0; }
.gallery .main-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); display: block; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px; scrollbar-width: thin; }
.thumbs img { flex: 0 0 120px; width: 120px; min-width: 0; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; cursor: pointer; opacity: .7; outline: 2px solid transparent; transition: opacity .15s; }
.thumbs img:hover { opacity: 1; outline-color: var(--accent); }
.game-side { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 12px; align-self: start; }
.game-header { width: 100%; border-radius: 12px; display: block; }
.game-desc { margin: 0; font-size: 14px; color: var(--muted); }
.game-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 13.5px; }
.game-facts dt { color: var(--muted); }
.game-facts dd { margin: 0; }
.pos { color: var(--up); } .mid { color: #e0a800; } .neg { color: var(--down); } .hot { color: var(--hot); }
.game-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.follow-btn { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.follow-btn.on { background: var(--accent-soft); color: var(--text); }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: .6; cursor: default; }
.small { font-size: 12.5px; }
.game-side .small { margin: 0; }

.reviews { margin-bottom: 34px; }
.rev-summary { display: flex; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; }
.rev-big { font: 700 40px/1 var(--font-num); }
.rev-bar-wrap { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.rev-bar { height: 8px; border-radius: 4px; background: var(--down); overflow: hidden; }
.rev-bar span { display: block; height: 100%; background: var(--up); }
#rev-list { display: flex; flex-direction: column; gap: 10px; }
.review { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--up); border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.review.down { border-left-color: var(--down); }
.review header { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; }
.review .verdict { font-weight: 700; font-size: 14px; }
.review.up .verdict { color: var(--up); } .review.down .verdict { color: var(--down); }
.rev-date { margin-left: auto; }
.rev-text { font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.rev-text.clamp { display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.rev-text .rh { display: block; font-size: 15.5px; margin: 4px 0; }
.spoiler { background: var(--text); color: var(--text); border-radius: 10px; padding: 0 2px; }
.spoiler:hover { background: transparent; }
.dev-resp { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; }
.review footer { display: flex; gap: 14px; font-size: 12.5px; flex-wrap: wrap; }
.review footer a { margin-left: auto; color: var(--accent); }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--accent); font-weight: 600; font-size: 13px; align-self: flex-start; }
.link-btn.danger { color: var(--down); }

/* ---------- Novedades del juego ---------- */
.app-news { margin-bottom: 34px; }
.app-news .row-head { flex-wrap: wrap; }
.upd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.upd-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, transform .15s; }
.upd-card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.upd-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.upd-badge { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.upd-badge.patch { color: var(--up); border-color: color-mix(in srgb, var(--up) 45%, var(--border)); }
.upd-title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.upd-text { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.notif-filter { margin-bottom: 10px; }
.sub-news { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-news:hover { color: var(--accent); }

/* ---------- Estudio ---------- */
:root { --itch: #fa5c5c; }
.studio-hero {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 30px;
  background: var(--surface); border-top: 4px solid var(--accent);
  display: grid; grid-template-columns: 1fr auto; gap: 14px 20px; align-items: center;
}
.studio-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.studio-logo { width: 64px; height: 64px; flex: none; border-radius: 16px; display: grid; place-items: center; font: 700 24px var(--font-display); color: var(--on-accent); background: var(--accent); }
.studio-id h1 { font-size: 30px; }
.studio-id p { margin: 2px 0 0; }
.studio-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.plat-btn.steam { border-color: var(--steam); }
.plat-btn.steam:hover { background: color-mix(in srgb, var(--steam) 15%, var(--surface)); }
.plat-btn.itch { border-color: var(--itch); }
.plat-btn.itch:hover { background: color-mix(in srgb, var(--itch) 15%, var(--surface)); }
.studio-note { grid-column: 1 / -1; margin: 0; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin-bottom: 34px; }
.lib-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.lib-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.lib-cover { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.lib-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plat-badge { position: absolute; z-index: 2; right: 8px; top: 8px; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: #fff; }
.plat-badge.steam { background: #1b2838; box-shadow: inset 0 0 0 1px var(--steam); }
.plat-badge.itch { background: var(--itch); }
.lib-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.lib-name { font: 700 17px var(--font-display); line-height: 1.25; }
.lib-name:hover { color: var(--accent); }
.lib-rating { font-size: 14px; }
.lib-rating.none { color: var(--muted); font-style: italic; font-size: 13px; }
.lib-stars { letter-spacing: 1px; }
.lib-text { margin: 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lib-foot { margin-top: auto; padding-top: 4px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn.small-btn { padding: 6px 12px; font-size: 13px; }

/* ---------- Calendario ---------- */
.cal-next { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--hot); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-size: 15px; }
.cal-next a:hover { color: var(--accent); }
.cal-month { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 26px; }
.cal-month-head { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 12px; }
.cal-month-head h2 { font-size: 20px; min-width: 200px; text-align: center; }
.cal-month-head .icon-btn { font-size: 20px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-wd { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding-bottom: 4px; }
.cal-cell { min-height: 96px; border: 1px solid var(--border); border-radius: 12px; padding: 5px; display: flex; flex-direction: column; gap: 4px; position: relative; background: var(--bg); min-width: 0; }
.cal-cell.empty { border: 0; background: none; }
.cal-cell.today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cal-cell.has { background: color-mix(in srgb, var(--accent) 7%, var(--bg)); }
.cal-num { font-size: 12px; font-weight: 700; color: var(--muted); }
.cal-cell.today .cal-num { color: var(--accent); }
.cal-chip { display: flex; flex-direction: column; gap: 2px; font-size: 11px; line-height: 1.2; min-width: 0; }
.cal-chip img { width: 100%; aspect-ratio: 460 / 215; object-fit: cover; border-radius: 4px; background: var(--surface-2); }
.cal-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cal-chip:hover span { color: var(--accent); }
.cal-more { font-size: 11px; color: var(--muted); }
.cal-dot { display: none; }
.cal-month-note { margin: 10px 0 0; }
.cal-month-note a { color: var(--accent); }
.cal-month-title { font-size: 18px; margin: 22px 0 10px; }
.cal-list { margin-bottom: 34px; }
.cal-entry { display: grid; grid-template-columns: 64px 160px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px 10px 10px; margin-bottom: 8px; }
.cal-date { text-align: center; border-radius: 10px; background: var(--surface-2); padding: 6px 4px; }
.cal-date b { display: block; font: 700 24px/1 var(--font-num); }
.cal-date span { font-size: 11px; color: var(--muted); }
.cal-date.approx span { font-size: 12px; font-weight: 700; text-transform: none; color: var(--text); }
.cal-img { width: 160px; aspect-ratio: 460 / 215; object-fit: cover; border-radius: 12px; display: block; background: var(--surface-2); }
.cal-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cal-name { font-weight: 700; font-size: 16px; }
.cal-name:hover { color: var(--accent); }
.cal-reason.sub { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.cal-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cal-left { font-weight: 700; color: var(--hot); white-space: nowrap; }
.cal-left.done { color: var(--up); }
.cal-chip.past { opacity: .7; }
.cal-reason.studio { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.cal-reason.itch { color: var(--itch); border-color: color-mix(in srgb, var(--itch) 45%, var(--border)); }

/* ---------- Compañías ---------- */
.co-add { margin-bottom: 14px; }
.co-search { max-width: 520px; margin-left: 0; }
.co-pick { width: 100%; border: 0; background: none; text-align: left; cursor: pointer; grid-template-columns: 1fr; }
.co-pick .sr-sub { white-space: normal; }
.co-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 30px; }
.co-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.co-card.own { border-top: 3px solid var(--accent); }
.co-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.co-logo { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; font: 700 16px var(--font-display); color: var(--accent); background: var(--surface-2); border: 1px solid var(--border); }
.co-card.own .co-logo { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.co-title { min-width: 0; }
.co-name { font: 700 18px/1.2 var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-kind { font-size: 12.5px; color: var(--muted); }
.co-card.own .co-kind { color: var(--accent); font-weight: 600; }
.co-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.co-stat { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; transition: border-color .15s; }
.co-stat:hover { border-color: var(--accent); }
.co-stat b { font: 700 24px/1.1 var(--font-num); color: var(--accent); font-variant-numeric: tabular-nums; }
.co-stat span { font-size: 12px; color: var(--muted); line-height: 1.3; }
.co-stat.zero b { color: var(--muted); }
.co-next { font-size: 13.5px; line-height: 1.4; margin-top: -4px; }
.co-next a { font-weight: 700; }
.co-next a:hover { color: var(--accent); }
.co-kw { display: flex; flex-direction: column; gap: 6px; }
.co-kw-label { font-size: 12px; color: var(--muted); }
.co-kw-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.co-kw-chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px 2px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; }
.co-kw-chip button { width: 20px; height: 20px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; padding: 0; font-size: 15px; line-height: 1; }
.co-kw-chip button:hover { background: color-mix(in srgb, var(--down) 20%, transparent); color: var(--down); }
.co-kw-add { width: 96px; padding: 3px 10px; border-radius: 999px; border: 1px dashed var(--border); background: none; font-size: 13px; outline: none; transition: width .15s, border-color .15s; }
.co-kw-add:focus { width: 160px; border-style: solid; border-color: var(--accent); }
.co-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); }
.co-foot .link-btn { align-self: center; }
.co-empty { padding: 26px 10px; margin-bottom: 30px; }
.co-chips { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.co-chip .link-btn { font-size: 12.5px; margin-left: 4px; }
.co-chip .link-btn.on { color: var(--up); }
#news-companies { align-items: center; }
.co-label { color: var(--accent); margin-right: 4px; }

/* ---------- Ruleta ---------- */
.roul-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; margin-bottom: 40px; }
.roul-stage { display: flex; flex-direction: column; align-items: center; gap: 26px; min-width: 0; }

/* La tele: carcasa mandarina, pantalla de tubo con líneas y viñeta */
.tv { --tv-body: #ff9442; --tv-edge: #d9672a; --tv-screen: #0b0e22; width: min(640px, 100%); position: relative; padding-top: 46px; }
.tv-antenna { position: absolute; top: 0; left: 50%; width: 0; height: 52px; }
.tv-antenna span { position: absolute; bottom: 0; left: 0; width: 4px; height: 58px; border-radius: 4px; background: var(--muted); transform-origin: bottom center; }
.tv-antenna span:first-child { transform: rotate(-32deg); }
.tv-antenna span:last-child { transform: rotate(28deg); height: 48px; }
.tv-antenna::after { content: ""; position: absolute; left: -16px; bottom: -8px; width: 36px; height: 16px; border-radius: 18px 18px 4px 4px; background: var(--tv-edge); }
.tv-body { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 18px; padding: 20px; border-radius: 30px; background: var(--tv-body); box-shadow: inset 0 -8px 0 var(--tv-edge), 0 18px 40px rgba(5, 8, 30, .35); }
.tv-screen {
  position: relative; aspect-ratio: 460 / 215; border-radius: 26px / 34px; overflow: hidden; background: var(--tv-screen);
  box-shadow: inset 0 0 0 6px #2a1608, inset 0 0 40px rgba(0, 0, 0, .8);
}
.tv-screen::after {   /* líneas de barrido y viñeta del tubo */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 4; border-radius: inherit;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 2px, transparent 2px 4px), radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55) 100%);
}
.tv-static { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: 0; z-index: 2; }
.tv-static.on { opacity: .9; }
.tv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.tv-idle { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; z-index: 3; color: #c9cff5; font: 600 19px/1.4 var(--font-display); padding: 20px; }
.tv-caption { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 3; color: #fff; font: 700 20px/1.2 var(--font-display); text-shadow: 0 2px 8px rgba(0, 0, 0, .9); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-screen.flick .tv-img { animation: tv-flick .12s steps(2); }
.tv-screen.tune-in .tv-img { animation: tv-on .5s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes tv-flick { from { filter: brightness(1.8) saturate(.4); transform: translateX(-2px); } }
@keyframes tv-on { 0% { transform: scale(1.02, .02); filter: brightness(3); } 60% { transform: scale(1, 1.03); filter: brightness(1.3); } }
.tv-panel { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 14px; padding: 6px 0; }
.tv-dial { width: 62px; height: 62px; border-radius: 50%; background: #2a1608; box-shadow: inset 0 0 0 6px #4a2a12; position: relative; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.tv-dial::after { content: ""; position: absolute; top: 8px; left: 50%; width: 5px; height: 18px; margin-left: -2.5px; border-radius: 3px; background: #ffd9b8; }
.tv-grille { width: 62px; flex: 1; min-height: 40px; border-radius: 10px; background: repeating-linear-gradient(0deg, #2a1608 0 4px, transparent 4px 9px); opacity: .55; }
.btn.tv-go { width: 100%; padding: 12px 6px; border-radius: 16px; background: #2a1608; border-color: #2a1608; color: #fff; font: 700 17px var(--font-display); }
.btn.tv-go:hover:not(:disabled) { background: #000; }
.btn.tv-go:disabled { opacity: .7; }
.tv-feet { display: flex; justify-content: space-between; padding: 0 70px; }
.tv-feet span { width: 46px; height: 14px; border-radius: 0 0 12px 12px; background: var(--tv-edge); }

.roul-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.roul-cats { display: flex; flex-direction: column; gap: 8px; }
.roul-cat { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.roul-cat:hover:not(:disabled) { border-color: var(--accent); }
.roul-cat.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 4px 0 0 var(--accent); }
.roul-cat:disabled { cursor: default; }
.roul-cat-emoji { font-size: 24px; text-align: center; }
.roul-cat-text { display: flex; flex-direction: column; min-width: 0; }
.roul-cat-text b { font: 700 16px var(--font-display); }
.roul-cat-text span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.roul-cat-n { font: 700 13px var(--font-num); color: var(--muted); }
.roul-side h3 { font-size: 17px; margin-bottom: 8px; }
.roul-hist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.roul-hist img { width: 100%; aspect-ratio: 460 / 215; object-fit: cover; border-radius: 10px; display: block; }

.roul-card { width: min(640px, 100%); display: grid; grid-template-columns: 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); animation: roul-in .35s ease-out; }
@keyframes roul-in { from { opacity: 0; transform: translateY(8px); } }
.roul-card-img { width: 100%; aspect-ratio: 460 / 215; object-fit: cover; display: block; }
.roul-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.roul-shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.roul-card-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.roul-card h2 { font-size: 30px; }
.roul-note { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--gold); }
.roul-meta, .roul-desc { margin: 0; }
.roul-desc { color: var(--muted); max-width: 62ch; }
.roul-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.btn.roul-steam { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- Seguidos ---------- */
.hdr-actions { display: flex; gap: 8px; }
.subs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-bottom: 30px; }
.sub-card { display: grid; grid-template-columns: 150px 1fr; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
.sub-img { width: 150px; aspect-ratio: 460 / 215; object-fit: cover; border-radius: 10px; display: block; background: var(--surface-2); }
.sub-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sub-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: auto; padding-top: 4px; }
.sub-actions .link-btn { white-space: nowrap; }
.big-empty { background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); margin-bottom: 30px; }
.big-empty p { max-width: 480px; margin: 10px auto 0; }

/* ---------- The Game Awards ---------- */
:root { --gold: #e8b64c; }
.tga-hero {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 30px 28px; margin-bottom: 34px;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--border));
  background:
    var(--surface);
}
.tga-sub { margin: -10px 0 18px; font-size: 17px; color: var(--muted); }
.tga-hero h1 { font-size: 46px; margin: 0 0 18px; }
.countdown { display: flex; gap: 12px; flex-wrap: wrap; }
.cd-unit { min-width: 104px; padding: 14px 10px 10px; text-align: center; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.cd-unit b { display: block; font: 700 56px/1 var(--font-num); font-variant-numeric: tabular-nums; color: var(--gold); }
.cd-unit span { font-size: 12px; color: var(--muted); }
.countdown.done, .countdown.live { font: 600 22px var(--font-display); }
.countdown.live { color: var(--down); }
.countdown.compact { gap: 6px; }
.countdown.compact .cd-unit { min-width: 0; padding: 4px 9px; display: flex; align-items: baseline; gap: 4px; border-radius: 12px; }
.countdown.compact .cd-unit b { font-size: 18px; display: inline; }
.countdown.compact .cd-unit span { font-size: 11px; text-transform: none; letter-spacing: 0; }
.countdown.compact.done, .countdown.compact.live { font-size: 15px; }
.tga-when { margin: 18px 0 14px; font-size: 15px; }
.tga-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.btn.tga-vote { background: var(--gold); border-color: var(--gold); color: #1d1606; }
.btn.tga-vote:hover { filter: brightness(1.08); }
.tga-hero .small { max-width: 760px; margin: 0; }

.tga-banner {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--border));
  background: var(--surface); border-left: 4px solid var(--gold);
}
#home > .tga-banner { margin-bottom: 26px; }
.tga-banner-main { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; min-width: 0; }
.tga-trophy { font-size: 24px; }
.tga-banner .btn { padding: 7px 14px; }

.tga-row .ph.tga-ph { font-size: 17px; padding: 10px; text-align: center; color: var(--gold); background: var(--surface-2); }
.tga-winners { margin-bottom: 34px; }
.tga-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.tga-card.goty { border-color: color-mix(in srgb, var(--gold) 60%, var(--border)); background: var(--surface); border-left: 4px solid var(--gold); padding: 18px; margin-bottom: 14px; }
.tga-cat { font-size: 12.5px; font-weight: 700; color: var(--gold); }
.tga-cat .muted { text-transform: none; letter-spacing: 0; font-weight: 500; }
.tga-winner { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; line-height: 1.35; }
.tga-winner.big { font-size: 20px; }
.tga-winner.pending { color: var(--muted); font-style: italic; }
.tga-cup { flex: none; }
.tga-noms summary { cursor: pointer; font-size: 12.5px; color: var(--muted); }
.tga-noms ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
.tga-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; align-items: start; }
.tga-hits { display: flex; flex-direction: column; gap: 6px; }
.tga-hit { display: grid; grid-template-columns: 56px minmax(140px, 260px) 1fr; gap: 12px; align-items: baseline; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.tga-hit.won { border-color: color-mix(in srgb, var(--gold) 50%, var(--border)); }
.tga-hit-year { font: 700 16px var(--font-num); color: var(--gold); }
.tga-hit-cat { color: var(--muted); font-size: 13px; }
.tga-hit:not(.won) .tga-hit-text { color: var(--muted); }

/* ---------- Responsive ---------- */
/* Solo el mando (sin «Portal Gamer») cuando hace falta sitio para las pestañas */
@media (min-width: 1440px) and (max-width: 1600px) and (min-height: 720px) { body.has-ads .brand span { display: none; } }
@media (max-width: 1200px) { .brand span { display: none; } }
@media (max-width: 1100px) {
  .news-layout { grid-template-columns: 1fr; }
  .news-side { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .stats .stat.opt { display: none; }
}
@media (max-width: 900px) {
  .fc-slide { grid-template-columns: 1fr; }
  .fs-media { min-height: 0; aspect-ratio: 16 / 9; }
  .fc-stage { min-height: 0; }
  .game-hero { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .brand span { display: inline; }
  .tabs { order: 3; flex-basis: 100%; }
  .tabs a { padding: 6px 8px 9px; font-size: 14px; }
  .toolrow { order: 4; }
  #updated { display: none; }
  .fc-wrap, .rc-wrap { grid-template-columns: minmax(0, 1fr); }
  .fc-arrow, .rc-arrow { display: none; }
  .fs-info h3 { font-size: 18px; }
  .rc-card { flex-basis: 220px; }
  .rc-card.news { flex-basis: 240px; }
  .rc-card.roblox { flex-basis: 140px; }
  .game-title { font-size: 24px; }
  .sub-card { grid-template-columns: 110px 1fr; }
  .sub-img { width: 110px; }
  .rev-date { margin-left: 0; }
  .rank-header { flex-direction: column; align-items: stretch; }
  .cal-cell { min-height: 46px; padding: 3px; }
  .cal-chip, .cal-more { display: none; }
  .cal-dot { display: grid; place-items: center; position: absolute; right: 4px; bottom: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; }
  .cal-month-head h2 { min-width: 0; font-size: 17px; }
  .cal-entry { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; }
  .cal-entry > a { display: none; }
  .cal-side { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
  .roul-layout { grid-template-columns: 1fr; gap: 14px; }
  .roul-side { order: -1; }
  .roul-cats { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .roul-cat { flex: 0 0 auto; grid-template-columns: auto auto; padding: 8px 12px; }
  .roul-cat-emoji { font-size: 18px; }
  .roul-cat-text span, .roul-cat-n, #roul-history { display: none; }
  .tv { padding-top: 34px; }
  .tv-body { grid-template-columns: 1fr; padding: 12px; border-radius: 22px; }
  .tv-panel { flex-direction: row; padding: 0; }
  .tv-dial { width: 44px; height: 44px; flex: none; }
  .tv-grille { min-height: 0; height: 30px; flex: 1; }
  .btn.tv-go { width: auto; flex: 1.4; }
  .tv-feet { padding: 0 40px; }
  .roul-card h2 { font-size: 24px; }
  .studio-hero { grid-template-columns: 1fr; padding: 18px 16px; }
  .studio-links { justify-content: flex-start; }
  .studio-id h1 { font-size: 24px; }
  .tga-hero { padding: 22px 16px; }
  .tga-hero h1 { font-size: 24px; }
  .cd-unit { min-width: 0; flex: 1; padding: 10px 4px; }
  .cd-unit b { font-size: 28px; }
  .tga-hit { grid-template-columns: 48px 1fr; }
  .tga-hit-text { grid-column: 2; }
  .hero { grid-template-columns: 1fr; }
  .hero .thumb { min-height: 0; aspect-ratio: 16/9; }
  .hero h3 { font-size: 20px; }
  .row, .row.roblox { grid-template-columns: 34px 96px minmax(0, 1fr); padding: 10px; gap: 10px; }
  .row.roblox { grid-template-columns: 34px 56px minmax(0, 1fr); }
  .row .art { width: 96px; }
  .row .art.square { width: 56px; height: 56px; }
  .row .rank { font-size: 17px; }
  .row .stats { grid-column: 2 / -1; justify-content: flex-start; text-align: left; gap: 16px; flex-wrap: wrap; }
  .stat { min-width: 0; }
  .row .name { white-space: normal; font-size: 15px; }
  .rank-header h1 { font-size: 23px; }
}

/* ---------- Anuncios laterales (160×600) ---------- */
.ad-slot { display: none; }
@media (min-width: 1440px) and (min-height: 720px) {
  /* Hueco a cada lado para los banners: el contenido se estrecha lo justo */
  body.has-ads main, body.has-ads .topbar-inner { max-width: min(1320px, calc(100vw - 400px)); }
  .ad-slot {
    display: flex; flex-direction: column; gap: 6px; position: fixed; z-index: 15; width: 160px;
    top: max(124px, calc(50vh - 290px));
  }
  .ad-slot.left { left: max(20px, calc((100vw - 1320px) / 2 - 180px)); }
  .ad-slot.right { right: max(20px, calc((100vw - 1320px) / 2 - 180px)); }
}
.ad-head { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--muted); padding: 0 2px; }
.ad-close { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 12px; cursor: pointer; padding: 0; }
.ad-close:hover { color: var(--text); border-color: var(--accent); }
.ad-stage { position: relative; width: 160px; height: 600px; border-radius: 14px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); }
.ad-frame { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.ad-frame.in { opacity: 1; }
.ad-link { display: block; width: 100%; height: 100%; }
.ad-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-progress { height: 3px; border-radius: 2px; background: var(--border); overflow: hidden; }
.ad-progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; animation: ad-timer var(--ad-seconds, 10s) linear forwards; }
body.ads-paused .ad-progress span { animation-play-state: paused; }
@keyframes ad-timer { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Diseño provisional mientras no haya imagen */
.ad-ph {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 14px 18px; text-align: center; background: var(--ad-bg); color: var(--ad-fg);
}
.ad-ph-art { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.ad-ph-emoji { font-size: 76px; line-height: 1; margin-top: 70px; }
.ad-ph-name { font: 800 25px/1.05 var(--font-display); letter-spacing: -.01em; }
.ad-ph-text { font-size: 14px; line-height: 1.4; opacity: .92; }
.ad-ph-cta { margin-top: auto; padding: 9px 14px; border-radius: 999px; background: var(--ad-accent); color: var(--ad-cta-fg); font-weight: 700; font-size: 14px; }
.ad-link:hover .ad-ph-cta { filter: brightness(1.1); }

/* ---------- Cuentas ---------- */
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover:not(:disabled) { filter: brightness(1.08); }
.btn.danger { border-color: var(--down); color: var(--down); background: transparent; }
.btn.danger:hover:not(:disabled) { background: color-mix(in srgb, var(--down) 14%, transparent); }
.game-actions.center { justify-content: center; margin-top: 16px; }
.account-wrap { position: relative; }
.account-btn { width: auto; min-width: 36px; padding: 0 12px 0 10px; gap: 6px; display: inline-flex; align-items: center; font-weight: 600; font-size: 13.5px; }
.account-btn.signed { padding: 0 3px; }
.avatar {
  width: 40px; height: 40px; flex: none; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font: 700 15px var(--font-display); letter-spacing: .02em;
}
.avatar.sm { width: 28px; height: 28px; font-size: 11.5px; }
.avatar.xs { width: 20px; height: 20px; font-size: 9px; margin-right: 6px; vertical-align: -5px; }
.avatar.xl { width: 72px; height: 72px; font-size: 26px; }
.account-panel { width: 260px; }
.ap-head { display: flex; gap: 10px; align-items: center; padding: 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.ap-head b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-head > div { min-width: 0; }
.ap-item { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; border: 0; background: none; cursor: pointer; font-size: 14px; }
.ap-item:hover { background: var(--surface-2); }
.ap-item.danger { color: var(--down); }

.dialog {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text);
  padding: 0; width: min(420px, calc(100vw - 32px)); box-shadow: var(--shadow);
}
.dialog::backdrop { background: rgba(5, 8, 30, .6); backdrop-filter: blur(3px); }
.auth-form { position: relative; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.auth-form h2 { font-size: 26px; }
.auth-form p { margin: -4px 0 0; }
.auth-seg { align-self: flex-start; }
.auth-form label, .acc-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.auth-form input, .acc-form input {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; font-size: 15px; color: var(--text); outline: none;
}
.auth-form input:focus, .acc-form input:focus { border-color: var(--accent); }
.auth-form .btn { margin-top: 4px; }
.auth-error { margin: 0; color: var(--down); font-size: 14px; }
.dlg-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; font-size: 18px; line-height: 1; }
.dlg-close:hover { border-color: var(--accent); }

/* ---------- Notas (0-10, colores de Metacritic) ---------- */
:root { --score-good: #00ce7a; --score-mixed: #ffbd3f; --score-bad: #ff6874; }
.score {
  flex: none; display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 6px; border-radius: 10px;
  font: 800 20px/1 var(--font-num); font-variant-numeric: tabular-nums; color: #10131f; background: var(--surface-2);
}
.score.good { background: var(--score-good); } .score.mixed { background: var(--score-mixed); } .score.bad { background: var(--score-bad); }
.score.none { color: var(--muted); border: 1px dashed var(--border); background: transparent; }
.score.sm { min-width: 40px; height: 40px; font-size: 18px; }
.score.lg { min-width: 84px; height: 84px; font-size: 36px; border-radius: 16px; }

.portal-score { margin-bottom: 34px; }
.ps-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; margin-bottom: 14px; }
.ps-summary, .ps-mine, .ps-cta { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.ps-big { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.ps-big b { font: 700 19px var(--font-display); }
.ps-bars { display: flex; flex-direction: column; gap: 8px; }
.ps-bar { display: grid; grid-template-columns: 78px 1fr 28px; gap: 10px; align-items: center; font-size: 13px; }
.ps-bar b { text-align: right; font-variant-numeric: tabular-nums; }
.ps-track { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.ps-track i { display: block; height: 100%; border-radius: 4px; }
.ps-track i.good { background: var(--score-good); } .ps-track i.mixed { background: var(--score-mixed); } .ps-track i.bad { background: var(--score-bad); }
.ps-cta { display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.ps-cta b { font: 700 19px var(--font-display); }
.ps-cta p { margin: 0 0 6px; }
.ps-mine { display: flex; flex-direction: column; gap: 12px; }
.ps-mine-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ps-mine-head b { font: 700 17px var(--font-display); }
.score-picker { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 5px; }
.sp {
  height: 40px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); cursor: pointer;
  font: 700 16px var(--font-num); color: var(--muted); transition: background .12s, color .12s, transform .12s;
}
.sp:hover { color: var(--text); }
.sp.good:hover, .sp.good.on { border-color: var(--score-good); } .sp.mixed:hover, .sp.mixed.on { border-color: var(--score-mixed); } .sp.bad:hover, .sp.bad.on { border-color: var(--score-bad); }
.sp.on { color: #10131f; transform: translateY(-2px); }
.sp.good.on { background: var(--score-good); } .sp.mixed.on { background: var(--score-mixed); } .sp.bad.on { background: var(--score-bad); }
.ps-mine textarea {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14.5px;
  color: var(--text); resize: vertical; min-height: 76px; outline: none;
}
.ps-mine textarea:focus { border-color: var(--accent); }
.ps-mine-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ps-mine-foot .link-btn { align-self: center; }

.rating-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; }
.rating-card { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; }
.rating-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.rating-body header { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; font-size: 13.5px; }
.rating-game { font: 700 16px var(--font-display); width: 100%; }
.rating-game:hover { color: var(--accent); }
.rating-author { font-weight: 700; }
.rating-text { margin: 0; font-size: 14.5px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }

.rate-stats { display: flex; gap: 10px; }
.rate-stats > div { min-width: 84px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; }
.rate-stats b { display: block; font: 700 24px/1.1 var(--font-num); color: var(--accent); }
.rate-stats span { font-size: 12px; color: var(--muted); }
.rate-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
  padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
}
.rate-cta .btn { padding: 7px 14px; }
.rated-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 30px; }
.rated-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color .15s; }
.rated-card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.rated-card .thumb.wide { aspect-ratio: 460 / 215; }
.rated-body { display: flex; gap: 12px; align-items: center; padding: 10px 12px 12px; }
.rated-body > div { min-width: 0; }

.account-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 30px; }
.account-hero h1 { font-size: 30px; }
.account-hero p { margin: 2px 0 0; }
.account-hero .rate-stats { margin-left: auto; }
.account-hero .rate-stats > div { background: var(--bg); }
.account-settings-head { margin-top: 10px; }
.account-forms { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 30px; }
.acc-form { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.acc-form h3 { font-size: 17px; }
.acc-form p { margin: 0; }
.acc-form .btn { margin-top: auto; align-self: flex-start; }
.danger-zone { border-color: color-mix(in srgb, var(--down) 40%, var(--border)); }

/* ---------- Perfil ---------- */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.xxl { width: 112px; height: 112px; font-size: 38px; }
a.ap-head:hover b { color: var(--accent); }
.rating-author a:hover { color: var(--accent); }

.profile-hero { --pc: var(--accent); position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; }
.profile-banner { height: 120px; background: linear-gradient(120deg, var(--pc), color-mix(in srgb, var(--pc) 35%, var(--surface-2))); }
.profile-main { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; padding: 12px 22px 0; }
.profile-main > .avatar { border: 5px solid var(--surface); box-sizing: content-box; margin-top: -64px; align-self: flex-start; }
.profile-id { flex: 1 1 220px; min-width: 0; }
.profile-id h1 { font-size: 32px; overflow-wrap: anywhere; }
.profile-id p { margin: 2px 0 0; }
.profile-main .rate-stats > div { background: var(--bg); }
.profile-bio { margin: 0; padding: 16px 22px 22px; font-size: 15px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; max-width: 80ch; }
.profile-hero > .profile-main:last-child { padding-bottom: 22px; }

.fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 30px; }
.fav-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s; }
.fav-card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.fav-card img { width: 100%; aspect-ratio: 460 / 215; object-fit: cover; display: block; background: var(--surface-2); }
.fav-card span { padding: 8px 10px 10px; font-weight: 600; font-size: 14px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.profile-form { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 28px; padding: 22px; margin-bottom: 30px; }
.pf-photo { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pf-photo-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; max-width: 150px; }
.pf-photo-actions .btn { cursor: pointer; }
.pf-fields { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pf-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.pf-fields input, .pf-fields textarea {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 15px; color: var(--text); outline: none;
}
.pf-fields textarea { resize: vertical; min-height: 96px; }
.pf-fields input:focus, .pf-fields textarea:focus { border-color: var(--accent); }
.pf-count { align-self: flex-end; }
.pf-label { font-size: 13px; color: var(--muted); }
.pf-colors { display: flex; gap: 8px; flex-wrap: wrap; margin-top: -6px; }
.pf-color { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--border); cursor: pointer; padding: 0; transition: transform .12s, box-shadow .12s; }
.pf-color:hover { transform: scale(1.1); }
.pf-color.on { box-shadow: 0 0 0 2px var(--text); }
.pf-favs { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; }
.pf-fav-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.pf-fav { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 6px 8px 6px 6px; }
.pf-fav img { width: 76px; aspect-ratio: 460 / 215; object-fit: cover; border-radius: 6px; display: block; background: var(--surface-2); }
.pf-fav > span:not(.pf-fav-btns) { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-fav-btns { display: flex; gap: 2px; }
.pf-fav-btns button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0; font-size: 14px; }
.pf-fav-btns button:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.pf-fav-btns button:disabled { opacity: .3; cursor: default; }
.pf-fav-btns button[data-fav-del]:hover { color: var(--down); }
.pf-fav-search { max-width: 520px; }
.pf-fav-search input:disabled { opacity: .5; }
.pf-pick { width: 100%; border: 0; background: none; text-align: left; cursor: pointer; }
.pf-pick:disabled { opacity: .5; cursor: default; }
.pf-foot { grid-column: 1 / -1; display: flex; justify-content: flex-end; border-top: 1px solid var(--border); padding-top: 16px; }
.btn.fav-btn.on { border-color: var(--down); background: color-mix(in srgb, var(--down) 12%, var(--surface)); }

/* ---------- Seguidores y seguidos ---------- */
.rate-stats > button { min-width: 84px; text-align: center; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s; }
.rate-stats > button:hover { border-color: var(--accent); }
.avatar.md { width: 48px; height: 48px; font-size: 17px; }
.follows-you { display: inline-block; vertical-align: middle; font: 600 11.5px/1 var(--font-body); letter-spacing: 0; padding: 4px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); white-space: nowrap; }
.profile-id h1 .follows-you { margin-left: 4px; vertical-align: 6px; }
.btn.follow-user { white-space: nowrap; }
.btn.follow-user.on .fu-off { display: none; }
.btn.follow-user.on:hover { border-color: var(--down); color: var(--down); }
.btn.follow-user.on:hover .fu-on { display: none; }
.btn.follow-user.on:hover .fu-off { display: inline; }
.profile-main > .follow-user { min-width: 150px; }

.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; margin-bottom: 30px; }
.people-list { display: flex; flex-direction: column; gap: 8px; }
.person { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.people-list .person { background: var(--bg); }
.person-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.person-text { display: flex; flex-direction: column; min-width: 0; }
.person-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.person-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-main:hover .person-name { color: var(--accent); }
.person-bio { font-size: 13px; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.person .btn { flex: none; }
.people-dialog { width: min(520px, calc(100vw - 32px)); }
.people-dlg { position: relative; padding: 22px; display: flex; flex-direction: column; gap: 10px; max-height: min(80vh, 720px); overflow-y: auto; }
.people-dlg h2 { font-size: 24px; }
.people-dlg p { margin: -4px 0 4px; }

@media (max-width: 900px) { .ps-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .profile-form { grid-template-columns: 1fr; padding: 16px; }
  .profile-main { padding: 0 16px; }
  .profile-bio { padding: 14px 16px 18px; }
  .profile-id h1 { font-size: 24px; }
  .avatar.xxl { width: 88px; height: 88px; font-size: 30px; }
  .profile-main .rate-stats { width: 100%; gap: 6px; }
  .profile-main .rate-stats > * { min-width: 0; flex: 1; padding: 8px 4px; }
  .profile-main .rate-stats b { font-size: 20px; }
}
@media (max-width: 760px) {
  .score-picker { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .account-btn span:not(.avatar) { display: none; }
  .account-btn { padding: 0; width: 36px; justify-content: center; }
  .account-hero .rate-stats { margin-left: 0; }
  .rate-stats > * { min-width: 0; flex: 1; padding: 8px 6px; }
  .score.lg { min-width: 64px; height: 64px; font-size: 28px; }
}

/* ---------- Cuentas: anti-robots, código de recuperación, denuncias, moderación ---------- */
.ts-box { min-height: 65px; }
.ts-box:empty { min-height: 0; }
.auth-form label.auth-terms { flex-direction: row; gap: 8px; font-size: 13px; line-height: 1.4; align-items: flex-start; }
.auth-form label.auth-terms input { margin-top: 2px; flex: none; }
.auth-terms a { color: var(--accent); text-decoration: underline; }
.auth-forgot { align-self: center; font-size: 13px; }
.recovery-box { text-align: center; align-items: stretch; }
.recovery-box p { margin: 0; }
.recovery-code {
  display: block; padding: 14px 10px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--accent);
  font: 700 22px/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .06em; user-select: all; word-break: break-all;
}
.recovery-box .game-actions { justify-content: center; }
.recovery-box label.check { flex-direction: row; justify-content: center; gap: 8px; }
.report-btn { font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 4px; }
.report-btn:hover { color: var(--down); }
.profile-report { display: block; margin: 8px 0 0 auto; }
.mod-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; }
.mod-item { display: flex; flex-direction: column; gap: 8px; }
.mod-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.mod-head a { color: var(--accent); }
.mod-reason { margin: 0; font-style: italic; }
.mod-target { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 10px; background: var(--surface-2); font-size: 14px; white-space: pre-wrap; }
.mod-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.foot-links { margin-top: 6px; }
.foot-links a { color: var(--muted); text-decoration: underline; }
.foot-links a:hover { color: var(--text); }

/* Páginas de privacidad y condiciones */
.legal { max-width: 760px; padding-top: 30px; padding-bottom: 60px; }
.legal h1 { font-size: 36px; margin-bottom: 4px; }
.legal h2 { font-size: 21px; margin: 28px 0 8px; }
.legal p, .legal li { line-height: 1.7; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent); }
.legal code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }

/* ---------- idiomas (banderas arriba a la izquierda) ---------- */
.lang-flags { display: flex; gap: 4px; align-items: center; }
.lang-flag {
  width: 30px; height: 22px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden;
  background: none; cursor: pointer; opacity: .55; transition: opacity .15s, transform .15s, border-color .15s;
}
.lang-flag svg { display: block; width: 100%; height: 100%; }
.lang-flag:hover { opacity: 1; transform: translateY(-1px); }
.lang-flag.on { opacity: 1; border-color: var(--accent); }
.lang-flag:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
