/* Appended environment rules for the three worlds and the arcade room.
   Written as one patch so the scenery stays with the place it belongs to. */

/* ═══ Adventure Time: mountains, a path, a candy tree, flowers ═══════════ */
.at__mountains {
    position: absolute; left: -6%; right: -6%; bottom: 34%; height: 28%;
    color: oklch(72% 0.06 285 / 0.5);
}
.at__mountains-svg { width: 100%; height: 100%; }
.at__mountains-svg path { fill: currentColor; }
.at__mtn-snow path { fill: oklch(99% 0.01 220 / 0.65); }

.at__tree {
    position: absolute; right: 26%; bottom: 4%;
    width: clamp(120px, 13vw, 200px); height: clamp(190px, 21vw, 320px);
    color: oklch(70% 0.13 350);
    filter: drop-shadow(0 16px 18px oklch(30% 0.05 285 / 0.3));
}
.at__tree-svg { width: 100%; height: 100%; }
.at__tree-svg path { stroke: oklch(58% 0.09 60); fill: none; }
.at__tree-svg circle { fill: currentColor; }
.at__tree-svg .at__tree-swirl { fill: none; stroke: oklch(88% 0.08 350); stroke-width: 6; }

.at__path {
    position: absolute; left: 24%; bottom: 0; width: 54%; height: 20%;
    background: linear-gradient(180deg, oklch(88% 0.06 88), oklch(82% 0.07 86));
    clip-path: polygon(42% 0, 58% 0, 92% 100%, 8% 100%);
    opacity: 0.8;
}
.at__flowers { position: absolute; left: 0; right: 0; bottom: 0; height: 7%; }
.at__flowers i {
    position: absolute; bottom: 30%;
    width: 7px; height: 7px; border-radius: 50%;
    background: oklch(96% 0.08 96);
    box-shadow: 0 0 0 2px oklch(72% 0.13 350 / 0.5);
}
.at__flowers i:nth-child(1) { left: 8%; bottom: 46%; }
.at__flowers i:nth-child(2) { left: 17%; bottom: 28%; }
.at__flowers i:nth-child(3) { left: 33%; bottom: 52%; }
.at__flowers i:nth-child(4) { left: 62%; bottom: 34%; }
.at__flowers i:nth-child(5) { left: 78%; bottom: 48%; }
.at__flowers i:nth-child(6) { left: 88%; bottom: 26%; }

/* ═══ Summer: wires, foreground grass ════════════════════════════════════ */
.shd__wires {
    position: absolute; left: 0; right: 0; top: 0; height: 30%;
    color: oklch(30% 0.02 60 / 0.7);
    pointer-events: none;
}
.shd__wires-svg { width: 100%; height: 100%; }
.shd__wires-svg g { stroke: currentColor; }
.shd__birds { stroke: oklch(24% 0.02 60 / 0.8); }
.shd__grass { position: absolute; left: -4%; right: -4%; bottom: 0; height: 15%; }
.shd__grass i {
    position: absolute; bottom: -6%;
    width: 2px; height: 62%;
    background: linear-gradient(180deg, oklch(46% 0.09 140 / 0.9), oklch(30% 0.07 140 / 0.9));
    transform-origin: bottom center;
    animation: blade-sway 7s var(--ease-out) infinite alternate;
}
.shd__grass i:nth-child(1) { left: 4%; height: 54%; animation-delay: -1s; }
.shd__grass i:nth-child(2) { left: 12%; height: 78%; animation-delay: -2.4s; }
.shd__grass i:nth-child(3) { left: 21%; height: 46%; animation-delay: -0.6s; }
.shd__grass i:nth-child(4) { left: 38%; height: 84%; animation-delay: -3.2s; }
.shd__grass i:nth-child(5) { left: 58%; height: 58%; animation-delay: -1.8s; }
.shd__grass i:nth-child(6) { left: 71%; height: 88%; animation-delay: -4s; }
.shd__grass i:nth-child(7) { left: 84%; height: 50%; animation-delay: -2.8s; }
.shd__grass i:nth-child(8) { left: 94%; height: 72%; animation-delay: -1.2s; }
@keyframes blade-sway { from { transform: rotate(-3deg); } to { transform: rotate(4deg); } }

/* ── found objects ─────────────────────────────────────────────────────── */
.shd__finds {
    position: relative; z-index: 14;
    display: grid; gap: 6px;
    padding: 0 var(--page-gutter) var(--space-4);
    padding-left: clamp(var(--space-16), 6vw, 120px);
}
.shd__finds-label {
    font-family: var(--font-mono); font-size: var(--text-3xs);
    letter-spacing: var(--tracking-caps); text-transform: uppercase;
    color: oklch(42% 0.03 60);
}
.shd__finds-row { display: flex; align-items: end; gap: clamp(var(--space-4), 2.4vw, var(--space-6)); }
.find {
    display: grid; gap: 4px; justify-items: center;
    background: none; border: 0; padding: 0;
    color: oklch(24% 0.018 66);
    cursor: pointer;
}
.find__object { position: relative; display: block; width: 46px; height: 36px; }
.find__label {
    font-family: var(--font-mono); font-size: var(--text-3xs);
    letter-spacing: 0.1em; text-transform: uppercase;
    color: oklch(36% 0.02 66);
}
.find:hover .find__label, .find:focus-visible .find__label { color: oklch(24% 0.018 66); }
.find:hover .find__object { transform: translateY(-2px); }
.find__object { transition: transform var(--dur-fast) var(--ease-out); }

