.easter-egg {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(250, 250, 250, .92);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .35s ease, visibility .35s ease;
}

.easter-egg.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.easter-egg__card {
    position: relative;
    width: min(780px, 100%);
    overflow: hidden;
    padding: clamp(24px, 4vw, 40px);
    border: 5px solid var(--ink);
    border-radius: 18px;
    background: var(--acid);
    box-shadow: 14px 14px 0 var(--ink);
}

.easter-egg__card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(5, 5, 5, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(5, 5, 5, .08) 1px, transparent 1px);
    background-size: 32px 32px;
    animation: loaderGrid 2.8s steps(8) infinite;
}

.easter-egg__card > * {
    position: relative;
    z-index: 1;
}

.easter-egg__card h2 {
    margin-bottom: 18px;
    font-size: clamp(34px, 6vw, 72px);
    line-height: 1;
}

.easter-egg__card p {
    margin-bottom: 18px;
    font-size: clamp(18px, 2.4vw, 24px);
    line-height: 1.35;
}

.easter-egg__hud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    font-weight: 900;
}

.easter-egg__arena {
    position: relative;
    height: min(38vh, 260px);
    min-height: 210px;
    overflow: hidden;
    margin-bottom: 18px;
    border: 3px dashed var(--ink);
    border-radius: 12px;
    background: rgba(255, 255, 255, .58);
}

.easter-egg__target {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    border: 4px solid var(--ink);
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 0 12px rgba(255, 103, 77, .18);
    transform: translate(-50%, -50%);
    transition: left .22s ease, top .22s ease, transform .16s ease, background .2s ease;
}

.easter-egg__target:hover {
    transform: translate(-50%, -50%) scale(1.08);
}

.easter-egg__target.is-done {
    background: var(--sky);
    animation: loaderPing 1.2s ease-out infinite;
}

.easter-egg__message {
    min-height: 32px;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 900;
}

body.dot-focus .site-shell,
body.dot-focus .brief-shell,
body.dot-focus .error-shell {
    filter: contrast(1.04) saturate(1.04);
}

body.dot-focus::before {
    content: "./dot focus mode";
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 1400;
    padding: 10px 14px;
    border: 2px dashed var(--ink);
    border-radius: 999px;
    background: var(--acid);
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    pointer-events: none;
}

body.dot-focus::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1390;
    pointer-events: none;
    background:
        radial-gradient(circle at calc(50% + var(--mx) * 28vw) calc(50% + var(--my) * 28vh), rgba(219, 255, 61, .22), transparent 22%),
        repeating-linear-gradient(90deg, transparent 0 28px, rgba(5, 5, 5, .025) 28px 29px);
    mix-blend-mode: multiply;
}

body.dot-focus .cursor-dot {
    background: var(--acid);
}

body.dot-focus .path,
body.dot-focus .preloader__route,
body.dot-focus .error-map path {
    stroke: rgba(5, 5, 5, .62);
    stroke-dasharray: 3 10;
}

body.dot-focus .btn--solid {
    box-shadow: 10px 10px 0 var(--sky);
}

body.dot-focus .btn--dash,
body.dot-focus .nav,
body.dot-focus .quiz-option,
body.dot-focus .brief-type {
    border-style: solid;
}

.easter-egg__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.easter-egg__close {
    min-height: 50px;
    padding: 10px 20px;
    border: 3px solid var(--ink);
    border-radius: 999px;
    background: var(--ink);
    color: var(--white);
    font: inherit;
    font-weight: 900;
}

.easter-egg__reset {
    min-height: 50px;
    padding: 10px 20px;
    border: 3px dashed var(--ink);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-weight: 900;
}
