/* Ivory / dusk palette with a charcoal-black night mode. Layout and first-screen density stay in home.css. */
:root{color-scheme:light;--bg:#f7f5f8;--paper:#fffdfb;--ink:#36313e;--muted:#756e80;--green:#6c597a;--green-dark:#54435f;--line:#e5dfea;--soft:#f0eaf3;--peach:#f7eddf;--red:#a34643;--surface-raised:#fffdfb;--surface-sunken:#f5f1f6;--shadow:0 8px 24px #294c3610,0 2px 4px #294c3606;--edge:#ffffffd9;--input-shadow:inset 0 2px 4px #233b2910;--button-shadow:inset 0 1px 0 #ffffff40,0 3px 0 #4a3955,0 5px 9px #48304f20}
body{background:radial-gradient(ellipse at 50% 0,#ede4f245,transparent 65%),var(--bg);color:var(--ink)}
.header{background:var(--paper);box-shadow:0 1px 0 var(--edge),0 4px 20px #294c3605}
:is(.submit-card,.pool-card,.feedback-card,.stats,.how-card,.rules-card,.home-activity-card,.activity-card,dialog){background:var(--paper);border-color:var(--line);box-shadow:inset 0 1px 0 var(--edge),var(--shadow)}
:is(.how-card,.rules-card,.team-summary){background:linear-gradient(140deg,var(--soft),var(--paper));border-color:var(--line)}
.home-activity-card{box-shadow:inset 0 1px 0 var(--edge),0 3px 0 #e8e1eb,0 7px 15px #294c3608}
.home-activity-title h3{font-size:clamp(14px,1.45vw,18px)}
.home-activity-card.pdd .home-activity-title{flex-wrap:wrap;gap:2px 7px}
.home-activity-card.pdd h3{white-space:normal;line-height:1.4}
:is(button,a.button,.home-activity-action,.daily-packet-action){-webkit-tap-highlight-color:transparent;touch-action:manipulation}
:is(.button,.home-activity-action,.daily-packet-action,.reward-dock,.icon-button,.theme-toggle){transition:background-color .16s,box-shadow .16s,transform .12s,border-color .16s}
.button{border-radius:10px;font-weight:650}
.button.primary{background:linear-gradient(#806d8c,#675273);border:1px solid #5f4c6a;box-shadow:var(--button-shadow);color:#fff}
.button.primary:hover:not(:disabled){background:linear-gradient(#8a7697,#705b7c);box-shadow:inset 0 1px 0 #ffffff50,0 3px 0 #4a3955,0 7px 14px #48304f26}
.button.dark{background:linear-gradient(#4f4359,#3d3247);border:1px solid #392c42;box-shadow:inset 0 1px 0 #ffffff25,0 3px 0 #2d2236,0 5px 9px #173e2e18;color:#fff}
.button.secondary,.home-activity-action{background:linear-gradient(var(--paper),var(--soft));border-color:var(--line);color:var(--green);box-shadow:inset 0 1px 0 var(--edge),0 2px 0 var(--line),0 3px 5px #294c3608}
:is(.button,.home-activity-action,.daily-packet-action,.reward-dock):active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 2px 4px #102a242a,0 1px 0 var(--line)}
.button:disabled{box-shadow:none;opacity:.55;transform:none;cursor:not-allowed}
:is(button,a,input,textarea,select,summary):focus-visible{outline:3px solid #b99fca;outline-offset:3px}
:is(input,textarea,select,.submit-controls textarea){background:var(--surface-sunken);color:var(--ink);border-color:var(--line);box-shadow:var(--input-shadow)}
:is(input,textarea)::placeholder{color:var(--muted);opacity:.85}
:is(.list-head,.pool-toolbar,.pool-footer,.claim-value,.resume-card){background:var(--surface-sunken);border-color:var(--line)}
.filter{color:var(--muted)}.filter.active{background:var(--paper);color:var(--green);box-shadow:inset 0 1px 0 var(--edge),0 1px 4px #203d2520}
.daily-benefits{background:linear-gradient(125deg,#fff9ed,#fff1e6 65%,#fff7ee);border-color:#dec19b;box-shadow:inset 0 1px 0 #fff,0 3px 0 #ecdfca,0 10px 26px #94562712}
.benefits-heading h2{color:#73472f}.benefits-heading p,.benefits-more{color:#8e6342}
.daily-packet{background:linear-gradient(125deg,#ffeccb,#ffdab4);border-color:#d9ad7b;box-shadow:inset 0 1px 0 #ffffffc4,0 2px 0 #dfbd94,0 5px 12px #8f4d2010}
.daily-packet.jd{background:linear-gradient(125deg,#ffe7db,#f6ceca);border-color:#d7aaa0;box-shadow:inset 0 1px 0 #ffffffc4,0 2px 0 #dab2a9,0 5px 12px #8f302010}
.packet-stamp{box-shadow:inset 0 1px 0 #fff,0 2px 3px #94562712}
.daily-packet-action{background:linear-gradient(#fffaf1,#f9e6cd);box-shadow:inset 0 1px 0 #fff,0 2px 0 #d4aa80;color:#794a29}
.jd .daily-packet-action{background:linear-gradient(#fff5ef,#f5dcd4);box-shadow:inset 0 1px 0 #fff,0 2px 0 #ce9c91;color:#813e37}
.benefits-combine{color:#805f43}
.rewards-feedback{margin:32px auto;max-width:760px}
.theme-toggle{display:inline-flex;align-items:center;gap:7px;border:0;padding:5px 0;background:transparent;color:inherit;font:inherit;font-size:11px;white-space:nowrap;cursor:pointer;min-height:32px}
.theme-track{width:29px;height:17px;display:inline-flex;align-items:center;padding:2px;border-radius:20px;background:#dfd5e6;box-shadow:inset 0 1px 3px #23442930}
.theme-track>span{display:block;width:13px;height:13px;border-radius:50%;background:#fffdfb;box-shadow:0 1px 3px #203c3933;transition:transform .16s}
.theme-toggle[aria-checked=true] .theme-track{background:#79668b}.theme-toggle[aria-checked=true] .theme-track>span{transform:translateX(12px)}
[hidden]{display:none!important}
html[data-theme=dark]{color-scheme:dark;--bg:#0c0c10;--paper:#17171d;--ink:#f0edf5;--muted:#b6b0c1;--green:#d4bddf;--green-dark:#ead8f1;--line:#34323d;--soft:#232129;--peach:#302b29;--red:#e3a4a8;--surface-raised:#222128;--surface-sunken:#111116;--shadow:0 7px 22px #00000022,0 2px 4px #00000015;--edge:#ffffff0d;--input-shadow:inset 0 2px 5px #00000025}
html[data-theme=dark] :is(.header,.footer){border-color:var(--line)}
html[data-theme=dark] :is(.section-kicker,.eyebrow,.brand-en,.footer-domain,.footer>p,.intro-meta,.pool-tip,.stat-label,.pool-footer,.field-note,.optional,.refresh-area,.privacy-copy,.dialog-description,.dialog-footnote,.packet-card p,.packet-card small,.guide-list p,.how-steps p,.rules-card li,.home-afterword,.home-signature,.community-entry-note,.community-dialog-intro,.community-safe-note){color:var(--muted)}
html[data-theme=dark] :is(.intro h1,.brand,.section-heading h2,.stat-note strong,.stats strong,.submit-heading h2,.home-intro h1,.page-heading h1,.team-summary strong,.team-info h3){color:var(--ink)}
html[data-theme=dark] :is(.home-activity-card,.team-summary,.packet-card,.packet-card.jd){background:var(--paper);border-color:var(--line);box-shadow:inset 0 1px 0 var(--edge),var(--shadow)}
html[data-theme=dark] :is(.icon-box,.how-steps>li>span,.activity-icon,.home-activity-card.jd .activity-icon,.home-activity-card.taojinbi .activity-icon,.status-circle,.empty-icon,.dialog-icon){background:var(--soft);color:var(--green);border-color:var(--line)}
html[data-theme=dark] :is(.code-row,.team-row,.list-head,.pool-toolbar,.pagination,.dialog-top){border-color:var(--line)}
html[data-theme=dark] .daily-benefits{background:linear-gradient(125deg,#242025,#211d23);border-color:#695447;box-shadow:inset 0 1px 0 #ffffff0e,0 3px 0 #131115,0 10px 26px #00000020}
html[data-theme=dark] .benefits-heading h2{color:#ead2b2}
html[data-theme=dark] :is(.benefits-heading p,.benefits-more,.benefits-combine){color:#c6b49f}
html[data-theme=dark] .daily-packet{background:linear-gradient(125deg,#3b2e26,#2c2421);border-color:#79604a;color:#f4dfc4;box-shadow:inset 0 1px 0 #ffffff18,0 2px 0 #191414}
html[data-theme=dark] .daily-packet.jd{background:linear-gradient(125deg,#39272f,#2b2028);border-color:#75505d;color:#f2d2d9;box-shadow:inset 0 1px 0 #ffffff18,0 2px 0 #191318}
html[data-theme=dark] .daily-packet-copy p{color:#cdb899}html[data-theme=dark] .jd .daily-packet-copy p{color:#c9a7b2}
html[data-theme=dark] .packet-stamp{background:#ffffff0b;color:#dfbf95;border-color:#d9a87170;box-shadow:inset 0 1px 0 #ffffff15,0 2px 3px #00000020}
html[data-theme=dark] .jd .packet-stamp{color:#dfaebf;border-color:#cf8b7d70}
html[data-theme=dark] .daily-packet-action{background:linear-gradient(#604b3b,#4b3b31);color:#f7e8d2;box-shadow:inset 0 1px 0 #ffffff20,0 2px 0 #1f1815;border-color:#81654c}
html[data-theme=dark] .jd .daily-packet-action{background:linear-gradient(#5e404b,#48303b);color:#f7e0e7;box-shadow:inset 0 1px 0 #ffffff20,0 2px 0 #20171c;border-color:#805866}
html[data-theme=dark] .reward-dock{background:linear-gradient(#94586a,#754353);border-color:#b77e8f;color:#fff0f4;box-shadow:inset 0 1px 0 #ffffff28,0 3px 0 #402430,0 7px 20px #00000040}
html[data-theme=dark] .reward-dock:hover{background:#9b6275}
html[data-theme=dark] :is(.community-entry,.community-entry-header,.community-entry-footer){background:transparent;color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.community-panel,.community-number-panel){background:var(--soft);border-color:var(--line)}
html[data-theme=dark] .badge.available{background:#292a32;color:#d9d3e3}html[data-theme=dark] .badge.used{background:#2b292e;color:#c9c3cd}html[data-theme=dark] :is(.badge.expired,.badge.reserved,.badge.uncertain){background:#332c2a;color:#d6bf99}
html[data-theme=dark] .form-message.success{color:#cbc3de}html[data-theme=dark] .form-message.error{color:#edb0bb}html[data-theme=dark] .form-message.pending{color:#e5c9a0}
html[data-theme=dark] .connection-message{background:#30272a;border-color:#71544d;color:#e5c3b5}
html[data-theme=dark] :is(.intro-description,.feedback-card label,.feedback-card>p,.feedback-bottom small,.stats small,.stat-note p,.code-meta,.empty-state p,.resume-card p,.team-info>p,.community-entry-subtitle,.community-note,details){color:var(--muted)}
html[data-theme=dark] :is(.filters,.used-button,.icon-button){background:var(--soft);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .how-card::after{color:#39333f}
dialog::backdrop{background:#0a08146b;backdrop-filter:blur(4px)}
@media(max-width:760px){.home-activity-title h3{font-size:14px}.home-activity-card.pdd .badge{display:none}.footer nav{flex-wrap:wrap;gap:10px 17px}.daily-packet-action,.jd .daily-packet-action{box-shadow:none;border:0;color:inherit}.rewards-feedback{margin-top:24px}}
@media(max-width:374px){.home-activity-title h3{font-size:12px}.home-activity-card.pdd .home-activity-title{gap:0}.home-activity-card.pdd h3{white-space:nowrap;letter-spacing:-.3px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Full-card native links keep mouse, touch and keyboard activation consistent. */
.daily-packet-link:hover{border-color:#bd9772;box-shadow:inset 0 1px 0 #ffffffb0,0 3px 0 #d8b79b,0 8px 18px #82522816}
.daily-packet-link.jd:hover{border-color:#b78998;box-shadow:inset 0 1px 0 #ffffffb0,0 3px 0 #d8aeb7,0 8px 18px #82324c16}
.daily-packet-link:focus-visible{outline:3px solid #a17db6;outline-offset:3px}
html[data-theme=dark] .daily-packet-link:hover{border-color:#a18161;box-shadow:inset 0 1px 0 #ffffff18,0 3px 0 #161216,0 8px 20px #00000030}
html[data-theme=dark] .daily-packet-link.jd:hover{border-color:#a27c8f}
html[data-theme=dark] :is(.community-entry--footer,.community-entry:hover,.community-notice){background:var(--soft);border-color:var(--line);color:var(--ink)}
html[data-theme=dark] :is(.community-copy>span,.community-copy small,.community-arrow,.footer-domain){color:var(--muted)!important}
html[data-theme=dark] .community-entry--footer .community-symbol{background:var(--paper)}
html[data-theme=dark] .community-copy strong{text-decoration-color:#a38eaf}
.community-dialog{background:transparent;box-shadow:none;border:0}
.community-dialog-panel{background:var(--paper);border-color:var(--line);color:var(--ink)}
.community-qr-card{background:var(--soft);border-color:var(--line)}
.community-entry{color:var(--ink)}
.community-entry:hover{background:var(--soft);border-color:var(--line)}
html[data-theme=dark] :is(.community-dialog-description,.community-dialog-description span,.community-join-note,.community-dismiss-note,.community-number-row label){color:var(--muted)}
html[data-theme=dark] .review-row{border-color:var(--line)}
#home-title{font-family:inherit;font-style:normal;font-size:15px;font-weight:500;letter-spacing:1px;line-height:1.65;color:var(--muted)}
.home-activity-heading h2{font-size:clamp(15px,1.6vw,18px);line-height:1.6;letter-spacing:0}
.home-activity-heading{flex-wrap:wrap;gap:3px 15px}
.home-activity-heading>p{white-space:nowrap}
html[data-theme=dark] #home-title{color:#d4c1de}
@media(max-width:760px){#home-title{font-size:13.5px;letter-spacing:.7px}.home-activity-heading h2{font-size:14px}.home-activity-heading>p{font-size:9px}}
@media(max-width:374px){#home-title{font-size:13px;letter-spacing:.5px}.home-activity-heading h2{font-size:12px}}
@media(max-height:700px) and (max-width:760px){#home-title{font-size:13.5px}.home-activity-heading>p{display:none}}
@media(max-height:500px) and (min-width:600px){#home-title{font-size:13.5px;line-height:1.5}.home-activity-heading>p{display:none}.home-activity-heading h2{font-size:14px}}

/* Day-only warm ivory and soft rose. Existing night colors are untouched. */
html:not([data-theme=dark]){--bg:#fcf8f6;--paper:#fffdfa;--ink:#45363c;--muted:#806b73;--green:#925568;--green-dark:#764254;--line:#eddee1;--soft:#faeef0;--peach:#fbf0e8;--surface-raised:#fffaf8;--surface-sunken:#fcf5f4;--shadow:0 8px 24px #8d56670d,0 2px 4px #8d566706;--input-shadow:inset 0 2px 4px #8755650c;--button-shadow:inset 0 1px 0 #ffffff55,0 3px 0 #6c3b4c,0 5px 9px #8d56671a}
html:not([data-theme=dark]) body{background:radial-gradient(ellipse at 50% 0,#f8e3e780,transparent 65%),var(--bg)}
html:not([data-theme=dark]) .header{box-shadow:0 1px 0 #fff,0 4px 20px #8d566705}
html:not([data-theme=dark]) .button.primary{background:linear-gradient(#9d6175,#8c5065);border-color:#874c60}
html:not([data-theme=dark]) .button.primary:hover:not(:disabled){background:linear-gradient(#a06477,#94586d);box-shadow:inset 0 1px 0 #ffffff50,0 3px 0 #6c3b4c,0 7px 14px #8d56671f}
html:not([data-theme=dark]) .button.dark{background:linear-gradient(#70505d,#5c414c);border-color:#573d47;box-shadow:inset 0 1px 0 #ffffff25,0 3px 0 #49313b,0 5px 9px #8d566718}
html:not([data-theme=dark]) .home-activity-card{box-shadow:inset 0 1px 0 #fff,0 3px 0 #f0e3e5,0 7px 15px #8d566708}
html:not([data-theme=dark]) :is(.activity-icon,.home-activity-card.jd .activity-icon,.home-activity-card.taojinbi .activity-icon,.icon-box,.dialog-icon){background:#f8e6eb;color:#9a5c70}
html:not([data-theme=dark]) :is(.filters,.icon-button){background:#f8eef0;color:var(--muted)}
html:not([data-theme=dark]) .theme-track{background:#ecd8df}
html:not([data-theme=dark]) .how-card::after{color:#efdde2}
html:not([data-theme=dark]) .daily-benefits{background:linear-gradient(125deg,#fffaf5,#fdefef 65%,#fff7f3);border-color:#e7c9cd;box-shadow:inset 0 1px 0 #fff,0 3px 0 #f2e2e1,0 10px 26px #a26a6f10}
html:not([data-theme=dark]) .benefits-heading h2{color:#81505e}
html:not([data-theme=dark]) :is(.benefits-heading p,.benefits-more,.benefits-combine){color:#906a73}
html:not([data-theme=dark]) .daily-packet{background:linear-gradient(125deg,#fff0e6,#f9e1dd);border-color:#e5bdb6;color:#84554e;box-shadow:inset 0 1px 0 #ffffffc4,0 2px 0 #e7c9c1,0 5px 12px #a26a6f0c}
html:not([data-theme=dark]) .daily-packet.jd{background:linear-gradient(125deg,#fdebf0,#f5dae3);border-color:#e0b6c6;color:#884f64;box-shadow:inset 0 1px 0 #ffffffc4,0 2px 0 #e3c4cf,0 5px 12px #a26a7f0c}
html:not([data-theme=dark]) .daily-packet-copy p{color:#926e65}
html:not([data-theme=dark]) .jd .daily-packet-copy p{color:#946c7c}
html:not([data-theme=dark]) .packet-stamp{background:#fff8f3;border-color:#d8aaa080;color:#a3695c}
html:not([data-theme=dark]) .jd .packet-stamp{background:#fff5f8;border-color:#d9a4b880;color:#a1647a}
html:not([data-theme=dark]) .daily-packet-action{background:linear-gradient(#fffaf5,#f7e6e0);border-color:#dbb6ac;color:#84554e;box-shadow:inset 0 1px 0 #fff,0 2px 0 #dcb8ac}
html:not([data-theme=dark]) .jd .daily-packet-action{background:linear-gradient(#fff7fa,#f4e0e8);border-color:#d9aebf;color:#884f64;box-shadow:inset 0 1px 0 #fff,0 2px 0 #d6afbf}
html:not([data-theme=dark]) .daily-packet-link:hover{border-color:#cc9c95;box-shadow:inset 0 1px 0 #ffffffb0,0 3px 0 #e1bdb6,0 8px 18px #a26a6f16}
html:not([data-theme=dark]) .daily-packet-link.jd:hover{border-color:#c696ab;box-shadow:inset 0 1px 0 #ffffffb0,0 3px 0 #dfbac9,0 8px 18px #a26a7f16}
html:not([data-theme=dark]) :is(.packet-card,.packet-card.jd){background:linear-gradient(140deg,#fff8f4,#fbedef);border-color:var(--line)}
html:not([data-theme=dark]) .community-entry--footer{background:#fcf0f2;border-color:var(--line)}
html:not([data-theme=dark]) .community-entry--footer .community-symbol{background:var(--paper)}
html:not([data-theme=dark]) .community-copy strong{text-decoration-color:#ceabb7}
html:not([data-theme=dark]) :is(.community-copy>span,.community-copy small,.community-arrow,.home-signature){color:var(--muted)}
html:not([data-theme=dark]) .footer-domain{color:#8a6e79!important}
html:not([data-theme=dark]) :is(button,a,input,textarea,select,summary):focus-visible{outline-color:#b6758f}
html:not([data-theme=dark]) :is(.section-kicker,.brand-en,.community-dialog-description,.community-dialog-description span,.community-join-note,.community-dismiss-note){color:var(--muted)}
html:not([data-theme=dark]) .how-steps li>span{color:#9a6377}
@media(max-width:760px){html:not([data-theme=dark]) .daily-packet-action,html:not([data-theme=dark]) .jd .daily-packet-action{box-shadow:none;border:0;color:inherit}}
