/* =====================================================================
   InsertBit - Layout mobile condiviso (telefoni e tablet, verticale e orizzontale)
   Caricato per ultimo in tutte le pagine di gioco. Le classi sull'<html> le mette assets/js/mobile-fit.js:
     ib-m     schermo stretto o touch          ib-land  ib-m in orizzontale
     ib-flow  campo + barra + comandi in colonna (dimensione del campo calcolata dallo script: --ib-w / --ib-h)
   --app-h = altezza VISIBILE dello schermo (100vh su Chrome Android e' piu' alto e nascondeva i tasti).
   Su desktop (mouse) non cambia nulla: tutte le regole stanno sotto html.ib-m.
   ===================================================================== */

.ib-rotate-hint { display: none; }
.ib-touch-only { display: none; }
html.ib-m .ib-touch-only { display: block; margin: 12px 0 0; font-size: 0.85rem; line-height: 1.4; color: #cfd8dc; text-align: center; }
html.ib-land .ib-rotate-hint[data-for="land"] { display: block; margin: 12px 0 0; font-size: 0.8rem; line-height: 1.35; color: #8fe9ff; text-align: center; }

/* ---------- Tutti i giochi su schermo mobile ---------- */
html.ib-m, html.ib-m body { overscroll-behavior-y: contain; -webkit-tap-highlight-color: transparent; }
html.ib-m .game-wrapper { height: var(--app-h, 100dvh); }

/* Scanlines CRT su tutto lo schermo (anche su schermata iniziale, finale e comandi) */
html.ib-m .crt-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 60; }

/* Schermata iniziale e finale: a schermo intero, non chiuse dentro il campo (che in verticale e' basso) */
html.ib-m #start-screen,
html.ib-m #ui-layer {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: auto; height: auto;
    z-index: 30;
    padding: calc(env(safe-area-inset-top, 0px) + 58px) 14px calc(env(safe-area-inset-bottom, 0px) + 14px);
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-user-select: none; user-select: none;
}
html.ib-m #start-screen .start-box { margin: auto; }
html.ib-m #start-screen input, html.ib-m #ui-layer input { -webkit-user-select: text; user-select: text; }
html.ib-m:not(.ib-land) .ib-rotate-hint:not([data-for="land"]) {
    display: block; margin: 12px 0 0; font-size: 0.8rem; line-height: 1.35; color: #8fe9ff; text-align: center;
}
/* il campo di gioco non fa scorrere la pagina mentre si gioca */
html.ib-m #crt-container { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* Barra pulsanti: sopra il campo, mai sovrapposta */
html.ib-m #utility-bar button { min-width: 36px; height: 36px; }

/* ---------- Giochi "flow": barra, campo, comandi in colonna ---------- */
html.ib-m.ib-flow .game-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: calc(env(safe-area-inset-top, 0px) + 4px) 0 max(6px, env(safe-area-inset-bottom, 0px));
    overflow: hidden;
    touch-action: pan-y;
    -webkit-user-select: none; user-select: none;
    -webkit-touch-callout: none;
}
html.ib-m.ib-flow #utility-bar {
    position: static;
    order: -1;
    flex: none;
    margin: 0 auto;
    max-width: calc(100vw - 12px);
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    padding: 3px;
}
html.ib-m.ib-flow #crt-container {
    flex: none;
    width: var(--ib-w, 100%);
    height: var(--ib-h, auto);
    max-width: none;
    max-height: none;
    margin: auto 0;
    aspect-ratio: auto;
}
html.ib-m.ib-flow #gameCanvas {
    position: absolute;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}

/* Comandi touch: in verticale stanno sotto il campo, in fondo allo schermo, SEMPRE interi */
html.ib-m.ib-flow .arcade-mobile-controls,
html.ib-m.ib-flow .touch-ui,
html.ib-m.ib-flow #mobile-pinball-controls {
    position: relative;
    inset: auto;
    display: flex;
    flex: none;
    width: 100%;
    max-width: 480px;
    height: auto;
    margin: 0 auto;
    padding: 4px 14px;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    z-index: 25;
    visibility: visible;
    -webkit-user-select: none; user-select: none;
    -webkit-touch-callout: none;
    touch-action: none;
}
/* gruppi sinistra/destra dei comandi: in verticale sono trasparenti (restano nella riga) */
html.ib-m.ib-flow .mc-side { display: contents; }
html.ib-m.ib-flow .mc-side.mc-stack { display: flex; flex-direction: column; justify-content: center; gap: 8px; }

