:root {
    color-scheme: dark;
    --night: #242b40;
    --cream: #f8e7ce;
    --pink: #eda6ab;
    --muted: #cbb9d3;
    --border: #9785a5;
    --paper: #fff0d9;
    --ink: #493b55;
    font-family: "Pixelify Sans", "Courier New", monospace;
}
* {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
body {
    color: var(--cream);
    background: var(--night);
}
button,
input,
textarea {
    font: inherit;
}
button {
    cursor: pointer;
}
button,
a {
    -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #ffe6a7;
    outline-offset: 5px;
}
button {
    border-radius: 0;
}
button:disabled {
    cursor: default;
    opacity: 0.3;
}
[hidden] {
    display: none !important;
}
.world-bg,
.world-shade {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.world-bg {
    object-fit: cover;
    image-rendering: pixelated;
    opacity: 0.32;
}
.world-shade {
    background: linear-gradient(90deg, #242438e8, #29263ac4 55%, #24243890);
}
header {
    position: fixed;
    z-index: 10;
    inset: 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px clamp(20px, 4vw, 64px);
    background: linear-gradient(#242438ba, transparent);
    gap: 16px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 23px;
    white-space: nowrap;
}
.brand span {
    color: var(--pink);
}
.edition {
    display: flex;
    align-items: center;
    gap: 10px;
}
.edition > span {
    color: var(--muted);
    font-size: 13px;
    margin-right: 16px;
}

#motion {
    border: 1px solid #bdabc266;
    color: var(--cream);
    background: #29283cc9;
    padding: 9px 12px;
    font-size: 13px;
}

#motion:hover {
    border-color: var(--pink);
}
.skip-link {
    position: fixed;
    top: -60px;
    left: 20px;
    z-index: 30;
    background: var(--cream);
    color: var(--night);
    padding: 12px;
}
.skip-link:focus {
    top: 14px;
}
main {
    position: relative;
    display: flex;
    width: 100%;
    height: 100svh;
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}
main::-webkit-scrollbar {
    display: none;
}
main.traveling {
    scroll-snap-type: none;
}
.chapter {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    height: 100%;
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
}
.panel-scroll {
    position: relative;
    z-index: 2;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 112px clamp(24px, 6vw, 96px) 110px;
    scrollbar-width: thin;
    scrollbar-color: #9d819a transparent;
    overscroll-behavior-y: contain;
}
.chapter-content {
    min-height: 100%;
    max-width: 1320px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: clamp(30px, 6vw, 100px);
}
.chapter-copy {
    flex: 1;
    min-width: 0;
    max-width: 420px;
    text-align: left;
}
.location {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--pink);
    margin: 0 0 24px;
}
.location:before {
    content: "";
    width: 7px;
    height: 7px;
    background: var(--pink);
    box-shadow: 3px 3px #81577f;
}
.chapter h1 {
    font:
        600 clamp(48px, 5.8vw, 88px)/1.02 "Pixelify Sans",
        monospace;
    letter-spacing: -0.025em;
    margin: 0 0 25px;
    text-shadow: 4px 4px #30223f80;
}
.chapter h2.chapter-title {
    font:
        500 clamp(38px, 4.4vw, 64px)/1.08 "Pixelify Sans",
        monospace;
    letter-spacing: -0.02em;
    margin: 0 0 22px;
}
.intro {
    color: #e3d4e6;
    font-size: 18px;
    line-height: 1.6;
    max-width: 340px;
    margin: 0 0 30px;
}
.chapter-aside {
    font-size: 13px;
    color: #c5b4cb;
    margin: 23px 0 0;
    line-height: 1.6;
}
.primary,
.open-button,
.secondary,
.journey-button {
    border: 2px solid #efb9cb;
    box-shadow: 4px 4px #181b2d;
    background: #a4547e;
    color: #fff0db;
    padding: 12px 21px;
    font-size: 16px;
    line-height: 1.3;
    text-decoration: none;
    display: inline-block;
}
.primary:hover,
.open-button:hover,
.journey-button:hover {
    background: #b2638e;
}
.secondary {
    color: #583f57;
    background: #e4d4cb;
    border-color: #b8a3b4;
}
.text-button {
    border: 0;
    background: none;
    color: var(--pink);
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 5px;
    padding: 8px;
}
.garden .panel-scroll {
    background: linear-gradient(
        90deg,
        #272338bc 0%,
        #27233875 35%,
        transparent 70%
    );
}
.garden .chapter-content {
    position: relative;
    align-items: flex-start;
    padding-top: clamp(20px, 6vh, 70px);
}
.garden .chapter-copy {
    max-width: 610px;
}
.garden h1 {
    max-width: 610px;
}
.game-scene {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: #38354f;
}
.game-scene video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
    display: block;
}
.garden .journey-button {
    background: #b27297;
}
.garden .chapter-aside {
    color: #f0d7e6;
}
.garden .intro {
    text-shadow: 2px 2px #30223f;
}
.workstation {
    width: min(100%, 660px);
    flex: 1.45;
    min-width: 0;
}
@media (min-width: 801px) {
    .desk .chapter-content {
        gap: clamp(30px, 4vw, 64px);
    }
    .desk .chapter-copy {
        max-width: 380px;
    }
}
.terminal-line {
    padding: 11px 14px;
    border-top: 1px solid #544960;
    color: #adcfb6;
    font-size: 11px;
    min-height: 44px;
}
.interactive-terminal {
    margin: 0;
    background: #1d2433f5;
    border: 2px solid #788899;
    box-shadow: 6px 6px #191d30;
    text-align: left;
    font:
        12px/1.65 "Courier New",
        monospace;
}
.terminal-header {
    padding: 10px 13px;
    background: #2a3444;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #b3d9cb;
}
.terminal-output {
    height: 120px;
    min-height: 120px;
    overflow-y: auto;
    padding: 12px 13px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: #dcdde7;
    overscroll-behavior: contain;
}
.terminal-output > div {
    margin-bottom: 6px;
}
.term-muted {
    color: #a4afbf;
}
.term-command {
    color: #f0c49c;
}
.term-success {
    color: #a9ddbf;
}
.term-error {
    color: #e8b6cd;
}
.command-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin: 0;
    border-top: 1px solid #495464;
}
.command-form .prompt-label {
    color: #a9ddbf;
    margin: 0;
    font: 16px monospace;
}
.command-form input {
    min-width: 0;
    flex: 1;
    width: 100%;
    margin: 0;
    padding: 8px 2px;
    border: 0;
    background: transparent;
    color: #f5e8d7;
    outline: none;
    font:
        12px "Courier New",
        monospace;
}
.command-form:focus-within {
    outline: 2px solid #e5b4cd;
    outline-offset: 2px;
}
.command-form input::placeholder {
    color: #a4afbf;
}
.command-form button {
    font: 11px "Courier New";
    background: #384958;
    color: #d9e5de;
    border: 1px solid #728598;
    padding: 8px;
    white-space: nowrap;
}
.command-shortcuts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 12px 12px;
}
.command-shortcuts button {
    background: #303b4c;
    color: #baddc9;
    border: 1px solid #64768b;
    font: 11px "Courier New";
    padding: 7px 10px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
.cat-party {
    margin-top: 20px;
    background: #38374ef2;
    border: 2px solid #bba1b7;
    padding: 13px;
}
.cat-party-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
}
.cat-party-heading button {
    font:
        12px "Pixelify Sans",
        "Courier New",
        monospace;
    color: #e7c2d5;
    background: none;
    border: 0;
    padding: 8px;
}
.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}
.squad-cat {
    border: 0;
    background: transparent;
    color: #f4dec7;
    font:
        14px "Pixelify Sans",
        "Courier New",
        monospace;
    padding: 5px;
}
.squad-cat svg {
    display: block;
    width: 64px;
    max-width: 100%;
    margin: auto;
}
.squad-cat:nth-child(2) svg {
    filter: hue-rotate(305deg) saturate(0.5);
}
.squad-cat:nth-child(3) svg {
    filter: grayscale(0.8) brightness(0.85);
}
#cat-party-status {
    font-size: 14px;
    color: #dac0d2;
    margin-bottom: 0;
}
.mail-zone {
    flex: 1.35;
    min-width: 0;
    max-width: 600px;
    text-align: center;
    padding: 0 20px;
}
.stage {
    position: relative;
    display: grid;
    place-items: end center;
    width: 100%;
    height: 300px;
    margin: 0 auto;
    padding-bottom: 12px;
}
.courier {
    position: absolute;
    z-index: 5;
    top: 0;
    left: calc(50% - 64px);
    width: 128px;
    padding: 0;
    border: 0;
    background: none;
    image-rendering: pixelated;
}
.courier svg {
    width: 100%;
    display: block;
}
.courier:hover {
    filter: brightness(1.12);
}
.delivered .courier .paw {
    transform: translateY(2px);
}
.delivered .courier {
    transform: translate(-90px, 90px);
    animation: courier-delivery 1.4s steps(16, end) both;
}
.delivered .envelope {
    animation: envelope-delivery 1.4s ease-out both;
}
.bubble {
    position: absolute;
    top: 13px;
    left: calc(50% + 72px);
    width: 105px;
    font:
        15px/1.25 "Pixelify Sans",
        "Courier New",
        monospace;
    color: #efd2df;
    text-align: left;
}
.bubble:before {
    content: "↙";
    display: block;
    font-size: 24px;
}
.envelope {
    position: relative;
    display: block;
    isolation: isolate;
    width: 300px;
    max-width: 90%;
    height: 170px;
    border: 0;
    background: #e8a9bc;
    padding: 0;
    filter: drop-shadow(6px 6px #1f2337);
}
.envelope:hover {
    translate: 0 -4px;
}
.back {
    position: absolute;
    inset: 0;
    background: #d990aa;
}
.letter-peek {
    position: absolute;
    background: #fffaf0;
    left: 7%;
    right: 7%;
    top: 13px;
    bottom: 20px;
    transform: rotate(-3deg);
}
.letter-peek:after {
    content: "a little something, just for you";
    font:
        16px "Pixelify Sans",
        "Courier New",
        monospace;
    display: block;
    margin-top: 22px;
    color: #9b6356;
}
.pocket {
    position: absolute;
    inset: 0;
    background: #efb6c8;
    clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%);
}
.pocket:after {
    content: "";
    position: absolute;
    inset: 0;
    background: #f5c6d2;
    clip-path: polygon(0 100%, 50% 43%, 100% 100%);
}
.flap {
    position: absolute;
    inset: 0;
    background: #f7ccd7;
    clip-path: polygon(0 0, 100% 0, 50% 59%);
    transform-origin: top;
    transition: transform 0.65s;
    z-index: 3;
}
.seal {
    position: absolute;
    top: 42%;
    left: calc(50% - 18px);
    width: 36px;
    height: 36px;
    background: #953653;
    box-shadow:
        3px 3px #79344f,
        inset 0 0 0 3px #c57e98;
    display: grid;
    place-items: center;
    color: #f6c6d4;
    font-size: 26px;
    z-index: 4;
    transition: opacity 0.2s;
}
.address {
    position: absolute;
    bottom: 18px;
    left: 0;
    right: 0;
    max-width: 80%;
    margin: auto;
    z-index: 2;
    font-size: 15px;
    color: #6b3f58;
    overflow-wrap: anywhere;
}
.hint {
    font-size: 16px;
    color: #dac1d5;
    margin: 18px 0;
}
.sleep-eyes,
.pop-mouth {
    display: none;
}
.popping .pop-mouth {
    display: block;
}
.popping .mouth {
    display: none;
}
.sleepy .eyes {
    display: none;
}
.sleepy .sleep-eyes {
    display: block;
}
.opening .flap {
    transform: rotateX(180deg);
    z-index: 0;
}
.opening .seal {
    opacity: 0;
}
.opening .letter-peek {
    transform: translateY(-100px);
    transition: transform 0.6s 0.3s;
}
.scene-open .envelope,
.scene-open .hint,
.scene-open #open {
    display: none;
}
.scene-open .stage {
    height: 110px;
    margin-bottom: 12px;
}
.scene-open .courier {
    animation: none;
    transform: none;
    width: 90px;
    left: calc(50% - 90px);
}
.scene-open .bubble {
    left: calc(50% + 12px);
    width: 125px;
}
.note {
    position: relative;
    color: var(--ink);
    background: var(--paper);
    border: 4px solid #b695ad;
    box-shadow: 7px 7px #1f2337;
    margin: 0 auto;
    width: 100%;
    padding: 26px 30px;
    text-align: left;
    transform-origin: top;
}
.note.revealed {
    animation: unfold 0.65s both;
}
.note:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        #d9b2bc 0 8px,
        transparent 8px 16px
    );
}
.note h2 {
    font:
        30px "Pixelify Sans",
        "Courier New",
        monospace;
    margin: 8px 0 18px;
}
.note .message {
    font:
        20px/1.6 "Pixelify Sans",
        "Courier New",
        monospace;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.eyebrow {
    font-size: 12px;
    color: #875271;
}
.signature {
    font-size: 19px;
    text-align: right;
    color: #8c4a71;
    overflow-wrap: anywhere;
}
.tiny {
    font-size: 12px;
    line-height: 1.5;
    color: #726275;
}
.note .tiny {
    text-align: center;
}
.note .text-button {
    color: #7d4d70;
}
.replay {
    display: block;
    margin: 10px auto 0;
}
.pet-corner > div {
    min-width: 0;
    flex: 1;
}
.pet-corner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 24px auto 0;
    text-align: left;
}
.pop-cat {
    width: 186px;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    background: transparent;
    touch-action: manipulation;
}
.pop-cat svg {
    display: block;
    width: 100%;
}
.pet-title {
    font-size: 14px;
    margin: 0 0 5px;
}
.pet-count {
    font-size: 12px;
    color: #c7b5d3;
    margin: 0;
}
.pop-cat.popping {
    transform: scale(1.1) rotate(-6deg);
}
.confetti {
    position: fixed;
    pointer-events: none;
    z-index: 15;
    color: #f0a5c6;
    animation: celebrate 1.6s ease-out both;
}
.world-nav {
    position: fixed;
    z-index: 10;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 14px clamp(20px, 4vw, 64px) max(18px, env(safe-area-inset-bottom));
    background: linear-gradient(transparent, #242438f5 45%);
}
.world-map {
    display: flex;
    gap: 0;
    align-items: center;
}
.world-map button {
    position: relative;
    border: 0;
    background: none;
    color: #c9b8d0;
    font-size: 14px;
    padding: 13px 22px 10px;
}
.world-map button:before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 9px;
    background: #8e789b;
    box-shadow: 2px 2px #242438;
}
.world-map button[aria-current="location"] {
    color: #ffe4b7;
}
.world-map button[aria-current="location"]:before {
    background: #ffe4b7;
}
.world-map button + button:after {
    content: "";
    position: absolute;
    left: -8px;
    top: 50%;
    width: 16px;
    border-top: 1px dashed #8e789b;
}
.world-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}
.world-controls button {
    width: 38px;
    height: 36px;
    border: 1px solid #ac92b5;
    background: #29283cbf;
    color: var(--cream);
    font-size: 20px;
}
.nav-hint {
    color: #b8a5c3;
    font-size: 12px;
    margin-right: 12px;
}
.world-progress {
    position: fixed;
    z-index: 11;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #edaac7;
    width: 33.333%;
    transition: width 0.3s;
}
.chapter-position {
    position: absolute;
    z-index: 1;
    right: 6vw;
    top: 24%;
    font-size: clamp(120px, 22vw, 350px);
    color: #dcb5ce08;
    pointer-events: none;
    line-height: 1;
}
@keyframes unfold {
    from {
        opacity: 0;
        transform: translateY(-25px) scaleY(0.9);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
@keyframes courier-delivery {
    0% {
        transform: translate(-150px, 0) rotate(-3deg);
    }
    25% {
        transform: translate(-75px, 6px) rotate(3deg);
    }
    45% {
        transform: translate(0, 0);
    }
    60% {
        transform: translate(0, 8px);
    }
    100% {
        transform: translate(-90px, 90px);
    }
}
@keyframes envelope-delivery {
    0% {
        transform: translate(-150px, -130px) scale(0.45);
    }
    45% {
        transform: translate(0, -130px) scale(0.45);
    }
    70% {
        transform: translate(0, 0) scale(1);
    }
    82% {
        transform: translateY(-12px);
    }
    100% {
        transform: none;
    }
}
@keyframes bounce {
    50% {
        transform: translateY(-10px) rotate(7deg);
    }
}
@keyframes celebrate {
    from {
        opacity: 1;
        transform: translate(0, 0);
    }
    to {
        opacity: 0;
        transform: translate(var(--dx), -180px) rotate(100deg);
    }
}
@media (min-width: 1400px) {
    .garden .chapter-content {
        padding-top: 8vh;
    }
}
@media (max-width: 800px) {
    header {
        padding: 16px 22px;
    }
    .edition > span {
        display: none;
    }
    .panel-scroll {
        padding: 100px 26px 110px;
    }
    .chapter-content {
        gap: 30px;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }
    .chapter-copy {
        max-width: 100%;
        flex: none;
    }
    .chapter h1 {
        font-size: clamp(48px, 8vw, 70px);
        max-width: 530px;
    }
    .chapter h2.chapter-title {
        font-size: 40px;
        margin-bottom: 14px;
    }
    .location {
        margin-bottom: 15px;
    }
    .intro {
        font-size: 16px;
        max-width: 400px;
        margin-bottom: 20px;
    }
    .workstation {
        flex: none;
        width: 100%;
        max-width: 660px;
        margin: auto;
    }
    .mail-zone {
        flex: none;
        width: 100%;
        max-width: 540px;
        margin: 0 auto;
        padding: 0;
    }
    .chapter-aside {
        margin-top: 16px;
    }
    .garden .chapter-content {
        padding-top: 10px;
    }
    .garden .panel-scroll {
        background: linear-gradient(#272338a8, transparent 70%);
    }
    .game-scene video {
        object-position: 57% center;
    }
    .world-nav {
        padding: 14px 18px 20px;
        gap: 5px;
    }
    .world-map button {
        padding: 13px 14px 10px;
        font-size: 13px;
    }
    .nav-hint {
        display: none;
    }
    .world-controls {
        gap: 7px;
    }
    .world-controls button {
        width: 32px;
    }
    .letter-room .chapter-content {
        gap: 14px;
    }
    .letter-room .intro {
        margin-bottom: 0;
    }
    .stage {
        height: 260px;
    }
    .courier {
        width: 106px;
        left: calc(50% - 53px);
    }
    .bubble {
        left: calc(50% + 60px);
        font-size: 14px;
    }
    .envelope {
        width: 280px;
        height: 156px;
    }
}
@media (max-width: 480px) {
    .garden .game-scene {
        background: #34314e;
    }
    .garden .game-scene video {
        position: absolute;
        bottom: 0;
        height: 74%;
        object-position: 58% center;
    }
    header {
        padding: 15px 18px;
        gap: 8px;
    }
    .brand {
        font-size: 19px;
        gap: 5px;
    }
    .edition {
        gap: 6px;
    }

    #motion {
        font-size: 11px;
        padding: 8px;
    }
    .panel-scroll {
        padding: 94px 22px 100px;
    }
    .garden h1 {
        font-size: 52px;
        max-width: 320px;
    }
    .garden .intro {
        max-width: 255px;
        font-size: 15px;
    }
    .garden .chapter-content {
        padding-top: 8px;
    }
    .garden .journey-button {
        font-size: 15px;
    }
    .garden .chapter-aside {
        max-width: none;
    }
    .garden .chapter-aside .text-button {
        padding-left: 0;
        font-size: 12px;
    }
    .garden .intro {
        line-height: 1.65;
    }
    .world-nav {
        padding: 14px 10px max(16px, env(safe-area-inset-bottom));
    }
    .world-map button {
        font-size: 11px;
        padding: 13px 7px 10px;
        white-space: nowrap;
    }
    .world-map button:before {
        margin-right: 6px;
        width: 6px;
        height: 6px;
    }
    .world-map button + button:after {
        left: -5px;
        width: 10px;
    }
    .world-controls {
        gap: 5px;
    }
    .world-controls button {
        width: 29px;
        height: 34px;
    }
    .terminal-line {
        font-size: 10px;
    }
    .note {
        padding: 23px 18px;
    }
    .note .message {
        font-size: 19px;
    }
    .bubble {
        width: 83px;
        left: calc(50% + 52px);
        font-size: 13px;
    }
    .pet-title {
        font-size: 13px;
    }
    .pet-corner {
        gap: 10px;
    }
    .location {
        font-size: 13px;
    }
    .chapter h2.chapter-title {
        font-size: 36px;
    }
    .letter-room .location {
        margin-bottom: 10px;
    }
    .letter-room .chapter-title {
        margin-bottom: 10px;
    }
    .letter-room .intro {
        font-size: 14px;
    }
    .note h2 {
        font-size: 27px;
    }
    .cat-party-heading {
        font-size: 12px;
    }
    .squad-cat {
        font-size: 12px;
    }
    .chapter-content {
        gap: 24px;
    }
}
@media (max-height: 650px) and (min-width: 801px) {
    .panel-scroll {
        padding-top: 90px;
        padding-bottom: 90px;
    }
    .garden .chapter-content {
        padding-top: 0;
    }
    .chapter h1 {
        font-size: 62px;
    }
    .chapter h2.chapter-title {
        font-size: 44px;
    }
    .stage {
        height: 250px;
    }
    .courier {
        width: 95px;
        left: calc(50% - 48px);
    }
    .bubble {
        font-size: 13px;
    }
    .envelope {
        height: 146px;
        width: 260px;
    }
    .note .message {
        font-size: 18px;
    }
    .note {
        padding: 20px 26px;
    }
}

/* Cat lounge */
.terminal-heading {
    display: flex;
    align-items: center;
    gap: 15px;
}
.window-dots {
    color: #d591a0;
    font-size: 10px;
    letter-spacing: 3px;
}
.interactive-terminal {
    border: 1px solid #7c829b;
    background: #1d2637f5;
}
.interactive-terminal .cat-party {
    margin: 10px 18px;
    background: #293348;
    border: 1px solid #616a82;
    padding: 13px;
}
.interactive-terminal .cat-party-heading {
    font:
        12px "Courier New",
        monospace;
    color: #d4c5d6;
}
.cat-grid {
    gap: 8px;
    margin-top: 10px;
}
.squad-cat {
    min-width: 0;
    border: 1px solid transparent;
    padding: 4px 3px;
}
.squad-cat svg {
    width: 44px;
}
.squad-cat:hover {
    background: #ffffff08;
    border-color: #a995ab;
}
.squad-cat .cat-name {
    display: block;
    margin-top: 5px;
    font-size: 15px;
}
.cat-mood {
    display: block;
    color: #d7b5c7;
    font-size: 12px;
    margin: 4px 0;
}
.cat-stats {
    display: block;
    color: #b5c0d2;
    font:
        10px/1.6 "Courier New",
        monospace;
}
#cat-party-status {
    min-height: 18px;
    font:
        11px/1.5 "Courier New",
        monospace;
}
.terminal-output {
    padding: 14px 20px;
    border-top: 1px solid #485367;
    font-size: 12px;
}
.command-form {
    margin: 0 18px;
    padding: 9px 0;
}
.command-form input {
    font-size: 14px;
}
.command-form button {
    min-height: 38px;
}
.command-shortcuts {
    padding: 12px 18px 16px;
    gap: 7px;
}
.command-shortcuts button {
    color: #f0dfe4;
    text-align: left;
    font:
        13px "Pixelify Sans",
        monospace;
    border-color: #536079;
    padding: 9px 11px;
}
.command-shortcuts button:hover {
    background: #45415a;
    border-color: #c29ab0;
}
.command-shortcuts button span {
    display: block;
    margin-top: 4px;
    font:
        10px "Courier New",
        monospace;
    color: #b6c6d7;
}
.command-guide {
    border-top: 1px solid #485367;
    color: #cad0de;
    padding: 12px 18px;
    font:
        11px/1.6 "Courier New",
        monospace;
}
.command-guide summary {
    cursor: pointer;
    color: #edd3de;
}
.command-guide summary span {
    float: right;
    font-size: 10px;
    color: #aeb9ca;
}
.command-guide dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    margin: 18px 0;
}
.command-guide dt {
    color: #f1c2b1;
}
.command-guide dd {
    margin: 2px 0 0;
    color: #c1c8d6;
}
.command-guide p {
    color: #c1c8d6;
    margin-bottom: 0;
}
.terminal-line {
    margin: 0;
    font:
        11px/1.5 "Courier New",
        monospace;
    border-color: #485367;
    padding: 12px 18px;
}
@media (max-width: 480px) {
    .interactive-terminal .cat-party {
        margin: 15px 12px 10px;
        padding: 10px 7px;
    }
    .squad-cat svg {
        width: 50px;
    }
    .cat-stats {
        font-size: 9px;
    }
    .command-guide summary span {
        float: none;
        display: block;
        margin-top: 4px;
    }
    .command-guide dl {
        grid-template-columns: 1fr;
    }
    .command-shortcuts {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 12px;
    }
    .command-form {
        margin: 0 12px;
    }
}

