/* === DAY STAGE: Split Gothic Interview Booth (Left) + Walnut HR Desk (Right) === */
.day-stage {
  display: grid;
  grid-template-columns: 37% 63%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

/* --- LEFT: Interrogation Booth --- */
.booth-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 16px 14px;
  background:
    radial-gradient(ellipse at 50% 8%, rgba(255, 210, 125, 0.22), transparent 56%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0 14px, transparent 14px 68px),
    linear-gradient(180deg, #1B1325 0%, #120D1A 70%, #241917 100%);
  border-right: 3px solid #3C2B27;
  overflow: hidden;
}

.booth-lamp {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 112px;
  height: 22px;
  background: linear-gradient(180deg, #8F6924, #D9A74A);
  border-radius: 0 0 50px 50px;
  border: 2px solid #2A1C12;
  box-shadow: 0 8px 34px rgba(255, 210, 120, 0.45);
  pointer-events: none;
}

.queue-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
}

.queue-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.queue-pill {
  padding: 4px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(18, 12, 26, 0.78);
  border: 1px solid #4A3A63;
  color: var(--text-dim);
  white-space: nowrap;
}

.queue-pill.active {
  background: #3A254B;
  border-color: var(--gold-brass);
  color: #FFF4D6;
}

.queue-pill.done {
  opacity: 0.45;
  text-decoration: line-through;
}

.intel-mini {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 99px;
  background: rgba(92, 200, 255, 0.12);
  border: 1px solid rgba(92, 200, 255, 0.42);
  color: #B4E7FF;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 175px;
  flex-shrink: 1;
}

/* Portrait Stage */
.portrait-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.portrait-frame {
  position: relative;
  width: min(240px, 32vh);
  height: min(240px, 32vh);
  display: grid;
  place-items: center;
}

.monster-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.55));
  animation: monsterBreathe 2.8s ease-in-out infinite;
}

.monster-svg.expr-shock {
  animation: monsterShock 0.36s ease-out;
}

.monster-svg.expr-angry {
  animation: monsterShake 0.3s ease-out;
}

/* Candidate Nameplate + Lie Detector */
.candidate-nameplate {
  text-align: center;
  width: 100%;
}

.cand-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  color: #FFF4DC;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
}

.role-chip {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
  color: #16101B;
}

.cand-tags {
  margin-top: 5px;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #E8DAF2;
  font-weight: 700;
}

.tag-badge.spy-alert {
  background: rgba(92, 200, 255, 0.22);
  border-color: var(--holy-cyan);
  color: #D0F2FF;
  animation: pulseGlow 1s infinite;
}

/* Comic Dialogue Bubble */
.booth-dialogue {
  position: relative;
  background: #FFF9EB;
  color: var(--ink-dark);
  border: 3px solid #1A121C;
  border-radius: 12px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.42;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  min-height: 54px;
  display: flex;
  align-items: center;
}

.booth-dialogue.caught {
  background: #FFE7E7;
  border-color: var(--stamp-red);
  color: #7A141B;
}

.booth-dialogue.spy {
  background: #E0F4FF;
  border-color: #0284C7;
  color: #0B3B5E;
}

/* Brass Lie Detector & Base Stats */
.booth-bottom-box {
  display: flex;
  flex-direction: column;
  gap: 7px;
  z-index: 2;
}

.lie-meter {
  background: rgba(15, 11, 22, 0.85);
  border: 1px solid #594433;
  border-radius: 9px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lie-meter-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--gold-brass);
  white-space: nowrap;
}

.lie-bar-track {
  flex: 1;
  height: 8px;
  background: #2C2138;
  border-radius: 99px;
  overflow: hidden;
}

.lie-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #F2B93B, #D9363E);
  transition: width 0.25s ease;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.stat-cell {
  background: rgba(18, 13, 28, 0.84);
  border: 1px solid #3C2F52;
  border-radius: 7px;
  padding: 5px 6px;
  text-align: center;
}

.stat-cell span {
  display: block;
  font-size: 10px;
  color: var(--text-dim);
}

.stat-cell strong {
  font-size: 13px;
  color: #FFF4DC;
}

.skill-box {
  background: rgba(25, 19, 36, 0.88);
  border: 1px solid #4A3963;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11.5px;
  line-height: 1.38;
  color: #DDD2E8;
}

.skill-box b { color: var(--gold-brass); }

/* --- RIGHT: Walnut HR Desk --- */
.desk-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 10px 14px 12px;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0 2px, transparent 2px 14px),
    linear-gradient(155deg, #34231E 0%, #241816 60%, #1C1211 100%);
  min-height: 0;
  overflow: hidden;
}

