
.st-page{max-width:1530px;margin:0 auto;padding:0;color:#eaf0fa}.st-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:0 0 12px}.st-head h1{color:#ffd020;font-size:22px;margin:0 0 3px}.st-head p{font-size:13px;color:#cad4e4;margin:0}.st-counter{border:1px solid #344864;border-radius:50px;background:#1a2b41;padding:5px 11px;font-weight:850}.st-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:0 0 10px}.st-tabs button{border:1px solid #344862;border-radius:8px;background:#141e2c;color:#dbe6fb;padding:9px;font-weight:800;cursor:pointer}.st-tabs button[aria-selected=true]{background:#ffd11b;border-color:#ffd11b;color:#151716}.st-tabs button:hover:not([aria-selected=true]){border-color:#d6b743}.st-layout{display:grid;grid-template-columns:225px minmax(220px,1fr) minmax(330px,470px);gap:12px;align-items:stretch}.st-figures{display:grid;gap:8px}.st-figure{display:grid;grid-template-columns:70px 1fr 35px;gap:7px;align-items:center;text-align:left;color:#e8eefa;background:#132036;border:1px solid #425777;border-radius:9px;padding:6px;min-height:83px;cursor:pointer;font-weight:750}.st-figure img{width:70px;height:65px;object-fit:contain}.st-figure.active{border-color:#f0d272;background:#344050}.st-rank{display:inline-grid;place-items:center;min-width:34px;min-height:34px;font-size:23px;font-weight:900;color:#bdabea}.st-rank-S{color:#fa828d}.st-rank-A{color:#f7d36e}.st-rank-B{color:#cdb3fd}.st-rank-C{color:#8ddcff}.st-rank-D{color:#86d0a9}.st-rank-E{color:#adb4c0}.st-hero{position:relative;background:radial-gradient(ellipse at 50% 43%,#293e66,#101b2f 65%,#0d1523);border:1px solid #354563;border-radius:11px;min-height:610px;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden}.st-hero-label{position:absolute;top:17px;text-align:center;font-size:16px;font-weight:850;z-index:1}.st-statue-img{width:100%;height:500px;max-width:500px;object-fit:contain;filter:drop-shadow(0 12px 22px #000b)}.st-variants{position:absolute;bottom:14px;display:flex;gap:6px}.st-variants button{background:#16263b;border:1px solid #506581;border-radius:6px;padding:6px 13px;color:#d3e0f2;cursor:pointer}.st-variants button[aria-current=true]{background:#f3c934;color:#172136}.st-right{background:linear-gradient(150deg,#17263a,#101b2a);border:1px solid #344a66;border-radius:10px;padding:17px;min-width:0}.st-right h2{font-size:16px;margin:0 0 14px}.st-right h3{font-size:14px;margin:18px 0 9px}.st-meta{display:grid;grid-template-columns:1fr auto;gap:10px;border:1px solid #32445e;border-radius:6px;padding:13px;font-size:12px}.st-meta span{color:#a8b8cf}.st-meta strong{overflow-wrap:anywhere;text-align:right;max-width:200px}.st-unique{margin-top:14px;border:1px solid #45516b;background:#101a2b;padding:12px;border-radius:7px;font-size:12px;line-height:1.5}.st-unique>b{color:#ffe380;font-size:15px}.st-unique p{color:#d4deef}.st-unique span,.st-note{color:#a9bdd4;font-size:12px;line-height:1.6}.st-rank-list{display:flex;gap:9px;flex-wrap:wrap}.st-stats{display:grid;gap:8px}.st-stat{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:82px;border:1px solid #46526a;background:#131f31;border-radius:8px;padding:8px}.st-stat.rank-S{border-color:#8d3c48;background:#361e2b}.st-stat.rank-A{border-color:#8b742e;background:#302a20}.st-stat.rank-B{border-color:#65518e;background:#272037}.st-stat.rank-C{border-color:#36688e;background:#182d40}.st-stat-text{min-width:0;overflow-wrap:anywhere}.st-stat-text strong{font-size:12px}.st-stat-text div{font-size:18px;font-weight:850;color:#ffe992;margin-top:4px}.st-stat-text small{display:block;font-size:10px;color:#9db1c9;margin-top:3px}.st-right button,.st-modal button{cursor:pointer;padding:8px 10px;border:1px solid #566985;background:#1a2e45;border-radius:6px;color:#eaf2ff;font-weight:700}.st-right button:hover,.st-modal button:hover{border-color:#ffdc6f}.st-lock.on{border-color:#e8ba55;background:#55421e}.st-owned{display:flex;gap:10px;align-items:center;padding:10px 0;font-weight:750}.st-owned input{width:18px;height:18px;accent-color:#f4cb3a}.st-between{display:flex;justify-content:space-between;align-items:center;gap:10px}.st-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.st-convert{width:100%;margin-top:14px;background:#ffd028!important;color:#202014!important;border-color:#ffdd64!important;font-weight:900!important;padding:13px!important}.st-cost{display:flex;align-items:center;gap:9px;margin-top:12px;padding:9px;background:#0d1828;border-radius:6px;color:#f6d77a;font-size:12px;font-weight:750}.st-cost img{height:24px;width:24px;object-fit:contain}.st-status{color:#b4c5da;font-size:12px;margin-top:12px}.st-modal-back{position:fixed;inset:0;background:#000c;display:grid;place-items:center;z-index:9999;padding:16px}.st-modal{width:min(780px,100%);max-height:90vh;overflow:auto;background:#101e34;border:1px solid #69a7e9;box-shadow:0 20px 80px #0009;border-radius:10px;padding:20px;color:#eaf0fa}.st-modal h2{font-size:21px;margin:0 0 20px}.st-modal footer{display:flex;gap:10px;flex-wrap:wrap;justify-content:end;margin-top:19px}.st-modal button.st-primary{background:#ffca24;color:#172135;border-color:#f6dc72}.st-field{display:grid;gap:8px;margin:15px 0;font-weight:750}.st-field select,.st-pref select{background:#101829;color:#eaf1fc;border:1px solid #52617d;border-radius:5px;padding:10px;max-width:100%}.st-pref{display:grid;grid-template-columns:1fr 1fr;gap:12px}.st-pref label{display:grid;gap:7px}.st-comparison{display:grid;grid-template-columns:1fr 1fr;gap:15px}.st-comparison section{padding:12px;border:1px solid #41526c;border-radius:8px}.st-comparison p{font-size:12px;border-top:1px solid #344762;padding:7px 0;display:flex;align-items:center;gap:7px}.st-rates{max-height:50vh;overflow:auto}.st-rates table{border-collapse:collapse;width:100%;font-size:12px}.st-rates th,.st-rates td{padding:7px;text-align:left;border-bottom:1px solid #32435b}.st-error{padding:30px;color:#ffb2b2}.st-right .is-auto{color:#f7d368;border-color:#ffe18a}@media(max-width:1150px){.st-layout{grid-template-columns:190px minmax(200px,1fr)}.st-right{grid-column:1/-1}.st-hero{min-height:450px}.st-statue-img{height:390px}}@media(max-width:720px){.st-layout{grid-template-columns:1fr}.st-figures{grid-template-columns:repeat(2,1fr)}.st-figure{grid-template-columns:50px 1fr 30px;min-height:65px;font-size:11px}.st-figure img{width:50px;height:50px}.st-right{grid-column:auto}.st-hero{min-height:400px}.st-statue-img{height:350px}.st-comparison,.st-pref{grid-template-columns:1fr}}

/* Stage 42: reliable icon fallback and visible missing statue image state. */
.st-coin-mark{display:inline-flex;align-items:center;justify-content:center;flex:0 0 25px;width:25px;height:25px;border-radius:50%;border:2px solid #ffe17f;color:#6a4410;background:linear-gradient(145deg,#ffe58b,#c99320);font-weight:900;box-shadow:0 0 0 2px #6d4d1b66;}
.st-image-unavailable{display:flex;justify-content:center;align-items:center;min-height:60px;color:#adbcd2;font-size:12px;padding:10px;text-align:center;}
.st-hero>.st-image-unavailable{min-height:200px;}

/* Stage 45: independent Statues / My List / Simulator sidebars and rank-driven images. */
.st-page .st-layout{grid-template-columns:270px minmax(240px,1fr) minmax(340px,470px);gap:12px}
.st-sidebar{min-width:0;background:linear-gradient(170deg,#132037,#0e182a);border:1px solid #344965;border-radius:10px;padding:12px}
.st-sidebar h2{font-size:13px;color:#b9cbe1;letter-spacing:.035em;margin:0 0 13px;font-weight:850}
.st-sidebar .st-figures{display:grid;grid-template-columns:1fr;gap:9px}
.st-sidebar .st-figure{display:grid;grid-template-columns:104px minmax(0,1fr) 40px;gap:8px;align-items:center;min-height:118px;padding:7px;text-align:left;border-radius:8px;background:#162238;border:1px solid #3d516e;color:#eaf1fb;cursor:pointer;overflow:hidden}
.st-sidebar .st-figure:hover{border-color:#d7b653;background:#202d44}
.st-sidebar .st-figure.active{border:2px solid #e2c14e;background:#263750;box-shadow:inset 0 0 0 1px #e2c14e22}
.st-figure-portrait{display:grid;place-items:center;width:104px;height:101px;border-radius:7px;background:radial-gradient(ellipse at 50% 35%,#385070,#142139 76%);overflow:hidden}
.st-sidebar .st-figure .st-figure-portrait img{display:block;width:104px;height:101px;object-fit:contain;filter:drop-shadow(0 5px 7px #000a)}
.st-figure-text{display:grid;align-content:center;gap:6px;min-width:0}
.st-figure-text strong{font-size:12px;line-height:1.3;overflow-wrap:anywhere}
.st-figure-text small{font-size:10px;line-height:1.3;color:#a7bbd5;font-weight:550}
.st-sidebar .st-figure.is-unowned{border-color:#5a6174;background:#111d30}
.st-sidebar .st-figure.is-unowned .st-figure-portrait{filter:grayscale(.7);opacity:.66}
.st-figure .st-pick-arrow{justify-self:center;font-size:16px;color:#9bb1ca}
.st-grade-icon,.st-grade-placeholder{display:grid;place-items:center;position:relative;width:40px;height:40px;justify-self:center;flex:none}
.st-sidebar .st-figure .st-grade-icon img{display:block;width:40px!important;height:40px!important;object-fit:contain;filter:drop-shadow(0 2px 5px #0009)}
.st-grade-icon b{display:none;font-size:23px;color:#eaf0f9}
.st-grade-icon img[hidden]+b{display:block}
.st-grade-S img[hidden]+b{color:#f3b94c}.st-grade-A img[hidden]+b{color:#c5d6f3}.st-grade-B img[hidden]+b{color:#cd995c}.st-grade-C img[hidden]+b{color:#6db5d9}
.st-grade-placeholder{border:1px solid #4a5973;border-radius:9px;background:#202d41;color:#9eb0c8;font-size:18px}
.st-grade-placeholder.is-locked{color:#cbd0da;background:#283044}
.st-sidehint{margin:14px 3px 0;color:#91a7c0;font-size:11px;line-height:1.6}
.st-hero-label small{display:block;font-size:11px;color:#aec2db;font-weight:550;margin-top:6px}
.st-appearance-note{position:absolute;bottom:17px;color:#a8bad4;font-size:12px;z-index:1}
.st-variants{flex-wrap:wrap;justify-content:center;padding:0 12px}
.st-owned-status{display:flex;gap:9px;align-items:center;color:#8be1ae;border:1px solid #38684c;border-radius:7px;background:#122b24;padding:11px 13px;margin-bottom:10px;font-weight:800;font-size:12px}
.st-locked-message{display:flex;gap:10px;align-items:center;border:1px solid #5c5266;border-radius:7px;padding:18px;color:#c8bbd2;background:#1c2030;font-size:12px;line-height:1.5;margin:14px 0}
.st-unassigned{color:#9caec5!important;font-size:17px;background:#26344a;border:1px solid #53637b;border-radius:7px;min-width:38px;min-height:38px}
.st-stat .st-rank:not(.st-unassigned){font-size:26px}
.st-hero>.st-statue-img{object-fit:contain}
@media(max-width:1220px){.st-page .st-layout{grid-template-columns:248px minmax(240px,1fr)}.st-page .st-right{grid-column:1/-1}}
@media(max-width:760px){.st-page .st-layout{grid-template-columns:minmax(0,1fr)}.st-page .st-right{grid-column:auto}.st-sidebar .st-figures{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.st-sidebar .st-figure{grid-template-columns:74px minmax(0,1fr) 30px;min-height:84px;padding:5px;gap:5px}.st-figure-portrait{width:74px;height:72px}.st-sidebar .st-figure .st-figure-portrait img{width:74px;height:72px}.st-grade-icon,.st-grade-placeholder{width:28px;height:28px}.st-sidebar .st-figure .st-grade-icon img{width:28px!important;height:28px!important}.st-figure-text strong{font-size:10px}.st-figure-text small{font-size:9px}}
@media(max-width:430px){.st-sidebar .st-figures{grid-template-columns:minmax(0,1fr)}.st-sidebar .st-figure{grid-template-columns:90px minmax(0,1fr) 36px;min-height:94px}.st-figure-portrait{width:90px;height:86px}.st-sidebar .st-figure .st-figure-portrait img{width:90px;height:86px}}


/* Stage 46 — Figure Catalog visual polish; only the Statues/preview tab. */
.st-layout-preview .st-sidehint{display:none}
/* The source PNGs have a large transparent top margin. A clipped viewport moves
   the drawing upward without changing the asset or affecting My List/Simulator. */
.st-layout-preview .st-hero{min-height:550px;isolation:isolate}
.st-layout-preview .st-hero .st-preview-art{
  position:absolute;top:50px;bottom:49px;left:10px;right:10px;
  display:flex;align-items:flex-start;justify-content:center;
  overflow:hidden;pointer-events:none;
}
.st-layout-preview .st-preview-art>.st-statue-img{
  display:block;flex:0 0 auto;
  width:min(100%,535px);height:auto;max-width:none;
  object-fit:contain;
  transform:translateY(-10%);
  filter:drop-shadow(0 12px 22px #000b);
}
.st-layout-preview .st-hero>.st-hero-label{top:14px}
.st-layout-preview .st-hero .st-variants{bottom:12px;z-index:2}
.st-layout-preview .st-sidebar .st-figure{min-height:100px;grid-template-columns:90px minmax(0,1fr) 30px}
.st-layout-preview .st-figure-portrait{width:90px;height:86px}
.st-layout-preview .st-figure .st-figure-portrait img{width:90px;height:86px}
.st-layout-preview .st-sidebar .st-figures{gap:8px}
.st-layout-preview .st-sidebar{align-self:stretch}
.st-layout-preview .st-right{align-self:stretch}
.st-unique-value{color:#ffd25e;font-weight:850;text-shadow:0 0 8px #e5a92322}
.st-appearance-list{display:grid;gap:7px;margin-top:10px}
.st-appearance-row{display:flex;align-items:center;gap:9px;padding:8px 10px;border:1px solid #354962;border-radius:7px;background:#111e30;color:#dce7f5;font-size:12px}
.st-appearance-row .st-appearance-dot{width:9px;height:9px;border-radius:50%;background:currentColor;box-shadow:0 0 9px currentColor;flex:none}
.st-appearance-name{font-weight:850}
.st-appearance-grades{font-weight:650;opacity:.86}
.st-appearance-row.is-current{border-color:currentColor;background:linear-gradient(90deg,#23364b,#142135)}
.st-appearance-stone{color:#c6d1de}
.st-appearance-bronze{color:#d9a071}
.st-appearance-silver{color:#a8d5f2}
.st-appearance-gold{color:#ffd45c}
@media(max-width:1220px){
  .st-layout-preview .st-hero{min-height:520px}
  .st-layout-preview .st-hero .st-preview-art{top:49px;bottom:47px}
}
@media(max-width:760px){
  .st-layout-preview .st-sidebar .st-figure{grid-template-columns:74px minmax(0,1fr) 28px;min-height:83px}
  .st-layout-preview .st-figure-portrait{width:74px;height:70px}
  .st-layout-preview .st-figure .st-figure-portrait img{width:74px;height:70px}
  .st-layout-preview .st-hero{min-height:420px}
  .st-layout-preview .st-hero .st-preview-art{top:49px;bottom:48px;left:5px;right:5px}
  .st-layout-preview .st-preview-art>.st-statue-img{width:min(100%,440px);transform:translateY(-8%)}
}
@media(max-width:430px){
  .st-layout-preview .st-sidebar .st-figure{grid-template-columns:74px minmax(0,1fr) 28px;min-height:83px}
  .st-layout-preview .st-figure-portrait{width:74px;height:70px}
  .st-layout-preview .st-figure .st-figure-portrait img{width:74px;height:70px}
}


/* Stage 47 — consistent artwork across all three tabs, with a slightly larger figure.
   Source 1024px PNGs include transparent padding; clip their container, not the asset. */
.st-page .st-layout .st-hero{min-height:550px;isolation:isolate}
.st-page .st-layout .st-hero .st-preview-art{
  position:absolute;top:50px;bottom:49px;left:10px;right:10px;
  display:flex;justify-content:center;align-items:flex-start;
  overflow:hidden;pointer-events:none;min-width:0
}
.st-page .st-layout .st-preview-art>.st-statue-img{
  display:block;flex:0 0 auto;width:min(100%,580px);height:auto;max-width:none;
  object-fit:contain;transform:translateY(-8%) scale(1.20);transform-origin:50% 45%;
  filter:drop-shadow(0 12px 22px #000b)
}
.st-page .st-layout .st-hero>.st-hero-label{top:14px;z-index:2}
.st-page .st-layout .st-appearance-note{z-index:2}
/* Rank letters carry rarity colors, while appearance names stay neutral. */
.st-layout-preview .st-appearance-row{gap:4px;color:#dce7f5;border-color:#354962}
.st-layout-preview .st-appearance-dot{display:none}
.st-layout-preview .st-appearance-row .st-appearance-name{color:#e8effa}
.st-layout-preview .st-appearance-row .st-appearance-grades{color:#dce7f5;font-weight:850;opacity:1}
.st-layout-preview .st-appearance-row .st-appearance-grades b{font-weight:900}
.st-layout-preview .st-appearance-row.is-current{border-color:#d4b34c;background:linear-gradient(90deg,#283849,#142135)}
.st-layout-preview .st-appearance-row .st-rank-S{color:#fa828d}
.st-layout-preview .st-appearance-row .st-rank-A{color:#f7d36e}
.st-layout-preview .st-appearance-row .st-rank-B{color:#cdb3fd}
.st-layout-preview .st-appearance-row .st-rank-C{color:#8ddcff}
.st-layout-preview .st-appearance-row .st-rank-D{color:#86d0a9}
.st-layout-preview .st-appearance-row .st-rank-E{color:#adb4c0}
@media(max-width:1220px){
  .st-page .st-layout .st-hero{min-height:520px}
}
@media(max-width:760px){
  .st-page .st-layout .st-hero{min-height:420px}
  .st-page .st-layout .st-hero .st-preview-art{top:49px;bottom:48px;left:5px;right:5px}
  .st-page .st-layout .st-preview-art>.st-statue-img{width:min(100%,460px);transform:translateY(-7%) scale(1.16)}
}
@media(max-width:430px){
  .st-page .st-layout .st-hero{min-height:385px}
  .st-page .st-layout .st-preview-art>.st-statue-img{transform:translateY(-5%) scale(1.10)}
}


/* Stage 48 — Preview-only framing. Preserve My List/Simulator art unchanged.
   The source PNG has alpha at y=268..1012/1024; the Stage 47 1.20 scale
   cannot fit that full height in the preview viewport, cutting off the plinth. */
.st-page .st-layout-preview .st-preview-art>.st-statue-img{
  transform:translateY(-20%) scale(.94);
}
@media(max-width:760px){
  .st-page .st-layout-preview .st-preview-art>.st-statue-img{transform:translateY(-17%) scale(.72)}
}
@media(max-width:430px){
  .st-page .st-layout-preview .st-preview-art>.st-statue-img{transform:translateY(-12%) scale(.74)}
}

/* Don't reserve a badge column or display an unassigned placeholder in My List. */
.st-page .st-sidebar-mylist .st-figure.no-rank,
.st-page .st-sidebar-sim .st-figure.no-rank{grid-template-columns:104px minmax(0,1fr)}
.st-figure-unlock{
  display:flex;align-items:center;gap:12px;padding:13px 15px;margin:0 0 15px;
  background:#14243a;border:1px solid #405571;border-radius:9px;cursor:pointer;
  color:#eaf0fa;font-size:13px;font-weight:800;
}
.st-figure-unlock input{position:absolute;width:1px;height:1px;opacity:0}
.st-figure-unlock .st-switch{
  position:relative;flex:none;width:40px;height:22px;border-radius:999px;
  background:#37465e;border:1px solid #65738a;transition:background .15s,border-color .15s;
}
.st-figure-unlock .st-switch:after{
  content:'';position:absolute;width:16px;height:16px;top:2px;left:2px;
  border-radius:50%;background:#e1e8f4;transition:transform .15s;
}
.st-figure-unlock input:checked+.st-switch{background:#315d3c;border-color:#70c18a}
.st-figure-unlock input:checked+.st-switch:after{transform:translateX(18px);background:#b9ffd0}
.st-figure-unlock:focus-within{outline:2px solid #ffda5e;outline-offset:2px}
.st-unique.is-inactive{border-color:#354052;background:#111822}
.st-unique.is-inactive>b{color:#93a0b1}
.st-unique.is-inactive p{color:#7e8b9e}
.st-unique.is-inactive .st-unique-value{color:#9aa5b4;text-shadow:none}
.st-unique.is-inactive>span{color:#78869a}
/* Dialogs live under body rather than #app, so global #app>* max-width
   cannot limit the dark backdrop to a centered 1530px strip. */
body>.st-modal-back{position:fixed;inset:0;width:100vw;height:100vh;max-width:none;
  margin:0!important;padding:16px;z-index:20000;background:rgba(0,0,0,.82);
  display:grid;place-items:center}
body>.st-modal-back .st-modal{max-width:calc(100vw - 32px)}
body>.st-modal-back .st-danger{background:#5b2030;border-color:#e26a78;color:#fff;cursor:pointer}
body>.st-modal-back .st-danger:hover{background:#7c293c}
@media(max-width:760px){
 .st-page .st-sidebar-mylist .st-figure.no-rank,
 .st-page .st-sidebar-sim .st-figure.no-rank{grid-template-columns:74px minmax(0,1fr)}
}
@media(max-width:430px){
 .st-page .st-sidebar-mylist .st-figure.no-rank,
 .st-page .st-sidebar-sim .st-figure.no-rank{grid-template-columns:90px minmax(0,1fr)}
}


/* Stage 49 — My List: avoid a pointless page scrollbar on ordinary desktop
   viewports. Compress the sidebar, not the whole page, and retain natural
   scrolling on smaller/narrow screens where content cannot fit. */
@media (min-width:1221px) and (min-height:740px) {
  .st-layout-mylist .st-sidebar .st-figures { gap:7px; }
  .st-layout-mylist .st-sidebar .st-figure {
    min-height:104px;
    grid-template-columns:94px minmax(0,1fr) 40px;
    padding:5px;
  }
  .st-layout-mylist .st-figure-portrait,
  .st-layout-mylist .st-sidebar .st-figure .st-figure-portrait img {
    width:94px;height:91px;
  }
  .st-layout-mylist .st-hero { min-height:550px; }
}
/* Stage 49 — Custom downward-opening, rank-sorted (S→E) picker.  The native
   select opened upwards because it had 54 options; a bounded list avoids
   shifting the whole viewport and does not affect Simulator selects. */
body > .st-modal-back .st-modal:has(.st-stat-picker) {
  overflow:visible;
  transform:translateY(-min(9vh,80px));
}
body > .st-modal-back .st-picker-field { position:relative; }
body > .st-modal-back .st-stat-picker { position:relative; min-width:0; }
body > .st-modal-back .st-stat-picker [data-picker-toggle] {
  width:100%; display:flex; justify-content:space-between; align-items:center;
  gap:12px; text-align:left; padding:12px 13px; min-height:44px;
  border:1px solid #607894; background:#0d172a; color:#eaf1fc;
}
body > .st-modal-back .st-stat-picker [data-picker-toggle]:focus-visible {
  outline:2px solid #ffd45e; outline-offset:2px;
}
body > .st-modal-back .st-stat-picker [data-picker-toggle] i { flex:none; color:#b8cae3; }
body > .st-modal-back .st-stat-options {
  position:absolute; top:calc(100% + 5px); left:0;right:0;
  display:flex;flex-direction:column;gap:0;
  max-height:min(360px,43vh); overflow-y:auto;overscroll-behavior:contain;
  border:1px solid #617b9e; border-radius:7px;
  background:#101b2d; box-shadow:0 14px 30px #000c;
  z-index:20005;
  scrollbar-width:thin; scrollbar-color:#7289a7 #111b2d;
}
body > .st-modal-back .st-stat-options[hidden] { display:none!important; }
body > .st-modal-back .st-stat-options button {
  display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:10px;
  width:100%;padding:8px 12px;min-height:34px;border:0;border-bottom:1px solid #23334a;
  border-radius:0; background:#101b2d;color:#e7f0fc;text-align:left;
  font-size:12px; font-weight:650;
}
body > .st-modal-back .st-stat-options button:first-child { display:block; }
body > .st-modal-back .st-stat-options button:hover,
body > .st-modal-back .st-stat-options button:focus-visible { background:#273e5b;outline:1px solid #f2ca4d;outline-offset:-2px; }
body > .st-modal-back .st-stat-options button[aria-selected="true"] {background:#263a52;border-left:3px solid #f9d252;}
body > .st-modal-back .st-stat-options strong {color:#f6da7c;white-space:nowrap;}
body > .st-modal-back .st-stat-options b {font-size:14px;font-weight:900;}
@media (max-height:600px) {
  body > .st-modal-back .st-modal:has(.st-stat-picker) {transform:translateY(-10px);}
  body > .st-modal-back .st-stat-options {max-height:27vh;}
}
@media (max-width:760px) {
  body > .st-modal-back .st-modal:has(.st-stat-picker) { transform:translateY(-30px); }
  body > .st-modal-back .st-stat-options {max-height:34vh;}
}

/* Stage 50 — carefully frame original 1024x1024 figure artwork.
   The PNGs have transparent space above the sculpture. Scale the image while
   keeping its complete lower edge in the clipped art viewport.
   Scope each adjustment to its tab: Simulator keeps its existing appearance. */
/* Statues: slightly larger than the Stage 48 preview, with the pedestal visible. */
.st-page .st-layout-preview .st-preview-art > .st-statue-img {
  transform: translateY(-25%) scale(1.04);
  transform-origin: 50% 45%;
}
/* My List: the previous 1.20 zoom clipped the pedestal. Correct both zoom
   and vertical placement instead of changing the height of the whole page. */
.st-page .st-layout-mylist .st-preview-art > .st-statue-img {
  transform: translateY(-25%) scale(1.03);
  transform-origin: 50% 45%;
}
/* At narrower breakpoints the preview canvas is also shorter; reduce the
   source image dimensions enough to leave room for the full plinth. */
@media (max-width:1220px) and (min-width:761px) {
  .st-page .st-layout-preview .st-preview-art > .st-statue-img,
  .st-page .st-layout-mylist .st-preview-art > .st-statue-img {
    width:min(100%,535px);
  }
}
@media (max-width:760px) {
  .st-page .st-layout-preview .st-preview-art > .st-statue-img,
  .st-page .st-layout-mylist .st-preview-art > .st-statue-img {
    width:min(100%,400px);
    transform:translateY(-25%) scale(1.03);
  }
}
@media (max-width:430px) {
  .st-page .st-layout-preview .st-preview-art > .st-statue-img,
  .st-page .st-layout-mylist .st-preview-art > .st-statue-img {
    width:min(100%,360px);
    transform:translateY(-25%) scale(1.03);
  }
}


/* Stage 51 — re-center artwork after Stage 50, without cutting off the base.
   Stage 50 raised the visible figure until its head touched the caption.
   Keep the preview slightly larger than its Stage 49 size, but move the
   sculpted area down into the frame. Simulator is deliberately untouched. */
.st-page .st-layout-preview .st-preview-art > .st-statue-img {
  transform: translateY(-21%) scale(.97);
}
.st-page .st-layout-mylist .st-preview-art > .st-statue-img {
  transform: translateY(-20.5%) scale(.96);
}
/* The same proportions work at the existing responsive image widths. */
@media (max-width:760px) {
  .st-page .st-layout-preview .st-preview-art > .st-statue-img {
    transform:translateY(-21%) scale(.97);
  }
  .st-page .st-layout-mylist .st-preview-art > .st-statue-img {
    transform:translateY(-20.5%) scale(.96);
  }
}

/* Stage 52 — Simulator: readable Rates, colored preferred stats and per-figure
   simulated costs. Scope the visual adjustments to Simulator or its dialogs. */
.st-layout-sim .st-right{padding:13px 15px}
.st-layout-sim .st-right h2{margin-bottom:8px}
.st-layout-sim .st-note{margin:6px 0 10px;font-size:11px;line-height:1.45}
.st-layout-sim .st-stat{min-height:71px;padding:7px;gap:6px}
.st-layout-sim .st-stats{gap:6px}
.st-layout-sim .st-stat-text small{font-size:10px;color:#a4b9d1}
.st-layout-sim .st-unique{margin-top:10px;padding:9px 11px}
.st-layout-sim .st-owned{padding:10px 0 5px;font-size:12px}
.st-layout-sim .st-actions{margin-top:8px}
.st-layout-sim .st-convert{margin-top:10px;padding:10px!important}
.st-layout-sim .st-sim-costs,
.st-layout-sim .st-sim-spending{margin-top:11px;padding:10px 9px;border:1px solid #374b67;border-radius:8px;background:#0e1a2b}
.st-layout-sim .st-sim-costs>strong,
.st-layout-sim .st-sim-spending .st-between>strong{font-size:12px;color:#e9f1ff}
.st-layout-sim .st-sim-spending .st-between{flex-wrap:wrap;gap:5px}
.st-layout-sim .st-sim-spending small{color:#a8bbd4;font-size:10px}
.st-layout-sim .st-resource-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:8px}
.st-layout-sim .st-resource{min-width:0;display:grid;grid-template-columns:27px minmax(0,1fr);grid-template-rows:auto auto;gap:0 5px;align-items:center;background:#14253c;border:1px solid #304762;border-radius:6px;padding:6px 5px;color:#ffdc7b}
.st-layout-sim .st-resource img{grid-row:1/span 2;width:27px;height:27px;object-fit:contain}
.st-layout-sim .st-resource>span{font-size:13px;line-height:1.2;font-weight:850;white-space:nowrap}
.st-layout-sim .st-resource small{font-size:9px;color:#aebed4;line-height:1.1;overflow-wrap:anywhere}
.st-layout-sim .st-status{margin:8px 0 0;line-height:1.5}
.st-layout-sim [data-auto].is-auto{background:#65331f;border-color:#f7ad76;color:#ffdfb5}
body>.st-modal-back .st-rates{max-height:min(58vh,550px);border:1px solid #354965;border-radius:8px;overscroll-behavior:contain}
body>.st-modal-back .st-rates th,body>.st-modal-back .st-rates td{padding:8px 9px;border-bottom:1px solid #304258}
body>.st-modal-back .st-rates thead th{position:sticky;top:0;background:#182a42;color:#d8e7fc;z-index:2}
body>.st-modal-back .st-rate-group th{padding:0;border:0;background:linear-gradient(90deg,#24334d,#17263c)}
body>.st-modal-back .st-rate-group th:first-child{padding:9px 12px}
body>.st-modal-back .st-rate-group th{font-size:13px;text-align:left}
body>.st-modal-back .st-rate-group th>span:first-child{display:inline-block;width:23px;font-weight:950;font-size:19px}
body>.st-modal-back .st-rate-group th>strong{float:right;font-size:15px;color:#ffda6a}
body>.st-modal-back .st-rate-rank-group.rank-S .st-rate-group th{border-left:3px solid #f6818a}
body>.st-modal-back .st-rate-rank-group.rank-A .st-rate-group th{border-left:3px solid #f8cf69}
body>.st-modal-back .st-rate-rank-group.rank-B .st-rate-group th{border-left:3px solid #c6a8ff}
body>.st-modal-back .st-rate-rank-group.rank-C .st-rate-group th{border-left:3px solid #7ed9ff}
body>.st-modal-back .st-rate-rank-group.rank-D .st-rate-group th{border-left:3px solid #7ed9a1}
body>.st-modal-back .st-rate-rank-group.rank-E .st-rate-group th{border-left:3px solid #abb7ca}
body>.st-modal-back .st-rates td:nth-child(2),body>.st-modal-back .st-rates td:last-child{font-weight:750}
body>.st-modal-back .st-rates td:last-child{color:#ffe28e}
body>.st-modal-back .st-pref{margin:12px 0 8px}
body>.st-modal-back .st-pref-group{min-width:0;margin:0;border:0;padding:0}
body>.st-modal-back .st-pref-group legend{font-size:14px;font-weight:850;color:#dbe9fa;margin-bottom:8px}
body>.st-modal-back .st-pref-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
body>.st-modal-back button.st-pref-option{background:#192a42;border:1px solid #506985;border-radius:7px;min-height:45px;font-size:17px;font-weight:900;transition:background .12s,border-color .12s}
body>.st-modal-back button.st-pref-option.is-selected{background:#30496a;border:2px solid #ffda62;box-shadow:inset 0 0 0 1px #ffce4630}
body>.st-modal-back button.st-pref-option.is-disabled{opacity:.45;cursor:not-allowed}
body>.st-modal-back button.st-pref-option .st-rank-S{color:#fa828d}
body>.st-modal-back button.st-pref-option .st-rank-A{color:#f7d36e}
body>.st-modal-back button.st-pref-option .st-rank-B{color:#cdb3fd}
body>.st-modal-back .st-pref-hint{font-size:11px;color:#b7c9e1;margin:6px 0}
body>.st-modal-back .st-pref-types{margin-top:15px}
body>.st-modal-back .st-pref-types>.st-between{margin-bottom:9px}
body>.st-modal-back .st-pref-types .st-pref-all{font-size:12px;padding:6px 16px}
body>.st-modal-back .st-pref-type-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:37vh;overflow-y:auto}
body>.st-modal-back .st-pref-type-grid .st-pref-option{text-align:left;font-size:12px;min-height:42px;padding:8px 8px 8px 35px;position:relative;line-height:1.3;font-weight:750}
body>.st-modal-back .st-pref-type-grid .st-pref-option:before{content:'';position:absolute;top:calc(50% - 8px);left:10px;width:16px;height:16px;border:1px solid #a8bbd4;background:#111b29;border-radius:3px}
body>.st-modal-back .st-pref-type-grid .st-pref-option.is-selected:before{content:'✓';font-size:14px;color:#14202e;text-align:center;background:#b2e7ff;border-color:#d3edff;line-height:16px;font-weight:900}
@media(max-width:760px){
 .st-layout-sim .st-resource-list{gap:5px}
 .st-layout-sim .st-resource{grid-template-columns:22px minmax(0,1fr);gap:0 3px;padding:5px 3px}
 .st-layout-sim .st-resource img{width:22px;height:22px}
 .st-layout-sim .st-resource>span{font-size:11px}
 .st-layout-sim .st-resource small{font-size:8px}
 body>.st-modal-back .st-pref-type-grid{grid-template-columns:1fr}
 body>.st-modal-back .st-rates{max-height:52vh}
}

/* Stage 53 — per-figure Simulator resets. Keep these controls small and distinct from Convert. */
.st-layout-sim .st-sim-reset-rolls{display:flex;justify-content:flex-end;margin-top:7px}
.st-layout-sim .st-sim-reset-rolls button,
.st-layout-sim .st-sim-spending [data-reset-spending]{border:1px solid #5c6e86;background:#192b43;color:#d7e4f5;font-size:11px;font-weight:750;border-radius:6px;padding:6px 10px;white-space:nowrap}
.st-layout-sim .st-sim-reset-rolls button:hover,
.st-layout-sim .st-sim-spending [data-reset-spending]:hover{background:#283e5a;border-color:#8ba6c9}
.st-layout-sim .st-sim-spending .st-between{align-items:center;flex-wrap:wrap;gap:7px}
.st-layout-sim .st-spending-count{display:block;margin-top:4px;color:#a8bbd4;font-size:10px}


/* Stage 54 — Reset rolls lives beside Preferred Rank and Auto-Convert. */
.st-layout-sim .st-actions [data-reset-rolls]{
  border:1px solid #5c6e86;
  background:#192b43;
  color:#d7e4f5;
  font-size:11px;
  font-weight:750;
  border-radius:6px;
  padding:6px 10px;
  white-space:nowrap;
}
.st-layout-sim .st-actions [data-reset-rolls]:hover{
  background:#283e5a;
  border-color:#8ba6c9;
}

/* Stage 55 — My List is account-only; guest Simulator remains ephemeral. */
.st-page .st-signin-gate{
  min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;gap:12px;padding:38px 20px;
  border:1px solid #344a66;border-radius:11px;
  background:linear-gradient(145deg,#192b43,#0e192b);color:#dce8f8;
}
.st-page .st-signin-gate>i{font-size:27px;color:#ffcf52}
.st-page .st-signin-gate h2{font-size:19px;margin:0;font-weight:850;color:#f0f5ff}
.st-page .st-signin-gate p{margin:0 0 6px;max-width:440px;color:#aabbd1;line-height:1.5}
.st-page .st-signin-gate button{
  border:1px solid #ffd657;background:#ffd025;color:#19212b;border-radius:7px;
  font-weight:850;padding:10px 24px;cursor:pointer;
}
.st-page .st-signin-gate button:hover{background:#ffe278}
.st-page .st-import-old{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;
  border:1px solid #52688a;border-radius:8px;background:#172740;
  color:#d6e7fa;padding:10px 13px;margin-bottom:10px;font-size:12px;
}
.st-page .st-import-old button{
  border:1px solid #c7ab4c;border-radius:6px;background:#302b1c;color:#ffda74;
  font-size:12px;font-weight:800;padding:7px 11px;cursor:pointer;
}
.st-page .st-import-old button:hover{border-color:#ffe38d;background:#49391c}


/* Stage 56 — guests see exactly two equal-width tabs, Statues and Simulator. */
.st-page .st-tabs.st-tabs-public { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Stage 58: dedicated preferred target toggle under Save Stats. */
.st-layout-sim .st-preferred-toggle {padding-top:3px;padding-bottom:6px;color:#dce6f6;}
.st-layout-sim .st-preferred-toggle input {accent-color:#ffd028;}


/* Stage 59: compact single-row, site-styled simulator checkboxes. */
.st-layout-sim .st-sim-toggle-row {
  display:grid;
  grid-template-columns:minmax(0, .88fr) minmax(0, 1.45fr);
  gap:9px;
  align-items:stretch;
  margin:13px 0 2px;
}
.st-layout-sim .st-sim-toggle {
  position:relative;
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
  padding:10px 11px;
  border:1px solid #3f5572;
  border-radius:8px;
  background:linear-gradient(160deg,#182b43,#111d2f);
  color:#cddcee;
  font-size:12px;
  font-weight:750;
  line-height:1.3;
  cursor:pointer;
  user-select:none;
  transition:border-color .15s,background .15s,color .15s;
}
.st-layout-sim .st-sim-toggle:hover {border-color:#9c8751;background:#1d3047}
.st-layout-sim .st-sim-toggle input {
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}
.st-layout-sim .st-sim-checkbox {
  position:relative;
  display:inline-block;
  flex:0 0 21px;
  width:21px;
  height:21px;
  border:1px solid #6a7c96;
  border-radius:5px;
  background:#0d1929;
  box-shadow:inset 0 1px 3px #0006;
  transition:background .15s,border-color .15s,box-shadow .15s;
}
.st-layout-sim .st-sim-toggle input:checked + .st-sim-checkbox {
  background:#ffcf32;
  border-color:#ffe589;
  box-shadow:0 0 0 2px #ffcb3020, inset 0 1px #fff8;
}
.st-layout-sim .st-sim-toggle input:checked + .st-sim-checkbox::after {
  content:'';
  position:absolute;
  left:6px;
  top:2px;
  width:6px;
  height:11px;
  border:solid #1b2530;
  border-width:0 2px 2px 0;
  transform:rotate(45deg);
}
.st-layout-sim .st-sim-toggle:has(input:checked) {
  border-color:#b69840;
  background:linear-gradient(160deg,#2d3441,#22283a);
  color:#fff0bc;
}
.st-layout-sim .st-sim-toggle:focus-within {
  outline:2px solid #ffda5e;
  outline-offset:2px;
}
@media(max-width:430px){
  .st-layout-sim .st-sim-toggle-row{gap:6px;grid-template-columns:minmax(0, .75fr) minmax(0, 1.35fr)}
  .st-layout-sim .st-sim-toggle{padding:8px 7px;gap:6px;font-size:11px}
  .st-layout-sim .st-sim-checkbox{width:19px;height:19px;flex-basis:19px}
  .st-layout-sim .st-sim-toggle input:checked + .st-sim-checkbox::after{left:5px;top:2px}
}
