/* =============================================================
   Secret Santa: minimal, cozy holiday theme
   Pine night background, cream gift-tag cards, cranberry + gold.
   ============================================================= */

:root {
    --pine-950: #0a1c15;
    --pine-900: #0e271d;
    --pine-500: #2f7a57;
    --cream: #fbf6ec;
    --cream-2: #f3ead9;
    --line: #e4d8c1;
    --ink: #1f2b25;
    --ink-soft: #5f6b64;
    --berry: #b3262e;
    --berry-dark: #921d24;
    --gold: #d9b25f;
    --gold-dark: #a8791f;
    --gold-soft: rgba(217, 178, 95, 0.35);
    --snow: #f5f0e6;
    --snow-soft: rgba(245, 240, 230, 0.72);
    --wire: #3a5546;

    --radius: 20px;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
    --shadow-lift: 0 28px 48px -20px rgba(0, 0, 0, 0.7);
    --candy: repeating-linear-gradient(-45deg, var(--berry) 0 9px, var(--cream) 9px 18px);

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ----------------------------------------------------------- base */

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    color: var(--snow);
    background-color: var(--pine-950);
    background:
        radial-gradient(ellipse 90% 55% at 50% -5%, rgba(47, 122, 87, 0.35), transparent 70%),
        linear-gradient(180deg, var(--pine-900) 0%, var(--pine-950) 100%) fixed,
        var(--pine-950);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

p {
    margin: 0;
}

button,
input,
textarea {
    font: inherit;
}

::selection {
    background: var(--berry);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.container {
    position: relative;
    z-index: 1;
    width: min(1120px, 100% - 40px);
    margin: 0 auto;
    padding: 100px 0 170px;
}

/* ---------------------------------------------- string of lights */

.lights {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    height: 64px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
    list-style: none;
    pointer-events: none;
}

.lights li {
    --bulb: #ffd36b;
    position: relative;
    display: inline-block;
    width: 11px;
    height: 20px;
    margin: 22px 21px 0;
    border-radius: 50%;
    background: var(--bulb);
    box-shadow: 0 4px 18px 3px var(--bulb);
    animation: twinkle 2.6s ease-in-out infinite;
}

/* Socket */
.lights li::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 1.5px;
    width: 8px;
    height: 7px;
    border-radius: 2px;
    background: var(--wire);
}

/* Wire to the next bulb */
.lights li::after {
    content: '';
    position: absolute;
    top: -15px;
    left: 5px;
    width: 53px;
    height: 16px;
    border-bottom: 2px solid var(--wire);
    border-radius: 50%;
}

.lights li:nth-child(4n + 1) {
    --bulb: #ff5f5f;
}

.lights li:nth-child(4n + 2) {
    --bulb: #ffd36b;
    animation-duration: 3.2s;
    animation-delay: -1.1s;
}

.lights li:nth-child(4n + 3) {
    --bulb: #74e0a8;
    animation-duration: 2.9s;
    animation-delay: -0.5s;
}

.lights li:nth-child(4n) {
    --bulb: #fff0d2;
    animation-duration: 3.7s;
    animation-delay: -2.2s;
}

.lights li:nth-child(3n) {
    animation-delay: -1.7s;
}

@keyframes twinkle {
    0%,
    100% {
        opacity: 1;
        box-shadow: 0 4px 18px 3px var(--bulb);
    }

    50% {
        opacity: 0.5;
        box-shadow: 0 2px 6px 0 var(--bulb);
    }
}

/* ---------------------------------------------------------- snow */

.snow {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.snowflake {
    position: absolute;
    top: 0;
    color: #fff;
    line-height: 1;
    animation:
        snow-fall 16s linear infinite,
        snow-sway 4s ease-in-out infinite alternate;
}

@keyframes snow-fall {
    from {
        translate: 0 -10vh;
    }

    to {
        translate: 0 110vh;
    }
}

@keyframes snow-sway {
    from {
        transform: translateX(-14px);
    }

    to {
        transform: translateX(14px);
    }
}

.snowflake:nth-child(1)  { left: 3%;  font-size: 14px; opacity: 0.7;  animation-duration: 17s, 4s;   animation-delay: -1s, -1s; }
.snowflake:nth-child(2)  { left: 9%;  font-size: 8px;  opacity: 0.5;  animation-duration: 13s, 3s;   animation-delay: -7s, -2s; }
.snowflake:nth-child(3)  { left: 15%; font-size: 18px; opacity: 0.55; animation-duration: 20s, 5s;   animation-delay: -12s, 0s; }
.snowflake:nth-child(4)  { left: 22%; font-size: 7px;  opacity: 0.45; animation-duration: 15s, 3.5s; animation-delay: -3s, -1s; }
.snowflake:nth-child(5)  { left: 28%; font-size: 12px; opacity: 0.65; animation-duration: 18s, 4.5s; animation-delay: -9s, -3s; }
.snowflake:nth-child(6)  { left: 35%; font-size: 9px;  opacity: 0.5;  animation-duration: 14s, 3s;   animation-delay: -5s, -2s; }
.snowflake:nth-child(7)  { left: 42%; font-size: 16px; opacity: 0.55; animation-duration: 21s, 5s;   animation-delay: -15s, -1s; }
.snowflake:nth-child(8)  { left: 49%; font-size: 7px;  opacity: 0.4;  animation-duration: 12s, 3s;   animation-delay: -8s, 0s; }
.snowflake:nth-child(9)  { left: 56%; font-size: 13px; opacity: 0.7;  animation-duration: 19s, 4s;   animation-delay: -4s, -2s; }
.snowflake:nth-child(10) { left: 63%; font-size: 8px;  opacity: 0.5;  animation-duration: 16s, 3.5s; animation-delay: -11s, -1s; }
.snowflake:nth-child(11) { left: 70%; font-size: 17px; opacity: 0.6;  animation-duration: 22s, 5s;   animation-delay: -6s, -3s; }
.snowflake:nth-child(12) { left: 77%; font-size: 7px;  opacity: 0.45; animation-duration: 13s, 3s;   animation-delay: -2s, -2s; }
.snowflake:nth-child(13) { left: 84%; font-size: 12px; opacity: 0.65; animation-duration: 17s, 4s;   animation-delay: -13s, 0s; }
.snowflake:nth-child(14) { left: 90%; font-size: 9px;  opacity: 0.5;  animation-duration: 15s, 3.5s; animation-delay: -10s, -1s; }
.snowflake:nth-child(15) { left: 96%; font-size: 15px; opacity: 0.55; animation-duration: 20s, 4.5s; animation-delay: -7s, -2s; }
.snowflake:nth-child(16) { left: 60%; font-size: 6px;  opacity: 0.4;  animation-duration: 11s, 3s;   animation-delay: -4s, -1s; }

/* -------------------------------------------- forest silhouette */

.forest {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    height: 110px;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='110' viewBox='0 0 300 110'%3E%3Cpath fill='%23123526' d='M105 64l11 18h-5l11 16H88l11-16h-5z M280 60l12 19h-6l12 18h-36l12-18h-6z'/%3E%3Cpath fill='%2316402f' d='M60 40l16 26h-7l17 28H64v10h-8V94H34l17-28h-7z M150 18l17 26h-7l19 26h-8l21 26h-38v8h-8v-8h-38l21-26h-8l19-26h-7z M245 54l14 22h-6l15 20h-19v8h-8v-8h-19l15-20h-6z'/%3E%3Cpath fill='%23f5f0e6' fill-opacity='.1' d='M0 104q75-8 150-1t150-1v8H0z'/%3E%3C/svg%3E") repeat-x bottom / auto 110px;
}

/* -------------------------------------------------------- header */

.site-header {
    margin-bottom: 26px;
    text-align: center;
}

.star {
    display: block;
    margin-bottom: 4px;
    color: var(--gold);
    font-size: 22px;
    text-shadow: 0 0 18px rgba(255, 210, 120, 0.7);
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    50% {
        opacity: 0.55;
    }
}

.site-header h1 {
    color: var(--snow);
    font-size: clamp(2.6rem, 7vw, 4.2rem);
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.whoami {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    color: var(--snow-soft);
    font-size: 0.95rem;
}

.whoami strong {
    color: var(--snow);
    font-weight: 600;
}

.whoami form {
    margin: 0;
}

.dot {
    opacity: 0.5;
}

.btn-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--gold);
    font-size: inherit;
    text-decoration: underline;
    text-decoration-color: var(--gold-soft);
    text-underline-offset: 3px;
    cursor: pointer;
}

.btn-link:hover {
    text-decoration-color: currentColor;
}

/* --------------------------------------------------------- notice */

.notice {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 44px;
    padding: 7px 18px;
    border: 1px solid var(--gold-soft);
    border-radius: 999px;
    color: var(--gold);
    font-size: 0.9rem;
    text-align: center;
}

.notice::before {
    content: '✦';
    margin-right: 8px;
}

.notice-closed {
    border-color: rgba(255, 150, 150, 0.35);
    color: #ffaaa5;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.stats .notice {
    margin: 0;
}

/* --------------------------------------------------------- panels */

.panel {
    position: relative;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--cream);
    color: var(--ink);
    box-shadow: var(--shadow);
}

