/* =========================================================
   L2Feel V7.2 — estabilidade Boss + revisão mobile
   Carregado por último para resolver conflitos de CSS legado.
   ========================================================= */

/* ---------- Base responsiva segura ---------- */
@media (max-width: 900px) {
  html, body { max-width: 100% !important; overflow-x: hidden !important; }
  body { -webkit-text-size-adjust: 100%; }
  main, section, article, aside, nav, header, footer, form { min-width: 0; }
  img, video, iframe, canvas, svg { max-width: 100%; }
  .grid > *, [class*="grid-cols-"] > * { min-width: 0; }
  h1, h2, h3, h4, p, a, span, b, strong, small, time { overflow-wrap: anywhere; }
  input, select, textarea { max-width: 100%; font-size: 16px; }
  .max-w-7xl, .max-w-6xl, .max-w-5xl, .max-w-4xl { max-width: calc(100% - 16px) !important; }
  .overflow-x-auto { -webkit-overflow-scrolling: touch; }
}

/* =========================================================
   BOSS — paleta semântica completa
   ========================================================= */
html[data-l2-page="boss"] {
  --v72-boss-gold: #b7833f;
  --v72-boss-gold-soft: #e4c58d;
  --v72-boss-green: #66b27b;
  --v72-boss-red: #c7675d;
}

