body {
    font-family: "Mountains of Christmas", serif;
    background-color: #b00020;
    color: #ffffff;
    text-align: center;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

body.is-preloading {
    overflow: hidden;
}

#loading-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.25), rgba(176, 0, 32, 0.95));
    z-index: 999;
    transition: opacity 0.35s ease;
}

#loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 20px;
    padding: 24px 32px;
    max-width: 320px;
    backdrop-filter: blur(4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.loading-note {
    margin-top: 8px;
    font-size: 0.95rem;
    color: #ffe082;
}

#header {
    text-align: left;
    margin-bottom: 20px;
}

#countdown {
    font-size: 1rem;
    margin: 6px 0 0;
    color: #ffe082;
}

#footer {
    text-align: center;
    margin-bottom: 20px;
}

#tree-container {
    position: relative;
    margin: 2rem auto 0;
    height: clamp(320px, 65vh, 1120px);
    aspect-ratio: 3 / 4;
    width: auto;
    max-width: 95vw;
}

#tree {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    height: 100%;
    width: auto;
    max-width: 100%;
}

#star {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -75%);
    width: clamp(80px, 22%, 180px);
    height: auto;
    z-index: 3;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#star:hover {
    transform: translate(-50%, -75%) scale(1.2);
    filter: drop-shadow(0 0 10px gold);
}

#project-paragraph {
    max-width: 840px;
    margin: 14px auto 0;
    line-height: 1.45;
}

#decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.ornament {
    position: absolute;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 32px;
    height: 32px;
    object-fit: contain;
    user-select: none;
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.25));
}

.ornament:hover {
    transform: scale(1.5) rotate(15deg);
}

.important-text {
    color: #ffffff;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

button {
    font-family: "Mountains of Christmas", serif;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    padding: 10px 16px;
    background: #ffffff;
    color: #b00020;
    cursor: pointer;
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.18);
}

button:active {
    transform: translateY(2px);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18);
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.credits-note {
    font-size: 0.9rem;
    margin-top: 6px;
    color: #ffe082;
}

#credits-dropdown {
    margin-top: 14px;
}

#credits-content {
    display: none;
    max-width: 520px;
    margin: 10px auto 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.22);
    color: #ffffff;
    text-align: left;
}

#credits-dropdown.open #credits-content {
    display: block;
}

#credits-content a {
    color: #ffffff;
}

#credits-content a:visited {
    color: #ffffff;
}