/* GENERATED by tasks/gacha_weapon_look_2026-11-16/make_weapon_css.py - the gacha look of 2026-11-04/05
   for the weapon-skin box: every rule of the three sheets below that names the wing box, with the id
   swapped for the weapon box's, then the weapon box's own art and colour. Edit the script, not this file. */
/* ---- from css/ui_gacha_refinement.css (20 rules) ---- */
#wsgGachaWindow.pxg-enhanced {
  --pxg-ink: #f5edda;
  --pxg-muted: #aebbd1;
  --pxg-edge: #34465f;
  --pxg-gold: #e8c47c;
  --pxg-deep: #111c2e;
  --pxg-panel: #1a2940;
  --pxg-wash: rgba(157, 190, 228, .09);
  width: 870px;
  color: var(--pxg-ink);
}
body.theme-wood #wsgGachaWindow.pxg-enhanced {
  --pxg-ink: #fff0d4;
  --pxg-muted: #c8b99d;
  --pxg-edge: #67503b;
  --pxg-deep: #2a2019;
  --pxg-panel: #3a2c22;
  --pxg-wash: rgba(235, 191, 111, .07);
}
#wsgGachaWindow.pxg-enhanced .hw-tab {
  min-width: 0; min-height: 36px; padding: 8px 10px;
  border: 1px solid transparent; border-radius: 6px;
  color: var(--pxg-muted); background: transparent;
  font: inherit; font-size: 13px; line-height: 1.35; font-weight: 700;
}
#wsgGachaWindow.pxg-enhanced .hw-tab.on {
  color: #fff0cc; background: #35415a; border-color: #7f704f;
  box-shadow: inset 0 -2px 0 var(--pxg-gold);
}
#wsgGachaWindow.pxg-enhanced .hw-go {
  min-width: 0; min-height: 66px; padding: 10px 4px; border-radius: 7px;
  border: 1px solid #be9454; color: #241c11; background: linear-gradient(#f3d593, #d6ad67);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24); line-height: 1.5;
}
#wsgGachaWindow.pxg-enhanced .hw-go.ruby {
  color: #f7dce5; border-color: #796274; background: linear-gradient(#44384e, #302a3d);
}
#wsgGachaWindow.pxg-enhanced .hw-go:disabled {
  color: #a5acb9; background: #2a3447; border-color: #46526a; opacity: .75; box-shadow: none; cursor: not-allowed;
}
@media (max-width: 760px) {
  #wsgGachaWindow.pxg-enhanced .hw-tab { padding: 7px 3px; font-size: 12px; }
}
#wsgReveal .hw-pop {
  box-sizing: border-box; display: flex; flex-direction: column; min-height: 0;
  max-height: calc(100vh * var(--ui-inv, 1) - 24px);
  max-height: calc(100dvh * var(--ui-inv, 1) - 24px);
  overflow: hidden;
  padding: 20px; border: 1px solid #8f7b57; border-radius: 14px;
  background: linear-gradient(145deg, #23334b, #111a2b);
  box-shadow: 0 18px 55px rgba(0,0,0,.45); animation: pxg-reveal-in .18s ease-out;
}
#wsgReveal .hw-cards {
  flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain;
  padding: 2px; align-content: flex-start;
}
#wsgReveal .hw-card.good.open,
#wsgReveal .hw-card.normal.open { animation: none; filter: none; }
#wsgReveal .hw-back { border-color: #9d865b; background: linear-gradient(145deg, #3a4a65, #202d43); }
#wsgReveal .hw-back::after { content: ''; width: 16px; height: 16px; border: 1px solid #d5b571; transform: rotate(45deg); }
#wsgReveal .hw-sum {
  flex: 0 1 auto; min-height: 0; max-height: min(180px, calc(28vh * var(--ui-inv, 1)));
  overflow: auto; overscroll-behavior: contain;
  margin-top: 16px; padding: 13px; gap: 9px; border: 1px solid #35445b;
  border-radius: 8px; background: #111c2e; line-height: 1.6;
}
#wsgReveal .hw-pop-btns {
  position: sticky; bottom: 0; z-index: 1; flex: 0 0 auto;
  flex-wrap: wrap; gap: 8px; margin-top: 16px; background: #152034;
}
#wsgReveal .hw-pop-btns button { min-height: 40px; border-color: #6c7890; border-radius: 7px; background: #2c3b53; }
#wsgReveal .hw-pop-btns .hw-again { color: #241c11; border-color: #be9454; background: linear-gradient(#f3d593, #d6ad67); }
body.touch #wsgReveal .hw-pop-btns button { min-height: calc(44px * var(--ui-inv, 1)); }
@media (max-height: 480px) {
  #wsgReveal .hw-pop { padding: 12px; }
  #wsgReveal .hw-sum { margin-top: 9px; padding: 9px; }
  #wsgReveal .hw-pop-btns { margin-top: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  #wsgReveal .hw-pop,
  #wsgReveal .hw-card { animation: none; }
  #wsgReveal .hw-face { transition: none; }
}
/* ---- from css/ui_gacha_cinematic.css (32 rules) ---- */
#wsgGachaWindow.pxc-gacha {
  --pxc-gold: #d6b56d;
  --pxc-gold-edge: #a67d3d;
  --pxc-cream: #f5e6c7;
  --pxc-rail-w: 352px;
  --pxc-gacha-scenery: url('../assets/ui/gacha_hall.jpg');
  box-sizing: border-box;
  width: var(--ui-window-max-w, calc(100vw * var(--ui-inv, 1) - 16px));
  height: var(--ui-window-max-h, calc(100vh * var(--ui-inv, 1) - 16px));
  border: 1px solid var(--glass-edge, var(--pxc-gold-edge)); border-radius: var(--ui-r-panel,10px);
  background: linear-gradient(90deg, rgba(4,13,27,.06) 35%, rgba(4,12,24,.34) 66%, rgba(4,12,24,.6)), var(--pxc-gacha-scenery) center / cover no-repeat #101a2c;
  box-shadow: var(--glass-shadow,0 10px 35px rgba(0,0,0,.55));
  color: var(--pxc-cream);
}
#wsgGachaWindow.pxc-gacha:not(.win-plate) > .win-title {
  flex: 0 0 auto; min-height: 48px; padding: 11px 68px 11px 25px;
  border: 0; border-bottom: 1px solid rgba(214,181,109,.34);
  background: linear-gradient(90deg, rgba(9,20,36,.93), rgba(12,23,40,.56), rgba(9,20,36,.93));
  color: var(--pxc-cream); box-shadow: inset 0 2px 0 rgba(214,181,109,.18);
  font-weight: 800; font-size: 19px; letter-spacing: .02em;
}
@media (min-height: 381px) {
  #wsgGachaWindow.pxc-gacha.win-plate > .win-title { padding-right: calc(56px * var(--ui-inv,1)); }
  body:not(.touch) #wsgGachaWindow.pxc-gacha.win-plate { --ui-plate-h: 48px; }
}
#wsgGachaWindow.pxc-gacha > .win-body {
  flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0;
  padding: 12px 22px 20px; background: none; overflow: hidden;
}
#wsgGachaWindow.pxc-gacha .hw-tabs {
  flex: 0 0 auto; align-self: flex-end; width: var(--pxc-rail-w); max-width: 100%;
  box-sizing: border-box; margin: 0 0 10px; padding: 4px;
  border: 1px solid var(--ui-edge-soft,rgba(214,181,109,.5)); border-radius: var(--ui-r-box,8px);
  background: var(--glass-soft,rgba(9,20,34,.94)); box-shadow: var(--ui-lip,inset 0 1px 0 rgba(214,181,109,.14));
}
#wsgGachaWindow.pxc-gacha .hw-tab { font-size: 12px; min-height: 34px; padding: 7px 4px; border-radius: var(--ui-r-ctl,6px); color: var(--muted,#c2c9cb); }
#wsgGachaWindow.pxc-gacha .hw-tab.on {
  color: var(--brass-hi,#f9eac8); background: var(--ui-on-fill,linear-gradient(#3a5390,#24345e));
  border-color: var(--glass-edge,#8d764c); box-shadow: var(--ui-lip,inset 0 1px 0 rgba(214,181,109,.14));
}
#wsgGachaWindow.pxc-gacha .hw-go {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  min-height: 55px; padding: 9px 18px; border-radius: var(--ui-r-box,8px); border: 1px solid var(--ui-gold-edge,#805028);
  background: var(--ui-gold,linear-gradient(#ffd66b,#e09a2c)); color: var(--ui-gold-ink,#1b1406);
  box-shadow: var(--ui-gold-drop,0 2px 0 #6b3f1c),inset 0 1px 0 rgba(255,255,255,.35); text-shadow: none;
}
#wsgGachaWindow.pxc-gacha .hw-go.ruby {
  display: flex; flex-direction: column; justify-content: center; min-height: 69px; padding: 8px 3px;
  border-color: var(--ui-edge-soft,#827070); background: var(--glass-soft,linear-gradient(#343e61,#202b49)); color: var(--ui-ruby,#ff9ab0);
  box-shadow: var(--ui-drop,0 2px 0 rgba(10,14,26,.65)),var(--ui-lip,inset 0 1px 0 rgba(255,226,138,.14));
}
#wsgGachaWindow.pxc-gacha .hw-go:disabled { color: #a8adb2; background: linear-gradient(#39414a,#252e39); border-color: #5f645f; opacity: .72; box-shadow: inset 0 0 0 2px rgba(0,0,0,.25); }
@media (max-width: 950px) {
  #wsgGachaWindow.pxc-gacha { --pxc-rail-w: 300px; }
  #wsgGachaWindow.pxc-gacha > .win-body { padding: 10px 13px 13px; }
}
@media (max-width: 600px) and (orientation: portrait) {
  #wsgGachaWindow.pxc-gacha { background-position: 35% top; }
  #wsgGachaWindow.pxc-gacha:not(.win-plate) > .win-title { padding-left: 14px; font-size: 16px; }
  #wsgGachaWindow.pxc-gacha > .win-body { overflow: auto; }
  #wsgGachaWindow.pxc-gacha .hw-tabs { width: 100%; align-self: stretch; }
}
@media (max-height: 480px) and (orientation: landscape) {
  #wsgGachaWindow.pxc-gacha { --pxc-rail-w: 310px; }
  #wsgGachaWindow.pxc-gacha:not(.win-plate) > .win-title { min-height: 40px; padding-top: 8px; padding-bottom: 8px; font-size: 16px; }
  #wsgGachaWindow.pxc-gacha > .win-body { padding-top: 6px; padding-bottom: 8px; }
  #wsgGachaWindow.pxc-gacha .hw-tabs { margin-bottom: 6px; }
}
#wsgReveal.pxc-reveal-overlay {
  box-sizing: border-box; align-items: stretch; justify-content: stretch;
  padding: max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));
  background: #071221;
}
#wsgReveal .hw-pop.pxc-reveal-box {
  position: relative; isolation: isolate; width: 100%; height: 100%; max-width: none;
  max-height: 100%; min-width: 0; padding: clamp(16px,2.5vw,34px); overflow: hidden;
  border: 1px solid #ac884b; border-radius: 5px;
  background: linear-gradient(rgba(6,19,35,.78),rgba(6,15,28,.88)), url('../assets/ui/gacha_hall.jpg') 40% center / cover;
  box-shadow: inset 0 0 0 4px #0b1b2d,inset 0 0 0 5px rgba(214,181,109,.32);
  animation: pxc-result-enter .22s ease-out;
}
#wsgReveal.pxc-reveal-overlay .hw-cards {
  position: relative; z-index: 1; flex: 1 1 auto; min-height: 85px;
  
  align-content: flex-start; align-content: safe center;
  gap: 16px; padding: 26px 8px; max-width: 1120px; width: 100%; box-sizing: border-box;
  align-self: center; transition: none;
}
#wsgReveal.pxc-reveal-overlay .hw-card { width: 134px; height: 178px; flex: 0 0 auto; }
#wsgReveal.pxc-reveal-overlay[data-pxc-count="several"] .hw-cards { max-width: 750px; }
#wsgReveal.pxc-reveal-overlay[data-pxc-count="single"] .hw-card { width: 194px; height: 258px; }
#wsgReveal.pxc-reveal-overlay.many .hw-card { width: 59px; height: 79px; }
#wsgReveal.pxc-reveal-overlay .hw-back {
  border: 0;
  background: url('../assets/ui/ritual/ritual-card-back.svg') center / 100% 100% no-repeat #102b48;
  box-shadow: 0 5px 12px rgba(0,0,0,.3);
}
#wsgReveal.pxc-reveal-overlay .hw-front {
  flex-direction: column; gap: 0; padding: 8px; box-sizing: border-box; overflow: hidden;
  border: 1px solid var(--pxr-card-edge);
  background: radial-gradient(ellipse at 50% 25%,rgba(var(--pxr-card-rgb),.32),transparent 65%),linear-gradient(#1b2e48,#0d1c31);
  box-shadow: inset 0 0 0 3px #0b1b2e,inset 0 0 0 4px rgba(var(--pxr-card-rgb),.44),var(--ui-lip,inset 0 1px 0 rgba(255,226,138,.14));
}
#wsgReveal.pxc-reveal-overlay .hw-card.pxc-rare-arrival.open { animation: pxc-rare-arrive .52s ease-out 1; }
#wsgReveal .pxr-ritual-trigger {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: min(360px,85%); min-height: 44px; padding: 12px 16px; border: 0; border-radius: 8px;
  background: transparent; box-shadow: none; color: #f4e4bc; font: inherit;
  pointer-events: auto; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