/* Pulsanti piu' grandi per i pollici (La Trattoria: solo sinistra/destra) */
html.ib-m.ib-flow .touch-ui { justify-content: space-between; gap: 16px; }
html.ib-m.ib-flow .touch-ui .btn-dir {
    flex: 1 1 0;
    max-width: 200px;
    height: 88px;
    font-size: 40px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #fff;
    background: #1a1a2e;
    border: 3px solid #39ff14;
    border-radius: 14px;
    touch-action: none;
}
html.ib-m.ib-flow .touch-ui .btn-dir:active { background: #39ff14; color: #000; }

/* Autostrada: sinistra / turbo / destra, alti e comodi */
html.ib-m.ib-flow .arcade-mobile-controls .btn-steer,
html.ib-m.ib-flow .arcade-mobile-controls .btn-turbo { min-height: 84px; max-width: none; }

/* Relitti / Blocchi: croce direzionale piu' grande */
html.ib-m.ib-flow .arcade-mobile-controls .d-pad-grid {
    grid-template-columns: repeat(3, 58px);
    grid-template-rows: repeat(2, 58px);
    gap: 6px;
}
html.ib-m.ib-flow .arcade-mobile-controls .d-btn { width: 58px; height: 58px; padding: 0; font-size: 24px; touch-action: none; }
html.ib-m.ib-flow .arcade-mobile-controls .d-up { grid-column: 2; grid-row: 1; }
html.ib-m.ib-flow .arcade-mobile-controls .d-left { grid-column: 1; grid-row: 2; }
html.ib-m.ib-flow .arcade-mobile-controls .d-down { grid-column: 2; grid-row: 2; }
html.ib-m.ib-flow .arcade-mobile-controls .d-right { grid-column: 3; grid-row: 2; }
html.ib-m.ib-flow .arcade-mobile-controls .btn-reset-touch { padding: 10px 12px; font-size: 15px; }
html.ib-m.ib-flow .arcade-mobile-controls .btn-undo-touch { margin-left: 0; }

/* Comandi dei giochi con crocetta + azioni: sempre visibili su schermo mobile (anche se il gioco non ha ancora visto un tocco) */
html.ib-m.ib-flow .arcade-mobile-controls { display: flex; }

/* Flipper del Pinball: zone grandi sotto il tavolo */
html.ib-m.ib-flow #mobile-pinball-controls { display: block; height: 124px; max-width: 600px; margin: 0 auto; padding: 0; }
html.ib-m #mobile-pinball-controls .touch-zone { font-size: 15px; line-height: 1.2; text-align: center; }
html.ib-m #mobile-pinball-controls #touch-plunger { font-size: 12px; letter-spacing: 0; }

/* ---------- Telefono in orizzontale ---------- */
html.ib-land.ib-flow .game-wrapper { gap: 2px; padding-top: calc(env(safe-area-inset-top, 0px) + 2px); padding-bottom: 2px; }
html.ib-land.ib-flow #utility-bar { padding: 2px 4px; gap: 3px; }
html.ib-land.ib-flow #utility-bar button { height: 34px; min-width: 38px; font-size: 1.05rem; }
html.ib-land #start-screen, html.ib-land #ui-layer {
    padding-top: calc(env(safe-area-inset-top, 0px) + 46px);
    padding-left: calc(env(safe-area-inset-left, 0px) + 14px);
    padding-right: calc(env(safe-area-inset-right, 0px) + 14px);
}
html.ib-land #start-screen .start-box { padding: 12px 14px; }

/* I comandi passano ai due lati dello schermo, sopra il nero accanto al campo: pollice sinistro e destro */
html.ib-land.ib-flow .arcade-mobile-controls,
html.ib-land.ib-flow .touch-ui {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    width: auto;
    max-width: none;
    padding: 0 calc(env(safe-area-inset-right, 0px) + 12px) max(8px, env(safe-area-inset-bottom, 0px)) calc(env(safe-area-inset-left, 0px) + 12px);
    align-items: flex-end;
    justify-content: space-between;
    pointer-events: none;
}
html.ib-land.ib-flow .arcade-mobile-controls > *,
html.ib-land.ib-flow .touch-ui > * { pointer-events: auto; }
html.ib-land.ib-flow .mc-side,
html.ib-land.ib-flow .arcade-mobile-controls .mc-side { display: flex; flex-direction: row; align-items: flex-end; gap: 10px; }
html.ib-land.ib-flow .mc-side.mc-stack { flex-direction: column; align-items: flex-end; }
html.ib-land.ib-flow .touch-ui .btn-dir { flex: none; width: 96px; height: 76px; }
html.ib-land.ib-flow .arcade-mobile-controls .btn-steer,
html.ib-land.ib-flow .arcade-mobile-controls .btn-turbo { min-height: 72px; min-width: 96px; flex: none; }
html.ib-land.ib-flow .arcade-mobile-controls .btn-turbo { min-width: 120px; }