.find__object--radio {
    border-radius: 3px;
    background: linear-gradient(180deg, oklch(52% 0.05 50), oklch(38% 0.04 50));
    box-shadow: inset 0 0 0 1px oklch(20% 0.02 60 / 0.5);
}
.find__object--radio::before {
    content: ''; position: absolute; inset: 6px 22px 6px 6px;
    background: repeating-linear-gradient(180deg, oklch(28% 0.03 60) 0 2px, transparent 2px 4px);
}
.find__object--radio i {
    position: absolute; right: 6px; top: 7px;
    width: 9px; height: 9px; border-radius: 50%;
    background: oklch(86% 0.07 80);
}
.find__object--photo {
    background: oklch(98% 0.01 90);
    box-shadow: inset 0 0 0 4px oklch(98% 0.01 90), 0 3px 6px oklch(20% 0.02 60 / 0.25);
    overflow: hidden;
}
.find__object--photo::before {
    content: ''; position: absolute; inset: 6px;
    background: linear-gradient(150deg, oklch(74% 0.06 220), oklch(86% 0.05 90));
}
.find__object--dusk { overflow: hidden; }
.find__object--dusk::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, oklch(70% 0.08 60) 0%, oklch(88% 0.07 76) 60%, oklch(50% 0.06 40) 62%, oklch(30% 0.03 40) 100%);
}
.find__object--dusk i {
    position: absolute; left: 50%; bottom: 38%; width: 16px; height: 16px;
    translate: -50% 0; border-radius: 50%;
    background: oklch(98% 0.08 88);
    box-shadow: 0 0 12px 4px oklch(92% 0.09 84 / 0.6);
}
.find[aria-expanded='true'] .find__object { outline: 1px solid oklch(48% 0.07 50); outline-offset: 3px; }

.find__note {
    position: fixed; z-index: var(--z-panel);
    right: var(--page-gutter); bottom: 96px;
    width: min(420px, calc(100vw - 2 * var(--space-4)));
    padding: var(--space-5);
    background: oklch(98% 0.012 84 / 0.97);
    border: 1px solid oklch(22% 0.018 70 / 0.25);
    box-shadow: 0 24px 50px -30px oklch(20% 0.03 60 / 0.7);
    color: oklch(24% 0.018 66);
    animation: find-in var(--dur-base) var(--ease-out) both;
}
@keyframes find-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.find__kicker {
    font-family: var(--font-mono); font-size: var(--text-3xs);
    letter-spacing: var(--tracking-caps); text-transform: uppercase;
    color: oklch(48% 0.06 50);
}
.find__quote {
    margin-top: var(--space-2);
    font-family: var(--font-prose);
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.55;
    color: oklch(22% 0.018 66);
}
.find__acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); margin-top: var(--space-4); }
.find__link {
    font-family: var(--font-mono); font-size: var(--text-2xs);
    letter-spacing: 0.1em; text-transform: uppercase;
    color: oklch(32% 0.08 45);
    text-decoration: none; border-bottom: 1px solid currentColor;
}
.find__close {
    min-height: var(--control-md); padding: 0 var(--space-3);
    font-family: var(--font-mono); font-size: var(--text-3xs);
    letter-spacing: 0.1em; text-transform: uppercase;
    color: oklch(40% 0.03 60);
    border: 1px solid oklch(22% 0.018 70 / 0.25);
    cursor: pointer;
}

/* ═══ Scream: the room ═══════════════════════════════════════════════════ */
.sc__window {
    position: absolute; left: 5%; top: 16%;
    width: clamp(140px, 18vw, 240px); height: clamp(180px, 26vh, 300px);
    border: 3px solid oklch(16% 0.008 30);
    background: linear-gradient(180deg, oklch(10% 0.02 250), oklch(18% 0.03 230));
    box-shadow: inset 0 0 60px oklch(0% 0 0 / 0.9), 0 0 40px -18px oklch(60% 0.06 230 / 0.4);
    overflow: hidden;
}
.sc__night {
    position: absolute; inset: 0;
    background: radial-gradient(58% 44% at 62% 28%, oklch(64% 0.04 230 / 0.4), transparent 70%);
}
.sc__rain {
    position: absolute; inset: -12%;
    background: repeating-linear-gradient(78deg, transparent 0 8px, oklch(82% 0.04 230 / 0.28) 8px 9px);
    animation: rain-fall 1.3s linear infinite;
}
.sc__mullion { position: absolute; background: oklch(10% 0.006 30); }
.sc__mullion--v { left: 50%; top: 0; bottom: 0; width: 4px; translate: -50% 0; }
.sc__mullion--h { top: 50%; left: 0; right: 0; height: 4px; translate: 0 -50%; }
.sc__blinds {
    position: absolute; inset: -10%;
    background: repeating-linear-gradient(176deg, transparent 0 16px, oklch(0% 0 0 / 0.55) 16px 30px);
    transform: rotate(-7deg);
    opacity: 0.45;
    mix-blend-mode: multiply;
    pointer-events: none;
}
.sc__lamp {
    position: absolute; right: 6%; bottom: 18%;
    width: clamp(160px, 22vw, 300px); aspect-ratio: 1;
    background: radial-gradient(circle, oklch(52% 0.16 30 / 0.4) 0%, transparent 66%);
}
.sc__table {
    position: absolute; left: 0; right: 0; bottom: 0; height: 16%;
    background: linear-gradient(180deg, oklch(10% 0.008 30), oklch(5% 0.004 20));
    border-top: 1px solid oklch(100% 0 0 / 0.06);
}

@media (max-width: 900px) {
    .at__tree { right: 6%; bottom: 30%; width: 110px; height: 176px; }
    .at__mountains { bottom: 40%; height: 20%; }
    .shd__wires { height: 22%; }
    .shd__finds { padding-left: var(--page-gutter); }
    .sc__window { left: -4%; top: 10%; opacity: 0.55; }
    .sc__lamp { right: -8%; bottom: 26%; }
}
