:root{font-family:system-ui,-apple-system,"PingFang SC","Microsoft Yahei",sans-serif;color:#293f3b;background:#f2f2e9;font-size:16px;--muted:#7a8277;--line:#d4d8cc;--yellow:#daba4a;--q0:#48bc83;--q1:#4c9be1;--q2:#a75cdd;--q3:#e1b649;--q4:#ea6464;--q5:#95d9d8}*{box-sizing:border-box}body{margin:0}button{font:inherit;color:inherit;cursor:pointer;border:1px solid var(--line);background:#e6ebe0;border-radius:14px;padding:15px 20px;font-weight:650;transition:background .15s,transform .15s}button:hover:not(:disabled){background:#dce3d5}button:active:not(:disabled){transform:translateY(1px)}button:disabled{opacity:.4;cursor:default}button.primary{background:var(--yellow);border-color:var(--yellow);color:#fff}button.primary:hover{background:#c9aa3c}button.small{padding:9px 13px;font-size:.9rem;border-radius:10px}button.ghost{background:transparent}.page{max-width:1120px;margin:auto;padding:30px 30px 120px}.top{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.brand{font-size:.8rem;letter-spacing:.17em;color:var(--muted);margin-bottom:6px}h1{font-size:1.8rem;margin:0;font-weight:750;letter-spacing:.03em}h2{font-size:1.15rem;margin:0 0 14px}h3{font-size:1rem;margin:0}.money{font-size:1.6rem;color:#82694d;font-variant-numeric:tabular-nums}.sub{font-size:.88rem;color:var(--muted)}.topright{display:flex;align-items:center;gap:15px}.layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:22px;align-items:start}.stack{display:grid;gap:18px}.card{background:#fafbf5;border:1px solid var(--line);border-radius:22px;padding:24px}.row{display:flex;align-items:center;justify-content:space-between;gap:15px}.divider{height:1px;background:var(--line);margin:20px 0}.container-art{height:225px;display:flex;align-items:center;justify-content:center;overflow:hidden}.container-art svg{width:90%;height:100%;filter:drop-shadow(0 12px 4px #35473712)}.badge{display:inline-block;font-size:.8rem;background:#e7eadf;padding:5px 10px;border-radius:7px;color:#687361}.stat{font-size:1.5rem;font-weight:650;font-variant-numeric:tabular-nums}.bidders{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.bidder{border:1px solid var(--line);border-radius:16px;padding:18px 7px;text-align:center;background:#f8f9f2;transition:background .2s}.bidder.lead{border-color:#c6a638;background:#f8f0ca}.bidder.out{opacity:.45}.avatar{display:flex;justify-content:center;margin-bottom:8px}.avatar svg{height:36px;width:36px}.bidder strong{display:block;font-size:1rem}.bidder .sub{margin-top:6px;font-size:.8rem}.clue{line-height:1.8;margin:0;color:#5f6c61}.investigate{display:grid;gap:16px}.investigate .row{align-items:start}.info-text{font-size:.92rem;line-height:1.65;margin:6px 0 0;color:#697568}.info-result{margin-top:10px;padding:12px;background:#eaf0e1;border-radius:10px;font-size:.95rem;line-height:1.7}.price{white-space:nowrap}.footnote{font-size:.8rem;line-height:1.7;color:#7b8378;margin:12px 0 0}.bottom{display:flex;gap:12px;margin-top:20px}.bottom button{flex:1}.bottom .primary{flex:1.8}.bighero{font-size:2.8rem;font-weight:740;letter-spacing:-.04em;font-variant-numeric:tabular-nums;margin:7px 0}.timer{height:4px;background:#e2e5da;border-radius:4px;margin-top:14px;overflow:hidden}.timer span{display:block;height:100%;background:var(--yellow);transition:width .1s linear}.auction-state{background:#f7f5df}.live-log{list-style:none;padding:0;margin:0;max-height:165px;overflow:auto}.live-log li{font-size:.88rem;padding:8px 0;border-bottom:1px solid #e8eadd;color:#697568}.live-log li:first-child{color:#2d473f}.grid-wrap{padding:14px;background:#dce2d4;border-radius:15px;border:1px solid #aebca7}.cargo-grid{position:relative;aspect-ratio:8/6;background-color:#e9eade;background-image:linear-gradient(to right,#aeb8a280 1px,transparent 1px),linear-gradient(to bottom,#aeb8a280 1px,transparent 1px);background-size:12.5% 16.66667%;overflow:hidden}.item{position:absolute;padding:2px;border-radius:4px;border:1px solid #c0c6b8;background:#d3d7ca;cursor:pointer;overflow:hidden}.item.covered{background:repeating-linear-gradient(135deg,#c6cdbd,#c6cdbd 6px,#cbd1c4 6px,#cbd1c4 12px);border-color:#b7c0ad;display:flex;justify-content:center;align-items:center;color:#808e78}.item.covered span{font-size:clamp(12px,2vw,22px);opacity:.7}.item.revealed{background:#14221d;border-color:var(--quality)}.item img{width:100%;height:100%;object-fit:contain;display:block}.item.revealing{border:2px solid #a7b59c}.item.revealing:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent,#fdfef9c0,transparent);transform:translateX(-100%);animation:scan var(--duration) linear forwards}.item.holo{background:linear-gradient(135deg,#1a1c27,#42677b,#543f73,#1e3236);border-color:#acd8df}.item.holo:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(125deg,transparent 30%,#94dfe333 45%,#d3a2dd44 50%,transparent 65%);background-size:250% 250%;animation:rainbow 4s infinite}.tag{position:absolute;bottom:1px;right:2px;font-size:10px;color:#fff;background:#0009;padding:1px 3px;border-radius:3px}.total{font-size:2rem;font-weight:720;font-variant-numeric:tabular-nums}.positive{color:#537850}.negative{color:#b65a44}.reveal-note{min-height:1.5em;font-size:.9rem;color:#7a8277;margin:12px 0 0}.resultlist{max-height:260px;overflow:auto;margin-top:14px}.resultitem{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #e2e6da}.resultitem img{width:45px;height:45px;object-fit:contain;border-radius:7px;background:#18241f}.resultitem span{flex:1;font-size:.9rem}.q-label{font-size:.8rem}.mobile-only{display:none}dialog{border:1px solid var(--line);border-radius:22px;padding:24px;max-width:460px;width:calc(100% - 32px);background:#f9faf2;color:#293f3b}dialog::backdrop{background:#20372a66;backdrop-filter:blur(3px)}dialog img{height:180px;max-width:100%;object-fit:contain;display:block;margin:10px auto;border-radius:12px;background:#15231c}dialog p{line-height:1.8}#toast{position:fixed;bottom:26px;left:50%;transform:translate(-50%,20px);max-width:90%;padding:12px 20px;border-radius:12px;background:#293f3b;color:#fff;opacity:0;pointer-events:none;transition:.2s;z-index:10}#toast.show{opacity:1;transform:translate(-50%,0)}.catalog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-height:65vh;overflow:auto}.catalog-tile{padding:8px;text-align:center;border:1px solid #dce2d3;border-radius:10px;font-size:.8rem}.catalog-tile img{width:100%;height:80px;margin:0;background:#17221c}.catalog-tile .sub{font-size:.72rem}.toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.toolbar button.active{background:#2d463d;color:white}.mini-note{margin-top:24px;text-align:center;font-size:.75rem;color:#92988b}.cargo-title{margin-bottom:15px}.hidden{display:none!important}@keyframes scan{to{transform:translateX(100%)}}@keyframes rainbow{50%{background-position:100% 100%}}@media(max-width:700px){.page{padding:22px 16px 35px}.top{margin-bottom:20px}.brand{font-size:.68rem}h1{font-size:1.5rem}.money{font-size:1.3rem}.topright{gap:8px}.topright button{padding:8px 10px}.layout{grid-template-columns:1fr;gap:16px}.card{padding:18px;border-radius:18px}.container-art{height:175px}.bidders{gap:8px}.bidder{padding:12px 5px}.avatar svg{height:30px;width:30px}.stat{font-size:1.2rem}.stack{gap:15px}.bighero{font-size:2.5rem}.bottom{position:sticky;bottom:0;background:#f2f2e9ed;padding:12px 0 5px;z-index:4}.bottom button{padding:15px 10px}.grid-wrap{padding:7px}.item{padding:1px}.tag{display:none}.mini-note{font-size:.7rem}.catalog-grid{grid-template-columns:repeat(3,1fr)}}@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition:none!important}}

/* Object cutouts and rarity plates are separate, so every footprint fills consistently. */
.item.revealed,.quality-art{background:radial-gradient(ellipse at 50% 105%,color-mix(in srgb,var(--quality) 48%,transparent),transparent 75%),linear-gradient(145deg,#0b1014,#12141a)!important}
.item.revealed img{padding:clamp(1px,.3vw,4px);object-fit:contain;background:transparent}
.quality-art{padding:5px;border:1px solid color-mix(in srgb,var(--quality) 70%,#15221c)}
.item.holo{background:linear-gradient(135deg,#19202b,#244c52,#46335b,#16372e)!important}

.lost-results{max-height:520px}.resultitem{min-height:64px}

.page{padding-top:max(22px,env(safe-area-inset-top));padding-bottom:max(35px,env(safe-area-inset-bottom))}[hidden]{display:none!important}
@media(display-mode:standalone){html,body{overscroll-behavior-y:contain}}

.mobile-details{display:none}
@media(max-width:700px){
 html,body,#app{height:100%;overflow:hidden}
 .page{height:100dvh;max-height:100dvh;padding: max(8px,env(safe-area-inset-top)) 12px max(8px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:8px}
 .top{flex:none;margin:0;min-height:48px}.brand{display:none}h1{font-size:1.25rem}.money{font-size:1.2rem}.sub{font-size:.875rem}
 .mini-note{display:none}.layout{display:flex;flex:1;min-height:0;flex-direction:column;gap:8px}.stack{display:flex;flex-direction:column;gap:8px;min-height:0}.card{padding:12px;border-radius:14px}h2{font-size:1rem;margin-bottom:8px}.row{gap:8px}.divider{margin:8px 0}.container-art{height:clamp(72px,15dvh,130px)}
 .bidder{padding:7px 4px}.avatar{margin-bottom:3px}.avatar svg{width:24px;height:24px}.bidder .sub{margin-top:3px}.stat{font-size:1.2rem}.clue{font-size:.875rem;line-height:1.5}.info-text{display:none}.investigate{gap:8px}.info-result{font-size:.875rem;line-height:1.4;margin-top:6px;padding:8px}.bottom{position:static;flex:none;margin:0;padding:0;background:none}.bottom button{min-height:44px;padding:10px 8px}.layout>.stack:last-child{flex:1}.layout>.stack:last-child>.bottom{margin-top:auto}.bighero{font-size:2.2rem;margin:3px 0}.footnote{margin:6px 0 0;line-height:1.4}
 .phase-auction .layout>.stack:first-child>.card:last-child,.phase-auction .layout>.stack:last-child>.card:nth-child(2),.phase-auction .layout>.stack:last-child>.footnote,.phase-auction .auction-state>.footnote{display:none}
 .phase-reveal .layout>.stack:last-child>.card,.phase-result .layout>.stack:last-child>.card,.phase-lost .layout>.stack:last-child>.card,.phase-lost .layout>.stack:first-child>.card:last-child{display:none}
 .phase-reveal .layout>.stack:first-child,.phase-result .layout>.stack:first-child{flex:1;min-height:0}.phase-reveal .layout>.stack:last-child,.phase-result .layout>.stack:last-child,.phase-lost .layout>.stack:last-child{flex:none}
 .grid-wrap{padding:5px;max-width:min(100%,calc((100dvh - 295px)*1.33333));margin:auto}.cargo-title{margin-bottom:8px}.reveal-note{margin:6px 0 0;font-size:.875rem}.total{font-size:1.5rem}.mobile-details{display:block;flex:none;min-height:40px;padding:8px;font-size:.875rem}
 dialog{max-height:calc(100dvh - 32px);overflow:auto;padding:18px}dialog .card{margin-bottom:10px}dialog .resultlist{max-height:none;overflow:visible}.catalog-grid{max-height:55dvh}
}
@media(max-width:700px) and (max-height:680px){.page{gap:5px}.layout,.stack{gap:5px}.card{padding:9px}.container-art{height:60px}.avatar{display:none}.top{min-height:42px}.phase-prep .layout>.stack:first-child>.card:last-child h2{display:none}.phase-prep .clue{font-size:.8rem}.phase-prep .info-result{padding:5px;margin-top:3px}.phase-prep .investigate{gap:5px}.phase-prep .divider{margin:5px 0}}

/* Unified mobile screen, v8 */
.cargo-summary{display:grid;grid-template-columns:1fr 1fr;gap:16px}.cargo-summary>div+div{border-left:1px solid var(--line);padding-left:16px}.cargo-summary .total{font-size:1.65rem}.cargo-list h2{margin:0}
.item.holo,.holo-art,.quality-art[style*="#95d9d8"]{background:linear-gradient(130deg,#d4f7f2 0%,#96d5ee 20%,#d6b4ed 40%,#f6c9dc 60%,#f9e7aa 80%,#a6ebe0 100%)!important;border:2px solid #d1f7ef;box-shadow:inset 0 0 0 1px #fff9}.item.holo:after{background:linear-gradient(115deg,transparent 25%,#fff9 48%,transparent 70%);background-size:250% 250%;animation:rainbow 3.8s ease-in-out infinite}.holo-art{border-color:#c3d5f5}
@media(max-width:700px){
 .layout{align-items:stretch;width:100%}.layout>.stack{align-self:stretch;width:100%;flex-shrink:0}.stack>.card,.stack>.bidders,.stack>.bottom{width:100%}.bottom button{white-space:nowrap;font-size:1rem}.bottom>button:first-child{flex:1}.bottom>.primary{flex:1.65}.card{border-radius:15px}.top{min-height:46px}.container-art{height:clamp(70px,15dvh,145px)}
 .phase-prep .layout>.stack:last-child{justify-content:space-between;flex:1;min-height:0}.phase-prep .info-text{display:none}.phase-prep .layout{gap:10px}.phase-prep .investigate .row{align-items:center}
 .phase-auction .layout{display:grid;grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:8px}.phase-auction .layout>.stack{display:contents}.phase-auction .layout>.stack:first-child>.card:first-child{grid-row:1}.phase-auction .bidders{grid-row:2;align-self:start}.phase-auction .layout{display:flex}.phase-auction .layout>.stack{display:flex;flex:initial;min-height:0}.phase-auction .layout>.stack:first-child>.auction-log{display:block;order:4}.phase-auction .layout>.stack:first-child{display:contents}.phase-auction .layout>.stack:last-child{display:contents}.phase-auction .auction-state{order:2}.phase-auction .auction-clues{display:block!important;order:3}.phase-auction .bidders{order:1}.phase-auction .bottom{order:5;margin-top:auto!important}.phase-auction .live-log{max-height:65px}.phase-auction .live-log li{padding:4px 0}.phase-auction .auction-clues .clue{line-height:1.35}.phase-auction .auction-clues>.footnote{display:none}.phase-auction .bighero{font-size:2.25rem}.phase-auction .auction-state{padding:12px 16px}.phase-auction .auction-state .timer{margin-top:9px}
 .cargo-layout{gap:8px}.phase-reveal .cargo-layout>.stack:first-child,.phase-result .cargo-layout>.stack:first-child{flex:none;gap:8px}.cargo-board .grid-wrap{width:100%;max-width:min(100%,calc((100dvh - 350px)*1.33333));margin:0 auto}.cargo-board{padding:10px}.cargo-title{margin-bottom:7px}.cargo-summary{padding:10px 14px}.cargo-summary .total{font-size:1.5rem}.phase-reveal .cargo-layout>.stack:last-child,.phase-result .cargo-layout>.stack:last-child{flex:1;min-height:0;gap:8px}.phase-reveal .cargo-layout .cargo-list,.phase-result .cargo-layout .cargo-list{display:flex!important;flex-direction:column;flex:1;min-height:0}.cargo-list .resultlist{flex:1;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;margin-top:6px}.cargo-list .resultitem{min-height:44px;padding:5px 0;gap:8px}.cargo-list .resultitem img{width:32px;height:32px}.cargo-list .resultitem span{font-size:.875rem}.cargo-list .resultitem .q-label{font-size:.75rem;display:inline-block}.cargo-list .resultitem strong{font-size:.875rem;white-space:nowrap}.cargo-layout .bottom{margin-top:0!important}
 #toast{bottom:auto;top:max(64px,calc(env(safe-area-inset-top) + 54px));font-size:.875rem}
}
@media(max-width:700px) and (max-height:680px){.phase-auction .container-art{height:60px}.phase-auction .auction-clues{padding:8px 12px}.phase-auction .auction-log{padding:8px 12px}.phase-auction .live-log{max-height:40px}.phase-auction h2{margin-bottom:4px}.phase-prep .container-art{height:60px}.phase-prep .layout{gap:6px}.cargo-board .grid-wrap{max-width:min(100%,calc((100dvh - 325px)*1.33333))}}
