/* P1 Items 2 & 3: Star-Wish Coin Decomposition, Weekly 8-Slot Exchange Shop & Formula A Compensation */

.title-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.title-actions .soft-button{padding:7px 13px;font-size:12px;position:relative}
.wish-pill{border-color:#d8bc7e!important;background:linear-gradient(135deg,#fffbf0,#f8eed3)!important;color:#5a411a}
.wish-pill b{position:absolute;top:-5px;right:-4px;min-width:16px;height:16px;padding:0 4px;border-radius:99px;background:#ec4d5b;color:#fff;font:700 10px/16px var(--sans);text-align:center;border:1px solid var(--paper)}

.wish-entry-card{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:6px 0 14px;padding:13px 15px;border-radius:18px;border:1px solid #d5b978;background:linear-gradient(135deg,#3a2b4f,#251b36 62%,#43311b);color:#f7ecd0;box-shadow:0 5px 14px #2c1e3b26,inset 0 0 0 1px #ffffff18}
.wish-entry-card h2{font:800 17px var(--serif);margin:0 0 3px;display:flex;align-items:center;gap:6px;flex-wrap:wrap;color:#f4dc98}
.wish-entry-card p{font-size:11px;margin:0 0 4px;color:#d3c6de}
.wish-entry-card small{font-size:11px;color:#ebd69d}
.wish-entry-card strong{font:800 14px Georgia;color:#ffe28a}
.wish-entry-card .claim-button{width:auto;min-width:96px;padding:0 14px;min-height:36px;flex-shrink:0;background:linear-gradient(#e7c572,#bd913b);color:#2b1f14;font-size:12px;letter-spacing:.5px}
.wish-dot-badge{display:inline-block;padding:1px 7px;border-radius:99px;background:#ec4d5b;color:#fff;font:700 10px/1.5 var(--sans);letter-spacing:0}

.wish-wallet-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 15px;border-radius:16px;border:1px solid #d8bf84;background:linear-gradient(135deg,#342648,#221931);color:#f4e6c2;box-shadow:0 4px 12px #2c203824;margin-bottom:14px}
.wish-wallet-main span{display:block;font-size:11px;color:#c9bdd6}
.wish-wallet-main strong{font:800 24px/1.2 Georgia;color:#ffe28c}
.wish-wallet-meta{text-align:right;font-size:11px;line-height:1.6;color:#d6cae2}
.wish-wallet-meta b{color:#f6d98c;font-weight:700}

.wish-comp-card{padding:14px 15px;border-radius:16px;border:1px solid #d4ab53;background:linear-gradient(135deg,#fff8e3,#f6e6bb);color:#3b2d1b;box-shadow:0 4px 12px #8a641b1e;margin-bottom:16px}
.wish-comp-card h2{font:800 16px var(--serif);margin:0 0 4px;color:#5c3d0d}
.wish-comp-card p{font-size:12px;line-height:1.65;margin:0 0 10px;color:#6c5330}
.wish-comp-card .primary-button{width:100%;min-width:0;min-height:40px;font-size:14px;letter-spacing:1.5px;padding:8px 16px}

.comp-breakdown{display:grid;gap:6px;margin:10px 0 14px;padding:10px 12px;border-radius:12px;background:#fffbf0;border:1px solid #e1cfa5}
.comp-row{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px;color:#6a5842}
.comp-row strong{font:700 13px Georgia;color:#3d2d17}
.comp-row.total{border-top:1px dashed #d6be89;padding-top:7px;margin-top:2px;font-weight:700;color:#4f3512}
.comp-row.total strong{font-size:16px;color:#b27a18}

.wish-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:18px 0 4px}
.wish-section-head h2{font:800 18px var(--serif);margin:0;color:var(--ink)}
.wish-section-head small{font-size:11px;color:#8e8298}
.wish-rule-note{font-size:11px;line-height:1.65;color:#8f8299;margin:0 0 11px}

.wish-shelf-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.wish-offer{position:relative;display:flex;flex-direction:column;border:1px solid #ded1ba;border-radius:15px;background:#fffdf7;padding:10px;box-shadow:0 3px 7px #47364e12;min-width:0}
.wish-offer.slot-sp{grid-column:1 / -1;border:2px solid #d5aa52;background:linear-gradient(135deg,#fffbf0,#f9efd6 65%,#f4e4f4);box-shadow:0 5px 14px #946f2622}
.wish-offer.slot-ur{border-color:#c6a6ef;background:linear-gradient(180deg,#fdfaff,#fffcf6)}
.wish-offer.redeemed{opacity:.72;background:#f4f0e8}

.wish-offer-top{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:6px}
.wish-slot-tag{font-size:10px;font-weight:700;padding:2px 7px;border-radius:99px;background:#efe6d5;color:#6e5633;white-space:nowrap}
.slot-sp .wish-slot-tag{background:linear-gradient(90deg,#c8922f,#a85ca6);color:#fff}
.slot-ur .wish-slot-tag{background:#ece2fa;color:#5c3a94}
.wish-owned-tag{font-size:10px;color:#8d7f96;white-space:nowrap}
.wish-owned-tag.is-new{color:#b57d1f;font-weight:700}

.wish-offer-body{display:flex;align-items:center;gap:10px;margin-bottom:8px;min-width:0}
.wish-offer:not(.slot-sp) .wish-offer-body{flex-direction:column;text-align:center;gap:4px}
.wish-offer-art{width:68px;height:68px;flex-shrink:0;display:grid;place-items:center;overflow:hidden;border-radius:11px;background:radial-gradient(circle,#fff,#efe7d4);border:1px solid #e7dbc3}
.slot-sp .wish-offer-art{width:82px;height:82px;border-color:#dfc182}
.wish-offer-art img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;image-rendering:pixelated;padding:4px;box-sizing:border-box;display:block}
.wish-offer-info{flex:1;min-width:0}
.wish-offer-info h3{font:800 13px/1.35 var(--serif);margin:0 0 2px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.slot-sp .wish-offer-info h3{font-size:15px}
.wish-offer-info small{display:block;font-size:10px;color:#8e8097;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wish-offer-price{display:inline-flex;align-items:center;gap:3px;margin-top:4px;font:800 13px Georgia;color:#9b6c19}

.wish-offer .claim-button{min-height:32px;font-size:12px;margin-top:auto;letter-spacing:0}
.slot-sp .claim-button{background:linear-gradient(#3d2b53,#251a36);color:#f3d98e}

.wish-decompose-box{border:1px solid #dfd3bd;border-radius:16px;background:#fffcf4;padding:12px;box-shadow:0 3px 8px #4a3a4c10;margin-bottom:14px}
.wish-decompose-box .pill-group{margin-bottom:10px;max-width:100%}
.wish-decompose-box .pill-group button{font-size:12px;padding:5px 11px}
.wish-preview-stats{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.wish-grade-chip{font-size:11px;padding:2px 8px;border-radius:99px;background:#f3ecdc;color:#5a4d60;border:1px solid #e3d6be}
.wish-grade-chip b{font-family:Georgia;color:#2f2438}
.wish-decompose-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:8px;font-size:12px;color:#6c5e74}
.wish-decompose-summary strong{font:800 16px Georgia;color:#a27119}
.wish-safety-note{font-size:11px;color:#8e7e67;margin:8px 0 0;line-height:1.5}

.wish-excess-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.wish-excess-card{border:1px solid #dfd2bc;border-radius:14px;background:#fffaf1;padding:10px;display:flex;flex-direction:column;gap:6px;min-width:0}
.wish-excess-top{display:flex;align-items:center;gap:8px;min-width:0}
.wish-excess-top img{width:48px;height:48px;object-fit:contain;image-rendering:pixelated;flex-shrink:0}
.wish-excess-meta{min-width:0;flex:1}
.wish-excess-meta h3{font:700 12px/1.3 var(--serif);margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wish-excess-meta small{display:block;font-size:10px;color:#93849b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wish-excess-counts{font-size:11px;color:#6d5e74;display:flex;justify-content:space-between;align-items:center}
.wish-excess-counts b{color:#a16f18;font-family:Georgia}
.wish-excess-card .claim-button{min-height:30px;font-size:11px;letter-spacing:0}

.wish-confirm-actions{display:flex;gap:8px;margin-top:12px}
.wish-confirm-actions button{flex:1;min-width:0}

/* 2:1 full-bleed panoramic SP scenes: fill the entire .scene-box edge-to-edge without showing default grass */
.scene-box.is-full-scene{background:#120d1d}
.scene-box.is-full-scene .habitat-canvas,.scene-box.is-full-scene .scene-fill{display:none}
.scene-box.is-full-scene .scene-sprite{position:absolute;inset:0;left:0;top:0;right:0;bottom:0;width:100%;height:100%;max-width:none;max-height:none;transform:none!important;animation:none!important;object-fit:cover;object-position:center;filter:none}

@media(max-width:360px){
  .wish-entry-card{flex-direction:column;align-items:stretch}
  .wish-entry-card .claim-button{width:100%}
  .wish-wallet-bar{flex-direction:column;align-items:flex-start}
  .wish-wallet-meta{text-align:left}
}

/* ===== 卡包兑换（分解上方 / 兑换下方） ===== */
.wish-pack-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:6px}
.wish-pack-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;border:1px solid #ded1ba;border-radius:15px;background:linear-gradient(180deg,#fffdf7,#f8f1e4);padding:12px 10px 10px;box-shadow:0 3px 7px #47364e12;cursor:pointer;font:inherit;color:inherit;text-align:center;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.wish-pack-card:hover:not(:disabled){transform:translateY(-2px);border-color:var(--pack-color,#c9b184);box-shadow:0 6px 16px #47364e2b}
.wish-pack-card:active:not(:disabled){transform:translateY(0)}
.wish-pack-card:disabled{opacity:.55;cursor:not-allowed}
.wish-pack-card:focus-visible{outline:2px solid var(--pack-color,#7b8b7c);outline-offset:2px}
.wish-pack-art{display:block;width:58px;aspect-ratio:300 / 440}
.wish-pack-art .pack-art{display:block;width:100%;height:100%;filter:drop-shadow(0 3px 6px #2b1f3838)}
.wish-pack-name{font:800 13px var(--sans,sans-serif);color:var(--ink,#2c2436);line-height:1.3}
.wish-pack-meta{font-size:11px;color:#8e8298;line-height:1.3}
.wish-pack-price{margin-top:2px;padding:3px 12px;border-radius:999px;background:var(--pack-color,#7b8b7c);color:#fff;font:700 12px var(--sans,sans-serif);letter-spacing:.02em;box-shadow:0 2px 6px #2b1f3826}
@media (max-width:420px){.wish-pack-grid{gap:8px}.wish-pack-art{width:50px}.wish-pack-name{font-size:12px}.wish-pack-price{font-size:11px;padding:3px 9px}}

/* ===== 兑换码入口与弹窗 ===== */
#footer .redeem-entry{width:auto;height:17px;border-radius:9px;padding:0 7px;font:600 10px var(--sans);letter-spacing:.5px;border-color:#b3a7b5;color:#8f7f96}
.redeem-form{display:flex;gap:8px;margin:12px 0 0}
.redeem-form input{flex:1 1 auto;width:auto;min-width:0;border:1px solid #d8d1c6;border-radius:10px;padding:10px 12px;background:#fffdf9;font-size:14px;letter-spacing:1px;color:#51445c}
.redeem-form input::placeholder{color:#b0a2b7;letter-spacing:0}
.redeem-form .claim-button{flex:0 0 88px;width:88px;min-width:88px;padding:0;background:linear-gradient(#e7c572,#bd913b);color:#2b1f14;letter-spacing:.5px}
.redeem-result{font-size:13px;line-height:1.6;margin:11px 0 0;color:#b5564f}
.redeem-result.is-ok{color:#4f7f4a}
.redeem-history{font-size:11px;color:#9d91a2;margin:11px 0 0;line-height:1.7}
.redeem-history b{color:#7f6b8c;font-weight:600}
