/* build1437: 楽園 -ノア- のステージ選択(#noah-stage-select)も同じレイアウトを共用する。
   build1391 — FACELESS STAGE SELECT: shared CHAPTER/DAILY card component.
   All .zss-card skin declarations come from story_stage_select.css; this file
   only defines the full-screen page layout and its two-card arrangement.
   NO legacy .shooting-faceless-stage-select classes are used. */
:is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen {
  position:fixed !important;
  inset:0 !important;
  z-index:210 !important;
  box-sizing:border-box !important;
  display:block !important;
  padding:0 !important;
  margin:0 !important;
  overflow:hidden !important;
  isolation:isolate;
  background:linear-gradient(180deg,rgba(255,255,255,.40),rgba(255,253,249,.52)),
    url('../images/bg_dairy.webp') center center/cover no-repeat !important;
  color:#293c6a;
  font-family:'Noto Serif JP','Yu Mincho',serif;
  opacity:0;
  transition:opacity 200ms ease;
}
:is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen.show {opacity:1}
:is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen *,
:is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen *::before,
:is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen *::after {box-sizing:border-box}
:is(#shooting-faceless-stage-select,#noah-stage-select) .zfs-surface {
  position:absolute;
  top:var(--header-h,80px);
  bottom:var(--bottom-nav-h,76px);
  left:50%;
  transform:translateX(-50%);
  width:100%;max-width:430px;min-height:0;
  display:flex;flex-direction:column;
}
:is(#shooting-faceless-stage-select,#noah-stage-select) .zfs-pagehead {
  position:relative;
  flex:0 0 74px;
  min-height:0;
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  padding:1px 10px 0;
}
:is(#shooting-faceless-stage-select,#noah-stage-select) .zfs-back {
  position:absolute !important;
  top:8px !important;
  left:12px !important;
  box-sizing:border-box !important;
  display:block !important;
  width:82px !important;
  min-width:82px !important;
  height:35px !important;
  min-height:35px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  appearance:none !important;
  background:transparent url('../images/button_back.webp?v=1395-left-edge-fade') center/100% 100% no-repeat !important;
  font-size:0 !important;
  color:transparent !important;
  -webkit-text-fill-color:transparent !important;
  text-indent:-9999px !important;
  cursor:pointer;
  z-index:2;
}
:is(#shooting-faceless-stage-select,#noah-stage-select) .zfs-heading {
  display:block;
  max-width:100%;
  margin:8px 0 0 0;
  padding:0;
  font:600 clamp(21px,5.9vw,27px)/1.2 'Noto Serif JP',serif;
  letter-spacing:.1em;
  color:#683d1b;
  text-align:center;
  text-shadow:0 1px 0 #fffefb;
}
:is(#shooting-faceless-stage-select,#noah-stage-select) .zfs-ornament {
  display:flex;align-items:center;justify-content:center;
  width:90%;height:10px;margin-top:6px;
  color:#bd944f;font-size:11px;line-height:1;
}
:is(#shooting-faceless-stage-select,#noah-stage-select) .zfs-ornament::before,
:is(#shooting-faceless-stage-select,#noah-stage-select) .zfs-ornament::after {
  content:'';height:1px;flex:1;
  background:linear-gradient(90deg,transparent,rgba(177,131,67,.65));
}
:is(#shooting-faceless-stage-select,#noah-stage-select) .zfs-ornament::after {transform:scaleX(-1)}
:is(#shooting-faceless-stage-select,#noah-stage-select) .zfs-ornament span {margin:0 11px}
:is(#shooting-faceless-stage-select,#noah-stage-select) .zfs-scroll {
  flex:1 1 auto;min-height:0;
  overflow:hidden;
  padding:2px 9px 8px;
}
:is(#shooting-faceless-stage-select,#noah-stage-select) .zfs-list {
  display:flex;flex-direction:column;gap:8px;
  min-height:0;width:100%;margin:0;padding:0;
}
:is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen .zfs-list > .zss-card {
  width:100%;height:clamp(102px,17vh,138px);max-height:none;min-height:0;
  flex:0 0 auto;
  text-align:left;
}
:is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen .zss-card-row-reward .zss-reward-count {display:none !important}
:is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen .zss-card-row-reward .zss-reward-chip {
  grid-template-rows:minmax(0,1fr);
  align-content:center;
  padding:1px;
}
:is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen .zss-card-row-reward .zss-reward-icon {
  height:100%;min-height:0;align-self:center;justify-self:center;
}
:is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen .zss-card-row-reward .zss-reward-icon img {
  width:24px;height:24px;max-width:100%;max-height:100%;object-fit:contain;
}
:is(#shooting-faceless-stage-select,#noah-stage-select) .zfs-attributes {
  min-height:0;overflow:hidden;
  font-size:9px;line-height:1.12;
  color:#75623d;
}
:is(#shooting-faceless-stage-select,#noah-stage-select) .zfs-record .zss-record-rank b {font-size:25px}
:is(#shooting-faceless-stage-select,#noah-stage-select) .zfs-record .zss-record-score b {font-size:11px}
:is(#shooting-faceless-stage-select,#noah-stage-select) .zfs-record .zss-record span {font-size:8px}
:is(#shooting-faceless-stage-select,#noah-stage-select) .zfs-card:focus-visible {outline:2px solid #b59867;outline-offset:-4px}
@media(max-width:359px){
  :is(#shooting-faceless-stage-select,#noah-stage-select) .zfs-back {width:75px !important;min-width:75px !important;height:32px !important;min-height:32px !important}
  :is(#shooting-faceless-stage-select,#noah-stage-select) .zfs-heading {font-size:20px}
  :is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen .zfs-list > .zss-card {grid-template-columns:40px minmax(0,1fr) 57px 10px}
  :is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen .zss-card-body {padding-left:6px;padding-right:3px}
  :is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen .zss-card-row-reward > .zss-card-label {width:43px;flex-basis:43px;font-size:8px}
  :is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen .zss-card-row-reward .zss-reward-chip {flex-basis:33px;width:33px;min-width:33px}
}
@media(max-height:760px){
  :is(#shooting-faceless-stage-select,#noah-stage-select) .zfs-pagehead {flex-basis:67px}
  :is(#shooting-faceless-stage-select,#noah-stage-select) .zfs-heading {margin-top:6px}
  :is(#shooting-faceless-stage-select,#noah-stage-select) .zfs-ornament {margin-top:3px}
  :is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen .zfs-list > .zss-card {height:clamp(96px,16.3dvh,116px)}
  :is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen .zss-card-body {padding:5px 5px 4px 9px;gap:2px}
}
@media(max-height:620px){
  :is(#shooting-faceless-stage-select,#noah-stage-select) .zfs-pagehead {flex-basis:54px}
  :is(#shooting-faceless-stage-select,#noah-stage-select) .zfs-back {top:5px !important}
  :is(#shooting-faceless-stage-select,#noah-stage-select) .zfs-heading {font-size:20px;margin-top:3px}
  :is(#shooting-faceless-stage-select,#noah-stage-select) .zfs-ornament {margin-top:1px;height:7px}
  :is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen .zfs-list > .zss-card {height:95px;grid-template-columns:38px minmax(0,1fr) 54px 10px}
  :is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen .zss-card-body {padding:3px 4px 3px 6px;gap:1px}
  :is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen .zss-card-name {font-size:13px}
  :is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen .zss-mission {font-size:9px}
  :is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen .zss-reward-chip {height:27px}
  :is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen .zss-card-row-reward .zss-reward-icon img {width:18px;height:18px}
}

/* build1405: FACELESS first-clear gems. One reward per frame, label under icon. */
:is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen .zss-card-row-reward .zss-reward-chip.zfs-first-clear-gem {
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:minmax(0,1fr) 9px !important;
  justify-items:center;
  align-items:center;
  height:34px;
  flex:0 0 42px;
  width:42px;
  min-width:42px;
  padding:1px 1px 2px !important;
  overflow:hidden;
}
:is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen .zfs-first-clear-gem .zss-reward-icon {
  grid-row:1 !important;
  height:100% !important;
  min-height:0;
}
:is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen .zfs-first-clear-gem .zss-reward-icon img {
  width:19px !important;
  height:19px !important;
}
:is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen .zfs-first-clear-gem .zfs-first-label {
  grid-row:2;
  display:block;
  font:600 7px/9px 'Noto Serif JP',serif;
  color:#916c3a;
  text-align:center;
  white-space:nowrap;
}
:is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen .zfs-first-clear-gem .zfs-gem-count {
  display:block;
  position:absolute;
  top:1px;
  right:1px;
  min-width:14px;
  padding:1px;
  background:rgba(255,252,246,.96);
  color:#7b4f32;
  text-align:right;
  font:600 8px/1 'Noto Serif JP',serif;
}
@media(max-width:359px){
  :is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen .zss-card-row-reward .zss-reward-chip.zfs-first-clear-gem {
    width:38px;
    min-width:38px;
    flex-basis:38px;
  }
}

/* =============================================================
   build1406 — FACELESS: first-clear label BELOW its item frame.
   Keep ×5 / ×10 inside the image frame as a corner counter.
   ============================================================= */
:is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen .zss-card-row-reward .zss-rewards {
  align-items:start !important;
  padding-bottom:11px !important;
}
:is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen .zss-card-row-reward .zss-reward-chip.zfs-first-clear-gem {
  position:relative !important;
  height:36px !important;
  display:grid !important;
  grid-template-rows:minmax(0,1fr) !important;
  padding:1px !important;
  overflow:visible !important;
}
/* Reclaim the space formerly occupied by text for all reward artwork. */
:is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen .zss-card-row-reward .zss-reward-chip:not(.zfs-first-clear-gem) .zss-reward-icon img {
  width:28px !important;
  height:28px !important;
  max-width:100% !important;
  max-height:100% !important;
}
:is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen .zfs-first-clear-gem .zss-reward-icon img {
  width:30px !important;
  height:30px !important;
  max-width:100% !important;
  max-height:100% !important;
}
:is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen .zfs-first-clear-gem .zfs-first-label {
  position:absolute !important;
  top:calc(100% + 2px) !important;
  left:0 !important;
  right:0 !important;
  width:100% !important;
  font-size:7px !important;
  line-height:9px !important;
  height:9px !important;
  text-align:center !important;
  pointer-events:none !important;
}
@media(max-height:620px) {
  :is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen .zss-card-row-reward .zss-rewards {
    padding-bottom:9px !important;
  }
  :is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen .zss-card-row-reward .zss-reward-chip:not(.zfs-first-clear-gem) .zss-reward-icon img {
    width:24px !important;
    height:24px !important;
  }
  :is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen .zss-card-row-reward .zss-reward-chip.zfs-first-clear-gem {
    height:30px !important;
  }
  :is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen .zfs-first-clear-gem .zss-reward-icon img {
    width:26px !important;
    height:26px !important;
  }
  :is(#shooting-faceless-stage-select,#noah-stage-select).zfs-screen .zfs-first-clear-gem .zfs-first-label {
    top:calc(100% + 1px) !important;
    height:8px !important;
    line-height:8px !important;
  }
}
