body.garden,
.garden.console {
    --ink: #203b32;
    --pine: #285441;
    --paper: #f7f6ef;
    --line: #d7d9c9;
    --accent: #79896b;
    color: var(--ink);
    font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
    line-height: 1.65;
}
body.garden {
    margin: 0;
    background: var(--paper);
}
.garden * {
    box-sizing: border-box;
}
.garden [hidden] {
    display: none !important;
}
.garden h1,
.garden h2,
.garden h3 {
    font-family: Georgia, 'Noto Serif TC', 'Songti TC', serif;
    font-weight: 550;
    line-height: 1.35;
    letter-spacing: 0.04em;
}
.garden h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin: 0.35em 0;
}
.garden h2 {
    font-size: clamp(1.45rem, 3vw, 2rem);
}
.garden a {
    color: var(--pine);
    text-underline-offset: 0.3em;
}
.garden p {
    overflow-wrap: anywhere;
}
.mast,
.endmark {
    padding: 16px max(5vw, calc((100vw - 1152px) / 2));
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fffef9;
}
.mast nav,
.brand,
.toolbar,
.pet-tabs {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.brand {
    text-decoration: none;
    font-family: Georgia, 'Songti TC', serif;
    font-size: 1.16rem;
    letter-spacing: 0.12em;
}
.brand img {
    width: 66px;
    height: 43px;
    object-fit: contain;
}
.mast nav a {
    font-size: 0.91rem;
    text-decoration: none;
}
.shell {
    width: min(1100px, 92vw);
    margin: 30px auto 64px;
}
.endmark {
    background: #e8eadf;
    font-size: 0.88rem;
    border-top: 1px solid var(--line);
}
.hero,
.pet-banner,
.stage {
    position: relative;
    overflow: hidden;
    background-color: #516958;
    background-size: cover;
    background-position: center;
}
.hero {
    min-height: clamp(380px, 56vw, 580px);
    border-radius: 4px 62px 4px 4px;
    display: flex;
    align-items: flex-end;
    padding: clamp(26px, 6vw, 72px);
    color: white;
    background-image:
        linear-gradient(0deg, #142d24df, transparent 85%), url('/assets/images/garden/garden-04.jpg');
}
.hero h1 {
    font-size: clamp(2.7rem, 7vw, 5rem);
    line-height: 1.08;
}
.hero p {
    margin-bottom: 24px;
    font-size: 1.08rem;
}
.hero .button {
    background: #fff9df;
    color: #203b32;
}
.intro,
.login {
    max-width: 620px;
    margin: 36px auto;
}
.login {
    padding: clamp(20px, 5vw, 48px);
    background: #fffef9;
    border: 1px solid var(--line);
    border-top: 5px solid var(--pine);
}
.garden button,
.garden .button,
.garden .quiet {
    font: inherit;
    font-weight: 600;
    font-size: 0.94rem;
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: 24px;
    background: var(--pine);
    color: white;
    text-decoration: none;
    cursor: pointer;
}
.garden .quiet,
.toolbar button:not(:first-child),
.section-head form button {
    background: #f8f9ef;
    color: var(--pine);
    border-color: #98aa92;
}
.garden button:disabled {
    opacity: 0.55;
    cursor: wait;
}
.garden :focus-visible {
    outline: 3px solid #bd823b;
    outline-offset: 3px;
}
.garden form {
    display: grid;
    gap: 12px;
    margin: 12px 0 20px;
    max-width: 720px;
}
.garden form > button {
    justify-self: start;
}
.garden label {
    display: grid;
    gap: 4px;
    font-size: 0.92rem;
    font-weight: 550;
}
.garden input:not([type='checkbox']),
.garden select,
.garden textarea {
    width: 100%;
    font: inherit;
    color: #203b32;
    background: #fffefa;
    border: 1px solid #aeb8a6;
    border-radius: 6px;
    padding: 10px 12px;
    min-height: 44px;
}
.garden input[type='color'] {
    padding: 4px;
}
.garden label.check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
}
.garden .check input {
    accent-color: var(--pine);
    width: 18px;
    height: 18px;
}
.grid,
.frames,
.album {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
    gap: 16px;
}
.section-head,
.pet-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.section-head p,
.pet-banner p {
    margin: 0;
}
.section-head form {
    margin: 0;
}
.pet-tabs {
    margin: 16px 0;
}
.pet-tabs a {
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 6px 16px;
    text-decoration: none;
}
.pet-tabs .selected {
    background: var(--pine);
    color: white;
}
.pet-banner {
    padding: 28px;
    color: white;
    background-image: linear-gradient(90deg, #172e26ed, #233f33b8), url('/assets/images/garden/garden-03.jpg');
    border-left: 8px solid var(--accent);
}
.pet-banner h2 {
    margin: 0.1em 0;
}
.pet-banner a {
    margin: 4px;
}
.garden .panel {
    background: #fffef9;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin: 12px 0;
}
.garden summary {
    cursor: pointer;
    font-weight: 600;
    padding: 12px 4px;
}
.garden .panel > summary {
    padding: 17px 20px;
}
.garden .inside {
    padding: 0 20px 14px;
}
.garden .entry,
.garden .invite,
.garden .rowlink {
    border-top: 1px solid var(--line);
    padding: 14px 0;
}
.garden .entry p {
    margin: 4px 0;
}
.notice,
.template-preview {
    display: block;
    background: #e4ecdb;
    padding: 12px 18px;
}
.photo-edit summary img {
    width: 90px;
    height: 65px;
    object-fit: cover;
    vertical-align: middle;
}
.layout-sample {
    border: 12px solid var(--accent);
    padding: 26px;
    color: white;
    text-shadow: 0 1px 4px #132e22;
    background:
        linear-gradient(#163e2b66, #254034bb),
        url('/assets/images/garden/garden-04.jpg') center/cover;
}
.stage {
    height: clamp(320px, 56vh, 590px);
    border-radius: 12px;
    background-image:
        linear-gradient(0deg, #1c332483, transparent 50%), url('/assets/images/garden/garden-03.jpg');
}
.stage[data-scene='night'],
.stage[data-scene='summer'] {
    background-image: linear-gradient(#192e5e8a, #121f3da1), url('/assets/images/garden/garden-03.jpg');
}
.stage[data-scene='autumn'] {
    background-color: #b38752;
    background-blend-mode: soft-light;
}
.stage-caption {
    pointer-events: none;
    position: absolute;
    top: 14px;
    left: 14px;
    background: #f8f7eced;
    color: #233c30;
    padding: 8px 13px;
    border-radius: 7px;
}
.stage-caption strong,
.stage-caption span {
    display: block;
}
.stage-caption span {
    font-size: 0.78rem;
}
#world,
#world canvas {
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
}
#stick {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 84px;
    height: 84px;
    border: 2px solid #ffffffc0;
    background: #3a51489c;
    border-radius: 100%;
    touch-action: none;
}
#stick i {
    position: absolute;
    top: 24px;
    left: 24px;
    background: #fffbe3;
    width: 32px;
    height: 32px;
    border-radius: 100%;
}
.toolbar {
    margin: 14px 0;
    gap: 8px;
}
.frames {
    background: linear-gradient(135deg, #e5dfcc, #f6f1df);
    border-bottom: 9px solid var(--accent);
    border-radius: 8px;
    padding: 22px;
    align-items: center;
}
.frames:empty,
.album:empty,
.gift-shelf:empty {
    display: none;
}
.garden button.frame {
    display: block;
    border-radius: 1px;
    border: 7px ridge #ab8963;
    background: #f5efdf;
    padding: 6px;
}
.frame img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}
.slot-0 img {
    height: 195px;
}
.album {
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    margin: 16px 0;
}
.garden .album button {
    padding: 0;
    overflow: hidden;
    border-radius: 7px;
    border: 0;
}
.album img {
    width: 100%;
    height: 90px;
    object-fit: cover;
}
.garden dialog {
    border: 0;
    max-width: 92vw;
    border-radius: 12px;
    color: #233d30;
    padding: 16px;
}
.garden dialog::backdrop {
    background: #14241eab;
}
.garden dialog img {
    max-height: 64vh;
    max-width: 80vw;
    display: block;
    margin: auto;
}
.tree {
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    background: #e6ecdf;
    border-radius: 12px;
}
.tree > div {
    padding: 18px;
}
.tree img {
    width: 45%;
    height: 180px;
    object-fit: cover;
}
.tree-photo {
    max-width: 100%;
    max-height: 380px;
}
.gift-shelf {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.gift-shelf span {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 5px 14px;
}
.print-card {
    display: none;
}
@media print {
    body:has(.print-card) > * {
        display: none !important;
    }
    body:has(.print-card) > .print-card {
        display: block !important;
        text-align: center;
        padding: 3cm 1cm;
        color: #203b32;
    }
    .print-card img {
        max-width: 6cm;
    }
}
@media (max-width: 580px) {
    .mast {
        padding: 9px 4vw;
    }
    .mast nav {
        gap: 10px;
    }
    .brand {
        gap: 5px;
    }
    .brand img {
        width: 43px;
    }
    .shell {
        margin-top: 15px;
    }
    .garden .inside {
        padding: 0 13px 12px;
    }
    .toolbar button,
    .garden .quiet {
        padding: 8px 12px;
    }
    .frames {
        grid-template-columns: 1fr 1fr;
        padding: 12px;
    }
    .frame img,
    .slot-0 img {
        height: 105px;
    }
    .stage-caption {
        max-width: 90%;
    }
    .tree img {
        height: 145px;
    }
}

.hall-directory {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 20px;
    margin: 22px 0;
}
.hall-card {
    background: #fffef8;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}
.hall-card > img {
    width: 100%;
    height: 175px;
    object-fit: cover;
}
.hall-card > div {
    padding: 16px;
}
.hall-card h2 {
    margin: 0;
}
.hall-card a {
    margin: 0 0 6px;
}
