* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* --- Forzar landscape: en dispositivos en portrait, rotamos el body 90°
   para que el usuario vea la app en landscape sin girar el telefono. Los
   eventos touch se remapean desde JS (ver clientToCell / findNearestCandidate). */
@media (orientation: portrait) {
    body.force-landscape {
        /* svh/svw = small viewport units: estables aunque iOS oculte/muestre
           la barra de URL, evita que el rotate quede descuadrado y aparezca
           una franja blanca intocable mientras la pantalla "salta". */
        width: 100svh;
        height: 100svw;
        transform: translate(100svw, 0) rotate(90deg);
        transform-origin: top left;
    }
}

body {
    font-family: 'Schoolbell', 'Marker Felt', 'Comic Sans MS', cursive;
    background: #1a1a1a;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    image-rendering: pixelated;
}

/* --- Screens base: cada pantalla principal es full-screen y se oculta
   con la clase .hidden. Solo una visible a la vez. --- */
.screen {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.screen.hidden {
    display: none !important;
}

/* Utilidad generica: cualquier elemento con .hidden desaparece. */
.hidden {
    display: none !important;
}

/* --- Pantalla de inicio: splash de fondo + dos botones que entran desde
   abajo con un pequeño retardo tras mostrarse el fondo. --- */
#start-screen {
    z-index: 20;
    overflow: hidden;
}

#start-screen .start-bg {
    position: absolute;
    inset: 0;
    background: #1a1a1a url('doodles01.png') center center / cover no-repeat;
    animation: bgFadeIn 0.5s ease-out;
}

#start-screen .start-buttons {
    position: absolute;
    left: 0;
    right: 0;
    /* Cuarto inferior de la pantalla: linea a 75% del alto, botones
       centrados verticalmente sobre ella. */
    top: 75svh;
    transform: translateY(-50%);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 18px;
    padding: 0 20px;
}

#start-screen .start-buttons button {
    font-family: inherit;
    font-size: 26px;
    background: #fefdf8;
    color: #1f1f1f;
    border: 2.5px solid #1f1f1f;
    border-radius: 16px 20px 14px 22px / 20px 14px 22px 16px;
    padding: 8px 40px;
    min-width: 220px;
    cursor: pointer;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
}

#start-screen .start-buttons button:active {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.25);
}

/* Tras 1500 ms con el fondo limpio, los botones entran desde la
   izquierda como dos coches que se persiguen: el primero arranca, el
   segundo le pisa los talones, y los dos frenan al llegar a su sitio
   (curva de bezier con velocidad inicial alta y deceleracion fuerte). */
#start-new {
    animation: buttonRaceIn 0.7s cubic-bezier(0.0, 0.9, 0.25, 1) 1.5s backwards;
}
#start-join {
    animation: buttonRaceIn 0.7s cubic-bezier(0.0, 0.9, 0.25, 1) 1.7s backwards;
}

/* Titulo "DOODLE RACER" en la mitad superior, dos lineas, fuente
   Luckiest Guy. Es un GRUPO con dos capas superpuestas:
     - back: silueta negra engordada (trazo de 20px). Hace de "marco"
       que rodea la forma de cada letra.
     - front: letras coloreadas con su trazo fino encima de la silueta.
   Ambas capas comparten posiciones, rotaciones y tamanos para que se
   superpongan pixel-perfect. Animar el grupo entero anima ambas. */
.home-title-group {
    position: absolute;
    top: 8svh;
    left: 0;
    right: 0;
    height: 50svh;
    pointer-events: none;
    user-select: none;
}

.home-title-layer {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    font-family: 'Lilita One', 'Luckiest Guy', 'Schoolbell', cursive;
    font-weight: 400;
    /* Explicito para evitar que el h1 herede tamano por defecto y se
       descuadre con el div .back. */
    font-size: 1rem;
    line-height: 1;
    box-sizing: border-box;
    /* Aisla el stacking context: los z-index de los .ch hijos quedan
       contenidos en su capa, sin escapar al grupo y mezclarse con la
       capa contraria. Sin esto, una letra del back con z-index alto
       puede pintar por encima de una del front. */
    isolation: isolate;
}

.home-title-layer .line {
    display: flex;
    align-items: center;
}
.home-title-layer .line + .line {
    margin-top: -0.7em;
}

