/* December-only, scoped Christmas styles; no global site restyling. */
#ctc-xmas-dialog{box-sizing:border-box;border:2px solid #b78d45;padding:0;margin:auto;width:min(720px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;color:#273b2c;background:#fffcf2;border-radius:18px;box-shadow:0 12px 70px #142b2566;font-family:system-ui,-apple-system,sans-serif;text-align:left;line-height:1.3;z-index:2147483646}
#ctc-xmas-dialog::backdrop{background:#1a2821a6;backdrop-filter:blur(3px)}
#ctc-xmas-dialog *,#ctc-xmas-dialog *::before,#ctc-xmas-dialog *::after{box-sizing:border-box}
#ctc-xmas-dialog .ctc-xmas-sheet{padding:23px 25px 18px;position:relative}
#ctc-xmas-dialog .ctc-xmas-close{position:absolute;right:11px;top:9px;background:#fff5df;border:1px solid #a9926b;color:#5e3a2d;width:42px;height:42px;border-radius:50%;font:700 28px/1 system-ui;cursor:pointer;z-index:2;box-shadow:0 0 0 2px #fff9ec}
#ctc-xmas-dialog .ctc-xmas-head{text-align:center;padding:12px 37px 13px;background:#86272c!important;background-image:none!important;color:#fff9ec!important;border:1px solid #6c1b22;border-bottom:3px solid #c9a460;border-radius:12px;box-shadow:none}
#ctc-xmas-dialog .ctc-xmas-kicker{font-size:12px;letter-spacing:.15em;font-weight:800;color:#ffe5ac!important;-webkit-text-fill-color:#ffe5ac}
#ctc-xmas-dialog .ctc-xmas-head h2{font:800 clamp(30px,5.6vw,47px)/1.03 Georgia,serif;text-transform:none;color:#fff9ec!important;-webkit-text-fill-color:#fff9ec;letter-spacing:-.025em;margin:7px 0 7px}
#ctc-xmas-dialog .ctc-xmas-head p{font-size:16px;font-weight:650;margin:0 0 3px;color:#fff1d9!important;-webkit-text-fill-color:#fff1d9}
#ctc-xmas-dialog .ctc-xmas-elfrow{display:grid;grid-template-columns:128px 1fr;align-items:center;gap:11px;margin:9px 0}
#ctc-xmas-dialog .ctc-xmas-elfrow img{width:128px;height:122px;object-fit:contain;object-position:bottom center;display:block}
#ctc-xmas-dialog .ctc-xmas-speech{border:1px solid #d9c5a0;background:#fff5de;padding:12px 15px;border-radius:13px;position:relative}
#ctc-xmas-dialog .ctc-xmas-speech::before{content:"";position:absolute;left:-7px;top:36%;width:12px;height:12px;background:#fff5de;border-left:1px solid #d9c5a0;border-bottom:1px solid #d9c5a0;transform:rotate(45deg)}
#ctc-xmas-dialog .ctc-xmas-elflabel{color:#962f29;font-size:12px;font-weight:850;letter-spacing:.1em;margin-bottom:4px}
#ctc-xmas-dialog .ctc-xmas-speech strong{font:700 clamp(20px,3.1vw,27px)/1.12 Georgia,serif;color:#244d36;display:block}
#ctc-xmas-dialog .ctc-xmas-speech span{display:block;margin-top:5px;font-size:15px;font-weight:600}
#ctc-xmas-dialog .ctc-xmas-metrics{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:8px;margin:10px 0 13px}
#ctc-xmas-dialog .ctc-xmas-metric{border:1px solid #d5c6a4;background:#fffdfa;padding:10px 10px 9px;border-radius:10px;min-width:0;text-align:center}
#ctc-xmas-dialog .ctc-xmas-metric>span{display:block;letter-spacing:.045em;font-size:11px;font-weight:850;color:#635940}
#ctc-xmas-dialog .ctc-xmas-metric strong{display:block;font-size:clamp(24px,3.8vw,34px);font-weight:850;letter-spacing:-.04em;line-height:1.15;margin:4px 0}
#ctc-xmas-dialog .ctc-xmas-metric small{font-weight:650;color:#645c4d;font-size:12px;display:block}
#ctc-xmas-dialog .ctc-xmas-meter{display:grid;grid-template-columns:repeat(12,1fr);gap:2px;margin-top:6px}
#ctc-xmas-dialog .ctc-xmas-meter i{height:9px;border-radius:2px;background:#e5dcc6}
#ctc-xmas-dialog .ctc-xmas-meter i.filled{background:#267443}
#ctc-xmas-dialog #ctc-xmas-hearts{display:flex;justify-content:center;gap:3px;color:#aa292c;font-family:Arial,sans-serif;font-size:clamp(23px,3.4vw,32px);letter-spacing:0}
#ctc-xmas-dialog #ctc-xmas-hearts .spent{color:#9a8b78}
#ctc-xmas-dialog .ctc-xmas-calendarhead{display:flex;justify-content:space-between;align-items:center;font-size:14px;color:#244c35;margin:0 0 5px;gap:6px}
#ctc-xmas-dialog .ctc-xmas-calendarhead strong{text-transform:uppercase;font-weight:800;letter-spacing:.04em}
#ctc-xmas-dialog .ctc-xmas-calendarhead>span{font-size:12px;font-weight:650;white-space:nowrap;color:#574d3d}
#ctc-xmas-dialog .ctc-xmas-key{display:inline-block;border-radius:3px;padding:1px 5px;margin-left:4px;font-weight:800}
#ctc-xmas-dialog .ctc-xmas-calendar{display:grid;grid-template-columns:repeat(16,minmax(0,1fr));gap:4px}
#ctc-xmas-dialog .ctc-xmas-day{background:#efe6d3;border:1px solid #c9b99e;border-radius:6px;min-height:40px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;font-size:14px;font-weight:700}
#ctc-xmas-dialog .ctc-xmas-day span{font-size:13px;line-height:13px}
#ctc-xmas-dialog .complete,#ctc-xmas-dialog .ctc-xmas-day.complete{background:#d7ead5;border-color:#629067;color:#18512b}
#ctc-xmas-dialog .missed,#ctc-xmas-dialog .ctc-xmas-day.missed{background:#f3d5d2;border-color:#bd7c75;color:#822827}
#ctc-xmas-dialog .ctc-xmas-day.future{color:#635d50}
#ctc-xmas-dialog .ctc-xmas-day.current{outline:2px solid #a87716;outline-offset:0;background-color:#fff2bc;color:#5c420f}
#ctc-xmas-dialog .ctc-xmas-day.current.complete{background:#d7ead5;color:#18512b}
#ctc-xmas-dialog .ctc-xmas-rules{font-size:14px;line-height:1.38;color:#4e483c;margin:11px 0 12px}
#ctc-xmas-dialog .ctc-xmas-actions{display:flex;gap:9px}
#ctc-xmas-dialog .ctc-xmas-actions button{min-height:46px;font:800 16px system-ui;cursor:pointer;border-radius:8px;padding:9px 14px;text-transform:none;letter-spacing:0}
#ctc-xmas-dialog .ctc-xmas-start{flex:1;background:#245f3b;color:#fffdf2;border:2px solid #245f3b}
#ctc-xmas-dialog .ctc-xmas-later{flex:0 0 auto;background:#fff9ec;color:#523e32;border:1px solid #a29377}
#ctc-xmas-dialog .ctc-xmas-storage{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:8px;font-size:12px;color:#5c574a;text-align:center}
#ctc-xmas-dialog .ctc-xmas-signin{font:750 13px system-ui;color:#245238;background:transparent;border:0;text-decoration:underline;cursor:pointer;padding:4px}
#ctc-xmas-dialog button:focus-visible,.ctc-xmas-badge:focus-visible{outline:3px solid #ad7720;outline-offset:3px}
.ctc-xmas-badge{display:block!important;min-height:38px;padding:7px 12px!important;border:1px solid #a87a35!important;background:#fff4d7!important;color:#285338!important;border-radius:9px!important;font:750 13px/1.3 system-ui!important;letter-spacing:0!important;text-transform:none!important;text-align:center!important;cursor:pointer!important;box-shadow:none!important}
.ctc-xmas-badge[hidden]{display:none!important}
.ctc-xmas-badge.ctc-xmas-home{margin-left:auto!important;max-width:100%;white-space:normal}
.ctc-xmas-badge.ctc-xmas-flash{margin:6px 0 8px!important;width:100%}
.ctc-xmas-badge.complete{background:#dff0d9!important;border-color:#67956c!important}
.ctc-xmas-celebrate{animation:ctc-xmas-pop .55s 2}
@keyframes ctc-xmas-pop{50%{transform:scale(1.018);box-shadow:0 0 0 4px #e8b84d88}}
@media(max-width:600px){#ctc-xmas-dialog .ctc-xmas-sheet{padding:15px 12px 13px}#ctc-xmas-dialog .ctc-xmas-head{padding:10px 33px 12px}#ctc-xmas-dialog .ctc-xmas-kicker{font-size:10px}#ctc-xmas-dialog .ctc-xmas-head p{font-size:14px}#ctc-xmas-dialog .ctc-xmas-elfrow{grid-template-columns:94px 1fr;gap:9px}#ctc-xmas-dialog .ctc-xmas-elfrow img{width:94px;height:94px}#ctc-xmas-dialog .ctc-xmas-speech{padding:9px 10px}#ctc-xmas-dialog .ctc-xmas-speech span{font-size:13px}#ctc-xmas-dialog .ctc-xmas-metric{padding:8px 3px}#ctc-xmas-dialog .ctc-xmas-metric>span{font-size:10px;letter-spacing:0}#ctc-xmas-dialog .ctc-xmas-metric small{font-size:11px}#ctc-xmas-dialog .ctc-xmas-calendar{grid-template-columns:repeat(8,minmax(0,1fr));gap:3px}#ctc-xmas-dialog .ctc-xmas-day{min-height:35px}#ctc-xmas-dialog .ctc-xmas-rules{font-size:13px}#ctc-xmas-dialog .ctc-xmas-actions button{font-size:14px}#ctc-xmas-dialog .ctc-xmas-close{width:37px;height:37px}#questHome .ed-qual-heading:has(.ctc-xmas-badge){flex-wrap:wrap;gap:6px}.ctc-xmas-badge.ctc-xmas-home{font-size:12px!important;margin-left:0!important}}
@media(prefers-reduced-motion:reduce){.ctc-xmas-celebrate{animation:none}}

/* The completed-day reward fills the viewport, including whiteboards and installed PWAs. */
#ctc-xmas-celebration{box-sizing:border-box;position:fixed;inset:0;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;max-width:none!important;max-height:none!important;width:100%!important;height:100%!important;height:100dvh!important;overflow:auto;background:#fbf4e2;color:#214e37;text-align:left;font:600 18px/1.35 system-ui,-apple-system,sans-serif;z-index:2147483647}
#ctc-xmas-celebration::backdrop{background:#fbf4e2}
#ctc-xmas-celebration *,#ctc-xmas-celebration *::before,#ctc-xmas-celebration *::after{box-sizing:border-box}
#ctc-xmas-celebration .ctc-xmas-party{min-height:100%;position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;isolation:isolate;padding:clamp(26px,4vw,70px);background:radial-gradient(ellipse at 24% 47%,#f7e1b3 0%,#fbf2dd 32%,transparent 65%),#fbf4e2}
#ctc-xmas-celebration .ctc-xmas-party-border{position:absolute;inset:15px;border:1px solid #b99250;outline:2px solid #b99250;outline-offset:5px;pointer-events:none;z-index:-1}
#ctc-xmas-celebration .ctc-xmas-party-top{display:flex;gap:14px;align-items:center;justify-content:center;flex-wrap:wrap;width:100%;font-size:clamp(11px,1.2vw,17px);font-weight:850;letter-spacing:.12em;color:#8b302d;text-align:center;margin-bottom:clamp(16px,3vh,32px);padding:0 34px}
#ctc-xmas-celebration .ctc-xmas-party-x{position:absolute;top:max(24px,env(safe-area-inset-top));right:max(24px,env(safe-area-inset-right));width:46px;height:46px;border:1px solid #997e53;border-radius:50%;background:#fff9e9;color:#774037;font:700 30px/1 system-ui;cursor:pointer;z-index:4;box-shadow:none}
#ctc-xmas-celebration .ctc-xmas-party-layout{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:clamp(24px,5vw,80px);align-items:center;max-width:1480px;width:100%}
#ctc-xmas-celebration .ctc-xmas-party-portrait{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0}
#ctc-xmas-celebration .ctc-xmas-portrait-halo{position:absolute;z-index:-1;top:3%;width:98%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,#fffcf1 0 59%,#e6c78a 59.5% 60.2%,transparent 60.8%);opacity:.95}
#ctc-xmas-celebration .ctc-xmas-party-portrait img{width:100%;max-width:620px;max-height:65dvh;aspect-ratio:1;object-fit:contain;display:block;filter:drop-shadow(0 12px 8px #7d50252b)}
#ctc-xmas-celebration .ctc-xmas-party-signed{text-align:center;font:italic 700 clamp(17px,2vw,25px) Georgia,serif;color:#8c2e2c;margin-top:-7px}
#ctc-xmas-celebration .ctc-xmas-party-signed span{font-size:.8em;font-weight:500;display:block;margin-top:2px}
#ctc-xmas-celebration .ctc-xmas-star{position:absolute;color:#b18437;font-size:clamp(20px,3.8vw,58px);pointer-events:none}
#ctc-xmas-celebration .star1{left:4%;top:13%}#ctc-xmas-celebration .star2{right:3%;top:22%}#ctc-xmas-celebration .star3{left:1%;bottom:21%;font-size:clamp(15px,2.6vw,34px)}#ctc-xmas-celebration .star4{right:1%;bottom:19%;font-size:clamp(18px,2.6vw,38px)}
#ctc-xmas-celebration .ctc-xmas-party-content{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
#ctc-xmas-celebration .ctc-xmas-party-kicker{color:#8b302d;font-size:clamp(12px,1.35vw,18px);font-weight:850;letter-spacing:.075em;line-height:1.4}
#ctc-xmas-celebration .ctc-xmas-party-kicker>span:first-child{display:inline-flex;align-items:center;justify-content:center;background:#28603c;color:#fff;width:1.65em;height:1.65em;border-radius:50%;letter-spacing:0;margin-right:3px}
#ctc-xmas-celebration h2{font:800 clamp(42px,6vw,100px)/.99 Georgia,serif;color:#244f36;letter-spacing:-.035em;margin:12px 0 9px;text-transform:none;white-space:normal}
#ctc-xmas-celebration .ctc-xmas-party-tally{font:800 clamp(60px,10vw,150px)/1 system-ui;letter-spacing:-.065em;color:#a52f30;white-space:nowrap}
#ctc-xmas-celebration .ctc-xmas-party-tally strong{font-weight:900}#ctc-xmas-celebration .ctc-xmas-party-tally span{font-size:.6em;font-weight:750;color:#28583a}
#ctc-xmas-celebration .ctc-xmas-party-tally-label{font-size:clamp(12px,1.35vw,19px);font-weight:850;letter-spacing:.07em;color:#4c5844;margin:2px 0 18px}
#ctc-xmas-celebration .ctc-xmas-party-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%;max-width:690px}
#ctc-xmas-celebration .ctc-xmas-party-stats>div{background:#fffaf0;border:1px solid #b89b65;border-top:4px solid #9d3432;padding:clamp(10px,1.6vw,22px);border-radius:9px;box-shadow:0 4px 0 #eadbb8;min-width:0}
#ctc-xmas-celebration .ctc-xmas-party-stats>div>span{display:block;font-size:clamp(12px,1.4vw,19px);font-weight:850;letter-spacing:.035em;color:#79512e}
#ctc-xmas-celebration .ctc-xmas-party-stats strong{display:block;font-size:clamp(27px,4.4vw,58px);line-height:1.1;font-weight:850;letter-spacing:-.035em;white-space:nowrap;margin:7px 0 4px;color:#245238}
#ctc-xmas-celebration .ctc-xmas-party-stats small{display:block;font-size:clamp(12px,1.3vw,17px);font-weight:700;color:#5b594c}
#ctc-xmas-celebration #ctc-xmas-celebrate-hearts{display:flex;gap:clamp(2px,.6vw,8px);font-family:Arial,sans-serif;color:#a92e30;letter-spacing:0}
#ctc-xmas-celebration #ctc-xmas-celebrate-hearts .spent{color:#776650}
#ctc-xmas-celebration #ctc-xmas-celebrate-message{font:700 clamp(17px,2vw,27px)/1.3 Georgia,serif;color:#37503c;margin:20px 0 18px;max-width:650px}
#ctc-xmas-celebration .ctc-xmas-party-next{min-height:54px;width:100%;max-width:690px;border:2px solid #245f3b;border-radius:10px;padding:14px 18px;font:800 clamp(18px,2vw,26px)/1.2 system-ui;letter-spacing:0;text-transform:none;color:#fffdf4;background:#245f3b;cursor:pointer;box-shadow:0 5px 0 #15432a}
#ctc-xmas-celebration button:focus-visible{outline:3px solid #ad7720;outline-offset:4px}
@media(max-width:760px) and (orientation:portrait){
  #ctc-xmas-celebration .ctc-xmas-party{padding:24px 24px 28px}
  #ctc-xmas-celebration .ctc-xmas-party-border{inset:9px;outline-offset:3px}
  #ctc-xmas-celebration .ctc-xmas-party-top{font-size:10px;letter-spacing:.08em;gap:4px 8px;margin-bottom:7px;padding:0 32px}
  #ctc-xmas-celebration .ctc-xmas-party-x{width:34px;height:34px;font-size:24px;right:14px;top:14px}
  #ctc-xmas-celebration .ctc-xmas-party-layout{grid-template-columns:1fr;gap:10px}
  #ctc-xmas-celebration .ctc-xmas-party-portrait{max-width:270px;width:74%;justify-self:center}
  #ctc-xmas-celebration .ctc-xmas-party-portrait img{max-height:30dvh}
  #ctc-xmas-celebration .ctc-xmas-party-signed{font-size:15px;margin-top:-2px}
  #ctc-xmas-celebration .ctc-xmas-party-signed span{display:inline}
  #ctc-xmas-celebration .ctc-xmas-party-content{align-items:center;text-align:center}
  #ctc-xmas-celebration h2{font-size:clamp(36px,10vw,61px);margin:7px 0 3px}
  #ctc-xmas-celebration .ctc-xmas-party-tally{font-size:clamp(65px,15vw,95px);line-height:.95}
  #ctc-xmas-celebration .ctc-xmas-party-tally-label{font-size:11px;margin:3px 0 10px}
  #ctc-xmas-celebration .ctc-xmas-party-stats{gap:8px}
  #ctc-xmas-celebration .ctc-xmas-party-stats>div{padding:9px 6px}
  #ctc-xmas-celebration .ctc-xmas-party-stats strong{font-size:clamp(29px,8vw,42px);margin:4px 0 3px}
  #ctc-xmas-celebration #ctc-xmas-celebrate-hearts{justify-content:center}
  #ctc-xmas-celebration #ctc-xmas-celebrate-message{font-size:17px;margin:13px 0}
  #ctc-xmas-celebration .ctc-xmas-party-next{min-height:48px;font-size:18px;padding:10px}
}
@media(max-height:600px) and (orientation:landscape){
  #ctc-xmas-celebration .ctc-xmas-party{padding:24px 28px}
  #ctc-xmas-celebration .ctc-xmas-party-top{margin-bottom:12px}
  #ctc-xmas-celebration h2{font-size:clamp(33px,5.2vw,64px);margin:5px 0}
  #ctc-xmas-celebration .ctc-xmas-party-tally{font-size:clamp(47px,8vw,100px)}
  #ctc-xmas-celebration .ctc-xmas-party-tally-label{margin:2px 0 9px}
  #ctc-xmas-celebration .ctc-xmas-party-stats>div{padding:8px 10px}
  #ctc-xmas-celebration .ctc-xmas-party-stats strong{font-size:clamp(22px,3.9vw,40px);margin:4px 0}
  #ctc-xmas-celebration #ctc-xmas-celebrate-message{font-size:16px;margin:11px 0}
  #ctc-xmas-celebration .ctc-xmas-party-next{min-height:42px;padding:9px 12px;font-size:16px}
}
