/* Orbit Dragons · Special Games (sección del hub y vista del juego). Sin degradados en textos: color sólido. */
.sg { margin: 26px 0 8px; }
.sg .sech { display: flex; align-items: center; gap: 12px; }
.sg-tag { padding: 3px 10px; border: 1px solid #c8ff3d; color: #c8ff3d; font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.sg-b { position: relative; display: block; min-height: clamp(260px, 30vw, 430px); overflow: hidden; cursor: pointer; isolation: isolate; background: #120a2e; border: 1px solid rgba(160, 130, 255, .35);
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px); transition: border-color .25s, transform .35s cubic-bezier(.2, .8, .2, 1); }
.sg-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 34%; z-index: -2; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.sg-sh { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 6, 34, .96) 0%, rgba(12, 6, 34, .86) 26%, rgba(12, 6, 34, .35) 52%, rgba(12, 6, 34, 0) 72%), linear-gradient(0deg, rgba(12, 6, 34, .55), rgba(12, 6, 34, 0) 40%); }
.sg-in { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: min(520px, 62%); padding: clamp(18px, 3vw, 40px); }
.sg-in .eyebrow { color: #c8ff3d; }
.sg-logo { width: clamp(170px, 24vw, 330px); height: auto; filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .55)); }
.sg-in p { margin: 0; color: #e9e6fb; font-size: clamp(13px, 1.25vw, 16px); line-height: 1.45; }
.sg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sg-chip { padding: 4px 10px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sg-in .rowx { display: flex; align-items: center; gap: 14px; margin-top: 4px; flex-wrap: wrap; }
.sg-in .note { color: #dcdbee; }
@media (hover: hover) { .sg-b:hover { border-color: #c8ff3d; } .sg-b:hover .sg-bg { transform: scale(1.045); } }
.sg-b:focus-within { border-color: #c8ff3d; }
@media (max-width: 760px) { .sg-b { min-height: 380px; display: flex; align-items: flex-end; } .sg-bg { object-position: 66% 20%; } .sg-in { max-width: 100%; }
  .sg-sh { background: linear-gradient(0deg, rgba(12, 6, 34, .97) 0%, rgba(12, 6, 34, .88) 46%, rgba(12, 6, 34, .1) 78%); } }
@media (prefers-reduced-motion: reduce) { .sg-b, .sg-bg { transition: none; } }

/* video in-game del banner (al pasar el cursor / a la vista en táctil) */
.sg-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; z-index: -2; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.sg-b.vid-on .sg-vid { opacity: 1; } .sg-b.vid-on .sg-bg { transform: none; }

/* vista del juego. Escritorio: ocupa justo lo visible bajo la cabecera de Arcade (dragons-host.js calcula --odg-h), sin cortar nada abajo */
.view-orbit-dragons { padding: 0 !important; max-width: none !important; }
body[data-route="orbit-dragons"] { overflow: hidden; }
.odg { position: relative; width: 100%; height: var(--odg-h, calc(100vh - 80px)); min-height: 420px; background: #0a0618; overflow: hidden; }
.odg-f { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
/* Móvil (táctil): el juego a pantalla completa y centrado; se quita la cabecera superior de Arcade (Aura, idioma, campana, sonido).
   El iframe ocupa toda la pantalla y el juego coloca su HUD dentro de las zonas seguras que le manda dragons-host.js: nada queda bajo la muesca ni bajo la barra de inicio. */
@media (pointer: coarse) and (max-height: 600px), (pointer: coarse) and (max-width: 760px), (max-width: 760px) {
  body[data-route="orbit-dragons"] header.nav, body[data-route="orbit-dragons"] .offline { display: none !important; }
  .odg { position: fixed; inset: 0; z-index: 60; width: 100%; height: 100%; min-height: 0; }
  .odg-f { inset: 0; width: 100%; height: 100%; }   /* a pantalla completa, sin franjas negras: el HUD del juego respeta las zonas seguras que le manda dragons-host.js */
}

/* red de seguridad: si un navegador aún tiene en caché el puente de la v1, su botón suelto «Back to Games» no se muestra (el bueno vive dentro del juego) */
.odg-back { display: none !important; }

/* ── Vitrina de trofeos del perfil: insignias de Orbit Dragons ── */
.odg-ach { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(168, 148, 255, .22); }
.odg-ach-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; } .odg-ach-h img { object-fit: contain; } .odg-ach-h b { font-size: 13px; letter-spacing: .04em; } .odg-ach-h small { margin-left: auto; opacity: .75; font-size: 12px; }
.odg-ach-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.odg-b { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 7px; border-radius: 12px; background: rgba(20, 12, 48, .55); border: 1px solid rgba(168, 148, 255, .18); text-align: center; }
.odg-b img { width: 56px; height: 56px; object-fit: contain; filter: grayscale(1) brightness(.5); opacity: .7; transition: transform .2s ease; }
.odg-b span { font-size: 10.5px; line-height: 1.2; opacity: .55; overflow-wrap: anywhere; }
.odg-b.on { background: radial-gradient(circle at 50% 30%, rgba(185, 255, 60, .16), rgba(20, 12, 48, .7) 70%); border-color: rgba(185, 255, 60, .45); }
.odg-b.on img { filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .5)); opacity: 1; } .odg-b.on span { opacity: 1; }
.odg-b.hard.on { border-color: #f5c451; background: radial-gradient(circle at 50% 30%, rgba(245, 196, 81, .2), rgba(20, 12, 48, .7) 70%); }
.odg-b em { position: absolute; top: 4px; right: 4px; font-style: normal; font-size: 7.5px; font-weight: 800; letter-spacing: .1em; padding: 1px 4px; border-radius: 4px; background: #ff4d6d; color: #fff; }
@media (hover: hover) { .odg-b.on:hover img { transform: scale(1.08) rotate(-3deg); } }
@media (max-width: 520px) { .odg-ach-g { grid-template-columns: repeat(4, 1fr); gap: 6px; } .odg-b img { width: 44px; height: 44px; } .odg-b span { font-size: 9.5px; } }

/* ── Ficha flotante de trofeos e insignias (cómo se consigue) ── */
.odg-hint { display: block; margin: -2px 0 10px; font-size: 11.5px; opacity: .6; }
button.odg-b { font: inherit; color: inherit; cursor: pointer; appearance: none; -webkit-appearance: none; } button.odg-b:focus-visible, .pf-t:focus-visible { outline: 2px solid #b9ff3c; outline-offset: 2px; }
.odg-tip { position: fixed; z-index: 9999; display: flex; gap: 12px; align-items: center; width: min(340px, calc(100vw - 16px)); padding: 12px 14px; border-radius: 14px; background: rgba(18, 11, 44, .97); border: 1px solid rgba(168, 148, 255, .4); box-shadow: 0 18px 44px rgba(0, 0, 0, .55); color: #f4f0ff; animation: odgTip .16s ease-out; }
.odg-tip.on { border-color: #b9ff3c; } .odg-tip > img, .odg-tip > .pf-ni { flex: none; width: 72px; height: 72px; object-fit: contain; } .odg-tip:not(.on) > img { filter: grayscale(1) brightness(.6); }
.odg-tip small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #a79fd6; } .odg-tip.on small { color: #b9ff3c; }
.odg-tip b { display: block; font-size: 15px; margin: 1px 0 3px; } .odg-tip p { margin: 0; font-size: 12.5px; line-height: 1.35; color: #d9d3f5; } .odg-tip em { display: block; margin-top: 5px; font-style: normal; font-size: 11px; color: #f5c451; }
@keyframes odgTip { from { opacity: 0; transform: translateY(6px); } }
/* la ficha de compra y la tienda de aicoins se abren por encima del juego a pantalla completa (móvil) */
body:has(.odg) .dlg-back { z-index: 200; }

/* medidor invisible de las zonas seguras del teléfono (dragons-host.js las manda al juego) */
.odg-safe { position: fixed; left: 0; top: 0; width: 0; height: 0; visibility: hidden; pointer-events: none; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
