/* Ronin Trading — capa de paridad visual (referencia juego inversion/*.png) */

.rt-screen {
  --rt-gold: #eab308;
  --rt-gold-light: #fde047;
  --rt-gold-dark: #a16207;
  --rt-bg: #0a0e12;
  --rt-surface: #0f131a;
  --rt-surface-2: #141a24;
  --rt-border: rgba(255, 255, 255, 0.06);
  --rt-border-soft: rgba(255, 255, 255, 0.04);
  --rt-text: #ffffff;
  --rt-muted: #94a3b8;
  --rt-muted-2: #64748b;
  --rt-green: #22c55e;
  --rt-red: #ef4444;
  --rt-blue: #3b82f6;
  --rt-purple: #8b5cf6;
  --rt-radius: 14px;
  --rt-radius-lg: 16px;
  --rt-shadow-elevated:
    0 10px 40px rgba(0, 0, 0, 0.55),
    0 2px 0 rgba(255, 255, 255, 0.03) inset;
  --rt-shadow-card:
    0 4px 20px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --rt-glow-gold: 0 0 28px rgba(234, 179, 8, 0.14);
  background: var(--rt-bg) !important;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.app-body.inversion-mode,
.app-body.inversion-mode .main-panel {
  background: var(--rt-bg) !important;
}

/* ── Topbar ─────────────────────────────────────────────────────────────── */
.rt-screen .rt-topbar {
  padding: 12px 20px;
  background: rgba(8, 10, 14, 0.92);
  border-bottom: 1px solid var(--rt-border);
  backdrop-filter: blur(8px);
}

.rt-screen .rt-brand {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.rt-screen .rt-beta {
  font-size: 0.55rem;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(234, 179, 8, 0.08);
  box-shadow: inset 0 0 0 1px rgba(234, 179, 8, 0.35);
}

.rt-screen .rt-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--rt-border);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: var(--rt-shadow-card);
}

.rt-screen .rt-page-head {
  padding: 18px 20px 10px;
}

.rt-screen .rt-page-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.rt-screen .rt-page-sub {
  font-size: 0.8rem;
  color: var(--rt-muted-2);
}

.rt-screen .rt-body {
  padding: 0 20px 12px;
}

/* ── Cards base ───────────────────────────────────────────────────────── */
.rt-screen .rt-card {
  background: linear-gradient(180deg, var(--rt-surface-2) 0%, var(--rt-surface) 100%);
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius-lg);
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: var(--rt-shadow-card);
  position: relative;
}

.rt-screen .rt-card h2 {
  color: var(--rt-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

/* ── Hero resumen ─────────────────────────────────────────────────────── */
.rt-screen .rt-hero-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(234, 179, 8, 0.28);
  border-radius: var(--rt-radius-lg);
  background:
    radial-gradient(120% 80% at 50% -20%, rgba(234, 179, 8, 0.16) 0%, transparent 55%),
    linear-gradient(180deg, #151b26 0%, #0c1018 100%);
  box-shadow: var(--rt-glow-gold), var(--rt-shadow-elevated);
  margin-bottom: 16px;
}

.rt-screen .rt-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(234, 179, 8, 0.85), transparent);
  pointer-events: none;
}

.rt-screen .rt-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 12px;
  padding: 18px 20px 16px;
  align-items: center;
}

.rt-screen .rt-hero-col--left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.rt-screen .rt-hero-col--center {
  text-align: center;
}

.rt-screen .rt-hero-col--right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.rt-screen .rt-week-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: var(--rt-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.rt-screen .rt-week-status {
  font-size: 0.72rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--rt-green);
  font-weight: 600;
}

.rt-screen .rt-hero-foot {
  font-size: 0.76rem;
  color: var(--rt-muted);
}

.rt-screen .rt-hero-label,
.rt-screen .rt-hero-rent-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--rt-gold);
  text-transform: uppercase;
}

