/* =====================================================================
   ARES — EMBLEMA ANIMADO + COMPONENTES DEL SISTEMA
   Se carga después de styles.css.
   ===================================================================== */

/* ---------- Emblema (logo del hero) ---------- */
.emblem { position: relative; width: clamp(280px, 34vw, 480px); aspect-ratio: 1; display: grid; place-items: center; perspective: 900px; margin: -30px 0 -20px -30px; }
.emblem-tilt { position: relative; width: 100%; height: 100%; display: grid; place-items: center; transform-style: preserve-3d; transition: transform .25s ease-out; }
.emblem-glow { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(227,177,96,.38) 0%, rgba(208,16,31,.22) 38%, transparent 70%); filter: blur(18px); animation: glowpulse 4.5s ease-in-out infinite; }
.emblem-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.emblem-rings .r-slow { transform-origin: 50% 50%; animation: spin 60s linear infinite; }
.emblem-rings .r-fast { transform-origin: 50% 50%; animation: spin 22s linear infinite reverse; }
.emblem-rings .r-text { transform-origin: 50% 50%; animation: spin 90s linear infinite; }
.emblem-rings text { font: 500 9.5px "JetBrains Mono", monospace; letter-spacing: .32em; fill: rgba(227,177,96,.75); }
.emblem-logo { position: relative; width: 66%; transform: translateZ(40px); animation: emblemIn 1.4s cubic-bezier(.2,.8,.2,1) both; }
.emblem-logo img { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 1px rgba(0,0,0,.9)) drop-shadow(0 18px 40px rgba(0,0,0,.7)) drop-shadow(0 0 28px rgba(227,177,96,.3)); }
.emblem-shine {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url(/assets/img/ares-logo.png) center / contain no-repeat;
  mask: url(/assets/img/ares-logo.png) center / contain no-repeat;
  background: linear-gradient(105deg, transparent 42%, rgba(255,246,220,.95) 50%, transparent 58%);
  background-size: 300% 100%; background-position: 150% 0; mix-blend-mode: screen;
  animation: shine 6s ease-in-out 1.6s infinite;
}
.emblem-scan { position: absolute; left: 12%; right: 12%; height: 2px; top: 50%; background: linear-gradient(90deg, transparent, rgba(227,177,96,.7), transparent); box-shadow: 0 0 12px rgba(227,177,96,.6); animation: scan 5s ease-in-out infinite; opacity: .55; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes glowpulse { 0%, 100% { opacity: .65; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes shine { 0% { background-position: 150% 0; } 35%, 100% { background-position: -50% 0; } }
@keyframes scan { 0%, 100% { transform: translateY(-140px); opacity: 0; } 15%, 85% { opacity: .55; } 50% { transform: translateY(140px); } }
@keyframes emblemIn { from { opacity: 0; transform: translateZ(40px) scale(.82); filter: blur(10px) brightness(2); } to { opacity: 1; transform: translateZ(40px) scale(1); filter: none; } }
@media (max-width: 760px) { .emblem { margin: 0 auto; width: min(86vw, 360px); } }
@media (prefers-reduced-motion: reduce) { .emblem-glow, .emblem-rings *, .emblem-shine, .emblem-scan, .emblem-logo { animation: none !important; } }

/* ---------- Básicos ---------- */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Velo oscuro detrás del texto del hero para asegurar contraste AA sobre el fondo claro */
.hero-main { position: relative; isolation: isolate; }
.hero-main::before {
  content: ""; position: absolute; inset: -60px -80px -60px -120px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 55% at 35% 60%, rgba(2,6,8,.62), rgba(2,6,8,0) 75%);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #3FD07A; box-shadow: 0 0 12px #3FD07A; flex: none; animation: hudblink 1.8s ease-in-out infinite; }
.live-dot.warn { background: #E3B160; box-shadow: 0 0 12px #E3B160; }
.live-dot.bad { background: #FF4D5A; box-shadow: 0 0 12px #FF4D5A; }
.live-tag { display: inline-flex; align-items: center; gap: 8px; font: 500 11px "JetBrains Mono", monospace; letter-spacing: .2em; color: #9BE7B7; }
.muted { color: var(--texto-4); }
.small { font-size: 13px; }

.avatar { border-radius: 50%; object-fit: cover; background: #222; border: 1px solid rgba(255,255,255,.25); flex: none; }
.stars { display: inline-flex; gap: 4px; }
.stars i { width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid rgba(227,177,96,.6); }
.stars i.on { background: var(--acento); border-color: var(--acento); box-shadow: 0 0 6px rgba(227,177,96,.5); }

.user-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 16px 4px 5px; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid rgba(227,177,96,.45); color: var(--texto); text-decoration: none; font-weight: 600; font-size: 14px; }
.user-chip:hover { border-color: var(--acento); color: #fff; }
.nav-right { display: flex; align-items: center; gap: 10px; }
@media (max-width: 960px) {
  .nav-right { margin-left: auto; order: 2; }
  .nav-toggle { margin-left: 0; order: 3; }
  .nav-links { order: 4; }
  .nav-right .btn-enlist { display: none; }
}
@media (max-width: 520px) {
  .nav { padding: 8px 8px 8px 14px; gap: 8px; }
  .nav .brand { gap: 8px; }
  .nav .brand img { width: 36px; height: 38px; }
  .nav .brand span { font-size: 18px; letter-spacing: .2em; }
  .nav .btn-sm { padding: 0 14px; font-size: 14px; }
  .nav .user-chip span { display: none; }
  .nav .user-chip { padding: 4px; }
  .nav #live-tag { display: none; }
}

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 600 11px "JetBrains Mono", monospace; letter-spacing: .08em; background: rgba(227,177,96,.14); color: var(--oro-claro); border: 1px solid rgba(227,177,96,.35); white-space: nowrap; }
.badge.red { background: rgba(208,16,31,.18); color: #FFB3B8; border-color: rgba(208,16,31,.5); }
.badge.dim { background: rgba(255,255,255,.06); color: var(--texto-3); border-color: rgba(255,255,255,.15); }
.badge.green { background: rgba(63,208,122,.12); color: #9BE7B7; border-color: rgba(63,208,122,.4); }

/* ---------- En vivo: servidores y noticias ---------- */
.live-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: stretch; }
.live-card { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.sys { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08); font-size: 15px; }
.sys b { font-weight: 500; }
.sys span { display: inline-flex; align-items: center; gap: 8px; font: 500 12px "JetBrains Mono", monospace; letter-spacing: .1em; color: var(--texto-3); }
.big-num { font-family: "Chakra Petch", sans-serif; font-size: 30px; font-weight: 700; color: var(--texto); line-height: 1.1; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.news { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 180px; padding: 18px; border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--texto); border: 1px solid rgba(255,255,255,.12); background: #111 center / cover no-repeat; isolation: isolate; transition: transform .25s ease, border-color .25s; }
.news::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 20%, rgba(10,2,4,.92) 100%); z-index: -1; }
.news:first-child { grid-row: span 2; min-height: 376px; }
.news:hover { transform: translateY(-3px); border-color: rgba(227,177,96,.6); color: #fff; }
.news h3 { margin: 6px 0 0; font-size: 18px; line-height: 1.25; font-weight: 600; }
.news:first-child h3 { font-size: 26px; }
.news .mono { font-size: 11px; letter-spacing: .16em; color: var(--oro-claro); }
@media (max-width: 1000px) { .live-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } .news:first-child { grid-row: auto; min-height: 240px; } }

/* ---------- Tripulación ---------- */
.crew-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.crew { padding: 24px 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; text-decoration: none; color: var(--texto); transition: transform .2s; }
.crew:hover { transform: translateY(-3px); color: #fff; }
.crew .avatar { width: 84px; height: 84px; border: 2px solid rgba(227,177,96,.55); box-shadow: 0 0 24px rgba(227,177,96,.2); }
.crew b { font-family: "Chakra Petch", sans-serif; font-size: 18px; font-weight: 600; word-break: break-all; }
.crew .rank { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--texto-3); }

/* ---------- Estados ---------- */
.empty-state { padding: 40px 24px; text-align: center; color: var(--texto-3); border: 1px dashed rgba(255,255,255,.18); border-radius: 18px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty-state p { margin: 0; }
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.1), rgba(255,255,255,.04)); background-size: 200% 100%; animation: skel 1.3s linear infinite; border-radius: 14px; min-height: 60px; }
@keyframes skel { to { background-position: -200% 0; } }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 40px)); }
.toast { padding: 14px 18px; border-radius: 14px; background: rgba(20,4,7,.94); border: 1px solid rgba(227,177,96,.5); color: var(--texto); font-size: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.6); transition: opacity .4s, transform .4s; }
.toast-err { border-color: rgba(255,77,90,.7); }
.toast.out { opacity: 0; transform: translateY(10px); }

