/* Elflympics shared Christmas UI. Artwork: Cozy Desk UI Christmas Edition demo, Werter.
   Sprites are quarter-resolution alpha WebP copies for small on-screen UI, not a replacement asset pack.
   Original 9-slice sizes L/B/R/T scaled by 0.25 and reordered to CSS T/R/B/L. */
.elf-cozy-ui{--elf-cranberry:url("cranberry-button.webp");--elf-pine:url("pine-button.webp");--elf-snow:url("snow-panel.webp");--elf-cozy-ink:#322a27;--elf-cozy-muted:#4c5552}
.elf-cozy-ui :is(button,a):is(.primary,.secondary,.assetAction,.goldButton,.menuButton){background:transparent!important;border:1px solid transparent!important;border-image:var(--elf-cranberry) 14 14 21 14 fill / 14px 14px 21px 14px / 0 stretch!important;box-shadow:none!important;border-radius:0!important;color:#fff!important;text-shadow:0 1px 2px #2b1d18;font-weight:800;min-height:52px;padding:12px 14px 17px;line-height:1.2;box-sizing:border-box}
.elf-cozy-ui :is(button,a):is(.secondary,.secondaryAction,.menuLink){border-image:var(--elf-pine) 15 15 22 15 fill / 15px 15px 22px 15px / 0 stretch!important;color:#fff!important}
.elf-cozy-ui :is(button,a):is(.primary,.secondary,.assetAction,.goldButton,.menuButton) img{filter:none}
.elf-cozy-ui :is(button,a):is(.primary,.secondary,.assetAction,.goldButton,.menuButton):not(:disabled):hover{filter:brightness(1.1)}
.elf-cozy-ui :is(button,a):is(.primary,.secondary,.assetAction,.goldButton,.menuButton):not(:disabled):active{filter:brightness(.87);transform:translateY(2px)}
.elf-cozy-ui :is(button,a):is(.primary,.secondary,.assetAction,.goldButton,.menuButton):disabled{filter:grayscale(.85);opacity:.65;cursor:not-allowed}
.elf-cozy-ui :is(button,a):is(.roundAsset,.circleButton,.close){border:0!important;border-image:none!important;border-radius:0!important;background:transparent var(--elf-pine) center / 100% 100% no-repeat!important;color:#fff!important;box-shadow:none!important;text-shadow:0 1px 2px #2b1d18}
.elf-cozy-ui :is(button,a):is(.roundAsset,.circleButton,.close):active{filter:brightness(.86);transform:translateY(2px)}
.elf-cozy-ui :is(.festivePanel,.howToPanel,.completePanel,.splashPanel,.resultPanel,.modal){
 --gold:#9c3b38;--muted:var(--elf-cozy-muted);--ink:var(--elf-cozy-ink);
 background:transparent!important;border:14px solid transparent!important;border-image:var(--elf-snow) 14 14 17 14 fill / 14px 14px 17px 14px / 0 stretch!important;
 border-radius:0!important;box-shadow:none!important;color:var(--elf-cozy-ink)!important;
}
.elf-cozy-ui :is(.festivePanel,.howToPanel,.completePanel,.splashPanel,.resultPanel,.modal) :is(h1,h2,h3,h4,legend){color:var(--elf-cozy-ink)!important;text-shadow:none!important}
.elf-cozy-ui :is(.festivePanel,.howToPanel,.completePanel,.splashPanel,.resultPanel) p,
.elf-cozy-ui .howToCopy span,.elf-cozy-ui .howToCopy strong{color:var(--elf-cozy-ink)!important}
.elf-cozy-ui .howToHeading span,.elf-cozy-ui .panelHeading span,.elf-cozy-ui .completeKicker,.elf-cozy-ui .finalTime strong,.elf-cozy-ui #loadStatus,.elf-cozy-ui #selectedMode,.elf-cozy-ui .artSelector label{color:#8f3532!important}
.elf-cozy-ui .artSelector select{background:#fff8ec;color:var(--elf-cozy-ink);border:2px solid #6c7662;border-radius:7px}
.elf-cozy-ui .artChoice{background:#fff8ec;color:var(--elf-cozy-ink);border:2px solid #6c7662}
.elf-cozy-ui .artChoice[aria-pressed=true]{outline:3px solid #a33c39}
.elf-cozy-ui .modeButtons .assetAction{min-height:58px;font-size:15px;white-space:normal}
.elf-cozy-jigsaw #howToBack{left:7px;right:auto}
.elf-cozy-jigsaw #changeMode{min-height:44px}
.elf-cozy-ui [hidden]{display:none!important}
.elf-cozy-ui :is(button,a):focus-visible{outline:2px solid #55b7e6!important;outline-offset:2px}

/* V2: host calendar, training cards, account and standings; preserve existing responsive layout. */
.elf-cozy-ui :is(.all-events button,.event-card,.feature,.profile-card,.callout,.table-wrap,.empty,.result-panel){
 background:transparent!important;border:14px solid transparent!important;
 border-image:var(--elf-snow) 14 14 17 14 fill / 14px 14px 17px 14px / 0 stretch!important;
 border-radius:0!important;box-shadow:none!important;color:var(--elf-cozy-ink)!important;
}
.elf-cozy-ui .all-events button{padding:5px 7px 8px;gap:5px;min-height:112px}
.elf-cozy-ui .all-events button.active-day .tile-header .elf-icon{background:transparent;border-radius:0}
.elf-cozy-ui .all-events button:not(:disabled):hover{filter:brightness(1.06);transform:translateY(-1px)}
.elf-cozy-ui .all-events button:disabled{opacity:.68;filter:saturate(.35)}
.elf-cozy-ui .all-events button small,.elf-cozy-ui .event-body p{color:#4c5552}
.elf-cozy-ui .event-card{padding:0;overflow:hidden}
.elf-cozy-ui .event-body{padding:10px 6px}
.elf-cozy-ui .feature{padding:12px}
.elf-cozy-ui .profile-card{padding:14px}
.elf-cozy-ui .table-wrap{padding:0;overflow:auto}
.elf-cozy-ui .callout,.elf-cozy-ui .empty,.elf-cozy-ui .result-panel{padding:8px 12px}
.elf-cozy-ui .bottom-nav .nav-mark{border:0;border-radius:0;box-shadow:none;background:transparent var(--elf-pine) center/100% 100% no-repeat;padding:9px 8px 12px}
.elf-cozy-ui .bottom-nav button.active .nav-mark{background-image:var(--elf-cranberry);outline:none;filter:brightness(1.16)}
.elf-cozy-ui .bottom-nav .nav-mark .elf-icon{background:#fff8e9;border-radius:4px}
.elf-cozy-ui #quitRace{background:transparent!important;border:1px solid transparent!important;border-image:var(--elf-cranberry) 14 14 21 14 fill / 14px 14px 21px 14px / 0 stretch!important;border-radius:0!important;padding:10px 15px 15px;min-height:45px;font-weight:800}
.elf-cozy-ui .modal .result-panel{font-weight:700}
/* Explicit mappings for the other game families' menu, dialog and navigation components.
   Do not skin gameplay tiles, puzzle pieces, steering, action controls or canvases. */
.elf-cozy-ui :is(button,a):is(.kenneyButton,.mainButton,.secondaryButton,.primaryBtn,.secondaryBtn,.modalMain,.modalAlt,.cta,.primary-button,.action-button,.menuBtn,.textBtn,.dangerBtn){
 background:transparent!important;border:1px solid transparent!important;border-image:var(--elf-cranberry) 14 14 21 14 fill / 14px 14px 21px 14px / 0 stretch!important;
 box-shadow:none!important;border-radius:0!important;color:white!important;text-shadow:0 1px 2px #2b1d18;font-weight:800;
}
.elf-cozy-ui :is(button,a):is(.secondaryButton,.secondaryBtn,.modalAlt,.mutedButton,.textBtn,.menuBtn:not(.primary),.kenneyButton.secondary,.action-button.secondary){
 border-image:var(--elf-pine) 15 15 22 15 fill / 15px 15px 22px 15px / 0 stretch!important;
}
.elf-cozy-ui :is(button,a):is(.hudIcon,.iconButton,.iconBtn,.icon-button,.hbtn,.square-link,.closeBtn,.backBtn,.gameBoxBackBtn,.pause-button,.menuControl,.navBtn,.round){
 border:0!important;border-image:none!important;border-radius:0!important;background:transparent var(--elf-pine) center/100% 100% no-repeat!important;color:white!important;box-shadow:none!important;text-shadow:0 1px 2px #2b1d18;
}
.elf-cozy-ui :is(.menuCard,.menu-card,.pause-card,.setupPanel,.handoffCard,.multiWaitCard,.finalScorePanel,.levelsPanel,.winCard,.overlay .dialog,.overlay .panel,.sheet .panel){
 background:transparent!important;border:14px solid transparent!important;border-image:var(--elf-snow) 14 14 17 14 fill / 14px 14px 17px 14px / 0 stretch!important;
 border-radius:0!important;box-shadow:none!important;color:var(--elf-cozy-ink)!important;
 --muted:var(--elf-cozy-muted);--ink:var(--elf-cozy-ink);
}
.elf-cozy-ui :is(.menuCard,.menu-card,.pause-card,.setupPanel,.handoffCard,.multiWaitCard,.finalScorePanel,.levelsPanel,.winCard,.overlay .dialog,.overlay .panel,.sheet .panel) :is(h1,h2,h3,h4,p,legend){color:var(--elf-cozy-ink)!important;text-shadow:none!important}
.elf-cozy-ui :is(.kenneyButton,.mainButton,.secondaryButton,.primaryBtn,.secondaryBtn,.modalMain,.modalAlt,.cta,.primary-button,.action-button,.menuBtn,.textBtn,.dangerBtn):disabled{filter:grayscale(.85);opacity:.65}

.elf-cozy-ui :is(button,a):focus:not(:focus-visible){outline:none!important}
.elf-cozy-ui .bottom-nav button:focus-visible .nav-mark{outline:none}
.elf-cozy-ui .entry-picture:has(input:focus-visible){outline-color:#55b7e6}