.rt-screen .rt-hero-value {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.05;
  margin: 6px 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.rt-screen .rt-hero-live {
  font-size: 0.72rem;
  color: var(--rt-muted);
  justify-content: center;
}

.rt-screen .rt-hero-rent strong {
  font-size: 1.35rem;
  font-weight: 800;
}

.rt-screen .rt-hero-rent .rt-mini-spark {
  width: 64px;
  height: 28px;
  margin-top: 4px;
  filter: drop-shadow(0 0 6px rgba(234, 179, 8, 0.35));
}

/* ── Ranking cards ──────────────────────────────────────────────────────── */
.rt-screen .rt-ranking-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.rt-screen .rt-rank-card {
  background: linear-gradient(180deg, #121820 0%, #0d1118 100%);
  border-radius: var(--rt-radius-lg);
  padding: 22px 14px 14px;
  text-align: center;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--rt-shadow-card);
}

.rt-screen .rt-rank-gold {
  border: 1.5px solid rgba(234, 179, 8, 0.55);
  box-shadow: var(--rt-glow-gold), var(--rt-shadow-card);
}

.rt-screen .rt-rank-blue {
  border: 1.5px solid rgba(59, 130, 246, 0.45);
}

.rt-screen .rt-rank-purple {
  border: 1.5px solid rgba(139, 92, 246, 0.45);
}

.rt-screen .rt-rank-pos {
  top: 12px;
  left: 12px;
  width: 24px;
  height: 24px;
  font-size: 0.7rem;
  border: 1px solid var(--rt-border);
  background: rgba(0, 0, 0, 0.5);
}

.rt-screen .rt-rank-gold .rt-rank-pos {
  border-color: rgba(234, 179, 8, 0.5);
  color: var(--rt-gold);
}

.rt-screen .rt-rank-blue .rt-rank-pos {
  border-color: rgba(59, 130, 246, 0.5);
  color: var(--rt-blue);
}

.rt-screen .rt-rank-purple .rt-rank-pos {
  border-color: rgba(139, 92, 246, 0.5);
  color: var(--rt-purple);
}

.rt-screen .rt-rank-crown {
  top: 6px;
  right: 12px;
  font-size: 1.1rem;
  filter: drop-shadow(0 2px 4px rgba(234, 179, 8, 0.4));
}

.rt-screen .rt-player-av {
  width: 48px;
  height: 48px;
  font-size: 1.05rem;
  margin: 4px 0 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.rt-screen .rt-rank-card h3 {
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0 0 2px;
}

.rt-screen .rt-player-pct {
  font-size: 0.95rem;
  font-weight: 800;
  margin-top: 4px;
}

.rt-screen .rt-tag-pill {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--rt-border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.62rem;
}

.rt-screen .rt-xp-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
}

/* ── Tables ─────────────────────────────────────────────────────────────── */
.rt-screen .rt-table th {
  font-size: 0.62rem;
  color: var(--rt-muted-2);
  padding: 10px 8px;
  border-bottom: 1px solid var(--rt-border);
}

.rt-screen .rt-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--rt-border-soft);
  font-size: 0.82rem;
}

.rt-screen .rt-link {
  color: #60a5fa;
  font-size: 0.76rem;
  font-weight: 600;
}

.rt-screen .rt-table-foot {
  padding-top: 10px;
  border-top: 1px solid var(--rt-border-soft);
  font-size: 0.68rem;
  color: var(--rt-muted-2);
}

/* ── Tabs línea ───────────────────────────────────────────────────────── */
.rt-screen .rt-tabs-line {
  border-bottom: 1px solid var(--rt-border);
  margin-bottom: 14px;
}

.rt-screen .rt-tab-line {
  padding: 10px 14px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--rt-muted);
  border-bottom-width: 2px;
}

.rt-screen .rt-tab-line.active {
  color: var(--rt-gold);
  border-bottom-color: var(--rt-gold);
  text-shadow: 0 0 12px rgba(234, 179, 8, 0.2);
}

/* ── Botones ──────────────────────────────────────────────────────────── */
.rt-screen .rt-btn {
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid var(--rt-border);
  box-shadow: var(--rt-shadow-card);
}