.home-title-layer .ch {
    display: inline-block;
    position: relative;
    font-size: clamp(48px, 18svh, 160px);
    line-height: 0.95;
    margin-left: -0.08em;
    paint-order: stroke fill;
}
.home-title-layer .ch:first-child { margin-left: 0; }

/* Stack reverso: la primera letra pisa a la siguiente, la segunda a la
   tercera, etc. Sin esto el orden de pintado por DOM hace que la ULTIMA
   letra se pinte encima. */
.home-title-layer .ch:nth-child(1) { z-index: 6; }
.home-title-layer .ch:nth-child(2) { z-index: 5; }
.home-title-layer .ch:nth-child(3) { z-index: 4; }
.home-title-layer .ch:nth-child(4) { z-index: 3; }
.home-title-layer .ch:nth-child(5) { z-index: 2; }
.home-title-layer .ch:nth-child(6) { z-index: 1; }

/* Capa BACK: silueta negra engordada que enmarca las letras. El stroke
   no debe ser demasiado grande o los halos de letras adyacentes se
   fusionan rellenando los huecos entre letras. */
.home-title-layer.back .ch {
    color: #121212;
    -webkit-text-stroke: 20px #121212;
}

/* Capa FRONT: colores distintos por letra + trazo medio. */
.home-title-layer.front .ch {
    -webkit-text-stroke: 15px #121212;
}
.home-title-layer.front .ch:nth-child(6n+1) { color: #ed2893; }
.home-title-layer.front .ch:nth-child(6n+2) { color: #4dced4; }
.home-title-layer.front .ch:nth-child(6n+3) { color: #a7e815; }
.home-title-layer.front .ch:nth-child(6n+4) { color: #da5043; }
.home-title-layer.front .ch:nth-child(6n+5) { color: #d966cd; }
.home-title-layer.front .ch:nth-child(6n+6) { color: #5af6c4; }

/* Rotaciones aplicadas a AMBAS capas para que las dos coincidan. */
.home-title-layer .ch:nth-child(7n+1) { transform: rotate(-5deg); }
.home-title-layer .ch:nth-child(7n+2) { transform: rotate(3deg) translateY(-2px); }
.home-title-layer .ch:nth-child(7n+3) { transform: rotate(-2deg) translateY(3px); }
.home-title-layer .ch:nth-child(7n+4) { transform: rotate(6deg); }
.home-title-layer .ch:nth-child(7n+5) { transform: rotate(-7deg) translateY(-1px); }
.home-title-layer .ch:nth-child(7n+6) { transform: rotate(2deg) translateY(2px); }
.home-title-layer .ch:nth-child(7n+7) { transform: rotate(-3deg); }

@keyframes bgFadeIn {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes buttonRaceIn {
    0%   { opacity: 0; transform: translateX(-120vw); }
    100% { opacity: 1; transform: translateX(0); }
}

/* --- Pantallas de setup (crear / unirse) --- */
#setup-create, #setup-join {
    background: #fefdf8;
    background-image:
        linear-gradient(to right, rgba(120, 180, 220, 0.25) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(120, 180, 220, 0.25) 1px, transparent 1px);
    background-size: 22px 22px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    display: block;
}

.setup-content {
    width: min(420px, 100%);
    margin: 12px auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: 'Schoolbell', 'Marker Felt', 'Comic Sans MS', cursive;
    color: #1f1f1f;
}

.setup-content h2 {
    font-size: 28px;
    text-align: center;
    font-weight: normal;
    margin-bottom: 2px;
}

.setup-content label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 18px;
}

.setup-content label > span:first-child {
    font-weight: bold;
}

.setup-content select,
.setup-content input[type="text"] {
    font-family: inherit;
    font-size: 16px;
    background: transparent;
    color: #1f1f1f;
    border: 2px solid #1f1f1f;
    border-radius: 14px 18px 12px 20px / 18px 12px 20px 14px;
    padding: 3px 12px;
    min-width: 140px;
}

/* El input de codigo se muestra siempre en mayusculas y espaciado;
   los demas (nombres) respetan lo que escriba el usuario. */
#join-code {
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    font-size: 20px;
}

.segmented {
    display: inline-flex;
    border: 2px solid #1f1f1f;
    border-radius: 14px 18px 12px 20px / 18px 12px 20px 14px;
    overflow: hidden;
}

.segmented button {
    font-family: inherit;
    font-size: 16px;
    background: transparent;
    color: #1f1f1f;
    border: none;
    padding: 4px 14px;
    cursor: pointer;
}

.segmented button.active {
    background: #1f1f1f;
    color: #fefdf8;
}

/* Código de sala: simple, en linea. No necesita una caja aparte. */
.code-inline {
    font-size: 22px;
    letter-spacing: 3px;
    font-weight: bold;
    color: #1f1f1f;
}

.slots {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.slot-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.slot {
    min-width: 76px;
    padding: 4px 10px;
    text-align: center;
    border: 2px solid #1f1f1f;
    border-radius: 14px 18px 12px 20px / 18px 12px 20px 14px;
    background: transparent;
    font-size: 14px;
    line-height: 1.1;
}

.slot-role {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
}

.slot.taken {
    background: var(--pcolor, #1f1f1f);
    color: #fff;
    border-color: var(--pcolor, #1f1f1f);
}

.slot.empty {
    opacity: 0.45;
    font-style: italic;
}

.waiting-msg {
    text-align: center;
    font-size: 16px;
    color: #777;
    animation: waitingPulse 1.6s ease-in-out infinite;
}

@keyframes waitingPulse {
    0%, 100% { opacity: 0.5; }
    50%      { opacity: 1; }
}

.setup-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.setup-actions button {
    flex: 1;
    font-family: inherit;
    font-size: 20px;
    padding: 8px 16px;
    border: 2.5px solid #1f1f1f;
    cursor: pointer;
    background: #fefdf8;
    color: #1f1f1f;
    border-radius: 16px 20px 14px 22px / 20px 14px 22px 16px;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
}

.setup-actions button:active {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.25);
}

.btn-primary {
    background: #fff5a0 !important;
}

.setup-actions button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.15);
}

/* --- Modal confirmar salida --- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 16px;
}

.modal.hidden {
    display: none;
}

.modal-card {
    background: #fefdf8;
    border: 2.5px solid #1f1f1f;
    /* Organico pero sutil: esquinas redondeadas irregulares, no ovales. */
    border-radius: 16px 22px 14px 20px / 20px 14px 22px 16px;
    padding: 20px 26px;
    max-width: 360px;
    font-family: 'Schoolbell', 'Marker Felt', 'Comic Sans MS', cursive;
    color: #1f1f1f;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.modal-card h3 {
    font-size: 24px;
    font-weight: normal;
}

.modal-card p {
    font-size: 16px;
    color: #555;
}

.modal-card .modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.modal-card .modal-actions button {
    flex: 1;
    font-family: inherit;
    font-size: 18px;
    padding: 8px 14px;
    border: 2px solid #1f1f1f;
    cursor: pointer;
    background: #fefdf8;
    color: #1f1f1f;
    border-radius: 14px 18px 12px 20px / 18px 12px 20px 14px;
}

.modal-card .btn-primary {
    background: #ffb3ba !important;
}


/* --- Topbar --- */
#bottombar button {
    background: transparent;
    color: #1f1f1f;
    border: none;
    font-size: 22px;
    width: 36px;
    height: 32px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

/* Evita la zona curva del iPhone en la esquina: empujamos el ✕ hacia dentro */
#exit-btn {
    margin-left: 12px;
}

#bottombar button:active {
    color: #d62828;
}

/* --- Viewport / canvas --- */
#viewport {
    flex: 1 1 auto;
    position: relative;
    overflow: hidden;
    background: #fefdf8;
    touch-action: none;
}