.desk-zone.desk-kick {
  animation: deskKick 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Guided Day 1 Coach Strip */
.guide-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(242, 185, 59, 0.22), rgba(217, 54, 62, 0.18));
  border: 1px solid var(--gold-brass);
  font-size: 12px;
  font-weight: 700;
  color: #FFF3D1;
  flex-shrink: 0;
}

.desk-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  gap: 12px;
}

/* Parchment Dossier Column */
.dossier-col {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: linear-gradient(180deg, #F6ECDA 0%, #EDE0C4 100%);
  color: var(--ink-dark);
  border: 2px solid #9B835B;
  border-radius: 10px;
  box-shadow: var(--shadow-paper);
  overflow: hidden;
}

.dossier-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #DFCEAC;
  border-bottom: 2px solid #BCA57D;
  padding: 5px 8px;
  gap: 6px;
}

.dossier-tab-group {
  display: flex;
  gap: 6px;
}

.dtab-btn {
  padding: 5px 11px;
  border-radius: 7px;
  border: 1px solid #AE946C;
  background: #EFE2C6;
  color: #554236;
  font-size: 12px;
  font-weight: 800;
  transition: all 0.14s;
}

.dtab-btn.active {
  background: var(--stamp-red);
  border-color: var(--stamp-red-dark);
  color: #FFFDF7;
}

.pen-indicator {
  font-size: 11px;
  font-weight: 800;
  color: var(--stamp-red-dark);
  background: rgba(217, 54, 62, 0.12);
  padding: 3px 8px;
  border-radius: 99px;
}

/* Resume Fields List */
.resume-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.resume-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 2px dashed #C3AE85;
}

.resume-doc-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  color: #2A1918;
}

.salary-banner {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
}

.salary-old {
  text-decoration: line-through;
  color: #8C6D63;
  font-size: 12px;
}

.salary-now {
  color: var(--hire-green-dark);
  background: rgba(46, 184, 114, 0.15);
  padding: 2px 7px;
  border-radius: 6px;
}

.resume-field {
  position: relative;
  text-align: left;
  width: 100%;
  padding: 8px 11px;
  background: rgba(255, 252, 243, 0.72);
  border: 1.5px solid #CEBA92;
  border-radius: 8px;
  color: var(--ink-dark);
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  cursor: crosshair;
}

.resume-field:hover:not(:disabled) {
  border-color: var(--stamp-red);
  background: #FFF9EC;
  transform: translateX(2px);
}

.resume-field:disabled { cursor: default; }

.resume-field.caught {
  background: rgba(217, 54, 62, 0.08);
  border-color: var(--stamp-red);
}

.resume-field.spy-caught {
  background: rgba(92, 200, 255, 0.16);
  border-color: #0284C7;
}

.resume-field.false-accused {
  background: rgba(120, 113, 108, 0.12);
  border-color: #9A8C7D;
}

.rf-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}

.rf-label {
  font-size: 11px;
  font-weight: 900;
  color: #7A5842;
}

.rf-tag {
  font-size: 11px;
  font-weight: 900;
  padding: 1px 7px;
  border-radius: 99px;
}

.rf-tag.fraud { background: var(--stamp-red); color: #FFF; }
.rf-tag.spy { background: #0284C7; color: #FFF; }
.rf-tag.honest { background: #78716C; color: #FFF; }

.rf-text {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.38;
  color: #1F1518;
}

.rf-hint {
  margin-top: 4px;
  font-size: 11px;
  color: #9B1E26;
  font-weight: 700;
}

/* Hand-drawn Red Pen SVG Circle Overlay */
.red-circle-svg {
  position: absolute;
  inset: -4px -5px;
  width: calc(100% + 10px);
  height: calc(100% + 8px);
  pointer-events: none;
  overflow: visible;
}

.red-circle-path {
  fill: none;
  stroke: #D92632;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 0;
  animation: drawRedCircle 0.28s ease-out forwards;
}

/* Background Check Ledger View */
.ledger-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  gap: 8px;
}

.ledger-subtabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.lsub-btn {
  padding: 5px 4px;
  border-radius: 6px;
  border: 1px solid #BEA67E;
  background: #EFE2C6;
  color: #4A382E;
  font-size: 11px;
  font-weight: 800;
}

.lsub-btn.active {
  background: #2C2038;
  border-color: var(--gold-brass);
  color: var(--gold-brass);
}

.ledger-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ledger-entry {
  padding: 7px 10px;
  border-radius: 7px;
  background: rgba(255, 252, 243, 0.85);
  border-left: 4px solid #8E6A3E;
}

.ledger-entry.hot {
  border-left-color: var(--stamp-red);
  background: #FFF0F0;
}

.ledger-entry b {
  display: block;
  font-size: 12px;
  color: #2B1A1A;
  margin-bottom: 2px;
}

.ledger-entry span {
  font-size: 11.5px;
  color: #54413A;
  line-height: 1.38;
}

/* Tilted Physical Stamp Imprint Overlay on Parchment */
.stamp-imprint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-13deg) scale(1);
  padding: 12px 26px;
  border: 6px solid var(--hire-green-dark);
  border-radius: 12px;
  color: var(--hire-green-dark);
  background: rgba(243, 231, 206, 0.86);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.14em;
  pointer-events: none;
  z-index: 15;
  animation: stampSlamIn 0.24s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.stamp-imprint.reject {
  border-color: var(--stamp-red);
  color: var(--stamp-red);
}

.stamp-imprint.bounty {
  border-color: #0284C7;
  color: #0369A1;
}

/* --- Right Column of Desk: Contract Clauses + Stamp Pad --- */
.contract-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 0;
}

