.sortie-tools{grid-template-columns:repeat(3,minmax(0,1fr))}
.sortie-tools button,.sortie-tools button+button{padding-inline:clamp(4px,.7vw,12px)}
.sortie-tools .tool-top{gap:clamp(3px,.6vw,7px);white-space:nowrap;font-size:clamp(.81rem,1.42vw,1rem)}
.coin-mark{display:inline-block;position:relative;width:13px;height:13px;flex:none;background:#ecc57d;box-shadow:inset 0 -3px #b7794a;clip-path:polygon(3px 0,10px 0,100% 3px,100% 10px,10px 100%,3px 100%,0 10px,0 3px)}
.coin-mark::after{content:"";position:absolute;left:5px;top:3px;width:3px;height:6px;background:#6f4636}
.shop-wallet{display:flex;gap:5px;align-items:center;color:#ffce80;white-space:nowrap;font-size:.92rem}
.shop-wallet b{font:800 1.08rem var(--mono)}
.shop-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 1px 9px}
.shop-counter{background:#292329;display:flex;align-items:center;gap:clamp(12px,2.8vw,34px);border:1px solid #69554f;border-bottom:3px solid #a46c4c;padding-right:14px}
.shop-counter canvas{width:clamp(108px,15vw,175px);height:auto;display:block;flex:none;image-rendering:pixelated}
.shop-counter strong{font-weight:850;color:#ffcf86;letter-spacing:.05em}
.shop-counter p{margin:4px 0 0;line-height:1.48;font-size:clamp(.88rem,1.4vw,1.04rem);color:#f3eadd}
.shop-shelf{margin-top:15px;display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,.85fr);align-items:start;gap:clamp(12px,2.5vw,32px)}
.scroll-rack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.scroll-card{display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:9px;row-gap:3px;border:1px solid #665952;background:#252126;color:#f3eadc;min-height:60px;padding:7px 9px;text-align:left}
.scroll-card canvas{grid-row:1/3;display:block;width:34px;height:34px;image-rendering:pixelated}
.scroll-card strong{align-self:end;font-size:1rem;line-height:1.1}
.scroll-card small{align-self:start;font-size:.81rem;color:#dec6ad;line-height:1.25}
.scroll-card[aria-pressed="true"]{background:#3a2d2b;border-color:var(--scroll-color);box-shadow:inset 3px 0 var(--scroll-color)}
.scroll-card:focus-visible,.scroll-paper button:focus-visible{outline:2px solid #fee3ba;outline-offset:2px}
.scroll-paper{border-top:4px solid #bd654c;background:#f0e3cc;color:#292125;padding:clamp(14px,1.7vw,23px)}
.scroll-heading{display:flex;gap:12px;align-items:center}
.scroll-heading canvas{width:44px;height:44px;image-rendering:pixelated}
.scroll-heading small{display:block;font-size:.85rem;font-weight:750;color:#704136}
.scroll-heading h3{margin:2px 0;font-size:clamp(1.12rem,1.9vw,1.5rem);line-height:1.28}
#spellEffect{margin:12px 0;line-height:1.55}
#spellLoadout{margin:0;border-top:1px solid #baaa93;padding-top:9px;font-size:.88rem;color:#5b473b}
#shopAction{margin:10px 0 0}
#shopMessage{margin:7px 0 0;font-size:.87rem;line-height:1.45;color:#784437}
#shopMessage:empty{display:none}
@media(max-width:720px){
  .shop-shelf{grid-template-columns:minmax(0,1fr);gap:10px;margin-top:9px}
  .shop-counter canvas{width:97px}
  .scroll-rack{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .scroll-card{padding:5px;min-height:54px;column-gap:3px}
  .scroll-card canvas{width:23px;height:23px}
  .scroll-card strong{font-size:.88rem}.scroll-card small{font-size:.77rem}
  .scroll-paper{padding:12px}.scroll-heading canvas{width:35px;height:35px}
  #spellEffect{margin:8px 0}
}
@media(max-width:370px){.scroll-rack{grid-template-columns:repeat(2,minmax(0,1fr))}}