.panel h2 {
    margin-bottom: 18px;
    color: var(--ink);
    font-size: 1.6rem;
}

.eyebrow {
    margin-bottom: 6px;
    color: var(--berry);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.muted {
    color: var(--ink-soft);
}

.top-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 24px;
    margin-bottom: 72px;
}

/* "You're the Secret Santa for" card, with a candy-cane edge */
.giving-to {
    padding-top: 36px;
    background: var(--candy) top / 100% 8px no-repeat, var(--cream);
}

.card-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.card-head .avatar {
    width: 68px;
    height: 68px;
    margin: 4px;
    font-size: 1.4rem;
}

.avatar.avatar-empty {
    background: var(--cream-2);
    color: var(--ink-soft);
}

.giving-to-actions:not(:empty) {
    margin-top: 24px;
}

.giving-to .giving-to-name {
    margin-bottom: 0;
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-style: italic;
    font-weight: 500;
}

.giving-to.is-empty {
    background: var(--cream);
}

/* Faint gift box in the corner, drawn behind the text */
.giving-to {
    isolation: isolate;
}

.giving-to::before,
.giving-to::after {
    content: '';
    position: absolute;
    z-index: -1;
    opacity: 0.13;
    pointer-events: none;
}

/* Box with ribbon */
.giving-to::after {
    right: 32px;
    bottom: 32px;
    width: 96px;
    height: 80px;
    border-radius: 6px;
    background:
        linear-gradient(90deg, transparent 42%, var(--berry) 42% 58%, transparent 58%),
        linear-gradient(transparent 26%, var(--berry) 26% 40%, transparent 40%),
        var(--pine-500);
}

