/* Request 67: the story objective list is a sheet opened from the pause menu (centred over the paused battle) */
#objsheet { position: absolute; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 45%, rgba(20, 24, 14, 0.55), rgba(4, 6, 3, 0.82)); animation: objFade 0.18s ease-out both; }
@keyframes objFade { from { opacity: 0; } to { opacity: 1; } }
#objsheet #objpanel { width: min(520px, 90%); max-height: 86%; box-sizing: border-box; padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 8px;
  animation: popIn 0.26s cubic-bezier(.3,1.4,.5,1) both; }
#objhead { display: flex; align-items: baseline; gap: 10px; font: 900 20px var(--font); color: #f3e2a8; text-shadow: var(--ol); border-bottom: 1px solid rgba(226, 200, 120, 0.4); padding-bottom: 6px; }
#objhead b { flex: 1; font-weight: 900; }
#objhead .oc { color: #fff; font-size: 18px; }
#objhead .od { color: #e2c878; font-size: 14px; white-space: nowrap; }
#objlist { list-style: none; margin: 0; padding: 2px 4px 2px 2px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
#objback { flex: none; align-self: center; min-height: 48px; min-width: 160px; padding: 0 28px; font: 900 17px var(--font); }
#objlist li { display: flex; gap: 8px; font: 700 15px/1.35 var(--font); color: #f2ecd8; text-shadow: 0 1px 0 #000, 0 0 3px #000; padding: 5px 0; border-bottom: 1px dashed rgba(226, 200, 120, 0.16); }
#objlist li.cur .ot { color: #fff6d0; }
#objlist li .om { flex: none; width: 14px; color: #e2c878; }
#objlist li.done { color: #9fd38a; opacity: 0.75; }
#objlist li.done .om { color: #9fd38a; }
#objlist li.fin { color: #ffd27a; }
#objlist li { flex-wrap: wrap; }
#objlist li .ot { flex: 1 1 0; min-width: 0; }

/* Request 66: the pre-mission introduction on the arc console — the big screen shows the scene and the mission name,
   the commander's line, the new units and the skip / start keys are panels of the brass fan */
