/* Splash screen, game HUD, and overlay styles — used only on index.html.
   Kept out of the shared tailwind.css bundle (which every page downloads)
   since none of this applies to contacto/nosotros/servicios/accesibilidad. */

/* font-family/font-weight and h1-h6 weights already come from the shared
   body/h1-h6 rules in tailwind.src.css — only the index-only overrides live here */
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    overscroll-behavior: none;
    overflow: hidden; /* iOS Safari does not support overscroll-behavior */
}
#game-container {
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}
/* Prevent Safari from swallowing touch events on the game canvas */
#game-container canvas {
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}
/* Scoped under .splash-page (set on index.html's <body>) so these index-only nav
   colors reliably win over the shared .nav-link rule in tailwind.css regardless
   of <link> load order — index.html's nav sits on a transparent/dark background,
   unlike the white nav bar every other page uses. */
.splash-page .nav-link { transition: all 0.2s ease; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
.splash-page .nav-link:hover { color: #F2E3B3; text-shadow: 0 1px 8px rgba(0,0,0,0.6); }
.splash-page .nav-link.active {
    color: #F2E3B3;
    border-bottom: 2px solid #F2E3B3;
    padding-bottom: 2px;
}

/* ── Splash screen ── */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
    padding-top: 72px;
    box-sizing: border-box;
    background:
        /* Warm sandy shore glow at bottom */
        radial-gradient(ellipse 140% 45% at 50% 108%, rgba(242, 227, 179, 0.55) 0%, transparent 62%),
        /* Main depth gradient: deep navy → ocean blue → lagoon teal → warm sand shore */
        linear-gradient(
            180deg,
            #0d1040 0%,
            #1a2070 18%,
            #353A8C 38%,
            #2a5a9a 52%,
            #2FAFC2 68%,
            #F2E3B3 100%
        );
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

/* ── Splash stars ── */
#splash-stars {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%;
    height: 58%;          /* covers only the dark blue zone */
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    /* fade stars out before the lighter gradient colours begin */
    -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
    mask-image:         linear-gradient(to bottom, black 55%, transparent 100%);
}
#splash-stars span {
    position: absolute;
    border-radius: 50%;
    background: white;
}
@keyframes starTwinkle {
    0%   { opacity: 0.15; }
    50%  { opacity: 1;    }
    100% { opacity: 0.2;  }
}

/* Steps */
#splash-step-1,
#splash-step-2 {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px;
    box-sizing: border-box;
}
#splash-step-2 { display: none; }

/* ── Welcome header ── */
@keyframes headerFade {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.splash-header {
    text-align: center;
    margin-bottom: 28px;
    animation: headerFade 0.9s ease-out forwards;
}
.splash-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #F2E3B3;
    margin: 0 0 16px;
    opacity: 0.8;
}
.splash-header h2 {
    font-size: clamp(42px, 8vw, 76px);
    font-weight: 800;
    color: white;
    margin: 0;
    letter-spacing: -0.025em;
    line-height: 1.0;
    text-shadow: 0 2px 24px rgba(0,0,0,0.55), 0 8px 48px rgba(13,16,64,0.5);
}
.splash-divider {
    width: 44px;
    height: 2px;
    background: #F2E3B3;
    margin: 18px auto;
    border-radius: 2px;
    opacity: 0.6;
}
.splash-header p {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    margin: 0;
    line-height: 1.65;
    max-width: 460px;
}

/* ── Choice cards container ── */
.choice-cards {
    display: flex;
    gap: 18px;
    align-items: stretch;
    max-width: 880px;
    width: 100%;
}

