#winter-cache, #winter-cache * { box-sizing:border-box; }
#winter-cache [hidden],#winter-cache-shop [hidden] { display:none !important; }
#winter-cache {
    width:100%; max-width:700px; margin:0 auto; padding:0; color:#e9e1cf; text-align:left;
    font:15px/1.4 Tahoma,Arial,sans-serif;
}
.wc h1,.wc h2,.wc h3,.wc p { margin:0; }
.wc h1,.wc h2,.wc h3 { color:#ffe3a5; font-family:Georgia,serif; font-weight:normal; text-shadow:0 2px 3px #050b0d; }
.wc h2 { font-size:23px; line-height:1.16; }
.wc h3 { font-size:19px; line-height:1.2; }
.wc button,.wc a { touch-action:manipulation; }
.wc button { cursor:pointer; }
.wc button:disabled { cursor:default; }
.wc button:focus-visible,.wc a:focus-visible,.wc summary:focus-visible { outline:2px solid #ffdf78; outline-offset:2px; }
.wc-header {
    display:flex; align-items:center; gap:12px; min-height:96px; padding:8px 14px;
    border-bottom:1px solid #ab8c52;
    background:linear-gradient(90deg,rgba(18,39,50,.94) 5%,rgba(21,41,50,.74) 50%,rgba(24,38,49,.16)),url('../images/event/year/banner.webp') 65% 43%/cover;
}
.wc-header img { flex:none; object-fit:contain; filter:drop-shadow(0 2px 3px #071018); }
.wc-header h1 { font-size:29px; line-height:1.12; text-shadow:0 2px 4px #0b1720; }
.wc-header span,.wc-summary,#wc-cleared,.wc-meter,.wc-reserve-wrap>span,.wc-gift small { color:#b8cfd5; font-size:13px; }
.wc .wc-back { align-self:flex-start; margin-left:auto; flex:none; display:grid; place-items:center; width:42px; height:42px; padding:0; border-radius:50%; color:#ffe0a1; font:28px/1 Georgia,serif; text-decoration:none; }
.wc-wrap { padding:0 14px 8px; }
.wc-summary,.wc-line,.wc-play-head,.wc-meter,.wc-gift,.wc-reserve-wrap { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.wc-summary { min-height:35px; color:#c4d7d9; font-variant-numeric:tabular-nums; }
.wc-summary span:empty,.wc #wc-status:empty { display:none; }
.wc #wc-status:not(:empty) { padding:8px 0; color:#ffe0a5; }
.wc-panel,.wc-stock,.wc-dock { min-height:0; text-align:left; }
.wc-panel { padding:14px; }
.wc-panel p { margin:6px 0 8px; }
.wc-progress { height:6px; overflow:hidden; border:1px solid #6f5a37; border-radius:3px; background:#050e12; }
.wc-progress i { display:block; height:100%; background:linear-gradient(#ffe9a9,#cb8d37 65%,#99651b); }
.wc .wc-btn { display:inline-flex; align-items:center; justify-content:center; min-width:0; min-height:40px; margin:0; padding:4px 17px; border:0; background-size:auto 100%; text-decoration:none; white-space:nowrap; }
.wc .wc-primary { width:152px; min-height:46px; font-size:14px; padding:4px 16px; background-size:100% 100%; }
.wc .wc-btn:not(:disabled):hover { filter:brightness(1.15); }
.wc .wc-btn:disabled { opacity:.62; }
.wc .wc-link { display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:0 5px; color:#efce91; background:transparent; border:0; text-decoration:underline; text-underline-offset:3px; }
#winter-cache-shop { box-sizing:border-box; padding:16px 12px; color:#ede2ce; text-align:center; }
#winter-cache-shop h1 { font-size:24px; line-height:1.15; }
#winter-cache-shop p { margin:8px 0; line-height:1.4; }
#winter-cache-shop p:last-child { margin-bottom:0; }
#winter-cache-shop button { -webkit-appearance:none; appearance:none; border:0; }
#winter-cache-shop button:focus,
#winter-cache-shop a.ssilki1:focus,#winter-cache-shop a.ssilki3:focus {
    outline:none; text-decoration:underline; text-underline-offset:3px; filter:brightness(1.2);
}
#winter-cache-shop button:focus:not(:focus-visible),
#winter-cache-shop a.ssilki1:focus:not(:focus-visible),#winter-cache-shop a.ssilki3:focus:not(:focus-visible) { text-decoration:none; filter:none; }
.wc-shop-packs,.wc-shop-methods { display:grid; gap:6px; margin:12px auto; max-width:440px; }
.wc-shop-packs { grid-template-columns:repeat(2,minmax(0,1fr)); }
.wc-shop-methods { max-width:310px; }
#winter-cache-shop .wc-shop-packs .wc-btn,#winter-cache-shop .wc-shop-methods .wc-btn {
    flex-direction:column; height:auto; min-height:54px; padding:5px 12px; line-height:1.15; white-space:normal;
}
#winter-cache-shop .wc-shop-packs .wc-btn { padding-left:5px; padding-right:5px; }
.wc-shop-packs span,.wc-shop-methods span { margin-top:3px; color:#ffe3a6; font-size:12px; }
.wc-shop-selection strong { color:#ffe3a6; }
.wc-play-head { margin-bottom:5px; }
.wc-play-head > div { display:flex; align-items:center; gap:4px; }
.wc-field { padding:8px 10px; border:1px solid #70664b; border-radius:5px; background:linear-gradient(150deg,rgba(19,43,53,.73),rgba(12,31,40,.88)),url('../images/event/year/square.webp?v=2') center/cover; }
.wc-meter { line-height:1.25; margin:0 0 6px; font-variant-numeric:tabular-nums; }
.wc-meter b,.wc-meter strong { color:#e5e8df; font-weight:normal; }
.wc-board { position:relative; isolation:isolate; margin:8px auto 4px; width:100%; max-width:490px; }
.wc-tile,.wc-slot.is-filled {
    border:1px solid #d9be84; border-radius:11%; background:linear-gradient(145deg,#fff1d0,#ddc292 70%,#bda679);
    box-shadow:inset 0 0 0 1px #ffeed0,0 2px 0 #695538,0 3px 3px #0009;
}
.wc .wc-tile { display:block; position:absolute; padding:0; margin:0; line-height:1; }
.wc-tile:disabled.is-covered { filter:brightness(.6) saturate(.68); }
.wc-tile:not(:disabled):hover { border-color:#ffedb6; }
.wc .wc-guide-tile::after { content:""; position:absolute; left:1px; right:1px; top:1px; bottom:1px; border:3px solid #ffdc64; border-radius:inherit; box-shadow:inset 0 0 0 2px #684817; pointer-events:none; }
.wc .wc-tile:focus-visible { outline-offset:0; box-shadow:inset 0 0 0 3px #086878; }
.wc-art { display:block; width:92%; height:92%; margin:4%; background-image:url('../images/event/year/cache-tiles.webp?v=2'); background-repeat:no-repeat; background-size:400% 400%; pointer-events:none; }
.wc-dock { min-width:0; padding:8px 10px 10px; margin:8px 0 0; }
.wc-dock .wc-meter,.wc-tray { max-width:438px; margin-left:auto; margin-right:auto; }
.wc-tray { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; }
.wc-slot { display:block; position:relative; box-sizing:border-box; padding:0; margin:0; border-radius:12%; border:1px solid #596e70; background:#0a2028; box-shadow:inset 0 2px 4px #071418; }
.wc-slot::before { content:""; display:block; padding-top:100%; }
.wc-slot .wc-art { position:absolute; left:0; top:0; }
.wc-reserve-wrap { justify-content:center; margin:5px 0; min-height:44px; }
.wc-reserve-wrap b { color:#f5dfb3; font-variant-numeric:tabular-nums; }
#wc-reserve { display:flex; gap:4px; }
#wc-reserve .wc-slot { width:44px; height:44px; }
#wc-reserve .wc-slot:not(.is-filled) { border-style:dashed; }
.wc-stock { margin:2px 0 0; padding:10px 14px 14px; }
.wc-stock .wc-line { margin-bottom:7px; }
.wc-boosters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
.wc .wc-booster { display:block; position:relative; padding:0 0 2px; border:0; background:none; color:#f5e2b7; font:14px/1.25 Georgia,serif; text-shadow:0 1px 2px #000; }
.wc-booster + .wc-booster { box-shadow:-1px 0 0 rgba(183,151,87,.25); }
.wc-booster i { display:block; width:52px; height:52px; margin:0 auto 5px; position:relative; border-radius:6px; }
.wc-booster i::before { content:""; position:absolute; inset:2px; background:url('../images/event/year/cache-boosters.webp') left center/300% 100% no-repeat; }
.wc-booster[data-action="undo"] i::before { background-position:center; }
.wc-booster[data-action="shuffle"] i::before { background-position:right center; }
.wc-booster b { position:absolute; left:calc(50% + 8px); top:33px; min-width:20px; padding:0 3px; border:1px solid #b2a17c;
    border-radius:4px; background:#14232b; color:#fff3d5; font:bold 12px/17px Tahoma,Arial,sans-serif; }
.wc-kit-playing .wc-booster:disabled i { filter:saturate(.5) brightness(.78); }
.wc-booster:not(:disabled):hover i, .wc-booster:not(:disabled):focus i { border-color:#ffe1a3; box-shadow:0 0 5px #ffc66c99; }
.wc .wc-trophy { display:inline-flex; align-items:center; gap:8px; margin:4px 0; color:#ffdf95; }
.wc-gift { padding:9px 4px; gap:8px; }
.wc-gift-icon { flex:none; width:38px; height:38px; background:url('../images/event/year/cache-tiles.webp?v=2') 33.333% 0/400% 400% no-repeat; }
.wc-gift > span { flex:1; color:#ffdfa6; font:17px/1.25 Georgia,serif; }
.wc-gift small { display:block; margin-top:2px; font:12px/1.3 Tahoma,Arial,sans-serif; }
.wc-overview-head { margin:12px 1px 6px; }
.wc-overview-head h2 { margin-bottom:2px; }
.wc-levels,.wc-prizes { list-style:none; padding:0; margin:0; }
.wc-levels { margin-top:8px; padding:12px 9px; }
.wc-stage,.wc-prize { margin:0; list-style:none; }
.wc-stage { display:grid; grid-template-columns:122px minmax(0,1fr); align-items:center; column-gap:8px; padding:8px 10px; border-bottom:1px solid rgba(186,153,91,.33); }
.wc-stage:last-child { border-bottom:0; }
.wc-stage:nth-child(even) { background:rgba(48,62,57,.19); }
.wc-stage-info h3 { margin-bottom:3px; font-size:18px; white-space:nowrap; }
.wc-level-medal { display:inline-grid; place-items:center; width:30px; height:30px; vertical-align:middle; background:url('../images/event/year/level-medal.webp') center/contain no-repeat; color:#ffebbb; font:bold 14px/1 Georgia,serif; }
.wc-stage-status,.wc-stage-count { display:block; font:12px/1.35 Tahoma,Arial,sans-serif; color:#b3c5ca; }
.wc-stage-count { color:#d5dfdf; margin-top:2px; font-variant-numeric:tabular-nums; }
.wc-done .wc-stage-status { color:#a8dba5; }
.wc-stage.wc-current { grid-template-columns:minmax(0,1fr) auto; row-gap:8px; padding:12px;
    background:linear-gradient(95deg,rgba(13,29,38,.97),rgba(14,32,42,.77) 58%,rgba(17,32,41,.54)),url('../images/event/year/square.webp?v=2') 53% 66%/cover;
    border:1px solid #ac884c; box-shadow:inset 0 0 0 2px rgba(12,22,28,.8); }
.wc-current .wc-stage-info h3 { font-size:22px; }
.wc-current .wc-stage-status { color:#f1d39b; }
.wc-current .wc-stage-count { display:inline; }
.wc-current .wc-stage-status { display:inline; margin-right:8px; }
.wc-current .wc-primary { grid-column:2; grid-row:1; }
.wc-prizes { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; align-items:center; }
.wc-current .wc-prizes { grid-column:1/-1; grid-row:2; justify-content:flex-start; }
.wc-prize { display:flex; justify-content:center; align-items:center; min-width:0; padding:0; text-align:center; }
.wc-prize-face { position:relative; display:block; width:45px; height:45px; padding:2px; border-radius:5px; }
.wc-prize-face img { width:100%; height:100%; display:block; object-fit:contain; }
.wc-prize-face b { position:absolute; bottom:-1px; right:-2px; min-width:15px; padding:0 3px; border:1px solid #78705b; border-radius:3px;
    background:#102026; color:#ffe3a4; font:600 11px/14px Tahoma,Arial,sans-serif; white-space:nowrap; }
.wc-stage[data-prizes="5"] { grid-template-columns:minmax(0,1fr); row-gap:9px; container:wc-final / inline-size; }
.wc-stage[data-prizes="5"] .wc-stage-info { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.wc-stage[data-prizes="5"] .wc-stage-count { margin-left:auto; }
.wc-stage[data-prizes="5"] .wc-prizes { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.wc-stage .wc-artifact { grid-column:1/-1; gap:9px; padding-bottom:7px; border-bottom:1px solid rgba(186,153,91,.25); }
.wc-artifact .wc-prize-face { flex:none; }
.wc-attributes, .wc-attributes > span { display:inline-flex; align-items:center; }
.wc-attributes { gap:8px; }
.wc-attributes > span { gap:2px; white-space:nowrap; color:#ffe4a6; font:bold 13px/1.3 Georgia,serif; }
.wc-attributes img { display:block; width:17px; height:auto; }
.wc-current[data-prizes="5"] .wc-primary { grid-column:1/-1; grid-row:auto; justify-self:center; }
.wc-panel { margin-top:8px; }
.wc-panel ol { list-style:none; padding:0; margin:6px 0 0; }
.wc-panel li { display:flex; gap:12px; justify-content:space-between; padding:5px 0; border-top:1px solid #40545c; }
.wc-panel li span:last-child { text-align:right; color:#f4dcae; }
html.wc-ranking-open, body.wc-ranking-open { overflow:hidden; }
#wc-ranking { position:fixed; inset:0; top:0; right:0; bottom:0; left:0; z-index:100010; display:flex; justify-content:center; align-items:center; max-width:700px; margin:0 auto; padding:12px; background:rgba(3,9,14,.84); }
.wc-ranking-window { display:flex; flex-direction:column; width:100%; max-width:460px; max-height:100%; min-height:0; margin:0; padding:16px 19px; box-sizing:border-box; text-align:left; }
.wc-ranking-window header { flex:none; border-bottom:1px solid #77613d; padding-bottom:6px; }
.wc-ranking-window ol { min-height:0; margin:0; padding:0; overflow:auto; overscroll-behavior:contain; list-style:none; }
.wc-ranking-window li { display:flex; justify-content:space-between; gap:12px; padding:8px 2px; margin:0; border-bottom:1px solid #514a36; color:#e9dcc8; overflow-wrap:anywhere; }
.wc-ranking-window li span:last-child { flex:none; }
.wc-ranking-self { background:rgba(159,125,54,.24); }
#wc-ranking-status:not(:empty) { padding:12px 0; }
#wc-ranking-retry { align-self:center; }
.wc-header { position:relative; }
.wc-help { align-self:flex-start; margin-left:auto; }
.wc-help summary { cursor:pointer; list-style:none; }
.wc-help summary::-webkit-details-marker { display:none; }
.wc-help + .wc-back { margin-left:0; }
.wc-help-copy { position:absolute; z-index:30; top:calc(100% - 4px); left:6px; right:6px; padding:14px; border:1px solid #b29964;
    background:#172d36; border-radius:7px; box-shadow:0 8px 20px #071019cd; color:#e0e9e8; text-align:left; }
.wc-help-copy p { margin:8px 0; }
.wc-arrive { animation:wc-arrive .22s ease-out; }
.wc-match { animation:wc-match .34s ease-out; }
@keyframes wc-arrive { from { transform:translateY(-6px); opacity:.5; } }
@keyframes wc-match { 30% { border-color:#ffdf95; box-shadow:0 0 8px #d6bb75; } }
@media (max-width:420px) {
    .main > #winter-cache, .main > #winter-cache-shop { width:auto; margin-left:-28px; margin-right:-28px; }
    .wc-wrap { padding:0 7px 5px; }
    .wc-header { min-height:69px; gap:8px; padding:5px 8px; }
    .wc-header img { width:52px; height:52px; }
    .wc-header h1 { font-size:25px; }
    .wc .wc-back { width:44px; height:44px; }
    .wc h2 { font-size:20px; }
    .wc-field,.wc-dock { padding:6px; }
    .wc-summary { min-height:30px; }
    .wc-stage { grid-template-columns:98px minmax(0,1fr); column-gap:4px; padding:7px; }
    .wc-stage-info h3 { font-size:17px; }
    .wc-prizes { gap:6px; }
    .wc .wc-btn { min-height:44px; }
    .wc-current .wc-primary { min-height:42px; }
}
@container wc-final (min-width:490px) {
    .wc-stage[data-prizes="5"] .wc-prizes { grid-template-columns:minmax(0,1fr) repeat(4,48px); }
    .wc-stage .wc-artifact { grid-column:auto; justify-content:flex-start; padding-bottom:0; border-bottom:0; }
}
@media (max-width:365px) {
    .wc-stage[data-prizes="4"] { grid-template-columns:minmax(0,1fr); row-gap:6px; }
    .wc-stage[data-prizes="4"] .wc-stage-info { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
    .wc-stage[data-prizes="4"] .wc-stage-count { margin-left:auto; }
    .wc-stage[data-prizes="4"] .wc-prizes { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
    .wc-current[data-prizes="4"] .wc-primary { grid-column:1/-1; grid-row:auto; justify-self:center; }
}
@media (max-width:350px) {
    .wc-header { gap:5px; }
    .wc-header h1 { font-size:21px; }
    .wc-header img { width:38px; height:38px; }
    .wc-wrap { padding-left:2px; padding-right:2px; }
    .wc-field { padding-left:1px; padding-right:1px; }
    .wc-field .wc-meter { padding:0 4px; }
}
@media (min-width:600px) and (max-height:800px) { .wc-board,.wc-tray,.wc-dock .wc-meter { max-width:400px; } }
@media (prefers-reduced-motion:reduce) { .wc-arrive,.wc-match { animation:none; } }
