html,
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

canvas {
    display: block;
}

.centrado-horizontal {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.centrado-horizontal:hover {
    transform: translateX(-50%) scale(1.05);
}

.titulo {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px;
    font-weight: bold;
    font-family: "Arial", sans-serif;
    color: #000;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.titulo-gloop {
    font-size: 48px;
    color: #444;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    border: 1px solid #aaa;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s ease;
    width: 180px;
}

button:hover {
    transform: scale(1.05);
}

.boton-amarillo {
    background-color: #fff59d;
}

.boton-verde {
    background-color: #a5d6a7;
}

.boton-azul {
    background-color: #90caf9;
}

.boton-coral {
    background-color: #ffab91;
}

.boton-lila {
    background-color: #a955f2;
}

.boton-contenedor {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    text-align: center;
    margin-bottom: 20px;
}

.boton-subtitulo {
    font-size: 14px;
    color: #333;
    margin-top: 6px;
}

.ranking-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border: 2px solid #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    z-index: 1000;
    min-width: 300px;
}

.ranking-box table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 10px;
}

.ranking-box th,
.ranking-box td {
    padding: 6px 10px;
    border-bottom: 1px solid #ccc;
    text-align: left;
}

.ranking-box th {
    background-color: #f5f5f5;
}

.ranking-box tr:nth-child(odd) {
    background-color: #fafafa;
}

.ranking-box h3 {
    text-align: center;
    margin-top: 0;
}

.ranking-box tr.oro {
    background-color: #fff8e1;
    font-weight: bold;
}

.ranking-box tr.plata {
    background-color: #f1f8ff;
    font-weight: bold;
}

.ranking-box tr.bronce {
    background-color: #fbe9e7;
    font-weight: bold;
}

.cerrar-ranking {
    all: unset;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    background: #eee;
    color: #333;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease;
}

.cerrar-ranking:hover {
    background-color: #ddd;
}

.ventana-final {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #eee;
    padding: 30px;
    border: 2px solid #888;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    text-align: center;
    z-index: 1000;
    min-width: 300px;
}

.grupo-botones-final {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}