.rt-screen .rt-btn-gold {
  background: linear-gradient(180deg, #fde047 0%, #eab308 45%, #ca8a04 100%);
  border-color: #a16207;
  color: #1c1400;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 2px 0 #92400e,
    0 8px 20px rgba(234, 179, 8, 0.28);
}

.rt-screen .rt-btn-gold:hover {
  background: linear-gradient(180deg, #fef08a 0%, #facc15 45%, #eab308 100%);
}

.rt-screen .rt-btn-outline {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.12);
}

.rt-screen .rt-btn-gold-outline {
  border-color: rgba(234, 179, 8, 0.45);
  color: var(--rt-gold);
  background: rgba(234, 179, 8, 0.06);
}

/* ── Bottom nav (referencia: pill dorado activo) ──────────────────────── */
.rt-screen .rt-bottom-nav {
  background: #07090d;
  border-top: 1px solid var(--rt-border);
  padding: 6px 10px 10px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
}

.rt-screen .rt-nav-item {
  gap: 5px;
  padding: 4px 6px 6px;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--rt-muted-2);
}

.rt-screen .rt-nav-bar {
  display: none;
}

.rt-screen .rt-nav-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 32px;
  border-radius: 10px;
  transition: background 0.15s, box-shadow 0.15s;
}

.rt-screen .rt-nav-item.active {
  color: var(--rt-gold);
}

.rt-screen .rt-nav-item.active .rt-nav-icon-wrap {
  background: radial-gradient(ellipse 80% 100% at 50% 50%, rgba(234, 179, 8, 0.22) 0%, rgba(234, 179, 8, 0.06) 70%);
  box-shadow:
    0 0 20px rgba(234, 179, 8, 0.12),
    inset 0 0 0 1px rgba(234, 179, 8, 0.15);
}

.rt-screen .rt-nav-item.active .rt-nav-icon svg {
  filter: drop-shadow(0 0 6px rgba(234, 179, 8, 0.45));
}

/* ── Ronin box ────────────────────────────────────────────────────────── */
.rt-screen .rt-ronin-box {
  background: linear-gradient(180deg, #121820 0%, #0d1118 100%);
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius-lg);
  padding: 14px 16px;
  box-shadow: var(--rt-shadow-card);
}

.rt-screen .rt-btn-ronin-chat {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.4);
  border-radius: 999px;
  box-shadow: var(--rt-shadow-card);
}

/* ── Mercado tickers ──────────────────────────────────────────────────── */
.rt-screen .rt-ticker {
  background: linear-gradient(180deg, #121820 0%, #0d1118 100%);
  border: 1px solid var(--rt-border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--rt-shadow-card);
}

.rt-screen .rt-ticker strong {
  font-size: 1rem;
  font-weight: 800;
}

/* ── Cartera summary ──────────────────────────────────────────────────── */
.rt-screen .rt-cartera-summary {
  background: linear-gradient(180deg, #121820 0%, #0d1118 100%);
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius-lg);
  box-shadow: var(--rt-shadow-elevated);
}

.rt-screen .rt-cartera-big {
  font-size: 2.1rem;
  font-weight: 800;
}

/* ── Partidas ─────────────────────────────────────────────────────────── */
.rt-screen .rt-partida-card {
  background: linear-gradient(180deg, #121820 0%, #0d1118 100%);
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius-lg);
  box-shadow: var(--rt-shadow-card);
}

.rt-screen .rt-partida-card.active {
  border-color: rgba(234, 179, 8, 0.4);
  box-shadow: var(--rt-glow-gold), var(--rt-shadow-card);
}

.rt-screen .rt-pstat {
  background: linear-gradient(180deg, #121820 0%, #0d1118 100%);
  box-shadow: var(--rt-shadow-card);
}

/* ── Historial stats ──────────────────────────────────────────────────── */
.rt-screen .rt-hist-stat-card {
  background: linear-gradient(180deg, #121820 0%, #0d1118 100%);
  border: 1px solid var(--rt-border);
  box-shadow: var(--rt-shadow-card);
}

.rt-screen .rt-podium-place.first {
  border: 1.5px solid rgba(234, 179, 8, 0.5);
  box-shadow: var(--rt-glow-gold);
  background: rgba(234, 179, 8, 0.04);
}

/* ── Nueva partida ────────────────────────────────────────────────────── */
.rt-screen .rt-participant.on {
  border-color: var(--rt-green);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.25), var(--rt-shadow-card);
}

.rt-screen .rt-preset.on {
  border-color: var(--rt-gold);
  color: var(--rt-gold);
  background: rgba(234, 179, 8, 0.08);
  box-shadow: inset 0 0 0 1px rgba(234, 179, 8, 0.2);
}

.rt-screen .rt-btn-crear {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 3px 0 #92400e,
    0 10px 28px rgba(234, 179, 8, 0.32);
}

@media (max-width: 960px) {
  .rt-screen .rt-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .rt-screen .rt-hero-col--left,
  .rt-screen .rt-hero-col--right {
    align-items: center;
    text-align: center;
  }

  .rt-screen .rt-ranking-row {
    grid-template-columns: 1fr;
  }

  .rt-screen .rt-partida-card {
    grid-template-columns: 56px 1fr;
  }

  .rt-screen .rt-partida-side-stats {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* ── Sparklines con área ─────────────────────────────────────────────── */
.rt-screen .rt-spark-area {
  display: block;
  filter: drop-shadow(0 0 4px rgba(34, 197, 94, 0.25));
}

.rt-screen .rt-spark-area path:last-child {
  filter: drop-shadow(0 0 3px currentColor);
}

.rt-screen .down .rt-spark-area {
  filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.25));
}

/* ── Donut + leyenda ─────────────────────────────────────────────────── */
.rt-screen .rt-donut-layout {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.rt-screen .rt-donut-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-width: 140px;
}

.rt-screen .rt-donut-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.78rem;
  color: var(--rt-text);
  border-bottom: 1px solid var(--rt-border-soft);
}

.rt-screen .rt-donut-legend li:last-child { border-bottom: none; }

.rt-screen .rt-leg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.rt-screen .rt-donut-legend em {
  margin-left: auto;
  font-style: normal;
  color: var(--rt-muted);
  font-weight: 600;
}

/* ── Gráfico semanal ─────────────────────────────────────────────────── */
.rt-screen .rt-line-chart {
  margin-top: 8px;
}

.rt-screen .rt-week-chart {
  width: 100%;
  height: 56px;
}

.rt-screen .rt-week-labels text {
  fill: var(--rt-muted-2);
  font-size: 8px;
}

/* ── Tabs toolbar (cartera / mercado / historial) ───────────────────── */
.rt-screen .rt-tabs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.rt-screen .rt-tabs-line--inline {
  border-bottom: none;
  margin-bottom: 0;
  flex: 1;
}

.rt-screen .rt-tabs-line--scroll {
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
}

.rt-screen .rt-view-toggles {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--rt-border);
  border-radius: 10px;
  padding: 3px;
}

