/* Una sola schermata, come nelle avventure di una volta: la scena 16:9 riempie la finestra.
   Verbi, zaino, frase e indicatori stanno sopra la scena e compaiono quando servono:
   clic su una cosa = moneta dei verbi; il bottone in basso a sinistra apre lo zaino, che sale sopra la scena.
   Un solo tema scuro, voluto: e' lo schermo di un videogioco. */
:root {
  --night: #16131b;
  --night-2: #211b24;
  --ink: #f1e6cf;
  --muted: #b8a88c;
  --amber: #f6c56b;
  --leather: #6b4429;
  --leather-dark: #3f2717;
  --canvas: #8c7a58;
  --canvas-dark: #5d4f37;
  --stitch: #e8c991;
  --brass: #c99a4a;
  --danger: #e36a52;
  --moon: #9fb6ff;
  --boots: #9fd39a;
  --snow: #f2b6d0;
  --clock: #f0d08a;
  --font-ui: "Alegreya Sans", "Trebuchet MS", system-ui, sans-serif;
  --font-sc: "Alegreya Sans SC", "Alegreya Sans", "Trebuchet MS", sans-serif;
  --font-title: "Bodoni Moda", "Didot", Georgia, serif;
  --font-logo: "Alfa Slab One", "Rockwell", Georgia, serif;
  color-scheme: dark;
}
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #000; color: var(--ink); }
body { font-family: var(--font-ui); font-size: 16px; line-height: 1.45; }
.app { position: fixed; inset: 0; display: grid; place-items: center; overflow: hidden; background: #000;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.frame { position: relative; width: min(100%, calc(100vh * 16 / 9)); width: min(100%, calc(100dvh * 16 / 9)); aspect-ratio: 16 / 9;
  display: flex; flex-direction: column; container-type: inline-size; background: #000;
  -webkit-user-select: none; user-select: none; }