/* ── Base card ── */
.choice-card {
    border-radius: 22px;
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* ── Game card (hero) ── */
.choice-card--game {
    flex: 1.65;
    background: rgba(53, 58, 140, 0.92);
    border: 2px solid #F2E3B3;
    box-shadow: 0 0 32px rgba(242,227,179,0.25), 0 8px 32px rgba(0,0,0,0.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.choice-card--game::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(242,227,179,0.08) 0%, transparent 55%);
    pointer-events: none;
}
.choice-card--game:hover {
    transform: translateY(-7px);
    box-shadow: 0 0 60px rgba(242,227,179,0.45), 0 18px 44px rgba(0,0,0,0.55);
}

/* Recommended badge */
.card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #F2E3B3;
    color: #353A8C;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

/* Island hero */
.card-island-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 120px;
    margin-bottom: 14px;
}
.card-island {
    width: 108px;
    height: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.4));
    animation: islandFloat 4s ease-in-out infinite;
}
@keyframes islandFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

/* Ripples inside game card */
.card-ripple {
    position: absolute;
    border: 1.5px solid rgba(255,255,255,0.22);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    animation: ripple 3s ease-out infinite;
}
.card-ripple:nth-child(1) {
    width: 140px; height: 50px;
    margin-left: -70px; margin-top: -25px;
    animation-delay: 0s;
}
.card-ripple:nth-child(2) {
    width: 185px; height: 66px;
    margin-left: -92.5px; margin-top: -33px;
    animation-delay: 1.3s;
}
@keyframes ripple {
    0%   { opacity: 0.55; transform: scale(1); }
    100% { opacity: 0;    transform: scale(1.35); }
}

/* Card text */
.card-title {
    font-size: 17px;
    font-weight: 700;
    color: white;
    margin: 0 0 8px;
}
.choice-card--game .card-title {
    color: #F2E3B3;
    font-size: 20px;
}
.card-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    line-height: 1.55;
    margin: 0 0 14px;
}

/* Mini ship previews */
.mini-ships {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 14px;
}
.mini-ships img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: drop-shadow(1px 2px 4px rgba(0,0,0,0.35));
    animation: shipBob 3s ease-in-out infinite;
}
.mini-ships img:nth-child(2) { animation-delay: -1s; }
.mini-ships img:nth-child(3) { animation-delay: -2s; }

/* Prize hint */
.prize-hint {
    background: rgba(242,227,179,0.1);
    border: 1px solid rgba(242,227,179,0.35);
    border-radius: 12px;
    padding: 10px 14px;
    color: rgba(255,255,255,0.88);
    font-size: 12.5px;
    line-height: 1.55;
    margin-bottom: 18px;
    width: 100%;
    box-sizing: border-box;
}
.prize-hint strong { color: #F2E3B3; }

/* Game CTA */
.card-cta {
    width: 100%;
    background: #F2E3B3;
    color: #353A8C;
    border: none;
    padding: 13px 20px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(242,227,179,0.4);
    margin-top: auto;
}
.card-cta:hover {
    background: #E68A70;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(230,138,112,0.5);
}

/* ── Standard card ── */
.choice-card--standard {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.2);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    justify-content: center;
    gap: 14px;
}
.choice-card--standard:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-4px);
}
.standard-icon { font-size: 44px; }
.card-link-btn {
    display: inline-block;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 24px;
    transition: all 0.25s ease;
}
.card-link-btn:hover {
    color: white;
    border-color: white;
    background: rgba(255,255,255,0.1);
}

/* ── Step 2: Ship picker ── */
.pick-header {
    text-align: center;
    margin-bottom: 32px;
    animation: headerFade 0.9s ease-out forwards;
}
.pick-header h2 {
    font-size: clamp(32px, 5.5vw, 56px);
    font-weight: 800;
    color: white;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.05;
    text-shadow: 0 2px 24px rgba(0,0,0,0.55), 0 8px 48px rgba(13,16,64,0.5);
}
.pick-header p {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    margin: 0;
    line-height: 1.6;
    max-width: 380px;
}
.back-btn {
    background: none;
    border: 1.5px solid rgba(255,255,255,0.28);
    color: rgba(255,255,255,0.6);
    padding: 7px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Work Sans', sans-serif;
    cursor: pointer;
    margin-bottom: 32px;
    transition: all 0.2s ease;
}
.back-btn:hover { border-color: rgba(255,255,255,0.55); color: rgba(255,255,255,0.9); }