/* ---------- Formularios y botones ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
textarea.field { min-height: 110px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.hint { font-size: 13px; color: var(--texto-4); margin: 0; }
.error-msg { margin: 0; color: #FF9AA2; font-size: 14px; min-height: 1.4em; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-danger { background: rgba(208,16,31,.25); color: #FFC9CD; box-shadow: inset 0 0 0 1px rgba(208,16,31,.6); }
.btn-danger:hover { background: rgba(208,16,31,.45); color: #fff; }
.btn-xs { min-height: 38px; padding: 0 16px; font-size: 13px; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.45); color: var(--texto-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { color: #fff; border-color: rgba(255,77,90,.7); }

/* ---------- Páginas de aplicación ---------- */
.app-wrap { width: 100%; max-width: var(--maxw); padding: 48px 0 80px; }
.auth-wrap { width: 100%; max-width: 560px; padding: 70px 0 90px; }
.auth { padding: 44px; display: flex; flex-direction: column; gap: 22px; }
.auth-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-radius: 16px; background: rgba(0,0,0,.45); border: 1px dashed rgba(227,177,96,.6); flex-wrap: wrap; }
.code-box code { font: 600 clamp(20px, 5vw, 28px) "JetBrains Mono", monospace; letter-spacing: .12em; color: var(--oro-claro); }
.wizard-steps { margin: 0; padding: 0 0 0 20px; color: var(--texto-2); display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.5; }
@media (max-width: 640px) { .auth { padding: 28px 22px; } }

