.public-footer .afterhours-trigger { appearance: none; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: inherit; }
.public-footer .afterhours-trigger:focus-visible { outline: 2px solid #00f493; outline-offset: 4px; }
.afterhours-game .afterhours-content { padding: 0 24px 24px; }
.afterhours-game .afterhours-eyebrow { color: #286648; font-size: .72rem; letter-spacing: .18em; margin: 0 0 8px; }
.afterhours-game .afterhours-score { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid #315143; font-variant-numeric: tabular-nums; }
.afterhours-game .afterhours-score strong { color: #176340; }
.afterhours-game .afterhours-status { min-height: 3em; margin: 18px 0 8px; }
.afterhours-game .afterhours-pads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.afterhours-game [data-afterhours-pad] { display: grid; gap: 8px; min-height: 104px; padding: 14px; border: 1px solid #43765e; border-radius: 12px; background: #102a20; color: #d9ffec; font: 700 1.15rem/1.2 monospace; text-align: left; touch-action: manipulation; cursor: pointer; }
.afterhours-game [data-afterhours-pad] span, .afterhours-game [data-afterhours-pad] small { font-size: .7rem; font-weight: 400; }
.afterhours-game [data-afterhours-pad]:disabled { opacity: 1; cursor: default; }
.afterhours-game [data-afterhours-pad].is-lit { background: #00f493; color: #03110d; border-color: #b7ffdd; }
.afterhours-game button:focus-visible { outline: 2px solid #d9ffec; outline-offset: 3px; }
.afterhours-game .afterhours-start { width: 100%; margin-top: 22px; padding: 14px; border: 1px solid #00f493; border-radius: 8px; background: #00f493; color: #03110d; font: inherit; font-weight: 700; cursor: pointer; }
.afterhours-game .afterhours-start:disabled { opacity: .45; cursor: default; }
.afterhours-game .afterhours-hint { font-size: .8rem; color: #496555; }

/* Public secret room theme; specificity preserves it when shared assets load later. */
body dialog.app-dialog.afterhours-game[data-app-dialog][aria-labelledby] {
    width: min(620px, calc(100vw - 32px));
    border: 1px solid rgba(131, 244, 184, .3);
    border-radius: 18px;
    background: radial-gradient(ellipse at top left, rgba(0, 244, 147, .09), transparent 65%), #03110d;
    color: #f1fff7;
    font-family: "Rajdhani", system-ui, sans-serif;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .65), 0 0 40px rgba(0, 244, 147, .06);
    color-scheme: dark;
}
body dialog.app-dialog.afterhours-game[data-app-dialog][aria-labelledby]::backdrop {
    background: rgba(1, 9, 6, .78);
}
body dialog.app-dialog.afterhours-game[data-app-dialog][aria-labelledby] .app-dialog-header {
    border-color: rgba(131, 244, 184, .2);
}
body dialog.app-dialog.afterhours-game[data-app-dialog][aria-labelledby] .app-dialog-header h2 {
    color: #f1fff7;
    font-family: "Orbitron", "Rajdhani", system-ui, sans-serif;
    font-size: clamp(23px, 5vw, 30px);
    letter-spacing: -.03em;
}
body dialog.app-dialog.afterhours-game[data-app-dialog][aria-labelledby] .app-dialog-header .afterhours-eyebrow {
    margin: 0 0 10px;
    color: #00f493;
    font-size: 11px;
    letter-spacing: .2em;
}
body dialog.app-dialog.afterhours-game[data-app-dialog][aria-labelledby] .app-dialog-close {
    border-color: rgba(131, 244, 184, .3) !important;
    background: rgba(131, 244, 184, .06) !important;
    color: #a9d9c0 !important;
}
body dialog.app-dialog.afterhours-game[data-app-dialog][aria-labelledby] .app-dialog-close:hover {
    border-color: #00f493 !important;
    background: #173329 !important;
    color: #f1fff7 !important;
    box-shadow: none !important;
}
body dialog.app-dialog.afterhours-game[data-app-dialog][aria-labelledby] button:focus-visible {
    outline: 2px solid #00f493;
    outline-offset: 3px;
}
.afterhours-game #afterhours-help { color: #a9d9c0; line-height: 1.5; margin: 18px 0; }
.afterhours-game .afterhours-score { padding: 14px 16px; border: 1px solid rgba(131, 244, 184, .2); border-radius: 10px; background: rgba(131, 244, 184, .04); color: #a9d9c0; }
.afterhours-game .afterhours-score strong { color: #00f493; margin-left: 5px; }
.afterhours-game .afterhours-status { color: #f1fff7; line-height: 1.4; }
.afterhours-game [data-afterhours-pad] { border-color: rgba(131, 244, 184, .3); background: linear-gradient(145deg, #173329, #0b1e16); box-shadow: inset 0 1px rgba(241, 255, 247, .04); }
.afterhours-game [data-afterhours-pad] span, .afterhours-game [data-afterhours-pad] small { color: #a9d9c0; }
.afterhours-game [data-afterhours-pad].is-lit { background: #00f493; box-shadow: 0 0 22px rgba(0, 244, 147, .25); }
.afterhours-game [data-afterhours-pad].is-lit span, .afterhours-game [data-afterhours-pad].is-lit small { color: #03110d; }
.afterhours-game .afterhours-start { letter-spacing: .03em; }
.afterhours-game .afterhours-hint { color: #a9d9c0; line-height: 1.4; margin-bottom: 0; }
@media (max-width: 640px) {
    .afterhours-game .afterhours-content { padding: 0 16px 20px; }
    .afterhours-game .afterhours-score { padding: 12px; gap: 10px; }
    .afterhours-game [data-afterhours-pad] { min-height: 94px; }
}
.afterhours-game .afterhours-sound { display: block; margin: 16px auto 0; padding: 8px 16px; min-height: 44px; border: 1px solid rgba(131, 244, 184, .3); border-radius: 8px; background: #10231c; color: #a9d9c0; font: inherit; cursor: pointer; }
.afterhours-game .afterhours-sound:hover { border-color: #00f493; color: #f1fff7; }
