@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/montserrat-variable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --paper: #f8f5ee;
    --ink: #253d32;
    --green: #346348;
    --muted: #657269;
    --line: #dddcd2;
    --red: #b94238;
    --white: #fffdf8;
    --gold: #bb913a
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif
}

a {
    color: inherit;
    text-underline-offset: 4px
}

button,
input,
textarea {
    font: inherit
}

button,
a,
input,
textarea,
summary {
    -webkit-tap-highlight-color: transparent
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 5px
}

button,
.button {
    cursor: pointer;
    background: var(--green);
    color: white;
    border: 1px solid var(--green);
    border-radius: 8px;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 650;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-decoration: none;
    transition: transform .18s, background .18s
}

button:hover,
.button:hover {
    background: #274d37;
    transform: translateY(-2px)
}

button:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none
}

.nav {
    max-width: 1280px;
    margin: auto;
    padding: 27px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    gap: 24px
}

.brand {
    font-size: 24px;
    font-weight: 750;
    letter-spacing: -1.1px;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px
}

.brand-icon {
    font-size: 34px;
    color: var(--red)
}

.brand-dot {
    color: var(--red);
    margin-left: -8px
}

.nav nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px
}

.nav nav>a {
    text-decoration: none
}

.nav-button {
    padding: 9px 15px;
    border: 1px solid var(--line);
    border-radius: 7px
}

.nav form {
    margin: 0
}

main {
    max-width: 1280px;
    padding: 0 48px;
    margin: auto;
    min-height: 70vh
}

h1,
h2,
h3,
p {
    margin-top: 0
}

h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(40px, 5.8vw, 76px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -2.5px;
    margin-bottom: 24px;
    overflow-wrap: anywhere
}

h1 em {
    color: var(--red);
    font-weight: 400
}

h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: -.6px;
    line-height: 1.2;
    margin-bottom: 16px
}

h3 {
    font-size: 19px;
    font-weight: 650;
    line-height: 1.3;
    margin-bottom: 12px
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 1.9px;
    font-weight: 750;
    line-height: 1.7;
    margin-bottom: 24px
}

.live-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    background: var(--red);
    border-radius: 50%;
    margin-right: 8px
}

.hero {
    display: grid;
    grid-template-columns: 1.12fr 1fr;
    align-items: center;
    gap: 20px;
    padding: 84px 0 78px
}

.intro {
    font-size: 18px;
    color: var(--muted);
    max-width: 520px;
    line-height: 1.7
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 30px;
    margin-bottom: 22px
}

.quiet {
    font-size: 13px;
    text-decoration: none
}

.fine {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.75;
    margin: 18px 0 0
}

.gift-scene {
    position: relative;
    height: 425px;
    display: flex;
    justify-content: center;
    align-items: center
}

.orbit {
    position: absolute;
    border: 1px solid #d9d9cb;
    border-radius: 50%;
    width: 350px;
    height: 350px
}

.orbit-two {
    width: 400px;
    height: 400px;
    border-style: dashed;
    opacity: .7
}

.gift {
    position: relative;
    width: 230px;
    height: 220px;
    padding: 0;
    border: 0;
    background: none !important;
    transform: rotate(-8deg);
    filter: drop-shadow(0 25px 15px #344e3220);
    isolation: isolate
}

.gift:hover {
    transform: rotate(-3deg) translateY(-5px)
}

.gift-box {
    position: absolute;
    inset: 46px 9px 0;
    background: #b44840;
    border-radius: 3px 3px 9px 9px;
    box-shadow: inset -15px 0 #a33d37
}

.gift-lid {
    position: absolute;
    top: 33px;
    left: 0;
    right: 0;
    height: 44px;
    background: #c7564c;
    border-radius: 5px;
    z-index: 2;
    box-shadow: 0 5px #71332622
}

.gift-ribbon {
    position: absolute;
    top: 34px;
    bottom: 0;
    left: 94px;
    width: 42px;
    background: #e2c982;
    z-index: 3
}

.bow {
    position: absolute;
    top: -25px;
    width: 81px;
    height: 61px;
    border: 16px solid #dfc17b;
    z-index: 4
}

.bow-left {
    left: 42px;
    transform: rotate(20deg);
    border-radius: 45px 50px 0 40px
}

.bow-right {
    right: 29px;
    transform: rotate(-20deg);
    border-radius: 50px 45px 40px 0
}

.gift-tag {
    position: absolute;
    background: var(--paper);
    color: var(--ink);
    font: italic 12px Georgia, serif;
    padding: 12px;
    right: -34px;
    top: 100px;
    z-index: 5;
    transform: rotate(20deg);
    box-shadow: 1px 3px 4px #0001
}

.gift-caption {
    position: absolute;
    top: 7px;
    font-size: 9px;
    letter-spacing: 2px;
    transform: rotate(9deg)
}

.gift-pill {
    position: absolute;
    bottom: -2px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 11px;
    max-width: 95%;
    text-align: center
}

.spark {
    position: absolute;
    font-size: 42px;
    color: var(--gold)
}

.spark-one {
    top: 64px;
    right: 30px
}

.spark-two {
    bottom: 50px;
    left: 15px;
    font-size: 32px;
    color: var(--green)
}

.how {
    border-top: 1px solid var(--line);
    padding: 40px 0 60px
}

.section-title .eyebrow {
    margin-bottom: 10px
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px;
    margin-top: 35px
}

.steps article {
    border-top: 1px solid var(--line);
    padding-top: 24px
}

.steps p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 0
}

