/* TAP RACE TOGETHER over the page: the game's frame on the spectacle layer
   (static/js/tap-race-launcher.js). The layer itself lets taps through
   (pointer-events: none, spectacle.css); the race takes them while open. */
.tap-race {
    position: fixed;
    inset: 0;
    z-index: var(--z-spectacle, 9999);
    pointer-events: auto;
    background: var(--color-black, #000000);
}

.tap-race__frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* the page under the race does not scroll while it is open */
html.tap-race-open,
html.tap-race-open body {
    overflow: hidden;
}

/* /tap-race and /tap-race/<code>: the page a scanned code opens, under the race */
.tap-race-page {
    max-width: 420px;
    margin: 0 auto;
    padding: var(--space-4, 16px);
}

.tap-race-page__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3, 12px);
    margin: 0 0 var(--space-4, 16px);
    padding: 0;
    list-style: none;
}

.tap-race-page__words {
    margin: 0 0 var(--space-3, 12px);
    color: var(--text-secondary, #6b7280);
    font-size: var(--text-sm, 14px);
    line-height: 1.45;
}
