:root {
    --cream: #e9e1d4;
    --warm-white: #f3eee5;
    --sand: #9d8b78;
    --taupe: #75675a;
    --wood: #4d382b;
    --dark-wood: #211915;
    --sage: #737d68;
    --olive: #4e5847;
    --charcoal: #171614;
    --black: #0d0d0c;
    --muted: #9b9186;
    --line: rgba(232,220,202,.14);
    --shadow: rgba(0,0,0,.55);
    --topbar-height: 90px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: "DM Sans", "Noto Sans Malayalam", sans-serif;
    color: var(--cream);
    background: var(--black);
}

button,
input,
textarea {
    font: inherit;
}

button {
    border: 0;
}

button:focus,
input:focus,
textarea:focus {
    outline: none;
}

button:focus-visible {
    outline: 1px solid rgba(222,202,176,.6);
    outline-offset: 3px;
}

.screen {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    position: fixed;
    inset: 0;
}

.hidden {
    display: none !important;
}

.eyebrow {
    font-size: 10px;
    letter-spacing: .28em;
    font-weight: 600;
    color: rgba(239,229,214,.55);
}

.welcome-screen {
    background: #090909;
    color: white;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 9vw 90px;
}

.welcome-image {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5,5,5,.88), rgba(5,5,5,.38)),
        linear-gradient(0deg, rgba(5,5,5,.55), transparent 60%),
        url("https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?auto=format&fit=crop&w=2200&q=90") center/cover;
    filter: brightness(.65) saturate(.65);
    transform: scale(1.04);
    animation: welcomeZoom 12s ease-out forwards;
}

.welcome-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 65% 40%, rgba(177,135,85,.13), transparent 38%);
}

.welcome-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.welcome-content .eyebrow {
    margin-bottom: 25px;
}

.welcome-content h1 {
    font-family: "Noto Serif Malayalam", "Cormorant Garamond", serif;
    font-size: clamp(56px, 9.5vw, 128px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
}

.welcome-content h1 span {
    font-weight: 500;
    color: #c8a67c;
}

.welcome-copy {
    margin-top: 32px;
    font-size: 16px;
    color: rgba(255,255,255,.62);
    letter-spacing: .02em;
}

.enter-button {
    margin-top: 40px;
    background: rgba(235,225,210,.92);
    color: #191715;
    padding: 16px 21px 16px 25px;
    display: flex;
    align-items: center;
    gap: 28px;
    cursor: pointer;
    transition: .35s ease;
}

.enter-button .arrow {
    font-size: 20px;
    transition: .35s ease;
}

.enter-button:hover {
    background: #f5eee3;
    transform: translateY(-3px);
    box-shadow: 0 15px 45px rgba(0,0,0,.45);
}

.enter-button:hover .arrow {
    transform: translate(4px,-4px);
}

.welcome-footer {
    position: absolute;
    bottom: 35px;
    left: 9vw;
    z-index: 2;
    display: flex;
    gap: 17px;
    align-items: center;
    color: rgba(255,255,255,.38);
    font-size: 12px;
}

.welcome-footer i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,.3);
}

@keyframes welcomeZoom {
    from {
        transform: scale(1.04);
    }

    to {
        transform: scale(1);
    }
}

.palace-screen {
    background: #161412;
    overflow: hidden;
}

.hallway-background {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5,5,4,.75), rgba(12,10,8,.25) 45%, rgba(5,5,4,.7)),
        linear-gradient(0deg, rgba(5,5,4,.5), transparent 55%),
        url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=2200&q=90") center/cover;
    filter: brightness(.58) saturate(.6);
}

.hallway-light {
    position: absolute;
    width: 60vw;
    height: 80vh;
    left: 50%;
    top: 45%;
    transform: translate(-50%,-50%);
    background: radial-gradient(ellipse, rgba(193,143,83,.17), transparent 67%);
    pointer-events: none;
}

.topbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--topbar-height);
    padding: 0 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    color: white;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.brand-name {
    font-family: "Noto Serif Malayalam", "Cormorant Garamond", serif;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.3;
}

.brand-mark {
    width: 28px;
    height: 32px;
    display: grid;
    place-items: center;
}

.lamp {
    width: 100%;
    height: 100%;
    overflow: visible;
    animation: lampLogoGlow 3.2s ease-in-out infinite alternate;
}

.lamp-body {
    fill: #c8a67c;
}

.lamp-flame {
    fill: #f2c883;
    transform-origin: 16px 14px;
    animation: flicker 2.4s ease-in-out infinite;
}

.lamp-core {
    fill: #fff3d6;
    transform-origin: 16px 14px;
    animation: flicker 2.4s ease-in-out -.8s infinite;
}

@keyframes flicker {
    0%, 100% {
        scale: 1 1;
        rotate: 0deg;
    }

    25% {
        scale: .93 1.08;
        rotate: -2.5deg;
    }

    55% {
        scale: 1.05 .94;
        rotate: 2deg;
    }

    80% {
        scale: .97 1.05;
        rotate: -1deg;
    }
}

@keyframes lampLogoGlow {
    from {
        filter: drop-shadow(0 0 3px rgba(242,200,131,.35));
    }

    to {
        filter: drop-shadow(0 0 8px rgba(242,200,131,.75));
    }
}

.topbar-date {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: rgba(255,255,255,.5);
}

.hallway-content {
    position: absolute;
    inset: 0;
    padding: calc(var(--topbar-height) + 10px) 4vw 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(24px, 5vh, 56px);
    overflow-y: auto;
}

.hallway-heading {
    text-align: center;
    color: white;
}

.hallway-heading h2 {
    margin: 13px 0 8px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(32px, 4vw, 58px);
    font-weight: 400;
    line-height: 1.1;
}

.hallway-heading p:last-child {
    font-size: 13px;
    color: rgba(255,255,255,.5);
}

.doors {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(20px, 5vw, 80px);
    width: 100%;
}

.door-space {
    width: clamp(150px, 16vw, 240px);
    cursor: pointer;
    transition: .5s ease;
}

.door-frame {
    height: clamp(200px, 34vh, 400px);
    padding: 10px 9px 8px;
    background: linear-gradient(90deg,#17110e,#3b2b21,#17110e);
    box-shadow:
        0 30px 70px rgba(0,0,0,.65),
        inset 2px 0 rgba(255,220,175,.05);
    perspective: 1000px;
}

.door-panel {
    height: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(100deg,#211914,#503827 48%,#1d1511);
    border: 2px solid rgba(8,6,4,.8);
    box-shadow:
        inset 8px 0 18px rgba(0,0,0,.4),
        inset -8px 0 18px rgba(0,0,0,.5);
    transition: .7s cubic-bezier(.2,.8,.2,1);
    transform-origin: left center;
}

.door-panel::before,
.door-panel::after {
    content: "";
    position: absolute;
    left: 11%;
    right: 11%;
    border: 1px solid rgba(202,168,125,.18);
}

.door-panel::before {
    top: 9%;
    height: 34%;
}

.door-panel::after {
    bottom: 9%;
    height: 34%;
}

.door-handle {
    position: absolute;
    right: 13%;
    top: 51%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #b89563;
    box-shadow: 0 1px 8px #000;
    z-index: 3;
}

.door-light {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg,transparent 35%,rgba(225,180,116,.18),transparent 58%);
    opacity: 0;
    transition: .4s;
}

.door-space:hover {
    transform: translateY(-8px);
}

.door-space:hover .door-panel {
    transform: perspective(1000px) rotateY(-12deg);
}

.door-space:hover .door-light {
    opacity: 1;
}

.door-label {
    margin-top: 15px;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    color: white;
}

.door-number {
    font-size: 9px;
    letter-spacing: .12em;
    opacity: .35;
    padding-top: 6px;
}

.door-label h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.1;
}

.door-label p {
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .4;
    margin-top: 4px;
}

.hallway-bottom {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.3);
    display: flex;
    gap: 14px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: 8px;
}

.room-screen {
    background: #11100e;
    overflow: hidden;
}

.room-background,
.room-gradient {
    position: fixed;
    inset: 0;
    background-position: center;
    background-size: cover;
    pointer-events: none;
}

.memory-room-bg {
    background-image:
        linear-gradient(90deg,rgba(5,5,4,.65),rgba(15,12,9,.15),rgba(5,5,4,.7)),
        url("https://images.unsplash.com/photo-1618220179428-22790b461013?auto=format&fit=crop&w=2200&q=90");
    filter: brightness(.62) saturate(.65);
}

.day-room-bg {
    background-image:
        linear-gradient(90deg,rgba(5,5,4,.68),rgba(15,12,9,.18),rgba(5,5,4,.68)),
        url("https://images.unsplash.com/photo-1497215728101-856f4ea42174?auto=format&fit=crop&w=2200&q=90");
    filter: brightness(.48) saturate(.55);
}

.world-room-bg {
    background-image:
        linear-gradient(90deg,rgba(5,5,4,.7),rgba(15,12,9,.16),rgba(5,5,4,.72)),
        url("https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?auto=format&fit=crop&w=2200&q=90");
    filter: brightness(.48) saturate(.58);
}