/* Dark: força uma única linguagem visual, sem vazamentos do light. */
html[data-l2-theme="dark"][data-l2-page="boss"] .boss-panel,
html[data-l2-theme="dark"][data-l2-page="boss"] .boss-card,
html[data-l2-theme="dark"][data-l2-page="boss"] .boss-filter,
html[data-l2-theme="dark"][data-l2-page="boss"] .boss-soon-item,
html[data-l2-theme="dark"][data-l2-page="boss"] .boss-timer-panel {
  background: rgba(12,10,8,.94) !important;
  border-color: rgba(199,154,74,.24) !important;
  color: #d8d0c4 !important;
  box-shadow: none !important;
}
html[data-l2-theme="dark"][data-l2-page="boss"] .boss-card { background: linear-gradient(90deg,rgba(17,13,9,.96),rgba(8,7,6,.94)) !important; }
html[data-l2-theme="dark"][data-l2-page="boss"] .boss-filter:hover { background: rgba(199,154,74,.10) !important; color:#fff !important; }
html[data-l2-theme="dark"][data-l2-page="boss"] .boss-filter-active { background: linear-gradient(180deg,#d9b66f,#a97939) !important; color:#171006 !important; }
html[data-l2-theme="dark"][data-l2-page="boss"] .boss-section-head h2,
html[data-l2-theme="dark"][data-l2-page="boss"] .boss-card h3 { color:#f0dfb7 !important; }
html[data-l2-theme="dark"][data-l2-page="boss"] .boss-info-chip { background:rgba(0,0,0,.34)!important;border-color:rgba(255,255,255,.09)!important;color:#a79e92!important; }
html[data-l2-theme="dark"][data-l2-page="boss"] .boss-img-wrap { background:#0c0a08!important;border-color:rgba(199,154,74,.28)!important;box-shadow:none!important; }
html[data-l2-theme="dark"][data-l2-page="boss"] .boss-panel::after,
html[data-l2-theme="dark"][data-l2-page="boss"] .boss-card::after { border-color:rgba(255,255,255,.035)!important; }

/* Light: Hero continua cinematográfico; conteúdo abaixo realmente claro. */
html[data-l2-theme="light"][data-l2-page="boss"] body { color:#40382f!important; }
html[data-l2-theme="light"][data-l2-page="boss"] .boss-hero { background:transparent!important;color:#f7ead3!important; }
html[data-l2-theme="light"][data-l2-page="boss"] .boss-hero-bg { opacity:.62!important;filter:saturate(.88) contrast(1.04) brightness(.78)!important; }
html[data-l2-theme="light"][data-l2-page="boss"] .boss-hero::after {
  background:linear-gradient(180deg,rgba(8,6,4,.72),rgba(8,6,4,.38) 48%,rgba(8,6,4,.78) 100%)!important;
}
html[data-l2-theme="light"][data-l2-page="boss"] .boss-hero :is(h1,p,.text-white,.text-zinc-300,.text-zinc-400,.text-zinc-500,.text-zinc-600) {
  color:#f7ead3!important;text-shadow:0 2px 7px rgba(0,0,0,.62)!important;
}
html[data-l2-theme="light"][data-l2-page="boss"] .boss-hero .boss-kicker,
html[data-l2-theme="light"][data-l2-page="boss"] .boss-hero .boss-pill {
  background:rgba(12,9,6,.70)!important;border-color:rgba(236,206,151,.38)!important;color:#efd39a!important;
}
html[data-l2-theme="light"][data-l2-page="boss"] .boss-hero :is(.boss-next-card,.boss-stat-card,.boss-soon-item) {
  background:rgba(12,9,6,.74)!important;border-color:rgba(236,206,151,.26)!important;color:#f3e5cc!important;box-shadow:none!important;
}
html[data-l2-theme="light"][data-l2-page="boss"] .boss-hero .boss-soon-item :is(.text-white,.text-zinc-300,.text-zinc-400,.text-zinc-500,.text-zinc-600) { color:#eadbc2!important; }

html[data-l2-theme="light"][data-l2-page="boss"] .boss-shell :is(.boss-panel,.boss-card,.boss-filter,.boss-soon-item,.boss-timer-panel) {
  background:#f1e9dd!important;border-color:#b9a489!important;color:#44392f!important;box-shadow:none!important;backdrop-filter:none!important;
}
html[data-l2-theme="light"][data-l2-page="boss"] .boss-shell .boss-card { background:linear-gradient(90deg,#f3ecdf,#e9dece)!important; }
html[data-l2-theme="light"][data-l2-page="boss"] .boss-shell .boss-card:hover { background:linear-gradient(90deg,#f8f2e8,#ebdecb)!important;border-color:#9d7a4c!important;transform:translateY(-1px)!important; }
html[data-l2-theme="light"][data-l2-page="boss"] .boss-shell .boss-panel::before,
html[data-l2-theme="light"][data-l2-page="boss"] .boss-shell .boss-card::before { background:linear-gradient(90deg,rgba(124,87,39,.035),transparent 45%,rgba(124,87,39,.035))!important; }
html[data-l2-theme="light"][data-l2-page="boss"] .boss-shell .boss-panel::after,
html[data-l2-theme="light"][data-l2-page="boss"] .boss-shell .boss-card::after { border-color:rgba(91,68,42,.08)!important; }
html[data-l2-theme="light"][data-l2-page="boss"] .boss-section-head::after { background:linear-gradient(90deg,#9f7945,rgba(159,121,69,.16),transparent)!important; }
html[data-l2-theme="light"][data-l2-page="boss"] .boss-section-head h2,
html[data-l2-theme="light"][data-l2-page="boss"] .boss-card h3 { color:#3b2d1f!important;text-shadow:none!important; }
html[data-l2-theme="light"][data-l2-page="boss"] .boss-section-head p,
html[data-l2-theme="light"][data-l2-page="boss"] .boss-shell :is(.text-zinc-400,.text-zinc-500,.text-zinc-600,.text-zinc-700) { color:#6b5e50!important;text-shadow:none!important; }
html[data-l2-theme="light"][data-l2-page="boss"] .boss-shell .boss-pill { background:#e2d3bd!important;border-color:#a98c65!important;color:#65431a!important;text-shadow:none!important; }
html[data-l2-theme="light"][data-l2-page="boss"] .boss-shell .boss-filter { background:#e9dfd0!important;color:#51473b!important; }
html[data-l2-theme="light"][data-l2-page="boss"] .boss-shell .boss-filter:hover { background:#dfcfb8!important;color:#4f3210!important;border-color:#9a7a50!important; }
html[data-l2-theme="light"][data-l2-page="boss"] .boss-shell .boss-filter-active { background:linear-gradient(180deg,#c9a873,#b78d50)!important;border-color:#8d693a!important;color:#2c1b0a!important; }
html[data-l2-theme="light"][data-l2-page="boss"] .boss-shell .boss-filter-active i { color:#2c1b0a!important; }
html[data-l2-theme="light"][data-l2-page="boss"] .boss-img-wrap { background:#e5dac9!important;border-color:#aa906c!important;box-shadow:none!important; }
html[data-l2-theme="light"][data-l2-page="boss"] .boss-info-chip { background:#e7dccb!important;border-color:#b9a488!important;color:#625446!important;text-shadow:none!important; }
html[data-l2-theme="light"][data-l2-page="boss"] .boss-info-chip i { color:#785425!important; }
html[data-l2-theme="light"][data-l2-page="boss"] .boss-status-alive { background:#dce9dd!important;border-color:#91b296!important;color:#2d6539!important; }
html[data-l2-theme="light"][data-l2-page="boss"] .boss-status-dead { background:#ecdcd7!important;border-color:#c19990!important;color:#7f3a34!important; }
html[data-l2-theme="light"][data-l2-page="boss"] .boss-timer-panel.alive { background:#e1ede2!important;border-color:#a0bca3!important; }
html[data-l2-theme="light"][data-l2-page="boss"] .boss-timer-panel.dead { background:#f0dfda!important;border-color:#c6a29a!important; }
html[data-l2-theme="light"][data-l2-page="boss"] .boss-timer-panel .countdown { color:#3d3024!important;text-shadow:none!important; }
html[data-l2-theme="light"][data-l2-page="boss"] .boss-update-badge { background:#ede2d2!important;border-color:#a98d67!important;color:#5a3b16!important;box-shadow:0 10px 28px rgba(70,48,25,.12)!important; }
html[data-l2-theme="light"][data-l2-page="boss"] .boss-video { background:#000!important; }
html[data-l2-theme="light"][data-l2-page="boss"] .boss-video-btn { background:rgba(17,12,8,.78)!important;color:#f1d49b!important;border-color:rgba(231,198,135,.46)!important; }

/* Boss mobile: simples, sem cortes e sem hover de vídeo. */
@media (max-width: 900px) {
  html[data-l2-page="boss"] .boss-hero { min-height:auto!important;padding:88px 12px 64px!important; }
  html[data-l2-page="boss"] .boss-hero .max-w-7xl { max-width:calc(100% - 4px)!important; }
  html[data-l2-page="boss"] .boss-hero h1 { font-size:clamp(30px,10vw,44px)!important;letter-spacing:.055em!important;line-height:1.04!important; }
  html[data-l2-page="boss"] .boss-kicker { margin-bottom:14px!important;font-size:9px!important;letter-spacing:.14em!important;padding:7px 9px!important; }
  html[data-l2-page="boss"] .boss-shell { margin-top:-34px!important;padding:0 8px 46px!important; }
  html[data-l2-page="boss"] .boss-shell>.max-w-7xl { max-width:100%!important; }
  html[data-l2-page="boss"] .boss-filter-bar { grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;padding:6px!important; }
  html[data-l2-page="boss"] .boss-filter { min-height:58px!important;padding:8px 4px!important; }
  html[data-l2-page="boss"] .boss-filter .font-tech { font-size:8px!important;letter-spacing:.04em!important; }
  html[data-l2-page="boss"] .boss-section-head { margin-bottom:12px!important;padding-bottom:11px!important; }
  html[data-l2-page="boss"] .boss-section-head h2 { font-size:22px!important;line-height:1.12!important; }
  html[data-l2-page="boss"] .boss-section-head p { font-size:12px!important;line-height:1.5!important; }
  html[data-l2-page="boss"] .boss-card,
  html[data-l2-page="boss"] .boss-card.has-video,
  html[data-l2-page="boss"] .boss-card.has-video:hover,
  html[data-l2-page="boss"] .boss-card.pinned { min-height:0!important;max-height:none!important;transform:none!important; }
  html[data-l2-page="boss"] .boss-card-main { padding:10px!important;gap:10px!important; }
  html[data-l2-page="boss"] .boss-img-wrap { width:58px!important;height:58px!important;flex:0 0 58px!important; }
  html[data-l2-page="boss"] .boss-card-main h3 { font-size:18px!important;letter-spacing:.04em!important; }
  html[data-l2-page="boss"] .boss-status-pill,.boss-info-chip { font-size:8px!important;letter-spacing:.06em!important;white-space:normal!important; }
  html[data-l2-page="boss"] .boss-timer-panel { width:100%!important;min-width:0!important;padding:9px 10px!important; }
  html[data-l2-page="boss"] .boss-timer-panel .countdown { font-size:15px!important;white-space:normal!important; }
  html[data-l2-page="boss"] .boss-video,html[data-l2-page="boss"] .boss-video-actions,html[data-l2-page="boss"] .boss-pin-btn { display:none!important; }
  html[data-l2-page="boss"] #boss-update-badge { left:10px!important;right:10px!important;bottom:10px!important;text-align:center!important; }
}

/* =========================================================
   CHRONICLE MOBILE — corrige conflito do grid desktop da V7.1
   ========================================================= */
@media (max-width: 1180px) {
  html[data-l2-layout="classic-hybrid"] .cr-mainbar { grid-template-columns:minmax(0,1fr) auto!important;height:64px!important;gap:8px!important; }
  html[data-l2-layout="classic-hybrid"] .cr-menu { display:none!important; }
  html[data-l2-layout="classic-hybrid"] .cr-menu-button { display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 38px!important; }
  html[data-l2-layout="classic-hybrid"] .cr-brand { min-width:0!important; }
  html[data-l2-layout="classic-hybrid"] .cr-brand img { width:54px!important;height:54px!important;flex-basis:54px!important; }
  html[data-l2-layout="classic-hybrid"] .cr-brand strong { font-size:20px!important; }
  html[data-l2-layout="classic-hybrid"] .cr-account { min-width:0!important; }
  html[data-l2-layout="classic-hybrid"] .cr-mobile-menu { width:100%!important;max-height:calc(100vh - 92px)!important;overflow-y:auto!important;overscroll-behavior:contain; }
}
@media (max-width: 760px) {
  html[data-l2-layout="classic-hybrid"] .cr-utility { height:30px!important; }
  html[data-l2-layout="classic-hybrid"] .cr-utility-inner { height:30px!important;display:flex!important;justify-content:flex-end!important;gap:7px!important; }
  html[data-l2-layout="classic-hybrid"] .cr-socials,html[data-l2-layout="classic-hybrid"] .cr-server-line { display:none!important; }
  html[data-l2-layout="classic-hybrid"] .cr-utility-actions { margin-left:auto!important;display:flex!important;align-items:center!important;gap:6px!important; }
  html[data-l2-layout="classic-hybrid"] .cr-mainbar { width:calc(100% - 16px)!important;height:58px!important; }
  html[data-l2-layout="classic-hybrid"] .cr-brand img { width:46px!important;height:46px!important;flex-basis:46px!important; }
  html[data-l2-layout="classic-hybrid"] .cr-brand strong { font-size:18px!important; }
  html[data-l2-layout="classic-hybrid"] .cr-brand small { font-size:8px!important; }
  html[data-l2-layout="classic-hybrid"] .cr-account-main { max-width:104px!important;height:34px!important; }
  html[data-l2-layout="classic-hybrid"] .cr-account-icon { flex:0 0 34px!important; }
  html[data-l2-layout="classic-hybrid"] .cr-mobile-menu.open { grid-template-columns:1fr 1fr!important;gap:5px!important;padding:8px!important; }
  html[data-l2-layout="classic-hybrid"] .cr-mobile-menu>a,
  html[data-l2-layout="classic-hybrid"] .cr-mobile-rank>button { min-height:42px!important;font-size:11px!important; }
  html[data-l2-layout="classic-hybrid"] .cr-mobile-rank { min-width:0!important; }
  html[data-l2-layout="classic-hybrid"] .cr-mobile-rank .l2-rank-submenu { position:static!important;width:100%!important;transform:none!important;margin-top:4px!important; }
  html[data-l2-layout="classic-hybrid"] .cr-news-grid { grid-template-columns:1fr!important;min-width:0!important; }
  html[data-l2-layout="classic-hybrid"] .cr-news-main { min-height:205px!important;padding:17px!important; }
  html[data-l2-layout="classic-hybrid"] .cr-news-main h3 { font-size:20px!important;line-height:1.2!important; }
  html[data-l2-layout="classic-hybrid"] .cr-news-main p { font-size:12px!important;line-height:1.5!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden; }
  html[data-l2-layout="classic-hybrid"] .cr-news-list { min-width:0!important; }
  html[data-l2-layout="classic-hybrid"] .cr-news-list a { min-width:0!important;padding:11px 32px 11px 12px!important; }
  html[data-l2-layout="classic-hybrid"] .cr-news-list b { font-size:11px!important;line-height:1.4!important;white-space:normal!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden; }
  html[data-l2-layout="classic-hybrid"] .cr-boss-grid { grid-template-columns:1fr!important; }
  html[data-l2-layout="classic-hybrid"] .cr-actions .cr-wrap { grid-template-columns:1fr 1fr!important; }
}
@media (max-width: 480px) {
  html[data-l2-layout="classic-hybrid"] .cr-brand span { display:none!important; }
  html[data-l2-layout="classic-hybrid"] .cr-account-main { display:none!important; }
  html[data-l2-layout="classic-hybrid"] .cr-mobile-menu.open { grid-template-columns:1fr!important; }
  html[data-l2-layout="classic-hybrid"] .cr-hero { height:auto!important;min-height:275px!important; }
  html[data-l2-layout="classic-hybrid"] .cr-hero-inner { min-height:275px!important;padding:22px 0!important; }
  html[data-l2-layout="classic-hybrid"] .cr-hero h1 { font-size:28px!important; }
  html[data-l2-layout="classic-hybrid"] .cr-hero-actions a { min-height:42px!important; }
  html[data-l2-layout="classic-hybrid"] .cr-pulse { grid-template-columns:1fr!important; }
  html[data-l2-layout="classic-hybrid"] .cr-pulse>div { border-right:0!important;border-bottom:1px solid #2d271f!important; }
  html[data-l2-layout="classic-hybrid"] .cr-pulse>div:last-child { border-bottom:0!important; }
}

/* =========================================================
   PORTAL MOBILE — menu recolhível, cabeçalho sem cortes
   ========================================================= */
.cp-menu-button,.cp-mobile-menu { display:none; }
@media (max-width: 760px) {
  html[data-l2-layout="classic-portal"] .cp-wrap,html[data-l2-layout="classic-portal"] .cp-home { width:auto!important;max-width:calc(100% - 14px)!important; }
  html[data-l2-layout="classic-portal"] .cp-topline { min-height:31px!important;height:31px!important;padding:0!important; }
  html[data-l2-layout="classic-portal"] .cp-topline .cp-wrap { display:flex!important;justify-content:flex-end!important;gap:6px!important; }
  html[data-l2-layout="classic-portal"] .cp-top-socials { display:none!important; }
  html[data-l2-layout="classic-portal"] .cp-head { height:auto!important;min-height:68px!important;padding:6px 0!important;overflow:visible!important; }
  html[data-l2-layout="classic-portal"] .cp-head .cp-head-inner { height:auto!important;min-height:56px!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:8px!important; }
  html[data-l2-layout="classic-portal"] .cp-brand { min-width:0!important;gap:7px!important; }
  html[data-l2-layout="classic-portal"] .cp-brand img { width:52px!important;height:52px!important;flex:0 0 52px!important; }
  html[data-l2-layout="classic-portal"] .cp-brand strong { font-size:19px!important;letter-spacing:.04em!important; }
  html[data-l2-layout="classic-portal"] .cp-brand small { font-size:9px!important;margin-top:2px!important; }
  html[data-l2-layout="classic-portal"] .cp-head-actions { width:auto!important;min-width:0!important;justify-content:flex-end!important;flex-wrap:nowrap!important;gap:5px!important; }
  html[data-l2-layout="classic-portal"] .cp-head-actions .cp-btn { min-width:36px!important;width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;gap:0!important; }
  html[data-l2-layout="classic-portal"] .cp-head-actions .cp-btn span { display:none!important; }
  html[data-l2-layout="classic-portal"] .cp-menu-button { display:inline-flex!important;align-items:center!important;justify-content:center!important;width:36px!important;height:36px!important;flex:0 0 36px!important;border:1px solid #59452d;background:#17120d;color:#d4bd8c; }
  html[data-l2-layout="classic-portal"] .cp-nav { display:none!important; }
  html[data-l2-layout="classic-portal"] .cp-mobile-menu { display:none;background:#100e0b;border-bottom:1px solid #3b3124;padding:8px;position:relative;z-index:850; }
  html[data-l2-layout="classic-portal"] .cp-mobile-menu.open { display:grid!important;grid-template-columns:1fr 1fr;gap:5px; }
  html[data-l2-layout="classic-portal"] .cp-mobile-menu>a,
  html[data-l2-layout="classic-portal"] .cp-mobile-rank>button { min-height:42px;padding:0 10px;display:flex;align-items:center;gap:8px;border:1px solid #30291f;background:#15120e;color:#b9aa93;text-decoration:none;font-size:11px;text-align:left; }
  html[data-l2-layout="classic-portal"] .cp-mobile-rank { min-width:0; }
  html[data-l2-layout="classic-portal"] .cp-mobile-rank>button { width:100%;justify-content:flex-start; }
  html[data-l2-layout="classic-portal"] .cp-mobile-rank>button i:last-child { margin-left:auto; }
  html[data-l2-layout="classic-portal"] .cp-mobile-rank .l2-rank-submenu { position:static!important;width:100%!important;transform:none!important;margin-top:4px!important; }
  html[data-l2-layout="classic-portal"] .cp-content { grid-template-columns:1fr!important;gap:12px!important;margin:12px 0 22px!important; }
  html[data-l2-layout="classic-portal"] .cp-panel,html[data-l2-layout="classic-portal"] .cp-news-item { min-width:0!important; }
  html[data-l2-layout="classic-portal"] .cp-news-item { padding:12px!important; }
  html[data-l2-layout="classic-portal"] .cp-news-item time { float:none!important;display:block!important;margin-bottom:4px!important; }
  html[data-l2-layout="classic-portal"] .cp-news-item h3 { font-size:14px!important;line-height:1.3!important;white-space:normal!important; }
  html[data-l2-layout="classic-portal"] .cp-news-item p { font-size:12px!important;line-height:1.5!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden; }
  html[data-l2-layout="classic-portal"] .cp-hero { height:auto!important;min-height:260px!important; }
  html[data-l2-layout="classic-portal"] .cp-hero-copy { position:relative!important;left:auto!important;top:auto!important;width:auto!important;padding:28px 18px!important; }
  html[data-l2-layout="classic-portal"] .cp-hero h1 { font-size:29px!important; }
  html[data-l2-layout="classic-portal"] .cp-hero .cp-btn { margin:4px 4px 0 0!important; }
}
@media (max-width: 430px) {
  html[data-l2-layout="classic-portal"] .cp-brand small { display:none!important; }
  html[data-l2-layout="classic-portal"] .cp-mobile-menu.open { grid-template-columns:1fr!important; }
  html[data-l2-layout="classic-portal"] .cp-statusbar { grid-template-columns:1fr 1fr!important; }
  html[data-l2-layout="classic-portal"] .cp-quick { grid-template-columns:1fr!important; }
}
html[data-l2-theme="light"][data-l2-layout="classic-portal"] .cp-menu-button,
html[data-l2-theme="light"][data-l2-layout="classic-portal"] .cp-mobile-menu,
html[data-l2-theme="light"][data-l2-layout="classic-portal"] .cp-mobile-menu>a,
html[data-l2-theme="light"][data-l2-layout="classic-portal"] .cp-mobile-rank>button { background:#eee4d5!important;border-color:#b9a68b!important;color:#4d4135!important; }

/* =========================================================
   MINIMAL MOBILE — cabeçalho compacto e notícias completas
   ========================================================= */
.mi-menu-button,.mi-mobile-menu { display:none; }
html[data-l2-layout="minimal-interlude"] .mi-logout-chip { display:inline-flex;width:28px;height:28px;align-items:center;justify-content:center;border:1px solid #3d3326;background:#15120f;color:#b49a70;text-decoration:none;flex:0 0 28px; }
html[data-l2-layout="minimal-interlude"] .mi-news-meta { display:block!important;color:#70685d!important;font-size:9px!important;margin-bottom:4px!important; }
html[data-l2-layout="minimal-interlude"] .mi-news-excerpt { margin:5px 0 0!important;color:#847c70!important;font-size:11px!important;line-height:1.45!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden; }
@media (max-width: 720px) {
  html[data-l2-layout="minimal-interlude"] body { width:100%!important;max-width:100%!important;border:0!important; }
  html[data-l2-layout="minimal-interlude"] .mi-mast { min-height:66px!important;height:auto!important;padding:6px 8px!important;display:flex!important;align-items:center!important;gap:7px!important; }
  html[data-l2-layout="minimal-interlude"] .mi-left { min-width:0!important;gap:6px!important; }
  html[data-l2-layout="minimal-interlude"] .mi-left img { width:48px!important;height:48px!important;flex:0 0 48px!important; }
  html[data-l2-layout="minimal-interlude"] .mi-left strong { font-size:18px!important; }
  html[data-l2-layout="minimal-interlude"] .mi-left small { font-size:8px!important;margin-top:2px!important; }
  html[data-l2-layout="minimal-interlude"] .mi-head-tools { margin-left:auto!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;gap:4px!important;min-width:0!important; }
  html[data-l2-layout="minimal-interlude"] .mi-serverbox { display:none!important; }
  html[data-l2-layout="minimal-interlude"] .mi-account-chip { width:32px!important;height:32px!important;min-width:32px!important;padding:0!important;justify-content:center!important; }
  html[data-l2-layout="minimal-interlude"] .mi-account-chip span { display:none!important; }
  html[data-l2-layout="minimal-interlude"] .mi-logout-chip { display:inline-flex!important;width:32px!important;height:32px!important;align-items:center!important;justify-content:center!important;border:1px solid #3d3326;background:#15120f;color:#b49a70;text-decoration:none; }
  html[data-l2-layout="minimal-interlude"] .mi-langs .l2-lang-pill { width:29px!important;height:25px!important;min-width:29px!important;padding:0!important; }
  html[data-l2-layout="minimal-interlude"] .mi-langs .flag-image { width:22px!important;height:14px!important; }
  html[data-l2-layout="minimal-interlude"] .mi-head-tools>.l2-theme-toggle { width:30px!important;height:30px!important;flex:0 0 30px!important; }
  html[data-l2-layout="minimal-interlude"] .mi-menu-button { display:inline-flex!important;width:32px!important;height:32px!important;align-items:center!important;justify-content:center!important;flex:0 0 32px!important;border:1px solid #3d3326;background:#15120f;color:#c0a373; }
  html[data-l2-layout="minimal-interlude"] .mi-nav { display:none!important; }
  html[data-l2-layout="minimal-interlude"] .mi-mobile-menu { display:none;background:#11100e;border-bottom:1px solid #332c23;padding:7px; }
  html[data-l2-layout="minimal-interlude"] .mi-mobile-menu.open { display:grid!important;grid-template-columns:1fr 1fr;gap:4px; }
  html[data-l2-layout="minimal-interlude"] .mi-mobile-menu>a,
  html[data-l2-layout="minimal-interlude"] .mi-mobile-rank>button { min-height:40px;padding:0 9px;display:flex;align-items:center;gap:7px;border:1px solid #2d2821;background:#15120f;color:#aca08e;text-decoration:none;font-size:10px;text-align:left; }
  html[data-l2-layout="minimal-interlude"] .mi-mobile-rank>button { width:100%; }
  html[data-l2-layout="minimal-interlude"] .mi-mobile-rank>button i:last-child { margin-left:auto; }
  html[data-l2-layout="minimal-interlude"] .mi-mobile-rank .l2-rank-submenu { position:static!important;width:100%!important;transform:none!important;margin-top:4px!important; }
  html[data-l2-layout="minimal-interlude"] .mi-main { width:100%!important;min-width:0!important;padding:8px!important; }
  html[data-l2-layout="minimal-interlude"] .mi-welcome { width:100%!important;height:auto!important;min-height:235px!important;padding:22px 16px!important; }
  html[data-l2-layout="minimal-interlude"] .mi-welcome h1 { font-size:27px!important; }
  html[data-l2-layout="minimal-interlude"] .mi-welcome p { width:auto!important;font-size:12px!important; }
  html[data-l2-layout="minimal-interlude"] .mi-buttons { display:flex!important;flex-wrap:wrap!important;gap:5px!important; }
  html[data-l2-layout="minimal-interlude"] .mi-buttons a { margin:0!important; }
  html[data-l2-layout="minimal-interlude"] .mi-news-grid,html[data-l2-layout="minimal-interlude"] .mi-row { min-width:0!important; }
  html[data-l2-layout="minimal-interlude"] .mi-row { padding:10px!important; }
  html[data-l2-layout="minimal-interlude"] .mi-row b { font-size:12px!important;line-height:1.3!important;white-space:normal!important; }
  html[data-l2-layout="minimal-interlude"] .mi-bossrow { grid-template-columns:44px minmax(0,1fr)!important;align-items:center!important; }
  html[data-l2-layout="minimal-interlude"] .mi-bossrow img { width:44px!important;height:44px!important; }
  html[data-l2-layout="minimal-interlude"] .mi-bossrow time { grid-column:2!important;justify-self:start!important;margin-top:-2px!important; }
}
@media (max-width: 430px) {
  html[data-l2-layout="minimal-interlude"] .mi-left span { display:none!important; }
  html[data-l2-layout="minimal-interlude"] .mi-mobile-menu.open { grid-template-columns:1fr!important; }
  html[data-l2-layout="minimal-interlude"] .mi-langs .l2-lang-pill { width:27px!important;min-width:27px!important; }
  html[data-l2-layout="minimal-interlude"] .mi-featured-gallery-wrap .l2-gallery-v5-mosaic { grid-template-columns:repeat(3,88px)!important; }
}
html[data-l2-theme="light"][data-l2-layout="minimal-interlude"] .mi-logout-chip,
html[data-l2-theme="light"][data-l2-layout="minimal-interlude"] .mi-menu-button,
html[data-l2-theme="light"][data-l2-layout="minimal-interlude"] .mi-mobile-menu,
html[data-l2-theme="light"][data-l2-layout="minimal-interlude"] .mi-mobile-menu>a,
html[data-l2-theme="light"][data-l2-layout="minimal-interlude"] .mi-mobile-rank>button { background:#ece3d5!important;border-color:#b7a68e!important;color:#4d4236!important; }
html[data-l2-theme="light"][data-l2-layout="minimal-interlude"] .mi-news-meta { color:#776b5d!important; }
html[data-l2-theme="light"][data-l2-layout="minimal-interlude"] .mi-news-excerpt { color:#62584c!important; }

/* ---------- Páginas internas: evita cortes em celular ---------- */
@media (max-width: 760px) {
  html[data-l2-layout] body:not(.l2-home-v3) main { width:100%!important;max-width:100%!important;overflow:visible!important; }
  html[data-l2-page="rankings"] :is(.rank-shell,.rank-page,.rank-table-card,.rank-podium),
  html[data-l2-page="stats"] :is(.stats-shell,.glass,.glass-soft),
  html[data-l2-page="downloads"] :is(.dl4-shell,.dl4-panel,.dl4-choice),
  html[data-l2-page="gallery"] :is(.gallery-page,.gallery-shell,.gallery-grid,.gallery-toolbar),
  html[data-l2-page="donate"] :is(.don-shell,.don-card,.don-flow-card),
  html[data-l2-page="support"] :is(.support-shell,.support-card,.support-action),
  html[data-l2-page="info"] :is(.l2r-page,.l2r-section,.l2r-section-box,.l2r-card,.l2r-media),
  html[data-l2-page="user_panel"] :is(.player-shell,.player-main,.soft-card,.service-card,.char-card) { min-width:0!important;max-width:100%!important; }
  html[data-l2-page="rankings"] table,
  html[data-l2-page="stats"] table,
  html[data-l2-page="user_panel"] table { width:100%!important; }
  html[data-l2-page="rankings"] .overflow-x-auto,
  html[data-l2-page="stats"] .overflow-x-auto,
  html[data-l2-page="user_panel"] .overflow-x-auto { max-width:100%!important;overflow-x:auto!important; }
}

/* =========================================================
   V119 — Rankings organizado no menu mobile
   O item pai ocupa a linha inteira e o dropdown abre abaixo,
   sem disputar a mesma linha com Stats/Boss/Downloads.
   ========================================================= */
@media (max-width: 760px) {
  html[data-l2-layout="classic-hybrid"] .cr-mobile-rank,
  html[data-l2-layout="classic-portal"] .cp-mobile-rank,
  html[data-l2-layout="minimal-interlude"] .mi-mobile-rank {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  html[data-l2-layout="classic-hybrid"] .cr-mobile-rank > button,
  html[data-l2-layout="classic-portal"] .cp-mobile-rank > button,
  html[data-l2-layout="minimal-interlude"] .mi-mobile-rank > button {
    width: 100% !important;
    min-height: 42px !important;
    display: grid !important;
    grid-template-columns: 18px minmax(0,1fr) 16px !important;
    align-items: center !important;
    gap: 8px !important;
    text-align: left !important;
  }

  html[data-l2-layout="classic-hybrid"] .cr-mobile-rank > button i:last-child,
  html[data-l2-layout="classic-portal"] .cp-mobile-rank > button i:last-child,
  html[data-l2-layout="minimal-interlude"] .mi-mobile-rank > button i:last-child {
    margin-left: 0 !important;
    justify-self: end !important;
    transition: transform .16s ease !important;
  }

  html[data-l2-layout] :is(.cr-mobile-rank,.cp-mobile-rank,.mi-mobile-rank) > .l2-rank-submenu {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin: 5px 0 0 !important;
    padding: 5px !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: none !important;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 4px !important;
    overflow: visible !important;
  }

  html[data-l2-layout] :is(.cr-mobile-rank,.cp-mobile-rank,.mi-mobile-rank).open > .l2-rank-submenu {
    display: grid !important;
  }

  html[data-l2-layout] :is(.cr-mobile-rank,.cp-mobile-rank,.mi-mobile-rank).open > button i:last-child {
    transform: rotate(180deg) !important;
  }

  html[data-l2-layout] :is(.cr-mobile-rank,.cp-mobile-rank,.mi-mobile-rank) > .l2-rank-submenu > a {
    min-width: 0 !important;
    min-height: 38px !important;
    padding: 7px 9px !important;
    white-space: normal !important;
    line-height: 1.25 !important;
  }
}

@media (max-width: 390px) {
  html[data-l2-layout] :is(.cr-mobile-rank,.cp-mobile-rank,.mi-mobile-rank) > .l2-rank-submenu {
    grid-template-columns: 1fr !important;
  }
}


/* =========================================================
   V120 — Menu mobile estável
   - CSS é carregado antes do markup pelo navbar.php.
   - Portal/Minimal usam 900px para não voltar ao menu desktop
     quando o celular está em paisagem.
   - Chronicle mantém 1180px porque o menu desktop é mais largo.
   ========================================================= */

/* Portal: cabeçalho mobile/hambúrguer também em landscape. */
@media (max-width: 900px) {
  html[data-l2-layout="classic-portal"] .cp-head {
    height:auto!important;
    min-height:68px!important;
    padding:6px 0!important;
    overflow:visible!important;
  }
  html[data-l2-layout="classic-portal"] .cp-head .cp-head-inner {
    height:auto!important;
    min-height:56px!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;
  }
  html[data-l2-layout="classic-portal"] .cp-brand { min-width:0!important; }
  html[data-l2-layout="classic-portal"] .cp-head-actions {
    width:auto!important;
    min-width:0!important;
    margin-left:auto!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-end!important;
    flex-wrap:nowrap!important;
    gap:5px!important;
  }
  html[data-l2-layout="classic-portal"] .cp-menu-button {
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:36px!important;
    height:36px!important;
    flex:0 0 36px!important;
  }
  html[data-l2-layout="classic-portal"] .cp-nav { display:none!important; }
  html[data-l2-layout="classic-portal"] .cp-mobile-menu { display:none!important; }
  html[data-l2-layout="classic-portal"] .cp-mobile-menu.open {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:5px!important;
    width:100%!important;
  }
}

/* Minimal: mesma regra; nada de menu desktop em celular deitado. */
@media (max-width: 900px) {
  html[data-l2-layout="minimal-interlude"] .mi-mast {
    height:auto!important;
    min-height:66px!important;
    display:flex!important;
    align-items:center!important;
  }
  html[data-l2-layout="minimal-interlude"] .mi-head-tools {
    margin-left:auto!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-end!important;
    flex-wrap:nowrap!important;
    gap:5px!important;
    min-width:0!important;
  }
  html[data-l2-layout="minimal-interlude"] .mi-serverbox { display:none!important; }
  html[data-l2-layout="minimal-interlude"] .mi-menu-button {
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:32px!important;
    height:32px!important;
    flex:0 0 32px!important;
  }
  html[data-l2-layout="minimal-interlude"] .mi-nav { display:none!important; }
  html[data-l2-layout="minimal-interlude"] .mi-mobile-menu { display:none!important; }
  html[data-l2-layout="minimal-interlude"] .mi-mobile-menu.open {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:4px!important;
    width:100%!important;
  }
}

/* Chronicle: o desktop já é ocultado até 1180px; estabiliza o menu recolhível. */
@media (max-width: 1180px) {
  html[data-l2-layout="classic-hybrid"] .cr-menu { display:none!important; }
  html[data-l2-layout="classic-hybrid"] .cr-menu-button {
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
  html[data-l2-layout="classic-hybrid"] .cr-mobile-menu { display:none!important; }
  html[data-l2-layout="classic-hybrid"] .cr-mobile-menu.open {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:5px!important;
  }
}

/* Rankings dentro do menu mobile: válido em toda a faixa em que há hambúrguer. */
@media (max-width: 1180px) {
  html[data-l2-layout="classic-hybrid"] .cr-mobile-rank {
    grid-column:1 / -1!important;
    width:100%!important;
    min-width:0!important;
  }
  html[data-l2-layout="classic-hybrid"] .cr-mobile-rank > .l2-rank-submenu {
    position:static!important;left:auto!important;right:auto!important;top:auto!important;
    width:100%!important;max-width:none!important;margin:5px 0 0!important;padding:5px!important;
    transform:none!important;box-shadow:none!important;opacity:1!important;visibility:visible!important;
    pointer-events:auto!important;display:none!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:4px!important;overflow:visible!important;
  }
  html[data-l2-layout="classic-hybrid"] .cr-mobile-rank.open > .l2-rank-submenu { display:grid!important; }
}

@media (max-width: 900px) {
  html[data-l2-layout="classic-portal"] .cp-mobile-rank,
  html[data-l2-layout="minimal-interlude"] .mi-mobile-rank {
    grid-column:1 / -1!important;
    width:100%!important;
    min-width:0!important;
  }
  html[data-l2-layout="classic-portal"] .cp-mobile-rank > .l2-rank-submenu,
  html[data-l2-layout="minimal-interlude"] .mi-mobile-rank > .l2-rank-submenu {
    position:static!important;left:auto!important;right:auto!important;top:auto!important;
    width:100%!important;max-width:none!important;margin:5px 0 0!important;padding:5px!important;
    transform:none!important;box-shadow:none!important;opacity:1!important;visibility:visible!important;
    pointer-events:auto!important;display:none!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:4px!important;overflow:visible!important;
  }
  html[data-l2-layout="classic-portal"] .cp-mobile-rank.open > .l2-rank-submenu,
  html[data-l2-layout="minimal-interlude"] .mi-mobile-rank.open > .l2-rank-submenu { display:grid!important; }
}

@media (max-width: 480px) {
  html[data-l2-layout="classic-hybrid"] .cr-mobile-menu.open,
  html[data-l2-layout="classic-portal"] .cp-mobile-menu.open,
  html[data-l2-layout="minimal-interlude"] .mi-mobile-menu.open {
    grid-template-columns:1fr!important;
  }
}


/* V128 - Minimal mobile: tipografia legível + status compacto */
@media (max-width:900px){
  html[data-l2-layout="minimal-interlude"] .mi-server-statusbar{
    min-height:31px!important;padding:0 9px!important;justify-content:center!important;gap:14px!important;font-size:10px!important;
  }
  html[data-l2-layout="minimal-interlude"] .mi-server-status-item{gap:5px!important}
  html[data-l2-layout="minimal-interlude"] .mi-server-status-item>span{font-size:10px!important}
  html[data-l2-layout="minimal-interlude"] .mi-server-status-item strong{font-size:10px!important}
  html[data-l2-layout="minimal-interlude"] .mi-mobile-menu>a,
  html[data-l2-layout="minimal-interlude"] .mi-mobile-rank>button{font-size:12px!important;min-height:43px!important}
  html[data-l2-layout="minimal-interlude"] .mi-welcome p{font-size:14px!important;line-height:1.55!important}
  html[data-l2-layout="minimal-interlude"] .mi-row b{font-size:14px!important}
  html[data-l2-layout="minimal-interlude"] .mi-news-meta{font-size:11px!important}
  html[data-l2-layout="minimal-interlude"] .mi-news-excerpt{font-size:13px!important;line-height:1.5!important}
  html[data-l2-layout="minimal-interlude"] .mi-bossrow b{font-size:14px!important}
  html[data-l2-layout="minimal-interlude"] .mi-bossrow em,
  html[data-l2-layout="minimal-interlude"] .mi-bossrow time,
  html[data-l2-layout="minimal-interlude"] .mi-bossrow small{font-size:12px!important}
}
@media (max-width:430px){
  html[data-l2-layout="minimal-interlude"] .mi-server-statusbar{gap:10px!important;padding:0 6px!important}
  html[data-l2-layout="minimal-interlude"] .mi-server-status-item>span{font-size:9px!important}
  html[data-l2-layout="minimal-interlude"] .mi-server-status-item strong{font-size:9px!important}
}

/* V129 — Rankings mobile sempre em lista vertical. */
@media (max-width:1180px){
  html[data-l2-layout="classic-hybrid"] .cr-mobile-rank > .l2-rank-submenu{
    grid-template-columns:1fr!important;
    gap:2px!important;
    padding:6px!important;
  }
}
@media (max-width:900px){
  html[data-l2-layout="classic-portal"] .cp-mobile-rank > .l2-rank-submenu,
  html[data-l2-layout="minimal-interlude"] .mi-mobile-rank > .l2-rank-submenu{
    grid-template-columns:1fr!important;
    gap:2px!important;
    padding:6px!important;
  }
}
@media (max-width:1180px){
  html[data-l2-layout] :is(.cr-mobile-rank,.cp-mobile-rank,.mi-mobile-rank) > .l2-rank-submenu > a{
    min-height:44px!important;
    width:100%!important;
  }
}

/* V130 — Rankings mobile: lista simples, sem ícones internos. */
@media (max-width:1180px){
  html[data-l2-layout] :is(.cr-mobile-rank,.cp-mobile-rank,.mi-mobile-rank) > .l2-rank-submenu{
    gap:0!important;
    padding:3px 0!important;
  }
  html[data-l2-layout] :is(.cr-mobile-rank,.cp-mobile-rank,.mi-mobile-rank) > .l2-rank-submenu > a{
    min-height:38px!important;
    padding:9px 12px!important;
    font-size:13px!important;
  }
}

/* V131 — Rankings mobile: acabamento reto/quadrado. */
@media (max-width:1180px){
  html[data-l2-layout] :is(.cr-mobile-rank,.cp-mobile-rank,.mi-mobile-rank) > button,
  html[data-l2-layout] :is(.cr-mobile-rank,.cp-mobile-rank,.mi-mobile-rank) > .l2-rank-submenu,
  html[data-l2-layout] :is(.cr-mobile-rank,.cp-mobile-rank,.mi-mobile-rank) > .l2-rank-submenu > a{
    border-radius:0!important;
  }
}