/* Bow */
.giving-to::before {
    right: 50px;
    bottom: 106px;
    width: 60px;
    height: 24px;
    background:
        radial-gradient(circle at 28% 50%, var(--berry) 0 11px, transparent 12px),
        radial-gradient(circle at 72% 50%, var(--berry) 0 11px, transparent 12px);
}

.giving-to.is-empty .giving-to-name {
    color: var(--ink-soft);
}

.giving-to .wish-list {
    margin: 0;
    gap: 10px;
    font-size: 1.05rem;
}

/* ---------------------------------------------------------- forms */

.wishlist-form,
.stack,
.participant-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.participant-form {
    gap: 18px;
}

.wish-field {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Numbered baubles: 1, 2, 3 */
.wish-number {
    position: relative;
    flex: none;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-top: 4px;
    border-radius: 50%;
    background: var(--berry);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
}

.wish-number::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    width: 9px;
    height: 5px;
    margin-left: -4.5px;
    border-radius: 2px 2px 0 0;
    background: var(--gold);
}

.wish-field:nth-of-type(2) .wish-number {
    background: var(--pine-500);
}

.wish-field:nth-of-type(3) .wish-number {
    background: var(--gold-dark);
}

.input {
    width: 100%;
    min-width: 0;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.wish-textarea {
    min-height: 68px;
    font-size: 1rem;
    line-height: 1.45;
    resize: vertical;
}

.input::placeholder {
    color: #aaa194;
}

.input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

.input:disabled {
    background: var(--cream-2);
    color: var(--ink-soft);
}

input[type='file'].input {
    padding: 8px;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

input[type='file']::file-selector-button {
    margin-right: 12px;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--cream);
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--ink-soft);
    font-size: 0.85rem;
    font-weight: 600;
}