/* A friendly neighbor, in the same pixel world. */
.web-corner {
    position: fixed;
    top: 0;
    right: 0;
    width: 200px;
    color: #efdcd6;
    opacity: 0.09;
    z-index: 3;
    pointer-events: none;
}
.web-corner svg {
    width: 100%;
    transform: scaleX(-1);
}
.neighbor {
    position: fixed;
    top: 76px;
    right: 10px;
    z-index: 8;
    width: 78px;
    height: 186px;
    padding: 0;
    border: 0;
    background: none;
    color: #efd9dc;
    transform-origin: top center;
    animation: neighbor-sway 5s ease-in-out infinite;
}
.neighbor-thread {
    display: block;
    width: 1px;
    height: 72px;
    background: #d8c5cfaa;
    margin: 0 auto;
}
.neighbor-sprite {
    width: 78px;
    display: block;
    filter: drop-shadow(3px 3px #17233870);
}
.neighbor-hello {
    position: absolute;
    right: 68px;
    bottom: 12px;
    width: 108px;
    padding: 8px;
    color: #f4ddda;
    background: #26344af2;
    border: 1px solid #a2788c;
    font:
        13px/1.3 "Pixelify Sans",
        monospace;
    opacity: 0;
    pointer-events: none;
}
.neighbor:hover .neighbor-hello,
.neighbor:focus-visible .neighbor-hello,
.web-visit .neighbor-hello {
    opacity: 1;
}
.web-visit .neighbor {
    animation: neighbor-visit 6.5s ease-in-out both;
}
.web-visit .web-corner {
    opacity: 0.22;
}
.terminal-welcome {
    position: relative;
    min-height: 110px;
    overflow: hidden;
}
.neighborhood-picture {
    position: absolute;
    inset: 0 0 0 auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}
@keyframes neighbor-sway {
    0%,
    100% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(3deg);
    }
}
@keyframes neighbor-visit {
    0%,
    100% {
        transform: translateY(0) rotate(-3deg);
    }
    25%,
    75% {
        transform: translateY(65px) rotate(4deg);
    }
    50% {
        transform: translateY(65px) rotate(-4deg);
    }
}
@media (max-width: 800px) {
    .neighbor {
        right: 12px;
        width: 54px;
        height: 96px;
    }
    .neighbor-thread {
        height: 16px;
    }
    .neighbor-sprite {
        width: 54px;
    }
    .neighbor-hello {
        right: 63px;
    }
}
@media (max-width: 480px) {
    .neighbor {
        top: 70px;
        right: 9px;
    }
    .terminal-welcome {
        min-height: 132px;
    }
}

