.market-page{max-width:1040px;margin:auto}.market-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px}.market-heading h1{font-size:46px;text-transform:none;margin:8px 0}.market-heading .eyebrow{font-size:9px}.market-inventory{display:flex;flex-wrap:wrap;gap:9px}.market-inventory>span{border:1px solid #eabe7030;background:#eabe700a;border-radius:20px;padding:9px 12px;font-size:11px;color:#b6c4be}.market-inventory b{color:#f2d18a}.market-tabs{display:flex;gap:5px;padding:5px;border:1px solid #eabe7026;background:#0d2028;border-radius:10px;margin-bottom:25px;overflow-x:auto}.market-tabs button{flex:1;border:0;border-radius:6px;background:transparent;color:#9fb3b7;padding:12px 14px;font-size:12px;white-space:nowrap}.market-tabs button.active{color:#f5d699;background:#eabe7019;box-shadow:inset 0 0 0 1px #eabe7035}.market-page button:focus-visible,.market-page select:focus-visible{outline:2px solid #f1cc83;outline-offset:3px}.market-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:30px 0 17px}.market-section-heading h2{font-size:27px;margin:0}.market-section-heading>span{font-size:11px;color:#8fa8ae}.market-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.market-product{min-width:0;display:flex;flex-direction:column;border:1px solid #d0b37b2c;border-radius:13px;padding:22px;background:radial-gradient(ellipse at 30% 0,#eabe700b,transparent 65%),linear-gradient(145deg,#1b333b,#12252d)}.market-product h3{font:500 26px Oswald,sans-serif;margin:7px 0}.market-product p{font-size:12px;line-height:1.65;margin:7px 0 18px}.market-product>.market-buy{margin-top:auto}.market-buy{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:12px 14px;border:1px solid #eabe705c;border-radius:7px;background:#eabe7014;color:#f1d193;font-weight:600;font-size:12px}.market-buy:hover:not(:disabled){background:#eabe702b;border-color:#eabe70}.market-page button:disabled{opacity:.4;cursor:default}.market-price{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-variant-numeric:tabular-nums}.market-price .berry-symbol{width:22px;height:22px}.market-object{height:120px;display:grid;place-items:center;color:#d0b57f;margin:0 0 15px}.market-object svg{height:115px;width:100%;max-width:180px;fill:#eabe7008;stroke:currentColor;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}.market-pack-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.market-booster-product{display:grid;grid-template-columns:110px minmax(0,1fr);gap:17px;align-items:center}.market-booster-product .market-object{margin:0}.market-booster-product h3{font-size:25px}.market-booster-product .eyebrow{font-size:9px}.market-gift{display:grid;grid-template-columns:110px minmax(0,1fr) auto;gap:12px 22px;align-items:center;padding:26px;border:1px solid #eabe7045;border-radius:14px;background:radial-gradient(ellipse at 15% 50%,#cf9e4120,transparent 70%),linear-gradient(130deg,#253b3c,#14282e)}.market-gift h2{font-size:31px;margin:8px 0 14px}.market-gift p{font-size:11px;line-height:1.6;margin:12px 0 0}.market-gift>.primary{padding:14px 18px;font-size:12px}.market-gift>small{grid-column:2/-1;font-size:10px;color:#8fa7a8}.market-gift-art svg{width:100%;fill:#eabe7014;stroke:#eabe70;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.daily-loot{display:flex;gap:16px;flex-wrap:wrap}.daily-loot>span{display:flex;gap:5px;align-items:center;font-size:13px;color:#edd093}.daily-loot .berry-symbol{width:22px;height:22px}.market-daily-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.market-daily-card{padding:15px;background:#142a31;border:1px solid #ffffff10;border-radius:13px;min-width:0}.market-card-preview{max-width:220px;margin:0 auto 15px;pointer-events:none}.market-footnote{font-size:11px;line-height:1.8;color:#8fa8af}.market-pending{display:flex;align-items:center;justify-content:center;gap:12px;border:1px solid #eabe7039;border-radius:9px;padding:6px 12px;margin-bottom:20px;color:#d5be91;font-size:12px}.mystery-product .eyebrow{color:var(--item-color);font-size:9px}.mystery-art{display:flex;flex-direction:column;align-items:center;justify-content:space-around;width:95px;aspect-ratio:63/88;border:2px solid var(--item-color);border-radius:7px;margin:4px auto 25px;background:radial-gradient(ellipse,#385665,#0b202b 70%);color:var(--item-color);box-shadow:0 10px 30px #0004,0 0 24px color-mix(in srgb,var(--item-color) 12%,transparent);transform:rotate(-7deg)}.mystery-art span{font:9px Oswald;letter-spacing:1px}.mystery-art b{font:52px Georgia}.mystery-art small{font-size:17px}.ship-product .eyebrow{font-size:8px;letter-spacing:1px}.ship-product.owned{border-color:#7cbb9340}.ship-product.locked .market-object{opacity:.4}.ship-capacity{font:500 33px Oswald;color:#e9c583;margin:10px 0 20px}.ship-capacity small{font:11px 'DM Sans',sans-serif;color:#98afb2;margin-left:10px}.potion-product .market-object{color:#b5d5ac}.potion-product.stage-2 .market-object{color:#dcad67}.potion-product.stage-3 .market-object{color:#c6a0dd}.potion-product .eyebrow{font-size:8px;letter-spacing:1px}.use-provision{font-size:11px;padding:12px 0 0;text-align:center}.haki-forge{display:grid;grid-template-columns:1.4fr 1fr;gap:32px;padding:28px;margin-top:25px;border:1px solid #b98bd351;border-radius:13px;background:radial-gradient(ellipse at 100% 50%,#80459122,transparent 70%),#172831}.haki-forge h2{font-size:30px;margin-top:12px}.haki-forge p{font-size:12px}.haki-forge .market-buy{max-width:310px}.forge-controls{display:flex;flex-direction:column;gap:13px;justify-content:center}.forge-controls label{font-size:12px;color:#ccb7de}.forge-controls select{max-width:100%;background:#0d202a;border:1px solid #b295cc55;color:#e3d9eb;padding:12px;border-radius:7px;font-size:12px}.forge-controls small{font-size:10px;text-align:center;color:#b7a3c7}.forge-controls .primary{font-size:12px}.market-discovery{text-align:center}.daily-completed{margin-top:12px;border:1px solid #8db29a2a;border-radius:9px;background:#7aa18a07}.daily-completed summary{cursor:pointer;padding:13px 16px;color:#9bb6a5;font-size:12px}.daily-completed>.mission-list{padding:0 12px 12px}.daily-completed:not([open])>.mission-list{display:none}.booster-purchased{text-align:center;font-size:11px;color:#d8bd87;margin-top:12px}.booster-purchased button{font-size:11px;padding:7px 12px}.empty-reserve-cta{display:block;margin:15px auto 0;font-size:12px;padding:12px 17px}.reservegauge .reserve-slot{min-width:0}.batch-label{text-align:center;color:#e8c684;font-size:12px;margin:0 auto 20px}.batch-best{margin:25px auto}.batch-best h2{font-size:24px}.batch-best .opening-summary{max-width:650px}.real-money-product{opacity:.45;border-style:dashed}.real-money-product button{opacity:1!important}.real-money-product .market-object{font-size:50px}.real-money-product .berry-symbol{width:65px;height:65px}.tcg.haki-full-art .card-inner{background:#12242e}.tcg.haki-full-art .art{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;margin:0!important;border:0!important;z-index:0}.tcg.haki-full-art .art:after{content:'';position:absolute;inset:0;background:linear-gradient(#091620bb,transparent 30%,#09162055 55%,#091620f5)}.tcg.haki-full-art .card-header{background:linear-gradient(#0d2027bb,transparent);color:#fff}.tcg.haki-full-art .card-type{margin-top:auto;color:#fff;border-color:#ffffff40}.tcg.haki-full-art .card-info{flex:0;color:#fff;background:none!important}.tcg.haki-full-art .card-flavor{color:#fff!important}.tcg.haki-full-art .card-footer{color:#fff;border-color:#ffffff40}.tcg.haki-full-art .card-symbol{color:var(--r);background:#10232ccc}.tcg.haki-full-art .foil{opacity:.25}.tcg.haki-full-art h3{color:#fff;text-shadow:0 2px 5px #000}
@media(max-width:800px){.market-gift{grid-template-columns:80px 1fr}.market-gift>.primary{grid-column:2;justify-self:start}.market-gift>small{grid-column:1/-1}.market-booster-product{grid-template-columns:1fr;gap:0}.market-booster-product .market-object,.market-booster-product .market-object svg{height:80px}.market-daily-cards{gap:12px}.market-product{padding:18px}.market-gift{padding:20px}.haki-forge{gap:20px}.market-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){header nav{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;gap:2px}header nav button{flex-shrink:0;font-size:11px;padding:10px 8px}.market-heading{align-items:flex-start}.market-heading h1{font-size:36px}.market-heading .eyebrow{font-size:7px;letter-spacing:1.5px}.market-inventory{justify-content:flex-end;gap:5px}.market-inventory>span{padding:7px 9px;font-size:9px}.market-tabs button{padding:10px;font-size:10px}.market-tabs{margin-bottom:18px}.market-section-heading{align-items:flex-start;flex-direction:column;gap:6px;margin-top:25px}.market-section-heading h2{font-size:25px}.market-product h3{font-size:23px}.market-product{padding:15px}.market-product p{font-size:11px}.market-buy{padding:10px 9px;font-size:10px;gap:5px}.market-price .berry-symbol{height:18px;width:18px}.market-gift{grid-template-columns:55px 1fr;gap:12px}.market-gift h2{font-size:27px}.market-gift .eyebrow{font-size:8px;letter-spacing:1px}.daily-loot{gap:9px}.daily-loot>span{font-size:11px}.market-daily-cards{gap:8px}.market-daily-card{padding:6px}.market-daily-card .market-buy{flex-direction:column;gap:4px}.market-daily-card .tcg h3{font-size:clamp(7px,6cqw,12px)}.market-daily-card .tcg .card-symbol{width:12px;height:12px;font-size:7px}.market-daily-card .tcg .card-header{padding:4px}.market-daily-card .tcg .card-info{padding:3px}.market-daily-card .tcg .card-footer{font-size:2.8cqw;margin:0 4px;padding:3px 0}.market-daily-card .tcg .card-type{margin:0 4px}.haki-forge{grid-template-columns:1fr;padding:20px}.ship-capacity{font-size:30px}.ship-capacity small{display:block;margin:3px 0 0}.market-object{height:95px}.market-object svg{height:90px}.market-pending{flex-direction:column;gap:0}.market-footnote{font-size:10px}.reservegauge .reserve-icon{font-size:12px}}
.daily-ownership{display:flex;flex-direction:column;align-items:center;gap:5px;padding:2px 0 13px;font-variant-numeric:tabular-nums;text-align:center;min-height:58px}.daily-ownership-badge{display:inline-flex;align-items:center;border:1px solid #79ba963b;border-radius:20px;padding:4px 9px;background:#79ba9612;color:#9acbad;font-size:10px;font-weight:600}.daily-ownership.missing .daily-ownership-badge{border-color:#eabe7055;background:#eabe7017;color:#efcc88}.daily-ownership strong{font-size:12px;color:#c8d6d4;font-weight:500}.daily-ownership small{font-size:9px;color:#88a1a8}.market-booster-product .market-object{min-width:0;overflow:hidden}.market-object svg.market-chest-scene{display:block;width:min(100%,180px);height:auto;max-width:180px;aspect-ratio:180/160;overflow:hidden;fill:none;stroke:#d3b77d;stroke-width:2}.market-chest-scene .chest-lid{fill:#172c34;stroke:#927849}.market-chest-scene .pack-wrapper{fill:#29444d;stroke:#e3c88d}.market-chest-scene .pack-seal{fill:none;stroke:#a98d59;stroke-width:1.3}.market-chest-scene .pack-emblem{fill:#e3c88d;stroke:none}.market-chest-scene .chest-body{fill:#203239}.market-chest-scene .chest-lock{fill:#30444a}.potion-rates{display:grid;grid-template-columns:1fr;gap:6px;padding:0 0 18px;font-size:11px;color:#9ab1b5}.potion-rates>span{display:flex;align-items:center;justify-content:space-between;gap:8px}.potion-rates b{color:#edd39f;font-variant-numeric:tabular-nums}.potion-product p.potion-duration{font-size:11px;color:#d0bb90;margin-bottom:12px}@media(max-width:600px){.daily-ownership{gap:4px;min-height:52px;padding-bottom:10px}.daily-ownership-badge{font-size:8px;padding:4px 5px}.daily-ownership strong{font-size:9px}.daily-ownership small{font-size:7px;line-height:1.5}.potion-rates{font-size:10px}}

.potion-rates-caption{font-size:9px;color:#79959f;margin-bottom:3px}
.market-booster-product .market-object{height:auto;min-height:0}@media(max-width:800px){.market-booster-product{gap:12px}}

.forge-controls input[type="search"],#trade-offer-search,.trade-choice-section input[type="search"]{width:100%;min-width:0;box-sizing:border-box;background:#0d2029;color:var(--text);border:1px solid #ffffff30;border-radius:8px;padding:12px;margin-bottom:12px}.market-thank-you{border:1px solid #b8975a66;border-radius:12px;background:#20353c;padding:20px;margin-bottom:20px}.market-thank-you h2{margin-top:0}
#mystery-booster{display:block;width:min(100%,420px);box-sizing:border-box;padding:12px;margin:8px 0 20px;background:#0d2029;color:var(--text);border:1px solid #ffffff30;border-radius:8px}

/* Long card labels must not widen the Haki workshop on a phone. */
.haki-forge{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}.haki-forge>div,.forge-controls{min-width:0}.forge-controls select{width:100%;max-width:100%;min-width:0;box-sizing:border-box;text-overflow:ellipsis}.haki-forge button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
@media(max-width:600px){.haki-forge{grid-template-columns:minmax(0,1fr);padding:18px;gap:22px}.forge-controls input[type="search"],.forge-controls select{font-size:16px;min-height:46px}.forge-controls .primary{width:100%;min-height:46px}.haki-forge h2{overflow-wrap:anywhere}}

.recycle-tiers{list-style:none;padding:0;display:grid;gap:8px;margin:20px 0}.recycle-tiers li{padding:10px 12px;background:#ffffff08;border:1px solid #ffffff12;border-radius:8px;color:var(--gold)}.recycle-card-preview{max-width:220px;margin:12px auto}.recycle-card-preview>.card{width:100%;pointer-events:none}#recycle-result p{font-size:13px;line-height:1.65}#recycle-result strong{color:var(--gold)}

/* Keep discovery dialogs centered in the mobile visual viewport. */
.card-dialog.market-discovery{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(460px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow-x:hidden;overflow-y:auto;padding:16px;}
.market-discovery .modal-card{box-sizing:border-box;width:min(330px,100%);max-width:100%;margin:16px auto;min-width:0;}
.market-discovery .modal-card>.card.tcg{display:block;position:relative;left:auto;right:auto;width:100%;max-width:100%;margin-inline:auto;transform:none!important;translate:none!important;rotate:none!important;}
[data-claim-mission][aria-busy=true],[data-claim-collection][aria-busy=true],[data-market-action="daily-gift"][aria-busy=true]{cursor:progress;opacity:.75;}

@keyframes trade-receipt-in{from{opacity:0;transform:translateY(18px) scale(.9)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes trade-receipt-glow{0%{filter:drop-shadow(0 0 0 transparent)}50%{filter:drop-shadow(0 0 16px #eabe7080)}100%{filter:drop-shadow(0 0 0 transparent)}}
.trade-receipt-animation .modal-card{animation:trade-receipt-in .45s ease-out both,trade-receipt-glow .8s ease-out;transform-origin:center;}
@media(prefers-reduced-motion:reduce){.trade-receipt-animation .modal-card{animation:none;}}
/* Keep the one-card chest reveal centered throughout the 3-D flip. */
.opening-screen .reveal-stage{margin-inline:auto;max-width:calc(100vw - 48px);box-sizing:border-box;}
.opening-screen .flip-shell{width:100%;margin:0;left:auto;right:auto;transform-origin:50% 50%;}
.opening-screen .flip-inner,.opening-screen .flip-face{box-sizing:border-box;transform-origin:50% 50%;}
.opening-screen .flip-front .card.tcg{position:relative!important;inset:auto!important;margin:0!important;width:100%!important;max-width:100%!important;height:100%!important;transform:none!important;translate:none!important;rotate:none!important;animation:none!important;}
.opening-screen .flip-inner,.opening-screen .flip-shell.turned .flip-inner{transform:none;transform-style:flat;}
.opening-screen{overflow-x:clip;}
.gift-form{display:grid;gap:12px}.gift-form select,.gift-form textarea{width:100%;box-sizing:border-box;min-height:44px;background:#10242d;color:#fff;padding:10px;border:1px solid #ffffff40;border-radius:8px}.gift-form textarea{min-height:80px}.resource-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.resource-grid p{padding:12px;background:#ffffff09;border-radius:8px}.gift-note{white-space:pre-wrap;overflow-wrap:anywhere}

.legendary-exchange-page{max-width:640px;margin:auto}
.legendary-exchange-page h2{margin-top:24px}
.legendary-exchange-page .forge-controls{margin-top:20px}
.legendary-exchange-page ul{margin:0;padding:0;list-style:none;display:grid;gap:8px}
.legendary-exchange-page li{display:flex;align-items:center;justify-content:space-between;gap:8px}
.market-provisions-grid .potion-product>.market-buy:first-of-type{margin-top:auto}

.market-compact-provisions{margin-top:15px}
.market-compact-provisions .market-object,.market-compact-provisions .market-object svg{height:56px}