/* Pinball in orizzontale: i flipper sono le due meta' dello schermo in basso */
html.ib-land.ib-flow #mobile-pinball-controls {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    width: auto; max-width: none;
    height: 42%;
    padding: 0;
    z-index: 25;
}
html.ib-land.ib-flow #mobile-pinball-controls .touch-zone { border-style: dashed; border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.02); color: rgba(255, 255, 255, 0.3); }
html.ib-land.ib-flow #mobile-pinball-controls #touch-plunger { opacity: 0.85; }

/* Schermi molto bassi: sigla e classifica piu' compatte */
@media (max-height: 420px) {
    html.ib-m .start-box h1, html.ib-m .start-box h2 { font-size: 1.2rem; }
    html.ib-m .start-box .mission { margin-bottom: 8px; font-size: 0.95rem; }
    html.ib-m .btn-cta { min-height: 46px; padding: 8px 12px; }
}

/* Telefoni molto stretti (320px): croci e pulsanti un po' piu' compatti, restano interi */
@media (max-width: 350px) {
    html.ib-m.ib-flow .arcade-mobile-controls { padding: 4px 6px; gap: 6px; }
    html.ib-m.ib-flow .mc-dpad { grid-template-columns: repeat(3, 46px); grid-template-rows: repeat(2, 50px); gap: 4px; }
    html.ib-m.ib-flow .mc-actions { grid-template-columns: repeat(2, 52px); grid-template-rows: repeat(2, 50px); gap: 4px; }
    html.ib-m.ib-flow .mc-actions:has(.mc-place) { grid-template-columns: 104px; }
    html.ib-m.ib-flow .mc-move .mc-btn { width: 66px; }
    html.ib-m.ib-flow .mc-btn.mc-fire { width: 104px; }
    html.ib-m.ib-flow .arcade-mobile-controls .d-pad-grid { grid-template-columns: repeat(3, 52px); grid-template-rows: repeat(2, 52px); }
    html.ib-m.ib-flow .arcade-mobile-controls .d-btn { width: 52px; height: 52px; }
}

