/* Ver.2.38: compact interview, one currency panel, visible actions on desktop. */
/* Keep the original interactive Lilith portrait and dialogue directly beneath
   the monster stage, freeing their former row in the information/actions pane. */
.interview-visual{display:flex;flex-direction:column;gap:9px;min-width:0;min-height:0}
.interview-visual>.interview-stage{width:100%;flex:0 0 auto}
.interview-visual>.interview-advisor{flex:0 0 auto;min-width:0;min-height:67px}
.interview-visual>.interview-advisor .interview-lilith-button{width:62px;height:61px}
.interview-visual>.interview-advisor p{min-width:0;overflow-wrap:anywhere}
/* A tall artwork column must not push stock inspection below the fold. */
@media(min-width:931px){
 .interview-info>.interview-actions{margin-top:0}
}

@media (min-width:701px) {
 .modal-window:has(.interview-shell){padding:12px 16px 10px;max-height:calc(100dvh - 12px);}
 .interview-heading{gap:10px;margin-bottom:8px;padding:0 2px 7px;}
 .interview-heading h2{font-size:22px;margin:1px 0 3px;}
 .interview-heading p{font-size:12px;line-height:1.35;}
 .interview-kicker{font-size:11px;}
 .interview-count strong{font-size:21px;}
 .interview-progress-dot{width:15px;height:15px;font-size:10px;}
 .interview-layout{grid-template-columns:minmax(0,1.07fr) minmax(360px,.93fr);gap:10px;}
 .interview-stage{height:clamp(270px,calc(100dvh - 126px),470px);min-height:0;}
 .interview-stage-top{padding:7px 10px;}
 .interview-portrait{width:min(76%,330px);height:76%;top:2%;}
 .interview-speech{padding:7px 10px;margin:0 9px 9px;}
 .interview-speech p{font-size:14px;line-height:1.4;margin-top:2px;min-height:0;}
 .interview-info{gap:6px;}
 .interview-unit-title{padding:7px 10px;min-height:0;}
 .interview-unit-title h3{font-size:22px;margin:1px 0 3px;}
 .interview-price{padding:6px;}
 .interview-price strong{font-size:24px;}
 .interview-stat-grid{gap:5px;}
 .interview-stat-grid>div{padding:6px 3px;}
 .interview-stat-grid small{font-size:11px;}
 .interview-stat-grid strong{font-size:16px;margin-top:2px;}
 .interview-skill{height:84px;min-height:84px;padding:6px 10px;overflow-y:auto;scrollbar-width:thin;}
 .interview-skill-label{font-size:12px;}
 .interview-skill p{font-size:12px;line-height:1.4;margin-top:2px;}
 .interview-advisor{min-height:45px;padding:2px 8px 2px 1px;}
 .interview-lilith-button{width:48px;height:47px;}
 .interview-advisor p{font-size:11px;line-height:1.35;}
 .interview-actions{margin-top:auto;}
 .interview-wallet-row{padding:7px 10px;gap:8px;margin-bottom:5px;font-size:13px;}
 .interview-wallet-row b{font-size:16px;}
 .interview-main-actions{margin-top:5px;}
 .interview-main-actions .btn{min-height:45px;font-size:14px;}
 .interview-secondary-actions{margin-top:5px;}
 .interview-secondary-actions .btn{min-height:30px;padding:4px 9px;font-size:12px;}
 .interview-action-hint{margin-top:4px;font-size:11px;}
}
/* Mobile: portrait is shorter; actions remain accessible after the compact details. */
@media (max-width:700px) {
 .modal-window:has(.interview-shell){padding:10px 9px;}
 .interview-heading{margin-bottom:7px;padding-bottom:6px;}
 .interview-layout{gap:8px;}
 .interview-stage{height:215px;min-height:215px;}
 .interview-stage-top{padding:5px 8px;}
 .interview-portrait{height:80%;max-width:205px;width:65%;}
 .interview-speech{padding:6px 9px;margin:0 7px 7px;}
 .interview-speech p{font-size:13px;line-height:1.4;}
 .interview-info{gap:5px;}
 .interview-unit-title{padding:6px 9px;}
 .interview-stat-grid>div{padding:6px 3px;}
 .interview-skill{min-height:70px;padding:6px 9px;}
 .interview-wallet-row{margin-bottom:5px;padding:7px 8px;}
 .interview-main-actions .btn{min-height:44px;}
 .interview-secondary-actions .btn{min-height:31px;}
}
/* Even when the applicant's text is longer, the purchasing controls stay available. */
.interview-main-actions .btn:focus-visible{outline:3px solid #ffdfa5;outline-offset:2px;}
/* Compact short desktops and phones without hiding the purchase controls. */
@media (min-width:701px) and (max-height:650px) {
 .interview-stage{height:clamp(265px,calc(100dvh - 180px),420px);}
 .interview-skill{height:76px;min-height:76px;}
 .interview-advisor{min-height:40px;}
 .interview-action-hint{font-size:10px;}
}
@media (max-width:700px) {
 .interview-stage{height:180px;min-height:180px;}
 .interview-portrait{max-width:180px;}
}

/* UI audit: keep all three recruiting choices and secondary interview controls
   visible together at common phone widths without shrinking character artwork. */
@media (max-width:450px) {
 .interview-stat-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;}
 .interview-stat-grid>div{padding:6px 2px;min-width:0;}
 .interview-stat-grid small{font-size:12px;letter-spacing:-.01em;}
 .interview-stat-grid strong{font-size:16px;}
}