#menu-body.cr.fanned.two.m-intro { --crt-h: 46%; }
.cr.m-intro .fan.two { height: 51%; }
.arcintro .endcap { left: 50%; right: auto; bottom: 6%; transform: translateX(-50%); width: auto; max-width: 92%; text-align: center; padding: 6px 18px; }
.arcintro h2 { margin: 2px 0 0; }
.cr .fanbtn.cmdp .fl { flex-direction: row; align-items: center; gap: 0.6em; text-align: left; }
.cr .fanbtn.cmdp .cp { flex: none; width: 64px; height: 64px; object-fit: cover; object-position: 50% 14%; border-radius: 50%; border: 2px solid var(--nc); background: #10140c; box-shadow: 0 0 8px rgba(0, 0, 0, 0.8); }
.cr .fanbtn.cmdp .ctx { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 0; }
.cr .fanbtn.cmdp .nm { font-size: 14px; color: var(--nc); filter: brightness(1.45); letter-spacing: 0.02em; text-transform: none; }
.cr .fanbtn.cmdp .q { display: block; font: 700 16px/1.32 var(--font); color: #f6eed6; text-transform: none; letter-spacing: 0; overflow-y: auto; overscroll-behavior: contain; text-shadow: 0 1px 0 #000, 0 0 3px #000; }
.cr .fanbtn.cmdp .q.more { -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.cr .fanbtn.ucard .fl { gap: 2px; }
.cr .fanbtn.ucard .nt { font-size: 12px; letter-spacing: 0.06em; color: #ffd877; }
.cr .fanbtn.ucard .ui { width: 56px; height: 56px; object-fit: cover; border: 2px solid var(--nc); border-radius: 4px; box-shadow: 0 0 8px rgba(0, 0, 0, 0.7); animation: popIn 0.45s cubic-bezier(.3,1.4,.5,1) both; }
.cr .fanbtn.ucard b { font-size: 13px; line-height: 1.12; text-transform: none; letter-spacing: 0; }
/* Request 67: entrance — panels spring up in turn, the big screen boots through a short burst of noise */
.cr .fanslot.r1.introUp { animation: introUp 0.3s cubic-bezier(.3,1.45,.55,1) both; }
@keyframes introUp { from { transform: translateY(75%); opacity: 0; } 60% { opacity: 1; } to { transform: translateY(0); opacity: 1; } }
.arcintro .endimg { animation: bootImg 0.5s ease-out both; }
@keyframes bootImg { 0% { transform: scaleY(0.03); filter: brightness(2.6) saturate(0); } 22% { transform: scaleY(1); filter: brightness(1.8) saturate(0.2) contrast(1.4); } 100% { transform: none; filter: none; } }
.arcintro .endcap { animation: bootCap 0.28s 0.36s ease-out both; }
@keyframes bootCap { 0% { opacity: 0; } 40% { opacity: 0.85; } 55% { opacity: 0.3; } 100% { opacity: 1; } }
.arcintro .boot { position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0 2px, transparent 2px 4px),
    repeating-radial-gradient(circle at 17% 33%, rgba(225, 235, 215, 0.6) 0 1px, rgba(18, 22, 16, 0.85) 1px 3px),
    repeating-radial-gradient(circle at 71% 64%, rgba(255, 255, 255, 0.4) 0 1px, transparent 1px 4px);
  background-size: 100% 4px, 7px 5px, 5px 9px;
  animation: bootNoise 0.24s steps(1) 2, bootOut 0.22s 0.3s ease-in forwards; }
@keyframes bootNoise { 0% { background-position: 0 0, 0 0, 0 0; } 33% { background-position: 0 1px, 3px 2px, 2px 5px; } 66% { background-position: 0 3px, 5px 1px, 4px 2px; } }
@keyframes bootOut { to { opacity: 0; visibility: hidden; } }
@container app (max-height: 520px) {
  #menu-body.cr.fanned.two.m-intro { --crt-h: 42%; }
  .cr.m-intro .fan.two { height: 55%; }
  .arcintro .endcap { padding: 2px 12px; bottom: 4%; }
  .arcintro .who { font-size: 12px; }
  .arcintro h2 { font-size: 16px; }
}
#objlist li .oh { flex: 0 0 100%; padding-left: 20px; font: 700 12px/1.25 var(--font); color: #cfe7ff; opacity: 0.92; }

/* Request 65: the unit roster after the last mission — every unit and building the nation learned, then a pointer to skirmish */
.rosterview { position: absolute; inset: 0; overflow-y: auto; padding: calc(10px * var(--s) + 6px) calc(14px * var(--s) + 8px); box-sizing: border-box;
  background: radial-gradient(ellipse at 50% 0%, rgba(40, 46, 30, 0.75), rgba(8, 10, 6, 0.92)); }
.rosterview h2 { margin: 0 0 2px; font-size: max(16px, calc(22px * var(--s))); color: #fff0c0; text-shadow: var(--ol); }
.rosterview .rnote { font: 700 max(13px, calc(14px * var(--s))) / 1.35 var(--font); color: #f2ecd8; text-shadow: var(--ol); margin-bottom: 6px; }
.rosterview h3 { margin: 8px 0 4px; font-size: max(13px, calc(15px * var(--s))); color: var(--nc); text-shadow: var(--ol); border-bottom: 1px solid rgba(226, 200, 120, 0.35); }
.rosterview .rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(58px * var(--s) + 22px), 1fr)); gap: 8px; }
.rosterview .rcard { display: flex; flex-direction: column; align-items: center; gap: 2px; animation: popIn 0.4s cubic-bezier(.3,1.4,.5,1) both; }
.rosterview .rcard img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--nc); border-radius: 4px; box-shadow: 0 0 8px rgba(0, 0, 0, 0.7); }
.rosterview .rcard b { font-weight: 900; font-size: 12px; color: #fff; text-shadow: var(--ol); text-align: center; line-height: 1.15; }
@container app (max-height: 520px) {
  #objsheet #objpanel { width: min(560px, 82%); max-height: 92%; padding: 10px 14px 10px; gap: 5px; }
  #objhead { font-size: 16px; padding-bottom: 3px; }
  #objhead .od { font-size: 12px; }
  #objlist li { font-size: 14px; padding: 3px 0; }
  #objback { min-height: 44px; }
}

.introview .endcap { max-height: 80%; }
.introview .who { color: var(--nc); font-weight: 900; font-size: max(12px, calc(14px * var(--s))); text-shadow: var(--ol); }
.introview h2 { margin: 2px 0 4px; font-size: max(16px, calc(22px * var(--s))); color: #fff0c0; text-shadow: var(--ol); }
.introview .icards { display: flex; gap: 10px; margin: 4px 0 6px; flex-wrap: wrap; }
.introview .icard { width: calc(84px * var(--s) + 26px); display: flex; flex-direction: column; align-items: center; gap: 3px; animation: popIn 0.45s cubic-bezier(.3,1.4,.5,1) both; }
.introview .icard:nth-child(2) { animation-delay: 0.12s; } .introview .icard:nth-child(3) { animation-delay: 0.24s; }
.introview .icard img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--nc); border-radius: 4px; box-shadow: 0 0 12px rgba(0, 0, 0, 0.7); }
.introview .icard b { font-weight: 900; font-size: max(12px, calc(14px * var(--s))); color: #fff; text-shadow: var(--ol); text-align: center; line-height: 1.15; }
