*{box-sizing:border-box}body{margin:0;background:#f6f8fc;color:#182034;font:17px/1.5 "Segoe UI",sans-serif}header,main,footer{max-width:1060px;margin:auto;padding:22px 5%}header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #d8deec}header b{font-size:25px}a,em{color:#4e42ce}em{font-style:normal}h1{font-size:clamp(48px,7vw,86px);line-height:.99;letter-spacing:-.055em;margin:30px 0 18px}section p{max-width:660px}article{display:grid;grid-template-columns:1.3fr 1fr;background:white;border:1px solid #d7dded;border-radius:22px;overflow:hidden;margin:30px 0 42px}form,aside{padding:clamp(22px,4vw,40px)}label,small,button{display:block}label{font-weight:650;margin-bottom:6px}select,textarea,button{font:inherit;border-radius:9px;width:100%;padding:12px}select,textarea{border:1px solid #afb8c9;margin-bottom:18px}textarea{min-height:88px}small{color:#525e73}button,#save{background:#5041ce;color:white;font-weight:650;border:0;margin-top:18px;cursor:pointer}aside{display:grid;align-content:center;justify-items:center;background:#eae8fb;text-align:center}#preview{display:grid;justify-items:center}#preview strong{font-size:94px;color:#6962aa}canvas{width:min(100%,240px);height:auto}#save{padding:10px 24px;border-radius:9px}footer{border-top:1px solid #d8deec}td,th{padding:8px;text-align:left;overflow-wrap:anywhere}table{width:100%}@media(max-width:650px){article{grid-template-columns:1fr}aside{min-height:190px}}
[hidden]{display:none!important}#logo{display:block;max-width:100%;margin:6px 0 16px}#removeLogo{width:auto;background:white;color:#5041ce;border:1px solid;margin:0 0 14px;padding:5px 12px}
.brand{display:inline-flex;align-items:center;gap:12px;text-decoration:none;color:#211b42}.brand img{width:90px;height:auto;border-radius:10px;box-shadow:0 0 0 1px #dedbef;image-rendering:pixelated}.brand b{font:750 clamp(24px,4vw,36px)/1 "Segoe UI",sans-serif;letter-spacing:-.065em}.brand span{color:#503ac2}@media(max-width:400px){header{gap:8px}header>a:last-child{font-size:14px}.brand{gap:7px}}
.qr-rain{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:20}
.qr-rain img{position:absolute;top:0;border-radius:5px;box-shadow:0 3px 15px #5041ce45;opacity:0;animation:qr-fall linear forwards}
@keyframes qr-fall{
  0%{transform:translate(-50%,-60px) rotate(0);opacity:0}
  12%{opacity:.85}
  80%{opacity:.65}
  100%{transform:translate(calc(-50% + var(--drift)),102vh) rotate(var(--turn));opacity:0}
}
.nav-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.nav-actions button{width:auto;margin:0;padding:7px 11px}
.dark{color-scheme:dark}.dark body{background:#10121e;color:#f0effa}.dark article,.dark #removeLogo{background:#191c2e;color:#f0effa;border-color:#424661}.dark aside{background:#24213b}.dark small,.dark .brand{color:#e1ddf7}.dark a,.dark em,.dark .brand span{color:#c3b5ff}.dark #save{color:white}
.new-year body{background-image:radial-gradient(circle,#b4293940 1px,transparent 2px),radial-gradient(circle,#15745440 1px,transparent 2px);background-size:38px 38px,53px 53px}.new-year article{border-color:#b84856}.new-year aside{background:#e6f3e9}.new-year.dark aside{background:#19372f}.new-year h1 em,.new-year .brand span{color:#b42939}.new-year.dark h1 em,.new-year.dark .brand span{color:#ff8e96}.new-year button,.new-year #save{background:#14644a;color:white}
.qr-rain span{position:absolute;top:0;opacity:0;animation:qr-fall linear forwards}.qr-rain span img{position:static;display:block;width:100%;opacity:1;animation:none}.qr-hat{position:absolute;bottom:88%;left:12%;width:76%;height:56%;background:#da283d;clip-path:polygon(0 100%,22% 46%,69% 0,100% 29%,82% 42%,75% 100%);border-bottom:4px solid #fff}
#dark-mode{position:relative;display:grid;grid-template-columns:1fr 1fr;place-items:center;width:62px;height:32px;padding:2px 4px;border:1px solid #bcb6e3;border-radius:18px;background:#efebff;color:#403394}
#dark-mode::before{content:"";position:absolute;left:3px;top:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #20194b50;transition:transform .2s ease}
#dark-mode span{position:relative;font-size:16px;line-height:1}
.dark #dark-mode{background:#2c2753;color:#eee8ff;border-color:#7268a7}.dark #dark-mode::before{transform:translateX(30px);background:#55468b}
.holiday-lights{display:none}
.new-year .holiday-lights{display:flex;justify-content:space-around;gap:6px;max-width:1060px;margin:0 auto;border-top:2px solid #236349;padding:0 5px}
.holiday-lights i{width:10px;height:15px;border-radius:45% 45% 55% 55%;background:#ee4657;color:#ee4657;box-shadow:0 2px 10px currentColor}
.holiday-lights i:nth-child(3n+2){background:#efbb45;color:#efbb45}.holiday-lights i:nth-child(3n){background:#31aa82;color:#31aa82}
.new-year .holiday-lights~main>section:first-child{position:relative;isolation:isolate}
.new-year .holiday-lights~main>section:first-child::after{content:"❄  ✦  ❄";position:absolute;z-index:-1;right:0;top:0;color:#258779;opacity:.25;font-size:clamp(23px,6vw,80px);transform:rotate(-12deg);pointer-events:none}
.new-year article{box-shadow:0 12px 35px #196b4522;border-top:4px solid #ae2b3f}
.new-year .qr-hat{clip-path:none;width:70%;height:48%;border-radius:75% 65% 10% 10%;transform:rotate(-15deg);border-bottom:3px solid white}
.new-year .qr-hat::after{content:"";position:absolute;right:-2px;top:-3px;width:28%;aspect-ratio:1;border-radius:50%;background:white}
@media(prefers-reduced-motion:reduce){#dark-mode::before{transition:none}}
.new-year-greeting{display:none}
.new-year .new-year-greeting{display:inline-flex;align-items:baseline;gap:.35em;margin:0;padding:.25em .7em;border:1px solid #c39036;border-radius:2em;background:#fff4d7;color:#713b08;font-size:clamp(18px,3vw,27px);font-weight:650;animation:greeting-glow 2.6s ease-in-out infinite alternate}
.new-year.dark .new-year-greeting{background:#342617;color:#ffdf8f}
.new-year-greeting strong{font-variant-numeric:tabular-nums}
@keyframes greeting-glow{from{box-shadow:0 0 4px #eab54d55}to{box-shadow:0 0 20px #eab54daa}}
@media(prefers-reduced-motion:reduce){.new-year .new-year-greeting{animation:none}}
.qr-colors{width:100%;text-align:left;display:grid;grid-template-columns:1fr;gap:6px;border:1px solid #aaa1ce;border-radius:10px;padding:10px 12px;margin:10px 0}.qr-colors label{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;font-size:.9rem}.qr-colors input[type=color]{width:42px;height:30px}.qr-colors input[type=checkbox]{order:1}#sample-note{margin:.4rem 0;font-size:.88rem}.guide{max-width:800px;margin:0 auto}.guide h1{font-size:clamp(34px,6vw,62px);line-height:1.07}.guide li{margin-bottom:.65em}