/* A photo from you, tucked into the garden. */
.garden-photo {
    position: absolute;
    z-index: 3;
    top: 15%;
    right: 9vw;
    width: clamp(220px, 22vw, 310px);
    margin: 0;
    padding: 9px 9px 0;
    background: #f3ded3;
    border: 2px solid #c78d99;
    box-shadow: 8px 8px #1b243c88;
    transform: rotate(3deg);
}
.garden-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}
.garden-photo figcaption {
    padding: 12px 3px 14px;
    text-align: center;
    color: #703f54;
    font:
        14px/1.35 "Pixelify Sans",
        "Courier New",
        monospace;
}
@media (max-width: 800px) {
    .garden-photo {
        width: 190px;
        right: 7vw;
        top: auto;
        bottom: 110px;
    }
}
@media (max-width: 480px) {
    .garden-photo {
        width: 143px;
        right: 25px;
        bottom: 96px;
        padding: 6px 6px 0;
        transform: rotate(3deg);
    }
    .garden-photo figcaption {
        font-size: 10px;
        padding: 8px 0 10px;
    }
}
@media (max-height: 650px) and (min-width: 801px) {
    .garden-photo {
        top: 18%;
        width: 210px;
    }
}

@media (max-width: 800px) and (max-height: 740px) {
    .garden .chapter-content {
        min-height: 0;
    }
    .garden-photo {
        position: relative;
        inset: auto;
        width: 160px;
        margin: 24px 0 10px auto;
    }
}