.room-gradient {
    background:
        radial-gradient(circle at 70% 45%,rgba(188,139,83,.1),transparent 30%),
        linear-gradient(0deg,rgba(0,0,0,.48),transparent 55%);
}

.room-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 42px;
    z-index: 10;
    color: white;
}

.back-button {
    justify-self: start;
    background: transparent;
    color: white;
    cursor: pointer;
    font-size: 12px;
    opacity: .55;
    transition: .3s;
}

.back-button:hover {
    opacity: 1;
    transform: translateX(-3px);
}

.room-title {
    text-align: center;
}

.room-title span {
    font-size: 8px;
    letter-spacing: .25em;
    opacity: .35;
}

.room-title h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.1;
}

.room-date {
    justify-self: end;
    font-size: 9px;
    letter-spacing: .15em;
    text-transform: uppercase;
    opacity: .45;
}

.room-stage {
    position: absolute;
    top: var(--topbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    display: grid;
    grid-template-columns: minmax(260px, 36%) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 3vw;
    padding: 0 5vw 28px 6vw;
    align-items: center;
}

.room-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    min-width: 0;
    max-height: 100%;
    overflow-y: auto;
    color: white;
}

.room-copy {
    max-width: 390px;
}

.room-copy .eyebrow {
    margin-bottom: 18px;
}

.room-copy h1 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 400;
    font-size: clamp(44px, 5.2vw, 80px);
    line-height: .95;
    letter-spacing: -.04em;
}

.room-copy h1 em {
    font-style: italic;
    color: #c19a6d;
}

.room-copy p:last-child {
    margin-top: 22px;
    max-width: 320px;
    font-size: 12px;
    line-height: 1.7;
    color: rgba(255,255,255,.5);
}