.field em {
    font-style: normal;
    font-weight: 400;
}

.wishes-fieldset {
    gap: 10px;
}

.wishes-fieldset legend {
    margin-bottom: 8px;
    padding: 0;
}

.wishlist-form .btn,
.stack .btn {
    align-self: flex-start;
    margin-top: 6px;
}

.stack .btn {
    align-self: stretch;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.form-card {
    max-width: 640px;
    margin: 0 auto 72px;
}

.login-card {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.login-card h2 {
    margin-bottom: 8px;
}

/* -------------------------------------------------------- buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--berry);
    color: #fff;
}

.btn-primary:hover {
    background: var(--berry-dark);
}

.btn-secondary {
    border-color: #cfc2a9;
    background: transparent;
    color: var(--ink);
}

.btn-secondary:hover {
    border-color: var(--ink);
}

.btn-danger {
    border-color: rgba(179, 38, 46, 0.35);
    background: transparent;
    color: var(--berry);
}

.btn-danger:hover {
    border-color: var(--berry);
    background: var(--berry);
    color: #fff;
}

.btn-small {
    padding: 7px 14px;
    font-size: 0.85rem;
}

/* --------------------------------------------------- people grid */

.section-title {
    margin-bottom: 30px;
    text-align: center;
}

.section-title::before {
    content: '';
    display: block;
    width: 90px;
    height: 1px;
    margin: 0 auto 18px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-title h2 {
    color: var(--snow);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-style: italic;
    font-weight: 500;
}

.section-title p {
    margin-top: 6px;
    color: var(--snow-soft);
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
    gap: 28px 22px;
}

#admin-content .people-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
}

.empty {
    grid-column: 1 / -1;
    padding: 24px;
    color: var(--snow-soft);
    text-align: center;
}

/* Gift-tag card: punched hole with a gold string */
.person-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px 20px;
    border-radius: var(--radius);
    background: var(--cream);
    color: var(--ink);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.person-card::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 50%;
    width: 1.5px;
    height: 26px;
    margin-left: -0.75px;
    background: var(--gold);
}

.person-card::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    border-radius: 50%;
    background: var(--pine-900);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6), 0 0 0 2px var(--cream-2);
}

.person-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}

.person-card.is-taken {
    background: #e7e0d2;
}

.person-card.is-taken > :not(.badge) {
    opacity: 0.55;
}

.person-card.is-taken:hover {
    transform: none;
    box-shadow: var(--shadow);
}

.person-card.is-taken .avatar {
    filter: grayscale(1);
}

.avatar {
    flex: none;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin-bottom: 14px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--berry);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    box-shadow: 0 0 0 3px var(--cream), 0 0 0 4.5px var(--gold);
}

.avatar-1 {
    background: var(--pine-500);
}

.avatar-2 {
    background: var(--gold-dark);
}

.avatar-3 {
    background: #2d5180;
}