.ship-picker {
    display: flex;
    gap: 20px;
    margin-bottom: 36px;
    align-items: flex-start;
}
.ship-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    padding: 20px 18px 16px;
    border-radius: 20px;
    border: 2px solid rgba(255,255,255,0.13);
    background: rgba(53,58,140,0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    min-width: 128px;
    box-sizing: border-box;
    position: relative;
}
.ship-option:hover {
    transform: translateY(-6px);
    border-color: rgba(242,227,179,0.45);
    background: rgba(53,58,140,0.72);
}
.ship-option.selected {
    border-color: #F2E3B3;
    background: rgba(53,58,140,0.88);
    box-shadow: 0 0 32px rgba(242,227,179,0.28), 0 10px 28px rgba(0,0,0,0.45);
    transform: translateY(-4px);
}
.ship-option.selected::after {
    content: '✓';
    position: absolute;
    top: -9px;
    right: -9px;
    width: 22px;
    height: 22px;
    background: #F2E3B3;
    color: #353A8C;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    line-height: 22px;
    text-align: center;
}
.ship-option img {
    width: 104px;
    height: 104px;
    object-fit: contain;
    filter: drop-shadow(2px 6px 14px rgba(0,0,0,0.4));
    animation: shipBob 3s ease-in-out infinite;
}
.ship-option:nth-child(2) img { animation-delay: -1s; }
.ship-option:nth-child(3) img { animation-delay: -2s; }
.ship-name {
    margin-top: 12px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.ship-option.selected .ship-name { color: #F2E3B3; }
@keyframes shipBob {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-4px); }
}

/* Start button */
.splash-btn {
    padding: 15px 44px;
    background: #F2E3B3;
    color: #353A8C;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Work Sans', sans-serif;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(242,227,179,0.45);
    letter-spacing: 0.01em;
}
.splash-btn:hover {
    background: #E68A70;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(230,138,112,0.55);
}

/* ── Proximity vignette (fades in when near an island) ── */
#game-vignette {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background: radial-gradient(ellipse at 50% 50%, transparent 28%, rgba(0,0,0,0.88) 100%);
    z-index: 20;
    pointer-events: none;
    opacity: 0;
}

/* ── Island info panel (slides up from bottom on proximity) ── */
#island-panel {
    display: none;          /* JS sets 'block' before animating in, 'none' after animating out */
    position: fixed;
    bottom: -600px;         /* hidden below viewport; JS animates to 20px */
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: 560px;
    width: calc(100% - 24px); /* gutters on mobile */
    max-height: calc(100vh - 100px);
    max-height: calc(100dvh - 100px); /* iOS Safari: dvh excludes browser chrome */
    overflow-y: auto;
    padding: 28px 40px 34px;
    box-sizing: border-box;
    background: rgba(20, 25, 100, 0.97);
    border: 2px solid rgba(242, 227, 179, 0.6);
    border-radius: 24px;
    z-index: 25;
    text-align: center;
    box-shadow: 0 8px 48px rgba(0,0,0,0.65), 0 0 40px rgba(242,227,179,0.1);
}
#island-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: 1.5px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.5);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: 'Work Sans', sans-serif;
}
#island-close:hover { border-color: rgba(255,255,255,0.5); color: white; }
#island-eyebrow { margin-bottom: 8px; }
#island-title {
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 800;
    color: white;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