.dash { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.side { position: sticky; top: 110px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.side-user { display: flex; align-items: center; gap: 12px; padding: 6px 6px 16px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 8px; }
.side-user b { display: block; font-size: 15px; word-break: break-all; }
.side a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: 12px; color: var(--texto-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.side a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side a[aria-current="page"] { background: rgba(227,177,96,.16); color: var(--oro-claro); box-shadow: inset 0 0 0 1px rgba(227,177,96,.35); }
.side svg { width: 18px; height: 18px; flex: none; }
.side .logout { margin-top: 10px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 10px; }
.side .logout button { width: 100%; min-height: 44px; border-radius: 12px; background: none; border: 0; color: var(--texto-3); font: 500 15px Inter, sans-serif; text-align: left; padding: 0 14px; cursor: pointer; }
.side .logout button:hover { color: #FFB3B8; background: rgba(208,16,31,.12); }
.view { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.view-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; }
.view-head h1 { margin: 0; font-size: clamp(30px, 4vw, 42px); line-height: 1.05; }
.card { padding: 28px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card h2 { margin: 0; font-size: 22px; font-weight: 600; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 1100px) { .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; }
  .side { position: static; flex-direction: row; overflow-x: auto; padding: 10px; border-radius: 20px; }
  .side-user { display: none; }
  .side a { white-space: nowrap; }
  .side .logout { margin: 0; border: 0; padding: 0; }
  .side .logout button { white-space: nowrap; }
}
@media (max-width: 640px) { .cards-2 { grid-template-columns: 1fr; } }

.hello { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hello .avatar { width: 92px; height: 92px; border: 2px solid var(--acento); box-shadow: 0 0 30px rgba(227,177,96,.25); }
.meta-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 0; }
.meta-list dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--texto-4); }
.meta-list dd { margin: 4px 0 0; font-size: 15px; color: var(--texto); }

/* ---------- Operaciones ---------- */
.op-list { display: flex; flex-direction: column; gap: 14px; }
.op-card { padding: 20px 22px; display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 20px; align-items: center; border-radius: 18px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.1); }
.op-date { text-align: center; padding-right: 16px; border-right: 1px solid rgba(255,255,255,.14); }
.op-date b { display: block; font-family: "Chakra Petch", sans-serif; font-size: 30px; line-height: 1; }
.op-date span { display: block; font: 500 11px "JetBrains Mono", monospace; letter-spacing: .14em; color: var(--acento); text-transform: uppercase; margin-top: 4px; }
.op-card h3 { margin: 6px 0; font-size: 20px; font-weight: 600; }
.op-card p { margin: 0; font-size: 14px; color: var(--texto-3); line-height: 1.5; }
.op-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.op-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.roster { display: flex; align-items: center; margin-top: 12px; }
.roster .avatar { width: 28px; height: 28px; margin-right: -8px; border: 2px solid #1a0507; }
.roster em { font-style: normal; margin-left: 16px; font-size: 13px; color: var(--texto-3); }
.op-card.compact { grid-template-columns: 70px minmax(0, 1fr); padding: 18px; gap: 16px; }
.op-card.compact .op-actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; }
@media (max-width: 700px) {
  .op-card { grid-template-columns: 62px minmax(0, 1fr); padding: 18px; gap: 14px; }
  .op-date { padding-right: 12px; }
  .op-actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; flex-wrap: wrap; }
}