#game {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    background: #fefdf8;
    image-rendering: auto;
    transform-origin: 0 0;
    will-change: transform;
}

/* --- Bottombar --- */
#bottombar {
    flex: 0 0 auto;
    height: 44px;
    display: flex;
    align-items: center;
    padding: 2px 8px;
    background: #fefdf8;
    z-index: 5;
    gap: 8px;
}

#players-status {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.player-card {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: transparent;
    font-size: 14px;
    color: var(--pcolor, #333);
    white-space: nowrap;
    line-height: 1;
    position: relative;
    z-index: 1;
    font-weight: bold;
}

/* Ovalo hand-drawn del jugador activo: dos pasadas con borde irregular
   (border-radius asimetrico) y ligera rotacion, simulando un garabato. */
.player-card.active::before,
.player-card.active::after {
    content: '';
    position: absolute;
    inset: -2px -10px;
    border: 2.5px solid var(--pcolor, #333);
    border-radius: 55% 45% 52% 48% / 45% 55% 48% 52%;
    pointer-events: none;
}

.player-card.active::before {
    transform: rotate(-2.5deg);
}

.player-card.active::after {
    border-radius: 48% 52% 45% 55% / 55% 45% 60% 40%;
    transform: rotate(2.2deg) translate(1px, -1px);
    border-width: 2px;
    opacity: 0.8;
}


.player-card .pname {
    font-size: 13px;
    font-weight: bold;
    padding-right: 2px;
}

/* Cuando el jugador esta chocado, su contenido queda en gris para que
   la pastilla roja centrada destaque como estado dominante. */
.player-card .pname,
.player-card .pstat,
.player-card .pstat b {
    transition: color 0.25s ease;
}
.player-card.active::before,
.player-card.active::after {
    transition: border-color 0.25s ease;
}
.player-card.crashed .pname,
.player-card.crashed .pstat,
.player-card.crashed .pstat b {
    color: #bbb !important;
}
.player-card.crashed.active::before,
.player-card.crashed.active::after {
    border-color: #bbb !important;
}

.player-card .pstat {
    font-size: 13px;
    position: relative;
    padding-left: 4px;
}

.player-card .pstat:first-child {
    padding-left: 0;
}

.player-card .pstat b {
    font-weight: bold;
    font-size: 14px;
}

.player-card .ppenalty {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15px;
    padding: 3px 10px;
    border-radius: 14px;
    background: #d62828;
    color: #fff;
    line-height: 1;
    font-weight: bold;
    white-space: nowrap;
    z-index: 3;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.player-card .ppenalty b {
    font-size: 16px;
}

@keyframes penaltyAppear {
    0%   { transform: translate(-50%, -50%) scale(0); }
    60%  { transform: translate(-50%, -50%) scale(1.75); }
    100% { transform: translate(-50%, -50%) scale(1); }
}
.player-card .ppenalty.appear {
    animation: penaltyAppear 0.35s cubic-bezier(0.2, 1.2, 0.5, 1);
}

.move-badge {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, 0);
    font-weight: 900;
    font-size: 14px;
    pointer-events: none;
    white-space: nowrap;
    animation: badgeFly 1s ease-out forwards;
    z-index: 20;
}

.move-badge.big {
    font-size: 22px;
    animation: badgeFlyBig 1.4s ease-out forwards;
}

@keyframes badgeFly {
    0%   { opacity: 0; transform: translate(-50%, 8px) scale(0.4); }
    20%  { opacity: 1; transform: translate(-50%, -4px) scale(1.2); }
    100% { opacity: 0; transform: translate(-50%, -30px) scale(1); }
}

@keyframes badgeFlyBig {
    0%   { opacity: 0; transform: translate(-50%, 10px) scale(0.3); }
    12%  { opacity: 1; transform: translate(-50%, -4px) scale(1.6) rotate(-6deg); }
    25%  { transform: translate(-50%, -12px) scale(1.3) rotate(4deg); }
    45%  { transform: translate(-50%, -22px) scale(1.2); }
    100% { opacity: 0; transform: translate(-50%, -48px) scale(1); }
}

/* --- Minimapa flotante --- */

/* --- Stepper (reusado en setup) --- */
.stepper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.stepper button {
    font-family: inherit;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 22px;
    line-height: 1;
    background: transparent;
    color: #1f1f1f;
    border: 2px solid #1f1f1f;
    border-radius: 50%;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(31, 31, 31, 0.25);
    transition: background 80ms ease, color 80ms ease, transform 80ms ease;
}

.stepper button:active,
.stepper button.pressing {
    background: #1f1f1f;
    color: #fefdf8;
    transform: scale(0.92);
}

.stepper > span {
    min-width: 32px;
    text-align: center;
    font-weight: bold;
    font-size: 22px;
    color: #1f1f1f;
}

/* --- Toast de cambio de turno (no invasivo) --- */
/* --- Overlay de COLISION (banda blanca barriendo + texto siguiendo) --- */
#crash-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 80;
    overflow: hidden;
    opacity: 0;
}

