html.coffee-is-loading,html.coffee-is-loading body{background:#172b26!important}
#coffee-loading{position:fixed;inset:0;z-index:2147483000;display:grid;grid-template-columns:minmax(0,1fr);place-items:center;overflow:hidden;background:#172b26;color:#efdab0;font-family:Georgia,serif;isolation:isolate}
#coffee-loading[hidden]{display:none!important}
.coffee-loading-scene{position:relative;width:min(1160px,100vw,150vh);aspect-ratio:3/2;image-rendering:pixelated}
.coffee-loading-scene:before{content:'';position:absolute;inset:0;background:url('../assets/main-menu/loading-shelf.png') center/100% 100% no-repeat;mask-image:radial-gradient(ellipse 74% 75% at 50% 48%,#000 56%,transparent 83%);pointer-events:none}
#coffee-loading.load-leaving{opacity:0;pointer-events:none;transition:opacity .2s linear}
.coffee-loading-heading{position:absolute;top:4%;left:10%;right:10%;text-align:center}
#coffee-loading h1{font-size:clamp(20px,3.2vw,34px);font-weight:400;letter-spacing:.04em;margin:0 0 10px;color:#f4e5c2}
#coffee-loading-description{margin:0;font-size:clamp(12px,1.5vw,16px);color:#c5c5a3;line-height:1.4}
.coffee-loading-bag{position:absolute;bottom:50%;width:19%;height:36%;background-image:url('../assets/furniture/biscuit-house.png');background-repeat:no-repeat;background-size:300% 100%;transform-origin:50% 95%;opacity:0;transform:translate3d(0,-35px,0) rotate(-5deg);transition:transform .48s cubic-bezier(.22,.8,.32,1.12),opacity .25s;image-rendering:pixelated}
#coffee-loading-left{left:18%;background-position:0 0;opacity:1;transform:none}
#coffee-loading-centre{left:41%;background-position:50% 0;width:20%;height:37%}
#coffee-loading-right{left:65%;background-position:100% 0}
#coffee-loading[data-step="2"] #coffee-loading-centre,#coffee-loading[data-step="3"] #coffee-loading-centre,#coffee-loading[data-step="3"] #coffee-loading-right{opacity:1;transform:translate3d(0,0,0) rotate(0)}
.coffee-loading-bag.seven-roads{background-image:url('../maps/velmora/biscuit-seven-roads.png');background-position:0 0}
.coffee-loading-bag.custom-bag{background:none;width:21%}
.coffee-loading-bag canvas{display:block;width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
.coffee-loading-tag{position:absolute;left:34%;top:62%;width:31%;height:9%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#513922;text-align:center}
#coffee-loading-stage{font-size:clamp(10px,1.55vw,17px);line-height:1.1;margin:0}
#coffee-loading-progress{appearance:none;width:77%;height:5px;border:0;background:#bba57c;color:#4d7157;border-radius:0}
#coffee-loading-progress::-webkit-progress-bar{background:#bba57c}
#coffee-loading-progress::-webkit-progress-value{background:#4d7157}
#coffee-loading-progress::-moz-progress-bar{background:#4d7157}
.coffee-loading-cup{position:absolute;left:85%;bottom:50%;width:7%;aspect-ratio:1;background:url('../assets/main-menu/coffee-controls.png') 0 0/300% 100%;opacity:0;transition:opacity .16s;image-rendering:pixelated}
.load-done .coffee-loading-cup{opacity:1}
.coffee-loading-steam{position:absolute;left:39%;bottom:88%;width:3px;height:10px;background:#eedec7;box-shadow:8px -4px #eedec7;opacity:.45;animation:coffee-steam 1.8s steps(6) infinite;will-change:transform,opacity}
@keyframes coffee-steam{to{transform:translate3d(3px,-14px,0);opacity:0}}
.coffee-loading-paw-mask{position:absolute;left:77%;bottom:45%;width:6%;height:18%;overflow:hidden;pointer-events:none}
#coffee-loading-paw{position:absolute;width:90%;height:auto;top:100%;image-rendering:pixelated;transform:translate3d(0,0,0);will-change:transform}
.has-cat[data-step="3"] #coffee-loading-paw{animation:coffee-paw 7s 1s infinite}
.has-cat[data-step="3"] #coffee-loading-right{animation:coffee-nudge 7s 1s infinite}
@keyframes coffee-paw{0%,8%,100%{transform:translate3d(0,0,0)}20%,30%{transform:translate3d(0,-80%,0)}45%{transform:translate3d(0,0,0)}}
@keyframes coffee-nudge{0%,25%,100%{rotate:0deg}30%,40%{rotate:-3deg}55%{rotate:0deg}}
#coffee-loading-retry{position:absolute;bottom:11%;left:50%;transform:translateX(-50%);padding:9px 24px;background:#f2debb;border:3px ridge #ab7950;color:#382b20;font:16px Georgia,serif}
#coffee-loading-retry[hidden]{display:none}
.load-error #coffee-loading-description{color:#ffe1bd}.load-error .coffee-loading-tag{visibility:hidden}
@media(max-width:550px){.coffee-loading-scene{width:140vw;max-width:none;flex:none}.coffee-loading-heading{left:19%;right:19%;top:-8%}.coffee-loading-tag{gap:4px}#coffee-loading-stage{font-size:11px}#coffee-loading h1{font-size:23px}#coffee-loading-description{font-size:12px}}
@media(prefers-reduced-motion:reduce){#coffee-loading *{animation:none!important;transition:none!important}.coffee-loading-bag{transform:none}}