.person-name {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.badge-available {
    background: rgba(47, 122, 87, 0.12);
    color: var(--pine-500);
}

.badge-taken {
    background: rgba(31, 43, 37, 0.07);
    color: var(--ink-soft);
}

/* Wishes, with little ornaments as bullets */
.wish-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    font-size: 0.95rem;
    text-align: left;
    list-style: none;
}

.wish-list li {
    position: relative;
    padding-left: 20px;
    overflow-wrap: anywhere;
}

.wish-list li::before {
    content: '';
    position: absolute;
    top: 0.5em;
    left: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--berry);
}

.wish-list li:nth-child(2)::before {
    background: var(--pine-500);
}

.wish-list li:nth-child(3)::before {
    background: var(--gold);
}

.no-wishes {
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-style: italic;
}

/* Links inside wishes: a small chip with the site name */
.wish-link {
    display: inline-block;
    max-width: 100%;
    margin: 0 2px;
    padding: 0 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(179, 38, 46, 0.09);
    color: var(--berry);
    font-size: 0.85em;
    font-weight: 600;
    line-height: 1.6;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
    transition: background-color 0.15s, color 0.15s;
}

.wish-link::after {
    content: ' ↗';
}

.wish-link:hover {
    background: var(--berry);
    color: #fff;
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: auto;
    padding-top: 20px;
}

.card-actions > .btn {
    width: 100%;
}

.invite {
    display: flex;
    gap: 8px;
}

.invite .input {
    padding: 7px 10px;
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-size: 0.78rem;
}

.invite .btn {
    flex: none;
}

.button-row {
    display: flex;
    gap: 8px;
}

.button-row .btn {
    flex: 1;
    padding-inline: 8px;
}

/* -------------------------------------------------------- welcome */

.welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bauble {
    position: relative;
    width: 84px;
    height: 84px;
    margin: 40px 0 30px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, #ff8d8d 0%, var(--berry) 40%, #6b1217 100%);
    box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.6);
    transform-origin: 50% -140px;
    animation: swing 5s ease-in-out infinite;
}

/* Cap */
.bauble::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    width: 22px;
    height: 12px;
    margin-left: -11px;
    border-radius: 3px 3px 2px 2px;
    background: linear-gradient(90deg, #a8822f, #f1d48a, #a8822f);
}

/* String */
.bauble::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    width: 1.5px;
    height: 140px;
    background: linear-gradient(transparent, var(--gold));
}

@keyframes swing {
    0%,
    100% {
        transform: rotate(-4deg);
    }

    50% {
        transform: rotate(4deg);
    }
}

.welcome-card {
    max-width: 440px;
    padding: 40px 32px;
    text-align: center;
}

.welcome-card h1 {
    margin-bottom: 18px;
    color: var(--berry);
    font-size: 2.6rem;
    font-style: italic;
    font-weight: 500;
}

.welcome-card h2 {
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.welcome-card p {
    color: var(--ink-soft);
}

/* --------------------------------------------------------- toasts */

.toasts {
    position: fixed;
    top: 76px;
    left: 50%;
    z-index: 100;
    width: min(420px, 100% - 32px);
    translate: -50% 0;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--cream);
    color: var(--ink);
    font-weight: 500;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7);
    animation: toast-in 0.25s ease-out;
    pointer-events: auto;
}

.toast::before {
    content: '';
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
}

.toast-error::before {
    background: var(--berry);
}

.toast-success::before {
    background: var(--pine-500);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
}

/* ----------------------------------------------------- responsive */

@media (max-width: 600px) {
    .container {
        width: calc(100% - 28px);
        padding-top: 88px;
    }

    .panel {
        padding: 24px 18px;
    }

    .giving-to {
        padding-top: 32px;
    }

    .giving-to::before,
    .giving-to::after {
        display: none;
    }

    .notice {
        margin-bottom: 32px;
        border-radius: 14px;
    }

    .top-grid {
        margin-bottom: 56px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .snow {
        display: none;
    }
}
