/* Página del juego web — NEOARQ PLAY */
html, body { margin: 0; padding: 0; height: 100%; background: #06101c; color: #f3f8fc; overflow: hidden; touch-action: none; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
#canvas { display: block; width: 100vw; height: 100vh; height: 100dvh; outline: none; }
#canvas:focus { outline: none; }

.status { position: fixed; inset: 0; z-index: 5; display: grid; place-items: center; padding: 24px; background: radial-gradient(60% 60% at 50% 40%, rgba(142,240,90,.18), transparent 70%), #06101c; }
.loader { width: min(520px, 100%); text-align: center; }
.keyart { width: min(380px, 70vw); height: auto; border-radius: 22px; box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 0 6px rgba(142,240,90,.12); }
.bar { margin: 26px auto 12px; height: 14px; border-radius: 999px; background: #13283c; border: 1px solid rgba(160,200,230,.25); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #a6f56b, #5fe39a); transition: width .2s; }
.text { margin: 0; font-weight: 800; letter-spacing: .5px; }
.hint { margin: 6px 0 0; font-size: 14px; color: #a9bccd; }
.notice { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: #3d2330; border: 1px solid #9b3943; color: #ffd9dc; font-size: 15px; line-height: 1.45; }
.notice a { color: #ffd23f; }
.back { position: absolute; left: 16px; top: 14px; color: #cfdeea; text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.06); }
.back:hover, .back:focus-visible { background: rgba(142,240,90,.2); color: #fff; outline: none; }

/* Aviso para girar el teléfono (el juego es horizontal) */
.rotate { display: none; }
@media (orientation: portrait) and (pointer: coarse) {
  .rotate { position: fixed; inset: 0; z-index: 10; display: grid; place-content: center; gap: 12px; text-align: center; padding: 30px; background: #06101c; }
  .rotate img { width: 160px; height: auto; margin: 0 auto; animation: tilt 2s ease-in-out infinite; }
  .rotate p { margin: 0; font-size: 22px; font-weight: 800; color: #8ef05a; }
}
@keyframes tilt { 50% { transform: rotate(-90deg); } }
@media (prefers-reduced-motion: reduce) { .rotate img { animation: none; } }