#crash-overlay.active {
    opacity: 1;
}

.crash-band {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 160px;
    background: #fff;
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
    transform: translate3d(110vw, -50%, 0);
    will-change: transform;
}

#crash-overlay.active .crash-band {
    animation: bandSweep 3s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

.crash-text {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    text-align: center;
    transform: translate3d(110vw, -50%, 0);
    will-change: transform;
    color: var(--pcolor, #1f1f1f);
    font-family: 'Schoolbell', 'Marker Felt', 'Comic Sans MS', cursive;
}

#crash-overlay.active .crash-text {
    animation: textSweep 2.9s cubic-bezier(0.25, 0.65, 0.3, 1) 0.18s forwards;
}

#crash-title {
    font-size: 56px;
    letter-spacing: 4px;
    line-height: 1;
    color: inherit;
}

#crash-subtitle {
    font-size: 20px;
    margin-top: 10px;
    letter-spacing: 2px;
    color: inherit;
}

@keyframes bandSweep {
    0%   { transform: translate3d(110vw, -50%, 0); }
    18%  { transform: translate3d(0, -50%, 0); }
    82%  { transform: translate3d(0, -50%, 0); }
    100% { transform: translate3d(-110vw, -50%, 0); }
}

@keyframes textSweep {
    0%   { transform: translate3d(110vw, -50%, 0); }
    22%  { transform: translate3d(0, -50%, 0); }
    78%  { transform: translate3d(0, -50%, 0); }
    100% { transform: translate3d(-110vw, -50%, 0); }
}