.number {
    font: italic 19px Georgia, serif;
    color: var(--red);
    display: block;
    margin-bottom: 20px
}

.page-heading {
    padding: 54px 0 24px
}

.page-heading h1 {
    font-size: clamp(40px, 5vw, 62px)
}

.page-heading .eyebrow {
    margin-bottom: 14px
}

.green {
    color: var(--green)
}

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 4px 18px #273f3103
}

.prose {
    max-width: 820px;
    margin: 0 auto 64px
}

.prose h2:not(:first-child) {
    margin-top: 34px
}

.prose p {
    color: #55625b
}

.split-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 78px;
    padding: 65px 0 75px;
    align-items: start
}

.split-page>div:first-child {
    padding-top: 22px
}

.split-page h1 {
    font-size: clamp(43px, 5.6vw, 68px)
}

.muted {
    color: var(--muted);
    font-size: 14px
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
    gap: 30px;
    align-items: start;
    padding-bottom: 60px
}

.stack {
    display: grid;
    gap: 20px
}

.game-list {
    display: grid;
    gap: 16px
}

.game-card {
    display: block;
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    padding: 24px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform .18s
}

.game-card:hover {
    transform: translateY(-3px);
    border-color: var(--green)
}

.game-card h3 {
    font: 28px Georgia, serif;
    margin: 17px 25px 12px 0
}

.game-card p {
    font-size: 13px;
    color: var(--muted);
    margin: 0
}

.badge {
    display: inline-block;
    border-radius: 5px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 650;
    background: #e5ecdf;
    color: #36573c
}

.badge.drawn {
    background: #efe8d5;
    color: #715d25
}

.card-arrow {
    position: absolute;
    right: 24px;
    top: 50%;
    font-size: 25px
}

.empty {
    text-align: center;
    padding: 45px 24px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    color: var(--muted)
}

.empty>span {
    font-size: 45px;
    color: var(--red)
}

label {
    display: block;
    font-size: 13px;
    font-weight: 650;
    margin-bottom: 17px
}

input,
textarea {
    display: block;
    width: 100%;
    margin-top: 7px;
    padding: 12px 13px;
    border: 1px solid #d8dcd1;
    border-radius: 7px;
    background: #fffefa;
    color: var(--ink);
    font-size: 15px;
    min-width: 0
}

input:focus,
textarea:focus {
    outline: 2px solid #9db59a;
    outline-offset: 1px
}

input::placeholder,
textarea::placeholder {
    color: #8d948c
}

input[readonly] {
    font-size: 12px
}

.wide {
    width: 100%
}

fieldset {
    border: 0;
    padding: 0;
    margin: 24px 0 0
}

legend {
    font: 23px Georgia, serif;
    margin-bottom: 18px
}

.optional {
    color: var(--muted);
    font: 11px system-ui;
    font-weight: 400;
    margin-left: 6px
}

.hint-note {
    padding: 15px;
    background: #f2efe5;
    border-radius: 7px;
    margin-top: 24px;
    font-size: 13px
}

.hint-note p {
    margin: 6px 0 0;
    color: var(--muted)
}