/* Larger garden copy, addressed to Pan. */
.garden h1 {
    font-size: clamp(64px, 6.8vw, 104px);
    max-width: 700px;
}
.garden .chapter-copy {
    max-width: 700px;
}
.garden .intro {
    font-size: 24px;
    line-height: 1.6;
    max-width: 480px;
    margin-bottom: 32px;
}
.garden-recipient {
    font-size: 28px;
    flex-wrap: wrap;
    gap: 12px;
}
.recipient-handle {
    color: #dac1d2;
    font-size: 0.85em;
    border-left: 1px solid #d6b8c077;
    padding-left: 10px;
    margin-left: 3px;
}
.garden .journey-button {
    font-size: 18px;
}
.garden .chapter-aside .text-button {
    font-size: 16px;
}
.garden-photo figcaption {
    font-size: 16px;
}
@media (max-width: 800px) {
    .garden h1 {
        font-size: clamp(52px, 8.5vw, 72px);
    }
    .garden .intro {
        font-size: 20px;
        max-width: 420px;
    }
}
@media (max-width: 480px) {
    .garden h1 {
        font-size: 52px;
        max-width: 320px;
    }
    .garden .intro {
        font-size: 18px;
        max-width: 100%;
        line-height: 1.6;
        margin-bottom: 26px;
    }
    .garden-recipient {
        font-size: 22px;
        gap: 8px;
    }
    .garden .journey-button {
        font-size: 16px;
    }
    .garden .chapter-aside .text-button {
        font-size: 14px;
    }
    .garden .chapter-content {
        min-height: 0;
    }
    .garden-photo {
        position: relative;
        inset: auto;
        width: 170px;
        margin: 24px 0 10px auto;
    }
    .garden-photo figcaption {
        font-size: 11px;
    }
}
@media (max-height: 650px) and (min-width: 801px) {
    .garden h1 {
        font-size: 68px;
    }
    .garden .intro {
        font-size: 21px;
    }
}

/* A softer, more readable typeface for the personal letter. */
.note h2 {
    font-family: "Lora", Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.015em;
}
.note .message {
    font-family: "Lora", Georgia, "Times New Roman", serif;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.85;
}
.note .signature {
    font-family: "Lora", Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-style: italic;
    line-height: 1.6;
}
@media (max-width: 480px) {
    .note h2 {
        font-size: 27px;
    }
    .note .message {
        font-size: 18px;
        line-height: 1.8;
    }
    .note .signature {
        font-size: 19px;
    }
}

.animations-paused *,
.animations-paused *:before,
.animations-paused *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}