#island-divider {
    width: 36px;
    height: 2px;
    background: #F2E3B3;
    margin: 0 auto 14px;
    border-radius: 2px;
    opacity: 0.6;
}
#island-body {
    font-size: 14px;
    color: rgba(255,255,255,0.72);
    line-height: 1.7;
    margin: 0 0 22px;
    white-space: pre-line;
}
/* ── Premio island: session code box ── */
#island-code-box {
    margin: 0 0 20px;
    padding: 14px 18px;
    background: rgba(242, 227, 179, 0.08);
    border: 1.5px dashed rgba(242, 227, 179, 0.45);
    border-radius: 14px;
    text-align: center;
}
#island-code-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(242, 227, 179, 0.7);
    margin: 0 0 10px;
}
#island-code-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}
#island-code-display {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: #F2E3B3;
    font-family: 'Courier New', monospace;
}
#island-code-copy {
    background: rgba(242, 227, 179, 0.12);
    border: 1px solid rgba(242, 227, 179, 0.3);
    border-radius: 8px;
    color: #F2E3B3;
    width: 34px;
    height: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
    padding: 0;
}
#island-code-copy:hover { background: rgba(242, 227, 179, 0.22); }
#island-code-copy svg { width: 15px; height: 15px; }
#island-code-hint {
    font-size: 11px;
    color: rgba(242, 227, 179, 0.45);
    margin: 0;
}
.island-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
#island-cta {
    display: inline-block;
    padding: 11px 26px;
    background: #F2E3B3;
    color: #353A8C;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Work Sans', sans-serif;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(242,227,179,0.35);
}
#island-cta:hover { background: #E68A70; color: white; transform: translateY(-2px); }
#island-dismiss {
    padding: 11px 22px;
    background: none;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Work Sans', sans-serif;
    border: 1.5px solid rgba(255,255,255,0.22);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}
#island-dismiss:hover { color: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.45); }

/* ── Mute button ── */
#mute-btn {
    position: fixed;
    bottom: max(20px, calc(env(safe-area-inset-bottom) + 8px));
    left: 20px;
    width: 44px;
    height: 44px;
    background: rgba(13, 16, 64, 0.7);
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    color: #F2E3B3;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    transition: background 0.2s ease, border-color 0.2s ease;
    padding: 0;
}
#mute-btn:hover { background: rgba(13, 16, 64, 0.9); border-color: rgba(255,255,255,0.5); }
#mute-btn svg { width: 22px; height: 22px; }

