/* A compact in-world journal: carved blue stone, brass edges, readable notes. */
.game-shell{--journal-edge:#b39b65;--journal-light:#eed69c;--journal-ink:#172536;--journal-tile:#233647;--journal-muted:#b1bdc6}
.tower-stage{--journal-edge:#9fa777;--journal-light:#e4ddb0;--journal-ink:#182d2c;--journal-tile:#263e39}
.bridge-stage{--journal-edge:#8facbb;--journal-light:#e0e4c8;--journal-ink:#182b3c;--journal-tile:#294353}
.roof-stage{--journal-edge:#a39aba;--journal-light:#eadcb6;--journal-ink:#25283d;--journal-tile:#363b50}
.game-shell .quest-panel{position:relative;min-width:0;min-height:0;padding:20px 19px;background:repeating-linear-gradient(0deg,#ffffff02 0 2px,transparent 2px 6px),var(--journal-ink);border:3px solid var(--journal-edge);box-shadow:0 0 0 2px #0c1625,inset 0 0 0 2px #e7d39b24,inset 0 0 0 5px #0e1c2880,4px 6px #0b1323}
.quest-panel::before,.quest-panel::after{content:'';position:absolute;top:5px;bottom:5px;width:3px;background:linear-gradient(var(--journal-light) 0 5px,transparent 5px calc(100% - 5px),var(--journal-light) calc(100% - 5px));pointer-events:none}
.quest-panel::before{left:5px}.quest-panel::after{right:5px}
.game-shell .quest-heading{padding-bottom:12px;border-bottom:2px solid var(--journal-edge)}
.quest-panel .quest-heading .eyebrow{font:8px/1.8 var(--pixel);letter-spacing:0;color:var(--journal-light)}
.quest-panel .tiny-star{font:18px var(--pixel);color:var(--journal-light)}
.game-shell .quest-intro{padding:15px 0 0;border:0}
.game-shell .quest-intro h2{font:11px/1.85 var(--pixel);letter-spacing:0;color:#f7e9c3;margin:0 0 8px;text-shadow:2px 2px #0b1925;overflow-wrap:anywhere}
.game-shell .quest-intro p{font-size:13px;line-height:1.55;color:var(--journal-muted)}
.game-shell .objective{position:relative;margin-top:13px;padding:9px 8px;gap:10px;border:2px solid #88958b55;background:var(--journal-tile);box-shadow:inset 2px 2px #eef2db0c,0 3px #0d1a2599}
.quest-panel .objective>div{min-width:0}
.quest-panel .objective-icon{width:43px;height:45px;background:#111f2a;border:1px solid var(--journal-edge);box-shadow:inset 2px 2px #0a1624,2px 2px #0a162477}
.quest-panel .objective-icon .sprite{width:41px;height:41px}
.quest-panel .item-type{font:6px/1.8 var(--pixel);letter-spacing:.3px;color:var(--journal-light)}
.game-shell .objective h3{font:9px/1.8 var(--pixel);white-space:normal;color:#f4e9c8;margin:3px 0 4px}
.game-shell .objective p{font-size:12px;line-height:1.45;color:var(--journal-muted)}
.quest-panel .check-box{width:14px;height:14px;border:2px solid #94a19e;box-shadow:inset 1px 1px #0b1723}
.quest-panel .objective.done{border-color:#7eaf98}.quest-panel .objective.done h3{color:#b2ddbd}.quest-panel .objective.done .check-box{box-shadow:none;color:#163629;background:#acd4b5;border-color:#acd4b5;font-size:12px;line-height:11px}
.game-shell .photo-progress{padding-top:16px;margin-top:18px;border-top:2px solid #85928744}
.quest-panel .label-row{font:7px/1.8 var(--pixel);letter-spacing:0;color:#bdc8c9;gap:8px}.quest-panel .label-row b{font:8px/1.8 var(--pixel);color:#f0d79b;white-space:nowrap}
.quest-panel .pieces{gap:5px;margin-top:10px}.quest-panel .pieces span{border:2px solid #64768a;background:#101f2d;font:8px var(--pixel);color:#8798a7;box-shadow:inset 2px 2px #0003}
.quest-panel .pieces .found{border-color:#ddbd76;color:#fff0bb;background:#655436;box-shadow:inset 2px 2px #f1d09333,0 2px #0b1724}.quest-panel .pieces .boss-piece{font-size:17px;color:#c3afc4}
.game-shell .boss-card{padding:11px 9px;margin-top:16px;border:2px solid #6d6c79;background:#101e2d;box-shadow:inset 2px 2px #ffffff08}
.quest-panel .boss-top{font:7px/1.7 var(--pixel);letter-spacing:0}.quest-panel .boss-top>b{font:12px monospace;font-weight:bold}.quest-panel .boss-top>b>span{font:10px monospace}
.quest-panel .hp-track{height:9px;border:1px solid #7d6a78;background:#3b2f40}.quest-panel .hp-track>div{background:linear-gradient(#f0a47d 0 25%,#c66b70 25% 75%,#954858 75%)}
.quest-panel .boss-detail>p{font-size:11px;line-height:1.5;white-space:normal;color:var(--journal-muted);margin-top:7px}
.game-shell .controls-note{margin-top:18px;padding:10px;background:#0b192577;border-left:3px solid var(--journal-edge)}
.game-shell .dungeon-note{padding-top:12px;margin-top:14px;border-top:2px solid #85928744}.game-shell .dungeon-note p{font-size:12px;line-height:1.5;color:var(--journal-muted)}
.quest-panel .enemy-card,.quest-panel .bridge-rounds span,.quest-panel .roof-seals span{border-width:2px;background:var(--journal-tile);box-shadow:inset 2px 2px #eef2db0a,0 2px #0d1a2599}
.quest-panel .enemy-card h3{white-space:normal;font-weight:700}.quest-panel .enemy-card p{font-size:10px}.quest-panel .enemy-card.waiting{opacity:.65}
.quest-panel .charge-meter{height:10px;border:2px solid #b19466}.quest-panel .charge-meter>div{background:linear-gradient(#ffe1a1 0 25%,#edab61 25% 70%,#be744a 70%);box-shadow:none}
.game-shell .bridge-log{padding-top:15px;margin-top:16px;border-top:2px solid #85928744}.quest-panel .bridge-rounds b{font:15px var(--pixel);padding:3px}.quest-panel .bridge-rounds .active{border-color:#e5c385}.quest-panel .bridge-rounds .done{background:#2a4e48;border-color:#96c8b2}
.game-shell #bridgeLogStatus,.game-shell .roof-log p{font-size:12px;line-height:1.5;color:var(--journal-muted)}
.quest-panel .bridge-help{padding:10px;border:2px solid #8ba2a35c;background:#142938}.quest-panel .bridge-help strong{font:8px/1.9 var(--pixel)}.quest-panel .bridge-help p{font-size:12px;line-height:1.5}
.quest-panel .roof-log h3{font:8px/1.8 var(--pixel);letter-spacing:0}.quest-panel .roof-guardian-rules span{background:var(--journal-tile);border:1px solid #a199b555}
@media(max-width:760px){
  .game-shell .quest-panel{padding:16px 14px;gap:12px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .game-shell .quest-heading{display:flex;grid-column:1/-1;padding-bottom:8px}.game-shell .quest-intro{display:block;grid-column:1/-1;padding:0}.game-shell .quest-intro h2{font-size:10px;margin-bottom:5px}.game-shell .quest-intro p{font-size:12px}
  .game-shell .objective{margin:0;gap:7px;padding:8px 6px}.quest-panel .objective-icon{width:34px;height:36px}.quest-panel .objective-icon .sprite{width:32px;height:32px}.game-shell .objective h3{font-size:8px}.game-shell .objective p{font-size:11px}
  .game-shell .photo-progress{margin:0;padding-top:12px;grid-row:auto;flex-wrap:wrap}.quest-panel .pieces{margin:0;min-width:165px;flex:1;max-width:240px}.quest-panel .pieces span{max-height:30px}
  .game-shell .boss-card{grid-row:auto;margin:0}.quest-panel .boss-detail{display:block}.quest-panel .boss-detail>p{font-size:11px}.quest-panel .hp-track{margin:7px 0}
  .game-shell .bridge-log{margin:0;border:0;padding:0}.quest-panel .bridge-rounds b{font-size:14px}.quest-panel .enemy-card{min-height:54px}.quest-panel .enemy-card p{font-size:9px;line-height:1.4}
}
@media(max-width:430px){.game-shell .objective{grid-column:1/-1}.quest-panel .enemy-legend{grid-template-columns:repeat(2,minmax(0,1fr))}.quest-panel .enemy-card{gap:5px}.quest-panel .item-type{font-size:6px}.quest-panel .label-row{font-size:6px}.quest-panel .boss-top{font-size:6px}}
/* Short laptop screens (1280×800, 1366×768): the journal keeps what matters mid-play, so nothing is cut off at the bottom.
   The story line and reward line are hidden here (the stage briefing shows both), as is the closing tip except in the
   dungeon, whose archer tip appears nowhere else. */
@media(min-width:1001px) and (max-height:900px){
  .game-shell .quest-panel{padding:14px 15px}
  .game-shell .quest-heading{padding-bottom:9px}
  .game-shell .quest-intro{padding-top:11px}.game-shell .quest-intro h2{margin:0}
  .game-shell .quest-intro p,.quest-panel .boss-detail>p,.viewport-game:not([data-stage="1"]) .dungeon-note{display:none}
  .game-shell .objective{margin-top:9px}
  .game-shell .photo-progress{margin-top:12px;padding-top:11px}.quest-panel .pieces{margin-top:8px}
  .game-shell .boss-card{margin-top:11px;padding:9px}
  .game-shell .controls-note{margin-top:11px;padding:8px}
  .game-shell .bridge-log{margin-top:11px;padding-top:11px}
  .quest-panel .roof-log h3{margin-bottom:7px}.game-shell .roof-log>p{margin:7px 0}
}
/* 768-class heights: slimmer guardian rows and paragraph gaps; the tower's shooting tip also stays in its briefing. */
@media(min-width:1001px) and (max-height:790px){
  .quest-panel .shoot-help{display:none}
  .game-shell .roof-log>p{margin:5px 0}
  .quest-panel .roof-guardian-rules>span{font-size:13px}.quest-panel .roof-guardian-rules .element-icon{width:24px;height:24px}
}