/* ---------- Naves ---------- */
.ship-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.ship-card { position: relative; border-radius: 18px; overflow: hidden; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; text-decoration: none; color: var(--texto); }
.ship-card .pic { aspect-ratio: 16 / 9; background: #0b0b0d center / cover no-repeat; }
.ship-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.ship-card b { font-family: "Chakra Petch", sans-serif; font-size: 18px; font-weight: 600; }
.ship-card .x { position: absolute; top: 10px; right: 10px; }
.ship-card .count { position: absolute; top: 10px; left: 10px; }
.search-wrap { position: relative; }
.suggest { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); max-height: 340px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; border-radius: 14px; background: #160609; border: 1px solid rgba(227,177,96,.4); box-shadow: 0 20px 50px rgba(0,0,0,.7); }
.suggest[hidden] { display: none; }
.suggest li button { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 10px; border: 0; border-radius: 10px; background: none; color: var(--texto); text-align: left; cursor: pointer; font: 15px Inter, sans-serif; }
.suggest li button:hover, .suggest li button:focus { background: rgba(227,177,96,.14); outline: none; }
.suggest img { width: 64px; height: 36px; object-fit: cover; border-radius: 6px; background: #000; flex: none; }
.suggest small { display: block; color: var(--texto-4); font-size: 12px; }

/* ---------- Tabla ---------- */
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid rgba(255,255,255,.1); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.table th { text-align: left; padding: 14px 16px; font: 500 11px "JetBrains Mono", monospace; letter-spacing: .16em; color: var(--texto-4); background: rgba(0,0,0,.35); font-weight: 500; }
.table td { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.07); vertical-align: middle; }
.table tr:hover td { background: rgba(255,255,255,.03); }
.table a { text-decoration: none; font-weight: 600; }
.who { display: flex; align-items: center; gap: 12px; }

/* ---------- Modal ---------- */
dialog.modal { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 40px); padding: 0; border: 0; background: transparent; color: var(--texto); overflow: visible; }
dialog.modal::backdrop { background: rgba(0,0,0,.72); }
dialog.modal .panel { padding: 32px; display: flex; flex-direction: column; gap: 18px; background: #14050a; border: 1px solid rgba(227,177,96,.35); max-height: calc(100vh - 40px); overflow-y: auto; }

/* ---------- Perfil público ---------- */
.pilot-hero { padding: 40px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.pilot-hero .avatar { width: 150px; height: 150px; border: 3px solid var(--acento); box-shadow: 0 0 50px rgba(227,177,96,.3); }
.pilot-hero h1 { margin: 0; font-size: clamp(32px, 5vw, 52px); line-height: 1; word-break: break-all; }
@media (max-width: 800px) { .pilot-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 30px 22px; } .pilot-hero .op-meta { justify-content: center; } }

/* ---------- Pantallas anchas: aprovechar todo el ancho ---------- */
@media (min-width: 1400px) {
  .sec-head p { max-width: 560px; }
  .hero-desc { max-width: 680px; }
  .hero-slogan { max-width: 820px; }
  .status { max-width: 480px; }
  .live-grid { grid-template-columns: 400px minmax(0, 1fr); }
  .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .org-panel { padding: 64px 72px; gap: 72px; }
  .join { padding: 64px 72px; gap: 80px; }
  .div-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ranks, .allies { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .code { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery { grid-auto-rows: 260px; }
  .dash { grid-template-columns: 260px minmax(0, 1fr); gap: 32px; }
}

/* ---------- Botón Discord y acceso al Sistema (compartido) ---------- */
.btn-discord {
  background: #5865F2; color: #fff; gap: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset, 0 14px 40px rgba(88, 101, 242, .35);
}
.btn-discord:hover { background: #6773f5; color: #fff; }
.btn-discord svg { width: 22px; height: 22px; flex: none; }
.btn-discord[aria-disabled="true"] { opacity: .45; pointer-events: none; box-shadow: none; }
.sys-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--acento); box-shadow: 0 0 10px var(--acento); margin-right: 8px; vertical-align: middle; animation: hudblink 1.6s ease-in-out infinite; }
.btn-sys { gap: 0; }

/* ---------- Centro de mando (portada) ---------- */
.cmd-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.cmd-grid > article { padding: 28px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.cmd-next { grid-column: 1 / 8; }
.cmd-sys { grid-column: 8 / 13; }
.cmd-week { grid-column: 1 / 13; }
.cmd-ranks { grid-column: 1 / 5; }
.cmd-code { grid-column: 5 / 10; }
.cmd-allies { grid-column: 10 / 13; }
.cmd-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cmd-head .kicker { display: inline-flex; align-items: center; gap: 10px; }
.cmd-title { margin: 0; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.02; font-weight: 700; color: var(--texto); }

.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 520px; }
.countdown div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px; border-radius: 14px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .1); }
.countdown b { font: 600 clamp(28px, 3vw, 40px)/1 "Chakra Petch", sans-serif; color: var(--oro-claro); font-variant-numeric: tabular-nums; }
.countdown span { font-size: 10px; letter-spacing: .2em; color: var(--texto-5); }
.countdown.live b { color: #7fe3a0; }
.cmd-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: auto; }
.crew-stack { display: flex; align-items: center; }
.crew-stack .avatar { margin-right: -8px; border: 2px solid #1a0508; }
.crew-stack .small { margin-left: 18px; }
.cmd-later { display: grid; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 14px; }
.cmd-later a, .cmd-later > div { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-decoration: none; color: var(--texto-2); font-size: 14px; padding: 6px 0; }
.cmd-later .mono { font-size: 12px; color: var(--texto-4); }

.cmd-sys { background-image: radial-gradient(80% 60% at 100% 0%, rgba(88, 101, 242, .18), transparent 70%); }
.cmd-sys h3 { margin: 0; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.05; font-weight: 700; }
.cmd-feats { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.cmd-feats li { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .28); border-left: 2px solid var(--acento); }
.cmd-feats b { font-size: 15px; color: var(--texto); }
.cmd-feats span { font-size: 14px; color: var(--texto-3); line-height: 1.45; }
.cmd-sys .actions { margin-top: auto; }

.week2 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.wday { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 14px; background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .08); min-height: 132px; }
.wday b { font-size: 15px; line-height: 1.3; color: var(--texto); }
.wday-n { font-size: 11px; letter-spacing: .18em; color: var(--texto-4); }
.wday-t { font-size: 20px; color: var(--oro-claro); margin-top: auto; }
.wday-t small { font-size: 11px; color: var(--texto-4); }
.wday-s { font-size: 12px; color: var(--texto-5); }
.wday.free { background: transparent; border-style: dashed; }
.wday.today { border-color: rgba(227, 177, 96, .55); }
.wday.today .wday-n { color: var(--oro-claro); }
.wday.next { background: linear-gradient(180deg, rgba(227, 177, 96, .18), rgba(0, 0, 0, .3)); border-color: var(--acento); box-shadow: 0 0 30px rgba(227, 177, 96, .15); }

