/* 2.0 First Ten Minutes and Picture HUD (slice 5): new pieces only. Existing HUD pieces (hearts, beacon card,
   toolbar, minimap, toasts) are styled in place in style.css; phone overrides live in its "1.6 phone HUD" block.
   Free space kept for other lanes: beside the hearts (Shrine Power icons), under the hearts in the top-left corner
   (the analogue clock) and just above the hotbar (the Spark bar). */

/* Top left: the hearts row. */
#explore-hud .explore-status { display:flex; align-items:center; gap:8px; min-width:0; pointer-events:none; }

/* Top right: picture-only buttons (🗺️ 👥 ⏸️ ☰), each with an aria-label and a long press that says its name. */
#explore-hud .explore-tools .pic-btn { min-width:44px; min-height:44px; padding:6px 8px; font-size:22px; line-height:1; }
@media (max-width:700px), (max-height:600px) {
  #explore-hud .explore-tools .pic-btn { min-width:40px; min-height:40px; font-size:19px; padding:5px 7px; }
}
#explore-hud .pic-btn.saying, #explore-hud .explore-hearts.saying, #explore-hud .explore-objective.saying { filter:brightness(1.25); }

/* The minimap's north mark (a single letter, like a compass). */
.island-map .map-north { fill:#fff; font:900 9px var(--body); paint-order:stroke; stroke:#0006; stroke-width:2px; }

/* The guide beacon bounces when its step changes; the card itself keeps its position (gotcha 3). */
/* An item to make (a pickaxe, torches) is its hotbar picture, the size of the beacon's emoji. */
.explore-objective .beacon-pic .item-tile { display:block; width:1.1em; height:1.1em; }
.explore-objective.bounce .beacon-pic { display:inline-block; animation:beacon-bounce .7s cubic-bezier(.2,1.6,.4,1); }
@keyframes beacon-bounce { 0% { transform:scale(.6); } 60% { transform:scale(1.25); } 100% { transform:none; } }

/* The pointing hand: over a HUD piece (outer element positioned, inner one bobs) or anchored in the world. */
.guide-hand-ui { position:absolute; left:0; top:0; z-index:22; display:none; pointer-events:none; transform:translate(-50%,-100%); }
.guide-hand-ui.show { display:block; }
.guide-point { display:inline-block; font-size:34px; line-height:1; filter:drop-shadow(0 3px 0 #0007); animation:guide-bob 1s ease-in-out infinite; }
@keyframes guide-bob { 0%, 100% { transform:translateY(-6px); } 50% { transform:translateY(2px); } }
.guide-hand-anchor { position:absolute; left:0; top:0; opacity:0; transition:opacity .2s; pointer-events:none; will-change:transform; }
.guide-hand-anchor.show { opacity:1; }
.guide-hand-anchor .anchor-box .guide-point { font-size:42px; }
@media (max-width:700px), (max-height:600px) { .guide-point { font-size:28px; } .guide-hand-anchor .anchor-box .guide-point { font-size:34px; } }
/* The HUD piece the step needs glows. */
.guide-glow { box-shadow:0 0 0 3px #ffe69a, 0 0 16px 5px #ffd65acc !important; animation:guide-glow 1s ease-in-out infinite alternate; }
@keyframes guide-glow { from { filter:brightness(1); } to { filter:brightness(1.35); } }

/* A new biome: its picture and name in the middle of the screen for 2 s. */
.biome-title { position:absolute; left:0; right:0; top:30%; width:max-content; max-width:90vw; margin:0 auto; z-index:14; display:flex; align-items:center; gap:12px; padding:10px 22px; border-radius:20px; background:#0d1a24b0; color:#fff; font:32px var(--display); text-shadow:0 3px 0 #0008; opacity:0; visibility:hidden; pointer-events:none; }
.biome-title.show { visibility:visible; animation:biome-title 2s ease-out forwards; }
.biome-title .biome-pic { font-size:44px; }
@keyframes biome-title { 0% { opacity:0; transform:scale(.85); } 12% { opacity:1; transform:none; } 80% { opacity:1; } 100% { opacity:0; } }
@media (max-width:700px), (max-height:600px) { .biome-title { font-size:24px; padding:8px 16px; } .biome-title .biome-pic { font-size:34px; } }

/* Picture toasts: the pictures of a sentence that is read aloud instead. */
.toast .toast-pic { font-size:26px; line-height:1; letter-spacing:2px; }

/* The intro: one picture page and a voice. */
.intro-pic .intro-modes { display:flex; justify-content:center; gap:28px; margin:8px 0 18px; font-size:58px; }
.intro-pic .intro-row { display:flex; justify-content:center; align-items:center; gap:14px; }
.intro-pic .intro-row .btn-big { min-width:140px; font-size:34px; }
.intro-pic .intro-say { min-width:56px; min-height:56px; font-size:26px; }

/* ☰ More: picture tiles, one word under each. */
.more-panel .more-head { font-size:34px; line-height:1; }
.more-panel .more-pic { display:block; font-size:32px; line-height:1.1; }
.more-panel .more-pic b { font:900 16px var(--body); vertical-align:middle; }
.more-panel .more-action small { display:block; font:800 13px var(--body); opacity:.85; }
.more-panel .more-back { font-size:26px; }

/* The touch controls in Explore are pictures only, as in the real game: the stick and the jump arrow are known by
   where they are (the Adventure HUD keeps its MOVE and JUMP words). */
body:has(#explore-hud) .joy-base::after { content:none; }
body:has(#explore-hud) #tbtn-jump .tlabel { display:none; }

/* Paused (a sheet or the backpack is open) or in a quiz: the guide's hands and the biome title hide with the HUD. */
.game-paused .guide-hand-ui, .quiz-open .guide-hand-ui, .game-paused .guide-hand-anchor, .quiz-open .guide-hand-anchor,
.game-paused .biome-title, .quiz-open .biome-title { visibility:hidden !important; }
