/* Sombrilla con levante (18/10/2026). Se sirve tal cual, sin pasar por
   Tailwind: el juego es una pantalla cerrada con sus propios colores. Lo de
   los carteles y los botones es lo mismo que en el crucero. */
.sombrilla {
    --cielo: #bfe6f2;
    --mar: #1f7fa6;
    --arena: #f3dfae;
    --albero: #f2b33d;
    --tinta: #23303b;
    --hueso: #fffaf0;
    --rojo: #d9483b;
    --sombra: rgba(35, 48, 59, .22);
}

/*
  DENTRO DEL PORTAL, NO A PANTALLA COMPLETA, como el crucero: un alto cómodo
  con la cabecera y el pie alrededor. De pie se ve más playa.
*/
.sombrilla.juego {
    height: min(calc(100vh - 175px), 860px);
    height: min(calc(100dvh - 175px), 860px);
    min-height: 440px;
    color: var(--tinta);
    font-family: 'Baloo 2', ui-rounded, system-ui, sans-serif;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 12px;
    box-sizing: border-box;
    max-width: 720px;
    margin: 0 auto;
}

/* ------------------------------------------------------------ Marcador */
.sombrilla .marcador { display: flex; align-items: center; gap: 8px; }

.sombrilla .playa {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    background: var(--hueso);
    border-radius: 999px;
    padding: 4px 14px;
    box-shadow: 0 2px 0 var(--sombra);
    font-weight: 800;
}

.sombrilla .playa b { font-size: 16px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; }
.sombrilla .playa .vidas { margin-left: auto; white-space: nowrap; font-size: 15px; letter-spacing: -3px; flex: none; }
.sombrilla .playa .vidas .perdida { opacity: .22; filter: grayscale(1); }

.sombrilla .barra {
    flex: 1;
    min-width: 30px;
    height: 9px;
    border-radius: 999px;
    background: rgba(35, 48, 59, .14);
    overflow: hidden;
    display: block;
}

.sombrilla .barra i { display: block; height: 100%; width: 0; background: var(--albero); border-radius: 999px; }

.sombrilla .medidores {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    min-width: 0;
}

.sombrilla .medidor { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.sombrilla .medidor > span { opacity: .75; white-space: nowrap; }
.sombrilla #hondura { background: #2f9e6e; }
.sombrilla #hondura.floja { background: var(--rojo); }
.sombrilla #brazos { background: #3f7fd6; }
.sombrilla #puntos { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }

.sombrilla .sonido {
    flex: none;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: var(--hueso);
    color: var(--tinta);
    box-shadow: 0 2px 0 var(--sombra);
    cursor: pointer;
}

.sombrilla .sonido svg { width: 24px; height: 24px; }
.sombrilla .sonido .con { display: none; }
.sombrilla .sonido[aria-pressed="true"] .con { display: inline; }
.sombrilla .sonido[aria-pressed="true"] .sin { display: none; }
.sombrilla .sonido:focus-visible { outline: 3px solid var(--mar); outline-offset: 2px; }

/* ------------------------------------------------------------ Campo */
.sombrilla .campo {
    position: relative;
    flex: 1;
    min-height: 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--arena);
    box-shadow: 0 5px 0 rgba(35, 48, 59, .18), 0 14px 30px rgba(35, 48, 59, .22);
    /* El dedo mueve al bañista, no la página. */
    touch-action: none;
}

.sombrilla canvas { display: block; width: 100%; height: 100%; }

/* ------------------------------------------------------------ Carteles */
.sombrilla .cartel {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 12px;
    text-align: center;
    padding: 18px;
    background: rgba(31, 85, 120, .66);
    color: var(--hueso);
    overflow-y: auto;
}

.sombrilla .cartel[hidden] { display: none; }

.sombrilla .firma {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    background: rgba(255, 250, 240, .94);
    color: var(--tinta);
    border-radius: 999px;
    padding: 7px 15px;
    box-shadow: 0 3px 0 rgba(35, 48, 59, .25);
}