.ladder { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ladder li { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .22); }
.ladder li:first-child { background: rgba(227, 177, 96, .12); }
.ladder b { display: block; font-size: 16px; font-weight: 600; color: var(--texto); }
.ladder span:not(.bars):not(.rank-n) { font-size: 13px; color: var(--texto-4); line-height: 1.4; }
.ladder .bars { justify-self: start; gap: 3px; }
.ladder .bars i { width: 7px; height: 14px; border-radius: 2px; }

.code2 { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.code2 li { display: flex; gap: 12px; padding: 14px; border-radius: 12px; background: rgba(0, 0, 0, .22); }
.code2 .code-n { font-size: 22px; font-weight: 700; color: var(--acento); line-height: 1; }
.code2 b { display: block; font-size: 15px; color: var(--texto); margin-bottom: 4px; }
.code2 span { font-size: 13px; line-height: 1.45; color: var(--texto-3); }

.allies2 { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ally2 { display: flex; gap: 12px; align-items: center; }
.ally2 img, .ally2 .ally-logo { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.ally2 b, .ally-cta2 b { display: block; font-size: 15px; color: var(--texto); }
.ally2 span, .ally-cta2 span { font-size: 13px; line-height: 1.45; color: var(--texto-3); }
.ally-cta2 { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; border-radius: 12px; border: 1px dashed rgba(227, 177, 96, .45); flex: 1; justify-content: center; }

@media (max-width: 1200px) {
  .cmd-next, .cmd-sys, .cmd-week { grid-column: 1 / -1; }
  .cmd-ranks { grid-column: 1 / 7; }
  .cmd-code { grid-column: 7 / 13; }
  .cmd-allies { grid-column: 1 / -1; }
  .week2 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .code2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cmd-grid > article { grid-column: 1 / -1; padding: 22px 18px; }
  .week2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .countdown { gap: 8px; }
  .cmd-later a, .cmd-later > div { grid-template-columns: 1fr; gap: 2px; }
}
