:root{font-family:Inter,"Segoe UI","Microsoft YaHei",Arial,sans-serif;color:#152950;background:#f5f6f8;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh;display:flex;flex-direction:column}button,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #2877cd;outline-offset:3px}.header{height:90px;background:#fff;border-bottom:1px solid #e3e8f0;display:flex;align-items:center;justify-content:space-between;padding:0 max(5vw,28px)}.brand{display:flex;align-items:center;gap:18px;color:inherit;text-decoration:none}.brand img{width:86px;max-height:62px;object-fit:contain}.brand-fallback{font-size:25px;font-weight:900;font-style:italic;color:#d3122c}.brand-divider{height:38px;width:1px;background:#dae0e9}.brand-title{font-weight:700;font-size:16px;line-height:1.1}.brand-title small{display:block;font-size:9px;letter-spacing:.15em;margin-top:5px;color:#8793a5}.header-right{display:flex;align-items:center;gap:25px}.lang,.text-button{background:none;border:0;color:#243c63;font-size:13px;font-weight:700}.lang span{color:#b6beca;margin:0 5px}.logout{color:#a81228}main{flex:1}.shell{max-width:1250px;margin:auto;padding:62px 30px 80px}.login-layout{display:grid;grid-template-columns:1.15fr .85fr;gap:50px;align-items:center;min-height:570px}.eyebrow{font-size:11px;letter-spacing:.16em;font-weight:800;color:#c80e2a;text-transform:uppercase;display:flex;align-items:center;gap:10px}.eyebrow:before{content:"";width:29px;height:2px;background:#c80e2a}h1{font-size:clamp(42px,5.4vw,76px);line-height:1.07;letter-spacing:-.045em;margin:24px 0;color:#112a55;font-weight:750}h1 em{color:#c8102e;font-style:normal}.intro{font-size:18px;line-height:1.65;color:#65748a;max-width:510px}.steps{display:flex;gap:24px;margin-top:52px;border-top:1px solid #d8dfe9;padding-top:23px}.step{font-size:13px;color:#66758b;max-width:125px;line-height:1.4}.step strong{display:block;color:#c8102e;font-size:12px;margin-bottom:8px}.card{background:#fff;border:1px solid #e1e6ee;box-shadow:0 18px 60px #162e5010;border-radius:8px;padding:40px}.login-card{max-width:460px;width:100%;justify-self:end;position:relative}.login-card:before{content:"";position:absolute;height:4px;background:#c8102e;top:-1px;left:39px;right:39px}.card h2{font-size:27px;letter-spacing:-.03em;margin:0 0 9px}.muted{color:#78869a;font-size:14px;line-height:1.6;margin:0 0 26px}.field{display:block;margin:0 0 18px}.field span{display:block;font-weight:700;font-size:13px;margin-bottom:8px}.field input,.field textarea{border:1px solid #cfd7e1;border-radius:4px;width:100%;padding:13px;color:#172b4d;background:#fff}.field textarea{min-height:93px;resize:vertical;line-height:1.5}.field input:focus,.field textarea:focus{border-color:#5275a0}.primary,.secondary{border:0;border-radius:4px;padding:14px 19px;font-size:14px;font-weight:750}.primary{color:#fff;background:#c8102e}.primary:hover{background:#a80b24}.secondary{color:#17335d;background:#edf1f6}.wide{width:100%}.forgot{display:block;margin:19px auto 0}.notice{border-radius:4px;padding:12px 14px;background:#eef4fa;color:#193961;font-size:14px;line-height:1.5;margin:16px 0}.error{background:#fff1f2;color:#a3162b}.dashboard-top{display:flex;justify-content:space-between;align-items:end;gap:25px;margin-bottom:35px}.dashboard-top h1{font-size:clamp(36px,4vw,54px);margin:15px 0 10px}.dashboard-top p{color:#76859a;margin:0;line-height:1.5}.dashboard-grid{display:grid;grid-template-columns:1fr .72fr;gap:24px;align-items:start}.dashboard-grid .card{padding:32px}.label{font-size:11px;font-weight:800;color:#c8102e;text-transform:uppercase;letter-spacing:.12em;margin-bottom:14px}.recipient{border-top:3px solid #c8102e}.recipient h2{line-height:1.2}.data-item{padding:15px 0;border-top:1px solid #e9edf2;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.data-item strong{display:block;font-size:12px;color:#8793a5;margin-bottom:5px}.tabs{display:flex;gap:9px;margin-bottom:25px}.admin-list{list-style:none;padding:0;margin:20px 0}.admin-list li{padding:14px 0;border-bottom:1px solid #e6ebf1;display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap}.admin-list small{color:#76859a}.invite-url{overflow-wrap:anywhere;user-select:all}.loading{padding:60px}footer{border-top:1px solid #e1e6ee;padding:24px max(5vw,28px);display:flex;justify-content:space-between;gap:20px;font-size:11px;letter-spacing:.08em;color:#909baa}footer span:last-child{letter-spacing:0}@media(max-width:760px){.header{height:72px;padding:0 20px}.brand img{width:67px}.brand{gap:10px}.brand-divider{height:30px}.brand-title{font-size:14px}.header-right{gap:8px}.shell{padding:38px 20px 60px}.login-layout,.dashboard-grid{grid-template-columns:1fr;gap:25px}.login-layout{min-height:0}.intro{font-size:16px}.steps{margin-top:30px;gap:12px}.step{font-size:12px}.login-card{justify-self:stretch;max-width:none}.card,.dashboard-grid .card{padding:25px}.dashboard-top{align-items:start;flex-direction:column}.dashboard-top h1{font-size:38px}.dashboard-top .tabs{margin:0}footer{padding:20px;flex-direction:column;gap:8px}}

/* A little seasonal warmth, without affecting the forms. */
:root{background:#f7f8f7}
body{background:radial-gradient(ellipse at 18% 45%,#f2f6f3 0,transparent 44%),#f7f8f7}
.header{border-bottom-color:#e6ebe8}
.festive-scene{max-width:530px;margin:20px 0 0;overflow:hidden;pointer-events:none}
.festive-scene img{display:block;width:100%;height:auto}
.login-layout .steps{margin-top:4px}
.login-card{box-shadow:0 22px 65px #183d3520,0 2px 8px #183d3508}
.login-card:before{background:linear-gradient(90deg,#bd1d36 0 58%,#dfb866 58% 64%,#326452 64%)}
.recipient{position:relative;overflow:hidden}
.recipient:after{content:"";position:absolute;right:22px;top:-1px;width:34px;height:52px;pointer-events:none;background:radial-gradient(circle at 50% 71%,#c9213a 0 8px,transparent 8.5px),linear-gradient(#d9bd78,#d9bd78) center top/1px 29px no-repeat;opacity:.9}
@media(max-width:760px){.festive-scene{max-width:480px;margin:8px auto 0}.login-layout .steps{margin-top:0}.login-card{box-shadow:0 12px 36px #183d3517}}

.register-link{margin-top:10px}.login-card .forgot{margin-top:16px}

/* Soft background snowfall; forms and controls stay above this layer. */
.snowfall{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.snowfall i{position:absolute;top:-12px;left:var(--x);width:var(--size,5px);height:var(--size,5px);border-radius:50%;background:#aabcc8;opacity:.42;animation:snowfall var(--duration,23s) linear var(--delay,0s) infinite;will-change:transform}
.header,main,footer{position:relative;z-index:1}
@keyframes snowfall{from{transform:translate3d(0,-2vh,0)}to{transform:translate3d(18px,105vh,0)}}
.snowfall i:nth-child(1){--x:4%;--delay:-7s;--duration:23s;--size:4px}.snowfall i:nth-child(2){--x:13%;--delay:-13s;--duration:27s}.snowfall i:nth-child(3){--x:22%;--delay:-4s;--duration:21s;--size:3px}.snowfall i:nth-child(4){--x:31%;--delay:-17s;--duration:29s;--size:4px}.snowfall i:nth-child(5){--x:40%;--delay:-11s;--duration:25s}.snowfall i:nth-child(6){--x:48%;--delay:-21s;--duration:28s;--size:3px}.snowfall i:nth-child(7){--x:57%;--delay:-8s;--duration:24s;--size:4px}.snowfall i:nth-child(8){--x:65%;--delay:-16s;--duration:27s}.snowfall i:nth-child(9){--x:73%;--delay:-5s;--duration:22s;--size:3px}.snowfall i:nth-child(10){--x:81%;--delay:-19s;--duration:29s;--size:4px}.snowfall i:nth-child(11){--x:89%;--delay:-10s;--duration:26s}.snowfall i:nth-child(12){--x:96%;--delay:-22s;--duration:30s;--size:3px}
@media(max-width:760px){.snowfall i:nth-child(n+9){display:none}}
@media(prefers-reduced-motion:reduce){.snowfall{display:none}}

.admin-layout{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}
.admin-layout .card{padding:32px;min-width:0}
.admin-layout .admin-list{margin:12px 0 32px}
.admin-list .participant{display:block;overflow-wrap:anywhere}
.participant-head{display:flex;justify-content:space-between;align-items:start;gap:12px}
.participant details{margin-top:12px}
.participant summary{cursor:pointer;color:#264c77;font-size:14px;font-weight:700}
.participant summary:focus-visible,select:focus-visible{outline:3px solid #2877cd;outline-offset:3px}
.danger-link{border:0;background:transparent;color:#a81228;font-weight:700;font-size:14px;padding:4px}
.admin-pairs{border-top:1px solid #e1e6ee;margin-top:28px;padding-top:28px}
.pair-row{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:12px;margin-bottom:14px;font-size:14px;font-weight:700;overflow-wrap:anywhere}
.pair-row select{width:100%;min-width:0;padding:12px;border:1px solid #cfd7e1;border-radius:4px;background:#fff;color:#172b4d}
@media(max-width:760px){.admin-layout{grid-template-columns:1fr}.admin-layout .card{padding:25px}.pair-row{grid-template-columns:1fr;gap:6px}}

.password-details{margin-top:22px;border-top:1px solid #e1e6ee;padding-top:16px}.password-details summary{cursor:pointer;color:#264c77;font-size:14px;font-weight:700}.password-details summary:focus-visible{outline:3px solid #2877cd;outline-offset:3px}.password-form{margin-top:16px}

.recovery-choice{border:0;margin:0 0 18px;padding:0;display:flex;gap:12px;flex-wrap:wrap}.recovery-choice legend{font-size:13px;font-weight:700;margin-bottom:8px}.recovery-choice label{font-size:14px;display:flex;align-items:center;gap:5px}.tabs{flex-wrap:wrap}.request-badge{display:inline-block;min-width:22px;padding:2px 6px;border-radius:100px;background:#c8102e;color:#fff;text-align:center;margin-left:4px;font-size:12px}.request-badge[hidden]{display:none}.requests-heading{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap}.requests-heading h2{margin:0}.request-list{list-style:none;padding:0;margin:22px 0 0}.request-item{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 0;border-top:1px solid #e1e6ee;overflow-wrap:anywhere}.request-item small{color:#65748a}.request-empty{color:#65748a}@media(max-width:600px){.request-item{align-items:start;flex-direction:column}.requests-heading{align-items:start;flex-direction:column}}

/* Holiday plans and illustrations */
body{background-color:#f7f9f7;background-image:radial-gradient(circle at 9% 30%,#e8f0eb 0 2px,transparent 3px),radial-gradient(circle at 90% 50%,#e8ede7 0 3px,transparent 4px),radial-gradient(circle at 94% 82%,#e6d9bb 0 2px,transparent 3px);background-size:137px 157px,183px 193px,251px 233px}
.event-guide{background:linear-gradient(112deg,#fff 0%,#fff 70%,#fbf6eb 100%);border:1px solid #e1e8e3;border-radius:12px;box-shadow:0 15px 45px #1d46300c;padding:27px 32px 30px;margin:0 0 24px;position:relative;overflow:hidden}
.event-guide:after{content:'✦';position:absolute;right:22px;top:18px;color:#d8ba73;font-size:21px;pointer-events:none}.event-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:20px}.event-heading .label{margin:0 0 8px}.event-heading h2{font-size:25px;letter-spacing:-.025em;line-height:1.15;margin:0;color:#142e55}.event-heading>p{margin:0;color:#586c78;font-size:13px;font-weight:600}.event-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}.event-steps article{position:relative;padding:0 20px 0 0;margin-right:20px;border-right:1px solid #e3ebe4}.event-steps article:last-child{border:0;margin-right:0;padding-right:0}.event-steps p{margin:0;color:#516679;font-size:14px;line-height:1.55}.event-steps .event-number{display:inline-block;color:#c91230;font-size:11px;font-weight:800;letter-spacing:.1em;margin-bottom:7px}.event-steps .event-date{font-size:14px;color:#a9102a;font-weight:800;margin-bottom:5px}.event-steps h3{font-size:16px;color:#173458;margin:0 0 5px}.festive-aside{display:flex;flex-direction:column;gap:18px;min-width:0}.holiday-art{min-height:260px;border-radius:12px;overflow:hidden;position:relative;background:radial-gradient(ellipse at 50% 64%,#fff5e2 0,#f2f7ed 48%,#e5f0e8 100%);border:1px solid #e1eae3;display:flex;justify-content:center;align-items:center}.holiday-art:before,.holiday-art:after{content:'✦';position:absolute;color:#dfbb64;font-size:21px;top:14%;left:12%;opacity:.8}.holiday-art:after{top:29%;left:auto;right:12%;font-size:16px}.holiday-art img{display:block;width:100%;height:auto;max-height:430px;object-fit:contain;position:relative;z-index:1}
@media(max-width:760px){.event-guide{padding:23px 22px 25px;margin-bottom:20px}.event-heading{align-items:start;flex-direction:column;gap:8px}.event-heading h2{font-size:23px}.event-steps{grid-template-columns:1fr;gap:0}.event-steps article{border-right:0;border-bottom:1px solid #e3ebe4;padding:13px 0;margin:0}.event-steps article:last-child{padding:13px 0 0}.event-steps .event-number{float:right;margin:0 0 0 10px}.holiday-art{min-height:210px}.festive-aside{gap:14px}}
/* Decorative baubles, gifts and snowflakes stay behind all controls. */
body{background-image:url('/festive-scatter.svg'),radial-gradient(circle at 9% 30%,#e8f0eb 0 2px,transparent 3px),radial-gradient(circle at 90% 50%,#e8ede7 0 3px,transparent 4px);background-size:920px 620px,137px 157px,183px 193px;background-attachment:fixed}
@media(max-width:760px){body{background-size:620px 418px,137px 157px,183px 193px}}
/* Accessible secondary text and explicit contest reset. */
.muted,.dashboard-top p{color:#52647b}
.reset-contest{margin-top:10px}
