:root {
    --bg-color: #0d1a2f;
    --content-bg: rgba(18, 32, 58, 0.5);
    --text-color: #f0f8ff;
    --accent-color: #e84a5f;
    --border-color: rgba(240, 248, 255, 0.15);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --title-font: 'Mountains of Christmas', cursive;
    --body-font: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    background: var(--bg-color);
    color: var(--text-color);
    display: grid;
    place-items: center;
    min-height: 100vh;
    overflow: hidden;
}

main {
    text-align: center;
    padding: 1rem;
    position: relative;
    z-index: 10;
    width: 100%;
}

.content {
    background: var(--content-bg);
    padding: clamp(1.5rem, 5vw, 3rem);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px 0 var(--shadow-color);
    max-width: 900px;
    margin: 0 auto;
    width: 95%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

#title {
    font-family: var(--title-font);
    font-size: clamp(2.5rem, 10vw, 5rem);
    text-shadow: 2px 2px 8px var(--shadow-color);
    margin-bottom: 0.5rem;
}

#instructions {
    font-size: clamp(1rem, 3vw, 1.2rem);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 300;
}

.reveal-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 4vw, 2rem);
    flex-wrap: nowrap;
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    flex-direction: row-reverse;
}
.reveal-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.name {
    font-family: var(--title-font);
    font-size: clamp(2rem, 8vw, 4.5rem);
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: 2px 2px 8px var(--shadow-color);
}

.conveyor-wrapper {
    flex-shrink: 0;
    width: clamp(120px, 25vw, 250px);
    height: clamp(60px, 15vw, 100px);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    filter: drop-shadow(0 4px 8px var(--shadow-color));
}

.conveyor-track {
    display: flex;
    position: absolute;
    width: 200%;
    animation: conveyor-move 20s linear infinite;
}

.conveyor-track i.fa-gift {
    font-size: clamp(3rem, 8vw, 4.5rem);
    color: var(--text-color);
    padding: 0 clamp(1rem, 3vw, 2rem);
    flex-shrink: 0;
}

@keyframes conveyor-move {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0%);
    }
}

#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.snowflake {
    position: absolute;
    top: -20px;
    background: var(--text-color);
    border-radius: 50%;
    opacity: 0.9;
    animation: fall linear infinite;
    filter: blur(1px);
}

@keyframes fall {
    to {
        transform: translateY(105vh) translateX(2vw);
    }
}

.admin-content {
    display: block;
    text-align: left;
}
.admin-content h1,
.admin-content h2,
.admin-content p {
    text-align: center;
}

.admin-content h1, .admin-content h2 {
    font-family: var(--title-font);
    font-size: clamp(2rem, 8vw, 3.5rem);
    text-shadow: 2px 2px 8px var(--shadow-color);
    margin-bottom: 1rem;
}
.admin-content h1 i {
    font-size: 80%;
    margin-right: 0.5rem;
    color: var(--accent-color);
}
.admin-content h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-top: 2rem;
}

.admin-content p {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
}

textarea {
    width: 100%;
    height: 150px;
    margin: 0.5rem 0 1rem 0;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--body-font);
    background-color: var(--bg-color);
    color: var(--text-color);
    resize: vertical;
}
textarea:focus {
    outline: 2px solid var(--accent-color);
    border-color: transparent;
}

button {
    display: block;
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    font-family: var(--body-font);
    font-weight: bold;
    background-color: var(--accent-color);
    color: var(--text-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(232, 74, 95, 0.4);
}

#error {
    color: var(--accent-color);
    margin-top: 1rem;
    font-weight: bold;
    text-align: center;
    min-height: 1.5em;
}

#output { margin-top: 2rem; }

.link-entry {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-color);
    border-radius: 8px;
    padding: 0.75rem;
    margin: 0.8rem 0;
}

.link-label {
    text-align: left;
    font-weight: bold;
    color: var(--accent-color);
}

.link-entry input[type="text"] {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    background: rgba(0,0,0,0.2);
    color: var(--text-color);
    border-radius: 4px;
    font-size: 0.9rem;
    word-break: break-all;
    font-family: 'Courier New', Courier, monospace;
}

.copy-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    width: auto;
    background-color: #334b74;
}
.copy-btn:hover {
    background-color: #4a6fa5;
    transform: none;
    box-shadow: none;
}
@media (max-width: 600px) {
    .link-entry {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .link-entry input[type="text"] {
        width: 100%;
    }
}