/* Equipped gear and the village bank use the same brass, stone and leather as the game frame. */
.st-equipment {
  display:flex; flex-direction:column; gap:7px;
}
.st-doll-frame, .st-portrait-room {
  position:relative; isolation:isolate;
  border:1px solid #191a14; outline:1px solid #71674c; outline-offset:-2px;
  background:radial-gradient(ellipse at 50% 40%,#484b3d,#33382f 65%,#272b26);
  box-shadow:inset 0 0 10px #171a15;
}
.st-doll-frame::before, .st-portrait-room::before {
  content:""; position:absolute; z-index:-1; pointer-events:none; inset:7% 18% 8%;
  border:1px solid #79816a38; border-radius:48% 48% 6% 6% / 35% 35% 10% 10%;
  box-shadow:0 0 0 3px #2c302785, 0 0 0 4px #8990731c;
}
.st-doll-frame {
  flex:1 1 214px; min-height:194px; max-height:330px; display:grid;
  grid-template-columns:minmax(38px,23%) minmax(0,1fr) minmax(38px,23%);
  grid-template-rows:repeat(4,1fr); gap:3px 4px; padding:6px;
}
/* Head to foot down the left, and what hangs or is held down the right. */
.st-wear-head {grid-area:1/1;}
.st-wear-armor {grid-area:2/1;}
.st-wear-legs {grid-area:3/1;}
.st-wear-feet {grid-area:4/1;}
.st-wear-charm {grid-area:1/3;}
.st-wear-cape {grid-area:2/3;}
.st-wear-weapon {grid-area:3/3;}
.st-wear-shield {grid-area:4/3;}
.st-wear-tile {
  position:relative; align-self:center; min-width:0; width:100%; padding:2px 1px 1px;
  display:grid; justify-items:center; gap:1px; border:1px solid #191b15; border-radius:2px;
  background:linear-gradient(130deg,#4b4b3e,#35372d);
  box-shadow:inset 1px 1px #676552,inset -1px -1px #292b23;
}
.st-wear-tile.filled {background:linear-gradient(130deg,#5b5440,#3a392d);box-shadow:inset 1px 1px #847654,inset -1px -1px #29271f;}
.st-wear-tile > span {display:grid;place-items:center;}
.st-wear-tile:not(.filled) svg,.st-item-plaque.empty svg {filter:grayscale(1);opacity:.37;}
.st-wear-tile small {font-size:9px;line-height:1.1;color:#d8caa7;}
.st-mannequin {position:relative;grid-area:1/2/5/3;padding:0;border:0;background:none;min-width:0;min-height:0;}
.st-doll-mini {position:absolute;inset:0;width:100%;height:100%;}
.st-portrait {display:block;image-rendering:pixelated;pointer-events:none;}
.st-inspect-mark {position:absolute;right:0;bottom:0;opacity:.58;}
.st-mannequin:hover .st-inspect-mark {opacity:1;}
.st-gear-stats {display:flex;justify-content:center;gap:6px;}
.st-gear-stats > span {
  flex:1; display:flex;align-items:center;justify-content:center;gap:3px;
  padding:3px 1px;min-width:0;border-block:1px solid #6d654d70;
  color:#cbc6ac;background:#282c244d;
}
.st-gear-stats small {font-size:10px;}
.st-gear-stats b {font-size:12px;color:#edd9a8;}
.st-inspect-button,.st-bank-all,.st-facing button,.st-quantity button,.st-bank-bottom button {
  border:1px solid #22241b;border-radius:2px;background:linear-gradient(#545440,#3d4133);
  box-shadow:inset 1px 1px #767459,inset -1px -1px #303124;text-shadow:1px 1px #201f19;
}
.st-inspect-button,.st-bank-all {display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:4px 7px;}
.st-inspect-button {width:100%;font-weight:bold!important;color:#efdb9f!important;}
.st-wear-tile:hover,.st-outfit-row:hover,.st-bank-cell:hover,.st-shelves button:hover,.st-quantity button:hover,.st-facing button:hover,.st-bank-all:hover,.st-inspect-button:hover {border-color:#b49b66;}
.st-outfit {display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:8px;margin-bottom:9px;}
.st-portrait-room {display:flex;flex-direction:column;align-items:center;min-width:0;height:clamp(166px,32dvh,263px);padding:4px;}
.st-doll-large {width:100%;min-height:0;flex:1;}
.st-facing {display:flex;position:relative;gap:2px;align-items:center;justify-content:center;}
.st-facing button,.st-quantity button,.st-bank-bottom button {color:#d5cbae;font-size:11px;padding:3px 7px;}
.st-facing button[aria-pressed=true],.st-quantity button[aria-pressed=true],.st-shelves button[aria-pressed=true] {
  color:#ffe3a1;border-color:#978253;background:linear-gradient(#5a4b32,#50442d);
  box-shadow:inset 1px 1px #3d3424,inset -1px -1px #82724b;
}
.st-outfit-list {display:flex;flex-direction:column;gap:4px;min-width:0;}
.st-outfit-row,.st-choice,.st-current {display:flex;align-items:center;gap:7px;min-width:0;}
.st-outfit-row {
  flex:1; text-align:left;padding:4px 6px;min-width:0;
  background:linear-gradient(115deg,#4e4e3e,#3d4033);border:1px solid #24271f;box-shadow:inset 1px 1px #696852;
}
.st-outfit-row > span,.st-current > span:last-child,.st-choice > div {min-width:0;flex:1;display:grid;}
.st-outfit-row small,.st-current small {font-size:10px;color:#bdb9a0;}
.st-outfit-row b,.st-current strong,.st-choice b {font:600 12px/1.2 Georgia,serif;color:#efdba7;}
.st-outfit-row i {font-size:17px;color:#b4a780;}
.st-current {margin-bottom:9px;}
.st-current strong {font-size:17px;}
.st-current em,.st-choice small {color:#c4c2b1;font-size:11px;font-style:normal;}
.st-item-plaque {display:grid;place-items:center;width:54px;height:54px;border:1px solid #776a4c;box-shadow:inset 1px 1px #252920;background:#35392f;flex:none;}
.st-choice {padding:7px 1px;border-top:1px solid #69665070;}

.rp-window:has(.st-bank) {width:min(590px,100%);}
.rp-window:has(.st-bank) .rp-body {padding:8px 10px 9px;}
.st-bank {container-type:inline-size;font-variant-numeric:tabular-nums;color:#dbd5ba;}
.st-counter,.st-bank-lower,.st-bank-bottom,.st-vault-tools,.st-shelves,.st-quantity,.st-bank-search,.st-counter > span {display:flex;align-items:center;}
.st-counter,.st-bank-lower,.st-bank-bottom {justify-content:space-between;}
.st-counter {gap:8px;margin-bottom:7px;font-size:11px;}
.st-counter > span {gap:4px;}
.st-counter > span:last-child,.st-counter b {color:#e8c979;}
.st-vault-tools {align-items:stretch;gap:6px;padding:0 1px;}
.st-shelves {align-items:flex-end;gap:2px;min-width:0;}
.st-shelves button {
  position:relative;min-width:26px;display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:2px 4px 3px;
  border:1px solid #25261c;border-radius:3px 3px 0 0;background:linear-gradient(#575444,#414234);
  box-shadow:inset 1px 1px #726d55;
}
.st-shelves button span {display:none;font:600 11px/1 Georgia,serif;}
.st-bank-search {margin:1px 0 3px auto;width:clamp(85px,31%,157px);padding:1px 4px;gap:3px;min-width:0;background:#2c3026;border:1px solid #24261c;box-shadow:inset 1px 1px #22241b,1px 1px #716c52;}
.st-bank-search input,.st-quantity input {
  width:100%;padding:1px 0;min-width:0;border:0;border-radius:0;background:transparent;color:#f0dfb6;font-size:11px!important;
}
.st-bank-search input::placeholder {color:#bcb79c;}
.st-bank-panes {display:grid;grid-template-columns:minmax(0,1.48fr) minmax(0,1fr);gap:6px;}
.st-bank-panes section {min-width:0;padding:3px;border:1px solid #29271d;background:#514b38;box-shadow:inset 1px 1px #82775a,inset -1px -1px #383526;}
.st-bank-panes section:last-child {background:#454538;box-shadow:inset 1px 1px #6c6b53,inset -1px -1px #313327;}
.st-bank .st-bank-panes h3 {display:flex;align-items:center;justify-content:space-between;gap:2px;margin:0;padding:2px 3px 4px;color:#eed393;font:600 13px/1.12 Georgia,serif;white-space:nowrap;}
.st-bank-panes h3 small {color:#c8c0a1;font:normal 10px/1 Arial,sans-serif;}
.st-vault,.st-pack-grid {
  height:clamp(165px,26dvh,238px);border:1px solid #2b291e;
  box-shadow:inset 1px 1px 3px #201f17a8;scrollbar-width:thin;scrollbar-color:#837558 #403b2c;
}
.st-vault {position:relative;background:#484231;overflow:auto;}
.st-vault-grid {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;padding:3px;}
.st-pack-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(7,minmax(0,1fr));gap:1px;padding:2px;background:#38392c;overflow:auto;}
.st-bank-cell,.st-bank-blank {
  min-width:0;min-height:0;display:grid;place-items:center;padding:0;position:relative;overflow:hidden;
  border:1px solid #302d22;background:linear-gradient(120deg,#56513e,#474636);box-shadow:inset 1px 1px #6c6550;
}
.st-bank-blank {background:#424334;box-shadow:inset 1px 1px #555541;}
.st-vault-grid .st-bank-cell {height:clamp(27px,4.1dvh,39px);background:linear-gradient(120deg,#61573e,#514b38);}
.st-bank-cell svg {max-width:90%;max-height:96%;width:auto;}
.st-bank-cell > small {position:absolute;top:0;left:1px;color:#ffdf71;font:bold 10px/1 monospace;text-shadow:1px 1px #1e1b12,-1px 0 #201c13,0 -1px #201c13;pointer-events:none;}
.st-vault-empty {position:absolute;inset:0;padding:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;font:600 13px Georgia,serif;color:#e0cda1;}
.st-vault-empty svg {opacity:.57;}
.st-vault-empty small {font:11px/1.28 Arial,sans-serif;color:#c3bba0;max-width:24ch;}
.st-bank [hidden] {display:none!important;}
.st-bank-lower {gap:4px;flex-wrap:wrap;padding:7px 0 5px;}
.st-quantity {gap:2px;}
.st-quantity > span {margin-right:2px;font-size:11px;color:#c6c3a9;}
.st-quantity button {min-width:22px;padding:4px 5px;font-size:11px!important;}
.st-quantity input {width:41px;padding:4px;background:#2c3026;border:1px solid #766d50;}
.st-bank-all {font-size:11px!important;color:#f0d99d!important;}
.st-bank-bottom {gap:6px;border-top:1px solid #67634c;padding-top:4px;}
.st-bank-bottom small {color:#c4c2a9;font-size:10px;}
.st-bank-bottom button {flex:none;padding:2px 6px;font-size:10px!important;}
.st-bank button:disabled {opacity:.48;cursor:default;}
@container (min-width:465px) {
  .st-shelves button[aria-pressed=true] span {display:inline;}
  .st-vault-grid {grid-template-columns:repeat(6,minmax(0,1fr));}
}
@container (max-width:345px) {
  .st-counter,.st-bank-lower {margin-bottom:3px;}
  .st-bank-panes {gap:3px;grid-template-columns:minmax(0,1.18fr) minmax(0,1fr);}
  .st-bank-panes section {padding:2px;}
  .st-vault-grid {grid-template-columns:repeat(4,minmax(0,1fr));padding:2px;gap:1px;}
  .st-quantity {gap:1px;}
  .st-quantity button {min-width:19px;padding:3px;}
  .st-quantity input {width:34px;}
  .st-bank-all {padding:3px;}
  .st-bank-all svg {width:13px;height:13px;}
}
@media(max-width:650px) {
  .st-equipment {gap:4px;}
  .st-doll-frame {min-height:176px;flex-basis:176px;grid-template-columns:minmax(40px,23%) minmax(0,1fr) minmax(40px,23%);padding:4px;gap:2px;}
  .st-wear-tile {padding:1px;}
  .st-wear-tile svg {width:21px;height:21px;}
  .st-wear-tile small {font-size:8px;}
  .st-outfit-row {padding:3px;gap:4px;}
}
.st-slot-actions {display:flex;flex-wrap:wrap;gap:6px;}
.st-bank-cell.st-selected-stack {border-color:#aa9665;box-shadow:inset 1px 1px #847653;}
@media (prefers-reduced-motion:no-preference) {
  .realm-cape-embers {animation:realm-cape-embers 1.2s steps(3,end) infinite;}
  @keyframes realm-cape-embers {0%,100%{opacity:.2;transform:translateY(1px);}45%{opacity:1;transform:translateY(0);}85%{opacity:.5;transform:translateY(-1px);}}
}

/* Gear and outfit are two layers of the same figure. */
.st-layers {display:flex;gap:4px;margin:0 0 6px;}
.st-layers button {flex:1;padding:4px 6px;border:1px solid #625f48;background:#2d3129;font-size:11px;}
.st-layers button[aria-pressed=true] {color:#efdb9f;border-color:#998254;background:#484737;}
.st-dress-note {margin:0;font-size:10.5px;line-height:1.35;color:#bdb9a0;text-align:center;}
.st-show[aria-pressed=false] svg {opacity:.55;}
.st-dressed {border-left:2px solid #b49b66;}
/* Rarity is said in colour wherever an item is named. */
.st-uncommon {color:#a9d68a!important;}
.st-rare {color:#8fcdf2!important;}
.st-legendary {color:#e2b6ff!important;text-shadow:0 0 6px #7a4fc066;}
.st-wear-tile.st-rare {box-shadow:inset 0 0 0 1px #4f8fb4,inset 1px 1px #847654;}
.st-wear-tile.st-legendary {box-shadow:inset 0 0 0 1px #a877ee,0 0 6px #7a4fc055;}
.st-wear-tile.st-uncommon {box-shadow:inset 0 0 0 1px #6f9455,inset 1px 1px #847654;}

/* Coins kept in the vault are safe from a death in the Wilds. */
.st-coins {display:flex;align-items:center;gap:5px;margin:0 0 6px;padding:5px 6px;border:1px solid #6b6145;background:#3a392d;}
.st-coins span {display:inline-flex;align-items:center;gap:4px;margin-right:auto;font-size:11px;color:#d8caa7;}
.st-coins b {color:#ffdd78;}
.st-coins button {padding:3px 7px;border:1px solid #625f48;background:#2d3129;font-size:10.5px;}
.st-coins button:hover:not(:disabled) {border-color:#b49b66;}
.st-coins button:disabled {opacity:.45;}

/* Pets */
.st-pets {display:grid;gap:4px;}
.st-pet {display:flex;align-items:center;gap:8px;padding:6px 7px;border:1px solid #555645;background:#32362e;}
.st-pet.out {border-color:#998254;background:#454232;}
.st-pet > span {display:grid;gap:1px;flex:1;min-width:0;}
.st-pet b {font:600 12.5px/1.2 Georgia,serif;color:#efdba7;}
.st-pet small {font-size:10px;line-height:1.3;color:#bdb9a0;}
.st-pet em {font:normal 10.5px 'Trebuchet MS',sans-serif;color:#a9c98a;}
.st-pet .rp-button {padding:3px 9px;min-height:23px;font-size:11px;}