/* --- Fin de partida: blanco y negro + blur --- */
#game {
    transition: filter 1.1s ease;
}
body.game-over #game {
    filter: grayscale(1) blur(4px);
}

/* --- Overlay de resultados --- */
#results-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    z-index: 90;
    opacity: 1;
    transition: opacity 0.7s ease;
    padding: 16px;
    overflow: hidden;
}

#results-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

#results-card {
    background: #fefdf8;
    border: 2.5px solid #1f1f1f;
    border-radius: 16px 22px 14px 20px / 20px 14px 22px 16px;
    padding: 12px 14px;
    max-width: 380px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: 'Schoolbell', 'Marker Felt', 'Comic Sans MS', cursive;
    color: #1f1f1f;
    position: relative;
    z-index: 2;
}

#confetti-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    top: -30px;
    will-change: transform;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0%   { transform: translateY(-10vh) rotate(0); opacity: 1; }
    85%  { opacity: 1; }
    100% { transform: translateY(110vh) rotate(900deg); opacity: 0.5; }
}

/* Resultados como tabla sin lineas: mismo grid en header y filas. */
#results-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.result-header,
.result-row {
    display: grid;
    grid-template-columns: 32px 1fr 40px 40px 40px 32px;
    gap: 8px;
    align-items: center;
    padding: 2px 6px;
}

.result-header {
    font-size: 11px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    padding-bottom: 4px;
}

.result-row {
    animation: resultPop 0.5s ease-out backwards;
}

.result-rank {
    font-size: 20px;
    font-weight: 900;
    color: var(--pcolor, #1f1f1f);
    text-align: center;
    line-height: 1;
}

.result-name {
    font-size: 16px;
    font-weight: bold;
    color: var(--pcolor, #1f1f1f);
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rval {
    font-size: 16px;
    font-weight: 900;
    color: var(--pcolor, #1f1f1f);
    text-align: center;
    line-height: 1;
}

@keyframes resultPop {
    0%   { opacity: 0; transform: translateX(-20px) scale(0.9); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}

.results-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.results-actions.visible {
    opacity: 1;
    pointer-events: auto;
}

.results-actions button {
    font-family: inherit;
    font-size: 16px;
    padding: 6px 14px;
    border: 2.5px solid #1f1f1f;
    cursor: pointer;
    background: #fefdf8;
    color: #1f1f1f;
    border-radius: 16px 20px 14px 22px / 20px 14px 22px 16px;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
}

.results-actions button:active {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.25);
}

#results-restart {
    background: #fff5a0;
}
