/* assets/css/explorer.css - Noos Explorer (arcade). Accent: torch amber on dungeon slate. */
body { font-family: 'Quicksand', sans-serif; }
[hidden] { display: none !important; }

:root { --ex-accent: #f59e0b; --ex-accent-2: #fcd34d; --ex-ink: #f1f5f9; --ex-mute: rgba(226, 232, 240, .62); --ex-bg: #0b0f17; --ex-panel: #111827; }
body.ex-body { margin: 0; background: radial-gradient(120% 70% at 50% 0%, #1b2436 0%, var(--ex-bg) 60%); color: var(--ex-ink); min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
#beta-report-trigger { display: none !important; }

/* ---------- layout ---------- */
.ex-wrap { --w: 360px; --h: 476px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 8px 12px; box-sizing: border-box; }
.ex-stage { position: relative; width: var(--w); height: var(--h); border-radius: 18px; overflow: hidden; background: #0b0f17; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 18px 50px rgba(0, 0, 0, .55), 0 0 40px -14px var(--ex-accent); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#exCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.ex-bar { width: var(--w); display: flex; flex-direction: column; gap: 8px; box-sizing: border-box; }
.ex-row { display: flex; gap: 8px; }
.ex-btn { flex: 1 1 0; min-width: 0; white-space: nowrap; padding: 11px 6px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .07); color: #fff; font: 800 12px/1 'Quicksand', sans-serif; letter-spacing: 1.2px; cursor: pointer; text-align: center; transition: transform .1s, background .2s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.ex-btn:hover { background: rgba(255, 255, 255, .13); }
.ex-btn:active, .ex-btn.down { transform: scale(.96); }
.ex-btn:disabled { opacity: .45; cursor: default; }
.ex-btn.ex-primary { background: var(--ex-accent); border-color: transparent; color: #1f1300; box-shadow: 0 6px 18px -6px var(--ex-accent); }
.ex-actions .ex-btn { padding: 17px 6px; font-size: 14px; letter-spacing: 1.4px; }
.ex-actions .ex-sword { flex: 1.5 1 0; background: #ef4444; border-color: transparent; color: #fff; box-shadow: 0 6px 18px -6px #ef4444; }
.ex-actions .ex-sword.charging { background: #f97316; }
.ex-actions .ex-sword.charged { background: #fde047; color: #1f1300; animation: exPulse .5s ease-in-out infinite; }
.ex-actions .ex-item { flex: 1.4 1 0; background: rgba(245, 158, 11, .16); border-color: rgba(245, 158, 11, .6); color: var(--ex-accent-2); }
.ex-actions .ex-swap { flex: .6 1 0; font-size: 12px; }
.ex-small .ex-btn { font-size: 11px; letter-spacing: .8px; padding: 11px 4px; }
@keyframes exPulse { 50% { transform: scale(1.05); box-shadow: 0 0 22px -2px #fde047; } }

/* landscape phones: stage left, controls in a right column */
.ex-wrap.land { flex-direction: row; align-items: flex-start; justify-content: center; gap: 10px; }
.ex-wrap.land .ex-bar { width: 156px; }
.ex-wrap.land .ex-actions { flex-direction: column; }
.ex-wrap.land .ex-small { flex-direction: column; }
.ex-wrap.land .ex-btn { flex: 0 0 auto; padding: 12px 6px; }
.ex-wrap.land .ex-actions .ex-btn { padding: 14px 6px; }

/* ---------- overlays (all sit on the stage) ---------- */
.ex-ov { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 16px 16px 14px; box-sizing: border-box; overflow-y: auto; -webkit-overflow-scrolling: touch; text-align: center; }
.ex-ov > * { flex-shrink: 0; }
.ex-ov > :first-child { margin-top: auto; }
.ex-ov > :last-child { margin-bottom: auto; }
.ex-ov.solid { background: #0d121c; }                                       /* OPAQUE: options + pause (no ghosting) */
.ex-ov.veil { background: radial-gradient(120% 90% at 50% 20%, rgba(27, 36, 54, .82), rgba(11, 15, 23, .94)); backdrop-filter: blur(2px); }
.ex-logo { font-weight: 800; font-size: 38px; letter-spacing: 7px; color: var(--ex-accent); text-shadow: 0 0 26px rgba(245, 158, 11, .55); margin: 0 0 2px; padding-left: 7px; }
.ex-tag { font-size: 13px; font-weight: 600; color: var(--ex-mute); margin: 0 0 14px; }
.ex-h { font-size: 12px; font-weight: 800; letter-spacing: 3px; color: var(--ex-mute); text-transform: uppercase; margin: 12px 0 8px; }

.ex-modes { display: flex; flex-direction: column; gap: 8px; margin: 0 0 8px; }
.ex-mode { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 11px 12px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: #fff; font: 800 15px/1.1 'Quicksand', sans-serif; letter-spacing: 2px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ex-mode small { font-size: 11px; font-weight: 700; letter-spacing: .4px; color: var(--ex-mute); }
.ex-mode[aria-checked="true"] { border-color: var(--ex-accent); background: rgba(245, 158, 11, .13); box-shadow: 0 0 20px -6px var(--ex-accent); }
.ex-mode:focus-visible, .ex-btn:focus-visible, .ex-skin:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ex-desc { min-height: 34px; font-size: 13px; font-weight: 600; color: rgba(241, 245, 249, .85); line-height: 1.35; margin: 0 4px 6px; }
.ex-best { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; color: var(--ex-accent-2); margin: 0 0 12px; min-height: 16px; }
.ex-play { padding: 15px 10px; font-size: 16px; letter-spacing: 4px; flex: none; width: 100%; }

.ex-menu { display: flex; flex-direction: column; gap: 8px; }
.ex-menu .ex-btn { flex: none; width: 100%; padding: 13px 10px; font-size: 13px; }
.ex-skins { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 4px; }
.ex-skin { position: relative; width: 46px; height: 46px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .05); cursor: pointer; padding: 0; display: grid; place-items: center; }
.ex-skin i { width: 24px; height: 12px; display: block; border-radius: 6px; background: var(--c); box-shadow: 0 0 10px -2px var(--c); }
.ex-skin[aria-checked="true"] { border-color: var(--ex-accent); box-shadow: 0 0 14px -3px var(--ex-accent); }
.ex-skin.locked { opacity: .35; cursor: default; }
.ex-skin.locked::after { content: '🔒'; position: absolute; right: -4px; bottom: -6px; font-size: 13px; }
.ex-skinnote { font-size: 11px; font-weight: 700; color: var(--ex-mute); min-height: 15px; margin: 2px 0 6px; }
.ex-toggles { display: flex; gap: 8px; }
.ex-toggles .ex-btn { flex: 1; }
.ex-btn[aria-pressed="true"] { background: rgba(245, 158, 11, .16); border-color: rgba(245, 158, 11, .55); color: var(--ex-accent-2); }
#trophy-list { text-align: left; max-height: 46%; overflow-y: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; padding: 4px; min-height: 90px; }

/* ready hint + countdown sit over the canvas: never block input */
.ex-center { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; pointer-events: none; }
.ex-hint { text-align: center; padding: 0 24px; margin-top: 90px; }
.ex-hint b { display: block; font-size: 24px; letter-spacing: 5px; color: #fff; text-shadow: 0 0 18px rgba(245, 158, 11, .6); }
.ex-hint span { display: block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--ex-mute); }
.ex-hint .ex-ring { width: 70px; height: 70px; margin: 0 auto 14px; border-radius: 50%; border: 3px solid rgba(245, 158, 11, .55); position: relative; animation: exRing 1.6s ease-in-out infinite; }
.ex-hint .ex-ring::after { content: ''; position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: rgba(245, 158, 11, .5); animation: exDot 1.6s ease-in-out infinite; }
@keyframes exRing { 50% { transform: scale(1.08); opacity: .7; } }
@keyframes exDot { 0%, 100% { transform: translate(-12px, 8px); } 50% { transform: translate(12px, -10px); } }
.ex-count { font-size: 88px; font-weight: 800; color: #fff; text-shadow: 0 0 30px var(--ex-accent); animation: exPop .9s ease-out both; }
@keyframes exPop { from { transform: scale(1.5); opacity: 0; } 30% { opacity: 1; } to { transform: scale(.9); opacity: .9; } }
.ex-over-score { font-size: 54px; font-weight: 800; color: #fff; text-shadow: 0 0 22px var(--ex-accent); margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.ex-toast { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(16, 185, 129, .95); color: #fff; padding: 8px 16px; border-radius: 22px; font-weight: 800; font-size: 12px; z-index: 9; pointer-events: none; max-width: 90%; text-align: center; }

@media (max-height: 640px) { .ex-logo { font-size: 32px; } .ex-mode { padding: 8px 10px; } .ex-tag { margin-bottom: 8px; } .ex-ov { padding: 10px 12px; } }
.ex-wrap.tight .ex-logo { font-size: 28px; letter-spacing: 5px; }
.ex-wrap.tight .ex-btn { font-size: 11px; letter-spacing: .6px; padding: 10px 3px; }
.ex-wrap.tight .ex-actions .ex-btn { padding: 15px 3px; font-size: 12px; }
.ex-wrap.compact .ex-tag { display: none; }
.ex-wrap.compact .ex-actions .ex-btn { padding: 13px 4px; }
.ex-wrap.compact .ex-logo { margin-bottom: 12px; }
@media (prefers-reduced-motion: reduce) { .ex-actions .ex-sword.charged, .ex-hint .ex-ring, .ex-hint .ex-ring::after, .ex-count { animation: none; } }
.ex-wrap.land .ex-tag, .ex-wrap.land .ex-desc, .ex-wrap.land .ex-best { display: none; }
.ex-wrap.land .ex-logo { font-size: 24px; letter-spacing: 5px; margin-bottom: 8px; }
.ex-wrap.land .ex-modes { flex-direction: row; gap: 6px; }
.ex-wrap.land .ex-mode { flex: 1; padding: 8px 2px; font-size: 11px; letter-spacing: 1px; }
.ex-wrap.land .ex-mode small { display: none; }
.ex-wrap.land .ex-play { padding: 10px; }
.ex-wrap.land .ex-hint { margin-top: 60px; }