.rt-screen .rt-view-btn {
  width: 32px;
  height: 28px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--rt-muted);
  cursor: pointer;
  font-size: 0.9rem;
}

.rt-screen .rt-view-btn.active {
  background: rgba(234, 179, 8, 0.15);
  color: var(--rt-gold);
  box-shadow: inset 0 0 0 1px rgba(234, 179, 8, 0.25);
}

/* ── Cartera grid ────────────────────────────────────────────────────── */
.rt-screen .rt-asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.rt-screen .rt-asset-grid-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--rt-border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.rt-screen .rt-asset-grid-card strong { font-size: 0.82rem; }
.rt-screen .rt-asset-grid-card em { font-size: 0.78rem; font-style: normal; font-weight: 700; }

.rt-screen .rt-btn-history {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 16px;
  padding: 14px;
  background: linear-gradient(180deg, #121820 0%, #0d1118 100%);
  border-color: var(--rt-border);
  color: var(--rt-text);
}

/* ── Asset icons branded ─────────────────────────────────────────────── */
.rt-screen .rt-asset-branded {
  font-weight: 800;
  font-size: 0.72rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* ── Mercado ─────────────────────────────────────────────────────────── */
.rt-screen .rt-market-tools {
  display: flex;
  gap: 6px;
}

.rt-screen .rt-market-section .rt-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.rt-screen .rt-market-section h2 { margin: 0; }

.rt-screen .rt-ticker-spark .rt-spark-area {
  margin: 4px auto;
}

.rt-screen .rt-star-btn {
  border: none;
  background: transparent;
  color: var(--rt-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
}

.rt-screen .rt-star-btn:hover { color: var(--rt-gold); }

.rt-screen .rt-table--market td strong { display: block; }
.rt-screen .rt-table--market td .rt-muted { font-size: 0.68rem; }

/* ── Podio historial ─────────────────────────────────────────────────── */
.rt-screen .rt-podium-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 16px;
  align-items: start;
}

.rt-screen .rt-podium-section h2 {
  margin-bottom: 14px;
}

.rt-screen .rt-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  min-height: 200px;
}

.rt-screen .rt-podium-place {
  flex: 1;
  max-width: 120px;
  text-align: center;
  padding: 14px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--rt-border);
}

