/* Consumables reuse the rounded cream / jade / gold sky theme. */
#dragon-supply-shop,#dragon-supply-dock,#dragon-chest-objective,#dragon-ad-break{font-family:'Trebuchet MS',Arial,sans-serif;color:#173f49;box-sizing:border-box}
#dragon-supply-shop *{box-sizing:border-box}
#dragon-supply-dock[hidden],#dragon-chest-objective[hidden],.supply-reveal[hidden]{display:none!important}
#dragon-supply-shop{position:fixed;inset:0;z-index:30;background:transparent;display:grid;place-items:center;padding:20px;overscroll-behavior:contain}
#dragon-supply-shop section{width:min(920px,100%);max-height:calc(100dvh - 40px);overflow:auto;padding:24px;border:4px solid #e3eee0;border-radius:36px;background:linear-gradient(140deg,#fffaf0,#e4f0e6);box-shadow:0 9px 0 #1d46514d}
#dragon-supply-shop header{display:flex;align-items:center;gap:16px}#dragon-supply-shop h2{margin:5px 0;font-size:25px}#dragon-supply-shop header small{font-size:10px;letter-spacing:.1em}#dragon-supply-shop .supply-wallet{margin-left:auto;font-weight:bold}
#dragon-supply-shop button,#dragon-supply-dock button,#dragon-chest-objective button{font:inherit;cursor:pointer;touch-action:manipulation;border:1px solid #8fb9aa;border-radius:22px;background:linear-gradient(#c6e9d9,#7ac5af);color:#173f49;font-weight:bold;min-height:42px;box-shadow:0 4px 0 #719b8b44}
#dragon-supply-shop button:disabled,#dragon-supply-dock button:disabled{cursor:default;filter:saturate(.55);opacity:.65}
#dragon-supply-shop button:focus-visible,#dragon-supply-dock button:focus-visible,#dragon-chest-objective button:focus-visible{outline:3px solid #147e9e;outline-offset:3px}
#dragon-supply-shop [data-close]{font-size:28px;width:44px;flex:none}#dragon-supply-shop section>p{font-size:14px;line-height:1.6}#dragon-supply-shop footer{font-size:12px;margin-top:20px;line-height:1.6}
.supply-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:20px}.supply-grid article{padding:13px;border-radius:28px;background:#fffdf1;border:2px solid #d4e4d4;box-shadow:0 5px 0 #9eb7ae4d;text-align:center;display:flex;flex-direction:column;align-items:center}.supply-art{width:94px;height:94px}.supply-art img,.supply-art svg{width:100%;height:100%;object-fit:contain}.supply-grid h3{font-size:17px;margin:8px 0}.supply-grid p{font-size:12px;line-height:1.4;min-height:34px;margin:4px 0}.supply-grid small{font-weight:bold;margin:8px 0 12px}.supply-grid button{display:flex;align-items:center;justify-content:center;gap:4px;padding:5px;width:100%;margin-top:auto;background:linear-gradient(#ffe7ae,#f0c366)!important;border-color:#d4ae66!important;font-size:12px!important}.supply-grid button svg{width:30px;height:30px;flex:none}
.supply-open{display:flex;align-items:center;gap:12px;padding:4px 18px}.supply-open svg{width:48px;height:48px}.supply-reveal{margin-top:18px;padding:16px;background:#f9e8b5;border-radius:22px;text-align:center}.supply-reveal>div{display:flex;justify-content:center;gap:16px;flex-wrap:wrap}.supply-reveal span{display:grid;justify-items:center;max-width:130px;font-size:12px}.supply-reveal svg,.supply-reveal img{width:66px;height:66px;object-fit:contain}
#dragon-supply-dock{position:fixed;left:max(12px,env(safe-area-inset-left));bottom:max(16px,env(safe-area-inset-bottom));z-index:6;display:flex;gap:7px;max-width:calc(100vw - 110px);flex-wrap:wrap;pointer-events:auto}
#dragon-supply-dock button{position:relative;width:51px;height:67px;padding:4px 3px;display:grid;justify-items:center;background:linear-gradient(#fffbec,#d7eadf)}#dragon-supply-dock button.active{background:linear-gradient(#ffe7a4,#dbb153);opacity:1;filter:none}#dragon-supply-dock img,#dragon-supply-dock svg{width:42px;height:42px;object-fit:contain}#dragon-supply-dock small{font-size:12px;line-height:14px}#dragon-supply-dock kbd{position:absolute;top:2px;left:3px;min-width:15px;padding:0 3px;border:1px solid #d5e6d7;border-radius:7px;background:#fff9e8;color:#244e53;font:700 10px/13px 'Trebuchet MS',Arial,sans-serif;box-shadow:0 1px 0 #537a7140}body:not(.dragon-keyboard-controls) #dragon-supply-dock kbd{display:none}
#dragon-chest-objective{position:fixed;z-index:6;left:50%;top:148px;transform:translateX(-50%);width:clamp(230px,30vw,355px);display:flex;align-items:center;gap:10px;border:1px solid #dcebd9;border-radius:25px;background:#205763ee;padding:9px 12px;color:#fff4d9;box-shadow:0 4px 0 #183e5133}
#dragon-chest-objective>div{flex:1;min-width:0}#dragon-chest-objective strong{display:block;font-size:12px;margin-bottom:6px}#dragon-chest-objective progress{display:block;width:100%;height:8px;accent-color:#ffd172;border-radius:8px;overflow:hidden}#dragon-chest-objective .chest-progress{font-size:11px}#dragon-chest-objective time{font-size:17px;font-weight:bold}#dragon-chest-objective button{display:grid;justify-items:center;background:none;box-shadow:none;border:0;padding:0;min-width:52px;color:#ffe5a2}#dragon-chest-objective button svg{width:45px;height:45px}#dragon-chest-objective button span{font-size:9px;white-space:nowrap}#dragon-chest-objective button:disabled{cursor:default}
#dragon-ad-break{position:fixed;inset:0;z-index:80;display:flex;justify-content:center;align-items:center;flex-direction:column;gap:14px;background:#173f49f5;color:#fff4d9}.ad-spinner{width:40px;height:40px;border:4px solid #fff3;border-top-color:#f7cd7f;border-radius:50%;animation:supply-spin .9s linear infinite}@keyframes supply-spin{to{transform:rotate(360deg)}}
@media(max-width:760px){.supply-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#dragon-supply-shop{padding:10px}#dragon-supply-shop section{padding:15px;max-height:calc(100dvh - 20px)}#dragon-supply-shop h2{font-size:21px}.supply-wallet{font-size:12px}.home-navigation{gap:10px}:is(.home-navigation,.home-daily-entry) .home-nav-art{width:54px;height:54px}}
@media(max-width:540px){#dragon-chest-objective{top:auto;bottom:110px;left:12px;transform:none;width:calc(100vw - 118px);gap:6px;padding:7px 9px}#dragon-chest-objective strong{font-size:10px}#dragon-chest-objective time{font-size:13px}#dragon-chest-objective button{min-width:40px}#dragon-chest-objective button svg{width:34px;height:34px}#dragon-supply-dock{gap:4px;max-width:calc(100vw - 100px)}#dragon-supply-dock button{width:36px;height:43px;border-radius:14px}#dragon-supply-dock img,#dragon-supply-dock svg{width:28px;height:26px}#dragon-supply-dock small{font-size:10px;line-height:11px}}
@media(max-height:560px) and (min-width:541px){#dragon-chest-objective{top:107px;width:260px}#dragon-supply-dock button{width:42px;height:53px}#dragon-supply-dock img,#dragon-supply-dock svg{width:32px;height:32px}}
@media(prefers-reduced-motion:reduce){.ad-spinner{animation:none}}
#supply-loot{position:fixed;z-index:15;left:50%;top:42%;transform:translate(-50%,-50%);padding:14px 20px;border:2px solid #f2d694;border-radius:26px;background:#fff6deed;color:#173f49;font:14px 'Trebuchet MS',Arial,sans-serif;text-align:center;pointer-events:none;max-width:85vw;box-shadow:0 5px 0 #52695755}#supply-loot>div{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}#supply-loot span{display:grid;justify-items:center;font-size:11px;max-width:110px}#supply-loot svg,#supply-loot img{width:55px;height:55px;object-fit:contain}
/* Each supply has its own quantity selector and total crystal price. */
.supply-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.supply-grid article{padding:14px 12px;background:radial-gradient(ellipse at 50% 32%,#fffbea 0%,#e6f4e5 52%,#cce6dc 100%);border:2px solid #faffed;border-radius:30px;box-shadow:0 5px 0 #629b9666}
.supply-grid h3{margin:0 0 5px;color:#173f49;font-size:18px;min-height:24px}
.supply-art{width:112px;height:112px;filter:drop-shadow(0 5px 7px #547e7630)}
.supply-grid p{min-height:34px;color:#315b61}
.supply-grid small{margin:5px 0 10px;color:#315b61}
.supply-quantity{display:grid;grid-template-columns:44px minmax(20px,1fr) 44px;align-items:center;width:100%;gap:5px;border-radius:18px;background:#2966751a;margin:0 0 13px}
.supply-quantity output{font-size:26px;font-weight:bold;line-height:44px;font-variant-numeric:tabular-nums}
.supply-grid .supply-quantity button{width:44px;min-height:44px;margin:0;padding:0;font-size:29px!important;line-height:1;border-radius:16px;background:linear-gradient(#fffcf0,#cbe6d7)!important;border-color:#80b4a3!important;color:#205763}
.supply-grid .supply-buy{min-height:50px;gap:7px;font-size:23px!important;background:linear-gradient(#ffe6a6,#efbd58)!important;border:2px solid #f9d889!important;box-shadow:0 4px 0 #ac833950;color:#604218}
.supply-grid .supply-buy svg{width:34px;height:34px}
.supply-price-note{min-height:17px;margin-top:8px;font-size:11px;font-weight:bold;color:#365d5d}
@media(max-width:760px){
 #dragon-supply-shop{padding:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}
 #dragon-supply-shop section{max-height:calc(100dvh - max(10px,env(safe-area-inset-top)) - max(10px,env(safe-area-inset-bottom)));border-radius:28px;overscroll-behavior:contain;touch-action:pan-y}
 #dragon-supply-shop header{display:grid;grid-template-columns:1fr 44px;gap:4px 8px;position:sticky;top:-15px;z-index:1;background:#f0f5e9;padding:10px 0;border-radius:16px}
 #dragon-supply-shop header>div{min-width:0}#dragon-supply-shop [data-close]{grid-column:2;grid-row:1 / 3;min-height:44px}
 #dragon-supply-shop .supply-wallet{grid-column:1;margin:0;font-size:14px}#dragon-supply-shop h2{font-size:22px}
 .supply-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 10px;margin-top:15px}.supply-grid article{padding:12px 8px;border-radius:24px}.supply-grid h3{font-size:16px;min-height:38px;display:grid;align-items:center}.supply-art{width:88px;height:88px}.supply-grid p{font-size:12px;min-height:36px}.supply-grid small{font-size:11px}.supply-quantity{gap:2px}.supply-quantity output{font-size:23px}.supply-grid .supply-buy{font-size:20px!important}
}
@media(max-width:359px){#dragon-supply-shop section{padding:12px 8px}.supply-grid{gap:14px 8px}.supply-grid article{padding:10px 5px}.supply-quantity{grid-template-columns:44px minmax(16px,1fr) 44px}.supply-grid h3{font-size:15px}.supply-price-note{font-size:10px}}