/* Avviso "gira il telefono" (giochi con testi piccoli, solo prima della partita) */
#ib-rotate {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1000;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    padding: 24px; text-align: center; background: #0a0a0a; color: #fff;
    font-family: 'Courier New', Courier, monospace;
}
#ib-rotate .ib-rot-icon { font-size: 64px; line-height: 1; animation: ibRotPhone 2.4s ease-in-out infinite; }
#ib-rotate .ib-rot-title { margin: 0; font-size: 1.5rem; font-weight: bold; letter-spacing: 3px; color: #39ff14; text-shadow: 0 0 12px #39ff14; }
#ib-rotate .ib-rot-text { margin: 0; max-width: 300px; font-size: 0.95rem; line-height: 1.4; color: #ddd; }
#ib-rotate .ib-rot-skip { width: auto; min-width: 220px; margin-top: 8px; font-size: 0.95rem; background: #000; color: #fff; }
@keyframes ibRotPhone { 0%, 25% { transform: rotate(0deg); } 60%, 100% { transform: rotate(-90deg); } }
@media (prefers-reduced-motion: reduce) { #ib-rotate .ib-rot-icon { animation: none; transform: rotate(-90deg); } }

/* Giochi a solo tocco (data-touchmode="drag" su <html>): niente tasti a schermo, il campo prende tutto lo spazio.
   Il gioco gestisce il trascinamento su tutta l'area; la pagina non scorre mentre si gioca. */
html[data-touchmode="drag"].ib-m .touch-ui,
html[data-touchmode="drag"].ib-m .arcade-mobile-controls,
html[data-touchmode="tap"].ib-m .touch-ui,
html[data-touchmode="tap"].ib-m .arcade-mobile-controls { display: none !important; }
html[data-touchmode="drag"].ib-m .game-wrapper,
html[data-touchmode="tap"].ib-m .game-wrapper { touch-action: none; }
.ib-gesture-hint {
    position: fixed; left: 0; right: 0; bottom: 26%; z-index: 28;
    pointer-events: none; text-align: center; color: #fff;
    font-family: 'Courier New', Courier, monospace;
}
.ib-gesture-hint .gh-track { display: flex; justify-content: center; align-items: center; gap: 56px; font-size: 30px; color: #39ff14; text-shadow: 0 0 10px #39ff14, 0 0 3px #000; }
.ib-gesture-hint .gh-finger { font-size: 46px; color: #fff; text-shadow: 0 0 8px #000; animation: ibSwipeHint 1.6s ease-in-out infinite; }
.ib-gesture-hint p { display: inline-block; max-width: 86%; margin: 10px 0 0; padding: 6px 12px; font-size: 0.9rem; background: rgba(0, 0, 0, 0.65); border: 1px solid #39ff14; }
@keyframes ibSwipeHint { 0%, 100% { transform: translateX(-44px); } 50% { transform: translateX(44px); } }
@media (prefers-reduced-motion: reduce) { .ib-gesture-hint .gh-finger { animation: none; } }

/* ---------- Testo sotto il gioco (#game-info): pulsante ▼ nella barra + link "Torna al gioco" ---------- */
.ib-info-btn, .game-info-play { display: none; }
html.ib-m #utility-bar .ib-info-btn {
    display: flex; align-items: center; justify-content: center;
    box-sizing: border-box; min-width: 34px; height: 36px; padding: 0 5px;
    background: #222; border: 1px solid #39ff14; border-radius: 5px;
    color: #39ff14; font-size: 1rem; line-height: 1; text-decoration: none;
    text-shadow: 0 0 6px #39ff14;
}
/* Autostrada ha 8 pulsanti (con radio e info): su 360 px devono stare su una sola riga */
html.ib-m #utility-bar #btn-radio { font-size: 0.68rem; padding: 0 4px; }
html.ib-m #utility-bar .ib-info-btn:active { background: #39ff14; color: #000; text-shadow: none; }
html.ib-land.ib-flow #utility-bar .ib-info-btn { height: 34px; min-width: 38px; }
html.ib-m .game-info-play {
    display: flex; align-items: center; justify-content: center;
    position: sticky; top: 0; z-index: 5;
    margin: -36px -16px 18px; padding: 8px 16px; min-height: 44px; box-sizing: border-box;
    background: #0a0a0a; border-bottom: 2px solid #39ff14;
    color: #39ff14; font-weight: bold; letter-spacing: 1px; text-decoration: none; text-transform: uppercase;
}
html.ib-m .game-info-play:active { background: #39ff14; color: #000; }
/* mentre si legge il testo le schermate a tutto schermo (inizio, fine, pausa, avviso "gira il telefono") non lo coprono */
html.ib-reading #start-screen, html.ib-reading #ui-layer, html.ib-reading #pause-overlay, html.ib-reading #ib-rotate { visibility: hidden; }

/* Barra dei pulsanti a lato in orizzontale (solo giochi con data-sidebar="land" su <html>, es. Relitti e Barriere):
   il campo prende tutta l'altezza dello schermo. Il padding del contenitore riserva la fascia della barra (lo script misura da li'). */
html.ib-land.ib-flow[data-sidebar="land"] .game-wrapper {
    padding: calc(env(safe-area-inset-top, 0px) + 2px) calc(env(safe-area-inset-right, 0px) + 4px) 2px calc(env(safe-area-inset-left, 0px) + 50px);
}
html.ib-land.ib-flow[data-sidebar="land"] #utility-bar {
    position: absolute; order: 0;
    top: 50%; left: calc(env(safe-area-inset-left, 0px) + 3px); right: auto; bottom: auto;
    transform: translateY(-50%);
    margin: 0; max-width: none;
    flex-direction: column; flex-wrap: nowrap; justify-content: center;
    gap: 3px; padding: 3px;
}
html.ib-land.ib-flow[data-sidebar="land"] #utility-bar button,
html.ib-land.ib-flow[data-sidebar="land"] #utility-bar .ib-info-btn { width: 34px; min-width: 34px; height: 34px; padding: 0; font-size: 1rem; }
/* il pulsante radio ha un'etichetta ("📻 TUNE") piu' larga del pulsante: in barra laterale resta solo l'icona */
html.ib-land.ib-flow[data-sidebar="land"] #utility-bar #btn-radio { font-size: 0; padding: 0; }
html.ib-land.ib-flow[data-sidebar="land"] #utility-bar #btn-radio::before { content: "\1F4FB"; font-size: 1rem; }
/* schermata iniziale e finale: la barra e' sul lato, quindi niente fascia riservata in alto e il testo parte dopo la barra */
html.ib-land.ib-flow[data-sidebar="land"] #start-screen,
html.ib-land.ib-flow[data-sidebar="land"] #ui-layer {
    padding-top: calc(env(safe-area-inset-top, 0px) + 8px);
    padding-left: calc(env(safe-area-inset-left, 0px) + 52px);
}
@media (max-height: 285px) {
    html.ib-land.ib-flow[data-sidebar="land"] .game-wrapper { padding-left: calc(env(safe-area-inset-left, 0px) + 44px); }
    html.ib-land.ib-flow[data-sidebar="land"] #utility-bar { gap: 2px; padding: 2px; }
    html.ib-land.ib-flow[data-sidebar="land"] #utility-bar button,
    html.ib-land.ib-flow[data-sidebar="land"] #utility-bar .ib-info-btn { width: 30px; min-width: 30px; height: 30px; font-size: .9rem; }
}

/* Joystick flottante (Relitti e Barriere): anello dove si appoggia il dito + pallino che segue il dito */
.ib-joy { position: fixed; left: 0; top: 0; z-index: 29; width: 92px; height: 92px; display: none; pointer-events: none;
    border: 2px solid rgba(0, 255, 255, 0.35); border-radius: 50%; background: rgba(0, 255, 255, 0.06); will-change: transform; }
.ib-joy-knob { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
    background: rgba(0, 255, 255, 0.4); border: 2px solid rgba(255, 255, 255, 0.6); box-shadow: 0 0 10px rgba(0, 255, 255, 0.5); will-change: transform; }
/* suggerimento "trascina in tutte le direzioni": dito al centro, frecce intorno */
.ib-hint-joy .gh-cross { display: grid; grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(3, 36px);
    justify-content: center; align-items: center; justify-items: center; font-size: 26px; color: #00ffff; text-shadow: 0 0 10px #00ffff, 0 0 3px #000; }
.ib-hint-joy .gh-u { grid-column: 2; grid-row: 1; }
.ib-hint-joy .gh-l { grid-column: 1; grid-row: 2; }
.ib-hint-joy .gh-r { grid-column: 3; grid-row: 2; }
.ib-hint-joy .gh-d { grid-column: 2; grid-row: 3; }
.ib-hint-joy .gh-finger { grid-column: 2; grid-row: 2; font-size: 40px; color: #fff; text-shadow: 0 0 8px #000; animation: ibJoyHint 2.4s ease-in-out infinite; }
.ib-hint-joy p { border-color: #00ffff; }
/* in orizzontale lo schermo e' basso: suggerimento piu' compatto */
html.ib-land .ib-hint-joy { bottom: 8%; }
html.ib-land .ib-hint-joy .gh-cross { grid-template-columns: repeat(3, 40px); grid-template-rows: repeat(3, 26px); font-size: 20px; }
html.ib-land .ib-hint-joy .gh-finger { font-size: 30px; }
html.ib-land .ib-hint-joy p { max-width: 70%; margin-top: 4px; padding: 4px 10px; font-size: 0.8rem; }
/* suggerimento "tocca a sinistra / a destra" (Autostrada): due etichette che si accendono a turno */
.ib-hint-tap { bottom: 30%; }
.ib-hint-tap .gh-lanes { display: flex; justify-content: space-between; padding: 0 6%; font-size: 20px; font-weight: bold; color: #00ffff; text-shadow: 0 0 10px #00ffff, 0 0 3px #000; }
.ib-hint-tap .gh-l { animation: ibTapL 1.6s ease-in-out infinite; }
.ib-hint-tap .gh-r { animation: ibTapR 1.6s ease-in-out infinite; }
.ib-hint-tap p { border-color: #00ffff; }
html.ib-land .ib-hint-tap { bottom: auto; top: 16%; }
html.ib-land .ib-hint-tap .gh-lanes { font-size: 16px; padding: 0 22%; }
html.ib-land .ib-hint-tap p { max-width: 60%; margin-top: 4px; padding: 4px 10px; font-size: 0.8rem; }
@keyframes ibTapL { 0%, 45% { opacity: 1; transform: scale(1.12); } 55%, 100% { opacity: .35; transform: scale(1); } }
@keyframes ibTapR { 0%, 45% { opacity: .35; transform: scale(1); } 55%, 100% { opacity: 1; transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .ib-hint-tap .gh-l, .ib-hint-tap .gh-r { animation: none; } }
@keyframes ibJoyHint {
    0%, 100% { transform: translate(0, 0); }
    15% { transform: translate(0, -22px); } 30% { transform: translate(0, 0); }
    45% { transform: translate(24px, 0); } 55% { transform: translate(0, 0); }
    70% { transform: translate(0, 22px); } 80% { transform: translate(0, 0); }
    90% { transform: translate(-24px, 0); }
}
@media (prefers-reduced-motion: reduce) { .ib-hint-joy .gh-finger { animation: none; } }

/* Monologhi di Celluloide, i quiz con motore condiviso (Torre di Babele, Capsula del Tempo, Floppy & Dial-Up) e Campionato Geo: i generi/le arene/le regioni stanno subito sotto il titolo (le regole dopo) e i bottoni restano dentro il riquadro */
html.ib-m body[data-game="monologhi_celluloide"] .start-box.region-selection-box,
html.ib-m body[data-game="torre_babele"] .start-box.region-selection-box,
html.ib-m body[data-game="capsula_tempo"] .start-box.region-selection-box,
html.ib-m body[data-game="floppy_dialup"] .start-box.region-selection-box,
html.ib-m body[data-game="campionato_geo"] .start-box.region-selection-box { display: flex; flex-direction: column; width: 100%; box-sizing: border-box; }
html.ib-m body[data-game="monologhi_celluloide"] .start-box .regions-grid,
html.ib-m body[data-game="torre_babele"] .start-box .regions-grid,
html.ib-m body[data-game="capsula_tempo"] .start-box .regions-grid,
html.ib-m body[data-game="floppy_dialup"] .start-box .regions-grid,
html.ib-m body[data-game="campionato_geo"] .start-box .regions-grid { order: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0 6px; }
html.ib-m body[data-game="monologhi_celluloide"] .start-box .game-instructions,
html.ib-m body[data-game="torre_babele"] .start-box .game-instructions,
html.ib-m body[data-game="capsula_tempo"] .start-box .game-instructions,
html.ib-m body[data-game="floppy_dialup"] .start-box .game-instructions,
html.ib-m body[data-game="campionato_geo"] .start-box .game-instructions { order: 2; align-self: stretch; margin: 12px 0 0; padding: 12px 14px; }
html.ib-m body[data-game="monologhi_celluloide"] .region-btn,
html.ib-m body[data-game="torre_babele"] .region-btn,
html.ib-m body[data-game="capsula_tempo"] .region-btn,
html.ib-m body[data-game="floppy_dialup"] .region-btn,
html.ib-m body[data-game="campionato_geo"] .region-btn { justify-content: center; text-align: center; min-height: 54px; padding: 8px 6px; font-size: 0.82rem; line-height: 1.25; overflow-wrap: anywhere; }
html.ib-land body[data-game="monologhi_celluloide"] .region-btn,
html.ib-land body[data-game="torre_babele"] .region-btn,
html.ib-land body[data-game="capsula_tempo"] .region-btn,
html.ib-land body[data-game="floppy_dialup"] .region-btn,
html.ib-land body[data-game="campionato_geo"] .region-btn { min-height: 44px; padding: 6px; }
/* Campionato Geo: 21 bottoni, titolo e regole piu' compatti cosi' se ne vedono di piu' senza scorrere */
html.ib-m body[data-game="campionato_geo"] .start-box h2 { font-size: 1.15rem; margin-bottom: 6px; }
html.ib-m body[data-game="campionato_geo"] .start-box h3 { font-size: 0.9rem; margin-bottom: 4px; }
html.ib-m body[data-game="campionato_geo"] .start-box .mission { font-size: 0.85rem; margin-bottom: 2px; }
html.ib-m body[data-game="campionato_geo"] .region-btn { min-height: 48px; padding: 6px; }
html.ib-land body[data-game="campionato_geo"] .region-btn { min-height: 44px; }
