@font-face { font-family: "Press Start 2P"; src: url(assets/fonts/press-start-2p-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; font-display: swap; } @font-face { font-family: "Press Start 2P"; src: url(assets/fonts/press-start-2p-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; font-display: swap; } :root { --bg: #1b1420; --panel: #2a2030; --ink: #f4efe4; --dim: #b9a9c2; --accent: #ffd27a; --blue: #6fa8ff; /* Carattere a pixel stile anni '80 (Press Start 2P, licenza OFL: assets/fonts/OFL-press-start-2p.txt). */ --font: "Press Start 2P", "Courier New", monospace; } * { box-sizing: border-box; } [hidden] { display: none !important; } html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--font); } /* Il carattere a pixel ha un solo spessore: niente grassetti o corsivi finti, che lo sfocano. */ * { font-synthesis: none; font-variant-ligatures: none; } button, input { font-family: var(--font); } body { line-height: 1.5; } body { display: flex; justify-content: center; overflow-x: hidden; -webkit-tap-highlight-color: transparent; } #app { width: min(100vw, 1280px, calc((100dvh - 250px) * 16 / 9)); min-width: min(100vw, 320px); margin-block: auto; display: flex; flex-direction: column; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); } #stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; user-select: none; touch-action: manipulation; } #scene { width: 100%; height: 100%; display: block; image-rendering: pixelated; cursor: crosshair; } #scene.torch { touch-action: none; } #scene.bocce { touch-action: none; } #scopa-controls, #tressette-controls { background: #242b28; padding: 10px 14px; border-top: 2px solid #897b57; font-size: 11px; line-height: 1.7; } #scopa-status, #tressette-status { color: #f3dcac; min-height: 2em; margin: 0 0 8px; } .card-buttons, .card-hand-many { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; } .card-buttons button, .card-hand-many button { flex: 1 1 18%; overflow-wrap: anywhere; min-width: 0; min-height: 40px; padding: 6px; background: #38453c; color: #fff0cd; border: 2px solid #897b57; font-size: 9px; line-height: 1.5; cursor: pointer; } .card-buttons button { flex-basis: 22%; } .card-buttons button[aria-pressed="true"], .card-hand-many button[aria-pressed="true"] { border-color: #ffdb76; color: #ffdb76; } .card-buttons button:disabled, .card-hand-many button:disabled { opacity: .5; cursor: default; } #scopa-controls summary, #tressette-controls summary { cursor: pointer; padding: 8px 0; } #scopa-controls p, #tressette-controls p { max-width: 76em; } #scopa-next { width: 100%; min-height: 40px; margin-bottom: 8px; background: #38453c; color: #fff0cd; border: 2px solid #897b57; font-size: 9px; cursor: pointer; } .card-hand + .card-buttons { margin-top: 8px; } #poker-controls, #briscola-controls { background: #242b28; padding: 10px 14px; border-top: 2px solid #897b57; font-size: 11px; line-height: 1.7; } #briscola-status { color: #f3dcac; min-height: 2em; margin: 0 0 10px; } .card-hand { display: flex; gap: 8px; } .card-hand button { flex: 1; min-width: 0; min-height: 48px; padding: 8px; background: #38453c; color: #fff0cd; border: 2px solid #897b57; font-size: 10px; line-height: 1.7; cursor: pointer; } .card-hand button[aria-pressed="true"] { border-color: #ffdb76; } .card-hand button:disabled { opacity: .5; cursor: default; } #poker-controls summary, #briscola-controls summary { cursor: pointer; padding: 10px 0; } #poker-controls p, #briscola-controls p { max-width: 76em; } #bocce-controls { background: #242b28; padding: 10px 14px; border-top: 2px solid #897b57; font-size: 11px; } #bocce-status { color: #f3dcac; margin: 0 0 10px; line-height: 1.5; min-height: 1.5em; } .bocce-adjust { display: flex; align-items: center; justify-content: center; gap: 12px; } .bocce-adjust label { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; min-width: 120px; max-width: 280px; flex: 1; } #bocce-power { width: 100%; accent-color: #b9d392; min-height: 32px; margin: 0; } .bocce-adjust button { min-height: 44px; padding: 8px 12px; border: 1px solid #897b57; border-radius: 4px; background: #38453c; color: #f2e1bf; cursor: pointer; font-size: 11px; } /* Il riquadro dello swipe del GP di Fortezza; niente lente né selezione col dito fermo sul telefono. */ #gara-pad { touch-action: none; margin: 0 0 10px; padding: 18px 10px; min-height: 64px; display: flex; align-items: center; justify-content: center; text-align: center; color: #c5c6b6; border: 2px dashed #897b57; border-radius: 10px; background: #1d2320; } #gara-pad.active { border-style: solid; color: #f3dcac; } #stage, #bocce-controls, #gara-pad { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; } #bocce-throw { background: #ead09a; color: #202b25; min-width: 100px; touch-action: none; } /* La presentazione dei piloti del GP: la scena da sola, i comandi arrivano col semaforo. */ #app.presenta #side { display: none; } /* La guida semplice del GP: il Gas si tiene premuto col pollice, più alto. */ #bocce-throw.hold { min-height: 72px; font-size: 14px; } .bocce-adjust button:disabled { opacity: .4; cursor: default; } #bocce-help, #biliardo-help, #basket-help, #pesca-help, #gara-help, #rinquarto-help, #micro-help, #cerbottana-help, #condor-help, #campana-help, #bruciate-help, #flipper-help { margin-top: 9px; color: #c5c6b6; font-size: 10px; } #bocce-help summary, #biliardo-help summary, #basket-help summary, #pesca-help summary, #gara-help summary, #rinquarto-help summary, #micro-help summary, #cerbottana-help, #condor-help summary, #campana-help summary, #bruciate-help summary, #flipper-help summary { cursor: pointer; padding: 6px 0; } #bocce-help p, #biliardo-help p, #basket-help p, #pesca-help p, #gara-help p, #rinquarto-help p, #micro-help p, #cerbottana-help, #condor-help p, #campana-help p, #bruciate-help p, #flipper-help p { max-width: 76em; line-height: 1.7; } @media (max-width: 600px), (orientation: landscape) and (max-height: 520px) { #bocce-controls { padding: 8px; font-size: 10px; overflow-y: auto; min-height: 0; } .bocce-adjust { flex-wrap: wrap; gap: 6px; } .bocce-adjust label { order: -1; flex-basis: 100%; max-width: none; } .bocce-adjust button { flex: 1; font-size: 9px; padding: 6px; } #bocce-throw { flex-basis: 100%; } #bocce-help, #biliardo-help, #basket-help, #pesca-help, #gara-help, #rinquarto-help, #micro-help, #cerbottana-help, #condor-help, #campana-help, #bruciate-help, #flipper-help { font-size: 9px; } } .effects-control { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; font-size: clamp(9px, 1.2vw, 13px); } #effects-volume { width: 130px; accent-color: var(--accent); } /* max-content: vicino al bordo destro il fumetto non si stringe a colonna (lo spazio dopo `left` non conta). */ #speech { position: absolute; left: 0; top: 0; width: max-content; max-width: 46%; transform: translate(-50%, -100%); pointer-events: none; font-size: clamp(10.08px, 1.66vw, 18.72px); font-weight: bold; line-height: 1.2; text-align: center; text-shadow: 2px 0 #000, -2px 0 #000, 0 2px #000, 0 -2px #000, 2px 2px #000, -2px -2px #000; } #speech:empty { display: none; } #speech { z-index: 3; } /* Il Muro del Sanpierino sul telefonino del Barone: la pagina vera (assets/muro) larga 1067 pixel come la home del sito, rimpicciolita sulla scena da main.js (--muro-scale). */ #muro { position: absolute; left: 0; top: 0; width: 1067px; height: 600px; border: 0; z-index: 1; background: #f7e1c0; transform: scale(var(--muro-scale, 0.6)); transform-origin: 0 0; } /* Il primo piano del libro si chiude da qui (o con Esc). */ #closeup-close { position: absolute; right: 10px; bottom: 10px; z-index: 2; font: bold clamp(10px, 1.5vw, 15px) var(--font); padding: .45em 1.2em; border-radius: 6px; border: 0; cursor: pointer; color: var(--bg); background: var(--accent); } /* Al biliardo audio, pausa e uscita hanno spazio proprio: nessun comando copre biglie o punteggio. */ #stage.biliardo { padding-top: 44px; aspect-ratio: auto; background: #17110c; } #stage.biliardo #scene { height: auto; } #stage.biliardo #closeup-close { position: static; display: block; margin: 6px 10px 6px auto; min-height: 32px; } #stage.briscola { padding-top: 44px; aspect-ratio: auto; background: #17110c; } #stage.briscola #scene { height: auto; } #stage.briscola #closeup-close { position: static; display: block; margin: 6px 10px 6px auto; min-height: 36px; } /* Audio: nota per il muto, cursore della musica e cursore delle voci («bla»), in alto a destra sopra la scena (anche sul titolo). */ #sound { position: absolute; top: 6px; right: 6px; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 3px 8px 3px 4px; background: rgba(27, 20, 32, .62); border-radius: 18px; } #mute { width: 30px; height: 30px; padding: 0; font: bold 12.96px var(--font); color: var(--accent); background: none; border: 0; cursor: pointer; } #mute[aria-pressed="true"] { color: var(--dim); text-decoration: line-through; } #volume, #voice-volume { width: clamp(50px, 9vw, 100px); accent-color: var(--accent); cursor: pointer; } .sound-label { margin-left: 4px; font-size: 9px; color: var(--accent); } #sentence { min-height: 1.8em; padding: .25em .6em; text-align: center; color: var(--blue); font-size: clamp(10.8px, 1.44vw, 15.84px); font-weight: bold; background: var(--panel); } #panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 8px; padding: 8px; background: var(--panel); } /* Otto verbi su due righe piene, quattro per riga. */ #verbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; align-content: start; } #verbs button, #inventory button { font: inherit; color: var(--dim); background: #3a2d42; border: 2px solid #4b3a55; border-radius: 4px; padding: .35em .2em; font-size: clamp(9.36px, 1.22vw, 13.68px); font-weight: bold; cursor: pointer; } #verbs button:hover, #inventory button:hover { color: var(--ink); } #verbs button[aria-pressed="true"] { color: var(--bg); background: var(--accent); border-color: var(--accent); } #inventory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(2.4em, auto); gap: 4px; align-content: start; min-height: 5.4em; padding: 4px; background: #231a29; border: 2px solid #4b3a55; border-radius: 4px; /* L'inventario non allunga mai il pannello: è alto quanto i verbi, e se gli oggetti sono tanti si scorre. */ contain: size; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #6a557a transparent; } #inventory:empty::before { content: 'Inventario'; grid-column: 1 / -1; align-self: center; text-align: center; color: var(--dim); opacity: .45; font-size: clamp(9.36px, 1.22vw, 13.68px); font-weight: bold; letter-spacing: .08em; } #inventory button { display: flex; align-items: center; gap: .35em; justify-content: center; color: var(--ink); } #inventory button { min-width: 0; overflow: hidden; } #inventory button span.long { min-width: 0; font-size: .72em; line-height: 1.15; text-align: left; } #inventory button[aria-pressed="true"] { border-color: var(--accent); } #inventory i { width: .8em; height: .8em; border-radius: 50% 50% 50% 0; flex: none; } #inventory img { width: 1.9em; height: 1.9em; flex: none; image-rendering: pixelated; } /* Il carattere sta sull'elenco, non sulle righe: il rientro in em segue il carattere. «1. » nel carattere pixel è largo tre caratteri e mezzo. */ #choices { margin: 0; padding: 10px 14px 12px 3.6em; background: var(--panel); min-height: 6.5em; font-size: clamp(10.8px, 1.44vw, 15.84px); } #choices li { padding: .25em 0; font-weight: bold; color: var(--dim); cursor: pointer; } #choices li:hover, #choices li:focus { color: var(--accent); outline: none; } .overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6em; padding: 16px; text-align: center; background: radial-gradient(circle at 50% 35%, rgba(60, 40, 70, .82), rgba(15, 10, 20, .96)); } .overlay[hidden] { display: none; } /* Titolo e introduzione: le illustrazioni a pixel netti, con una velatura per leggere il testo. */ #title { justify-content: flex-start; padding-top: 6%; image-rendering: pixelated; background: #0d0910; } /* fondo pieno: finché l'illustrazione non arriva, sotto non si vede il gioco */ #title .buttons { margin-top: auto; } #title .dedication { margin-bottom: 2%; text-shadow: 2px 2px 0 #000; } /* La versione (src/version.js), piccola: nell'angolo del titolo e in fondo alla pausa. */ .version { margin: 0; font-size: 9px; color: var(--dim); opacity: .75; } #title .version { position: absolute; right: 8px; bottom: 6px; text-shadow: 1px 1px 0 #000; } #title .subtitle { color: var(--ink); text-shadow: 2px 2px 0 #000; } #intro { justify-content: flex-start; padding-top: 7%; cursor: pointer; image-rendering: pixelated; background: #0d0910; } /* fondo pieno: finché l'illustrazione non arriva, sotto non si vede il gioco */ #intro-text { min-height: 4.2em; max-width: 30em; font-size: clamp(11.52px, 1.87vw, 21.6px); font-weight: bold; line-height: 1.3; color: var(--ink); text-shadow: 2px 0 #000, -2px 0 #000, 0 2px #000, 0 -2px #000; animation: appear .8s ease-out; } #intro .hint { margin-top: auto; margin-bottom: 40px; color: var(--dim); font-size: clamp(8.64px, 1.08vw, 11.52px); text-shadow: 1px 1px 0 #000; } #skip-intro { position: absolute; right: 10px; bottom: 10px; font: bold 10.08px var(--font); padding: .3em .9em; border-radius: 6px; border: 0; color: var(--bg); background: var(--dim); cursor: pointer; } @keyframes appear { from { opacity: 0; transform: translateY(6px); } } /* Cartello d'apertura «Manzolo (Poca) Art Presents»: le parole entrano una alla volta, il «(Poca)» cade dall'alto come un'aggiunta a mano; dopo 4,3 s sfuma (il JavaScript lo toglie a 5 s). */ /* Cartello, titolo, introduzione e crediti a tutto schermo: sul telefono la scena è piccola e non si leggerebbe niente. Il volume resta raggiungibile sopra di loro. */ #splash, #title, #intro, #rione { position: fixed; inset: 0; z-index: 10; } #credits { position: fixed; inset: 0; z-index: 12; } body.full #sound { position: fixed; z-index: 13; top: max(8px, env(safe-area-inset-top)); right: 8px; } /* Le illustrazioni si vedono sempre intere (contain): sul telefono in verticale il titolo sta sopra e i pulsanti sotto; in orizzontale stanno sopra l'immagine. --u è l'1% della larghezza dell'immagine sullo schermo. */ #title, #intro { --u: min(1vw, 1.78vh); } /* Ai lati dell'illustrazione intera, la stessa immagine sfocata e scura: niente bande vuote. */ #title, #intro { isolation: isolate; overflow: hidden; } #title::before, #intro::before { content: ''; position: absolute; inset: -30px; z-index: -1; background: center / cover; filter: blur(18px) brightness(.4) saturate(1.2); } #title::before { background-image: url(assets/scenes/titolo.png); } #intro::before { background-image: url(assets/scenes/panorama-intro.png); } /* Sopra lo sfocato, l'illustrazione intera con la sua velatura. */ #title::after, #intro::after { content: ''; position: absolute; inset: 0; z-index: -1; image-rendering: pixelated; } #title::after { background: linear-gradient(rgba(20, 12, 30, .55), rgba(20, 12, 30, .05) 45%, rgba(20, 12, 30, .7)), url(assets/scenes/titolo.png) center / contain no-repeat; } #intro::after { background: linear-gradient(rgba(20, 12, 30, .6), rgba(20, 12, 30, .1) 55%), url(assets/scenes/panorama-intro.png) center / contain no-repeat; } #title h1 { font-size: max(24px, calc(var(--u) * 7)); } /* Sotto il controllo del volume, che sta in alto a destra. */ #title, #intro { padding-top: max(calc(var(--u) * 5), 48px); padding-bottom: max(calc(var(--u) * 2), 10px); } #splash .splash-name { font-size: clamp(30px, 9vw, 88px); } #splash .splash-art { font-size: clamp(20px, 5vw, 50px); } #splash .splash-present { font-size: clamp(12px, 2.6vw, 26px); } /* Compare solo se il browser aspetta un gesto per il suono (#splash.wait, main.js). */ #splash .splash-hint { display: none; margin-top: 2em; font-size: clamp(9px, 1.6vw, 14px); color: var(--dim); animation: blink 1.6s steps(1) infinite; } #splash.wait .splash-hint { display: block; opacity: 1; } /* Finché si aspetta il tocco le scritte restano ferme all'inizio: partono insieme alla musichetta, e la caduta di «(Poca)» cade sul suo rumorino (Andrea, 26 ottobre). */ #splash.wait .splash-name, #splash.wait .splash-art, #splash.wait .splash-art span, #splash.wait .splash-present { animation-play-state: paused; } @keyframes blink { 50% { opacity: .25; } } #title .subtitle { font-size: max(10px, calc(var(--u) * 1.8)); } #title .dedication { font-size: max(9px, calc(var(--u) * 1.5)); } #intro-text { font-size: max(11px, calc(var(--u) * 2)); } #title .buttons button { font-size: max(11px, calc(var(--u) * 1.9)); } #splash { z-index: 11; gap: .15em; cursor: pointer; background: radial-gradient(circle at 50% 45%, #2a2030, #0d0910 70%); } /* La dissolvenza la avvia main.js insieme al titolo: il CSS arriva prima del codice, e con un orologio suo il cartello sparirebbe prima che il titolo ci sia. */ #splash.out { animation: splash-out .7s ease-in forwards; } #splash p { margin: 0; max-width: none; font-weight: bold; text-shadow: 3px 3px 0 #000; opacity: 0; } #splash .splash-name { font-size: clamp(24.48px, 5.76vw, 63.36px); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); animation: splash-in .9s ease-out .2s forwards; } #splash .splash-art { font-size: clamp(15.84px, 3.24vw, 36px); color: var(--accent); animation: splash-in .9s ease-out 1s forwards; } #splash .splash-art span { display: inline-block; font-size: .7em; font-style: italic; color: #7fe08a; opacity: 0; animation: splash-poca .45s cubic-bezier(.3, 1.6, .6, 1) 1.9s forwards; } #splash .splash-present { font-size: clamp(10.08px, 1.73vw, 18.72px); letter-spacing: .5em; text-transform: uppercase; color: var(--dim); animation: splash-in .9s ease-out 2.6s forwards; } @keyframes splash-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } } @keyframes splash-poca { from { opacity: 0; transform: translateY(-1.5em) rotate(-8deg) scale(1.8); } to { opacity: 1; transform: rotate(-8deg); } } @keyframes splash-out { to { opacity: 0; } } .overlay h1 { margin: 0; font-size: clamp(21.6px, 5.04vw, 54.72px); line-height: 1; letter-spacing: .02em; color: var(--ink); text-shadow: 3px 3px 0 #000; } .overlay h1 span { color: #7fe08a; } .overlay h2 { margin: 0; font-size: clamp(17.28px, 3.6vw, 37.44px); color: var(--accent); } .overlay p { margin: 0; max-width: 34em; font-size: clamp(9.36px, 1.44vw, 14.4px); } .subtitle { color: var(--dim); } .dedication { margin-top: .8em !important; font-style: italic; color: var(--accent); } /* La seconda dedica, allo zio Mario (Andrea, 31 ottobre): sotto quella del Lele, più piccola. */ .dedication-small { margin-top: .3em !important; font-size: .78em; opacity: .85; } .buttons { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: .4em; } .buttons button { font: inherit; font-weight: bold; font-size: clamp(10.8px, 1.58vw, 15.84px); padding: .45em 1.2em; border-radius: 6px; cursor: pointer; color: var(--bg); background: var(--accent); border: 0; } #continue { background: #7fe08a; } .buttons button.secondary { color: var(--ink); background: rgba(42, 32, 48, .85); box-shadow: inset 0 0 0 2px var(--dim); } /* Crediti: sopra titolo e fine (z-index), una voce per ruolo; scorrono se non ci stanno. */ /* Mappa: la pianta del paese a gradini, i posti visti come cartellini, le strade come linee. */ /* In alto a sinistra: Pausa e Mappa. */ #corner { position: absolute; top: 6px; left: 6px; z-index: 2; display: flex; gap: 6px; } #map-button, #pause-button, #notebook-button, #spots-button, #back-button { font: bold clamp(8.64px, 1.15vw, 11.52px) var(--font); padding: .35em .8em; color: var(--accent); background: rgba(27, 20, 32, .62); border: 0; border-radius: 18px; cursor: pointer; } #back-button { color: #1b1420; background: #9fd0ff; } #pause { z-index: 3; background: rgba(15, 10, 20, .9); } /* Il player dei video «Come si gioca»: sopra a tutto, il video grande quanto può. */ #tutorial { position: fixed; inset: 0; z-index: 20; background: rgba(10, 8, 14, .97); padding: 8px; } #tutorial video { max-width: min(100%, 1100px); max-height: calc(100dvh - 9em); background: #000; } .tutorial-open { display: block; margin: 4px 0 8px; min-height: 36px; padding: 6px 12px; background: #4a3a1c; color: #ffe09b; border: 2px solid #c8a24a; font: inherit; cursor: pointer; } .pause-buttons { flex-direction: column; align-items: stretch; min-width: min(70%, 16em); } #pause .hint { color: var(--dim); max-width: 34em; text-align: center; } .load-error { margin: .6em 0 0; padding: .4em .8em; color: #fff; background: #7a1f1f; border-radius: 6px; font-size: max(9px, calc(var(--u) * 1.4)); } /* Il taccuino: un foglio a righe, le tappe fatte barrate e quella di adesso in evidenza. */ #notebook { z-index: 3; background: rgba(15, 10, 20, .94); } #notebook h2 { font-size: clamp(12.96px, 2.16vw, 23.04px); margin: 0; } #notebook-list { width: min(92%, 40em); max-height: 60%; overflow-y: auto; margin: .4em 0; padding: .8em 1em .8em 3em; box-sizing: border-box; text-align: left; font-size: clamp(8px, 1.15vw, 12px); line-height: 1.7; color: #2a1f30; border-radius: 6px; background-color: #f4ecd6; background-image: repeating-linear-gradient(transparent 0 calc(1.7em - 1px), #c9d6e8 calc(1.7em - 1px) 1.7em); background-origin: content-box; background-clip: padding-box; background-attachment: local; } #notebook-list li { margin: 0; } #notebook-list li.done { text-decoration: line-through; opacity: .55; } #notebook-list li.now { font-weight: bold; color: #7a2a1a; } #notebook-help { margin: 0; color: var(--dim); font-size: clamp(7.2px, 1vw, 10px); } #map { z-index: 3; justify-content: flex-start; padding-top: 2.5%; background: rgba(15, 10, 20, .94); } #map h2 { font-size: clamp(12.96px, 2.16vw, 23.04px); margin: 0; } #map-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4em 1.2em; width: 94%; margin: .3em 0; } #map-search { font-size: clamp(8px, 1.1vw, 11px); padding: .5em .7em; width: 16em; max-width: 60%; border-radius: 6px; border: 2px solid #5a4866; background: #231a29; color: var(--ink); } #map-search:focus { outline: none; border-color: var(--accent); } #map-none { margin: .6em 0 0; font-size: clamp(8px, 1.1vw, 11px); color: #b9a9c2; } #map-board button[hidden], .map-band[hidden] { display: none; } /* La mappa a gradini: una fascia per livello del paese, schede con miniatura e nome; si scorre se non ci sta. */ #map-scroll { width: 94%; flex: 1; min-height: 0; margin: .3em 0; overflow: auto; -webkit-overflow-scrolling: touch; border-radius: 8px; background: radial-gradient(circle at 50% 60%, #3a2d42, #231a29); } #map-board { position: relative; display: flex; flex-direction: column; justify-content: space-around; gap: 4px; min-height: 100%; padding: 6px; box-sizing: border-box; } #map-roads { position: absolute; left: 0; top: 0; pointer-events: none; } #map-roads line { stroke: #b9a9c2; stroke-width: 2; stroke-dasharray: 4 4; opacity: .55; } .map-band { position: relative; display: flex; flex-wrap: wrap; justify-content: space-around; align-items: flex-start; gap: 6px 4px; padding-bottom: 4px; border-bottom: 1px solid rgba(185, 169, 194, .12); } .map-band:last-child { border-bottom: 0; } #map-board button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 84px; padding: 3px; font: 7px var(--font); color: var(--ink); background: #2a2031; border: 2px solid #4b3a55; border-radius: 6px; cursor: pointer; line-height: 1.2; } #map-board button img { width: 76px; aspect-ratio: 16 / 9; image-rendering: pixelated; border-radius: 3px; background: #1b1420; } #map-board button span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-align: center; height: 4.2em; line-height: 1.4; } #map-board button:hover, #map-board button:focus-visible { border-color: var(--accent); } #map-board button.here { border-color: #5b8ff0; background: #2f5fb3; cursor: default; } #map-board button.here::before { content: 'sei qui'; position: absolute; top: 1px; left: 50%; transform: translateX(-50%); padding: 1px 4px; font-size: 6px; color: var(--bg); background: var(--accent); border-radius: 3px; white-space: nowrap; } /* I crediti crescono con chi contribuisce: scorre solo l'elenco, dedica e Chiudi restano sempre in vista. */ #credits { justify-content: flex-start; overflow: hidden; padding-top: 4%; background: rgba(15, 10, 20, .96); } #credits .credits-dedication { margin: .2em 0 .5em !important; font-size: clamp(10px, 1.6vw, 17px); } #credits .dedication-small { margin: -.3em 0 .6em !important; font-size: clamp(8px, 1.15vw, 13px); } /* Due colonne: il ruolo a destra della sua colonna, il nome a sinistra della sua, allineati sulla riga. */ #credits dl { flex: 1 1 auto; min-height: 0; overflow-y: auto; align-content: start; padding-right: .4em; margin: .2em 0 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 1em; row-gap: .45em; align-items: baseline; width: min(100%, 44em); scrollbar-width: thin; } #credits dt { text-align: right; color: var(--dim); font-size: clamp(7.2px, 1.01vw, 10.08px); letter-spacing: .12em; text-transform: uppercase; } #credits dd span { display: block; } /* I nomi col ritratto: si toccano e compare il volto a pixel sopra i Ringraziamenti. */ #credits-reel { flex: 0 0 auto; position: relative; height: clamp(56px, 24vh, 200px); width: 100%; margin: .5em 0 .3em; } /* La fila scorre da sola (main.js) ed è anche un normale scorrimento orizzontale: dito, rotella, trascinamento col mouse. */ #credits-reel .track { display: flex; gap: 10px; height: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; touch-action: pan-x; cursor: grab; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); } #credits-reel .track::-webkit-scrollbar { display: none; } #credits-reel .track:active { cursor: grabbing; } #credits-reel img { flex: none; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; image-rendering: pixelated; border-radius: 6px; border: 2px solid #3a2d42; cursor: pointer; user-select: none; -webkit-user-drag: none; } #credits-reel img:hover { border-color: #fff; } #credits-reel .arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; width: 1.8em; height: 2.4em; padding: 0; border: 1px solid var(--accent); border-radius: 6px; background: rgba(15, 10, 20, .8); color: var(--accent); font: inherit; font-size: clamp(12px, 1.8vw, 20px); line-height: 1; cursor: pointer; opacity: .85; } #credits-reel .arrow:hover, #credits-reel .arrow:focus-visible { opacity: 1; color: #fff; } #credits-reel .arrow.prev { left: .3em; } #credits-reel .arrow.next { right: .3em; } #credits-reel img.face { aspect-ratio: 1; border-color: var(--accent); } #credits-reel img.palio { aspect-ratio: auto; border: 0; } /* La fine: il quadro del palio accanto alle parole (sotto, sugli schermi stretti). */ #ending .ending-row { display: flex; align-items: center; justify-content: center; gap: 1.2em; max-width: 92%; min-height: 0; } #ending figure.palio { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .3em; flex: none; } /* Il quadro ha già la sua cornice dorata (tools/incornicia.py): solo l'ombra sotto. */ #ending figure.palio img, #face img.palio { height: min(56vh, 330px); max-height: 50vmin; width: auto; image-rendering: pixelated; filter: drop-shadow(0 8px 14px rgba(0,0,0,.6)); } #face img.palio { height: min(62vmin, 420px); border: 0; border-radius: 0; } #ending figure.palio figcaption { font-size: clamp(6.5px, .85vw, 9px); color: var(--dim); max-width: 22em; } #ending .ending-row > div { max-width: 26em; text-align: center; } @media (max-aspect-ratio: 1/1) { #ending .ending-row { flex-direction: column; } #ending figure.palio img { height: 30vh; } } #credits .credit-face { all: unset; display: block; cursor: pointer; color: var(--accent); text-decoration: underline dotted; text-underline-offset: .25em; } #credits .credit-face:hover, #credits .credit-face:focus-visible { color: #fff; } #face { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8em; background: rgba(15, 10, 20, .92); cursor: pointer; z-index: 1; } #face[hidden] { display: none; } #face img { height: min(60vmin, 384px); width: auto; max-width: 90%; image-rendering: pixelated; border: 3px solid var(--accent); border-radius: 8px; } /* Uno sfondo ingrandito: largo quanto può restando 16:9 dentro lo schermo. */ #face img.scene { height: auto; width: min(92%, 128vh, 1024px); } #face figcaption { color: var(--ink); font-size: clamp(9px, 1.4vw, 14px); text-align: center; padding: 0 1em; } #credits dd { margin: 0; text-align: left; color: var(--ink); font-size: clamp(8px, 1.15vw, 12px); line-height: 1.6; font-weight: bold; } #credits .legal { color: var(--dim); font-size: clamp(7.2px, 0.86vw, 9.36px); opacity: .8; } #rotate { display: none; padding: 1em; text-align: center; color: var(--dim); } @media (orientation: portrait) and (max-width: 700px) { #rotate { display: block; } } /* Telefono in verticale: la scena è bassa e la Pausa non ci sta. Prende tutto lo schermo, così il cursore, i pulsanti, la spiegazione e la versione non finiscono sopra i verbi. */ @media (orientation: portrait) and (max-width: 700px) { #pause { position: fixed; inset: 0; z-index: 10; overflow-y: auto; background: rgba(15, 10, 20, .97); } } /* Schermi stretti: il carattere a pixel è largo, i verbi vanno sopra l'inventario e su due righe da quattro. */ @media (max-width: 600px) { #panel { grid-template-columns: 1fr; gap: 6px; padding: 6px; } #verbs button { font-size: 9px; padding: .7em .1em; } #inventory { height: 7.6em; } } /* Telefono in orizzontale: la scena prende tutta l'altezza, verbi e inventario vanno di lato. */ @media (orientation: landscape) and (max-height: 520px) { #app { width: 100vw; flex-direction: row; } #stage { flex: none; width: min(calc(100dvh * 16 / 9), 68vw); align-self: flex-start; } #stage.biliardo { width: min(calc((100dvh - 90px) * 16 / 9), 68vw); } #app.presenta { justify-content: center; } #app.presenta #stage.biliardo { width: min(calc((100dvh - 44px) * 16 / 9), 100vw); } #stage.briscola { width: min(calc((100dvh - 90px) * 16 / 9), 68vw); } #briscola-controls, #tressette-controls, #scopa-controls, #poker-controls { overflow-y: auto; min-height: 0; padding: 8px; font-size: 9px; } /* Nella colonna stretta accanto al tavolo: carte e segni su due colonne, parole che vanno a capo. */ .card-hand-many button, .card-buttons button { flex-basis: 40%; overflow-wrap: anywhere; } .card-hand { flex-direction: column; gap: 4px; } #side { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--panel); } #sentence { font-size: 10.08px; } /* Il fumetto: più largo e più piccolo, sennò una battuta lunga diventa una colonna alta quanto la scena. */ #speech { max-width: 72%; font-size: 11px; } #panel { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); flex: 1; min-height: 0; gap: 6px; padding: 6px; } #inventory { grid-template-columns: repeat(2, 1fr); min-height: 0; height: auto; } #verbs button, #inventory button, #choices { font-size: 10.08px; } /* La colonna di lato è stretta: verbi su due colonne, così il dito li prende e si leggono; mai più larghi della colonna (sennò il telefono allarga la pagina e taglia tutto a destra). */ #verbs { grid-template-columns: repeat(2, minmax(0, 1fr)); } #verbs button { font-size: clamp(8px, 1.25vw, 10px); padding: .75em 0; letter-spacing: -.04em; } #inventory button { font-size: 8px; } /* Pausa, mappa, crediti e titolo: tutto dentro l'altezza della scena. */ .overlay { gap: .3em; padding: 6px; overflow-y: auto; } .overlay h2 { font-size: 16px; } .buttons { gap: 6px; margin-top: .2em; } .buttons button { font-size: 10px; padding: .45em 1em; } .pause-buttons { min-width: 12em; } /* Mappa: schede più piccole, ne stanno cinque o sei per riga. */ #map-board button { width: 68px; } #map-board button img { width: 60px; } #pause .hint { font-size: 8px; } #choices { min-height: 0; padding: 6px 8px 6px 3.6em; } } #error { position: fixed; inset: auto 16px 16px; padding: 12px; background: #7a1f1f; color: #fff; border-radius: 6px; } /* La scelta del rione: quattro bandiere col colore del rione, sopra il panorama come l'introduzione. */ #rione { padding-top: 48px; background: linear-gradient(rgba(20, 12, 30, .72), rgba(20, 12, 30, .86)), url(assets/scenes/panorama-intro.png) center / cover; image-rendering: pixelated; } #rione h2 { font-size: clamp(14px, 3vw, 28px); text-align: center; } #rione-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: min(92%, 34em); } #rione-buttons button { display: flex; flex-direction: column; align-items: center; gap: .5em; padding: 1em .5em; font: clamp(11px, 1.8vw, 16px) var(--font); color: var(--ink); background: rgba(27, 20, 32, .85); border: 3px solid var(--rione); border-left-width: 14px; border-radius: 8px; cursor: pointer; } #rione-buttons button:hover, #rione-buttons button:focus-visible { background: color-mix(in srgb, var(--rione) 30%, #1b1420); } #rione-buttons .rione-colors { font-size: .7em; color: var(--rione); } #rione .hint { color: var(--dim); font-size: clamp(8px, 1.2vw, 11px); text-align: center; } #rione-buttons button.locked { cursor: not-allowed; opacity: .5; filter: grayscale(.6); } #rione-buttons button.locked .rione-name::before { content: '🔒 '; font-family: sans-serif; font-size: .8em; } #rione-buttons button.locked .rione-colors { color: var(--dim); }