/* Make interview helper text readable, including narrow phones. */
@media (max-width:700px){.interview-action-hint{font-size:12px;}}


/* Stock performance panel: explicitly inspect before spending Action or gold. */
.stock-dialog-list{display:grid;gap:12px;margin-top:12px;}
.stock-candidate{display:grid;gap:10px;border:2px solid #7f6376;background:#271c34;padding:12px;min-width:0;}
.stock-candidate-head{display:flex;align-items:center;gap:11px;min-width:0;}
.stock-candidate-head>div:last-child{min-width:0;}
.stock-candidate-head strong{font-size:18px;color:#f7dca7;}
.stock-candidate-head small{color:#d5c2cf;font-size:12px;line-height:1.5;}
.stock-candidate-head .avatar{flex-shrink:0;}
.stock-candidate-controls{display:flex;gap:9px;flex-wrap:wrap;align-items:flex-start;}
.stock-candidate-controls .btn-wrap{flex:1 1 170px;}
.stock-details-toggle{flex:1 1 170px;}
.stock-candidate-details{border-top:1px solid #7d6373;padding:10px 0 2px;line-height:1.55;}
.stock-candidate-details[hidden]{display:none!important;}
.stock-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-bottom:10px;}
.stock-stat-grid>div{display:grid;gap:2px;min-width:0;padding:8px 6px;text-align:center;background:#3c2b43;border:1px solid #75556c;}
.stock-stat-grid small{font-size:11px;color:#d3bed1;}
.stock-stat-grid strong{font-size:16px;color:#ffe3ac;}
.stock-skill-label{display:block;color:#f7d39b;font-size:14px;}
.stock-candidate-details p{margin:3px 0 7px;white-space:normal;overflow-wrap:anywhere;}
.stock-candidate-details>small{color:#d0bed3;}
/* On phones the decisions form an attached footer of the interview sheet,
   not a floating panel covering the character or the game. */
.mobile-interview-actions{display:none;}
@media(max-width:700px){
 .modal-window:has(.interview-shell){
  height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);
  display:flex!important;flex-direction:column;overflow:hidden!important;
  padding:10px 9px 0!important;
 }
 .modal-window:has(.interview-shell) .interview-shell{
  flex:1 1 auto;min-height:0;display:flex;flex-direction:column;
 }
 .modal-window:has(.interview-shell) .interview-heading{flex:0 0 auto;}
 .modal-window:has(.interview-shell) .interview-layout{
  flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;
  overscroll-behavior:contain;grid-auto-rows:max-content;align-content:start;
  padding:0 2px 2px 0;
 }
 .interview-main-actions{display:none;}
 .mobile-interview-actions{
  display:grid;position:relative;z-index:1;flex:0 0 auto;
  grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;
  left:auto;right:auto;bottom:auto;
  margin:7px -9px 0;padding:8px 9px calc(8px + env(safe-area-inset-bottom));
  background:#1d1428;border:0;border-top:2px solid #b79167;
  box-shadow:none;
 }
 .mobile-interview-actions .btn{
  min-width:0;min-height:50px;padding:8px 3px;font-size:14px;
  line-height:1.25;white-space:normal;
 }
 .interview-secondary-actions{gap:7px;}
 .interview-secondary-actions .btn{min-height:44px;font-size:12px;white-space:normal;}
 .stock-candidate{padding:9px;gap:8px;}
 .stock-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
 .stock-candidate-controls .btn,.stock-candidate-controls .stock-hire{min-height:46px;}
}
@media(max-width:360px){
 .mobile-interview-actions{gap:4px;padding:7px 6px;margin-left:-9px;margin-right:-9px;}
 .mobile-interview-actions .btn{font-size:13px;}
}

/* Ver.2.56.1: each new candidate visibly enters, including repeated special recruiters. */
@keyframes interview-candidate-enter{from{opacity:.55;filter:brightness(.8)}to{opacity:1;filter:brightness(1)}}
.interview-stage[data-candidate-step] .interview-portrait{animation:interview-candidate-enter .18s ease-out both}
@media(prefers-reduced-motion:reduce){.interview-stage[data-candidate-step] .interview-portrait{animation:none}}
