    /* --- Rete a Mare: il campo cambia forma (verticale o orizzontale) e le proporzioni --ar le imposta il gioco (retemare.js) --- */
    #crt-container {
        touch-action: none;
        -webkit-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
    }
    /* Il canvas riempie sempre il contenitore, che ha già le proporzioni giuste */
    #gameCanvas {
        cursor: crosshair;
        touch-action: none;
        -webkit-tap-highlight-color: transparent;
    }

    /* La schermata iniziale lascia intravedere il mare dietro */
    #start-screen { background-color: rgba(4, 14, 22, 0.9); }

    .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Schermata iniziale: partita libera e mare del giorno --- */
#start-screen .regions-grid { grid-template-columns: 1fr; gap: 10px; margin: 16px 0 8px; }
#start-screen .btn-cta-alt { background: transparent; color: var(--ui-accent2); border: 2px solid var(--ui-accent2); box-shadow: none; }
.daily-date { display: block; font-size: 0.72em; opacity: 0.85; letter-spacing: 1px; margin-top: 2px; }
.mode-note { font-size: 0.78rem; line-height: 1.4; color: #9fc4cc; text-align: center; margin: 4px 0 0; }
.mode-note strong { color: var(--ui-rules); }
.bulletin-rec { display: inline-block; margin-top: 2px; color: var(--ui-accent2); letter-spacing: 0.5px; }
.ghost-opt { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 0; font-size: 0.85rem; font-weight: bold; letter-spacing: 1px; color: #e8f5ff; cursor: pointer; min-height: 32px; }
.ghost-opt input { width: 18px; height: 18px; margin: 0; accent-color: #39ff14; cursor: pointer; }

/* Diplomi del mare */
.medals-box { margin: 12px 0 0; border: 2px solid rgba(255, 210, 60, 0.45); background: rgba(255, 255, 255, 0.03); text-align: left; }
.medals-box summary { cursor: pointer; padding: 8px 12px; font-size: 0.9rem; font-weight: bold; letter-spacing: 1px; color: var(--ui-rules); list-style-position: inside; min-height: 20px; }
.medals-box summary:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.medals-box summary span { float: right; color: #e8f5ff; }
.medals-box ul { list-style: none; margin: 0; padding: 0 10px 6px; }
.medals-box .medal { display: flex; flex-direction: column; gap: 1px; padding: 5px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.78rem; line-height: 1.3; color: #6f8a90; }
.medals-box .medal strong { font-size: 0.82rem; letter-spacing: 0.5px; }
.medals-box .medal.on { color: #e8f5ff; }
.medals-box .medal.on strong { color: var(--ui-rules); }

/* Fine partita: novita' sul dispositivo e secondo pulsante */
.final-extra { width: 100%; display: grid; gap: 4px; }
.final-extra.hidden { display: none; }
.game-over-box .final-line { font-size: 0.85rem; line-height: 1.3; letter-spacing: 0.3px; }
#btn-switch-mode {
    box-sizing: border-box; height: auto; min-width: 11em; padding: 8px 18px;
    font-family: inherit; font-size: 0.9rem; font-weight: bold; letter-spacing: 1px; text-transform: uppercase;
    color: var(--ui-accent2); background: transparent; border: 2px solid var(--ui-accent2); border-radius: 0; cursor: pointer; touch-action: manipulation;
    transition: background 0.15s, color 0.15s;
}
#btn-switch-mode:hover { background: var(--ui-accent2); color: #000; }
#btn-switch-mode:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
/* il mare del giorno non ha classifica online: niente modulo e niente elenco */
#ui-layer.daily-mode .leaderboard-container, #ui-layer.daily-mode #save-score-form { display: none; }
