:root {
    color-scheme: dark;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: #d7eee9;
    background: #06121b;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* {
    box-sizing: border-box;
}

body.site-page {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    margin: 0;
    padding: 76px clamp(20px, 5vw, 64px) clamp(20px, 5vw, 64px);
    display: grid;
    place-items: center;
    overflow-x: hidden;
    background:
        radial-gradient(ellipse at 12% 18%, rgb(67 190 145 / 28%), transparent 48%),
        radial-gradient(ellipse at 88% 82%, rgb(69 143 207 / 30%), transparent 48%),
        linear-gradient(135deg, #18343b, #142b3b 52%, #1b3544);
}

body.site-page--expired,
body.site-page:has(.countdown--expired) {
    background:
        radial-gradient(ellipse at 12% 18%, rgb(184 48 67 / 34%), transparent 48%),
        radial-gradient(ellipse at 88% 82%, rgb(151 40 66 / 36%), transparent 48%),
        linear-gradient(135deg, #48202a, #2b1c29 52%, #40232e);
}

body.site-page::before,
body.site-page::after {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    content: "";
}

body.site-page::before {
    opacity: 0.24;
    background-image:
        linear-gradient(rgb(66 255 196 / 8%) 1px, transparent 1px),
        linear-gradient(90deg, rgb(66 160 255 / 8%) 1px, transparent 1px),
        repeating-linear-gradient(0deg, transparent 0 7px, rgb(0 0 0 / 10%) 7px 8px);
    background-size: 64px 64px, 64px 64px, 100% 9px;
    animation: grid-drift 38s linear infinite;
}

body.site-page::after {
    inset: -35% 0 auto;
    height: 24%;
    background: linear-gradient(180deg, transparent, rgb(60 183 255 / 8%), transparent);
    animation: screen-scan 16s linear infinite;
}

body.site-page--expired::before,
body.site-page:has(.countdown--expired)::before {
    opacity: 0.1;
    background-image:
        linear-gradient(rgb(255 91 105 / 9%) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255 83 105 / 8%) 1px, transparent 1px),
        repeating-linear-gradient(0deg, transparent 0 7px, rgb(0 0 0 / 18%) 7px 8px);
}

body.site-page--expired::after,
body.site-page:has(.countdown--expired)::after {
    background: linear-gradient(180deg, transparent, rgb(255 47 68 / 10%), transparent);
}

body.site-page--expired .code-background {
    opacity: 0.08;
}

body.site-page:has(.countdown--expired) .code-background {
    opacity: 0.08;
}

@keyframes grid-drift {
    to {
        background-position: 0 64px, 64px 0, 0 9px;
    }
}

@keyframes screen-scan {
    to {
        transform: translateY(calc(100vh + 150%));
    }
}

.code-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.fireworks-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    opacity: 0.72;
    pointer-events: none;
}

.mission-layout {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: clamp(18px, 4vw, 32px);
    width: min(100%, 1300px);
}

.site-card {
    position: relative;
    z-index: 1;
    width: min(100%, 1300px);
    margin: 0;
    padding: clamp(24px, 6vw, 56px);
    text-align: center;
    background:
        linear-gradient(145deg, rgb(31 57 66 / 92%), rgb(24 47 61 / 93%)),
        repeating-linear-gradient(0deg, transparent 0 5px, rgb(130 235 220 / 4%) 5px 6px);
    border: 1px solid rgb(119 232 210 / 52%);
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgb(110 185 240 / 18%), 0 24px 70px rgb(0 0 0 / 28%), inset 0 0 36px rgb(93 179 190 / 10%);
    backdrop-filter: blur(14px);
}

.site-card::before,
.site-card::after {
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
    content: "";
}

.site-card::before {
    top: -1px;
    left: -1px;
    border-top: 2px solid #4ee8b7;
    border-left: 2px solid #4ee8b7;
}

.site-card::after {
    right: -1px;
    bottom: -1px;
    border-right: 2px solid #4aabff;
    border-bottom: 2px solid #4aabff;
}

.challenge-page .site-card {
    width: min(100%, 920px);
}

.mental-math-card {
    width: min(100%, 760px);
    margin-top: 64px;
}

.mental-math-form {
    display: grid;
    justify-items: center;
    gap: 18px;
}

.mental-math-form label {
    color: #fff0f0;
    font-family: Consolas, "Courier New", monospace;
    font-size: clamp(1.7rem, 7vw, 3.2rem);
    font-weight: 800;
}