/* ── Text alternative button + dialog ── */
#text-alt-btn {
    position: fixed;
    bottom: max(20px, calc(env(safe-area-inset-bottom) + 8px));
    left: 72px;
    width: 44px;
    height: 44px;
    background: rgba(13, 16, 64, 0.7);
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    color: #F2E3B3;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    transition: background 0.2s ease, border-color 0.2s ease;
    padding: 0;
}
#text-alt-btn:hover { background: rgba(13, 16, 64, 0.9); border-color: rgba(255,255,255,0.5); }
#text-alt-btn svg { width: 20px; height: 20px; }
#text-alt-overlay {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(13, 16, 64, 0.72);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    z-index: 1500;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.text-alt-item { margin-bottom: 22px; }
.text-alt-item h3 { font-size: 17px; font-weight: 700; color: #F2E3B3; margin: 0 0 6px; }
.text-alt-item p { font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.6; margin: 0 0 10px; white-space: pre-line; }
.text-alt-item a { color: #F2E3B3; font-weight: 600; text-decoration: underline; }

/* ── Game tutorial overlay ── */
#game-tutorial {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(13, 16, 64, 0.72);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    z-index: 60;
    display: none;          /* toggled via JS */
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.tutorial-panel {
    background: rgba(20, 25, 100, 0.97);
    border: 2px solid rgba(242, 227, 179, 0.65);
    border-radius: 24px;
    padding: 44px 48px 38px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 0 64px rgba(242,227,179,0.12), 0 28px 72px rgba(0,0,0,0.65);
    box-sizing: border-box;
}
.tutorial-slide {
    text-align: center;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.tutorial-icon {
    font-size: 46px;
    line-height: 1;
    margin-bottom: 18px;
}
.tutorial-slide .splash-eyebrow { margin-bottom: 10px; }
.tutorial-slide h3 {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 800;
    color: white;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.tutorial-slide p {
    font-size: 15px;
    color: rgba(255,255,255,0.72);
    line-height: 1.7;
    margin: 0;
    max-width: 380px;
}
/* Key cap icons (controls slide) */
.key-group {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
    margin: 14px 0 12px;
    flex-wrap: wrap;
}
.key-cluster {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.key-row-inner {
    display: flex;
    gap: 4px;
}
.key-cap {
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.25);
    border-bottom: 3px solid rgba(255,255,255,0.18);
    border-radius: 6px;
    padding: 5px 0;
    width: 32px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Work Sans', sans-serif;
    color: rgba(255,255,255,0.82);
    text-align: center;
    line-height: 1.3;
}
.key-sep {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.35);
    padding: 0 2px;
    align-self: center;
}
/* Dot navigation */
.tutorial-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 28px 0 22px;
}
.tutorial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid rgba(242,227,179,0.4);
    cursor: pointer;
    transition: all 0.25s ease;
}
.tutorial-dot.active {
    background: #F2E3B3;
    border-color: #F2E3B3;
    transform: scale(1.3);
}
/* Tutorial nav buttons */
.tutorial-nav {
    display: flex;
    gap: 12px;
    align-items: center;
}
.tutorial-nav .back-btn {
    margin-bottom: 0;
    flex-shrink: 0;
}
.tutorial-cta {
    flex: 1;
    padding: 13px 20px;
    background: #F2E3B3;
    color: #353A8C;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Work Sans', sans-serif;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(242,227,179,0.38);
}
.tutorial-cta:hover {
    background: #E68A70;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(230,138,112,0.5);
}
@media (max-width: 520px) {
    .tutorial-panel { padding: 28px 20px 24px; }
    .tutorial-slide { min-height: 160px; }
    #island-panel {
        padding: 20px 20px 24px;
        width: calc(100% - 16px);
        border-radius: 16px;
    }
    #island-close {
        width: 44px;
        height: 44px;
        font-size: 20px;
        top: 8px;
        right: 8px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    #island-dismiss {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}

/* ── Mobile navigation menu ──
   .mobile-link and #mobile-menu .nav-link.active are identical to the shared
   rules in tailwind.src.css — only index.html's text-shadow cancellation
   (needed because .splash-page .nav-link adds a shadow the others don't) lives here. */
.splash-page #mobile-menu .nav-link { text-shadow: none; }
.splash-page #mobile-menu .nav-link:hover { text-shadow: none; color: #353A8C; }

/* ── Focus visibility for custom (non-native) interactive elements ── */
.choice-card:focus-visible,
.ship-option:focus-visible,
.card-cta:focus-visible,
.card-link-btn:focus-visible,
.back-btn:focus-visible,
.splash-btn:focus-visible,
#island-close:focus-visible,
#island-dismiss:focus-visible,
#island-cta:focus-visible,
#island-code-copy:focus-visible,
#mute-btn:focus-visible,
#text-alt-btn:focus-visible,
#text-alt-close:focus-visible,
.tutorial-dot:focus-visible,
.tutorial-cta:focus-visible {
    outline: 3px solid #F2E3B3;
    outline-offset: 2px;
}

/* ── Mobile ── */
@media (max-width: 620px) {
    #splash-screen { align-items: flex-start; }
    .choice-cards { flex-direction: column; gap: 14px; }
    .choice-card--game,
    .choice-card--standard { flex: none; }
    .card-island-wrap { height: 95px; }
    .card-island { width: 80px; }
    .ship-picker { gap: 12px; flex-wrap: wrap; justify-content: center; }
    .ship-option { min-width: 100px; padding: 14px 12px 12px; }
    .ship-option img { width: 80px; height: 80px; }
    .pick-header h2 { font-size: 32px; }
}
