/* Namespaced selectors keep map cells, character art and battle choices intact. */
body .nx-command:not([hidden]){
  --nx-emblem-size:48px;position:relative;display:inline-flex;flex-direction:column;
  align-items:center;justify-content:center;gap:3px;min-width:0;min-height:68px;
  padding:7px 10px 9px;border:1px solid #84643c;border-radius:4px;
  color:#f3dfba;background:radial-gradient(ellipse at 50% 0,#60452d55,transparent 75%),linear-gradient(#252326,#15151b);
  box-shadow:inset 0 1px #f6db9d20,0 3px 8px #0004;
  font-size:12px;line-height:1.3;text-align:center;text-decoration:none;
  white-space:normal;overflow-wrap:anywhere;vertical-align:middle;
  transition:border-color .16s,background-color .16s,box-shadow .16s;
}
body .nx-command[hidden]{display:none!important}
/* One transparent raster medallion, no cloth, wings or synthetic line art. */
body .nx-command>.nx-command-emblem{
 display:block;flex:none;width:var(--nx-emblem-size);height:var(--nx-emblem-size);
 margin:0 auto;pointer-events:none;background:var(--nx-medallion) center/contain no-repeat;
 filter:drop-shadow(0 2px 2px #0006);transition:filter .16s ease;
}
body .nx-command>i[aria-hidden="true"],body .nx-command.city-link>b[aria-hidden="true"]{display:none}
body .nx-command.city-link>span:not(.nx-command-emblem){display:grid;gap:3px;text-align:center}
body .nx-command small{font-size:10px;color:#cbbca6;line-height:1.3}
body .nx-command:is([aria-current="page"],[aria-pressed="true"]){border-color:#d8b16c;background:radial-gradient(ellipse at 50% 0,#30587890,transparent 80%),#1b2029;box-shadow:inset 0 -2px #d8b16c,0 0 12px #6196c518}
body .nx-command.primary{border-color:#ba975b;background:linear-gradient(#3b3026,#231c1b);color:#fff0cd}
body .nx-command:hover:not(:disabled){border-color:#f1d099;box-shadow:inset 0 1px #fff2cc55,0 0 13px #bd8c392b}
body .nx-command:focus-visible{outline:3px solid #a9dcff;outline-offset:3px;border-color:#fff0c6}
body .nx-command:disabled,body fieldset:disabled .nx-command{opacity:.48;cursor:not-allowed}
body #side nav:not(.fighter-profile-nav){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
body #side nav .nx-command{width:100%;margin:0;--nx-emblem-size:48px;min-height:76px}
body .fighter-profile-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
body .header-actions{flex-wrap:wrap;gap:6px}
body .header-actions .nx-command{--nx-emblem-size:39px;min-height:55px;padding:3px 7px 5px;font-size:11px;max-width:110px}
body .hall-modes .nx-command,body .city-links .nx-command{--nx-emblem-size:56px;min-height:112px;padding:10px;font-size:14px}
body .world-tools .nx-command{width:100%;--nx-emblem-size:52px;min-height:76px}
body .gothic-turn .nx-command,body #duelTurn .nx-command{--nx-emblem-size:40px;min-height:61px;padding:4px 8px;font-size:12px}
body .character-link.nx-command{display:flex;--nx-emblem-size:42px;font-size:11px;min-height:60px}
@media(max-width:650px){
 body .header-actions{width:100%;margin-left:0;justify-content:flex-end}
 body .header-actions .nx-command{flex:1 1 48px;max-width:none;font-size:10px;--nx-emblem-size:34px;min-height:50px}
 body .hall-modes{grid-template-columns:repeat(2,minmax(0,1fr))}
 body .hall-modes .nx-command,body .city-links .nx-command{--nx-emblem-size:48px;min-height:96px;font-size:12px}
 body #side nav .nx-command{--nx-emblem-size:43px;min-height:66px;font-size:11px}
 body .world-ribbon>.nx-command{flex-shrink:0;max-width:95px;--nx-emblem-size:44px}
 body .nx-command{min-height:60px;--nx-emblem-size:45px}
}
@media(prefers-reduced-motion:reduce){body .nx-command,body .nx-command *{transition:none;animation:none}}
@media(forced-colors:active){
 body .nx-command{border:1px solid ButtonText;background:ButtonFace;color:ButtonText;box-shadow:none}
 body .nx-command-emblem{display:none!important}
 body .nx-command:is([aria-current="page"],[aria-pressed="true"]){outline:2px solid Highlight}
 body .nx-command:focus-visible{outline-color:Highlight}
}

/* Result controls get the same medallions; supplied victory/defeat crests remain unchanged. */
body .standard-orders button.nx-command{--nx-emblem-size:clamp(28px,4.4vw,48px);min-height:0;padding:3px 2px;border:0;border-radius:0;background:none;box-shadow:none;font:bold clamp(10px,1.3vw,16px) Georgia;color:#ffebc6;justify-content:flex-start}
body .standard-orders button.nx-command::before,body .standard-orders button.nx-command::after{content:none;display:none}
/* Quiet gold highlight only: no scaling, sweeping stripe or moving caption. */
body .nx-command:is(:hover,:focus-visible):not(:disabled){transform:none}
body .nx-command:is(:hover,:focus-visible):not(:disabled)>.nx-command-emblem{filter:drop-shadow(0 2px 2px #0006) drop-shadow(0 0 3px #c79e514d)}
@media(prefers-reduced-motion:reduce){body .nx-command>.nx-command-emblem{transition:none}}

/* Shop categories live inside the unchanged hero artwork, centered at its foot. */
body[data-screen="shop"] #sceneLabel{left:3%;right:3%;bottom:3%;display:flex;flex-direction:column;align-items:center;gap:6px}
body[data-screen="shop"] .shop-filters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;width:min(100%,592px)}
body[data-screen="shop"] .shop-filters>button,
body[data-screen="shop"] .shop-filters>.nx-command{--nx-emblem-size:48px;width:100%;aspect-ratio:1;height:auto;min-height:0;min-width:0;margin:0;padding:6px 3px;font-size:12px;line-height:1.25;overflow-wrap:normal}
body[data-screen="shop"] .shop-preview-label{max-width:100%;padding:4px 8px;background:#15151be6;border-radius:3px;font-size:12px;text-align:center}
@media(max-width:850px){
 body[data-screen="shop"] .shop-filters{gap:4px}
 body[data-screen="shop"] .shop-filters>button,body[data-screen="shop"] .shop-filters>.nx-command{--nx-emblem-size:clamp(20px,3vw,36px);height:auto;min-height:0;font-size:10px}
}
@media(max-width:520px){
 body[data-screen="shop"] .scene{padding-bottom:166px}
 body[data-screen="shop"] #sceneLabel{bottom:9px;left:10px;right:10px}
 body[data-screen="shop"] .shop-filters{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 body[data-screen="shop"] .shop-filters>button,body[data-screen="shop"] .shop-filters>.nx-command{--nx-emblem-size:36px;aspect-ratio:auto;height:72px;min-height:72px;font-size:12px}
}

/* Forge silhouettes register to the canvas, never the mobile scene padding. */
body[data-screen="shop"] .shop-hotspots{position:absolute;inset:0 auto auto 0;width:100%;height:auto;aspect-ratio:840/455;z-index:2;overflow:hidden;pointer-events:none}
body[data-screen="shop"] #sceneLabel{z-index:3}
.shop-hotspot{pointer-events:visiblePainted;cursor:pointer;outline:none}
.shop-hotspot-shape{fill:#dca74604;stroke:#c9a06a;stroke-width:1.25;stroke-opacity:.10;stroke-linecap:round;stroke-linejoin:round;transition:fill .35s,stroke-opacity .35s}
.shop-hotspot-glint{fill:none;stroke:#ddba85;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round;filter:blur(.55px);opacity:0;pointer-events:none}
.shop-hotspot-sign{opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity .18s,transform .18s,visibility 0s .18s;pointer-events:none}
.shop-hotspot:is(:hover,:focus-visible,[aria-pressed="true"]) .shop-hotspot-sign{opacity:1;visibility:visible;transform:none;transition-delay:0s}
.shop-hotspot-sign path{fill:#211a13ef;stroke:#ad8547;stroke-width:2}
.shop-hotspot-sign text{fill:#e6c78e;font:bold 25px Georgia,"Times New Roman",serif;letter-spacing:2px;paint-order:stroke;stroke:#17120c;stroke-width:1}
.shop-hotspot:is(:hover,:focus-visible,[aria-pressed="true"]) .shop-hotspot-shape{fill:#d9a3600c;stroke:#d4af79;stroke-width:1.8;stroke-opacity:.62;filter:blur(.35px) drop-shadow(0 0 4px #d6a15852)}
.shop-hotspot:is(:hover,:focus-visible) .shop-hotspot-shape{animation:shop-forge-glow 3.2s ease-in-out infinite}
.shop-hotspot:is(:hover,:focus-visible) .shop-hotspot-glint{opacity:.32;animation:shop-metal-glint 3.2s ease-in-out infinite}
.shop-hotspot:focus-visible .shop-hotspot-sign path{stroke:#b5e6ff;stroke-width:4}
.shop-hotspot:is(:hover,[aria-pressed="true"]) .shop-hotspot-sign path{stroke:#c9a471}
@keyframes shop-metal-glint{50%{opacity:.48}}
@keyframes shop-forge-glow{50%{stroke-opacity:.78;filter:blur(.45px) drop-shadow(0 0 6px #e0ab625e)}}
@media(hover:none){
 .shop-hotspot .shop-hotspot-sign{opacity:1;visibility:visible;transform:none}
 /* Keep the tappable armor plaque clear of the adjacent sword silhouette. */
 .shop-hotspot[data-shop-hotspot="armor"] .shop-hotspot-sign{transform:translateX(-46px)}
 .shop-hotspot .shop-hotspot-sign path{pointer-events:visiblePainted}
}
@media(prefers-reduced-motion:reduce){.shop-hotspot-shape,.shop-hotspot-sign{transition:none}.shop-hotspot .shop-hotspot-glint,.shop-hotspot .shop-hotspot-shape{animation:none!important}}
@media(forced-colors:active){.shop-hotspot-shape{stroke:ButtonText}.shop-hotspot-sign path{fill:Canvas;stroke:ButtonText}.shop-hotspot-sign text{fill:ButtonText;stroke:none}.shop-hotspot:focus-visible .shop-hotspot-shape{stroke:Highlight;stroke-width:4;stroke-opacity:1;filter:none}}