.checkbox {
    display: flex;
    align-items: start;
    gap: 10px;
    font-weight: 400;
    font-size: 12px;
    margin-top: 22px
}

.checkbox input {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    margin: 3px 0 0;
    accent-color: var(--green)
}

.honeypot {
    position: absolute;
    left: -10000px;
    overflow: hidden
}

.notice {
    border-radius: 8px;
    padding: 14px 20px;
    margin-top: 24px;
    font-size: 14px
}

.success {
    background: #e6eddf;
    border: 1px solid #cbdabc
}

.error {
    background: #f5e3de;
    color: #852c24;
    border: 1px solid #e4b3a8
}

.text-button {
    background: none;
    color: var(--ink);
    border: 0;
    padding: 0;
    font-size: 12px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px
}

.text-button:hover {
    background: none;
    color: var(--red);
    transform: none
}

.secondary {
    background: transparent;
    color: var(--green);
    border-color: #c5d1bf
}

.secondary:hover {
    background: #edf1e7;
    color: var(--ink)
}

.small-action {
    text-align: center;
    margin-top: 15px
}

.green-card {
    background: #e9eedf
}

.green-card p {
    font-size: 14px
}

.back {
    display: inline-block;
    margin-top: 30px;
    font-size: 12px;
    text-decoration: none
}

.back+.page-heading {
    padding-top: 24px
}

.count {
    font: 15px system-ui;
    background: #eceee5;
    padding: 4px 9px;
    border-radius: 20px;
    vertical-align: middle
}

.people {
    margin-top: 24px
}

.person {
    display: flex;
    gap: 14px;
    align-items: start;
    padding: 20px 0;
    border-top: 1px solid var(--line)
}

.avatar {
    background: #e8ecdf;
    color: var(--green);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex-shrink: 0
}

.person-details {
    flex: 1;
    min-width: 0
}

.person h3 {
    font-size: 16px;
    margin: 0
}

.person p {
    font-size: 12px;
    margin: 3px 0 8px;
    color: var(--muted);
    overflow-wrap: anywhere
}

.person .hints {
    margin-top: 10px
}

.person form {
    flex-shrink: 0
}

.danger {
    color: var(--red)
}

.mail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px
}

.mail-stats strong {
    font-size: 20px;
    display: block
}

.mail-stats+.fine {
    margin-bottom: 18px
}

.delete-panel {
    font-size: 13px
}

.delete-panel summary {
    cursor: pointer;
    color: var(--red)
}

.delete-panel p {
    margin-top: 20px
}

.danger-button {
    background: var(--red);
    border-color: var(--red)
}

.detail-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0
}

.detail-chips span {
    font-size: 12px;
    background: #e9edde;
    border-radius: 6px;
    padding: 8px 12px
}

.game-note {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 15px;
    color: var(--muted);
    max-width: 620px
}

.center-card {
    max-width: 730px;
    margin: 70px auto;
    text-align: center;
    padding: 55px 45px
}

.center-card h1 {
    font-size: 55px
}

.center-card .intro {
    margin-left: auto;
    margin-right: auto
}

.big-symbol {
    font-size: 55px;
    color: var(--red);
    margin-bottom: 20px
}

.center-card .eyebrow {
    margin-top: 10px
}

.reveal-cover {
    width: 100%;
    margin: 25px 0;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    background: #e8eddf;
    color: var(--green);
    border: 1px dashed #b9c5ab
}

.reveal-cover:hover {
    background: #dce5d0
}

.reveal-cover span {
    font-size: 50px
}

.hint-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 25px 0
}

.hint-tags span {
    padding: 10px 18px;
    background: #f0e9da;
    border-radius: 24px;
    font-size: 14px
}

.reveal-card .detail-chips {
    justify-content: center
}

.separator {
    padding: 0 8px;
    color: #c3c5b9
}

footer {
    border-top: 1px solid var(--line);
    max-width: 1184px;
    margin: 0 auto;
    padding: 27px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px
}

footer .brand {
    font-size: 17px
}

footer p,
footer>a:last-child {
    font-size: 11px;
    color: var(--muted);
    margin: 0
}

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

.snow span {
    position: absolute;
    top: -10px;
    width: 4px;
    height: 4px;
    background: #b7c5ae;
    border-radius: 50%;
    opacity: .35;
    animation: snowfall linear infinite
}

