.hidden-detail-root {
    position: relative;
    z-index: 20;
}

.hidden-whisper {
    display: inline-block;
    color: var(--muted);
    cursor: help;
    text-decoration: underline dotted color-mix(in oklab, var(--muted) 55%, transparent);
    text-underline-offset: 0.22em;
}

.hidden-whisper::selection,
.hidden-greeting::selection,
.hidden-footer-note::selection {
    background: color-mix(in oklab, var(--accent) 32%, transparent);
}

.hidden-footer-note {
    max-width: 58ch;
    margin: 0.45rem auto 0;
    color: var(--muted);
    font-size: 0.88rem;
    text-align: center;
    opacity: 0.82;
}

.hidden-toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    max-width: min(23rem, calc(100vw - 2rem));
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: color-mix(in oklab, var(--surface) 92%, var(--bg) 8%);
    color: var(--fg);
    box-shadow: 0 16px 40px color-mix(in oklab, #000 18%, transparent);
    font-size: 0.92rem;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(0.7rem);
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
}

.hidden-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hidden-corner-object {
    position: fixed;
    left: 0.65rem;
    bottom: 0.65rem;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in oklab, var(--border) 76%, transparent);
    border-radius: 8px;
    background: color-mix(in oklab, var(--surface) 84%, transparent);
    color: var(--muted);
    font: 1rem/1 monospace;
    cursor: pointer;
    opacity: 0.44;
    transition: opacity 160ms ease, transform 160ms ease, color 160ms ease;
    z-index: 21;
}

.hidden-corner-object:hover,
.hidden-corner-object:focus-visible {
    opacity: 1;
    color: var(--fg);
    transform: translateY(-2px);
}

.hidden-greeting {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.hidden-drift-note {
    position: fixed;
    top: 20%;
    left: 50%;
    max-width: min(28rem, calc(100vw - 2rem));
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--fg);
    box-shadow: 0 18px 52px color-mix(in oklab, #000 18%, transparent);
    transform: translate(-50%, -0.5rem);
    z-index: 40;
}

.hidden-drift-note pre {
    margin: 0.75rem 0 0;
    white-space: pre;
    overflow: auto;
    color: var(--muted);
}

.hidden-drift-note button {
    margin-top: 0.8rem;
}

.hidden-object-rail {
    position: fixed;
    left: 50%;
    bottom: 0.35rem;
    display: flex;
    gap: 0.3rem;
    transform: translateX(-50%);
    opacity: 0.18;
    transition: opacity 180ms ease;
    z-index: 20;
}

.hidden-object-rail:hover,
.hidden-object-rail:focus-within {
    opacity: 0.94;
}

.hidden-keepsake {
    width: 1.35rem;
    height: 1.35rem;
    border: 1px solid color-mix(in oklab, var(--border) 72%, transparent);
    border-radius: 50%;
    background: color-mix(in oklab, var(--surface) 78%, transparent);
    color: var(--muted);
    font: 0.8rem/1 monospace;
    cursor: pointer;
}

.hidden-keepsake:hover,
.hidden-keepsake:focus-visible {
    color: var(--fg);
    background: var(--surface);
}

.hidden-weather-window {
    position: fixed;
    right: 0.7rem;
    top: 7.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: color-mix(in oklab, var(--surface) 84%, transparent);
    color: var(--muted);
    font-size: 0.72rem;
    padding: 0.25rem 0.45rem;
    opacity: 0.24;
    z-index: 20;
}

.hidden-weather-window:hover,
.hidden-weather-window:focus-visible {
    opacity: 1;
    color: var(--fg);
}

.hidden-oldweb-stamp {
    position: fixed;
    right: 0.75rem;
    bottom: 4.2rem;
    max-width: 12rem;
    padding: 0.25rem 0.4rem;
    border: 1px dashed var(--border);
    background: var(--surface);
    color: var(--muted);
    font: 0.72rem/1.2 "Times New Roman", serif;
    text-align: center;
    opacity: 0.34;
    cursor: help;
    z-index: 20;
}

.hidden-oldweb-stamp:hover {
    opacity: 1;
}

.hidden-guestbook-line {
    color: var(--muted);
    font-size: 0.86rem;
    font-family: "Times New Roman", serif;
    opacity: 0.78;
}

.hidden-hover-memory {
    position: relative;
}

.hidden-hover-memory:hover::after {
    content: attr(data-hidden-memory);
    position: absolute;
    left: 0;
    top: 100%;
    width: min(28rem, 80vw);
    margin-top: 0.25rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.78rem;
    font-family: 'Noto', system-ui, sans-serif;
    font-weight: 400;
    line-height: 1.35;
    z-index: 30;
    box-shadow: 0 12px 28px color-mix(in oklab, #000 12%, transparent);
}

body.hidden-home-takeover .db-root {
    filter: saturate(0.9) contrast(1.03);
}

body.hidden-home-takeover .db-hero::before {
    content: "under construction, emotionally";
    display: inline-block;
    margin-bottom: 0.5rem;
    color: var(--muted);
    font: 0.82rem "Times New Roman", serif;
}

.hidden-terminal {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.hidden-terminal input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--code-bg);
    color: var(--fg);
    padding: 0.65rem;
    font: inherit;
}

.hidden-terminal-log {
    min-height: 10rem;
    white-space: pre-wrap;
}

.hidden-secret-link {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

body.hidden-late-night {
    --hidden-night-glow: color-mix(in oklab, var(--accent) 9%, transparent);
}

body.hidden-late-night::after {
    content: "";
    position: fixed;
    inset: auto 0 0;
    height: 18vh;
    pointer-events: none;
    background: linear-gradient(transparent, var(--hidden-night-glow));
    opacity: 0.32;
}

@media (max-width: 760px) {
    .hidden-toast {
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .hidden-corner-object {
        width: 1.75rem;
        height: 1.75rem;
    }
}