.stage-wrap { position: relative; flex: none; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
canvas#stage { display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: manipulation; -webkit-touch-callout: none; user-select: none; }
.frame.is-title .hud, .frame.is-title .hud-bl, .frame.is-title #sentence, .frame.is-title #skip { display: none; }
/* firma dell'autore: solo sulla schermata del titolo, non intercetta i clic */
.brand { position: absolute; z-index: 2; right: 1.6cqi; bottom: 1.3cqi; margin: 0; pointer-events: none; font: italic 600 max(11px, 1.25cqi) "Alegreya Sans", sans-serif; color: rgba(241,230,207,0.82); text-shadow: 0 1px 3px #000, 0 0 8px rgba(0,0,0,0.6); white-space: nowrap; }
.brand b { font: normal 800 1.4em "Alegreya Sans", sans-serif; letter-spacing: 0.03em; color: #ffe6a8; margin-left: 0.2em; }
.frame:not(.is-title) .brand { display: none; }
/* dedica al gruppo scout: in basso a sinistra, speculare alla firma, solo sul titolo */
.dedica { position: absolute; z-index: 2; left: 1.6cqi; bottom: 1.3cqi; margin: 0; pointer-events: none; line-height: 1.1; font: italic 600 max(10px, 1.05cqi)/1.1 "Alegreya Sans", sans-serif; color: rgba(241,230,207,0.82); text-shadow: 0 1px 3px #000, 0 0 8px rgba(0,0,0,0.6); white-space: nowrap; }
.dedica b { display: block; font: normal 800 1.25em/1.1 "Alegreya Sans", sans-serif; letter-spacing: 0.03em; color: #ffe6a8; }
.frame:not(.is-title) .dedica { display: none; }
/* credito delle immagini: in alto a destra, solo sul titolo */
.credito { position: absolute; z-index: 2; right: 1.6cqi; top: 1.3cqi; margin: 0; pointer-events: none; font: italic 600 max(10px, 1.05cqi) "Alegreya Sans", sans-serif; color: rgba(241,230,207,0.82); text-shadow: 0 1px 3px #000, 0 0 8px rgba(0,0,0,0.6); white-space: nowrap; }
.credito b { font: normal 800 1.15em "Alegreya Sans", sans-serif; letter-spacing: 0.03em; color: #ffe6a8; margin-left: 0.15em; }
.frame:not(.is-title) .credito { display: none; }
.frame.is-inter .hud-bl, .frame.is-inter #sentence, .frame.is-map #zaino-btn, .frame.has-choices .hud-bl, .frame.has-choices #sentence { display: none; }

/* bottoni e scritte sopra la scena */
#skip { position: absolute; z-index: 3; right: 1.2cqi; bottom: 1.2cqi; font: 600 max(12px, 1.25cqi) var(--font-sc); letter-spacing: 0.05em; color: var(--ink); background: rgba(16,10,24,0.7); border: 1px solid rgba(241,230,207,0.35); border-radius: 999px; padding: 0.4em 1.1em; cursor: pointer; }
#skip:hover { background: rgba(16,10,24,0.9); }
#back { position: absolute; z-index: 3; left: 1.2cqi; top: 1.2cqi; font: 600 max(12px, 1.35cqi) var(--font-sc); letter-spacing: 0.05em; color: #2a1a0c; background: var(--amber); border: 0; border-radius: 999px; padding: 0.45em 1.2em; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,0.45); }
#back:hover { background: #ffd98a; }
.hud { position: absolute; z-index: 9; right: 1cqi; top: 1cqi; display: flex; gap: 0.7cqi; opacity: 0.6; transition: opacity 0.2s; }
.hud:hover, .hud:focus-within { opacity: 1; }
.hbtn { width: max(30px, 3.4cqi); height: max(30px, 3.4cqi); display: grid; place-items: center; padding: 0; border-radius: 50%; cursor: pointer;
  color: var(--stitch); background: rgba(16,10,24,0.62); border: 1px solid rgba(232,201,145,0.45); }
.hbtn:hover { color: #2a1a0c; background: var(--amber); border-color: var(--amber); }
.hbtn svg { width: 55%; height: 55%; }
#toast { position: absolute; z-index: 11; left: 50%; top: 1.2cqi; transform: translateX(-50%); background: rgba(246,197,107,0.95); color: #2a1a0c; font-weight: 700; padding: 0.35em 1.1em; border-radius: 999px; font-size: max(13px, 1.3cqi); max-width: 90%; text-align: center; }
/* la frase dell'azione, in basso al centro, come una didascalia */
#sentence { position: absolute; z-index: 2; left: 50%; bottom: 1.4cqi; transform: translateX(-50%); max-width: 62%; pointer-events: none;
  font: 800 max(14px, 1.75cqi) var(--font-ui); color: #ffe2a0; letter-spacing: 0.01em; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 0.3em;
  text-shadow: 0 2px 0 #2a1208, 2px 0 0 #2a1208, -2px 0 0 #2a1208, 0 -2px 0 #2a1208, 0 3px 10px rgba(0,0,0,0.9); }
#sentence:empty { display: none; }

/* in basso a sinistra: lo zaino (una tasca in un anello d'ottone) e gli indicatori */
.hud-bl { position: absolute; z-index: 2; left: 1.2cqi; bottom: 1.2cqi; display: flex; align-items: flex-end; gap: 0.9cqi; }
#zaino-btn { position: relative; width: max(46px, 6.2cqi); height: max(46px, 6.2cqi); padding: 0; border-radius: 50%; cursor: pointer; flex: none;
  background: #6b5a3c url("../assets/images/ui/tasca.jpg") center / cover no-repeat;
  border: max(3px, 0.35cqi) solid var(--brass); box-shadow: 0 0 0 max(2px, 0.18cqi) #2a1608, 0 6px 16px rgba(0,0,0,0.6), inset 0 0 12px rgba(0,0,0,0.55); transition: transform 0.15s, box-shadow 0.15s; }
#zaino-btn:hover, #zaino-btn[aria-expanded="true"] { transform: scale(1.07); box-shadow: 0 0 0 max(2px, 0.18cqi) #2a1608, 0 0 0 max(5px, 0.5cqi) rgba(246,197,107,0.5), 0 6px 16px rgba(0,0,0,0.6), inset 0 0 12px rgba(0,0,0,0.55); }
#zaino-btn .zb-key { position: absolute; left: 50%; bottom: -0.15em; transform: translate(-50%, 50%); font: 800 max(10px, 1cqi) var(--font-sc); letter-spacing: 0.08em; color: #2a1a0c; background: var(--amber); border-radius: 999px; padding: 0.05em 0.6em; white-space: nowrap; box-shadow: 0 2px 4px rgba(0,0,0,0.5); }
#zaino-btn .zb-held { position: absolute; right: -18%; top: -18%; width: 58%; height: 58%; border-radius: 50%; background: rgba(22,13,7,0.92); border: 2px solid var(--amber); display: grid; place-items: center; overflow: hidden; }
#zaino-btn .zb-held img { width: 82%; height: 82%; object-fit: contain; }
#meters { display: flex; gap: 0.6cqi; align-items: flex-end; opacity: 0.92; }
.meter { position: relative; width: max(30px, 3.7cqi); }
.m-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.m-ring { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; --c: var(--amber); background: rgba(16,10,24,0.55); box-shadow: 0 3px 8px rgba(0,0,0,0.5); }
.m-ring img { position: absolute; inset: 12%; width: 76%; height: 76%; border-radius: 50%; object-fit: cover; }
.m-ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--v) * 1%), rgba(10,6,4,0.65) 0);
  -webkit-mask: radial-gradient(closest-side, transparent 78%, #000 80%, #000 97%, transparent 99%);
          mask: radial-gradient(closest-side, transparent 78%, #000 80%, #000 97%, transparent 99%); }
.m-sospetto .m-ring { --c: var(--danger); }
.m-buio .m-ring { --c: var(--moon); }
.m-forze .m-ring { --c: var(--boots); }
.m-meteo .m-ring { --c: var(--snow); }
.m-tempo .m-ring { --c: var(--clock); }
.meter.pulse .m-ring { animation: pulse 0.9s ease 2; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px rgba(246,197,107,0.75), 0 0 18px rgba(246,197,107,0.6); transform: scale(1.18); } }

/* l'oggetto in mano segue il puntatore */
#held { position: absolute; z-index: 10; left: 0; top: 0; width: max(40px, 5.2cqi); height: max(40px, 5.2cqi); pointer-events: none; transform: translate(-9999px, 0); }
#held img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0,0,0,0.8)) drop-shadow(0 0 6px rgba(246,197,107,0.55)); }

/* moneta dei verbi: un anello di bottoni intorno al punto cliccato */
.coin { position: absolute; z-index: 6; left: 0; top: 0; width: 0; height: 0; --r: max(54px, 7.4cqi); --b: max(40px, 5cqi); }
.coin-ring { position: absolute; left: calc(var(--r) * -1.32); top: calc(var(--r) * -1.32); width: calc(var(--r) * 2.64); height: calc(var(--r) * 2.64); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(16,10,6,0.62) 0 48%, rgba(16,10,6,0.35) 62%, transparent 70%); animation: coin-in 0.16s ease-out; }
.coin-name { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); width: calc(var(--r) * 1.15); text-align: center; pointer-events: none;
  font: 800 max(11px, 1.15cqi) var(--font-ui); line-height: 1.1; color: #fff3d6; text-shadow: 0 1px 2px #000, 0 0 6px #000; animation: coin-in 0.16s ease-out; }
.cbtn { position: absolute; left: 0; top: 0; width: var(--b); height: var(--b); margin: calc(var(--b) / -2) 0 0 calc(var(--b) / -2); padding: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #f6deaa; background: radial-gradient(circle at 40% 30%, #7a4d2d, #3d2414 75%);
  border: max(2px, 0.22cqi) solid var(--brass); box-shadow: 0 0 0 max(1px, 0.12cqi) #1d0e05, 0 4px 10px rgba(0,0,0,0.6);
  transform: translate(var(--x), var(--y)); transition: transform 0.16s ease-out, background 0.12s, color 0.12s; animation: cbtn-in 0.18s ease-out backwards; }
.cbtn svg { width: 50%; height: 50%; }
.cbtn .cl { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 2px); white-space: nowrap; font: 800 max(10px, 0.98cqi) var(--font-sc); letter-spacing: 0.05em; color: #ffe8b8;
  text-shadow: 0 1px 0 #1d0e05, 1px 0 0 #1d0e05, -1px 0 0 #1d0e05, 0 -1px 0 #1d0e05, 0 2px 5px #000; pointer-events: none; }
.cbtn.def { border-color: var(--amber); box-shadow: 0 0 0 max(1px, 0.12cqi) #1d0e05, 0 0 0 max(3px, 0.35cqi) rgba(246,197,107,0.45), 0 4px 10px rgba(0,0,0,0.6); }
.cbtn:hover, .cbtn:focus-visible { color: #2a1a0c; background: radial-gradient(circle at 40% 30%, #ffe2a0, #e0a444 80%); outline: none; transform: translate(var(--x), var(--y)) scale(1.12); }
@keyframes coin-in { from { opacity: 0; transform: scale(0.6); } }
.coin-name { animation-name: name-in; }
@keyframes name-in { from { opacity: 0; } }
@keyframes cbtn-in { from { transform: translate(0, 0) scale(0.4); opacity: 0; } }

/* lo zaino: la patta con le tasche sale dal basso, sopra la scena */
.zaino { position: absolute; z-index: 4; left: 50%; bottom: 0; height: 74%; aspect-ratio: 740 / 540; max-width: 96%;
  background: #5d4f37 url("../assets/images/ui/tasche.jpg") center / 100% 100% no-repeat; border-radius: 1.2cqi 1.2cqi 0 0;
  box-shadow: 0 0 0 max(2px, 0.25cqi) #2a1608, 0 0 0 max(4px, 0.5cqi) rgba(201,154,74,0.75), 0 -10px 40px rgba(0,0,0,0.75);
  transform: translate(-50%, 112%); visibility: hidden; transition: transform 0.28s cubic-bezier(.3,.7,.3,1), visibility 0s linear 0.28s; }
.zaino.open { transform: translate(-50%, 0); visibility: visible; transition: transform 0.28s cubic-bezier(.2,.9,.3,1.08); }
.z-head { position: absolute; left: 5%; bottom: calc(100% + max(4px, 0.5cqi)); display: flex; align-items: center; gap: 0.6em; max-width: 80%;
  font: 800 max(12px, 1.35cqi) var(--font-sc); letter-spacing: 0.06em; color: #2a1a0c; background: linear-gradient(180deg, #ffd98a, var(--amber)); padding: 0.3em 1em; border-radius: 0.7em 0.7em 0 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#z-close { position: absolute; right: -1.2%; top: -3%; width: max(32px, 3.6cqi); height: max(32px, 3.6cqi); padding: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  color: #2a1a0c; background: var(--amber); border: 2px solid #2a1608; box-shadow: 0 4px 10px rgba(0,0,0,0.6); font: 800 max(18px, 2cqi) / 1 var(--font-ui); }
#z-close:hover { background: #ffe2a0; }
#inv { position: absolute; left: 2.3%; top: 15.7%; width: 95%; height: 75%; display: grid; gap: 0;
  grid-template-columns: repeat(4, 22.8%); grid-template-rows: 47% 50%; justify-content: space-between; align-content: space-between; }
.slot { position: relative; min-height: 0; display: grid; place-items: center; padding: 30% 8% 8%; border-radius: 10px; cursor: pointer; background: transparent; border: 0; color: #fff7e6; }
.slot:disabled { cursor: default; }
.slot:not(:disabled):hover, .slot:not(:disabled):focus-visible { background: rgba(255,240,200,0.16); outline: none; }
.slot img { max-width: 82%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0,0,0,0.6)); }
.slot-label { font: 700 max(11px, 1.1cqi) var(--font-ui); line-height: 1.1; text-align: center; text-shadow: 0 1px 2px #000, 0 0 4px #000; }
.slot img + .slot-label { position: absolute; left: 4%; right: 4%; bottom: 3%; opacity: 0; transition: opacity 0.12s; }
.slot:hover .slot-label, .slot:focus-visible .slot-label, .slot.on .slot-label { opacity: 1; }
.zaino.coin-on .slot-label { opacity: 0 !important; }
.slot.on { background: rgba(246,197,107,0.25); box-shadow: inset 0 0 0 3px var(--amber); }
.slot.more .slot-label { font-size: max(13px, 1.4cqi); color: #ffe2a0; }

/* le risposte di dialogo: righe di testo in fondo alla scena */
#choices { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; max-height: 52%; overflow: auto; display: grid; gap: 0.15cqi; padding: 2.4cqi 4cqi 1.4cqi;
  background: linear-gradient(180deg, rgba(12,7,14,0) 0, rgba(12,7,14,0.82) 2.2cqi, rgba(12,7,14,0.94) 100%); }
.choice { text-align: left; font: 700 max(14px, 1.7cqi) var(--font-ui); line-height: 1.25; color: #d9c6a2; background: none; border: 0; padding: 0.28em 0.6em 0.28em 1.3em; cursor: pointer; position: relative; border-radius: 0.4em; }
.choice::before { content: "\2726"; position: absolute; left: 0.2em; top: 0.32em; font-size: 0.7em; color: rgba(246,197,107,0.45); }
.choice:hover, .choice:focus-visible { color: #ffe2a0; background: rgba(246,197,107,0.08); outline: none; }
.choice:hover::before, .choice:focus-visible::before { color: var(--amber); }

/* invito a girare il telefono */
.rotate-hint { display: none; }

/* menu: sopra tutto il riquadro */
.menu { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; padding: 2cqi; background: radial-gradient(ellipse at center, rgba(16,10,24,0.55), rgba(10,6,14,0.88)); overflow: auto; }
.menu-panel { width: min(62cqi, 100%); max-height: 100%; overflow: auto; display: grid; gap: max(8px, 0.9cqi); padding: max(14px, 2cqi); border-radius: 1.4cqi;
  background: linear-gradient(180deg, rgba(48,30,18,0.97), rgba(26,16,9,0.97)); box-shadow: 0 0 0 2px #1a0e06, 0 0 0 4px rgba(232,201,145,0.55), 0 24px 50px rgba(0,0,0,0.6); font-size: max(14px, 1.45cqi); }
.menu-panel h3 { margin: 0; font: 400 max(20px, 2.8cqi) var(--font-logo); color: var(--amber); text-shadow: 0 2px 0 #3a1c0a; letter-spacing: 0.01em; }
.menu-panel h4 { margin: 0.5em 0 0; font: 600 max(13px, 1.25cqi) var(--font-sc); letter-spacing: 0.08em; color: var(--stitch); }
.menu-sub { margin: 0; color: var(--muted); }
.menu-note { margin: 0; display: grid; gap: 0.15em; }
.menu-note b { font: 600 0.82em var(--font-sc); letter-spacing: 0.1em; color: var(--amber); }
.menu-note span { color: var(--ink); }
.menu-place { margin: -0.3em 0 0; color: var(--muted); font-style: italic; }
.mbtn { font: 700 1.05em var(--font-ui); color: var(--ink); background: rgba(40,24,12,0.7); border: 1px solid rgba(232,201,145,0.4); border-radius: 0.6em; padding: 0.55em 0.9em; cursor: pointer; text-align: left; }
.mbtn:hover { color: var(--amber); border-color: var(--amber); }
.mbtn.main { color: #2a1a0c; background: var(--amber); border-color: var(--amber); }
.mbtn.main:hover { background: #ffd98a; color: #2a1a0c; }
.mbtn.small { justify-self: start; font-size: 0.95em; padding: 0.35em 1em; }
.mrow { display: flex; flex-wrap: wrap; gap: 0.6em; }
.mrow .mbtn { flex: 1 1 12em; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10em, 1fr)); gap: 0.5em; }
.menu-panel.howto { width: min(88cqi, 100%); }
.howto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17em, 1fr)); gap: 0.75em 1.8em; align-items: start; }
.howto-tabs { gap: 0.5em; }
.howto-tabs .mbtn { flex: 0 1 auto; text-align: center; padding: 0.35em 1.2em; }
.howto-tabs .mbtn.on { color: #2a1a0c; background: var(--amber); border-color: var(--amber); }
.menu-note.con-foto img { display: block; width: 100%; height: auto; margin: 0.25em 0 0.2em; border-radius: 0.5em; border: 1px solid rgba(232,201,145,0.35); box-shadow: 0 2px 8px rgba(0,0,0,0.45); }
.mch { display: grid; gap: 2px; text-align: left; padding: 0.5em 0.7em; border-radius: 0.6em; cursor: pointer; color: var(--ink); background: rgba(40,24,12,0.6); border: 1px solid rgba(232,201,145,0.3); font-size: 0.95em; }
.mch:hover:not(:disabled) { border-color: var(--amber); }
.mch:disabled { opacity: 0.45; cursor: default; }
.mch.done { border-color: rgba(159,211,154,0.6); }
.mch-n { font: 600 0.8em var(--font-sc); letter-spacing: 0.08em; color: var(--muted); }
.mch-t { font: 700 1em var(--font-ui); }
.mtot { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
.mtot dt { font-weight: 700; color: var(--amber); }
.mtot dd { margin: 0; color: var(--ink); }
.opt { display: grid; grid-template-columns: 7em minmax(0, 1fr) 3em; align-items: center; gap: 0.8em; font: 600 1em var(--font-sc); letter-spacing: 0.04em; color: var(--stitch); }
.opt input { width: 100%; accent-color: var(--amber); }
.opt output { color: var(--muted); text-align: right; font-family: var(--font-ui); }
.keys { color: var(--muted); font-size: 0.92em; margin: 0; }

/* menu del titolo: niente pannello, una colonna di voci grandi sopra il disegno */
.menu.on-title { background: none; place-items: end center; padding: 0 0 4.2cqi; }
.menu.on-title .menu-panel { width: auto; background: none; box-shadow: none; padding: 0; gap: 0.25cqi; justify-items: center; font-size: 2.35cqi; overflow: visible; }
.menu.on-title .mbtn { position: relative; background: none; border: 0; padding: 0.08em 0.6em; text-align: center; font: 800 1em var(--font-sc); letter-spacing: 0.06em; color: #ffe6a8;
  text-shadow: 0 0.06em 0 #3a1c0a, 0.05em 0 0 #3a1c0a, -0.05em 0 0 #3a1c0a, 0 -0.05em 0 #3a1c0a, 0 0.12em 0.25em rgba(0,0,0,0.85); transition: transform 0.12s, color 0.12s; }
.menu.on-title .mbtn.main { color: #ffffff; }
.menu.on-title .mbtn:hover, .menu.on-title .mbtn:focus-visible { color: #fff; transform: scale(1.08); outline: none; }
.menu.on-title .mbtn:hover::before, .menu.on-title .mbtn:focus-visible::before { content: "\2726"; position: absolute; left: -0.55em; top: 50%; transform: translateY(-50%); color: var(--amber); font-size: 0.7em; }
.menu.on-title .mbtn:hover::after, .menu.on-title .mbtn:focus-visible::after { content: "\2726"; position: absolute; right: -0.55em; top: 50%; transform: translateY(-50%); color: var(--amber); font-size: 0.7em; }
.menu.on-title .mbtn.small { font-size: 0.7em; color: var(--stitch); }
.menu.on-title .menu-hint { margin: 0.8em 0 0; font: 600 0.5em var(--font-sc); letter-spacing: 0.12em; color: rgba(241,230,207,0.7); text-shadow: 0 1px 3px #000; }

/* telefono in verticale: la scena in alto; frase, risposte e zaino sotto la scena, dove c'e' posto */
@media (max-aspect-ratio: 1/1) {
  .frame { width: 100%; height: 100%; aspect-ratio: auto; justify-content: flex-start; }
  .stage-wrap { overflow: visible; }
  .frame:not(.is-title) .stage-wrap { margin-top: max(12px, 8vh); }
  .menu.on-title { top: 56.25cqi; place-items: start center; padding: 18px 0 24px; background: linear-gradient(180deg, #1d1418, #0b080c); }
  .menu.on-title .menu-panel { font-size: 21px; }
  #sentence { top: calc(100% + 10px); bottom: auto; max-width: 92%; white-space: normal; font-size: 16px; }
  .hud-bl { top: calc(100% + 44px); bottom: auto; left: 12px; }
  #choices { top: 100%; bottom: auto; max-height: none; padding: 14px 12px; background: #120c10; }
  .zaino { top: calc(100% + 132px); bottom: auto; height: auto; width: min(96%, 520px); transform: translate(-50%, 30px); opacity: 0; transition: transform 0.25s, opacity 0.25s, visibility 0s 0.25s; }
  .zaino.open { transform: translate(-50%, 0); opacity: 1; transition: transform 0.25s, opacity 0.25s; }
  .z-head { font-size: 13px; }
  .frame:not(.is-title) .rotate-hint { display: block; position: absolute; left: 0; right: 0; bottom: max(14px, env(safe-area-inset-bottom, 0px)); margin: 0; text-align: center; font: 600 13px var(--font-sc); letter-spacing: 0.08em; color: var(--muted); }
}
button:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .meter.pulse .m-ring { animation: none; } .menu.on-title .mbtn { transition: none; }
  .zaino, .zaino.open, .cbtn, .coin-ring, .coin-name { transition: none; animation: none; }
}
