.warehouse-heading-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}#warehouseDimensions{font-size:10px;letter-spacing:.6px;white-space:nowrap}#inventory #total{display:block;font-size:11px;line-height:1.5;color:#d9c998;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}

@media(max-height:650px) and (orientation:landscape){#warehouseDimensions{font-size:9px}.warehouse-heading-actions{gap:8px}#inventory #total{font-size:10px}}
#marketButton{border-radius:6px;font-size:13px;padding:9px 15px;background:#24372f;border-color:#c4aa6b80;color:#ead29a;white-space:nowrap}@media(max-height:650px) and (orientation:landscape){#marketButton{font-size:12px;padding:8px 12px}}

/* Horizontal trading tab and borderless currency plate. */
#marketButton{min-width:142px;min-height:56px;padding:12px 26px;font-size:21px;letter-spacing:5px;text-indent:5px;color:#e2c68c;background:#162c31f5;border:1px solid #c7af77a6;border-radius:8px;box-shadow:0 7px 22px #0006}
#marketButton:hover,#marketButton[aria-expanded=true]{background:#294448;border-color:#e5c588}
.top-actions{gap:18px;align-items:center}
.top-actions .wallet{border:0;border-radius:3px;background:#0008;box-shadow:none;padding:6px 14px 6px 7px;font-size:20px;gap:10px;color:#f0dfb8}
.coin-icon{display:block;width:44px;height:44px;object-fit:contain;flex-shrink:0}
#altar.drop-ready #ring{border-color:#f7da8c;box-shadow:0 0 42px #e6c88188,inset 0 0 26px #e6c88144}
#altar.drop-ready #empty{color:#fff0b8;transform:scale(1.08)}
body.warehouse-dragging #altar{z-index:26}
@media(max-height:650px) and (orientation:landscape){#marketButton{min-width:116px;min-height:46px;padding:9px 20px;font-size:18px;letter-spacing:4px;text-indent:4px}.top-actions{gap:12px}.top-actions .wallet{font-size:17px;padding:4px 11px 4px 5px;gap:8px}.coin-icon{width:36px;height:36px}.brand h1{font-size:clamp(21px,3.5vw,32px)}}

/* Small subtitle and compact currency with a tapered translucent plate. */
.brand .brand-subtitle{display:block;margin:7px 0 0;font-size:10px;line-height:1.4;letter-spacing:3px;color:#c3c5b4;text-shadow:0 1px 5px #000b}
.top-actions .wallet{padding:3px 10px 3px 6px;font-size:10px;gap:5px;min-height:28px;border-radius:0;background:linear-gradient(110deg,#000b 0%,#0008 60%,#0003 100%);clip-path:polygon(5px 0,100% 0,calc(100% - 5px) 100%,0 100%)}
.coin-icon{width:22px;height:22px}
@media(max-height:650px) and (orientation:landscape){.brand .brand-subtitle{margin-top:4px;font-size:8px;letter-spacing:2px}.top-actions .wallet{font-size:8.5px;padding:2px 8px 2px 5px;gap:4px;min-height:22px}.coin-icon{width:18px;height:18px}}

/* Larger balance and wider item browsing area. */
.top-actions .wallet{font-size:15px;min-height:36px;padding:4px 12px 4px 7px;gap:7px}.coin-icon{width:28px;height:28px}
#marketPanel{width:min(1200px,97vw);max-width:97vw;top:56%;height:84%;max-height:84%;padding:12px 16px}
.market-title{gap:12px;padding-right:25px;flex-shrink:0;min-height:27px}.market-title>div:first-child{display:flex;align-items:baseline;gap:12px}.market-title h2{font-size:22px;margin:0}.market-title .tag{font-size:7px;letter-spacing:1.5px}
.market-wallet{display:flex;align-items:baseline;gap:8px}.market-wallet strong{font-size:21px;margin-top:0}
#marketPanel .market-intro{display:none}.market-toolbar{margin-top:7px;flex-shrink:0}.market-toolbar input,.market-toolbar select{height:32px;padding:6px 8px}.market-status{margin:6px 0;font-size:10px;flex-shrink:0}
.market-footer{margin-top:5px;padding-top:5px;flex-shrink:0}.market-footer button{padding:5px 14px;font-size:10px}.market-footer a{font-size:9px}
@media(max-height:650px) and (orientation:landscape){.top-actions .wallet{font-size:13px;min-height:30px;padding:3px 10px 3px 6px;gap:6px}.coin-icon{width:24px;height:24px}#marketPanel{top:57%;height:82%;max-height:82%;padding:8px 12px}.market-title{min-height:22px}.market-title h2{font-size:18px}.market-title .tag{display:none}.market-wallet{font-size:9px;gap:7px}.market-wallet strong{font-size:18px;margin-top:0}.market-toolbar{margin-top:5px;gap:6px}.market-toolbar input,.market-toolbar select{height:28px;padding:4px 6px;font-size:10px}.market-status{margin:4px 0;font-size:9px}.market-footer{margin-top:4px;padding-top:4px}.market-footer button{padding:3px 12px;font-size:10px}.market-footer a{font-size:8px}#closeMarket{top:3px;right:5px;font-size:22px}}

/* Match the top and bottom margins around the trading panel. */
#marketPanel{top:50%}

/* Reward size follows quality; outlines follow the transparent item silhouette. */
#offering img{transform:scale(var(--item-scale,1));transform-origin:center bottom;transition:transform .25s ease;flex-shrink:0}
#offering[data-rarity="4"] img{filter:drop-shadow(1px 0 0 #ffd45a) drop-shadow(-1px 0 0 #ffd45a) drop-shadow(0 1px 0 #ffd45a) drop-shadow(0 -1px 0 #ffd45a) drop-shadow(0 0 7px #ffcf5d99)}
#offering[data-rarity="5"] img{filter:drop-shadow(1px 0 0 #ff4059) drop-shadow(-1px 0 0 #ff4059) drop-shadow(0 1px 0 #ff4059) drop-shadow(0 -1px 0 #ff4059) drop-shadow(0 0 8px #ff254c99)}
#offering .offering-quantity{position:absolute;right:-12px;bottom:0;font-size:18px;color:#efd49b;text-shadow:0 2px 5px #000;z-index:1}
@media(prefers-reduced-motion:reduce){#offering img{transition:none}}

#candles{position:absolute;inset:0;pointer-events:none}
.candle-flame{position:absolute;width:clamp(5px,.7vw,14px);height:clamp(10px,3.3vh,30px);transform:translate(-50%,-100%);opacity:0}
.candle-flame.lit{opacity:1}
.candle-flame.lit:before{content:"";position:absolute;inset:0;border-radius:55% 45% 45% 45% / 75% 75% 25% 25%;background:radial-gradient(ellipse at 50% 80%,#fffbe8 0 16%,#ffe79d 35%,#ffb733 65%,#ff7a1666 85%,transparent 100%);box-shadow:0 0 8px #ffd477,0 0 22px 6px #ffb84b60;transform-origin:50% 100%;animation:candle-flicker 1.3s ease-in-out infinite alternate;animation-delay:var(--flicker-delay)}
.candle-flame.lit:after{content:"";position:absolute;width:6vw;height:9vh;left:50%;bottom:-4vh;transform:translateX(-50%);background:radial-gradient(ellipse,#ffc65b25,transparent 70%);mix-blend-mode:screen}
@keyframes candle-flicker{0%{transform:scale(.9,1) rotate(-4deg);opacity:.85}45%{transform:scale(1.05,.94) rotate(3deg);opacity:1}100%{transform:scale(.92,1.1) rotate(-2deg);opacity:.93}}
#candleStatus{font-size:11px;letter-spacing:1px;color:#ddc59a;margin:0 0 12px;text-shadow:0 2px 5px #000}
#continueExchange{display:block;margin:9px auto 0;min-width:190px;padding:10px 16px;border-color:#c7af7780;color:#ead29a;background:#142b30df;letter-spacing:2px}
@media(max-height:650px) and (orientation:landscape){#candleStatus{font-size:10px;margin-bottom:7px}#continueExchange{min-width:155px;padding:7px 12px;font-size:11px;margin-top:7px}}
@media(prefers-reduced-motion:reduce){.candle-flame.lit:before{animation:none}}
.reward-group{position:absolute;inset:0;transform:translateY(12px)}
.reward-slot{position:absolute;width:100%;height:100%;left:-35%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center}
.reward-slot:nth-child(2){left:135%}
.reward-group.triple .reward-slot{top:30%}
.reward-group.triple .reward-slot:nth-child(3){left:50%;top:65%}
#offering .reward-slot img{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;transform-origin:center bottom}
.reward-slot[data-rarity="4"]{filter:drop-shadow(1px 0 #ffd45a) drop-shadow(-1px 0 #ffd45a) drop-shadow(0 1px #ffd45a) drop-shadow(0 -1px #ffd45a)}
.reward-slot[data-rarity="5"]{filter:drop-shadow(1px 0 #ff4059) drop-shadow(-1px 0 #ff4059) drop-shadow(0 1px #ff4059) drop-shadow(0 -1px #ff4059)}

/* Left warehouse and stacked currency / trading controls. */
.warehouse-drawer{left:0;right:auto;transform:translateX(-100%)}
.warehouse-drawer.open{transform:translateX(0)}
#warehouseDrawer #warehouseToggle{left:100%;right:auto;border-left:0;border-right:1px solid #c7af77a6;border-radius:0 8px 8px 0;box-shadow:5px 7px 22px #0006}
.warehouse-drawer #inventory.warehouse-panel{left:0;right:0;border-radius:0 0 9px 0;box-shadow:12px 12px 45px #0007}
.top-actions{flex-direction:column;align-items:flex-end;gap:14px}
#marketButton{min-width:108px;min-height:42px;padding:8px 17px;font-size:17px;letter-spacing:3px;text-indent:3px}
.duplicate-call{position:fixed;left:50%;top:50%;z-index:10002;pointer-events:none;white-space:nowrap;font-family:Impact,'Microsoft YaHei',sans-serif;font-weight:900;font-size:clamp(40px,7vw,94px);letter-spacing:.12em;color:#fff17b;-webkit-text-stroke:2px #25140c;text-shadow:4px 5px 0 #e43a27,7px 9px 0 #090e15,0 0 32px #ffd46880;animation:duplicateCall 2.4s both}
@keyframes duplicateCall{0%{opacity:0;transform:translate(-50%,-50%) scale(.2) rotate(-12deg)}12%{opacity:1;transform:translate(-50%,-50%) scale(1.18) rotate(5deg)}23%,65%{opacity:1;transform:translate(-50%,-50%) scale(1) rotate(-3deg)}78%{opacity:1;transform:translate(-50%,-50%) scale(1.04) rotate(2deg)}100%{opacity:0;transform:translate(-50%,-65%) scale(1.15)}}
@media(max-height:650px) and (orientation:landscape){.top-actions{gap:10px}#marketButton{min-width:92px;min-height:34px;font-size:14px;padding:6px 13px;letter-spacing:2px}}
@media(prefers-reduced-motion:reduce){.duplicate-call{animation:none;transform:translate(-50%,-50%)}}

/* Roomier search and quality controls. */
#marketPanel .market-toolbar{gap:12px;margin-top:10px}
#marketPanel .market-toolbar input[type=search],#marketPanel .market-toolbar select{height:44px;font-size:14px;padding:9px 12px}
#marketPanel .market-toolbar .affordable{font-size:12px}
#marketPanel .market-toolbar .affordable input{width:16px;height:16px}
@media(max-height:650px) and (orientation:landscape){#marketPanel .market-toolbar{gap:8px;margin-top:7px}#marketPanel .market-toolbar input[type=search],#marketPanel .market-toolbar select{height:38px;font-size:12px;padding:7px 9px}#marketPanel .market-toolbar .affordable{font-size:11px}}

#crow{pointer-events:auto;cursor:crosshair;touch-action:manipulation}#crow.flying{pointer-events:none}#crow:focus-visible{outline:2px solid #e7c789;outline-offset:5px;border-radius:50%}
.raven-projectile{position:fixed;z-index:29;pointer-events:none;font-size:34px;line-height:1;filter:drop-shadow(0 3px 3px #0008)}.rotten-egg{filter:hue-rotate(45deg) drop-shadow(0 0 6px #91b539)}
.raven-hit{position:fixed;z-index:29;pointer-events:none;font-size:30px;transform:translate(-50%,-50%);animation:ravenHit .4s both}.egg-splash{color:#acd353;filter:hue-rotate(65deg)}.stone-hit{color:#eed4a5}
@keyframes ravenHit{to{opacity:0;transform:translate(-50%,-60%) scale(1.8)}}
#ravenAttackStatus{position:absolute;bottom:2%;left:50%;transform:translateX(-50%);z-index:9;pointer-events:none;text-align:center;white-space:nowrap;font-size:12px;color:#f3d99b;text-shadow:0 2px 5px #000;background:#06101599;border-radius:12px;padding:4px 12px}#ravenAttackStatus:empty{display:none}
@media(max-height:650px) and (orientation:landscape){#ravenAttackStatus{font-size:10px;bottom:1%}.raven-projectile{font-size:27px}}
@media(prefers-reduced-motion:reduce){.raven-hit{animation:none}}
header{pointer-events:none}header .top-actions{pointer-events:auto}

.entry-icon{display:block;flex-shrink:0;width:25px;height:25px;color:#e2c68c;filter:drop-shadow(0 1px 2px #0008)}
#warehouseDrawer #warehouseToggle{width:52px;height:154px;min-height:154px;display:flex;flex-direction:column;gap:13px;padding:14px 8px;border:1px solid #c7af7799;border-left:0;background:linear-gradient(140deg,#304448,#14262b 70%);box-shadow:4px 5px 18px #0007,inset 0 1px 0 #fff1;border-radius:0 10px 10px 0}
#warehouseToggle .warehouse-handle-label{font-size:17px;letter-spacing:10px;padding-top:4px}
#marketButton{display:flex;align-items:center;justify-content:center;gap:8px;min-width:112px;letter-spacing:2px;text-indent:0;background:linear-gradient(140deg,#304448,#14262b 70%);border-color:#c7af7799;box-shadow:0 5px 18px #0006,inset 0 1px 0 #fff1;border-radius:8px}
#warehouseDrawer #warehouseToggle:hover,#marketButton:hover{background:linear-gradient(140deg,#466163,#213a3e);border-color:#ecd198}
.raven-hit{font-size:23px;font-weight:900;color:#ffe29b;text-shadow:2px 2px 0 #151b20,-1px -1px 0 #151b20;filter:none;white-space:nowrap}
@media(max-height:650px) and (orientation:landscape){#warehouseDrawer #warehouseToggle{width:46px;height:136px;min-height:136px;gap:10px;padding:12px 7px}#warehouseToggle .warehouse-handle-label{font-size:15px;letter-spacing:9px}.entry-icon{width:22px;height:22px}#marketButton{min-width:100px;gap:6px}.raven-hit{font-size:19px}}

/* Heavy comic lettering with inward rushing speed lines. */
.duplicate-burst{position:fixed;inset:0;z-index:10002;overflow:hidden;pointer-events:none;animation:duplicateBurstFade 2.4s both}
.duplicate-burst .duplicate-call{font-family:'Arial Black','Microsoft YaHei',sans-serif;font-weight:1000;-webkit-text-stroke:3px #fff17b;paint-order:stroke fill;text-shadow:3px 0 #20100b,-3px 0 #20100b,0 3px #20100b,0 -3px #20100b,5px 6px 0 #e43a27,8px 10px 0 #090e15,0 0 32px #ffd46880;filter:drop-shadow(1px 0 #25140c) drop-shadow(-1px 0 #25140c) drop-shadow(0 1px #25140c) drop-shadow(0 -1px #25140c)}
.duplicate-speed{position:absolute;top:14%;bottom:14%;width:42%;overflow:hidden;opacity:.9}
.duplicate-speed.left{left:0}.duplicate-speed.right{right:0;transform:scaleX(-1)}
.duplicate-speed i{position:absolute;left:-100%;top:calc(var(--lane)*6.1%);width:var(--length);height:calc(1px + mod(var(--lane),3)*1px);min-height:2px;background:linear-gradient(90deg,transparent,#ffdf66aa 45%,#fff4ba);clip-path:polygon(0 35%,90% 0,100% 50%,90% 100%,0 65%);box-shadow:0 0 6px #ffc44780;animation:duplicateRush .5s linear infinite;animation-delay:var(--delay)}
@keyframes duplicateRush{from{left:-100%;opacity:0;transform:scaleX(.6)}30%{opacity:1}to{left:105%;opacity:0;transform:scaleX(1.4)}}
@keyframes duplicateBurstFade{0%,100%{opacity:0}8%,85%{opacity:1}}
@media(prefers-reduced-motion:reduce){.duplicate-burst{animation:none}.duplicate-speed i{animation:none;left:5%;opacity:.45}}

/* Centered elastic shake, no side rush effects. */
.duplicate-burst .duplicate-call{animation:duplicateCallShake 2.4s both;transform-origin:center}
@keyframes duplicateCallShake{0%{opacity:0;transform:translate(-50%,-50%) scale(.45)}12%{opacity:1;transform:translate(-50%,-50%) scale(1.2)}20%{transform:translate(calc(-50% - 9px),calc(-50% + 4px)) scale(.95) rotate(-4deg)}28%{transform:translate(calc(-50% + 9px),calc(-50% - 4px)) scale(1.12) rotate(4deg)}36%{transform:translate(calc(-50% - 7px),-50%) scale(.96) rotate(-3deg)}44%{transform:translate(calc(-50% + 7px),-50%) scale(1.1) rotate(3deg)}52%{transform:translate(calc(-50% - 5px),-50%) scale(.97) rotate(-2deg)}60%{transform:translate(calc(-50% + 5px),-50%) scale(1.07) rotate(2deg)}72%,82%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-50%) scale(.65)}}
.warehouse-heading{flex-wrap:wrap;gap:7px}
.warehouse-values{flex:0 0 100%;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
#inventory #warehousePeak,#inventory #total{display:block;flex:1;font-size:11px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;color:#d9c998}
#inventory #warehousePeak{color:#f2d995}#inventory #total{text-align:right}
.warehouse-heading-actions{margin-left:auto}
@media(max-height:650px) and (orientation:landscape){#inventory #warehousePeak,#inventory #total{font-size:10px}.warehouse-heading{gap:5px}}
@media(prefers-reduced-motion:reduce){.duplicate-burst .duplicate-call{animation:none;transform:translate(-50%,-50%)}}

.raven-hit{animation-duration:.65s}
/* Keep warehouse values in the heading row. */
.warehouse-heading{flex-wrap:nowrap;gap:10px}
.warehouse-values{flex:1 1 auto;gap:9px;justify-content:flex-start}
#inventory #warehousePeak,#inventory #total{flex:0 0 auto;white-space:nowrap;overflow-wrap:normal;font-size:9px;overflow:visible}
#inventory #warehousePeak{color:#ff5265;font-weight:700}
.warehouse-heading-actions{gap:5px}
@media(max-height:650px) and (orientation:landscape){.warehouse-heading{gap:7px}.warehouse-values{gap:7px}#inventory #warehousePeak,#inventory #total{font-size:8px}#warehouseUpgrade{min-width:83px;padding:4px 6px;font-size:10px}#warehouseUpgrade small{font-size:7px}#warehouseDimensions{font-size:8px}}

/* Larger single-line warehouse totals, with more breathing room. */
.warehouse-drawer{--drawer-width:clamp(390px,48vw,540px)}
.warehouse-values{gap:18px}
#inventory #warehousePeak,#inventory #total{font-size:11.5px}
@media(max-height:650px) and (orientation:landscape){.warehouse-values{gap:14px}#inventory #warehousePeak,#inventory #total{font-size:10px}}

/* Identical contain boxes for placed and rewarded items. */
#offering>img,#offering .reward-slot img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
.sale-coin-flight{position:fixed;z-index:10020;pointer-events:none;object-fit:contain;filter:drop-shadow(0 0 9px #f5d478aa);will-change:left,top,transform}

/* Raised warehouse and clearly separated inline value indicators. */
.warehouse-drawer{top:14%}
.warehouse-heading{padding-bottom:10px;border-bottom:1px solid #b8af8130;gap:12px}
.warehouse-values{gap:12px;align-items:center}
#inventory #warehousePeak,#inventory #total{display:inline-flex;align-items:center;justify-content:flex-start;gap:7px;padding:7px 9px;border-radius:5px;line-height:1;white-space:nowrap;font-size:10px;font-weight:400;text-align:left;background:#0b1a2055}
#inventory #warehousePeak{color:#ff6174;background:linear-gradient(110deg,#9f293924,#9f293908);box-shadow:inset 2px 0 #e75468}
#inventory #total{color:#ecd197;box-shadow:inset 2px 0 #b8a16a55}
.warehouse-stat-label{opacity:.8;letter-spacing:.5px}
.warehouse-values strong{font-size:15px;font-weight:700;letter-spacing:.2px;font-variant-numeric:tabular-nums}
@media(max-height:650px) and (orientation:landscape){.warehouse-drawer{top:15%}.warehouse-heading{padding-bottom:7px;gap:8px}.warehouse-values{gap:10px}#inventory #warehousePeak,#inventory #total{padding:6px 7px;gap:5px;font-size:9px}.warehouse-values strong{font-size:12px}.warehouse-stat-label{letter-spacing:0}}

#tempWarehouse{flex-shrink:0;border-top:1px solid #b8af8130;margin-top:8px;padding:8px 0 6px}
.temp-warehouse-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px}
.temp-warehouse-heading h3{margin:0;font-size:12px;color:#e7c98d;font-weight:500;letter-spacing:1px}
.temp-warehouse-heading>span{font-size:9px;color:#9bada3}
#tempWarehouseCount{font-size:10px;letter-spacing:0;color:#b2c0b2}
#tempWarehouseItems{display:flex;gap:8px;overflow-x:auto;scrollbar-width:thin;padding:3px 0 4px}
.temp-warehouse-item{flex:0 0 195px;display:flex;align-items:center;gap:7px;border-left:2px solid var(--rarity);background:linear-gradient(120deg,color-mix(in srgb,var(--rarity) 14%,#13262a),#0b1b21);border-radius:4px;padding:7px}
.temp-warehouse-item>img{width:36px;height:36px;object-fit:contain}
.temp-warehouse-item>div{flex:1;min-width:0}
.temp-warehouse-item strong{display:block;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
.temp-warehouse-item time{display:block;font-size:10px;color:#e7c98d;font-variant-numeric:tabular-nums;margin-top:4px}
.temp-warehouse-item time.urgent{color:#ff6879}
.temp-warehouse-item button{font-size:10px;padding:5px 7px;color:#e7c98d;white-space:nowrap}
@media(max-height:650px) and (orientation:landscape){#tempWarehouse{margin-top:5px;padding:5px 0 3px}.temp-warehouse-heading h3{font-size:10px}.temp-warehouse-heading>span{font-size:8px}.temp-warehouse-item{flex-basis:174px;padding:5px;gap:5px}.temp-warehouse-item>img{width:28px;height:28px}.temp-warehouse-item strong,.temp-warehouse-item time{font-size:9px}.temp-warehouse-item button{font-size:9px;padding:4px 6px}}

/* A separate temporary-storage entrance below the warehouse entrance. */
#warehouseDrawer #warehouseToggle,#warehouseDrawer #tempWarehouseToggle{position:absolute;left:100%;right:auto;width:64px;min-height:0;padding:12px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;pointer-events:auto;border:1px solid #bca46f99;border-left:0;border-bottom:3px solid #8f784c;border-radius:0 11px 11px 0;background:linear-gradient(135deg,#31484a,#12272c 75%);color:#ead29a;box-shadow:4px 6px 18px #0006,inset 0 1px 0 #ffffff18;transition:background .2s,border-color .2s,filter .2s}
#warehouseDrawer #warehouseToggle{top:0;height:82px}
#warehouseDrawer #tempWarehouseToggle{top:92px;height:94px}
#warehouseToggle .warehouse-handle-label{writing-mode:horizontal-tb;font-size:13px;line-height:1.3;letter-spacing:2px;padding:0}
#tempWarehouseToggle .entry-label{font-size:12px;line-height:1.35;letter-spacing:2px;text-align:center}
#warehouseDrawer .entry-icon{width:27px;height:27px;color:#e6cb8c}
#warehouseDrawer #warehouseToggle:hover,#warehouseDrawer #tempWarehouseToggle:hover{filter:brightness(1.2);border-color:#f1d391}
#warehouseDrawer #warehouseToggle[aria-expanded=true],#warehouseDrawer #tempWarehouseToggle[aria-expanded=true]{background:linear-gradient(135deg,#66583b,#263b37);border-color:#efd08e;color:#fff1ca;box-shadow:4px 6px 20px #0007,inset 3px 0 #e3c17f}
#tempWarehouseBadge{position:absolute;top:4px;right:5px;min-width:16px;padding:2px 4px;border-radius:9px;background:#b94850;color:#fff0db;font-size:9px;line-height:1;text-align:center}
#marketButton{min-width:118px;min-height:46px;padding:9px 15px;gap:9px;border:1px solid #bca46f99;border-bottom:3px solid #8f784c;border-radius:9px;background:linear-gradient(135deg,#31484a,#12272c 75%);color:#ead29a;box-shadow:0 6px 18px #0006,inset 0 1px 0 #ffffff18;font-size:16px;letter-spacing:2px}
#marketButton .entry-icon{width:27px;height:27px}
#marketButton:hover{filter:brightness(1.18)}#marketButton[aria-expanded=true]{background:linear-gradient(135deg,#66583b,#263b37);border-color:#efd08e;color:#fff1ca}
.temporary-warehouse-panel{position:absolute;inset:0;display:flex;flex-direction:column;padding:16px;border:1px solid #b3a67855;border-left:0;border-radius:0 10px 10px 0;background:linear-gradient(135deg,#1c3336,#102228);pointer-events:auto;box-shadow:12px 12px 45px #0007}
#closeTemporaryWarehouse{position:absolute;top:6px;right:8px;border:0;background:none;font-size:23px;padding:1px 6px;color:#c4b387;z-index:1}
#temporaryInventory #tempWarehouse{margin:0;padding:0;border:0;flex:1;min-height:0;display:flex;flex-direction:column}
#temporaryInventory .temp-warehouse-heading{display:block;padding:0 24px 12px 0;border-bottom:1px solid #b8af8130;margin-bottom:12px}
#temporaryInventory .temp-warehouse-heading h3{font-size:20px;letter-spacing:3px;margin-bottom:8px}
#temporaryInventory .temp-warehouse-heading>span{font-size:10px;color:#a3b4a9}
#temporaryInventory #tempWarehouseItems{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:8px;overflow:auto;flex:1;min-height:0;padding:0 2px 8px 0}
#temporaryInventory .temp-warehouse-item{min-width:0;padding:8px 6px;gap:5px}
#temporaryInventory .temp-warehouse-item>img{width:30px;height:34px}
#tempWarehouseEmpty{margin:auto;text-align:center;font-size:13px;line-height:2;color:#c0b38c}#tempWarehouseEmpty small{font-size:10px;color:#81998e}
@media(max-height:650px) and (orientation:landscape){#warehouseDrawer #warehouseToggle,#warehouseDrawer #tempWarehouseToggle{width:56px;padding:9px 7px;gap:6px}#warehouseDrawer #warehouseToggle{height:74px}#warehouseDrawer #tempWarehouseToggle{top:84px;height:86px}#warehouseToggle .warehouse-handle-label{font-size:12px}#tempWarehouseToggle .entry-label{font-size:11px}#warehouseDrawer .entry-icon{width:24px;height:24px}#marketButton{min-width:108px;min-height:40px;font-size:14px;padding:7px 12px;gap:7px}#marketButton .entry-icon{width:24px;height:24px}.temporary-warehouse-panel{padding:12px}#temporaryInventory .temp-warehouse-heading h3{font-size:17px}#temporaryInventory .temp-warehouse-heading{padding-bottom:10px;margin-bottom:10px}}
/* More legible main balance over a soft translucent plate. */
.top-actions #wallet{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;min-width:146px;min-height:46px;padding:6px 17px 6px 9px;border:0;border-radius:0;background:linear-gradient(110deg,#02080ee0 0%,#071014a8 65%,#0b131e45 100%);clip-path:polygon(8px 0,100% 0,calc(100% - 8px) 100%,0 100%);box-shadow:none;font-size:18px;font-weight:700;color:#ffe5ac;backdrop-filter:blur(4px)}
.top-actions #wallet:after{content:'';position:absolute;left:20px;right:17px;bottom:0;height:1px;background:linear-gradient(90deg,transparent,#e0bf7566,transparent);pointer-events:none}
#wallet #coins{font-variant-numeric:tabular-nums;letter-spacing:.6px;line-height:1.2;text-shadow:0 2px 5px #000,0 0 12px #edc97d26}
#wallet .coin-icon{width:34px;height:34px;filter:drop-shadow(0 2px 3px #0008) drop-shadow(0 0 5px #e4bf6344)}
@media(max-height:650px) and (orientation:landscape){.top-actions #wallet{min-width:126px;min-height:40px;padding:5px 13px 5px 7px;gap:8px;font-size:16px}#wallet .coin-icon{width:30px;height:30px}#wallet #coins{letter-spacing:.4px}}

.brand .sigil{display:flex;align-items:center;justify-content:center;width:48px;height:48px;flex-shrink:0;filter:drop-shadow(0 2px 6px #0008)}.brand .sigil svg{display:block;width:100%;height:100%}
img[src$="item-034.webp"]{rotate:90deg}
.exchange-ui #exchange,.exchange-ui #continueExchange{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-width:0;min-height:50px;border-radius:9px;padding:12px 18px;font-size:15px;line-height:1.3;font-weight:700;letter-spacing:2px;transition:transform .16s,background .2s,box-shadow .2s,border-color .2s}
.exchange-ui #exchange{color:#302619;background:linear-gradient(135deg,#f4dfaa,#d2ac65 65%,#b88a44);border:1px solid #f7e6b8;border-bottom:3px solid #8b6735;box-shadow:0 5px 18px #0005,inset 0 1px #fff7}
.exchange-ui #exchange:before{content:'⇄';font-size:24px;line-height:1;font-weight:400;letter-spacing:0}
.exchange-ui #exchange[data-action=claim]:before{content:'↓'}
.exchange-ui #exchange[data-action=retry]:before{content:'↻'}
.exchange-ui #exchange:not(:disabled):hover{background:linear-gradient(135deg,#fff0c4,#e5c783 70%,#d1a65e);box-shadow:0 6px 22px #e2bc5333,inset 0 1px #fff8;transform:translateY(-1px)}
.exchange-ui #exchange:disabled{opacity:1;color:#a2ab9c;background:linear-gradient(135deg,#283c3fdb,#14292edb);border-color:#a3997155;border-bottom-color:#0b1a20;box-shadow:0 4px 12px #0003;font-weight:400}
.exchange-ui #continueExchange{margin-top:9px;color:#efd69f;background:linear-gradient(135deg,#2d4547,#142b30);border:1px solid #bda57199;border-bottom:3px solid #152121;box-shadow:0 4px 14px #0004}
.exchange-ui #continueExchange:before{content:'↻';font-size:22px;line-height:1;font-weight:400;letter-spacing:0}
.exchange-ui #continueExchange:hover{background:linear-gradient(135deg,#416062,#213b3f);border-color:#efd099;transform:translateY(-1px)}
.exchange-ui #exchange:not(:disabled):active,.exchange-ui #continueExchange:active{transform:translateY(1px);box-shadow:0 1px 5px #0004}
@media(max-height:650px) and (orientation:landscape){.brand .sigil{width:36px;height:36px}.exchange-ui #exchange,.exchange-ui #continueExchange{min-height:42px;font-size:12px;padding:9px 14px;gap:8px;letter-spacing:1.5px}.exchange-ui #exchange:before{font-size:21px}.exchange-ui #continueExchange:before{font-size:20px}.exchange-ui #continueExchange{min-height:38px;margin-top:8px}}
@media(prefers-reduced-motion:reduce){.exchange-ui #exchange,.exchange-ui #continueExchange{transition:none}}

/* Red item artwork fills more of its existing inventory footprint. */
.warehouse-item[data-rarity="5"] .warehouse-art{inset:1px}
.warehouse-item[data-rarity="5"] .warehouse-art img{transform:scale(1.1);transform-origin:center}
.temp-warehouse-item[data-rarity="5"]>img{transform:scale(1.12);transform-origin:center}

/* The offering is handed over before the raven takes off. */
#offering.vanish{visibility:hidden;transition:none}
#offering{transition-property:opacity,transform}#offering:not(.vanish){visibility:visible}

#leaderboardButton{display:flex;align-items:center;justify-content:center;gap:9px;min-width:118px;min-height:42px;padding:8px 15px;font-size:15px;letter-spacing:2px;color:#e4cb93;background:linear-gradient(135deg,#2c4044,#15262d);border:1px solid #bca46f80;border-bottom:3px solid #6f6044;border-radius:9px;box-shadow:0 5px 16px #0005,inset 0 1px #fff1}
#leaderboardButton:hover,#leaderboardButton[aria-expanded=true]{background:linear-gradient(135deg,#5c5139,#263a36);border-color:#edcf8d;color:#fff0ca}
#leaderboardButton .entry-icon{width:25px;height:25px}
#leaderboardPanel{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:27;display:flex;flex-direction:column;width:min(760px,94vw);height:82%;padding:20px;min-height:0;background:linear-gradient(135deg,#22383a,#102127 80%);border:1px solid #bda57199;border-radius:12px;box-shadow:0 14px 55px #0009}
#leaderboardClose{position:absolute;right:10px;top:5px;border:0;background:none;padding:1px 7px;font-size:24px;color:#c6b489}
.leaderboard-title{display:flex;justify-content:space-between;align-items:center;gap:15px;padding-right:22px}
.leaderboard-title small{font-size:8px;letter-spacing:2px;color:#acbaaa}.leaderboard-title h2{font-family:serif;font-weight:400;font-size:24px;letter-spacing:3px;margin:5px 0;color:#f0d59c}
.leaderboard-local{font-size:10px;text-align:right;color:#abbbaf;white-space:nowrap}.leaderboard-local strong{display:block;font-size:22px;font-variant-numeric:tabular-nums;color:#ff6578;margin-top:4px}
#leaderboardMessage{font-size:11px;line-height:1.5;min-height:17px;margin:8px 0 12px;color:#c1baa0}
.leaderboard-table-heading,.leaderboard-row{display:grid;grid-template-columns:45px minmax(0,1fr) 130px;align-items:center;gap:12px}
.leaderboard-table-heading{padding:8px 10px;font-size:10px;color:#8fa69a;background:#07161b66;border-radius:4px}.leaderboard-table-heading>span:last-child{text-align:right}
#leaderboardRows{flex:1;min-height:0;overflow:auto;scrollbar-width:thin}.leaderboard-row{padding:10px;border-bottom:1px solid #b8a56a1f;font-size:12px}.rank-place{color:#91aaa0;font-size:16px;font-weight:700}.leaderboard-row[data-medal="1"] .rank-place{color:#f5d985}.leaderboard-row[data-medal="2"] .rank-place{color:#d4e3e5}.leaderboard-row[data-medal="3"] .rank-place{color:#d6a27d}.rank-profile{display:flex;align-items:center;gap:9px;min-width:0}.rank-profile img{width:28px;height:28px;border-radius:50%;object-fit:cover}.rank-profile span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.leaderboard-row>strong{text-align:right;font-variant-numeric:tabular-nums;color:#ead19b;font-size:14px}
.leaderboard-empty{padding:30px 0;text-align:center;color:#93aaa0;font-size:12px}.leaderboard-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:10px;border-top:1px solid #bda57140}.leaderboard-footer>span{font-size:11px;color:#e7cd98}.leaderboard-footer button{padding:7px 13px;font-size:11px;color:#efd79f;background:#2a4141;border-color:#c5ab6d70}.leaderboard-rule{font-size:9px;color:#849e91;margin-top:8px;line-height:1.5}
@media(max-height:650px) and (orientation:landscape){#leaderboardButton{min-width:108px;min-height:36px;padding:5px 12px;font-size:13px;gap:7px}#leaderboardButton .entry-icon{width:23px;height:23px}#leaderboardPanel{padding:12px;height:86%}.leaderboard-title h2{font-size:19px;margin:3px 0}.leaderboard-title small{font-size:7px}.leaderboard-local{font-size:9px}.leaderboard-local strong{font-size:18px}#leaderboardMessage{font-size:9px;min-height:14px;margin:6px 0}.leaderboard-table-heading,.leaderboard-row{grid-template-columns:32px minmax(0,1fr) 105px;gap:8px;padding:6px 8px}.leaderboard-row{font-size:10px}.leaderboard-row>strong{font-size:12px}.rank-profile img{width:22px;height:22px}.rank-place{font-size:13px}.leaderboard-footer{padding-top:6px}.leaderboard-footer>span{font-size:9px}.leaderboard-footer button{font-size:10px;padding:5px 9px}.leaderboard-rule{font-size:8px;margin-top:5px}}

/* Matching side entries with a starter-gift image above them. */
#marketButton,#leaderboardButton{display:flex;align-items:center;justify-content:center;gap:9px;min-width:118px;min-height:46px;padding:9px 15px;font-size:16px;line-height:1.2;letter-spacing:2px;text-indent:0;font-weight:400;color:#ead29a;background:linear-gradient(135deg,#31484a,#12272c 75%);border:1px solid #bca46f99;border-bottom:3px solid #8f784c;border-radius:9px;box-shadow:0 6px 18px #0006,inset 0 1px 0 #ffffff18}
#marketButton .entry-icon,#leaderboardButton .entry-icon{width:27px;height:27px}
#marketButton:hover,#leaderboardButton:hover{filter:brightness(1.18);background:linear-gradient(135deg,#31484a,#12272c 75%)}
#marketButton[aria-expanded=true],#leaderboardButton[aria-expanded=true]{background:linear-gradient(135deg,#66583b,#263b37);border-color:#efd08e;color:#fff1ca}
#starterGiftButton{position:relative;width:118px;height:76px;min-height:0;padding:0;display:flex;align-items:center;justify-content:center;background:none;border:0;border-radius:0;box-shadow:none;overflow:visible}
#starterGiftButton>img{width:110px;height:82px;object-fit:contain;filter:drop-shadow(0 3px 6px #000b);transition:transform .2s}
#starterGiftButton>strong{position:absolute;left:0;right:0;bottom:0;text-align:center;white-space:nowrap;font-size:14px;letter-spacing:3px;color:#ffe5a1;text-shadow:0 2px 2px #000,-1px 0 #231c11,1px 0 #231c11}
#starterGiftButton:hover>img{transform:translateY(-2px) scale(1.04)}
#starterGiftButton.claimed>strong{color:#baa87b}
#starterGiftPanel{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:28;display:flex;flex-direction:column;width:min(660px,94vw);max-height:88%;padding:22px;background:radial-gradient(ellipse at top,#55452a55,transparent 65%),linear-gradient(135deg,#25393a,#102127);border:1px solid #d6b97699;border-radius:12px;box-shadow:0 15px 70px #000a;overflow:auto}
#starterGiftClose{position:absolute;right:10px;top:6px;padding:1px 7px;font-size:25px;color:#d4bd8b;background:none;border:0}
.starter-gift-heading{display:flex;align-items:center;gap:18px;padding-right:20px}
.starter-gift-heading>img{width:126px;height:88px;object-fit:contain}.starter-gift-heading small{font-size:8px;letter-spacing:2px;color:#c8b589}.starter-gift-heading h2{font-family:serif;font-size:29px;font-weight:400;letter-spacing:5px;color:#f0d597;margin:6px 0}.starter-gift-heading p{margin:0;font-size:10px;color:#9eafa3}
.starter-gift-condition{margin:12px 0;font-size:12px;color:#b8c6b6}.starter-gift-condition strong{color:#edce8d}
#starterGiftRewards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.starter-reward{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;min-width:0;height:114px;padding:9px 5px;border:1px solid #bba57044;border-radius:7px;background:#0a192063;box-shadow:inset 0 2px var(--reward-color)}
.starter-reward.red{--reward-color:#ff5068}.starter-reward.gold{--reward-color:#eecb6b}.starter-reward>img{width:100%;height:66px;object-fit:contain}.starter-reward strong{font-size:11px;font-weight:500;text-align:center;color:#edd9b0}.starter-reward>span{font-size:37px;font-weight:700;color:#edce75;line-height:1.1}.starter-reward small{font-size:9px;color:#a3b2a5}
#starterGiftStatus{margin:12px 0;min-height:32px;font-size:11px;line-height:1.6;color:#dfcb9c}
.starter-gift-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px}.starter-gift-actions a,.starter-gift-actions button{padding:10px 17px;border-radius:6px;font-size:12px;text-decoration:none;white-space:nowrap}.starter-gift-actions a{color:#e8d3a7;border:1px solid #c3aa704d;background:#1b3336}.starter-gift-actions #starterGiftClaim{color:#2c271c;font-weight:700;background:linear-gradient(135deg,#eddaa0,#b78e4b);border:1px solid #d6b774}.starter-gift-actions #starterGiftView{color:#ead6a7;background:#263f3e;border-color:#c8ae7677}
@media(max-height:650px) and (orientation:landscape){.top-actions{gap:6px}#marketButton,#leaderboardButton{min-width:108px;min-height:38px;padding:6px 12px;font-size:14px;gap:7px}#marketButton .entry-icon,#leaderboardButton .entry-icon{width:24px;height:24px}#starterGiftButton{width:108px;height:48px}#starterGiftButton>img{width:88px;height:62px}#starterGiftButton>strong{font-size:11px;letter-spacing:2px;bottom:-1px}#starterGiftPanel{padding:12px 16px;max-height:90%}.starter-gift-heading{gap:10px}.starter-gift-heading>img{width:78px;height:52px}.starter-gift-heading h2{font-size:20px;margin:3px 0;letter-spacing:3px}.starter-gift-heading small{font-size:7px}.starter-gift-heading p{font-size:9px}.starter-gift-condition{font-size:10px;margin:7px 0}#starterGiftRewards{gap:8px}.starter-reward{height:76px;gap:3px;padding:5px}.starter-reward>img{height:42px}.starter-reward strong{font-size:10px}.starter-reward small{font-size:8px}.starter-reward>span{font-size:27px}#starterGiftStatus{font-size:10px;min-height:26px;margin:7px 0}.starter-gift-actions a,.starter-gift-actions button{font-size:10px;padding:8px 11px}}
@media(max-height:450px) and (orientation:landscape){.exchange-ui #result{position:absolute;right:calc(100% + 14px);bottom:84px;width:clamp(140px,24vw,210px);text-align:right}.exchange-ui #message{margin:0;font-size:9px;line-height:1.6}.exchange-ui #candleStatus{position:absolute;right:calc(100% + 14px);bottom:60px;width:clamp(140px,24vw,210px);text-align:right;margin:0;font-size:9px}}

/* A widescreen gift banner and a third collection-room entry. */
#starterGiftButton{width:128px;height:auto;aspect-ratio:16/9;border-radius:7px;overflow:hidden;box-shadow:0 4px 16px #0006}
#starterGiftButton>img{width:100%;height:100%;object-fit:cover;filter:none}
#starterGiftButton>strong{bottom:0;padding:5px 0;background:linear-gradient(transparent,#091317dd);font-size:13px;letter-spacing:3px}
#collectionButton{display:flex;align-items:center;justify-content:center;gap:9px;min-width:118px;min-height:46px;padding:9px 15px;font-size:16px;line-height:1.2;letter-spacing:2px;color:#ead29a;background:linear-gradient(135deg,#31484a,#12272c 75%);border:1px solid #bca46f99;border-bottom:3px solid #8f784c;border-radius:9px;box-shadow:0 6px 18px #0006,inset 0 1px #ffffff18}
#collectionButton .entry-icon{width:27px;height:27px}#collectionButton:hover,#collectionButton[aria-expanded=true]{background:linear-gradient(135deg,#66583b,#263b37);border-color:#efd08e;color:#fff1ca}
#game[data-phase=placed] #marketButton,#game[data-phase=placed] #leaderboardButton,#game[data-phase=placed] #collectionButton,#game[data-phase=animating] #marketButton,#game[data-phase=animating] #leaderboardButton,#game[data-phase=animating] #collectionButton,#game[data-phase=result] #marketButton,#game[data-phase=result] #leaderboardButton,#game[data-phase=result] #collectionButton{display:none}
#collectionPanel{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(1320px,98vw,167.11svh);aspect-ratio:16/9;z-index:29;border:1px solid #bda57199;border-radius:10px;background:#102126;box-shadow:0 15px 65px #000b;overflow:hidden}
#collectionRoomStage{position:absolute;inset:0;background:url('assets/collection-room.png') center/100% 100% no-repeat}
#collectionCabinets{position:absolute;inset:16% 11% 22%;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));column-gap:1%;row-gap:3%}
.collection-cabinet{position:relative;min-width:0;min-height:0;padding:0;border:0;border-radius:3px;background:none;box-shadow:none;transition:filter .2s,transform .2s}
.collection-cabinet:hover{background:none;filter:drop-shadow(0 0 5px #e8c37c88);transform:translateY(-1px)}
.collection-cabinet.selected{filter:drop-shadow(0 0 4px #ffd680cc)}
.collection-cabinet-art{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.collection-exhibit{position:absolute;left:50%;top:42%;width:45%;height:38%;object-fit:contain;translate:-50% -50%;pointer-events:none;filter:drop-shadow(0 2px 4px #000a)}
.collection-cabinet[data-rarity="5"] .collection-exhibit{scale:1.15;filter:drop-shadow(1px 0 #fb536c) drop-shadow(-1px 0 #fb536c) drop-shadow(0 1px #fb536c)}
.collection-cabinet[data-rarity="4"] .collection-exhibit{filter:drop-shadow(1px 0 #e8c365) drop-shadow(-1px 0 #e8c365)}
.collection-empty-plus{position:absolute;left:50%;top:42%;translate:-50% -50%;font-size:clamp(12px,2.5vw,25px);color:#e7cf9188;text-shadow:0 1px 4px #000;pointer-events:none}
.collection-cabinet-label{position:absolute;bottom:8%;left:8%;right:8%;font-size:clamp(6px,.85vw,11px);line-height:1.1;color:#efd7a5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 3px #000;pointer-events:none}
#collectionPanel .collection-heading{position:absolute;inset:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 18px;background:linear-gradient(#051117de,#07171b99,transparent);pointer-events:auto}
.collection-heading h2{font-family:serif;font-weight:400;font-size:26px;letter-spacing:5px;color:#eed6a0;margin:0}.collection-metrics{margin-left:auto;display:flex;align-items:center;gap:22px;color:#9faf9e;font-size:10px}.collection-metrics strong{margin-left:7px;color:#efd59a;font-size:16px;font-variant-numeric:tabular-nums}
#collectionClose{background:none;border:0;font-size:25px;padding:0 3px;color:#d4bd8b}
.collection-toolbar{position:absolute;left:3%;right:3%;bottom:2%;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px 10px;padding:10px 12px;background:#061419c9;border:1px solid #ba9f6366;border-radius:6px;backdrop-filter:blur(4px);z-index:2}
.collection-toolbar>strong{font-size:12px;font-weight:500;color:#efd79e;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.collection-toolbar>div{display:flex;gap:8px}.collection-toolbar button{padding:6px 13px;font-size:11px;color:#edcf8e;background:#263c3b;border-color:#bda16b88}.collection-toolbar button:first-child{background:#9c7b44;color:#fff0c9}
#collectionStatus{grid-column:1/-1;font-size:10px;line-height:1.3;color:#a8b8a8;margin:0;min-height:13px}
#collectionPicker{position:absolute;top:12%;bottom:0;right:0;width:min(300px,57%);z-index:5;background:linear-gradient(135deg,#20383bf5,#0b1d25fc);border:1px solid #c5a66988;border-radius:7px 0 0;display:flex;flex-direction:column;padding:12px;box-shadow:-10px 0 30px #0007}
.collection-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:10px}.collection-picker-heading h3{font-size:12px;line-height:1.4;color:#ead29a;font-weight:500;margin:0}.collection-picker-heading button{background:none;border:0;padding:0 4px;font-size:22px;color:#c6b181}
#collectionPickerItems{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;align-content:start;overflow:auto;min-height:0;flex:1;scrollbar-width:thin}
#collectionPickerItems button{padding:6px 4px;min-width:0;background:#0a1b22;border:1px solid color-mix(in srgb,var(--rarity) 65%,transparent);border-top:2px solid var(--rarity);border-radius:4px;display:flex;flex-direction:column;align-items:center;gap:4px}
#collectionPickerItems img{width:100%;height:48px;object-fit:contain}#collectionPickerItems strong{font-size:9px;line-height:1.3;font-weight:400;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#collectionPickerItems small{font-size:9px;color:#c6b485}.collection-picker-empty{grid-column:1/-1;font-size:11px;color:#a5b5a5;text-align:center;margin:20px 0}
@media(max-height:650px) and (orientation:landscape){.top-actions{gap:4px}#starterGiftButton{width:108px;height:auto;aspect-ratio:16/9}#starterGiftButton>img{width:100%;height:100%}#starterGiftButton>strong{font-size:10px;padding:3px 0}#marketButton,#leaderboardButton,#collectionButton{min-width:108px;min-height:34px;padding:4px 12px;font-size:13px;gap:7px}#marketButton .entry-icon,#leaderboardButton .entry-icon,#collectionButton .entry-icon{width:22px;height:22px}#collectionPanel .collection-heading{padding:6px 10px;gap:5px}.collection-heading h2{font-size:17px;letter-spacing:3px}.collection-metrics{font-size:8px;gap:10px}.collection-metrics strong{font-size:11px;margin-left:4px}#collectionClose{font-size:20px}.collection-toolbar{gap:4px 6px;padding:6px 8px}.collection-toolbar>strong{font-size:9px}.collection-toolbar button{font-size:9px;padding:4px 7px}.collection-toolbar>div{gap:5px}#collectionStatus{font-size:8px;min-height:10px}#collectionPicker{padding:9px}.collection-picker-heading{margin-bottom:7px}.collection-picker-heading h3{font-size:10px}#collectionPickerItems img{height:34px}#collectionPickerItems button{gap:3px;padding:4px}.collection-cabinet-label{font-size:6px}}

.starter-gift-heading>img{height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:4px}

/* Five special cases enlarge the exhibit, retaining the same saved slots. */
.collection-cabinet.special .collection-cabinet-art{filter:brightness(1.18) drop-shadow(0 0 3px #ffd47e66)}
.collection-cabinet.special .collection-exhibit{width:58%;height:48%}
.collection-cabinet.special .collection-cabinet-label{color:#ffe392;font-weight:700;text-shadow:0 1px 3px #000,0 0 5px #e9ba4a66}
.collection-cabinet.special .collection-empty-plus{color:#f1d58dbb;text-shadow:0 0 9px #edc97c66}
.collection-special-hint{font-size:11px;letter-spacing:1px;color:#eac778;white-space:nowrap}
#starterGiftButton{width:152px;aspect-ratio:16/9}
#starterGiftButton>strong{font-size:15px;padding:6px 0}
#starterGiftPanel .starter-gift-heading{padding-right:28px}
#starterGiftPanel .starter-gift-heading>img{order:2;margin-left:auto;width:132px;height:94px;aspect-ratio:auto;object-fit:contain;border-radius:0}
#starterGiftPanel .starter-gift-heading>div{order:1}
@media(max-height:650px) and (orientation:landscape){#starterGiftButton{width:128px;aspect-ratio:16/9}#starterGiftButton>strong{font-size:11.5px;padding:4px 0}#starterGiftPanel .starter-gift-heading>img{width:86px;height:56px}.collection-special-hint{font-size:8px;letter-spacing:0}}

/* A central elevated gallery surrounded by sixteen ordinary cases. */
#collectionRoomStage{background-image:url('assets/collection-room-raised.png')}
#collectionCabinets{inset:0;display:block}
.collection-cabinet{position:absolute}
.collection-cabinet.special{z-index:2}
.collection-cabinet.special .collection-cabinet-art{filter:brightness(1.12) drop-shadow(0 0 5px #e9bf6955)}
.collection-cabinet.special .collection-cabinet-label{bottom:7%;font-size:clamp(7px,.95vw,12px);color:#ffe6a6}
.collection-dais-caption{position:absolute;left:50%;top:12.5%;translate:-50% 0;font-family:serif;font-size:clamp(8px,1.3vw,16px);letter-spacing:.28em;white-space:nowrap;color:#f1d69f;text-shadow:0 2px 4px #000,0 0 12px #ecbf6c88;pointer-events:none}
#collectionPanel .collection-heading{background:linear-gradient(#051117e8,#07171ba8,transparent)}
@media(max-height:650px) and (orientation:landscape){.collection-cabinet.special .collection-cabinet-label{font-size:7px}.collection-special-hint{font-size:7px}}

/* Integrated architectural scene: only owned exhibits and hit targets are overlaid. */
#collectionRoomStage{background-image:url('assets/collection-room-integrated-v2.png')}
.collection-dais-caption{display:none}
.collection-cabinet,.collection-cabinet:hover,.collection-cabinet.selected{transform:none;filter:none;background:transparent;box-shadow:none}
.collection-cabinet:before{content:'';position:absolute;inset:9% 9% 26%;border:1px solid transparent;border-radius:2px;transition:background .2s,border-color .2s;pointer-events:none}
.collection-cabinet:hover:before,.collection-cabinet.selected:before,.collection-cabinet:focus-visible:before{border-color:#f9db9377;background:linear-gradient(120deg,#ffe9b513,transparent 40%,#fff6ce0b);box-shadow:inset 0 0 10px #f0c57022}
.collection-cabinet:focus-visible{outline:1px solid #f6d693;outline-offset:2px}
.collection-exhibit{left:50%;top:44%;width:60%;height:49%;filter:drop-shadow(0 4px 3px #000a);z-index:1}
.collection-cabinet.special .collection-exhibit{width:67%;height:53%}
.collection-cabinet[data-rarity="5"] .collection-exhibit{scale:1.08;filter:drop-shadow(0 3px 3px #000b) drop-shadow(1px 0 #d94f62) drop-shadow(-1px 0 #d94f62)}
.collection-cabinet[data-rarity="4"] .collection-exhibit{filter:drop-shadow(0 3px 3px #000b) drop-shadow(1px 0 #d9b65e)}
.collection-cabinet .collection-empty-plus{top:44%;font-size:clamp(10px,1.7vw,20px);opacity:.55}
.collection-cabinet .collection-cabinet-label,.collection-cabinet.special .collection-cabinet-label{bottom:6%;left:3%;right:3%;font-size:clamp(6px,.75vw,10px);color:#ebd19a;font-weight:500;text-align:center;text-shadow:0 1px 3px #000,0 0 4px #000}
.collection-cabinet.special .collection-cabinet-label{font-weight:700;color:#ffe4a0}
@media(max-height:650px) and (orientation:landscape){.collection-cabinet .collection-cabinet-label,.collection-cabinet.special .collection-cabinet-label{font-size:6px}.collection-toolbar{bottom:2.5%}}

/* Compact controls and inventory, keeping the inventory grid responsive. */
.brand .sigil img{display:block;width:100%;height:100%;object-fit:contain}
.exchange-ui #exchange,.exchange-ui #continueExchange{width:78%;margin-left:auto;margin-right:auto;min-height:42px;padding:9px 12px;font-size:13px;gap:7px;letter-spacing:1px}
.exchange-ui #exchange:before,.exchange-ui #continueExchange:before{font-size:20px}
#marketButton,#leaderboardButton,#collectionButton{min-width:94px;min-height:36px;padding:6px 10px;font-size:13px;gap:6px;letter-spacing:1px}
#marketButton .entry-icon,#leaderboardButton .entry-icon,#collectionButton .entry-icon{width:22px;height:22px}
#starterGiftButton{width:126px}#starterGiftButton>strong{font-size:12px;padding:4px 0}
.warehouse-drawer{--drawer-width:clamp(310px,39vw,440px);bottom:10%;top:16%}
#warehouseDrawer #warehouseToggle,#warehouseDrawer #tempWarehouseToggle{width:51px;padding:8px 5px;gap:5px;border-radius:0 8px 8px 0}
#warehouseDrawer #warehouseToggle{height:66px;min-height:0}
#warehouseDrawer #tempWarehouseToggle{top:74px;height:76px;min-height:0}
#warehouseDrawer .entry-icon{width:23px;height:23px}
#warehouseToggle .warehouse-handle-label,#tempWarehouseToggle .entry-label{font-size:11px;letter-spacing:1px}
.warehouse-drawer #inventory.warehouse-panel{padding:12px}
.warehouse-heading h2{font-size:22px}.warehouse-values{gap:7px}
@media(max-height:650px) and (orientation:landscape){
 .exchange-ui #exchange,.exchange-ui #continueExchange{width:76%;min-height:34px;font-size:11px;padding:6px 9px;gap:6px}
 .exchange-ui #exchange:before,.exchange-ui #continueExchange:before{font-size:18px}
 #marketButton,#leaderboardButton,#collectionButton{min-width:90px;min-height:29px;padding:3px 9px;font-size:11px;gap:5px}
 #marketButton .entry-icon,#leaderboardButton .entry-icon,#collectionButton .entry-icon{width:19px;height:19px}
 #starterGiftButton{width:106px}#starterGiftButton>strong{font-size:10px}
 .warehouse-drawer{--drawer-width:clamp(300px,38vw,390px);top:16%;bottom:9%}
 #warehouseDrawer #warehouseToggle,#warehouseDrawer #tempWarehouseToggle{width:46px;padding:7px 4px;gap:4px}
 #warehouseDrawer #warehouseToggle{height:59px}#warehouseDrawer #tempWarehouseToggle{top:66px;height:69px}
 #warehouseDrawer .entry-icon{width:21px;height:21px}
 #warehouseToggle .warehouse-handle-label,#tempWarehouseToggle .entry-label{font-size:10px}
 .warehouse-drawer #inventory.warehouse-panel{padding:9px}.warehouse-heading h2{font-size:18px}
}

/* Engraved title and compact starter gift dialog. */
.brand{gap:12px;align-items:center}
.brand h1{font-family:'STZhongsong','Noto Serif SC','Songti SC','SimSun',serif;font-weight:700;font-size:clamp(23px,3.1vw,39px);line-height:1.25;letter-spacing:.09em;color:#efd8a6;background:linear-gradient(180deg,#fff1cb 10%,#dfc38c 58%,#a98952);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;filter:drop-shadow(0 2px 2px #000b);text-shadow:none;margin:0}
.brand .brand-subtitle{font-size:8px;letter-spacing:.25em;color:#b6a47d;margin:5px 0 0;padding-top:5px;border-top:1px solid #c9ac6744;text-shadow:0 1px 3px #000}
#starterGiftPanel{width:min(590px,92vw);padding:18px;max-height:86%;gap:0}
#starterGiftPanel .starter-gift-heading>img{width:105px;height:68px}
.starter-gift-heading h2{font-size:25px;margin:3px 0}
.starter-reward{height:100px}
#starterGiftStatus{min-height:0;margin:10px 0}
@media(max-height:650px) and (orientation:landscape){
 .brand h1{font-size:clamp(20px,3vw,28px);letter-spacing:.06em}
 .brand .brand-subtitle{font-size:6px;letter-spacing:.16em;margin-top:3px;padding-top:3px}
 #starterGiftPanel{width:min(510px,89vw);max-height:88%;padding:10px 14px;border-radius:9px}
 #starterGiftPanel .starter-gift-heading{gap:8px;padding-right:24px}
 #starterGiftPanel .starter-gift-heading>img{width:67px;height:43px}
 .starter-gift-heading small{font-size:6px}.starter-gift-heading h2{font-size:19px;letter-spacing:3px;margin:1px 0}.starter-gift-heading p{font-size:8px}
 .starter-gift-condition{font-size:10px;margin:5px 0 7px}
 #starterGiftRewards{gap:7px}.starter-reward{height:72px;padding:4px;gap:2px}.starter-reward>img{height:40px}.starter-reward strong{font-size:9px}.starter-reward>span{font-size:23px}.starter-reward small{font-size:7px}
 #starterGiftStatus{font-size:9px;line-height:1.4;min-height:0;margin:6px 0;overflow-wrap:anywhere}
 .starter-gift-actions{gap:7px}.starter-gift-actions a,.starter-gift-actions button{font-size:10px;padding:6px 10px}
 #starterGiftClose{font-size:22px;top:4px;right:5px}
}
@media(max-width:600px) and (orientation:portrait){#starterGiftPanel{padding:14px;width:90vw}.starter-gift-heading h2{font-size:22px}#starterGiftPanel .starter-gift-heading>img{width:72px;height:50px}.starter-reward{height:90px}.starter-reward>img{height:48px}.starter-reward strong{font-size:10px}.starter-gift-actions{flex-wrap:wrap}}

#warehouseDrawer.collection-selecting{z-index:31}
#warehouseDrawer.collection-selecting .warehouse-heading:after{content:'点击物品放入展柜';position:absolute;top:100%;left:0;right:0;padding:4px;background:#183439;color:#f0d59b;text-align:center;font-size:11px;z-index:2}
#warehouseDrawer.collection-selecting .warehouse-heading{position:relative;margin-bottom:24px}
#warehouseDrawer.collection-selecting #warehouseSell,#warehouseDrawer.collection-selecting #tempWarehouseToggle{display:none}

/* Keep exchange hints directly above their own buttons on phones. */
.exchange-ui #result,.exchange-ui #candleStatus{position:static;inset:auto;width:100%;text-align:center}
.exchange-ui #message{margin:0 0 6px;font-size:10px;line-height:1.45}
.exchange-ui #candleStatus{font-size:9px;line-height:1.4;margin:0 0 7px}
.warehouse-drawer{bottom:3%}
.warehouse-values{display:flex;flex-direction:column;align-items:stretch;gap:5px;min-width:0}
#inventory #warehousePeak,#inventory #total{display:flex;justify-content:space-between;gap:10px;min-width:0;padding:6px 8px;white-space:nowrap;text-align:left;font-size:10px}
.warehouse-heading-actions{align-self:center;flex-shrink:0}
#soundToggle{position:absolute;right:calc(100% + 9px);top:5px;width:28px;height:28px;min-width:0;min-height:0;padding:0;border:1px solid #bda57177;border-radius:50%;color:#e7cb8d;background:#10242ac9;font-size:17px}
@media(max-height:650px) and (orientation:landscape){.warehouse-drawer{bottom:2%}.warehouse-values{gap:4px}#inventory #warehousePeak,#inventory #total{font-size:9px;padding:5px 6px}.warehouse-values strong{font-size:12px}.exchange-ui #result,.exchange-ui #candleStatus{position:static;inset:auto;width:100%;text-align:center}.exchange-ui #message{font-size:9px;line-height:1.4;margin:0 0 5px}.exchange-ui #candleStatus{font-size:8px;margin-bottom:5px}#soundToggle{width:24px;height:24px;font-size:15px;right:calc(100% + 6px)}}

#soundToggle{position:fixed;top:auto;right:10px;bottom:8px;z-index:35}#audioCredit{position:fixed;right:44px;bottom:15px;color:#a99b78;font-size:8px;text-decoration:none;z-index:35}

#game,#game *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}#game img{-webkit-user-drag:none}#game input,#game textarea,#game [contenteditable=true]{-webkit-user-select:text;user-select:text}

#ravenSpeech{position:absolute;z-index:20;max-width:min(220px,32vw);padding:11px 14px;border:1px solid #9c875a99;border-radius:10px;background:linear-gradient(135deg,#182024f5,#080f14f5);box-shadow:0 5px 18px #0008;color:#f0ddb5;font-size:13px;line-height:1.6;letter-spacing:.04em;pointer-events:none;overflow-wrap:anywhere;text-shadow:0 1px 2px #000}
#ravenSpeech:after{content:'';position:absolute;left:var(--tail,20px);bottom:-6px;width:10px;height:10px;transform:rotate(45deg);background:#0c1419;border-right:1px solid #9c875a99;border-bottom:1px solid #9c875a99}
@media(max-height:650px) and (orientation:landscape){#ravenSpeech{max-width:min(170px,29vw);padding:7px 10px;font-size:10px;border-radius:7px;line-height:1.5}}

/* A readable speech balloon anchored over the raven's head. */
#ravenSpeech{max-width:min(260px,35vw);padding:12px 17px;border:1.5px solid #d5b777;border-radius:12px;background:linear-gradient(145deg,#202a30fa,#080f15fa);color:#fff0cc;font-size:15px;font-weight:600;line-height:1.5;letter-spacing:.04em;text-align:center;box-shadow:0 7px 24px #000b,0 0 0 3px #09111666,inset 0 1px #fff2;overflow:visible}
#ravenSpeech:before{content:'';position:absolute;top:3px;left:15px;right:15px;height:1px;background:linear-gradient(90deg,transparent,#e0bd7466,transparent)}
#ravenSpeech:after{bottom:-7px;width:12px;height:12px;border-right:1.5px solid #d5b777;border-bottom:1.5px solid #d5b777;background:#0c151b}
@media(max-height:650px) and (orientation:landscape){#ravenSpeech{max-width:min(215px,37vw);padding:8px 12px;font-size:11.5px;border-radius:9px;line-height:1.45;box-shadow:0 4px 15px #000b,0 0 0 2px #09111666,inset 0 1px #fff2}#ravenSpeech:after{width:10px;height:10px;bottom:-6px}}

/* GPU rotation and rarity scaling share the image's center, preventing offset. */
img[src$="item-034.webp"],#offering img[src$="item-034.webp"],#offering .reward-slot img[src$="item-034.webp"]{transform-origin:50% 50%}
#game[data-phase=idle] #altar{cursor:pointer}

#temporaryInventory .temp-warehouse-item{display:grid;grid-template-columns:30px minmax(0,1fr);gap:7px}
#temporaryInventory .temp-warehouse-item .temp-item-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:5px;min-width:0}
#temporaryInventory .temp-item-actions button{padding:6px 3px;font-size:10px;min-width:0;border-radius:4px;background:#193338;border-color:#ac965d66}
#temporaryInventory .temp-item-actions .temp-convert{color:#ffe2a0;background:linear-gradient(135deg,#65502c,#3d3524);border-color:#c7a55c88}
@media(max-height:650px) and (orientation:landscape){#temporaryInventory .temp-item-actions button{font-size:9px;padding:5px 2px}#temporaryInventory .temp-warehouse-item{gap:6px}}

.wallet-row{display:flex;align-items:center;gap:8px}.top-actions #achievementButton{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;width:42px;min-width:42px;padding:3px;border:1px solid #8d80574d;background:#101e24c9;border-radius:8px;font-size:8px;color:#a5a496}.top-actions #achievementButton svg{width:28px;height:28px}.top-actions #achievementButton.unlocked{color:#f2cc75;border-color:#d2ad6688;box-shadow:0 0 12px #e8ba4522}
#achievementPanel{width:min(440px,90vw);padding:24px;background:linear-gradient(135deg,#24373b,#0b1920);color:#e9d5a7;border:1px solid #b69b62;border-radius:12px}#achievementPanel::backdrop{background:#02090fc9;backdrop-filter:blur(4px)}#achievementPanel>small{font-size:8px;letter-spacing:2px;color:#ab9b75}#achievementPanel h2{margin:5px 0 18px;font-size:23px;letter-spacing:4px}.achievement-close{position:absolute;right:10px;top:6px;background:none;border:0;color:#dfc895;font-size:25px}.mouse-achievement{display:grid;grid-template-columns:84px 1fr;gap:12px;align-items:center;padding:15px;border:1px solid #9f8b5e66;border-radius:8px;background:#07121966}.mouse-badge{color:#e5c176;filter:grayscale(1);opacity:.4}.mouse-badge svg{width:80px;height:80px}.unlocked .mouse-badge{filter:drop-shadow(0 0 8px #d9af4544);opacity:1}.mouse-achievement h3{font-size:19px;margin:0 0 7px}.mouse-achievement p{font-size:11px;line-height:1.6;margin:0 0 8px;color:#aab7a8}#achievementStatus{font-size:11px;color:#a3aa9b}.unlocked #achievementStatus{color:#f5cf76}.achievement-counter{grid-column:1/-1;text-align:center;border-top:1px solid #a18c5b44;padding-top:12px;font-size:12px;color:#b9b69e}.achievement-counter b{font-size:25px;color:#f4d694;padding:0 8px}.achievement-note{text-align:center;font-size:10px;color:#9baf9e;margin:13px 0 0}.storage-item-flight{position:fixed;z-index:10002;pointer-events:none;filter:drop-shadow(0 0 5px var(--rarity));will-change:left,top,transform,opacity}.storage-item-flight img{width:100%;height:100%;object-fit:contain;transform-origin:center}
@media(max-height:650px) and (orientation:landscape){.wallet-row{gap:5px}.top-actions #achievementButton{width:34px;min-width:34px;padding:2px;font-size:7px}.top-actions #achievementButton svg{width:23px;height:23px}#achievementPanel{padding:16px;max-height:90vh}#achievementPanel h2{margin-bottom:10px}.mouse-achievement{padding:10px;grid-template-columns:65px 1fr;gap:9px}.mouse-badge svg{width:62px;height:62px}.mouse-achievement h3{font-size:17px}.mouse-achievement p{font-size:10px}.achievement-counter{padding-top:8px}.achievement-note{margin-top:9px}}

.exchange-ui #message{color:#fff1cb;font-weight:600;padding:7px 9px;border:1px solid #b9a16a77;border-radius:6px;background:#08151bdd;text-shadow:0 1px 2px #000;box-shadow:0 3px 10px #0004;line-height:1.5}
#temporaryInventory #tempWarehouseItems{grid-template-columns:minmax(0,1fr);gap:10px}
#temporaryInventory .temp-warehouse-item{grid-template-columns:42px minmax(0,1fr);padding:10px;gap:8px}
#temporaryInventory .temp-warehouse-item>img{width:40px;height:40px}
#temporaryInventory .temp-item-actions button{display:block!important;visibility:visible!important;min-height:30px;font-size:11px;padding:7px 6px}
#temporaryInventory .temp-item-actions{width:100%;gap:8px}
@media(max-height:650px) and (orientation:landscape){.exchange-ui #message{font-size:10px;padding:5px 7px}.temp-warehouse-item strong{font-size:11px}#temporaryInventory .temp-item-actions button{font-size:10px;min-height:28px}}

/* The badge itself is the entry; the number is always visible underneath. */
.top-actions #achievementButton,.top-actions #achievementButton.unlocked,.top-actions #achievementButton:hover{width:42px;min-width:42px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;gap:0;color:#efd18c;line-height:1}
.top-actions #achievementButton svg{width:34px;height:34px;filter:grayscale(1) brightness(.7) drop-shadow(0 2px 3px #0008)}
.top-actions #achievementButton.unlocked svg{filter:drop-shadow(0 2px 3px #0009) drop-shadow(0 0 3px #e2bd6033)}
#badgeCount{font-size:11px;line-height:1.2;font-weight:700;color:#edd39d;text-shadow:0 1px 3px #000;font-variant-numeric:tabular-nums}
.top-actions{gap:8px}.wallet-row{gap:7px;align-items:flex-start}
.top-actions #wallet{min-width:124px;min-height:39px;padding:5px 12px 5px 7px;gap:7px;font-size:16px}#wallet .coin-icon{width:28px;height:28px}
.exchange-ui #message{padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:#eee0bf;font-weight:500;text-shadow:0 1px 4px #000,0 0 8px #0008}
@media(max-height:650px) and (orientation:landscape){.top-actions{gap:3px}.wallet-row{gap:4px}.top-actions #achievementButton,.top-actions #achievementButton.unlocked{width:32px;min-width:32px}.top-actions #achievementButton svg{width:27px;height:27px}#badgeCount{font-size:9px}.top-actions #wallet{min-width:107px;min-height:32px;padding:4px 10px 4px 6px;gap:5px;font-size:14px}#wallet .coin-icon{width:24px;height:24px}.exchange-ui #message{padding:0;background:none;border:0;box-shadow:none;font-size:9px}}

#achievementButton[hidden]{display:none!important}
#mouseRewardPopup{position:fixed;inset:0;z-index:10010;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;background:transparent;border:0;box-shadow:none;color:#ffe3a0;text-align:center;text-shadow:0 2px 5px #000,0 0 15px #000;isolation:isolate}
#mouseRewardPopup.automatic{pointer-events:none}.mouse-reward-art svg{width:132px;height:132px;filter:drop-shadow(0 5px 10px #0009) drop-shadow(0 0 16px #e8bd6266)}
#mouseRewardPopup h2{margin:0;font-size:28px;letter-spacing:4px}#mouseRewardPopup p{margin:0;font-size:13px;color:#f0d8aa}
#claimMouseBadge{margin-top:8px;min-width:130px;padding:10px 25px;border:1px solid #f2d78d;border-bottom:3px solid #805e2c;border-radius:7px;color:#302619;background:linear-gradient(130deg,#ffedb8,#c2994c);font-size:16px;font-weight:700;letter-spacing:5px;box-shadow:0 4px 15px #0007}
.mouse-badge-flight{position:fixed;z-index:10011;width:132px;height:132px;pointer-events:none;filter:drop-shadow(0 0 10px #e8bd6288)}.mouse-badge-flight svg{width:100%;height:100%}
@media(max-height:650px) and (orientation:landscape){#mouseRewardPopup{gap:6px}.mouse-reward-art svg{width:95px;height:95px}#mouseRewardPopup h2{font-size:22px}#mouseRewardPopup p{font-size:11px}#claimMouseBadge{font-size:13px;min-width:110px;padding:7px 18px;margin-top:5px}.mouse-badge-flight{width:95px;height:95px}}

.mouse-reward-art{transform-style:preserve-3d;will-change:transform,opacity;filter:drop-shadow(0 0 8px #e4b96833)}
.mouse-reward-art svg{display:block}.top-actions #achievementButton.unlocked svg{filter:drop-shadow(0 2px 3px #000b) drop-shadow(0 0 4px #e0b45244)}

/* Brighter raven medallion with an orbiting rim and restrained specular sheen. */
.brand .sigil{position:relative;isolation:isolate;overflow:visible;filter:drop-shadow(0 2px 5px #0009)}
.brand .sigil img{position:relative;z-index:1;border-radius:50%;filter:brightness(1.35) contrast(1.08) saturate(1.12) drop-shadow(0 0 5px #e7bf6355)}
.brand .sigil:before{content:'';position:absolute;inset:-6px;border-radius:50%;background:radial-gradient(circle at 50% 3%,#fff4c8 0 2px,transparent 3px),conic-gradient(from 0deg,#ffe6a8,transparent 18%,#d0a95644 42%,transparent 64%,#d9b96855 84%,#ffe6a8);mask:radial-gradient(closest-side,transparent calc(100% - 2px),#000 calc(100% - 1.5px));-webkit-mask:radial-gradient(closest-side,transparent calc(100% - 2px),#000 calc(100% - 1.5px));filter:drop-shadow(0 0 4px #f4cc7199);animation:ravenIconOrbit 9s linear infinite;pointer-events:none}
.brand .sigil:after{content:'';position:absolute;inset:1px;z-index:2;border-radius:50%;background:linear-gradient(115deg,transparent 38%,#fff0bf44 46%,#fff8dcaa 50%,transparent 58%);background-size:280% 100%;background-position:150% 0;mix-blend-mode:screen;animation:ravenIconShine 5.5s ease-in-out infinite;pointer-events:none}
@keyframes ravenIconOrbit{to{transform:rotate(360deg)}}@keyframes ravenIconShine{0%,30%{background-position:150% 0;opacity:0}40%{opacity:.65}64%{background-position:-60% 0;opacity:0}100%{background-position:-60% 0;opacity:0}}
.stolen-notice{position:fixed;left:50%;top:46%;z-index:10008;transform:translate(-50%,-50%);pointer-events:none;width:max-content;max-width:94vw;text-align:center;color:#ffba9c;text-shadow:0 3px 0 #301b18,2px 0 #301b18,-2px 0 #301b18,0 5px 18px #000;line-height:1.5}
.stolen-notice strong{display:block;font-size:clamp(24px,4vw,46px);font-weight:900;letter-spacing:.1em}.stolen-notice small{display:block;margin-top:8px;font-size:clamp(10px,1.3vw,15px);color:#efddbe;letter-spacing:.12em;text-shadow:0 2px 5px #000}
@media(max-height:650px) and (orientation:landscape){.brand .sigil:before{inset:-5px}.stolen-notice strong{font-size:clamp(22px,3.8vw,32px)}.stolen-notice small{margin-top:5px;font-size:10px}}
@media(prefers-reduced-motion:reduce){.brand .sigil:before,.brand .sigil:after{animation:none}.brand .sigil:after{opacity:0}}

/* Portrait mode is a true gate; there is no scaled portrait-play bypass. */
#portrait{display:none;position:fixed;inset:0;z-index:2147483646;padding:32px 22px;text-align:center;background:radial-gradient(ellipse at 50% 35%,#243a3d,#08161e 70%);color:#f1d59c;align-items:center;justify-content:center;flex-direction:column;gap:0;overflow:auto}
#portrait .portrait-rotation-icon{width:96px;height:96px;font-size:0;margin-bottom:22px;filter:drop-shadow(0 0 13px #cfae5b33)}.portrait-rotation-icon svg{width:100%;height:100%}
#portrait h2{font-size:26px;font-family:serif;letter-spacing:4px;font-weight:600;margin:0 0 13px}#portrait p{font-size:12px;color:#afc0b3;line-height:1.8;margin:0}
#portraitContinue{margin-top:28px;padding:12px 25px;min-width:180px;color:#30271a;background:linear-gradient(135deg,#f4dfaa,#bc934f);border:1px solid #e7ca87;border-bottom:3px solid #775b30;border-radius:8px;font-size:15px;font-weight:700;letter-spacing:2px;box-shadow:0 6px 18px #0005}
#portraitContinue:disabled{opacity:.65}#portraitStatus{margin-top:15px;max-width:280px;font-size:11px;line-height:1.7;color:#a7b6a6}
@media(orientation:portrait){#game,body.portrait-preview #game{visibility:hidden!important;pointer-events:none!important}#portrait,body.portrait-preview #portrait{display:flex!important}body.portrait-preview #game{min-width:0;width:100vw;height:100svh;transform:none}}

.brand .sigil{width:60px;height:60px}.brand{gap:16px}
@media(max-height:650px) and (orientation:landscape){.brand .sigil{width:45px;height:45px}.brand{gap:13px}}

.collection-cabinet .collection-exhibit{width:72%;height:58%}.collection-cabinet.special .collection-exhibit{width:78%;height:64%}
.warehouse-item.offered.sale-selectable{opacity:.55;cursor:not-allowed}.warehouse-item.offered.sale-selectable:after{content:'置换中';position:absolute;bottom:2px;left:0;right:0;font-size:8px;text-align:center;color:#ffe2a4;background:#08151bc9}

html,body,body *{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}body img,body a{-webkit-user-drag:none!important}
.collection-cabinet:before{display:none}.collection-glass-zone{position:absolute;display:block;pointer-events:none;border:1px solid transparent;border-radius:2px}
.collection-cabinet.selected .collection-glass-zone,.collection-cabinet:hover .collection-glass-zone{border-color:#f5d58377;box-shadow:inset 0 0 9px #e4bd5822;background:linear-gradient(120deg,#ffe9b50a,transparent)}
.collection-cabinet .collection-glass-zone .collection-exhibit{left:50%;top:50%;width:100%;height:100%;max-width:100%;max-height:100%;scale:1;translate:-50% -50%;object-fit:contain;transform-origin:center}
.collection-cabinet.special .collection-glass-zone .collection-exhibit{width:106%;height:106%;max-width:106%;max-height:106%}.collection-glass-zone .collection-empty-plus{top:50%}
#marketPanel .market-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}#marketPanel .market-card{height:275px;padding:12px}#marketPanel .market-picture{height:130px}#marketPanel .market-picture img{max-width:100%;width:100%;height:100%;object-fit:contain}
@media(max-height:650px) and (orientation:landscape){#marketPanel .market-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}#marketPanel .market-card{height:212px;padding:8px}#marketPanel .market-picture{height:85px}}
@media(max-width:650px){#marketPanel .market-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

#ravenSpeech:after{left:-7px;top:var(--tail-y,16px);bottom:auto;width:11px;height:11px;border:0;border-left:1.5px solid #d5b777;border-bottom:1.5px solid #d5b777}
#tutorialPrompt{width:min(440px,90vw);padding:24px;background:linear-gradient(135deg,#263b3d,#0c1c24);border:1px solid #bda16a;border-radius:12px;color:#ecd4a2}#tutorialPrompt::backdrop{background:#020b11b8;backdrop-filter:blur(3px)}#tutorialPrompt small{font-size:8px;letter-spacing:2px;color:#a59a76}#tutorialPrompt h2{font-size:23px;letter-spacing:2px;margin:10px 0}#tutorialPrompt p{font-size:12px;line-height:1.8;color:#b6c4b4}#tutorialPrompt>div{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}#tutorialPrompt button{font-size:12px;padding:9px 16px}#tutorialYes{background:linear-gradient(135deg,#efdaa2,#b88d48);color:#302717;font-weight:700}
#tutorialCoach{position:fixed;right:2%;bottom:3%;z-index:70;width:min(270px,38vw);padding:12px 14px;border:1px solid #c3a66b;border-radius:8px;background:#0d2129f5;box-shadow:0 5px 20px #0008;color:#f3dfac}#tutorialCoach small{display:block;font-size:9px;color:#ccb579;margin-bottom:5px}#tutorialCoach strong{display:block;font-size:12px;font-weight:500;line-height:1.6}#tutorialExit{display:block;margin:7px 0 0 auto;font-size:9px;padding:3px 7px;background:none;color:#aeb8a6;border-color:#b09d6444}#tutorialCoach[data-step=exchange],#tutorialCoach[data-step=waiting],#tutorialCoach[data-step=done]{right:auto;left:2%}
.tutorial-target{outline:2px solid #ffda79!important;outline-offset:3px;box-shadow:0 0 0 5px #f1c76833,0 0 18px #e9bf5e66!important}
@media(max-height:650px) and (orientation:landscape){#tutorialPrompt{padding:18px}#tutorialPrompt h2{font-size:20px}#tutorialPrompt p{font-size:11px}#tutorialPrompt>div{margin-top:12px}#tutorialCoach{padding:8px 10px;width:min(235px,36vw)}#tutorialCoach strong{font-size:10px}#tutorialCoach small{font-size:8px}#tutorialExit{font-size:8px;margin-top:4px}}

#tutorialEntry,#manualSaveButton{display:inline-flex;align-items:center;justify-content:center;pointer-events:auto;margin-top:7px;padding:4px 11px;border:1px solid #bba16a77;border-radius:5px;background:#102930b8;color:#e4ce9b;font-size:10px;line-height:1.4;letter-spacing:1px;box-shadow:0 2px 7px #0004}#tutorialEntry:hover,#manualSaveButton:hover{border-color:#f0d18d;background:#2b4141}
#ravenSpeech:after{content:'';left:-14px;right:auto;top:calc(var(--tail-y,18px) - 9px);bottom:auto;width:14px;height:18px;transform:none;border:0;border-radius:0;clip-path:polygon(0 50%,100% 0,100% 100%);background:#d5b777;z-index:0}
#ravenSpeech:before{content:'';left:-11px;right:auto;top:calc(var(--tail-y,18px) - 7px);bottom:auto;width:12px;height:14px;transform:none;border:0;border-radius:0;clip-path:polygon(0 50%,100% 0,100% 100%);background:#1b252c;z-index:1}
@media(max-height:650px) and (orientation:landscape){#tutorialEntry,#manualSaveButton{margin-top:4px;padding:3px 8px;font-size:9px}}

#tutorialCoach{z-index:10032;width:220px;padding:12px;max-height:calc(100vh - 100px);overflow:auto}#tutorialNext{margin-top:9px;padding:7px 10px;background:#d5b775;color:#272319;font-size:11px;font-weight:700;border-color:#f1d89e}#tutorialExit{margin-top:7px}
#tutorialShade{position:fixed;inset:0;z-index:10030;pointer-events:none}#tutorialShade i{position:absolute;display:block;background:rgba(40,44,47,.73);pointer-events:auto}#tutorialShade .tutorial-window{position:absolute;border:2px solid #ffe09a;border-radius:5px;box-shadow:0 0 17px #f7cf7677;pointer-events:none}
#tutorialArrow{position:fixed;inset:0;width:100vw;height:100vh;z-index:10041;pointer-events:none;display:none;overflow:visible;filter:drop-shadow(0 2px 3px #000a)}.guide-arrow-path{fill:none;stroke:#ffe09a;stroke-width:3;stroke-linecap:round}
body.tutorial-market-open #marketPanel{left:var(--guide-column);right:12px;width:calc(100vw - var(--guide-column) - 12px);max-width:none;transform:translateY(-50%);height:90%;max-height:90%}body.tutorial-market-open #marketSearch,body.tutorial-market-open #marketSort,body.tutorial-market-open .affordable,body.tutorial-market-open .market-intro{display:none}body.tutorial-market-open #marketRarity{width:100%;min-width:0}body.tutorial-market-open #marketGrid{grid-template-columns:repeat(2,minmax(0,1fr))}body.tutorial-market-open .market-title{gap:6px;padding-right:15px}body.tutorial-market-open .market-title .tag{display:none}body.tutorial-market-open .market-title h2{font-size:19px}body.tutorial-market-open .market-wallet strong{font-size:16px}
body.tutorial-warehouse-open #warehouseDrawer.open{left:var(--guide-column);right:12px;width:calc(100vw - var(--guide-column) - 12px);transform:none}body.tutorial-warehouse-open #warehouseToggle{left:-46px!important;right:auto!important}body.tutorial-warehouse-open #tempWarehouseToggle{display:none!important}
@media(max-height:650px) and (orientation:landscape){#tutorialCoach{width:170px;padding:9px;max-height:calc(100vh - 90px)}#tutorialNext{font-size:10px;padding:6px 7px}.guide-arrow-path{stroke-width:2.5}body.tutorial-market-open .market-status{font-size:8px;gap:4px}body.tutorial-market-open .market-status #marketNotice{max-width:100%}}

#tutorialPrompt{position:fixed;margin:0;transform:none;overflow:auto} @media(max-height:650px) and (orientation:landscape){#tutorialPrompt{padding:14px}#tutorialPrompt h2{font-size:18px}#tutorialPrompt p{font-size:10px}#tutorialPrompt button{font-size:10px;padding:7px 10px}}

/* In-game filter menus */
.brand .sigil{top:-12px}
#marketPanel .market-dropdown-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:1;min-width:105px;height:44px;padding:9px 12px;margin:0;border:1px solid #ad965e70;border-radius:5px;background:linear-gradient(180deg,#223637,#101f25);color:#e7d8b8;font-size:14px;letter-spacing:0;text-align:left;white-space:nowrap}#marketPanel .market-dropdown-trigger[aria-expanded=true]{border-color:#e4c581;box-shadow:0 0 0 2px #c5a45c22}.dropdown-chevron{font-size:18px;line-height:1;color:#d9bc79;transition:transform .18s}.market-dropdown-trigger[aria-expanded=true] .dropdown-chevron{transform:rotate(180deg)}
.market-dropdown-menu{position:fixed;z-index:10040;overflow-y:auto;padding:5px;background:linear-gradient(145deg,#263b3e,#0e2027);border:1px solid #c5a464;border-radius:7px;box-shadow:0 10px 28px #000a;scrollbar-width:thin;scrollbar-color:#ac955a #102127;overscroll-behavior:contain}.market-dropdown-menu button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:35px;padding:8px 10px;border:1px solid transparent;border-radius:4px;background:transparent;color:#cdd4c6;font-size:12px;letter-spacing:0;text-align:left}.market-dropdown-menu button>span:first-child{display:flex;align-items:center;gap:8px}.market-dropdown-menu i{width:7px;height:7px;border-radius:50%;box-shadow:0 0 6px currentColor}.market-dropdown-menu button:hover,.market-dropdown-menu button:focus-visible{background:#d6b96f1c;border-color:#dfc07b55;outline:none}.market-dropdown-menu button[aria-selected=true]{background:#c7a25c26;color:#ffe1a0}.dropdown-check{visibility:hidden;color:#efcf88}.market-dropdown-menu [aria-selected=true] .dropdown-check{visibility:visible}
@media(max-height:650px) and (orientation:landscape){.brand .sigil{top:-10px}#marketPanel .market-dropdown-trigger{height:38px;font-size:12px;padding:7px 9px;gap:7px}.market-dropdown-menu button{min-height:32px;font-size:11px;padding:7px 9px}}
body.tutorial-market-open #marketSort{display:none}

#tutorialNext:not([hidden]){animation:tutorialNextShake 2.8s ease-in-out infinite;transform-origin:50% 65%}
@keyframes tutorialNextShake{0%,68%,100%{transform:translateX(0) rotate(0)}73%,83%{transform:translateX(-3px) rotate(-1deg)}78%,88%{transform:translateX(3px) rotate(1deg)}93%{transform:translateX(-1px) rotate(0)}}
@media(prefers-reduced-motion:reduce){#tutorialNext:not([hidden]){animation:none}}

.warehouse-footer{flex-wrap:wrap}#dailyGiftReward>img{object-fit:contain;filter:drop-shadow(0 0 6px #dfb94a55)}

/* Each reward owns a bounded image area and two text rows. */
#starterGiftRewards{flex-shrink:0;align-items:stretch}.starter-reward{display:grid;grid-template-rows:minmax(0,1fr) auto auto;height:116px;min-height:0;overflow:hidden;gap:5px;padding:9px 7px}.welfare-reward-art{display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;width:100%;height:100%;overflow:hidden}.welfare-reward-art img{display:block;flex-shrink:0;width:100%;height:100%;object-fit:contain}.welfare-reward-art img[src$="item-034.webp"]{width:44px;height:110px;max-width:none;max-height:none;transform:none;transform-origin:center}.starter-reward strong,.starter-reward small{display:block;max-width:100%;margin:0;text-align:center;line-height:1.35;overflow-wrap:anywhere}.starter-reward strong{font-size:11px}.starter-reward small{font-size:9px}.starter-gift-actions{flex-shrink:0}
@media(max-height:650px) and (orientation:landscape){.starter-reward{height:84px;padding:6px 5px;gap:3px}.welfare-reward-art img[src$="item-034.webp"]{width:34px;height:90px}.starter-reward strong{font-size:10px}.starter-reward small{font-size:8px}}

/* Suppress native tap and selection overlays on game controls. */
#game,#game *,#tutorialEntry,#tutorialCoach *,#tutorialPrompt *{-webkit-tap-highlight-color:transparent!important;-webkit-touch-callout:none!important}#tutorialEntry,#altar,#starterGiftButton,#marketButton,#leaderboardButton,#collectionButton,#warehouseToggle,#tempWarehouseToggle,#tutorialEntry *,#altar *,#starterGiftButton *,#marketButton *,#leaderboardButton *,#collectionButton *{-webkit-user-select:none!important;user-select:none!important;touch-action:manipulation}#tutorialEntry:focus,#altar:focus,#starterGiftButton:focus,#marketButton:focus,#leaderboardButton:focus,#collectionButton:focus{outline:none}#game ::selection{background:transparent;color:inherit}.warehouse-item.swap-target{outline:2px solid #ffe19a;outline-offset:-3px;box-shadow:inset 0 0 14px #e5bd7055}#warehouseDropPreview.swap-ready{border-color:#ffe19a;background:#e8be7033;color:#ffe9b6;display:flex;align-items:center;justify-content:center;font-size:10px;text-shadow:0 1px 3px #000}

#videoSupportDialog{width:min(440px,90vw);margin:auto;padding:24px;background:linear-gradient(135deg,#263b3d,#0c1c24);border:1px solid #bda16a;border-radius:12px;color:#ecd4a2}#videoSupportDialog::backdrop{background:#020b11bf;backdrop-filter:blur(3px)}#videoSupportDialog h2{font-size:23px;margin:10px 0}#videoSupportDialog small{font-size:8px;letter-spacing:2px;color:#ad9b73}#videoSupportDialog p{font-size:12px;line-height:1.7;margin:10px 0}.video-support-close{position:absolute;right:9px;top:7px;padding:1px 7px;border:0;background:none;font-size:24px}.video-support-actions-state{display:flex;justify-content:space-between;gap:8px;margin:16px 0}.video-support-actions-state span{flex:1;padding:9px 5px;text-align:center;background:#09191e;border:1px solid #8d825344;border-radius:5px;font-size:12px;color:#a7b6ab}.video-support-actions-state .done{color:#e9d594;border-color:#cbb26e}.video-support-buttons{display:flex;gap:9px;justify-content:flex-end;margin-top:15px;flex-wrap:wrap}.video-support-buttons a,.video-support-buttons button{font-size:12px;padding:9px 12px;text-decoration:none;border-radius:5px}.video-support-buttons a{color:#e1cf9d;border:1px solid #a48c5666}#videoSupportVerify{background:linear-gradient(135deg,#eddaa0,#b78e4b);color:#292315;font-weight:700}#videoSupportStatus{min-height:38px}#videoSupportDialog *{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;user-select:none}@media(max-height:450px){#videoSupportDialog{padding:14px 18px;max-height:92vh}#videoSupportDialog h2{font-size:19px;margin:5px 0}#videoSupportDialog p{font-size:10px;margin:7px 0}.video-support-actions-state{margin:10px 0}.video-support-actions-state span{padding:6px 4px;font-size:11px}.video-support-buttons{margin-top:9px}.video-support-buttons a,.video-support-buttons button{font-size:10px;padding:7px 9px}}

button#audioCredit{border:0;background:transparent;padding:4px;color:inherit;font-family:inherit;cursor:pointer}#modalContent{overflow-wrap:anywhere}

/* Use a transform anchor supported by older embedded WebViews. */
#crow{translate:none!important;transform:translate(-50%,-94%)}

#saveStatus{position:fixed;bottom:max(3px,env(safe-area-inset-bottom));left:8px;z-index:10020;max-width:65vw;padding:3px 6px;font-size:9px;color:#c6c2a2;background:#0b1b20d9;border:0;white-space:normal;text-align:left}

#manualSaveButton{margin-left:8px;gap:5px;vertical-align:top;min-width:64px;-webkit-tap-highlight-color:transparent!important;-webkit-touch-callout:none!important;-webkit-user-select:none!important;user-select:none!important;touch-action:manipulation}#manualSaveButton svg{width:13px;height:13px;flex-shrink:0}#manualSaveButton:focus{outline:none}#manualSaveButton:disabled{opacity:.65;cursor:wait}#manualSaveButton.saved{border-color:#cbdca0;color:#e0e9bd}

.starter-gift-actions{flex-wrap:wrap}

#saveStatus.save-error{max-width:min(760px,82vw);font-size:10px;line-height:1.6;overflow-wrap:anywhere;color:#f1d0a1}
