:root { --leader-skins-art: url('./assets/leader-skins-human.webp'); }
.menu-skin-icon { display: inline-block; width: 1.2rem; height: 1.2rem; border: 1px solid #dbc18a; border-radius: 50%; vertical-align: middle; margin-right: .15rem; }
.skins-screen { width: min(100%,76rem); }
.skin-wallet { color: var(--paper-gold); text-align: right; font-size: .95rem; white-space: nowrap; }
.skin-wallet strong { font-size: 1.6rem; color: #245b4c; }
.skin-wallet > span { display: block; font-size: .8125rem; margin-top: .2rem; }
.skin-workbench { display: grid; grid-template-columns: minmax(12rem,31%) minmax(0,1fr); gap: clamp(.6rem,2vw,1.5rem); align-items: start; }
.skin-preview { padding: clamp(.65rem,1.8vw,1.35rem); display: grid; justify-items: center; gap: .4rem; text-align: center; }
.skin-preview-frame { position: relative; width: min(100%,34svh,17rem); aspect-ratio: 1; padding: .22rem; background: linear-gradient(145deg,#fff1c8,#9c7546 32%,#f1d99c 63%,#736345); clip-path: polygon(7% 0,100% 0,100% 93%,93% 100%,0 100%,0 7%); }
.skin-preview-art { position: absolute; inset: .22rem; clip-path: inherit; filter: brightness(1.05); }
.skin-preview-frame::after { content: ''; position: absolute; inset: .55rem; border: 1px solid #f3e6c29c; clip-path: inherit; pointer-events: none; }
.skin-preview .overline { color: #6a592c; font-size: .8125rem; margin-top: .3rem; }
.skin-preview h2 { font: 700 clamp(1.25rem,2.5vw,1.85rem)/1.3 var(--serif); color: #204d43; }
.skin-description { color: #405d52; font-size: .875rem; line-height: 1.7; }
#skin-action { width: 100%; margin-top: .2rem; min-height: 2.6rem; white-space: normal; line-height: 1.4; font-size: .875rem; padding-inline: .45rem; }
.skin-notice { min-height: 2.8em; color: #675329; font-size: .8125rem; line-height: 1.5; }
.skin-gallery { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: clamp(.35rem,1vw,.75rem); max-height: min(68svh,37rem); overflow: auto; padding: .15rem .3rem .45rem; scrollbar-color: #708e79 #d4e4d9; }
.skin-tile { position: relative; display: grid; min-width: 0; gap: .2rem; padding: .25rem .25rem .45rem; border: 1px solid #96a995; color: #244b3d; background: linear-gradient(150deg,#fffae9,#dce9dd); box-shadow: 0 .2rem .5rem #193c3321; }
.skin-tile:hover { border-color: #1b7159; background: #f3ffe8; }
.skin-tile:focus-visible { outline: 2px solid #1f6c55; outline-offset: 2px; }
.skin-tile.is-selected { border-color: #27735a; outline: 2px solid #27735a; outline-offset: -2px; background: #d4eee0; }
.skin-tile.is-equipped::after { content: '✓'; position: absolute; top: .45rem; right: .45rem; display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; color: #193e30; background: #f8e7ad; border: 1px solid #fff8d9; box-shadow: 0 .1rem .35rem #071e245c; font-weight: 800; }
.skin-tile-art { aspect-ratio: 1; width: 100%; border: 1px solid #a0a781; }
.skin-tile.is-unowned .skin-tile-art, .skin-preview.is-unowned .skin-preview-art { filter: brightness(.52) saturate(.6); }
.skin-tile strong { font-size: .875rem; line-height: 1.3; font-family: var(--serif); }
.skin-tile-state { font-size: .75rem; color: #6d5c32; }
.skin-footnote { margin-top: .7rem; text-align: center; color: #40584c; font-size: .8125rem; line-height: 1.6; }
@media (orientation: landscape) and (max-height: 440px) {
  .skin-preview { gap: .2rem; padding: .55rem; }
  .skin-preview-frame { width: min(100%,25svh); }
  .skin-preview .overline { margin-top: .1rem; font-size: .75rem; }
  .skin-description { display: none; }
  .skin-gallery { max-height: calc(100svh - 8rem); }
  .skin-footnote { margin-top: .4rem; }
}
@media (max-width: 620px) and (orientation: portrait) {
  .skin-workbench { grid-template-columns: minmax(0,1fr); }
  .skin-preview-frame { width: min(48vw,14rem); }
  .skin-preview { gap: .35rem; }
  .skin-gallery { grid-template-columns: repeat(3,minmax(0,1fr)); max-height: none; overflow: visible; }
}