.fit-box {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fit-scene {
    flex: none;
    position: relative;
    transform-origin: center center;
    padding: 12px;
}

.memory-scene {
    width: 580px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.memory-top {
    height: 200px;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 8px;
    align-items: end;
}

.memory-objects {
    display: grid;
    grid-template-columns: repeat(3, 180px);
    gap: 8px;
}

.room-object {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    background: transparent;
    cursor: pointer;
    transition: transform .45s ease;
    color: white;
    text-align: center;
}

.room-object:hover {
    transform: translateY(-8px);
}

.object-stage {
    position: relative;
    width: 180px;
    height: 180px;
    display: grid;
    place-items: center;
}

.object-caption {
    text-align: center;
    text-shadow: 0 3px 12px rgba(0,0,0,.8);
    color: white;
}

.object-caption strong {
    display: block;
    font-family: "Cormorant Garamond", serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.15;
}

.object-caption span {
    display: block;
    font-size: 8px;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .5;
    margin-top: 4px;
}

.diary-book {
    width: 110px;
    height: 135px;
    position: relative;
    transform: rotate(-7deg);
    filter: drop-shadow(12px 16px 14px rgba(0,0,0,.65));
}

.diary-cover {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg,#17120f,#493426);
    border-radius: 2px 7px 7px 2px;
}

.diary-cover::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    top: 17px;
    bottom: 17px;
    border: 1px solid rgba(205,174,133,.3);
}

.diary-pages {
    position: absolute;
    width: 95px;
    height: 122px;
    right: -5px;
    top: 7px;
    background: repeating-linear-gradient(#ded3c3 0 4px,#b9ad9d 5px 6px);
    transform: translateX(3px);
    z-index: -1;
}

.diary-ribbon {
    position: absolute;
    width: 4px;
    height: 30px;
    background: #9d6f46;
    right: 26px;
    bottom: -8px;
}

.photo-frame {
    position: absolute;
    padding: 6px;
    background: #d2c6b6;
    box-shadow: 5px 10px 25px rgba(0,0,0,.65);
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(45,37,29,.5);
    background: linear-gradient(145deg,#706b61,#393a35);
    font-size: 20px;
    overflow: hidden;
}

.frame-one {
    width: 68px;
    height: 86px;
    transform: rotate(-6deg);
    left: 6px;
    top: 4px;
}

.frame-two {
    width: 76px;
    height: 58px;
    transform: rotate(5deg);
    right: 4px;
    top: 14px;
}

.frame-three {
    width: 64px;
    height: 76px;
    transform: rotate(-2deg);
    left: 58px;
    bottom: 4px;
}

.chest {
    width: 130px;
    height: 90px;
    position: relative;
    filter: drop-shadow(10px 15px 15px rgba(0,0,0,.7));
}

.chest-lid {
    position: absolute;
    left: 0;
    top: 0;
    width: 130px;
    height: 42px;
    border-radius: 8px 8px 2px 2px;
    background: linear-gradient(#503726,#241810);
    border: 2px solid #170f0a;
}

.chest-body {
    position: absolute;
    left: 5px;
    bottom: 0;
    width: 120px;
    height: 58px;
    background: linear-gradient(90deg,#392417,#60442e,#302015);
    border: 2px solid #170f0a;
}

.chest-lock {
    position: absolute;
    left: 57px;
    top: 36px;
    width: 16px;
    height: 24px;
    background: #a88455;
    border: 2px solid #49361f;
    z-index: 3;
}

.room-window {
    position: relative;
    overflow: hidden;
    background: #27231f;
    box-shadow: 0 20px 60px rgba(0,0,0,.55);
}

.memory-window {
    width: 230px;
    height: 190px;
    justify-self: center;
    border: 10px solid #302923;
}

.window-sky {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,#36434a,#6d6d5b 65%,#31382f);
}

.window-sky::after {
    content: "";
    position: absolute;
    left: -20%;
    right: -20%;
    bottom: 0;
    height: 28%;
    background: #252d25;
    clip-path: polygon(0 65%,25% 15%,42% 57%,65% 10%,100% 65%,100% 100%,0 100%);
}

.memory-window[data-time="dusk"] .window-sky {
    background: linear-gradient(180deg,#4a4a63,#b4795a 62%,#3a3430);
}

.memory-window[data-time="night"] .window-sky {
    background: linear-gradient(180deg,#0f1520,#1d2636 65%,#171c20);
}

.window-sun {
    position: absolute;
    top: 24px;
    right: 36px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ecd09a;
    box-shadow: 0 0 24px 8px rgba(236,208,154,.4);
    z-index: 1;
    animation: sunGlow 4s ease-in-out infinite alternate;
}

.memory-window[data-time="dusk"] .window-sun {
    background: #e59a5e;
    box-shadow: 0 0 28px 10px rgba(229,154,94,.4);
}

.memory-window[data-time="night"] .window-sun {
    background: #e9e4d4;
    box-shadow: 0 0 16px 4px rgba(233,228,212,.28);
}

.window-stars {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    background:
        radial-gradient(circle, #fff 0 1px, transparent 1.5px) 24px 18px / 70px 60px,
        radial-gradient(circle, #fff 0 1px, transparent 1.5px) 52px 40px / 90px 76px;
    transition: opacity .6s;
}

.memory-window[data-time="night"] .window-stars {
    opacity: .8;
    animation: starTwinkle 3s ease-in-out infinite alternate;
}

.cloud {
    position: absolute;
    left: 0;
    height: 10px;
    border-radius: 10px;
    background: rgba(255,255,255,.35);
    z-index: 1;
    animation: cloudDrift 30s linear infinite;
}

.cloud::before {
    content: "";
    position: absolute;
    left: 25%;
    top: -6px;
    width: 45%;
    height: 12px;
    border-radius: 50%;
    background: inherit;
}

.cloud-a {
    top: 38px;
    width: 48px;
}

.cloud-b {
    top: 80px;
    width: 34px;
    animation-duration: 44s;
    animation-delay: -18s;
}

.memory-window[data-time="night"] .cloud {
    opacity: .3;
}

.window-frame-v,
.window-frame-h {
    position: absolute;
    background: #29251f;
    z-index: 2;
}

.window-frame-v {
    width: 7px;
    top: 0;
    bottom: 0;
    left: calc(50% - 3px);
}

.window-frame-h {
    height: 7px;
    left: 0;
    right: 0;
    top: 58%;
}

.window-curtain {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    animation: curtainOpen 2.4s .5s cubic-bezier(.6,0,.2,1) both;
    background: repeating-linear-gradient(90deg,#443d35,#443d35 8px,#302b26 9px,#50483e 14px);
    z-index: 4;
}

.window-curtain.left {
    left: 0;
}

.window-curtain.right {
    right: 0;
}

.plant {
    position: relative;
    z-index: 4;
}

.plant-memory {
    width: 100px;
    height: 180px;
    justify-self: center;
}

.leaf {
    position: absolute;
    width: 30px;
    height: 66px;
    background: linear-gradient(90deg,#303a2d,#66735b);
    border-radius: 80% 10% 80% 10%;
    transform-origin: bottom;
}

.leaf-one { transform: rotate(-35deg); left: 6px; top: 40px; }
.leaf-two { transform: rotate(-10deg); left: 28px; top: 6px; }
.leaf-three { transform: rotate(25deg); left: 46px; top: 32px; }
.leaf-four { transform: rotate(55deg); left: 54px; top: 66px; }

.pot {
    position: absolute;
    bottom: 0;
    left: 21px;
    width: 58px;
    height: 55px;
    background: linear-gradient(90deg,#443328,#72523c,#3b2b21);
    clip-path: polygon(8% 0,92% 0,82% 100%,18% 100%);
}

.day-scene {
    width: 600px;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.wall-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 36px;
}

.wall-clock {
    flex: none;
    width: 120px;
    height: 120px;
    background: #c6baaa;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 12px 30px rgba(0,0,0,.55);
}

.clock-face {
    width: 100%;
    height: 100%;
    border: 2px solid #776b5d;
    border-radius: 50%;
    position: relative;
    color: #4d443b;
    font-size: 9px;
}

.clock-12,.clock-3,.clock-6,.clock-9 {
    position: absolute;
}

.clock-12 { top: 6px; left: 50%; transform: translateX(-50%); }
.clock-3 { right: 7px; top: 50%; transform: translateY(-50%); }
.clock-6 { bottom: 6px; left: 50%; transform: translateX(-50%); }
.clock-9 { left: 7px; top: 50%; transform: translateY(-50%); }

.clock-hand {
    position: absolute;
    left: calc(50% - 1px);
    bottom: 50%;
    width: 2px;
    background: #40382f;
    transform-origin: bottom;
}

.clock-hand.hour {
    height: 26px;
    transform: rotate(30deg);
}

.clock-hand.minute {
    height: 36px;
    transform: rotate(110deg);
}

.clock-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    background: #765a3d;
    border-radius: 50%;
    transform: translate(-50%,-50%);
}

.calendar-wall {
    flex: none;
    width: 270px;
    background: rgba(30,28,25,.92);
    padding: 18px 18px 16px;
    color: #d7cbbd;
    box-shadow: 5px 12px 35px rgba(0,0,0,.55);
    border: 1px solid rgba(205,185,158,.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Cormorant Garamond",serif;
    font-size: 22px;
    line-height: 1;
}

.cal-title {
    display: flex;
    align-items: baseline;
    gap: 8px;
    cursor: pointer;
}

.cal-title span:last-child {
    font-family: "DM Sans",sans-serif;
    font-size: 10px;
    letter-spacing: .12em;
    opacity: .5;
}

.cal-nav {
    width: 26px;
    height: 26px;
    margin: -4px -6px;
    background: transparent;
    color: inherit;
    font-family: "DM Sans",sans-serif;
    font-size: 20px;
    line-height: 1;
    opacity: .5;
    cursor: pointer;
    transition: opacity .25s, transform .25s;
}

.cal-nav:hover {
    opacity: 1;
}

.calendar-days,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.calendar-days {
    margin-top: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(230,215,196,.1);
    font-size: 9px;
    letter-spacing: .08em;
    opacity: .45;
}

.calendar-grid {
    margin-top: 8px;
    grid-auto-rows: 30px;
    min-height: 180px;
    align-content: start;
    font-size: 11px;
}

.calendar-summary {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(230,215,196,.1);
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-align: center;
    opacity: .55;
}

.calendar-grid span {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.calendar-grid span[data-day] {
    cursor: pointer;
    transition: color .2s;
}

.calendar-grid span[data-day]:hover {
    color: #fff;
}

.calendar-grid .has-items::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    border-radius: 50%;
    background: #c19a6d;
}

.calendar-grid .today {
    color: #fff;
}

.calendar-grid .today::before {
    content: "";
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(158,124,85,.5);
    z-index: -1;
}

.calendar-grid .today.has-items::after {
    bottom: 0;
}

.desk-scene {
    display: flex;
    flex-direction: column;
}

.desk-items {
    display: grid;
    grid-template-columns: 170px 200px 1fr;
    gap: 8px;
    align-items: end;
    height: 150px;
}

.desk-object {
    background: transparent;
    cursor: pointer;
    transition: transform .4s;
}

.planner-object {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    transform: rotate(-3deg);
}

.planner-object:hover {
    transform: rotate(-1deg) translateY(-8px);
}

.planner {
    position: relative;
    width: 150px;
    height: 120px;
    background: #d5c8b7;
    padding: 14px 16px;
    box-shadow: 7px 10px 25px rgba(0,0,0,.55);
    text-align: left;
}

.planner-binding {
    position: absolute;
    top: 12px;
    left: 7px;
    width: 5px;
    height: 96px;
    background: #9e907f;
}

.planner-title {
    font-family: "Cormorant Garamond",serif;
    font-size: 21px;
    line-height: 1.1;
    color: #463b32;
    margin-left: 7px;
}

.planner-line {
    height: 1px;
    background: #9b8d7d;
    margin: 12px 0 0 7px;
    width: 100px;
}

.planner-line.short {
    width: 70px;
}

.notes-object {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
}

.notes-object:hover {
    transform: translateY(-8px);
}

.note {
    width: 62px;
    height: 66px;
    padding: 12px 3px;
    text-align: center;
    font-family: "Cormorant Garamond",serif;
    font-size: 13px;
    line-height: 1.1;
    color: #473d34;
    box-shadow: 4px 7px 18px rgba(0,0,0,.4);
    overflow: hidden;
}

.note-one {
    background: #aaa98d;
    transform: rotate(-5deg);
}

.note-two {
    background: #a77f5b;
    transform: rotate(4deg);
}

.note-three {
    background: #aaa99f;
    transform: rotate(-2deg);
}

.desk-decor {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 22px;
}

.desk-cup {
    position: relative;
    width: 57px;
    height: 45px;
}

.cup {
    width: 45px;
    height: 45px;
    background: #aaa095;
    border-radius: 3px 3px 12px 12px;
    box-shadow: 3px 5px 10px rgba(0,0,0,.4);
}

.cup-handle {
    position: absolute;
    left: 40px;
    top: 8px;
    width: 17px;
    height: 23px;
    border: 5px solid #aaa095;
    border-left: 0;
    border-radius: 0 15px 15px 0;
}

.desk-lamp {
    position: relative;
    width: 76px;
    height: 140px;
}

.lamp-shade {
    position: absolute;
    top: 0;
    left: 0;
    width: 76px;
    height: 54px;
    background: linear-gradient(#b69a73,#74583d);
    clip-path: polygon(20% 0,80% 0,100% 100%,0 100%);
    filter: drop-shadow(0 7px 15px rgba(184,135,73,.25));
}

.lamp-stem {
    position: absolute;
    top: 53px;
    left: 35px;
    width: 6px;
    height: 78px;
    background: #50473d;
}

.lamp-base {
    position: absolute;
    bottom: 0;
    left: 10px;
    width: 56px;
    height: 10px;
    border-radius: 50%;
    background: #332b24;
}

.desk-top {
    height: 34px;
    background: linear-gradient(#5b4030,#35251b);
    border-radius: 4px;
    box-shadow: 0 15px 30px rgba(0,0,0,.65);
    position: relative;
    z-index: 2;
}

.desk-front {
    height: 72px;
    display: grid;
    grid-template-columns: 170px 200px 1fr;
    gap: 8px;
    align-items: center;
    background: linear-gradient(#402c20,#2c1e17);
}

.desk-caption {
    background: transparent;
    cursor: pointer;
    text-align: center;
    color: #e4d6c6;
    padding: 0;
}

.desk-caption strong {
    display: block;
    font-family: "Cormorant Garamond", serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.15;
}

.desk-caption span {
    display: block;
    font-size: 8px;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .55;
    margin-top: 3px;
}

.desk-legs {
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
}

.desk-leg {
    width: 22px;
    height: 48px;
    background: #251913;
}

.task-preview,
.dream-preview,
.goal-preview {
    width: 100%;
    max-width: 300px;
}

.task-preview:empty,
.dream-preview:empty {
    display: none;
}

.preview-note {
    background: rgba(35,31,27,.88);
    border-left: 2px solid #9e7c55;
    padding: 12px 16px;
    margin-top: 8px;
    color: #ddd0bf;
    box-shadow: 0 8px 22px rgba(0,0,0,.3);
    font-family: "Cormorant Garamond",serif;
    font-size: 17px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.preview-note:first-child {
    margin-top: 0;
}

.world-scene {
    width: 620px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.vision-board {
    position: relative;
    flex: none;
    width: 460px;
    height: 310px;
    margin: 0 auto;
    background:
        linear-gradient(rgba(80,55,38,.1),rgba(80,55,38,.1)),
        repeating-linear-gradient(0deg,#654b38 0 4px,#76583f 5px 8px);
    border: 14px solid #211711;
    box-shadow: 0 25px 60px rgba(0,0,0,.7);
    cursor: pointer;
    transition: transform .45s;
}

.vision-board:hover {
    transform: translateY(-6px);
}

.board-title {
    position: absolute;
    top: 16px;
    left: 20px;
    color: rgba(255,239,214,.65);
    font-size: 9px;
    letter-spacing: .18em;
}

.vision-note {
    position: absolute;
    width: 150px;
    padding: 12px 14px;
    background: #c9bdab;
    box-shadow: 3px 6px 15px rgba(0,0,0,.45);
    color: #40372e;
}

.vision-note::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 50%;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    border-radius: 50%;
    background: #a7835a;
    box-shadow: 1px 2px 4px rgba(0,0,0,.5);
}

.vision-note span {
    display: block;
    font-size: 8px;
    opacity: .45;
    margin: 6px 0 6px;
}

.vision-note strong {
    display: block;
    font-family: "Cormorant Garamond",serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.15;
}

.note-a {
    left: 20px;
    top: 48px;
    transform: rotate(-2deg);
}

.note-b {
    right: 20px;
    top: 48px;
    transform: rotate(2deg);
    background: #9da087;
}

.note-c {
    left: 20px;
    bottom: 22px;
    transform: rotate(1deg);
    background: #a57d5b;
}

.board-photo {
    position: absolute;
    width: 130px;
    height: 100px;
    right: 40px;
    bottom: 22px;
    background: #c8bdae;
    padding: 6px;
    transform: rotate(-3deg);
    overflow: hidden;
}

.mountain-shape,
.mountain-back,
.mountain-front {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 70%;
    background: #69725e;
    clip-path: polygon(0 80%,30% 35%,48% 61%,69% 15%,100% 75%,100% 100%,0 100%);
}

.mountain-back {
    background: #858d79;
    height: 80%;
}

.mountain-front {
    background: #454e42;
    height: 55%;
}

.sun-shape,
.travel-sun {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #b28a5d;
    top: 16px;
    right: 18px;
}

.world-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 10px;
}

.world-plant {
    position: relative;
    flex: none;
    width: 120px;
    height: 190px;
}

.world-pot {
    position: absolute;
    bottom: 0;
    left: 25px;
    width: 70px;
    height: 70px;
    background: linear-gradient(90deg,#3c2b21,#674935,#302219);
    clip-path: polygon(5% 0,95% 0,83% 100%,17% 100%);
}

.w-leaf-one { left: 12px; top: 52px; transform: rotate(-40deg); }
.w-leaf-two { left: 34px; top: 12px; transform: rotate(-10deg); }
.w-leaf-three { left: 56px; top: 38px; transform: rotate(30deg); }
.w-leaf-four { left: 64px; top: 72px; transform: rotate(55deg); }

.travel-wrap {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.travel-frame {
    width: 170px;
    height: 125px;
    background: #c7bbab;
    padding: 8px;
    transform: rotate(3deg);
    box-shadow: 5px 10px 25px rgba(0,0,0,.55);
}

.travel-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #727968;
}

.travel-caption {
    color: white;
    font-family: "Cormorant Garamond",serif;
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,.6);
}

.sketchbook {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 200px;
    background: transparent;
    cursor: pointer;
    transition: transform .4s;
}

.sketchbook:hover {
    transform: translateY(-8px);
}

.sketch-page {
    position: relative;
    width: 180px;
    height: 140px;
    background: #cfc4b4;
    box-shadow: 8px 12px 30px rgba(0,0,0,.55);
    overflow: hidden;
    transform: rotate(3deg);
}

.sketch-title {
    position: absolute;
    top: 10px;
    left: 14px;
    font-family: "Cormorant Garamond",serif;
    font-size: 18px;
    letter-spacing: .1em;
    color: #4d443b;
}

.sketch-line {
    position: absolute;
    height: 1px;
    background: #72685d;
}

.line-a { width: 90px; top: 44px; left: 14px; }
.line-b { width: 60px; top: 58px; left: 14px; }

.sketch-arch {
    position: absolute;
    width: 50px;
    height: 56px;
    left: 18px;
    bottom: 0;
    border: 2px solid #655c52;
    border-bottom: 0;
    border-radius: 50px 50px 0 0;
}

.sketch-window {
    position: absolute;
    width: 30px;
    height: 44px;
    right: 26px;
    bottom: 18px;
    border: 1px solid #655c52;
}

.modal-layer {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(5,5,4,.76);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-layer.active {
    display: flex;
    animation: fadeIn .25s ease;
}

.modal-paper {
    width: min(560px,94vw);
    max-height: 90vh;
    overflow-y: auto;
    background: #211e1a;
    color: #e4d9ca;
    padding: 42px;
    position: relative;
    box-shadow: 0 30px 90px rgba(0,0,0,.75);
    border: 1px solid rgba(221,198,169,.1);
    animation: paperIn .35s ease;
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 19px;
    background: transparent;
    color: #a99c8c;
    font-size: 26px;
    cursor: pointer;
    font-weight: 300;
}

.paper-label {
    font-size: 9px;
    letter-spacing: .25em;
    color: #a98b69;
    font-weight: 600;
    margin-bottom: 12px;
}

.modal-paper h2 {
    font-family: "Cormorant Garamond",serif;
    font-size: 42px;
    font-weight: 500;
    margin-bottom: 25px;
    color: #eee4d7;
    line-height: 1.1;
}

.modal-paper input,
.modal-paper textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #4a4036;
    background: transparent;
    padding: 13px 0;
    color: #eee4d7;
    font-size: 14px;
}

.modal-paper textarea {
    min-height: 170px;
    resize: vertical;
    line-height: 1.8;
}

.modal-paper input::placeholder,
.modal-paper textarea::placeholder {
    color: #71675c;
}

.notes-paper textarea {
    min-height: 260px;
}

.paper-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 25px;
}

.paper-footer span {
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #766c61;
}

.paper-footer button,
.task-input-row button {
    background: #69745e;
    color: white;
    padding: 12px 20px;
    cursor: pointer;
    transition: .3s;
}

.paper-footer button:hover,
.task-input-row button:hover,
.primary-action:hover {
    background: #7e896f;
}

.photo-upload-preview {
    height: 220px;
    margin: 10px 0 22px;
    border: 1px dashed #554b40;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #786e62;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.photo-upload-preview span {
    font-size: 34px;
    font-weight: 200;
}

.photo-upload-preview p {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .15em;
    margin-top: 8px;
}

.photo-upload-preview img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-area input {
    display: none;
}

.primary-action {
    margin-top: 22px;
    width: 100%;
    padding: 14px;
    background: #69745e;
    color: white;
    cursor: pointer;
}

.memory-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.memory-item {
    padding: 15px;
    background: #29251f;
    border: 1px solid rgba(222,205,184,.08);
    cursor: pointer;
    transition: .25s;
}

.memory-item:hover {
    transform: translateX(5px);
    background: #332e27;
}

.memory-item strong {
    display: block;
    font-family: "Cormorant Garamond",serif;
    font-size: 21px;
    color: #e0d3c3;
    overflow-wrap: anywhere;
}

.memory-item span {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #82776a;
}

.delete-memory {
    margin-top: 24px;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid rgba(190,110,100,.5);
    color: #c98a80;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: .3s;
}

.delete-memory:hover {
    background: rgba(190,110,100,.15);
    color: #e0a79e;
}

.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #796f63;
    font-family: "Cormorant Garamond",serif;
    font-size: 21px;
}

.viewer-image {
    width: 100%;
    max-height: 55vh;
    object-fit: contain;
    margin-bottom: 20px;
}

.viewer-date {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #81766a;
}

.viewer-title {
    font-family: "Cormorant Garamond",serif;
    font-size: 38px;
    margin: 8px 0 12px;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.viewer-text {
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
    color: #b9ad9f;
    overflow-wrap: anywhere;
}

.task-input-row {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.task-input-row input {
    flex: 1;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 4px;
    border-bottom: 1px solid rgba(226,211,192,.1);
}

.task-check {
    width: 19px;
    height: 19px;
    border: 1px solid #766b5e;
    border-radius: 50%;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    background: transparent;
}

.task-item.completed .task-check {
    background: #68745f;
    border-color: #68745f;
}

.task-item.completed .task-check::after {
    content: "✓";
    color: white;
    position: absolute;
    left: 4px;
    top: -1px;
    font-size: 12px;
}

.task-item span {
    flex: 1;
    font-size: 13px;
    color: #c9bdb0;
    overflow-wrap: anywhere;
}

.task-item.completed span {
    text-decoration: line-through;
    color: #696159;
}

.task-delete {
    background: transparent;
    color: #766b60;
    cursor: pointer;
    font-size: 17px;
}

.dream-list {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.dream-item {
    padding: 15px;
    background: #2a2722;
    border-left: 2px solid #8b765b;
}

.dream-item strong {
    font-family: "Cormorant Garamond",serif;
    font-size: 22px;
    color: #ded2c2;
    overflow-wrap: anywhere;
}

.dream-item p {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.6;
    color: #91867a;
    overflow-wrap: anywhere;
}

.dream-item .dream-delete {
    float: right;
    background: transparent;
    color: #81776b;
    cursor: pointer;
}

#toast {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translate(-50%,20px);
    background: #ddd0bd;
    color: #211d18;
    padding: 12px 20px;
    font-size: 11px;
    letter-spacing: .04em;
    opacity: 0;
    pointer-events: none;
    transition: .35s;
    z-index: 200;
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

#toast.show {
    opacity: 1;
    transform: translate(-50%,0);
}

.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-placeholder.has-photo {
    background: none;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

.lock-button {
    background: transparent;
    border: 1px solid rgba(222,202,176,.35);
    color: rgba(255,255,255,.7);
    padding: 7px 12px;
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: .3s;
}

.lock-button:hover {
    color: #fff;
    border-color: rgba(222,202,176,.7);
}

.lock-screen {
    background: #161412;
    overflow: hidden;
}

.lock-card {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: min(340px,90vw);
    padding: 40px 34px;
    text-align: center;
    background: rgba(33,30,26,.92);
    border: 1px solid rgba(221,198,169,.1);
    box-shadow: 0 30px 90px rgba(0,0,0,.75);
    z-index: 2;
}

.lock-card .brand-mark {
    margin: 0 auto 22px;
}

.lock-card h2 {
    font-family: "Cormorant Garamond",serif;
    font-size: 36px;
    font-weight: 500;
    margin: 10px 0 24px;
    color: #eee4d7;
}

.lock-input {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #4a4036;
    background: transparent;
    padding: 12px 0;
    color: #eee4d7;
    font-size: 26px;
    text-align: center;
    letter-spacing: .5em;
}

.lock-input::placeholder {
    color: #71675c;
}

.lock-input.shake {
    animation: shake .35s ease;
}

.lock-reset {
    margin-top: 18px;
    background: transparent;
    color: #81776b;
    font-size: 11px;
    cursor: pointer;
}

.lock-reset:hover {
    color: #b9ad9f;
}

.pin-note {
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.7;
    color: #91867a;
}

.pin-actions {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.pin-actions button {
    flex: 1;
    padding: 12px;
    background: #2a2722;
    color: #c9bdb0;
    border: 1px solid rgba(222,205,184,.1);
    cursor: pointer;
    transition: .3s;
}

.pin-actions button:hover {
    background: #332e27;
}

.prompt-box {
    margin-bottom: 18px;
    padding: 14px 16px;
    background: #29251f;
    border-left: 2px solid #8b765b;
}

.prompt-label,
.mood-label {
    display: block;
    font-size: 9px;
    letter-spacing: .2em;
    color: #a98b69;
    font-weight: 600;
}

.prompt-box p {
    margin: 8px 0 10px;
    font-family: "Cormorant Garamond",serif;
    font-size: 20px;
    color: #e0d3c3;
}

.prompt-actions {
    display: flex;
    gap: 16px;
}

.prompt-actions button {
    background: transparent;
    color: #a98b69;
    font-size: 11px;
    cursor: pointer;
}

.prompt-actions button:hover {
    color: #d8b98f;
}

.mood-row {
    margin-top: 18px;
}

.mood-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.mood-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #4a4036;
    font-size: 19px;
    opacity: .55;
    cursor: pointer;
    transition: .25s;
}

.mood-btn:hover {
    opacity: .9;
}

.mood-btn.active {
    opacity: 1;
    border-color: #c19a6d;
    background: #332e27;
}

.tag-row {
    margin-top: 18px;
}

.tag-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag-pill {
    padding: 5px 12px;
    background: transparent;
    border: 1px solid #4a4036;
    color: #91867a;
    font-size: 11px;
    cursor: pointer;
    transition: .25s;
}

.tag-pill:hover {
    color: #d6cabb;
}

.tag-pill.active {
    background: #69745e;
    border-color: #69745e;
    color: #fff;
}

.chest-tools {
    margin-bottom: 18px;
}

.memory-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.memory-tags em {
    font-style: normal;
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 3px 8px;
    border: 1px solid rgba(169,139,105,.4);
    color: #a98b69;
}

.mood-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: #29251f;
}

.mood-summary-label {
    font-size: 9px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #a98b69;
    font-weight: 600;
    margin-right: 6px;
}

.mood-chip {
    font-size: 14px;
    color: #d6cabb;
}

.viewer-mood {
    font-size: 13px;
    color: #a98b69;
    margin-bottom: 12px;
}

.day-paper h2 {
    font-size: 34px;
}

.day-heading {
    margin: 18px 0 10px;
    font-size: 9px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #a98b69;
    font-weight: 600;
}

.dream-progress {
    margin-top: 22px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #91867a;
    margin-bottom: 8px;
}

.progress-track {
    height: 6px;
    background: #332e27;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #7e896f;
    transition: width .4s ease;
}

.status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.status-pill {
    padding: 5px 11px;
    background: transparent;
    border: 1px solid #4a4036;
    color: #91867a;
    font-size: 11px;
    cursor: pointer;
    transition: .25s;
}

.status-pill:hover {
    color: #d6cabb;
}

.status-pill.active {
    background: #69745e;
    border-color: #69745e;
    color: #fff;
}

.dream-item.done strong {
    color: #8f9a82;
}

.preview-note.done {
    opacity: .55;
    text-decoration: line-through;
}

.preview-note.progress {
    border-left-color: #7e896f;
}

@keyframes curtainOpen {
    from {
        width: 52%;
    }

    to {
        width: 30px;
    }
}

@keyframes cloudDrift {
    from {
        transform: translateX(-80px);
    }

    to {
        transform: translateX(240px);
    }
}

@keyframes sunGlow {
    from {
        box-shadow: 0 0 18px 5px rgba(236,208,154,.3);
    }

    to {
        box-shadow: 0 0 30px 12px rgba(236,208,154,.5);
    }
}

@keyframes starTwinkle {
    from {
        opacity: .4;
    }

    to {
        opacity: .9;
    }
}

@media (prefers-reduced-motion: reduce) {
    .window-curtain,
    .cloud,
    .window-sun,
    .window-stars {
        animation: none !important;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes paperIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 900px) {
    .room-screen {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .room-topbar {
        position: fixed;
        padding: 0 20px;
        height: 70px;
        background: rgba(10,9,8,.55);
        backdrop-filter: blur(10px);
    }

    .room-title h2 {
        font-size: 22px;
    }

    .room-date {
        display: none;
    }

    .room-stage {
        position: relative;
        top: 0;
        bottom: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 28px;
        padding: 100px 5vw 40px;
        min-height: 100%;
    }

    .room-side {
        max-height: none;
        overflow: visible;
    }

    .room-copy {
        max-width: none;
    }

    .room-copy h1 {
        font-size: clamp(44px, 11vw, 64px);
    }

    .task-preview,
    .dream-preview,
    .goal-preview {
        max-width: none;
    }

    .fit-box {
        flex: none;
        height: auto;
    }
}

@media (max-width: 700px) {
    .topbar {
        padding: 0 20px;
    }

    .topbar-date {
        display: none;
    }

    .welcome-screen {
        padding: 0 8vw 90px;
    }

    .welcome-footer {
        left: 8vw;
        font-size: 10px;
    }

    .hallway-heading h2 {
        font-size: 32px;
    }

    .doors {
        gap: 8px;
    }

    .door-space {
        width: 28vw;
    }

    .door-frame {
        height: 30vh;
        padding: 6px;
    }

    .door-label {
        margin-top: 10px;
        gap: 5px;
    }

    .door-label h3 {
        font-size: 16px;
    }

    .door-label p,
    .door-number {
        display: none;
    }

    .hallway-bottom {
        display: none;
    }

    .hallway-content {
        padding-bottom: 30px;
    }

    .modal-paper {
        padding: 30px 23px;
    }

    .modal-paper h2 {
        font-size: 35px;
    }
}


.screen:not(.hidden) {
    animation: screenIn .7s ease backwards;
}

.hallway-background,
.room-background {
    scale: 1.06;
    translate: calc(var(--mx, 0) * -14px) calc(var(--my, 0) * -9px);
    transition: translate .5s ease-out;
}

.welcome-image {
    translate: calc(var(--mx, 0) * -10px) calc(var(--my, 0) * -6px);
    transition: translate .5s ease-out;
}

.welcome-overlay,
.hallway-light {
    animation: breathe 8s ease-in-out infinite alternate;
}

.welcome-content .eyebrow {
    animation: fadeUp .9s cubic-bezier(.2,.8,.2,1) .2s backwards;
}

.welcome-content h1 {
    animation: titleReveal 1.8s cubic-bezier(.2,.8,.2,1) .45s backwards;
}

.welcome-copy {
    animation: fadeUp .9s cubic-bezier(.2,.8,.2,1) 1.2s backwards;
}

.enter-button {
    animation: fadeUp .9s cubic-bezier(.2,.8,.2,1) 1.5s backwards;
}

.welcome-footer {
    animation: fadeIn 1.4s ease 2s backwards;
}

.welcome-footer i {
    animation: dotPulse 2.4s ease-in-out infinite;
}

.welcome-footer i:nth-of-type(2) {
    animation-delay: 1.2s;
}

.hallway-heading {
    animation: fadeUp 1s cubic-bezier(.2,.8,.2,1) .15s backwards;
}

.door-space {
    animation: riseIn 1s cubic-bezier(.2,.8,.2,1) backwards;
}

.door-space:nth-child(1) { animation-delay: .35s; }
.door-space:nth-child(2) { animation-delay: .55s; }
.door-space:nth-child(3) { animation-delay: .75s; }

.door-handle {
    animation: handleGlint 4.5s ease-in-out infinite;
}

.door-space:nth-child(2) .door-handle { animation-delay: 1.5s; }
.door-space:nth-child(3) .door-handle { animation-delay: 3s; }

.motes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 6;
}

.motes i {
    position: absolute;
    bottom: -12px;
    left: var(--x);
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236,208,154,.95), rgba(236,208,154,0) 70%);
    opacity: 0;
    animation: moteRise var(--d) linear var(--delay) infinite;
}

.room-copy > *,
.task-preview,
.dream-preview,
.goal-preview {
    animation: fadeUp .9s cubic-bezier(.2,.8,.2,1) backwards;
}

.room-copy > :nth-child(1) { animation-delay: .15s; }
.room-copy > :nth-child(2) { animation-delay: .3s; }
.room-copy > :nth-child(3) { animation-delay: .45s; }

.task-preview,
.dream-preview {
    animation-delay: .65s;
}

.goal-preview {
    animation-delay: .8s;
}

.memory-top > *,
.memory-objects > *,
.wall-row > *,
.desk-scene > *,
.vision-board,
.world-row > * {
    animation: riseIn 1s cubic-bezier(.2,.8,.2,1) backwards;
}

.memory-top > :nth-child(1) { animation-delay: .2s; }
.memory-top > :nth-child(2) { animation-delay: .35s; }
.memory-objects > :nth-child(1) { animation-delay: .55s; }
.memory-objects > :nth-child(2) { animation-delay: .7s; }
.memory-objects > :nth-child(3) { animation-delay: .85s; }
.wall-row > :nth-child(1) { animation-delay: .2s; }
.wall-row > :nth-child(2) { animation-delay: .35s; }
.desk-scene > :nth-child(1) { animation-delay: .6s; }
.desk-scene > :nth-child(2) { animation-delay: .7s; }
.desk-scene > :nth-child(3) { animation-delay: .8s; }
.desk-scene > :nth-child(4) { animation-delay: .9s; }
.vision-board { animation-delay: .25s; }
.world-row > :nth-child(1) { animation-delay: .7s; }
.world-row > :nth-child(2) { animation-delay: .85s; }
.world-row > :nth-child(3) { animation-delay: 1s; }

.diary-book {
    transition: rotate .45s ease;
    animation: bob 6s ease-in-out infinite alternate;
}

.diary-object:hover .diary-book {
    rotate: 6deg;
}

.photo-frame {
    animation: bob 5s ease-in-out infinite alternate;
}

.frame-two { animation-delay: -2s; }
.frame-three { animation-delay: -3.5s; }

.chest-lid {
    transform-origin: left bottom;
    transition: transform .45s cubic-bezier(.2,.8,.2,1);
}

.chest-object:hover .chest-lid {
    transform: rotate(-7deg) translateY(-7px);
}

.chest-lock {
    animation: lockGlint 3.2s ease-in-out infinite;
}

.leaf {
    animation: leafSway 5s ease-in-out infinite alternate;
}

.leaf-two,
.w-leaf-two { animation-delay: -1.2s; }
.leaf-three,
.w-leaf-three { animation-delay: -2.4s; }
.leaf-four,
.w-leaf-four { animation-delay: -3.6s; }

.lamp-shade {
    animation: lampGlow 3.5s ease-in-out infinite alternate;
}

.desk-lamp::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 48px;
    width: 92px;
    height: 90px;
    background: radial-gradient(ellipse at top, rgba(235,185,110,.3), transparent 70%);
    animation: glowPulse 3.5s ease-in-out infinite alternate;
    pointer-events: none;
}

.desk-cup::before,
.desk-cup::after {
    content: "";
    position: absolute;
    top: -8px;
    width: 3px;
    height: 16px;
    border-radius: 3px;
    background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.45));
    opacity: 0;
    animation: steamRise 3.2s ease-in infinite;
}

.desk-cup::before { left: 14px; }
.desk-cup::after { left: 26px; animation-delay: 1.4s; }

.clock-hand.second {
    width: 1px;
    height: 42px;
    left: calc(50% - .5px);
    background: #9a5b3f;
    animation: secondSpin 60s linear infinite;
}

.calendar-grid .today::before {
    animation: todayPulse 2.4s ease-out infinite;
}

.note {
    transition: rotate .3s ease, translate .3s ease;
}

.notes-object:hover .note-one { rotate: -4deg; translate: 0 -4px; }
.notes-object:hover .note-two { rotate: 3deg; translate: 0 -9px; }
.notes-object:hover .note-three { rotate: -3deg; translate: 0 -4px; }

.vision-note,
.board-photo,
.travel-frame {
    animation: sway 7s ease-in-out infinite alternate;
}

.note-b { animation-delay: -2s; }
.note-c { animation-delay: -4s; }
.board-photo { animation-delay: -3s; }
.travel-frame { animation-delay: -1s; }

.sun-shape,
.travel-sun {
    animation: sunPulse 3.5s ease-in-out infinite alternate;
}

.line-a { animation: drawLine 1.1s ease-out .9s backwards; }
.line-b { animation: drawLine 1s ease-out 1.25s backwards; }
.sketch-arch { animation: drawArch 1s ease-out 1.5s backwards; }
.sketch-window { animation: fadeIn .9s ease 2.1s backwards; }

.modal-layer.active .modal-paper > :not(.close-modal) {
    animation: fadeUp .55s cubic-bezier(.2,.8,.2,1) backwards;
}

.modal-layer.active .modal-paper > :nth-child(3) { animation-delay: .08s; }
.modal-layer.active .modal-paper > :nth-child(4) { animation-delay: .14s; }
.modal-layer.active .modal-paper > :nth-child(5) { animation-delay: .2s; }
.modal-layer.active .modal-paper > :nth-child(6) { animation-delay: .26s; }
.modal-layer.active .modal-paper > :nth-child(7) { animation-delay: .32s; }
.modal-layer.active .modal-paper > :nth-child(n+8) { animation-delay: .38s; }

@keyframes screenIn {
    from {
        opacity: 0;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        translate: 0 18px;
    }
}

@keyframes riseIn {
    from {
        opacity: 0;
        translate: 0 40px;
    }
}

@keyframes titleReveal {
    from {
        opacity: 0;
        filter: blur(14px);
        translate: 0 12px;
    }
}

@keyframes breathe {
    from {
        opacity: .6;
        scale: 1;
    }

    to {
        opacity: 1;
        scale: 1.08;
    }
}

@keyframes dotPulse {
    0%, 100% {
        scale: 1;
        opacity: .3;
    }

    50% {
        scale: 2.2;
        opacity: .9;
    }
}

@keyframes handleGlint {
    0%, 100% {
        box-shadow: 0 1px 8px #000;
    }

    50% {
        box-shadow: 0 0 12px 3px rgba(224,184,120,.75);
    }
}

@keyframes moteRise {
    0% {
        translate: 0 0;
        opacity: 0;
    }

    15% {
        opacity: .7;
    }

    85% {
        opacity: .45;
    }

    100% {
        translate: var(--drift) -105vh;
        opacity: 0;
    }
}

@keyframes bob {
    from {
        translate: 0 0;
    }

    to {
        translate: 0 -7px;
    }
}

@keyframes lockGlint {
    0%, 100% {
        box-shadow: 0 0 0 rgba(216,185,143,0);
    }

    50% {
        box-shadow: 0 0 12px 3px rgba(216,185,143,.7);
    }
}

@keyframes leafSway {
    from {
        rotate: -2.5deg;
    }

    to {
        rotate: 2.5deg;
    }
}

@keyframes lampGlow {
    from {
        filter: drop-shadow(0 7px 14px rgba(184,135,73,.2));
    }

    to {
        filter: drop-shadow(0 10px 28px rgba(225,170,95,.6));
    }
}

@keyframes glowPulse {
    from {
        opacity: .5;
    }

    to {
        opacity: 1;
    }
}

@keyframes steamRise {
    0% {
        translate: 0 0;
        opacity: 0;
        scale: 1;
    }

    30% {
        opacity: .7;
    }

    100% {
        translate: 4px -22px;
        opacity: 0;
        scale: 1 1.6;
    }
}

@keyframes secondSpin {
    from {
        rotate: 0deg;
    }

    to {
        rotate: 360deg;
    }
}

@keyframes todayPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(193,154,109,.55);
    }

    100% {
        box-shadow: 0 0 0 9px rgba(193,154,109,0);
    }
}

@keyframes sway {
    from {
        rotate: -.9deg;
    }

    to {
        rotate: .9deg;
    }
}

@keyframes sunPulse {
    from {
        scale: 1;
    }

    to {
        scale: 1.18;
    }
}

@keyframes drawLine {
    from {
        width: 0;
    }
}

@keyframes drawArch {
    from {
        height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .motes {
        display: none;
    }
}


.memory-window {
    cursor: pointer;
    transition: box-shadow .4s ease;
}

.memory-window:hover,
.memory-window:focus-visible {
    box-shadow: 0 20px 60px rgba(0,0,0,.55), 0 0 44px rgba(236,208,154,.28);
}

.window-hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    z-index: 3;
    text-align: center;
    font-size: 8px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255,244,222,.8);
    text-shadow: 0 1px 6px rgba(0,0,0,.8);
    opacity: .6;
    transition: opacity .3s;
    pointer-events: none;
}

.memory-window:hover .window-hint,
.memory-window:focus-visible .window-hint {
    opacity: 1;
}


.rain-layer {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    background: #05070d;
}

.rain-layer.active {
    display: block;
    animation: fadeIn .8s ease;
}

.rain-layer canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
    cursor: crosshair;
}

.rain-head {
    position: absolute;
    top: 28px;
    left: 42px;
    z-index: 2;
    pointer-events: none;
    text-shadow: 0 2px 14px rgba(0,0,0,.7);
}

.rain-head h2 {
    margin: 8px 0 6px;
    font-family: "Cormorant Garamond", serif;
    font-size: 38px;
    font-weight: 400;
    line-height: 1.1;
    color: #f3eadb;
}

.rain-head p:last-child {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(243,234,219,.7);
}

.close-rain {
    position: absolute;
    top: 22px;
    right: 30px;
    z-index: 3;
    width: 44px;
    height: 44px;
    background: transparent;
    color: #e6dccb;
    font-size: 30px;
    font-weight: 300;
    cursor: pointer;
    text-shadow: 0 2px 10px rgba(0,0,0,.6);
    transition: color .3s, transform .3s;
}

.close-rain:hover {
    color: #fff;
    transform: rotate(90deg);
}

.rain-hint {
    position: absolute;
    bottom: 26px;
    left: 50%;
    z-index: 2;
    translate: -50% 0;
    width: max-content;
    max-width: 90vw;
    text-align: center;
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(243,234,219,.7);
    text-shadow: 0 2px 10px rgba(0,0,0,.7);
    pointer-events: none;
    animation: hintFade 1.2s ease 8s forwards;
}

@keyframes hintFade {
    to {
        opacity: 0;
    }
}

@media (max-width: 700px) {
    .rain-head {
        top: 22px;
        left: 22px;
    }

    .rain-head h2 {
        font-size: 30px;
    }

    .close-rain {
        right: 14px;
    }
}


.theme-toggle {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(20,17,14,.55);
    border: 1px solid rgba(222,202,176,.35);
    color: #e8d6b8;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: transform .4s ease, border-color .3s, background .3s, color .3s;
}

.theme-toggle:hover {
    transform: rotate(18deg) scale(1.06);
    border-color: rgba(222,202,176,.8);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-toggle .icon-moon {
    display: none;
}

.goal-peek {
    padding: 14px 16px;
    background: rgba(35,31,27,.88);
    border-left: 2px solid #7e896f;
    color: #ddd0bf;
    box-shadow: 0 8px 22px rgba(0,0,0,.3);
    cursor: pointer;
    transition: transform .3s ease, background .3s ease;
}

.goal-peek:hover {
    transform: translateX(4px);
    background: rgba(44,39,33,.92);
}

.goal-peek-head {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    letter-spacing: .2em;
    color: #a98b69;
    font-weight: 600;
    margin-bottom: 4px;
}

.goal-peek-row {
    margin-top: 12px;
}

.goal-peek-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    font-family: "Cormorant Garamond",serif;
    font-size: 17px;
    line-height: 1.2;
}

.goal-peek-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.goal-peek-percent {
    flex: none;
    font-family: "DM Sans",sans-serif;
    font-size: 10px;
    letter-spacing: .08em;
    opacity: .7;
}

.goal-peek-bar {
    height: 3px;
    margin-top: 6px;
    background: rgba(255,255,255,.1);
    border-radius: 2px;
    overflow: hidden;
}

.goal-peek-bar i {
    display: block;
    height: 100%;
    background: #7e896f;
    border-radius: 2px;
    transition: width .5s ease;
}

.goal-more {
    margin-top: 12px;
    font-size: 9px;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .5;
}

.goal-empty {
    padding: 12px 16px;
    background: transparent;
    border: 1px dashed rgba(222,202,176,.35);
    color: rgba(255,255,255,.65);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: .3s;
}

.goal-empty:hover {
    color: #fff;
    border-color: rgba(222,202,176,.7);
}

.goal-overall {
    margin-bottom: 22px;
}

.goal-overall:empty {
    display: none;
}

.goal-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.goal-item {
    padding: 16px;
    background: #2a2722;
    border-left: 2px solid #8b765b;
    transition: border-color .4s ease;
}

.goal-item.reached {
    border-left-color: #7e896f;
}

.goal-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.goal-top strong {
    font-family: "Cormorant Garamond",serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    color: #ded2c2;
    overflow-wrap: anywhere;
}

.goal-item.reached .goal-top strong::after {
    content: " ✓";
    color: #a8b894;
}

.goal-delete {
    flex: none;
    background: transparent;
    color: #81776b;
    font-size: 18px;
    cursor: pointer;
}

.goal-delete:hover {
    color: #c98a80;
}

.goal-meter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.goal-meter .progress-track {
    flex: 1;
    height: 8px;
    border-radius: 4px;
}

.goal-item .progress-fill {
    transition: width .15s linear;
}

.goal-item.reached .progress-fill {
    background: linear-gradient(90deg,#7e896f,#b3c19a);
}

.goal-percent {
    width: 44px;
    text-align: right;
    font-size: 12px;
    letter-spacing: .04em;
    color: #c9bdb0;
    font-variant-numeric: tabular-nums;
}

.modal-paper input.goal-slider {
    display: block;
    width: 100%;
    height: 20px;
    margin-top: 10px;
    padding: 0;
    border: 0;
    accent-color: #8f9d7e;
    cursor: pointer;
}

.goal-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.goal-steps button {
    padding: 5px 12px;
    background: transparent;
    border: 1px solid #4a4036;
    color: #91867a;
    font-size: 11px;
    cursor: pointer;
    transition: .25s;
}

.goal-steps button:hover {
    color: #d6cabb;
    border-color: #7a6b58;
}

@media (max-width: 700px) {
    .theme-toggle {
        right: 14px;
        bottom: 14px;
        width: 38px;
        height: 38px;
    }
}


html[data-theme="light"] {
    color-scheme: light;
}

html[data-theme="light"] body {
    background: #efe7da;
    color: #2d241c;
}

html[data-theme="light"] .eyebrow {
    color: rgba(70,54,40,.62);
}

html[data-theme="light"] .lamp-body {
    fill: #9a6f3f;
}

html[data-theme="light"] .lamp-flame {
    fill: #e0a64f;
}

html[data-theme="light"] .welcome-screen {
    background: #efe7da;
    color: #2d241c;
}

html[data-theme="light"] .welcome-image {
    background:
        linear-gradient(90deg, rgba(243,236,224,.94), rgba(243,236,224,.5)),
        linear-gradient(0deg, rgba(243,236,224,.55), transparent 60%),
        url("https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?auto=format&fit=crop&w=2200&q=90") center/cover;
    filter: brightness(1.02) saturate(.7);
}

html[data-theme="light"] .welcome-overlay {
    background: radial-gradient(circle at 65% 40%, rgba(214,170,110,.24), transparent 42%);
}

html[data-theme="light"] .welcome-content h1 span {
    color: #a2763f;
}

html[data-theme="light"] .welcome-copy {
    color: rgba(45,36,28,.68);
}

html[data-theme="light"] .enter-button {
    background: #2d241c;
    color: #f3eadb;
}

html[data-theme="light"] .enter-button:hover {
    background: #41342a;
    box-shadow: 0 15px 45px rgba(80,60,40,.3);
}

html[data-theme="light"] .welcome-footer {
    color: rgba(45,36,28,.5);
}

html[data-theme="light"] .welcome-footer i {
    background: rgba(45,36,28,.4);
}

html[data-theme="light"] .palace-screen,
html[data-theme="light"] .lock-screen,
html[data-theme="light"] .room-screen {
    background: #e9dfcf;
}

html[data-theme="light"] .hallway-background {
    background:
        linear-gradient(90deg, rgba(243,236,224,.82), rgba(243,236,224,.3) 45%, rgba(243,236,224,.8)),
        linear-gradient(0deg, rgba(243,236,224,.6), transparent 55%),
        url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=2200&q=90") center/cover;
    filter: brightness(1.05) saturate(.7);
}

html[data-theme="light"] .hallway-light {
    background: radial-gradient(ellipse, rgba(224,170,100,.26), transparent 67%);
}

html[data-theme="light"] .topbar,
html[data-theme="light"] .room-topbar,
html[data-theme="light"] .hallway-heading,
html[data-theme="light"] .door-label,
html[data-theme="light"] .room-side {
    color: #2d241c;
}

html[data-theme="light"] .topbar-date {
    color: rgba(45,36,28,.6);
}

html[data-theme="light"] .lock-button {
    color: rgba(45,36,28,.75);
    border-color: rgba(70,54,40,.35);
}

html[data-theme="light"] .lock-button:hover {
    color: #000;
    border-color: rgba(70,54,40,.7);
}

html[data-theme="light"] .hallway-heading p:last-child {
    color: rgba(45,36,28,.62);
}

html[data-theme="light"] .hallway-bottom {
    color: rgba(45,36,28,.45);
}

html[data-theme="light"] .back-button {
    color: #2d241c;
}

html[data-theme="light"] .memory-room-bg {
    background-image:
        linear-gradient(90deg,rgba(243,236,224,.78),rgba(243,236,224,.28),rgba(243,236,224,.8)),
        url("https://images.unsplash.com/photo-1618220179428-22790b461013?auto=format&fit=crop&w=2200&q=90");
    filter: brightness(1.04) saturate(.7);
}

html[data-theme="light"] .day-room-bg {
    background-image:
        linear-gradient(90deg,rgba(243,236,224,.8),rgba(243,236,224,.3),rgba(243,236,224,.8)),
        url("https://images.unsplash.com/photo-1497215728101-856f4ea42174?auto=format&fit=crop&w=2200&q=90");
    filter: brightness(1.04) saturate(.7);
}

html[data-theme="light"] .world-room-bg {
    background-image:
        linear-gradient(90deg,rgba(243,236,224,.8),rgba(243,236,224,.3),rgba(243,236,224,.82)),
        url("https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?auto=format&fit=crop&w=2200&q=90");
    filter: brightness(1.04) saturate(.7);
}

html[data-theme="light"] .room-gradient {
    background:
        radial-gradient(circle at 70% 45%,rgba(214,170,110,.22),transparent 34%),
        linear-gradient(0deg,rgba(243,236,224,.5),transparent 55%);
}

html[data-theme="light"] .room-copy h1 em {
    color: #9a6c3a;
}

html[data-theme="light"] .room-copy p:last-child {
    color: rgba(45,36,28,.66);
}

html[data-theme="light"] .object-caption,
html[data-theme="light"] .room-object {
    color: #2d241c;
}

html[data-theme="light"] .object-caption {
    text-shadow: none;
}

html[data-theme="light"] .travel-caption {
    color: #2d241c;
    text-shadow: none;
}

html[data-theme="light"] .preview-note,
html[data-theme="light"] .goal-peek {
    background: rgba(252,247,238,.94);
    color: #3a2f25;
    box-shadow: 0 8px 22px rgba(80,60,40,.18);
}

html[data-theme="light"] .preview-note {
    border-left-color: #a2763f;
}

html[data-theme="light"] .preview-note.progress {
    border-left-color: #7e896f;
}

html[data-theme="light"] .goal-peek:hover {
    background: rgba(255,251,244,.98);
}

html[data-theme="light"] .goal-peek-head {
    color: #8a6a45;
}

html[data-theme="light"] .goal-peek-bar {
    background: rgba(60,45,30,.12);
}

html[data-theme="light"] .goal-peek-bar i {
    background: #6f7a62;
}

html[data-theme="light"] .goal-empty {
    color: rgba(45,36,28,.7);
    border-color: rgba(70,54,40,.4);
}

html[data-theme="light"] .goal-empty:hover {
    color: #000;
    border-color: rgba(70,54,40,.75);
}

html[data-theme="light"] .calendar-wall {
    background: rgba(252,247,238,.95);
    color: #3a2f25;
    box-shadow: 5px 12px 35px rgba(80,60,40,.25);
    border-color: rgba(80,60,40,.12);
}

html[data-theme="light"] .calendar-days,
html[data-theme="light"] .calendar-summary {
    border-color: rgba(60,45,30,.14);
}

html[data-theme="light"] .calendar-grid span[data-day]:hover {
    color: #000;
}

html[data-theme="light"] .calendar-grid .today {
    color: #2d241c;
    font-weight: 600;
}

html[data-theme="light"] .calendar-grid .today::before {
    background: rgba(194,150,95,.42);
}

html[data-theme="light"] .modal-layer {
    background: rgba(236,226,210,.72);
}

html[data-theme="light"] .modal-paper {
    background: #fbf6ec;
    color: #3a2f25;
    border-color: rgba(80,60,40,.14);
    box-shadow: 0 30px 90px rgba(80,60,40,.3);
}

html[data-theme="light"] .modal-paper h2 {
    color: #2d241c;
}

html[data-theme="light"] .close-modal {
    color: #8a7a68;
}

html[data-theme="light"] .paper-label,
html[data-theme="light"] .prompt-label,
html[data-theme="light"] .mood-label,
html[data-theme="light"] .day-heading,
html[data-theme="light"] .mood-summary-label {
    color: #8a6a45;
}

html[data-theme="light"] .modal-paper input,
html[data-theme="light"] .modal-paper textarea {
    color: #2d241c;
    border-bottom-color: #cdbfa9;
}

html[data-theme="light"] .modal-paper input::placeholder,
html[data-theme="light"] .modal-paper textarea::placeholder {
    color: #a89a89;
}

html[data-theme="light"] .paper-footer span {
    color: #8a7d6e;
}

html[data-theme="light"] .photo-upload-preview {
    border-color: #cdbfa9;
    color: #9a8c7c;
}

html[data-theme="light"] .memory-item,
html[data-theme="light"] .dream-item,
html[data-theme="light"] .goal-item,
html[data-theme="light"] .prompt-box,
html[data-theme="light"] .mood-summary {
    background: #f1e8d9;
}

html[data-theme="light"] .memory-item {
    border-color: rgba(80,60,40,.1);
}

html[data-theme="light"] .memory-item:hover {
    background: #eadfca;
}

html[data-theme="light"] .memory-item strong,
html[data-theme="light"] .dream-item strong,
html[data-theme="light"] .goal-top strong,
html[data-theme="light"] .prompt-box p {
    color: #3a2f25;
}

html[data-theme="light"] .memory-item span,
html[data-theme="light"] .viewer-date {
    color: #8a7d6e;
}

html[data-theme="light"] .memory-tags em {
    border-color: rgba(138,106,69,.5);
    color: #8a6a45;
}

html[data-theme="light"] .delete-memory {
    border-color: rgba(165,82,74,.5);
    color: #a5524a;
}

html[data-theme="light"] .delete-memory:hover {
    background: rgba(165,82,74,.1);
    color: #8d3f38;
}

html[data-theme="light"] .empty-state {
    color: #9a8c7c;
}

html[data-theme="light"] .viewer-text {
    color: #5c5045;
}

html[data-theme="light"] .task-item {
    border-bottom-color: rgba(80,60,40,.12);
}

html[data-theme="light"] .task-check {
    border-color: #a89a89;
}

html[data-theme="light"] .task-item span {
    color: #4a3f35;
}

html[data-theme="light"] .task-item.completed span {
    color: #a89a89;
}

html[data-theme="light"] .task-item.completed .task-check {
    border-color: #68745f;
}

html[data-theme="light"] .task-delete,
html[data-theme="light"] .dream-item .dream-delete,
html[data-theme="light"] .goal-delete {
    color: #9a8c7c;
}

html[data-theme="light"] .dream-item p {
    color: #7a6d5f;
}

html[data-theme="light"] .dream-item.done strong {
    color: #6f7a62;
}

html[data-theme="light"] .prompt-actions button {
    color: #8a6a45;
}

html[data-theme="light"] .mood-btn {
    border-color: #cdbfa9;
}

html[data-theme="light"] .mood-btn.active {
    background: #eadfca;
    border-color: #a2763f;
}

html[data-theme="light"] .tag-pill,
html[data-theme="light"] .status-pill,
html[data-theme="light"] .goal-steps button {
    border-color: #cdbfa9;
    color: #7a6d5f;
}

html[data-theme="light"] .tag-pill:hover,
html[data-theme="light"] .status-pill:hover,
html[data-theme="light"] .goal-steps button:hover {
    color: #2d241c;
}

html[data-theme="light"] .tag-pill.active,
html[data-theme="light"] .status-pill.active {
    background: #69745e;
    border-color: #69745e;
    color: #fff;
}

html[data-theme="light"] .mood-chip {
    color: #5c5045;
}

html[data-theme="light"] .progress-label {
    color: #7a6d5f;
}

html[data-theme="light"] .progress-track {
    background: #e4d9c6;
}

html[data-theme="light"] .pin-note {
    color: #7a6d5f;
}

html[data-theme="light"] .pin-actions button {
    background: #f1e8d9;
    color: #4a3f35;
    border-color: rgba(80,60,40,.12);
}

html[data-theme="light"] .pin-actions button:hover {
    background: #eadfca;
}

html[data-theme="light"] .lock-card {
    background: rgba(252,247,238,.94);
    border-color: rgba(80,60,40,.12);
    box-shadow: 0 30px 90px rgba(80,60,40,.3);
}

html[data-theme="light"] .lock-card h2,
html[data-theme="light"] .lock-input {
    color: #2d241c;
}

html[data-theme="light"] .lock-input {
    border-bottom-color: #cdbfa9;
}

html[data-theme="light"] .lock-input::placeholder {
    color: #a89a89;
}

html[data-theme="light"] .lock-reset {
    color: #8a7d6e;
}

html[data-theme="light"] .lock-reset:hover {
    color: #3a2f25;
}

html[data-theme="light"] #toast {
    background: #2d241c;
    color: #f3eadb;
}

html[data-theme="light"] .theme-toggle {
    background: rgba(255,250,242,.85);
    border-color: rgba(80,60,40,.3);
    color: #5a4630;
}

html[data-theme="light"] .theme-toggle:hover {
    border-color: rgba(80,60,40,.6);
}

html[data-theme="light"] .theme-toggle .icon-sun {
    display: none;
}

html[data-theme="light"] .theme-toggle .icon-moon {
    display: block;
}

@media (max-width: 900px) {
    html[data-theme="light"] .room-topbar {
        background: rgba(243,236,224,.72);
    }
}