/* Lyktvakten only (spel-lyktvakten.html).
   Split out of css/style.css so pages do not download rules they cannot use; tests/css-scope.test.js checks the scope. */

/* ---- v0.4: adventure games (Talbergets tempel, Lyktvakten) ---- */
.lv-panel h3 { margin: 0; }
.lv-panel h4 { margin: 4px 0 0; }
.lv-panel ul { margin: 0; padding-left: 18px; display: grid; gap: 2px; }
.lv-panel .rec.locked { opacity: .65; }
.lv-panel .lv-why { color: #b0532a; }
.lv-panel .lv-key { color: #2f7a4a; font-weight: 800; }
.lv-panel .lv-lvl { margin: 0; color: var(--ink-soft); }
.lv-panel .lv-lvl.on { color: var(--ink); font-weight: 800; }
.lv-panel .lv-made, .lv-panel .lv-locked { margin: 0; font-size: .9em; color: var(--ink-soft); }
.lv-areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.lv-area { background: #eef8ef; border-radius: 14px; padding: 8px 10px; display: grid; gap: 4px; }
.lv-area.locked { background: #f0eef6; color: var(--ink-soft); }
.lv-spots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lv-spot { border: 0; border-radius: 14px; background: #f6f2ff; font: inherit; font-size: 1.4em; padding: 6px; cursor: pointer; display: grid; justify-items: center; box-shadow: 0 3px 0 #d9d0f5; }
.lv-spot.on { background: #ffe9a8; }
.lv-own { display: flex; flex-wrap: wrap; gap: 6px; }
.lv-pet { border-radius: 12px; padding: 4px 9px; background: #f0eef6; color: var(--ink-soft); font-size: .9em; }
.lv-pet.on { background: #e3f6e6; color: var(--ink); font-weight: 800; }
.lv-stage .adv-sign.hold { display: none; }
@media (max-width: 600px) {
  /* Phones: the sign sits above the controls (not over the HUD) and steps aside while a question is open; title cards sit lower and smaller. */
  .lv-stage .adv-sign { top: auto; bottom: 132px; max-width: 86%; }
  .lv-stage.lv-asking .adv-sign { display: none; }
  .lv-stage .adv-title { top: 40%; width: 88%; }
  .lv-stage .adv-title b { font-size: 1.7rem; }
}

/* ===================== v0.4.1: phones first ============================== */
/* Phones: compact adventure HUD (essentials first, ＋ unfolds the rest). */
.adv-hud .hud-more { display: none; }
@media (max-width: 760px), (max-height: 500px) {
  .adv-hud .hud-more { display: inline-flex; pointer-events: auto; border: 0; font: inherit; font-weight: 900; color: var(--ink); cursor: pointer; min-width: 30px; justify-content: center; position: relative; }
  .adv-hud .hud-more::after { content: ''; position: absolute; top: -12px; bottom: -12px; left: -8px; right: -8px; }
}