.confetti {
    position: fixed;
    top: -20px;
    width: 8px;
    height: 12px;
    z-index: 99;
    pointer-events: none;
    animation: confetti 1.9s ease-in forwards
}

.toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translate(-50%, 20px);
    background: var(--ink);
    color: white;
    padding: 13px 22px;
    border-radius: 8px;
    font-size: 13px;
    opacity: 0;
    transition: .2s;
    pointer-events: none;
    max-width: 90vw;
    z-index: 100
}

.toast.show {
    transform: translate(-50%, 0);
    opacity: 1
}

.shake {
    animation: shake .6s ease
}

[hidden] {
    display: none !important
}

@keyframes snowfall {
    to {
        transform: translate(55px, 110vh)
    }
}

@keyframes confetti {
    to {
        transform: translate(var(--drift), 105vh) rotate(540deg)
    }
}

@keyframes shake {

    0%,
    100% {
        transform: rotate(-8deg)
    }

    25% {
        transform: rotate(5deg)
    }

    50% {
        transform: rotate(-14deg)
    }

    75% {
        transform: rotate(2deg)
    }
}

@media(min-width:1500px) {
    .hero {
        padding-top: 100px;
        padding-bottom: 100px
    }
}

@media(max-width:950px) {
    .nav {
        padding: 22px 28px
    }

    main {
        padding: 0 28px
    }

    .hero {
        padding-top: 55px
    }

    .gift-scene {
        transform: scale(.85)
    }

    .hero-actions {
        gap: 16px;
        flex-wrap: wrap
    }

    .split-page {
        gap: 35px
    }

    .dashboard-grid {
        grid-template-columns: 1fr 340px;
        gap: 20px
    }

    .card {
        padding: 23px
    }

    footer {
        margin: 0 28px
    }

    .steps {
        gap: 25px
    }
}

@media(max-width:720px) {
    .nav {
        padding: 18px 20px;
        align-items: start;
        gap: 15px
    }

    .brand {
        font-size: 20px
    }

    .brand-icon {
        font-size: 27px
    }

    .nav nav {
        gap: 14px;
        flex-wrap: wrap;
        justify-content: flex-end;
        font-size: 11px
    }

    .nav-button {
        padding: 6px 9px
    }

    main {
        padding: 0 20px
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 45px 0 35px;
        gap: 10px
    }

    .hero h1 {
        font-size: 54px
    }

    .hero .eyebrow {
        font-size: 9px
    }

    .gift-scene {
        height: 345px;
        transform: scale(.82);
        margin: -12px 0
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 25px
    }

    .steps article {
        display: block
    }

    .steps .number {
        margin-bottom: 10px
    }

    .how {
        padding-top: 30px
    }

    .section-title h2 {
        font-size: 28px
    }

    .split-page,
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 35px
    }

    .split-page>div:first-child {
        padding-top: 0
    }

    .split-page h1 {
        font-size: 48px
    }

    .split-page .intro {
        font-size: 16px
    }

    .page-heading {
        padding-top: 35px
    }

    .page-heading h1 {
        font-size: 42px;
        letter-spacing: -1.5px
    }

    .card {
        padding: 24px
    }

    .center-card {
        padding: 35px 22px;
        margin: 40px auto
    }

    .center-card h1 {
        font-size: 43px
    }

    .person {
        gap: 9px
    }

    .person form button {
        font-size: 10px
    }

    .avatar {
        width: 29px;
        height: 29px
    }

    .intro {
        font-size: 16px
    }

    footer {
        margin: 0 20px;
        flex-wrap: wrap;
        padding: 24px 0;
        gap: 10px
    }

    footer p {
        order: 3;
        width: 100%
    }

    .prose {
        margin-bottom: 40px
    }

    .hero-actions {
        gap: 20px
    }

    .eyebrow {
        font-size: 10px
    }

    .person-details p {
        font-size: 11px
    }

    .detail-chips {
        margin: 18px 0
    }

    .game-note {
        font-size: 14px
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }
}

body,
button,
input,
textarea,
select,
h1,
h2,
h3,
legend,
.game-card h3,
.number,
.gift-tag,
.optional {
    font-family: 'Montserrat', sans-serif;
}

h1 {
    font-weight: 600;
    letter-spacing: -0.04em;
}

h2,
.game-card h3 {
    font-weight: 600;
    letter-spacing: -0.025em;
}