table {
    display: block;
    border-collapse: collapse;
    width: 80%;
    table-layout: fixed;
}

th,
td {
    border: 2px solid black;
    padding: 10px;
    vertical-align: middle;
    overflow-wrap: break-word;
}

button {
    width: 100%;
    min-height: 36px;
    padding: 5px;
    cursor: pointer;
    border-radius: 10px;
    background-color: rgb(102, 102, 102);
    color: rgb(255, 230, 0);
}

button:hover{
    background-color: rgb(54, 54, 54);
    transform: translateY(-3px);
}

@media (max-width: 900px) {
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }

    th,
    td {
        min-width: 110px;
    }
}

/* Keep room above the table for the fixed button. */
body {
    padding-top: 90px;
}

#doNotPress {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1001;
    width: 180px;
    max-width: calc(100vw - 24px);
    min-height: 64px;
    background: #d00000;
    color: white;
    border: 3px solid #700000;
    font-size: 20px;
    font-weight: bold;
}

#doNotPress:hover {
    background: #a00000;
    transform: none;
}

#messageStorm {
    position: fixed;
    inset: 90px 0 0;
    z-index: 1000;
    pointer-events: none;
    overflow: hidden;
}

.storm-message {
    position: absolute;
    box-sizing: border-box;
    width: 240px;
    max-width: 100%;
    padding: 14px;
    border: 2px solid #a00000;
    border-radius: 8px;
    background: white;
    color: #a00000;
    font: bold 18px Arial, sans-serif;
    text-align: center;
}

.storm-finale {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1002;
    box-sizing: border-box;
    width: 960px;
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: clamp(36px, 8vw, 100px) clamp(20px, 6vw, 72px);
    border: 4px solid #ef4444;
    border-radius: 12px;
    background: radial-gradient(ellipse at top, #a00000, #500000 85%);
    color: white;
    text-align: center;
    font-family: Arial, sans-serif;
    box-shadow: 0 0 0 100vmax #000b, 0 0 65px #ff000080, inset 0 0 50px #0006;
    animation: finale-entrance 450ms ease-out;
}

.storm-finale strong {
    display: block;
    font-size: clamp(34px, 7vw, 82px);
    font-weight: 900;
    line-height: 1.08;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    text-shadow: 0 4px 0 #350000, 0 8px 20px #0008;
}

.storm-finale small {
    display: block;
    margin-top: 20px;
    font-size: 13px;
}

@keyframes finale-entrance {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .storm-finale {
        animation: none;
    }
}