.contract-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(20, 15, 29, 0.9);
  border: 1.5px solid #554269;
  border-radius: 10px;
  padding: 9px 11px;
  overflow-y: auto;
}

.contract-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contract-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gold-brass);
}

.risk-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
}

.risk-pill.low { background: rgba(46, 184, 114, 0.2); color: #6EF0AD; }
.risk-pill.medium { background: rgba(242, 185, 59, 0.22); color: #FFD77A; }
.risk-pill.high { background: rgba(217, 54, 62, 0.28); color: #FF878E; }

.clause-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.clause-label {
  font-size: 11px;
  font-weight: 800;
  color: #C7B9D4;
}

.clause-opts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.clause-btn {
  padding: 4px 4px;
  border-radius: 6px;
  border: 1px solid #443559;
  background: #251C34;
  color: #CFC3DC;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  transition: all 0.12s;
}

.clause-btn small {
  display: block;
  font-size: 9.5px;
  color: #9A8DA8;
  font-weight: 600;
}

.clause-btn.active {
  background: linear-gradient(180deg, #4B2A5E, #321C40);
  border-color: var(--gold-brass);
  color: #FFF4DC;
}

.clause-btn.active small { color: #FFD97D; }

/* Contract Summary Box */
.contract-summary {
  background: rgba(12, 9, 19, 0.85);
  border: 1px solid #3C2F52;
  border-radius: 8px;
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 10px;
  font-size: 11.5px;
}

.cs-item {
  display: flex;
  justify-content: space-between;
  color: #BFAFD0;
}

.cs-item strong { color: #FFF5E0; }
.cs-item strong.warn { color: #FF7078; }
.cs-item strong.good { color: #5CE39C; }

.cs-warnings {
  font-size: 11px;
  color: #FFC978;
  line-height: 1.32;
}

.syn-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.syn-chip {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(242, 185, 59, 0.18);
  border: 1px solid var(--gold-brass);
  color: #FFE49E;
}

/* Physical Wooden Stamp Buttons */
.stamp-pad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  flex-shrink: 0;
}

.stamp-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 11px 8px;
  border-radius: 11px;
  border: 2.5px solid #1A121C;
  font-family: var(--font-display);
  font-weight: 900;
  color: #FFFDF7;
  box-shadow: 0 6px 0 #140E19, 0 10px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.08s, box-shadow 0.08s, filter 0.12s;
}

.stamp-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.stamp-btn:active:not(:disabled),
.stamp-btn.slamming {
  transform: translateY(5px) scale(0.97);
  box-shadow: 0 1px 0 #140E19;
}

.stamp-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.stamp-btn.hire {
  background: linear-gradient(180deg, #32C47A 0%, #1F8752 100%);
  border-color: #A7F3C9;
}

.stamp-btn.reject {
  background: linear-gradient(180deg, #E03E46 0%, #991B22 100%);
  border-color: #FFA8AD;
}

.stamp-btn.bounty {
  background: linear-gradient(180deg, #0EA5E9 0%, #0369A1 100%);
  border-color: #BAE6FD;
  animation: pulseGlow 1.1s infinite;
}

.stamp-main { font-size: 16px; letter-spacing: 0.08em; }
.stamp-sub { font-family: var(--font-body); font-size: 11px; opacity: 0.92; font-weight: 700; }

/* Compact height tuning for 1280x720 */
@media (max-height: 760px) {
  .booth-zone { padding: 8px 12px 10px; }
  .portrait-frame { width: 175px; height: 175px; }
  .cand-name { font-size: 17px; }
  .booth-dialogue { padding: 6px 10px; font-size: 12px; min-height: 44px; }
  .desk-zone { padding: 8px 10px; gap: 6px; }
  .resume-field { padding: 6px 9px; }
  .rf-text { font-size: 12px; }
  .stamp-btn { padding: 8px 6px; }
  .stamp-main { font-size: 15px; }
}