.sombrilla .firma .de { font-weight: 600; opacity: .62; font-size: 13px; letter-spacing: .03em; }
.sombrilla .firma .logo { display: block; height: 24px; width: auto; }

.sombrilla .cartel h1 { margin: 0; color: var(--hueso); font-size: clamp(27px, 7.5vw, 44px); line-height: 1.02; text-wrap: balance; }
.sombrilla .cartel p { margin: 0; font-size: 15px; max-width: 34ch; font-weight: 600; line-height: 1.35; }

.sombrilla .cartel .hoy,
.sombrilla .cartel .marca {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 250, 240, .18);
    font-size: 14px;
}

.sombrilla .cartel .marca[hidden] { display: none; }

.sombrilla .boton {
    font: inherit;
    font-weight: 800;
    font-size: 19px;
    color: var(--tinta);
    background: var(--albero);
    border: 0;
    border-radius: 999px;
    padding: 11px 30px;
    cursor: pointer;
    box-shadow: 0 4px 0 #b88a22;
}

.sombrilla .boton:active { transform: translateY(3px); box-shadow: 0 1px 0 #b88a22; }
.sombrilla .boton:focus-visible { outline: 3px solid var(--hueso); outline-offset: 3px; }

.sombrilla .boton.otro {
    background: transparent;
    color: var(--hueso);
    box-shadow: inset 0 0 0 2px var(--hueso);
    font-size: 16px;
    padding: 8px 22px;
}

.sombrilla .boton.otro[hidden] { display: none; }

.sombrilla .pie { margin: 0; text-align: center; font-size: 12px; font-weight: 600; opacity: .7; }

/*
  TUMBADO, SIN EL PORTAL ALREDEDOR, igual que el vóley: la cabecera y la barra
  de abajo son fijas y en un móvil apaisado se comerían media calle.
*/
@media (orientation: landscape) and (max-height: 560px) {
    body:has(.sombrilla) #cabecera-del-portal,
    body:has(.sombrilla) .barra-de-abajo,
    body:has(.sombrilla) #aviso-de-especial { display: none; }
    body:has(.sombrilla) #contenido { padding-block: 0; }
    body:has(.sombrilla) { padding-bottom: 0; }

    .sombrilla.juego { height: 100vh; height: 100dvh; min-height: 280px; gap: 4px; padding: 4px 8px; }
    .sombrilla .pie { display: none; }
}


/* ------------------------------------------------------------ El botón de la sombrilla */
/*
  PARA EL PULGAR, ABAJO A LA DERECHA. Hace lo mismo que tocar la sombrilla en
  el lienzo, pero no hay que apuntar: en plena racha no hay tiempo.
*/
.sombrilla .accion {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 250, 240, .92);
    color: var(--tinta);
    box-shadow: 0 4px 0 rgba(35, 48, 59, .3), 0 0 0 4px rgba(255, 250, 240, .35);
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 1px;
    font: inherit;
    cursor: pointer;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}

.sombrilla .accion[hidden] { display: none; }
.sombrilla .accion .icono { font-size: 30px; line-height: 1; }
.sombrilla .accion .ayuda { font-size: 10.5px; font-weight: 700; line-height: 1.1; opacity: .75; }
.sombrilla .accion.pulsada { transform: translateY(3px); box-shadow: 0 1px 0 rgba(35, 48, 59, .3), 0 0 0 4px rgba(63, 127, 214, .5); }
/* Cuando llega la racha, el botón lo dice sin leer. */
.sombrilla .accion.ya { background: #ffe08a; box-shadow: 0 4px 0 #b88a22, 0 0 0 6px rgba(242, 179, 61, .55); }
.sombrilla .accion:focus-visible { outline: 3px solid var(--mar); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    .sombrilla .accion.ya { box-shadow: 0 4px 0 #b88a22; }
}