.rt-screen .rt-podium-place.first {
  transform: translateY(-12px);
  padding-top: 20px;
}

.rt-screen .rt-podium-comment .rt-ronin-box {
  margin: 0;
}

/* ── Historial periodo ───────────────────────────────────────────────── */
.rt-screen .rt-hist-period {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.rt-screen .rt-period-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--rt-border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--rt-muted);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.rt-screen .rt-period-btn.active {
  border-color: rgba(234, 179, 8, 0.45);
  color: var(--rt-gold);
  background: rgba(234, 179, 8, 0.08);
}

.rt-screen .rt-tabs-toolbar--hist {
  align-items: flex-end;
}

/* ── Partidas: panel lateral stats ───────────────────────────────────── */
.rt-screen .rt-partida-card {
  grid-template-columns: 72px 1fr auto;
  align-items: stretch;
}

.rt-screen .rt-partida-side-stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 12px 16px;
  margin: -18px -20px -18px 0;
  background: rgba(0, 0, 0, 0.35);
  border-left: 1px solid var(--rt-border);
  border-radius: 0 var(--rt-radius-lg) var(--rt-radius-lg) 0;
  min-width: 130px;
}

.rt-screen .rt-partida-side-stats .rt-partida-stat strong {
  font-size: 0.92rem;
}

.rt-screen .rt-menu-btn {
  border: none;
  background: transparent;
  color: var(--rt-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
}

.rt-screen .rt-menu-btn:hover { color: var(--rt-text); }

/* ── Nueva partida: reglas 2×2 ───────────────────────────────────────── */
.rt-screen .rt-rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rt-screen .rt-rules-grid li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--rt-border-soft);
  border-bottom: 1px solid var(--rt-border-soft);
}

.rt-screen .rt-rule-ic {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  color: var(--rt-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.rt-screen .rt-rules-grid strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 2px;
}

.rt-screen .rt-rules-grid em {
  font-size: 0.72rem;
  color: var(--rt-muted);
  font-style: normal;
}

@media (max-width: 640px) {
  .rt-screen .rt-rules-grid {
    grid-template-columns: 1fr;
  }

  .rt-screen .rt-podium-wrap {
    grid-template-columns: 1fr;
  }

  .rt-screen .rt-donut-layout {
    flex-direction: column;
  }
}

/* ── PNG parity v10 ───────────────────────────────────────────────────── */
.rt-screen .rt-back-btn {
  border: none;
  background: transparent;
  color: var(--rt-text);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px 8px;
  margin-right: 8px;
  line-height: 1;
}

.rt-screen .rt-asset-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
}

.rt-screen .rt-market-live-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.rt-screen .rt-market-live-head h2 {
  margin: 0;
  flex: 1;
}

.rt-screen .rt-hist-result span {
  display: block;
  font-size: 0.72rem;
  color: var(--rt-muted);
  margin-top: 2px;
}

.rt-screen .rt-hist-pos strong {
  display: block;
  font-size: 0.9rem;
}

.rt-screen .rt-hist-coins {
  display: block;
  font-size: 0.76rem;
  color: var(--rt-muted);
  margin-top: 2px;
}

.rt-screen .rt-podium-coins {
  display: block;
  font-size: 0.76rem;
  color: var(--rt-muted);
  margin-top: 4px;
}

.rt-screen .rt-podium-place.winner .rt-podium-name {
  color: var(--rt-gold);
}

.rt-screen .rt-partida-card--paused-only {
  grid-template-columns: 72px 1fr;
  border-color: rgba(139, 92, 246, 0.35);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.06) 0%, #0d1118 100%);
}

.rt-screen .rt-paused-msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  margin: 12px 0;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.rt-screen .rt-paused-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.rt-screen .rt-paused-msg strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.rt-screen .rt-paused-msg em {
  font-size: 0.76rem;
  color: var(--rt-muted);
  font-style: normal;
}

.rt-screen .rt-btn-purple-outline {
  border-color: rgba(139, 92, 246, 0.5);
  color: var(--rt-purple);
  background: rgba(139, 92, 246, 0.08);
}

