.xmas-dialog{position:fixed!important;inset:0!important;width:100vw!important;max-width:none!important;height:100dvh!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#614027;color:#49351f;overflow:hidden}.xmas-dialog::backdrop{background:#281b14}.xmas-scene{height:100%;display:flex;flex-direction:column;padding:max(12px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));box-sizing:border-box;background:linear-gradient(180deg,#25150b88,transparent 40%),url('assets/generated/christmas267/christmas-market.webp') center/cover no-repeat}.xmas-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;color:#fff7e8;text-shadow:0 2px 4px #2b170e}.xmas-header small{font-size:10px;letter-spacing:1.3px;font-weight:800}.xmas-header h1{font:700 clamp(24px,3.5vw,40px)/1.1 Georgia,serif;margin:3px 0}.xmas-header p{font-size:12px;margin:4px 0 0}.xmas-header-actions{display:flex;align-items:center;gap:12px}.xmas-seals{display:inline-flex;gap:6px;align-items:center;padding:8px 12px;background:#fff1d8f2;color:#794b18;border:1px solid #e4b872;border-radius:24px;font-weight:800;text-shadow:none}.xmas-seals small{letter-spacing:0}.xmas-close{width:44px;height:44px;border-radius:50%;border:1px solid #e3ca9f;background:#fff5df;color:#633b20;font:30px/1 Georgia;cursor:pointer}.xmas-tabs{display:flex;gap:6px;margin:12px 0 0;width:max-content;max-width:100%;padding:4px;background:#fff2dbe8;border:1px solid #fff2d9;border-radius:24px}.xmas-tabs button{border:0;padding:10px 18px;border-radius:20px;background:transparent;color:#644324;font:700 13px/1.2 system-ui;white-space:nowrap;cursor:pointer}.xmas-tabs [aria-current=page]{background:#944134;color:#fff6e6;box-shadow:0 2px 5px #5c2f1b33}.xmas-status{margin:6px 0;font-size:13px;color:#fff8eb;text-shadow:0 1px 4px #28180e;min-height:18px}.xmas-content{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;padding:4px 3px 16px;scrollbar-width:thin;scrollbar-color:#b49566 transparent;max-width:1100px;width:100%;margin:0 auto;box-sizing:border-box}.xmas-paper{background:#fff6e8f5;border:1px solid #ead3af;border-radius:20px;padding:20px;box-shadow:0 6px 16px #3f271d25;color:#49351f}.xmas-paper h2{font:700 24px/1.15 Georgia,serif;margin:5px 0 10px}.xmas-paper p{font:15px/1.5 system-ui;margin:8px 0 14px}.xmas-paper small{font:700 10px/1.35 system-ui;letter-spacing:.6px;color:#815b36}.xmas-story-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:18px;max-width:920px;margin:15px auto}.xmas-guide{display:flex;gap:14px;align-items:center}.xmas-guide>img{width:88px;height:100px;object-fit:contain;filter:drop-shadow(0 3px 3px #714c2722)}.xmas-progress{display:flex;gap:12px;align-items:center;margin:16px 0;font-size:12px}.xmas-progress progress{flex:1;min-width:0;height:12px;accent-color:#b3563f}.xmas-prize{display:flex;align-items:center;gap:12px;font-size:14px;min-height:70px}.xmas-prize img{width:70px;height:70px;object-fit:contain}.xmas-prize span{color:#916a38;white-space:nowrap}.xmas-primary,.xmas-gem{display:block;width:100%;min-height:44px;padding:12px 14px;border:1px solid #b77d4e;border-radius:12px;background:linear-gradient(#b56643,#914331);color:#fff9e9;font:750 14px/1.3 system-ui;box-shadow:inset 0 1px #ffffff44,0 3px 5px #713e2422;cursor:pointer;margin-top:12px}.xmas-gem{background:linear-gradient(#8a638d,#634069);border-color:#917193}.xmas-primary:disabled,.xmas-gem:disabled{background:#e3d7c3;color:#857461;box-shadow:none;border-color:#cbb89b;cursor:default}.xmas-text{display:block;margin:12px auto 0;padding:7px 12px;border:0;background:#fff8e9e0;border-radius:12px;color:#80462d;font:700 13px system-ui;cursor:pointer}.xmas-daily{text-align:center}.xmas-daily>small{display:block}.xmas-present-art{height:145px;width:100%;object-fit:contain;filter:drop-shadow(0 8px 6px #815b2220)}.xmas-daily>strong{display:block;margin:10px}.xmas-intro{font-size:14px;line-height:1.4;background:#fff6e8ed;border:1px solid #ecd4b2;border-radius:12px;padding:10px 14px;margin:0 0 14px}.xmas-orders{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.xmas-orders .xmas-paper{padding:16px}.xmas-orders .xmas-guide{gap:8px}.xmas-orders .xmas-guide img{width:64px;height:76px}.xmas-orders h2{font-size:21px}.xmas-ingredients{list-style:none;margin:12px 0;padding:0}.xmas-ingredients li{display:flex;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid #d7bf9b;font-size:14px}.xmas-ingredients li>span{font-size:26px}.xmas-ingredients strong{margin-left:auto;color:#925036}.xmas-ingredients .ready strong{color:#56603b}.xmas-decor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.xmas-decor{display:grid;grid-template-columns:130px 1fr;gap:14px;align-items:center;padding:16px}.xmas-art{height:190px;display:flex;align-items:center;justify-content:center}.xmas-art img{max-width:100%;max-height:100%;object-fit:contain;filter:drop-shadow(0 6px 5px #71502225)}.xmas-decor h2{font-size:21px}.xmas-decor p{font-size:13px}.xmas-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.xmas-calendar button{padding:10px;display:grid;justify-items:center;position:relative;min-height:120px;font-family:system-ui;cursor:pointer}.xmas-calendar b{justify-self:start;color:#794927}.xmas-calendar img{width:100%;height:66px;object-fit:contain}.xmas-calendar span{font-size:11px;color:#846748}.xmas-calendar .today{border:2px solid #a65c32;box-shadow:0 0 14px #ffcd733d}.xmas-calendar .opened{background:#ede2cfea}.xmas-calendar .opened img{opacity:.35}.xmas-confirm{position:absolute;inset:0;background:#21160cc7;backdrop-filter:blur(5px);display:grid;place-items:center;padding:16px;z-index:2}.xmas-confirm section{max-width:360px;max-height:calc(100dvh - 64px);overflow-y:auto;text-align:center}.xmas-confirm img{width:120px;height:120px;object-fit:contain}.xmas-hud{position:relative}.xmas-hud .hud-painted-art{object-fit:contain!important}.xmas-dialog button:focus-visible{outline:3px solid #e2a240;outline-offset:2px}.xmas-content button,.xmas-tabs button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
@media(max-width:720px){.xmas-scene{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}.xmas-header h1{font-size:25px}.xmas-header-actions{gap:6px}.xmas-seals{padding:7px 10px;font-size:13px}.xmas-seals small{display:none}.xmas-tabs{width:100%;box-sizing:border-box;gap:2px}.xmas-tabs button{flex:1;min-width:0;padding:10px 4px;font-size:11px}.xmas-story-grid{grid-template-columns:1fr;gap:12px;margin:2px 0}.xmas-paper{padding:16px}.xmas-paper p{font-size:14px}.xmas-orders{grid-template-columns:1fr}.xmas-orders article{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.xmas-orders .xmas-ingredients{margin:0}.xmas-orders .xmas-primary{grid-column:1/-1}.xmas-decor-grid{grid-template-columns:1fr}.xmas-decor{grid-template-columns:105px 1fr;gap:10px}.xmas-art{height:170px}.xmas-calendar{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.xmas-calendar button{min-height:115px}.xmas-daily{display:grid;grid-template-columns:110px 1fr;gap:0 12px;align-items:center;text-align:left}.xmas-daily>.xmas-present-art{grid-column:1;grid-row:1/7;width:110px;height:145px}.xmas-daily>h2,.xmas-daily>p,.xmas-daily>small,.xmas-daily>strong{grid-column:2;margin:3px 0}.xmas-daily>.xmas-primary,.xmas-daily>.xmas-text{grid-column:1/-1;text-align:center}.xmas-daily>h2{font-size:21px}}
@media(max-height:500px) and (min-width:721px){.xmas-header h1{font-size:25px}.xmas-tabs{margin-top:6px}.xmas-tabs button{padding:8px 15px}.xmas-status{margin:4px 0}.xmas-story-grid{margin-top:0;gap:12px}.xmas-paper{padding:14px}.xmas-guide img{width:64px;height:68px}.xmas-present-art{height:85px}.xmas-paper p{font-size:13px}.xmas-calendar{grid-template-columns:repeat(10,minmax(0,1fr))}.xmas-calendar button{min-height:100px}.xmas-calendar img{height:44px}}
@media(prefers-reduced-motion:reduce){.xmas-dialog *{scroll-behavior:auto!important}}

/* Keep ingredient quantities readable beside long basket titles on phones. */
.xmas-ingredients strong{white-space:nowrap;flex-shrink:0}
@media(max-width:480px){.xmas-orders article{grid-template-columns:minmax(0,1fr)}.xmas-orders .xmas-guide{min-width:0}.xmas-orders .xmas-guide>div{min-width:0}.xmas-orders h2{font-size:20px;overflow-wrap:anywhere}.xmas-orders .xmas-ingredients{margin-top:8px}.xmas-orders .xmas-ingredients li{padding:9px 0}.xmas-orders .xmas-ingredients li>span{flex-shrink:0}}

.xmas-listen{width:36px;height:36px;border:1px solid #fff0ce;border-radius:50%;background:#fff5dfe8;font-size:19px;cursor:pointer}.xmas-header-actions{gap:8px}

/* Keep the complete bundle artwork and both choices in view on short screens. */
.xmas-confirm{box-sizing:border-box}
.xmas-confirm section{box-sizing:border-box;max-height:calc(100dvh - 32px);overscroll-behavior:contain;touch-action:pan-y}
@media(orientation:landscape) and (max-height:500px) and (min-width:600px){
 .xmas-confirm section{width:min(640px,100%);max-width:640px;display:grid;grid-template-columns:110px minmax(0,1fr);gap:4px 16px;padding:16px;text-align:left}
 .xmas-confirm section>img{grid-column:1;grid-row:1/7;align-self:center;width:110px;height:150px}
 .xmas-confirm section>:not(img){grid-column:2;min-width:0}
 .xmas-confirm section>h2{font-size:22px;margin:0 0 4px}
 .xmas-confirm section>p{font-size:13px;line-height:1.35;margin:3px 0}
 .xmas-confirm section>button{margin:6px 0 0;min-height:40px;padding:9px 12px;text-align:center}
}

.xmas-seals{white-space:nowrap;flex-shrink:0}.xmas-header>div:first-child{min-width:0}.xmas-header-actions{flex-shrink:0}@media(max-width:720px){.xmas-header h1{font-size:21px}.xmas-header-actions{gap:6px}.xmas-close{width:36px;height:36px}.xmas-listen{width:32px;height:32px;font-size:17px}.xmas-guide>img{width:72px;height:85px}.xmas-seals{padding:7px 9px}}@media(max-height:500px) and (min-width:721px){.xmas-header>div:first-child>small{display:none}.xmas-header h1{display:inline;margin:0 12px 0 0}.xmas-header p{display:inline;font-size:11px}.xmas-header{min-height:38px}.xmas-scene{padding-top:max(8px,env(safe-area-inset-top))}.xmas-status{font-size:12px;min-height:15px}.xmas-tabs{margin-top:4px}}

@media(max-height:500px) and (min-width:721px){.xmas-chapter .xmas-guide>img{width:55px;height:60px}.xmas-chapter h2{font-size:20px}.xmas-chapter p{font-size:12px;line-height:1.35;margin:5px 0}.xmas-progress{margin:8px 0}.xmas-prize{min-height:44px;font-size:12px}.xmas-prize img{width:44px;height:44px}.xmas-primary{min-height:40px;padding:9px 12px;margin-top:8px}.xmas-daily{display:grid;grid-template-columns:90px 1fr;gap:0 10px;align-items:center;text-align:left}.xmas-daily>.xmas-present-art{grid-column:1;grid-row:1/6;width:90px;height:110px}.xmas-daily>h2,.xmas-daily>p,.xmas-daily>small,.xmas-daily>strong{grid-column:2;margin:3px 0}.xmas-daily>h2{font-size:20px}.xmas-daily>p{font-size:12px;line-height:1.3}.xmas-daily>.xmas-primary,.xmas-daily>.xmas-text{grid-column:1/-1;text-align:center}.xmas-daily>.xmas-text{margin-top:4px}}

/* Seasonal visibility wins over the shared painted-icon display rule. */
#christmas-button[hidden]{display:none!important}
#christmas-button{flex:0 0 auto}