#wsgReveal.pxc-reveal-overlay .hw-sum {
  position: relative; z-index: 3; width: min(100%,1000px); box-sizing: border-box; align-self: center;
  margin-top: 12px; max-height: min(150px,calc(24vh * var(--ui-inv,1))); padding: 12px 18px;
  border: 1px solid rgba(214,181,109,.34); border-radius: 3px; background: rgba(9,21,36,.94);
}
#wsgReveal.pxc-reveal-overlay .hw-pop-btns {
  position: relative; z-index: 4; min-height: 44px; flex-shrink: 0; padding-top: 14px; margin-top: 12px;
  border-top: 1px solid rgba(214,181,109,.3); background: linear-gradient(90deg,transparent,#0d1d30 18%,#0d1d30 82%,transparent);
}
#wsgReveal.pxc-reveal-overlay .hw-pop-btns button {
  min-width: 130px; min-height: 44px; padding: 9px 20px; border-radius: var(--ui-r-box,8px); border-color: var(--glass-edge,#a48b58);
  color: var(--paper,#f5e6c7); background: var(--glass-soft,linear-gradient(#34445b,#1e2c42)); box-shadow: var(--ui-drop,0 2px 0 rgba(10,14,26,.65)),var(--ui-lip,inset 0 1px 0 rgba(255,226,138,.14));
  font: inherit; font-size: 13px; line-height: 1.5;
}
#wsgReveal.pxc-reveal-overlay .hw-pop-btns .hw-again { color: var(--ui-gold-ink,#1b1406); background: var(--ui-gold,linear-gradient(#ffd66b,#e09a2c)); border-color: var(--ui-gold-edge,#805028); box-shadow: var(--ui-gold-drop,0 2px 0 #6b3f1c),inset 0 1px 0 rgba(255,255,255,.35); text-shadow: none; }
#wsgReveal .pxr-ritual-trigger:focus-visible { outline: none; }
@media (max-width: 900px) {
  #wsgReveal.pxc-reveal-overlay .hw-card { width: 108px; height: 145px; }
  #wsgReveal.pxc-reveal-overlay .hw-cards { gap: 11px; }
  #wsgReveal.pxc-reveal-overlay[data-pxc-count="several"] .hw-cards { max-width: 600px; }
}
@media (max-height: 480px), (max-width: 600px) {
  #wsgReveal.pxc-reveal-overlay { padding: max(6px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left)); }
  #wsgReveal .hw-pop.pxc-reveal-box { padding: 14px; }
  #wsgReveal.pxc-reveal-overlay .hw-card { width: 77px; height: 106px; }
  #wsgReveal.pxc-reveal-overlay.many .hw-card { width: 42px; height: 58px; }
  #wsgReveal.pxc-reveal-overlay[data-pxc-count="single"] .hw-card { width: 126px; height: 162px; }
  #wsgReveal.pxc-reveal-overlay .hw-cards {
      gap: 8px; padding: 14px 3px;
  }
  #wsgReveal.pxc-reveal-overlay .hw-pop-btns { padding-top: 8px; margin-top: 8px; gap: 7px; }
  #wsgReveal.pxc-reveal-overlay .hw-pop-btns button { min-width: 105px; padding: 8px 12px; }
  #wsgReveal.pxc-reveal-overlay .hw-sum { padding: 8px 10px; margin-top: 7px; }
}
@media (max-height: 480px) and (orientation: landscape) {
  #wsgReveal.pxc-reveal-overlay[data-pxc-count="several"] .hw-cards { max-width: 1120px; }
}
/* ---- from css/ui_gacha_rare.css (2 rules) ---- */
#wsgReveal .hw-card > .hw-back {
  background:
    url("../assets/fx/prize/prize_back.png") center / 86% no-repeat,
    linear-gradient(160deg, var(--pxb-a, #4a2d16), var(--pxb-b, #190f08));
  border: 1px solid var(--pxb-edge, rgba(224, 131, 42, 0.55));
  box-sizing: border-box;
}
#wsgReveal .hw-card > .hw-back { --pxb-a: #1b3a5e; --pxb-b: #0b1424; --pxb-edge: rgba(63, 154, 224, 0.55); }
/* ---- the weapon box's own (hand-written) ----------------------------------------------------------
   Its art is a weapon's bag icon (js/weapon_gacha.js wsgArt: a 32 px cell of assets/ui/items.png, drawn at
   any size by scaling the sheet), a row a look: two good looks, then two normal ones, seven types each. */
.pxg-enhanced .wsg-looks { display: flex; flex-direction: column; gap: 6px; background: none; }
.pxg-enhanced .wsg-looks .wsg-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); width: 100%; max-width: none; gap: 5px; }
.pxg-enhanced .pxg-art-option.wsg-opt,
.pxc-gacha .pxg-art-option.wsg-opt { min-height: 48px; padding: 5px 2px; }
.pxg-enhanced .pxg-art-option.wsg-opt > span { display: grid; place-items: center; }
.pxg-enhanced .pxg-feature-art > .wsg-feature { display: block; filter: drop-shadow(0 5px 3px rgba(0,0,0,.5)); image-rendering: pixelated; }
.pxg-enhanced .pxg-feature-good .wsg-feature { filter: drop-shadow(0 0 7px rgba(255,200,74,.75)) drop-shadow(0 5px 3px rgba(0,0,0,.5)); }
.pxc-gacha .wsg-looks { flex-direction: column; }
.pxc-gacha .wsg-looks .wsg-row { width: 100%; gap: 6px; }
@media (max-width: 760px) {
  .pxg-enhanced .wsg-looks .wsg-row { gap: 3px; }
  .pxg-enhanced .pxg-art-option.wsg-opt,
  .pxc-gacha .pxg-art-option.wsg-opt { min-height: 36px; padding: 3px 1px; }
  /* the icon is a scaled sheet (inline px), so it is shrunk whole, background and all */
  .pxg-enhanced .pxg-art-option .wsg-art { zoom: .72; }
  .pxg-enhanced .pxg-feature-art > .wsg-feature { zoom: .75; }
}
/* a phone on its side: the feature box is 125 px high there (ui_gacha_cinematic.css) */
@media (max-height: 480px) and (orientation: landscape) {
  .pxg-enhanced .pxg-feature-art > .wsg-feature { zoom: .62; }
  .pxg-enhanced .pxg-art-option .wsg-art { zoom: .8; }
  .pxc-gacha .pxg-art-option.wsg-opt { min-height: 40px; }
}
/* the weapon box is the ember-red one (js/weapon_gacha.js .wsg-back / .wsg-pop) */
#wsgReveal .hw-card > .hw-back { --pxb-a: #5e1f1b; --pxb-b: #1e0b0b; --pxb-edge: rgba(224, 96, 72, 0.6); }