.rt-screen .rt-partida-card--done {
  grid-template-columns: 72px 1fr auto;
}

.rt-screen .rt-form-sub {
  margin: -4px 0 12px;
  font-size: 0.78rem;
  color: var(--rt-muted);
}

.rt-screen .rt-nueva-actions--single {
  justify-content: stretch;
  padding-top: 8px;
}

.rt-screen .rt-btn-full {
  width: 100%;
  justify-content: center;
}

.rt-screen .rt-trade-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.rt-screen .rt-trade-head h3 {
  margin: 0;
  font-size: 0.95rem;
}

.rt-screen .rt-trade-close {
  border: none;
  background: transparent;
  color: var(--rt-muted);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

/* ── v11 — paridad 100% PNG ───────────────────────────────────────────── */
.rt-screen .rt-topbar {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 8px;
}

.rt-screen .rt-brand {
  justify-self: center;
  text-align: center;
}

.rt-screen .rt-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.rt-screen .rt-hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--rt-text);
  border-radius: 1px;
}

.rt-screen .rt-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 90;
}

.rt-screen .rt-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(280px, 85vw);
  background: #0d1118;
  border-right: 1px solid var(--rt-border);
  z-index: 100;
  padding: 20px 16px;
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.5);
}

.rt-screen .rt-menu-drawer h3 {
  margin: 0 0 16px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--rt-muted);
  text-transform: uppercase;
}

.rt-screen .rt-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  margin-bottom: 6px;
  border: 1px solid var(--rt-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--rt-text);
  font-family: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

.rt-screen .rt-menu-item.active {
  border-color: rgba(234, 179, 8, 0.45);
  color: var(--rt-gold);
  background: rgba(234, 179, 8, 0.08);
}

.rt-screen .rt-hero-prog {
  margin-top: 10px;
  width: 100%;
  max-width: 160px;
}

.rt-screen .rt-hero-prog .rt-prog-bar {
  height: 4px;
}

.rt-screen .rt-rent-cell strong {
  display: block;
  font-size: 0.82rem;
}

.rt-screen .rt-rent-cell span {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
}

.rt-screen .rt-week-chart {
  width: 100%;
  height: 64px;
}

.rt-screen .rt-week-yaxis text {
  fill: var(--rt-muted-2);
  font-size: 7px;
}

.rt-screen .rt-star-btn.on {
  color: var(--rt-gold);
}

.rt-screen .rt-market-row {
  cursor: pointer;
  transition: background 0.12s;
}

.rt-screen .rt-market-row:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.rt-screen .rt-btn-fav.on {
  border-color: rgba(234, 179, 8, 0.5);
  color: var(--rt-gold);
  background: rgba(234, 179, 8, 0.08);
}

.rt-screen .rt-search-input {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--rt-border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--rt-text);
  font-family: inherit;
  font-size: 0.8rem;
  min-width: 160px;
}

.rt-screen .rt-fav-hint {
  margin: -6px 0 12px;
  font-size: 0.72rem;
}

.rt-screen .rt-period-select-wrap {
  display: flex;
  align-items: center;
}

.rt-screen .rt-period-select {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--rt-border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--rt-text);
  font-family: inherit;
  font-size: 0.76rem;
  cursor: pointer;
}

.rt-screen .rt-strategy-box {
  margin-top: auto;
  width: 100%;
  text-align: left;
  font-size: 0.72rem;
}

.rt-screen .rt-strategy-box summary {
  cursor: pointer;
  color: var(--rt-purple);
  font-weight: 600;
  padding: 6px 0;
}

.rt-screen .rt-strategy-box p {
  margin: 0;
  color: var(--rt-muted);
  line-height: 1.4;
}

.rt-screen .rt-cartera-side em {
  display: block;
  font-size: 0.76rem;
  font-style: normal;
  margin-top: 2px;
}

.rt-screen .rt-eye.off {
  opacity: 0.6;
}

.rt-screen .rt-week-picker-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--rt-muted);
}

.rt-screen .rt-week-picker {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--rt-border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--rt-text);
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.rt-screen .rt-icon-btn.active {
  border-color: rgba(234, 179, 8, 0.45);
  color: var(--rt-gold);
}