.mental-math-form input {
    width: min(100%, 280px);
    text-align: center;
    font-family: Consolas, "Courier New", monospace;
    font-size: 1.5rem;
}

.mental-math-message {
    color: #ffabb0 !important;
}

.site-card h1,
.site-card h2,
.site-card h3 {
    color: #83ffd6;
    line-height: 1.2;
}

.site-card h1 {
    margin: 0 0 28px;
    font-size: clamp(2rem, 7vw, 3.2rem);
    letter-spacing: 0.025em;
    text-shadow: 0 0 24px rgb(76 232 183 / 20%);
}

.site-card p,
.site-card li {
    color: #c1d4d8;
    font-size: 1.1rem;
    line-height: 1.7;
}

.site-card a {
    color: #79f4ce;
    font-weight: 700;
    text-underline-offset: 3px;
}

.site-card a:focus-visible,
.site-card button:focus-visible,
.site-card input:focus-visible {
    outline: 3px solid #d5ff78;
    outline-offset: 3px;
}

.site-button,
.site-card button {
    display: inline-block;
    padding: 13px 22px;
    color: #04150f;
    background: #57e8b3;
    border: 1px solid #a1ffdc;
    border-radius: 4px;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.site-card a.site-button {
    color: #04150f;
}

.site-card button[hidden],
.site-button[hidden] {
    display: none;
}

.site-button:hover,
.site-card button:hover {
    background: #8affcf;
    box-shadow: 0 0 18px rgb(87 232 179 / 35%), 0 3px 0 rgb(18 92 75 / 70%);
    transform: translateY(-1px);
}

.site-button--danger,
.site-button--danger:hover {
    color: #fff;
    background: #a51f32;
    border-color: #ff7b88;
}

.site-button--danger:hover {
    background: #c92e43;
    box-shadow: 0 0 18px rgb(255 65 84 / 40%), 0 3px 0 rgb(76 9 20 / 80%);
}

.clue-card {
    padding: 20px 24px;
    background: rgb(14 43 48 / 90%);
    border-left: 4px solid #57e8b3;
    border-radius: 8px;
}

.clue-card + .clue-card {
    margin-top: 16px;
}

.clue-card--completed {
    filter: grayscale(1);
    opacity: 0.55;
}

.answer-form {
    display: grid;
    justify-items: start;
    gap: 10px;
    margin-top: 16px;
    text-align: left;
}

.answer-form label {
    color: #b7d5d0;
    font-weight: 700;
}

.answer-form input {
    width: min(100%, 520px);
}

.answer-form input:disabled,
.answer-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.answer-feedback {
    margin: 14px 0 0 !important;
    padding: 10px 12px;
    color: #ffe3e5 !important;
    background: rgb(105 25 37 / 42%);
    border: 1px solid rgb(255 104 119 / 72%);
    border-radius: 8px;
    text-align: left;
}

.answer-feedback--notice {
    color: #ffe6aa !important;
    background: rgb(92 65 15 / 35%);
    border-color: rgb(255 204 91 / 55%);
}

.answer-code strong {
    color: #d3a9ff;
    font-size: 1.4em;
}

.intro-video {
    display: block;
    width: min(100%, 480px);
    height: auto;
    max-height: 70vh;
    aspect-ratio: 9 / 16;
    object-fit: contain;
    margin: 24px auto;
    background: #000;
    border: 1px solid rgb(76 255 198 / 52%);
    border-radius: 12px;
}

.intro-video[hidden],
.intro-alert[hidden] {
    display: none;
}

.intro-transmission {
    min-height: 4.8em;
    margin: 24px auto;
    color: #83ffd6 !important;
    font-family: Consolas, "Courier New", monospace;
    font-size: clamp(1rem, 3vw, 1.25rem) !important;
    line-height: 1.6 !important;
    text-align: left;
    text-shadow: 0 0 12px rgb(76 232 183 / 35%);
    white-space: pre-wrap;
}

.intro-transmission.is-typing::after {
    color: #d3a9ff;
    content: "▋";
    animation: intro-cursor-blink 750ms steps(2, start) infinite;
}

.intro-transmission strong {
    color: #d3a9ff;
}

@keyframes intro-cursor-blink {
    to {
        visibility: hidden;
    }
}

.intro-alert {
    position: fixed;
    inset: 0;
    z-index: 15;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 20px;
    padding: 24px;
    color: #fff0f1;
    background: radial-gradient(ellipse at center, #8e1120, #26050b 78%);
    box-shadow: inset 0 0 90px rgb(255 35 55 / 55%);
    text-align: center;
    animation: intro-alert-flash 220ms steps(2, end) 6;
}

.intro-alert strong {
    color: #fff;
    font-size: clamp(2.2rem, 10vw, 6rem);
    letter-spacing: 0.08em;
    text-shadow: 0 0 24px rgb(255 79 91 / 85%);
}

.intro-alert span {
    font-size: clamp(1.2rem, 5vw, 2.4rem);
    font-weight: 700;
}

@keyframes intro-alert-flash {
    50% {
        filter: brightness(1.8);
    }
}

.intro-status {
    min-height: 1.7em;
}

.intro-credit {
    margin: 12px 0 0 !important;
    font-size: 0.75rem !important;
    opacity: 0.72;
}

.mission-notification {
    margin: 0 0 24px;
    padding: 14px 18px;
    color: #ffe3e5 !important;
    background: rgb(105 25 37 / 42%);
    border: 1px solid rgb(255 104 119 / 72%);
    border-left-width: 5px;
    border-radius: 8px;
    text-align: left;
}

.mission-complete {
    margin: 0 0 24px;
    padding: 16px 20px;
    color: #dffff3 !important;
    background: linear-gradient(120deg, rgb(15 103 83 / 72%), rgb(20 91 135 / 72%));
    border: 1px solid #65f2c4;
    border-radius: 8px;
    box-shadow: 0 0 24px rgb(68 235 190 / 24%);
    font-weight: 700;
}

.epreuves-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(12px, 2.5vw, 24px);
}

.epreuve-button {
    display: grid;
    aspect-ratio: 1;
    align-content: center;
    justify-items: center;
    gap: 8px;
    padding: 12px;
    color: #d7eee9 !important;
    background: linear-gradient(145deg, rgb(14 44 53 / 96%), rgb(5 20 31 / 96%));
    border: 1px solid rgb(76 189 210 / 42%);
    border-radius: 7px;
    box-shadow: inset 0 0 20px rgb(26 150 196 / 8%), 0 5px 0 rgb(2 10 16 / 65%);
    text-decoration: none;
    transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.epreuve-button:hover {
    color: #fff !important;
    border-color: #57e8b3;
    box-shadow: 0 0 22px rgb(26 190 210 / 24%), inset 0 0 18px rgb(26 245 177 / 8%);
    transform: translateY(-2px);
}

.epreuve-button--bloquee {
    background: linear-gradient(145deg, rgb(76 28 39 / 96%), rgb(31 15 23 / 96%));
    border-color: rgb(255 104 119 / 70%);
}

.epreuve-button--bloquee .epreuve-number {
    color: #ff7886;
    text-shadow: 0 0 14px rgb(255 87 108 / 45%);
}

.epreuve-button--debloquee {
    background: linear-gradient(145deg, rgb(21 48 78 / 96%), rgb(8 23 43 / 96%));
    border-color: rgb(91 171 255 / 75%);
}

.epreuve-button--debloquee .epreuve-number {
    color: #7fc2ff;
    text-shadow: 0 0 14px rgb(76 163 255 / 45%);
}

.epreuve-button--terminee {
    background: linear-gradient(145deg, rgb(20 62 47 / 96%), rgb(7 29 24 / 96%));
    border-color: rgb(90 231 153 / 72%);
}

.epreuve-button--terminee .epreuve-number {
    color: #75efa7;
    text-shadow: 0 0 14px rgb(73 228 141 / 45%);
}

.epreuve-button--code-obtenu {
    background: linear-gradient(145deg, rgb(55 36 83 / 96%), rgb(25 17 45 / 96%));
    border-color: rgb(190 140 255 / 78%);
    box-shadow: 0 0 18px rgb(157 104 232 / 18%), inset 0 0 18px rgb(157 104 232 / 10%);
}

.epreuve-button--code-obtenu .epreuve-number {
    color: #d3a9ff;
    text-shadow: 0 0 14px rgb(179 123 255 / 55%);
}

.epreuve-code {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: #fff;
    background: rgb(157 104 232 / 28%);
    border: 1px solid rgb(210 176 255 / 70%);
    border-radius: 8px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 1.1rem;
    font-weight: 700;
}

.epreuve-number {
    color: #83ffd6;
    font-family: Consolas, "Courier New", monospace;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    text-shadow: 0 0 14px rgb(87 232 179 / 48%);
}

.epreuve-label {
    color: #a7d6c7;
    font-size: clamp(0.75rem, 1.6vw, 0.95rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.countdown {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    width: max-content;
    max-width: 100%;
    margin: 0;
    padding: 9px 16px;
    overflow: hidden;
    color: #e9fff7;
    background: linear-gradient(135deg, rgb(72 14 24 / 96%), rgb(21 10 19 / 96%));
    border: 1px solid #ff5361;
    border-radius: 4px;
    box-shadow: 0 0 20px rgb(255 60 80 / 23%), inset 0 0 20px rgb(255 43 62 / 8%);
}

.countdown-stack {
    position: fixed;
    top: 12px;
    left: 50%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: max-content;
    max-width: calc(100vw - 24px);
    transform: translateX(-50%);
}

.treasure-notice {
    width: 100%;
    padding: 8px 14px;
    color: #fff0b3;
    background: linear-gradient(135deg, rgb(91 62 17 / 96%), rgb(49 38 19 / 97%));
    border: 1px solid #f3c75e;
    border-radius: 4px;
    box-shadow: 0 0 18px rgb(243 199 94 / 24%);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
}

.treasure-notice[hidden] {
    display: none;
}

.countdown-title {
    margin: 0;
    color: #ff7b83 !important;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
    text-transform: uppercase;
}

.countdown-grid {
    display: flex;
    align-items: center;
    gap: 12px;
}

.countdown-unit {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.countdown-value {
    color: #fff0f0;
    font-size: 1.2rem;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 0 12px rgb(255 79 91 / 65%);
}

.countdown-label {
    color: #ffabb0;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.countdown--complete {
    background: linear-gradient(135deg, rgb(12 83 69 / 97%), rgb(13 55 84 / 97%));
    border-color: #54efc2;
    box-shadow: 0 0 22px rgb(61 232 188 / 30%), inset 0 0 20px rgb(60 175 255 / 10%);
}

.countdown--complete .countdown-title {
    color: #74ffd4 !important;
}

.countdown--complete .countdown-value {
    color: #dffff3;
    text-shadow: 0 0 12px rgb(76 255 198 / 55%);
}

.countdown--complete .countdown-label {
    color: #9ee8d7;
}

.countdown--expired {
    border-color: #ff394d;
    box-shadow: 0 0 26px rgb(255 40 60 / 40%), inset 0 0 24px rgb(255 35 55 / 12%);
}

.countdown--expired .countdown-title {
    color: #ff6675 !important;
}

.confetti-layer {
    position: fixed;
    inset: 0;
    z-index: 20;
    overflow: hidden;
    pointer-events: none;
}

.confetti-piece {
    position: absolute;
    top: -16px;
    left: var(--confetti-x);
    width: 9px;
    height: 14px;
    background: var(--confetti-color);
    opacity: 0.95;
    animation: confetti-fall var(--confetti-duration) linear var(--confetti-delay) forwards;
}

@keyframes confetti-fall {
    to {
        transform: translate3d(var(--confetti-drift), 110vh, 0) rotate(720deg);
    }
}

.site-card input {
    max-width: 100%;
    padding: 12px 14px;
    color: #e9fff7;
    background: #081820;
    border: 1px solid #4a9e85;
    border-radius: 8px;
    font: inherit;
}

.admin-panel {
    text-align: left;
}

.admin-panel h1 {
    text-align: center;
}

.admin-panel label {
    color: #b7d5d0;
    font-weight: 700;
}

.admin-panel select {
    padding: 10px 12px;
    color: #e9fff7;
    background: #081820;
    border: 1px solid #4a9e85;
    border-radius: 8px;
    font: inherit;
}

.admin-login {
    display: grid;
    gap: 12px;
    width: min(100%, 420px);
    margin: 0 auto;
}

.admin-login .site-button {
    margin-top: 8px;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-header h1 {
    margin-bottom: 0;
    text-align: left;
}

.admin-message,
.admin-notice {
    margin: 0 0 20px;
    padding: 12px 16px;
    color: #b9ffe2;
    background: rgb(16 72 56 / 42%);
    border: 1px solid rgb(87 232 179 / 48%);
    border-radius: 8px;
}

.admin-message--error {
    color: #ffe3e5;
    background: rgb(105 25 37 / 42%);
    border-color: rgb(255 104 119 / 72%);
}

.admin-redirect,
.admin-timer,
.admin-reset {
    margin-bottom: 28px;
    padding: 18px;
    background: rgb(8 24 32 / 82%);
    border: 1px solid rgb(76 255 198 / 35%);
    border-radius: 10px;
}

.admin-reset {
    background: linear-gradient(145deg, rgb(70 12 23 / 82%), rgb(29 10 18 / 88%));
    border-color: rgb(255 83 105 / 65%);
}

.admin-redirect h2,
.admin-timer h2,
.admin-reset h2 {
    margin-top: 0;
    color: #83ffd6;
}

.admin-reset h2 {
    color: #ff7886;
}

.admin-redirect-form {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-redirect-form label {
    display: grid;
    flex: 1 1 100%;
    gap: 8px;
}

.admin-redirect-form select {
    min-width: min(100%, 260px);
}

.admin-timer-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 520px;
    margin-bottom: 16px;
}

.admin-timer-fields label {
    display: grid;
    gap: 8px;
}

.admin-timer-form {
    display: grid;
    justify-items: start;
    gap: 12px;
    margin: 16px 0;
}

.admin-timer-form label {
    display: grid;
    gap: 8px;
    width: min(100%, 520px);
}

.admin-timer-form input {
    width: 100%;
}

.admin-timer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.admin-live-status {
    margin: 0;
    color: #83ffd6;
    font-size: 0.9rem;
}

.admin-sync-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-sync-controls .site-button {
    flex: 0 0 auto;
    padding: 9px 14px;
    font-size: 0.8rem;
}

.admin-list {
    display: grid;
    gap: 12px;
}

.admin-row {
    display: grid;
    grid-template-columns: minmax(130px, 0.7fr) minmax(280px, 1fr) minmax(230px, 1fr);
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgb(8 24 32 / 82%);
    border: 1px solid rgb(76 255 198 / 24%);
    border-radius: 10px;
}

.admin-stage h2 {
    margin: 0 0 6px;
    color: #83ffd6;
    font-size: 1.05rem;
}

.admin-status {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.admin-status--bloquee {
    color: #ff7886;
}

.admin-status--debloquee {
    color: #7fc2ff;
}

.admin-status--terminee {
    color: #75efa7;
}

.admin-status-form,
.admin-code {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-status-form label {
    width: 100%;
}

.admin-panel .admin-auto-unlock {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-panel .admin-auto-unlock input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    accent-color: #57e8b3;
}

.admin-code {
    justify-content: space-between;
}

.admin-code-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-code-actions form {
    margin: 0;
}

.admin-code strong {
    color: #d3a9ff;
    font-size: 1.25rem;
}

.admin-timer-status--complete {
    color: #74ffd4;
    text-shadow: 0 0 12px rgb(76 255 198 / 40%);
}

.admin-timer-status--complete::after {
    content: " ✓";
}

.admin-answer-list {
    display: grid;
    grid-column: 1 / -1;
    gap: 12px;
}

.admin-answer-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
}

.admin-answer-form label {
    display: grid;
    gap: 8px;
}

.admin-answer-form input {
    width: 100%;
}

.admin-answer-note {
    margin: 0;
    color: #b7d5d0;
}

.admin-answer-note strong {
    color: #d3a9ff;
}

.admin-panel button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 760px) {
    .epreuves-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-row > *,
    .admin-answer-form > * {
        min-width: 0;
    }
}

@media (max-width: 480px) {
    body.site-page {
        padding: 68px 16px max(20px, env(safe-area-inset-bottom));
    }

    .site-card {
        padding: 22px 16px;
    }

    .site-card p,
    .site-card li {
        font-size: 1rem;
    }

    .site-card button,
    .site-button {
        min-height: 44px;
    }

    .answer-form button,
    .admin-panel .site-button {
        width: 100%;
    }

    .countdown {
        gap: 10px;
        padding: 8px 10px;
    }

    .countdown-title {
        font-size: 0.7rem;
    }

    .countdown-grid {
        gap: 8px;
    }

    .countdown-unit {
        gap: 2px;
    }

    .countdown-value {
        font-size: 1rem;
    }

    .countdown-label {
        font-size: 0.58rem;
    }

    .epreuves-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .epreuve-button {
        min-height: 112px;
        padding: 10px 6px;
    }

    .admin-header,
    .admin-row {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .admin-sync-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-header {
        flex-direction: column;
    }

    .admin-redirect-form {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-timer-fields {
        grid-template-columns: 1fr;
    }

    .admin-timer-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-timer-actions form {
        width: 100%;
    }

    .admin-answer-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-redirect,
    .admin-timer {
        padding: 14px;
    }

}

@media (prefers-reduced-motion: reduce) {
    body.site-page::before,
    body.site-page::after {
        animation: none;
    }

    .confetti-piece {
        animation: none;
    }

    .intro-transmission.is-typing::after,
    .intro-alert {
        animation: none;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
