:root {
  --ink: #171412;
  --paper: #f4efe2;
  --muted: #797168;
  --line: #28231f;
  --blue: #8dddeb;
  --cream: #fff3bd;
  --amber: #d4894a;
  --brick: #a45d39;
  --green: #7aa87b;
  --danger: #c44e43;
  --panel: rgba(255, 250, 238, 0.94);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background: #14110f;
  color: var(--ink);
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
}

button {
  font: inherit;
  cursor: pointer;
}

.game-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-width: 1180px;
  min-height: 620px;
  overflow: hidden;
}

.interrupt-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  padding: 0 20px 20px;
  pointer-events: none;
}

.interrupt-overlay:not([hidden]) {
  pointer-events: auto;
  animation: interrupt-slide-up 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.interrupt-overlay-hiding {
  animation: interrupt-slide-down 0.25s ease-in forwards !important;
}

.interrupt-overlay-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 14px 16px;
  border: 2px solid var(--color-accent, #c8a020);
  border-radius: 14px;
  background: var(--color-background-primary);
  box-shadow:
    0 -4px 32px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(200, 160, 32, 0.15);
}

.interrupt-overlay-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.interrupt-overlay-identity {
  display: flex;
  align-items: center;
  gap: 8px;
}

.interrupt-overlay-icon {
  flex-shrink: 0;
  font-size: 20px;
  line-height: 1;
}

.interrupt-overlay-label {
  color: var(--color-accent, #c8a020);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.interrupt-overlay-time {
  color: var(--color-text-secondary);
  font-size: 11px;
}

.interrupt-overlay-message {
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-tertiary);
  color: var(--color-text-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.interrupt-overlay-choices {
  display: flex;
  gap: 8px;
}

.interrupt-overlay-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border-tertiary);
  border-radius: 8px;
  background: var(--color-background-secondary);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.interrupt-overlay-btn:hover:not(:disabled) {
  border-color: var(--color-accent, #c8a020);
  background: var(--color-background-tertiary);
}

.interrupt-overlay-btn:first-child {
  border-color: var(--color-accent, #c8a020);
  background: rgba(200, 160, 32, 0.08);
}

.interrupt-overlay-btn:first-child:hover:not(:disabled) {
  background: rgba(200, 160, 32, 0.15);
}

.interrupt-overlay-btn-warning {
  border-color: #c83000;
}

.interrupt-btn-label {
  color: var(--color-text-primary);
  font-size: 14px;
  font-weight: 600;
}

.interrupt-btn-cost {
  flex-shrink: 0;
  color: var(--color-text-secondary);
  font-size: 11px;
  white-space: nowrap;
}

.interrupt-overlay-btn-warning .interrupt-btn-cost {
  color: #c83000;
}

.interrupt-overlay-btn-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

@keyframes interrupt-slide-up {
  from {
    opacity: 0;
    transform: translateY(110%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes interrupt-slide-down {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(110%);
  }
}

.game-shell:has(#interruptOverlay:not([hidden])) {
  filter: brightness(0.88);
}

.game-shell:has(#interruptOverlay:not([hidden])) #interruptOverlay {
  filter: brightness(1.136);
}

@media (max-width: 480px) {
  .interrupt-overlay {
    padding: 0 8px 12px;
  }

  .interrupt-overlay-inner {
    padding: 14px 14px 20px;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
  }

  .interrupt-overlay-choices {
    flex-direction: column;
  }

  .interrupt-overlay-btn {
    width: 100%;
  }
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
}

.screen.active {
  display: block;
}

.intro-screen {
  background: var(--paper);
}

.intro-city {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.title-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 6;
}

.intro-city:has(.title-bg-image:not([hidden])) .city-half,
.intro-city:has(.title-bg-image:not([hidden])) .sun,
.intro-city:has(.title-bg-image:not([hidden])) .road,
.intro-city:has(.title-bg-image:not([hidden])) .building,
.intro-city:has(.title-bg-image:not([hidden])) .street-line,
.intro-city:has(.title-bg-image:not([hidden])) .character {
  display: none;
}

.city-half {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
}

.city-half-left {
  left: 0;
  background:
    linear-gradient(90deg, rgba(238, 234, 220, 0.3), rgba(255, 255, 248, 0.84)),
    linear-gradient(#f7f2e8, #ece6d8);
  filter: grayscale(1);
}

.city-half-right {
  right: 0;
  background:
    radial-gradient(circle at 55% 28%, rgba(255, 239, 173, 0.88), transparent 18%),
    linear-gradient(180deg, #bddff0 0%, #f6d4bd 39%, #c08352 100%);
}

.sun {
  position: absolute;
  left: 52%;
  top: 24%;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: #fff0ac;
  box-shadow: 0 0 70px rgba(255, 220, 125, 0.9);
}

.road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12vh;
  height: 44vh;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(255, 255, 255, 0.5) 50%, transparent 50.2%),
    linear-gradient(105deg, #d9d2c4 0 49%, #8b6750 49.2% 100%);
  clip-path: polygon(37% 0, 64% 0, 100% 100%, 0 100%);
  border-top: 5px solid rgba(35, 31, 28, 0.55);
}

.street-line {
  position: absolute;
  left: 50%;
  bottom: 3vh;
  width: 7px;
  height: 35vh;
  background: rgba(255, 250, 227, 0.78);
  transform: skewX(-9deg);
}

.building {
  position: absolute;
  bottom: 10vh;
  border: 4px solid rgba(26, 24, 22, 0.8);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.14);
}

.building::before {
  content: "";
  position: absolute;
  inset: 11% 14%;
  background:
    repeating-linear-gradient(0deg, transparent 0 42px, rgba(24, 22, 20, 0.8) 43px 48px),
    repeating-linear-gradient(90deg, transparent 0 48px, rgba(24, 22, 20, 0.75) 49px 55px);
}

.building::after {
  content: "";
  position: absolute;
  left: 45%;
  top: -54px;
  width: 70px;
  height: 54px;
  border: 4px solid rgba(26, 24, 22, 0.75);
  border-bottom: 0;
  background: inherit;
}

.b1 { left: -3%; width: 19%; height: 43vh; background: #d6d1c7; }
.b2 { left: 18%; width: 15%; height: 68vh; background: #f1eadc; }
.b3 { left: 31%; width: 17%; height: 82vh; background: #d8d1c5; }
.b4 { left: 64%; width: 13%; height: 56vh; background: #b96e45; }
.b5 { left: 74%; width: 12%; height: 47vh; background: #c6b9a7; }
.b6 { left: 84%; width: 13%; height: 72vh; background: #a96a3f; }
.b7 { right: -2%; width: 11%; height: 38vh; background: #553d32; }

.character {
  position: absolute;
  left: 49%;
  bottom: 12vh;
  width: 92px;
  height: 285px;
  transform-origin: bottom center;
  animation: idleWalk 1.4s ease-in-out infinite;
}

.character span {
  position: absolute;
  display: block;
  background: #171412;
}

.head {
  left: 37px;
  top: 0;
  width: 44px;
  height: 58px;
  border-radius: 48% 42% 45% 50%;
  background: #f0987c !important;
  border: 4px solid #171412;
}

.head::before {
  content: "";
  position: absolute;
  left: -6px;
  top: -22px;
  width: 55px;
  height: 32px;
  background: #171412;
  clip-path: polygon(0 80%, 22% 10%, 38% 62%, 55% 0, 67% 62%, 100% 27%, 88% 90%);
}

.body {
  left: 35px;
  top: 56px;
  width: 34px;
  height: 120px;
  border: 4px solid #171412;
  background: #f6f0e5 !important;
  transform: skewX(-10deg);
}

.arm {
  top: 72px;
  width: 9px;
  height: 90px;
  transform-origin: top center;
}

.arm-left { left: 29px; transform: rotate(16deg); }
.arm-right { left: 68px; transform: rotate(-20deg); }

.leg {
  top: 169px;
  width: 11px;
  height: 110px;
  transform-origin: top center;
}

.leg-left { left: 44px; transform: rotate(24deg); }
.leg-right { left: 61px; transform: rotate(-33deg); }

.title-mark {
  position: absolute;
  left: 44%;
  top: 10%;
  display: flex;
  gap: 34px;
  font-family: Georgia, "Malgun Gothic", serif;
  font-size: clamp(74px, 7vw, 142px);
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 4px 0 rgba(255, 255, 255, 0.55);
  z-index: 7;
}

.title-mark span:first-child {
  color: var(--blue);
}

.title-mark span:last-child {
  color: var(--cream);
}

.start-button {
  position: absolute;
  left: 50%;
  top: 50%;
  min-width: 400px;
  padding: 20px 54px 24px;
  transform: translate(-50%, -50%);
  border: 5px solid #111;
  border-radius: 14px;
  background: #d7d7d7;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.42);
  color: #080706;
  font-size: clamp(44px, 3.1vw, 78px);
  font-weight: 900;
  letter-spacing: 0;
  z-index: 8;
}

.start-button:hover {
  background: #eeeeee;
  transform: translate(-50%, calc(-50% - 4px));
}

.story-screen,
.commute-screen,
.office-screen,
.work-screen,
.result-screen {
  background: #191614;
}

.story-screen.is-fading::after {
  opacity: 1;
  pointer-events: auto;
}

.story-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #050505;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 9;
}

.scene-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transition: background 0.6s ease, filter 0.6s ease;
}

.scene-art.room {
  background:
    radial-gradient(circle at 18% 16%, rgba(232, 226, 204, 0.1), transparent 18%),
    linear-gradient(180deg, rgba(22, 20, 19, 0.78), rgba(30, 28, 26, 0.96)),
    linear-gradient(90deg, #2d2a27 0 48%, #242220 48% 100%);
  filter: saturate(0.42);
  transform: scale(1);
  animation: roomZoom 18s ease-out forwards;
}

.scene-art.notification {
  background: radial-gradient(circle at 70% 45%, rgba(141, 221, 235, 0.32), transparent 16%), #161412;
}

.scene-art.awake {
  background: linear-gradient(180deg, #eee5ce, #b4916f);
}

.scene-art.prepare {
  background: linear-gradient(120deg, #211b24 0 44%, #f1c06d 44% 100%);
}

.scene-art.depart {
  background: linear-gradient(180deg, #cfe5ef, #f0c186 58%, #6c5340);
}

.curtain {
  position: absolute;
  left: 10%;
  top: 0;
  width: 28%;
  height: 66%;
  background: repeating-linear-gradient(90deg, #26211f 0 36px, #1b1715 37px 72px);
  border: 4px solid #0f0d0c;
}

.desk {
  position: absolute;
  left: 14%;
  bottom: 17%;
  width: 48%;
  height: 16%;
  border: 5px solid #171412;
  background: #6b4b3d;
}

.resume-stack,
.cup-noodle,
.phone,
.closet,
.bag,
.clock,
.door {
  position: absolute;
  border: 4px solid #171412;
}

.resume-stack {
  left: 10%;
  top: -42%;
  width: 24%;
  height: 42%;
  background: repeating-linear-gradient(0deg, #f4eee5 0 12px, #a8a099 13px 16px);
  transform: rotate(-4deg);
}

.cup-noodle {
  left: 42%;
  top: -45%;
  width: 13%;
  height: 45%;
  border-radius: 0 0 18px 18px;
  background: #e46e4f;
}

.phone {
  right: 10%;
  top: -34%;
  width: 10%;
  height: 42%;
  border-radius: 18px;
  background: #101010;
}

.scene-art.notification .phone {
  animation: buzz 0.12s linear infinite;
  box-shadow: 0 0 80px rgba(141, 221, 235, 0.8);
}

.closet {
  right: 12%;
  bottom: 18%;
  width: 16%;
  height: 54%;
  background: #71513d;
}

.bag {
  right: 31%;
  bottom: 18%;
  width: 9%;
  height: 13%;
  border-radius: 15px 15px 4px 4px;
  background: #202020;
}

.clock {
  right: 26%;
  top: 14%;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #eee8db;
}

.door {
  right: 9%;
  bottom: 0;
  width: 18%;
  height: 62%;
  background: #8c5d3f;
}

.story-panel {
  position: absolute;
  left: 0.5%;
  right: 0.5%;
  bottom: 0.6%;
  height: 29%;
  min-height: 250px;
  padding: 30px 42px 34px;
  border: 5px solid #0a0908;
  border-radius: 34px 34px 18px 18px;
  background: rgba(244, 246, 249, 0.9);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.45),
    0 -10px 24px rgba(0, 0, 0, 0.18);
  z-index: 3;
}

.story-panel::before {
  content: "";
  position: absolute;
  left: 1.2%;
  right: 1.2%;
  top: -7px;
  height: 14px;
  border-top: 4px solid #0a0908;
  border-radius: 50%;
  opacity: 0.7;
}

.scene-kicker,
.section-label {
  display: block;
  color: #7a4c30;
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.story-panel h1 {
  display: none;
}

.commute-copy h2,
.result-card h2 {
  margin: 10px 0 24px;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: 0;
}

.story-panel .scene-kicker {
  display: none;
}

.story-lines p {
  margin: 0 0 8px;
  font-size: clamp(26px, 2vw, 43px);
  line-height: 1.16;
  font-weight: 700;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.story-lines.cutscene-line {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(1320px, 86%);
  transform: translate(-50%, -50%);
  text-align: center;
}

.story-lines.cutscene-line p {
  font-size: clamp(42px, 3vw, 72px);
  line-height: 1.25;
}

.type-caret::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.95em;
  margin-left: 0.1em;
  background: #171412;
  vertical-align: -0.08em;
  animation: caretBlink 0.75s steps(1) infinite;
}

.system-lines {
  position: absolute;
  left: 34px;
  bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 58%;
  margin: 0;
  padding: 0;
  border-left: 0;
  background: transparent;
  color: rgba(57, 51, 46, 0.62);
  font-size: 20px;
  line-height: 1.2;
}

.system-lines[hidden] {
  display: none;
}

.system-lines div {
  padding: 10px 16px;
  border: 3px solid rgba(23, 20, 18, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
}

.primary-action,
.end-day-button {
  border: 4px solid #171412;
  border-radius: 8px;
  background: #f1c45e;
  color: #171412;
  padding: 16px 26px;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.32);
}

.story-panel .primary-action {
  position: absolute;
  right: 34px;
  bottom: 26px;
  min-width: 240px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 28px;
}

.story-panel .primary-action[hidden] {
  display: none;
}

.skip-intro-button {
  position: absolute;
  right: 34px;
  top: 24px;
  padding: 10px 16px;
  border: 3px solid #171412;
  border-radius: 8px;
  background: rgba(255, 249, 234, 0.9);
  color: #171412;
  font-size: 18px;
  font-weight: 900;
}

.skip-intro-button:hover {
  background: #f1c45e;
}

.intro-choice-list {
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.intro-choice-list[hidden] {
  display: none;
}

.intro-choice,
.interview-choice {
  min-height: 94px;
  padding: 18px 20px;
  border: 4px solid #171412;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: #171412;
  font-size: clamp(24px, 1.5vw, 34px);
  font-weight: 900;
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.18);
}

.intro-choice:hover,
.intro-choice:focus-visible,
.interview-choice:hover,
.interview-choice:focus-visible {
  background: #f1c45e;
  transform: translateY(-5px);
  outline: none;
}

.interview-controls {
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 28px;
}

.interview-controls[hidden] {
  display: none;
}

.name-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 16px;
  max-width: 920px;
}

.name-form input {
  min-height: 74px;
  padding: 12px 22px;
  border: 4px solid #171412;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  color: #171412;
  font: inherit;
  font-size: 32px;
  font-weight: 800;
}

.name-form button {
  min-height: 74px;
  border: 4px solid #171412;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  color: #171412;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.18);
}

.name-form button:hover,
.name-form button:focus-visible {
  background: #f1c45e;
  transform: translateY(-5px);
  outline: none;
}

.interview-choice-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.interview-choice {
  font-size: clamp(21px, 1.25vw, 30px);
  line-height: 1.25;
}

.interview-choice strong,
.interview-choice span {
  display: block;
}

.interview-choice span {
  margin-top: 8px;
  color: #574f47;
  font-size: 15px;
}

.phone-popup {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.36);
  z-index: 8;
}

.phone-popup[hidden] {
  display: none;
}

.phone-popup-device {
  width: 360px;
  height: 650px;
  padding: 58px 26px 28px;
  border: 8px solid #080706;
  border-radius: 44px;
  background: #111;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
}

.phone-popup-speaker {
  width: 92px;
  height: 10px;
  margin: -28px auto 42px;
  border-radius: 99px;
  background: #333;
}

.phone-popup-message {
  padding: 22px;
  border-radius: 18px;
  background: #f4f6f9;
  color: #171412;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.35;
}

.trait-popup {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.48);
  z-index: 10;
}

.trait-popup[hidden] {
  display: none;
}

.trait-popup-card {
  width: min(560px, 86vw);
  padding: 38px;
  border: 5px solid #0a0908;
  border-radius: 20px;
  background: rgba(244, 246, 249, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  animation: popupIn 0.32s ease-out both;
}

.trait-popup-card h2 {
  margin: 0 0 28px;
  color: #171412;
  font-size: 44px;
  line-height: 1;
  letter-spacing: 0;
}

.trait-tag-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trait-tag-list li {
  padding: 16px 18px;
  border: 4px solid #171412;
  border-radius: 16px;
  background: #fff;
  color: #171412;
  font-size: 30px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(10px);
  animation: traitTagIn 0.26s ease-out forwards;
}

.trait-popup-card p {
  margin: 26px 0 0;
  color: rgba(23, 20, 18, 0.58);
  font-size: 18px;
  font-weight: 800;
}

.hud {
  position: absolute;
  left: 3%;
  right: 3%;
  top: 3%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  z-index: 2;
}

.hud > div {
  padding: 14px 18px;
  border: 3px solid #171412;
  border-radius: 8px;
  background: rgba(255, 249, 234, 0.94);
}

.hud-label {
  display: block;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.hud strong {
  display: block;
  margin-top: 4px;
  font-size: 30px;
}

.commute-screen {
  background:
    linear-gradient(90deg, rgba(20, 18, 16, 0.3), rgba(20, 18, 16, 0.02)),
    linear-gradient(180deg, #d9edf3, #f0c78b 55%, #6b5747);
}

.commute-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.commute-bg-image[hidden] {
  display: none;
}

.commute-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18));
  pointer-events: none;
  z-index: 1;
}

.commute-layout {
  position: absolute;
  left: 0.5%;
  right: 0.5%;
  bottom: 0.6%;
  min-height: 34%;
  padding: 34px 42px 38px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 30px;
  align-items: stretch;
  border: 5px solid #0a0908;
  border-radius: 34px 34px 18px 18px;
  background: rgba(244, 246, 249, 0.9);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.45),
    0 -10px 24px rgba(0, 0, 0, 0.18);
  z-index: 3;
}

.commute-layout::before {
  content: "";
  position: absolute;
  left: 1.2%;
  right: 1.2%;
  top: -7px;
  height: 14px;
  border-top: 4px solid #0a0908;
  border-radius: 50%;
  opacity: 0.7;
}

.commute-copy {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.commute-copy p {
  margin: 0;
  color: #443c35;
  font-size: clamp(28px, 2vw, 43px);
  line-height: 1.26;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-self: end;
}

.choice-card {
  min-height: 154px;
  padding: 22px;
  border: 4px solid #171412;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  text-align: left;
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.18);
}

.choice-card:hover {
  transform: translateY(-6px);
}

.choice-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(26px, 1.65vw, 38px);
}

.choice-card span {
  display: block;
  color: #574f47;
  font-size: clamp(16px, 1vw, 23px);
  line-height: 1.35;
}

.office-screen {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent),
    #b9ada1;
}

.office-status,
.commute-status {
  position: absolute;
  inset: 24px 28px auto 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 8;
  pointer-events: none;
}

.status-bars {
  display: grid;
  gap: 12px;
  width: 360px;
}

.status-bar {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 62px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 4px solid #171412;
  border-radius: 12px;
  background: rgba(255, 249, 234, 0.92);
}

.status-bar span,
.status-bar strong {
  color: #171412;
  font-size: 16px;
  font-weight: 900;
}

.status-track {
  height: 16px;
  overflow: hidden;
  border: 3px solid #171412;
  border-radius: 99px;
  background: rgba(23, 20, 18, 0.18);
}

.status-fill {
  width: 100%;
  height: 100%;
  transition: width 220ms ease;
}

.status-bar.health .status-fill {
  background: #d94f44;
}

.status-bar.mental .status-fill {
  background: #3978d4;
}

.token-hud-container {
  align-content: center;
}

.token-hud {
  display: flex;
  align-items: center;
  gap: 6px;
}

.token-hud-container .token-hud {
  width: fit-content;
  padding: 10px 12px;
  border: 4px solid #171412;
  border-radius: 12px;
  background: rgba(255, 249, 234, 0.92);
}

.token-label {
  margin-right: 4px;
  color: var(--color-text-secondary, #574f47);
  font-size: 11px;
  font-weight: 900;
}

.token {
  font-size: 18px;
  line-height: 1;
  transition: color 0.3s ease;
}

.token-filled {
  color: var(--color-accent, #c8a020);
}

.token-empty {
  opacity: 0.3;
}

.token-danger {
  color: #c83000;
  animation: pulse-token 1s ease-in-out infinite;
}

@keyframes pulse-token {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.office-clock {
  width: 150px;
  height: 150px;
}

.time-arc {
  --progress: 0deg;
  --clock-color: #3f9d6b;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border: 4px solid #171412;
  border-radius: 50%;
  background:
    conic-gradient(var(--clock-color) 0 var(--progress), rgba(23, 20, 18, 0.16) var(--progress) 360deg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.commute-time-arc {
  --clock-color: #3978d4;
}

.clock-core {
  display: grid;
  place-items: center;
  width: 106px;
  height: 106px;
  border: 4px solid #171412;
  border-radius: 50%;
  background: rgba(255, 249, 234, 0.96);
  text-align: center;
}

.clock-core span {
  color: #171412;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

.clock-core small {
  margin-top: 3px;
  color: #5c554e;
  font-size: 12px;
  font-weight: 900;
}

.workspace,
.messenger,
.todo-panel {
  border: 4px solid #171412;
  border-radius: 8px;
  background: rgba(255, 249, 234, 0.92);
}

.workspace {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #d5d1ca, #8d7f73);
}

.topview-workspace {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 0;
  background: #8f9a8a;
}

.office-floor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(23, 20, 18, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 20, 18, 0.08) 1px, transparent 1px),
    #a7aa94;
  background-size: 52px 52px;
}

.office-zone,
.office-prop,
.office-desk-row,
.office-player,
.office-target {
  position: absolute;
}

.office-zone {
  border: 4px solid rgba(23, 20, 18, 0.65);
  border-radius: 8px;
  background: rgba(255, 249, 234, 0.28);
}

.zone-meeting {
  left: 8%;
  top: 10%;
  width: 24%;
  height: 25%;
}

.zone-meeting::before {
  content: "";
  position: absolute;
  inset: 28% 18%;
  border: 4px solid #171412;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

.zone-break {
  right: 7%;
  top: 9%;
  width: 19%;
  height: 21%;
}

.zone-break::before,
.zone-break::after {
  content: "";
  position: absolute;
  border: 4px solid #171412;
  background: rgba(255, 255, 255, 0.42);
}

.zone-break::before {
  left: 17%;
  top: 20%;
  width: 28%;
  height: 46%;
}

.zone-break::after {
  right: 15%;
  top: 18%;
  width: 25%;
  height: 50%;
  border-radius: 999px;
}

.office-desk-row {
  left: 16%;
  width: 46%;
  height: 12%;
  border: 4px solid #171412;
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, transparent 0 24%, rgba(23, 20, 18, 0.65) 24.5% 25.5%, transparent 26%),
    #c59768;
}

.row-a {
  top: 48%;
}

.row-b {
  top: 68%;
}

.office-prop {
  border: 4px solid #171412;
}

.prop-cabinet {
  left: 5%;
  bottom: 9%;
  width: 9%;
  height: 28%;
  background: #7b6f5d;
}

.prop-plant {
  right: 7%;
  bottom: 8%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #4b7e50 0 20%, transparent 21%),
    radial-gradient(circle at 65% 35%, #5e9b5b 0 22%, transparent 23%),
    radial-gradient(circle at 50% 68%, #3f7048 0 24%, transparent 25%),
    #71513d;
}

.prop-copy {
  right: 23%;
  top: 39%;
  width: 9%;
  height: 18%;
  background: #d6d1c7;
}

.office-player {
  left: 50%;
  top: 76%;
  width: 116px;
  height: 144px;
  background:
    url("../assets/images/characters/player.png") center / contain no-repeat,
    #f6f0e5;
  transform: translate(-50%, -50%);
  z-index: 4;
}

.office-player::before {
  content: none;
}

.office-target {
  width: 96px;
  height: 96px;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.office-target::before {
  content: "";
  position: absolute;
  inset: -24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0);
  box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.office-target.is-near::before {
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 28px 12px rgba(255, 255, 255, 0.86);
  animation: interactionGlow 1.1s ease-in-out infinite alternate;
}

.office-target .target-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  min-width: 120px;
  padding: 7px 10px;
  border: 3px solid #171412;
  border-radius: 8px;
  background: rgba(255, 249, 234, 0.95);
  color: #171412;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  transform: translateX(-50%);
  opacity: 0;
}

.office-target.is-near .target-label {
  opacity: 1;
}

.target-desk {
  width: 140px;
  height: 96px;
  border: 4px solid #171412;
  border-radius: 8px;
  background: #c59768;
}

.target-desk::after {
  content: "";
  position: absolute;
  left: 36px;
  top: 14px;
  width: 64px;
  height: 44px;
  border: 3px solid #171412;
  background: #22323a;
}

.target-person {
  width: 116px;
  height: 144px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.target-person.manager {
  background-image: url("../assets/images/characters/manager.png");
}

.target-person.coworker {
  background-image: url("../assets/images/characters/coworker.png");
}

.target-person::after {
  content: none;
}

.interaction-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  padding: 12px 18px;
  border: 4px solid #171412;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #171412;
  font-size: 22px;
  font-weight: 900;
  transform: translateX(-50%);
  z-index: 5;
}

.interaction-hint[hidden] {
  display: none;
}

.monitor {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 10%;
  bottom: 12%;
  border: 8px solid #171412;
  border-radius: 12px;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(255, 255, 255, 0.18) 49% 52%, transparent 53%),
    #21313a;
}

.monitor-top {
  height: 70%;
  margin: 34px;
  border: 3px solid #5c7580;
  background:
    linear-gradient(90deg, #a9d6e1 0 34%, #f2d298 34% 66%, #d8e2d3 66%),
    #eef1ea;
}

.desktop-icons {
  position: absolute;
  right: 46px;
  top: 54px;
  width: 70px;
  height: 170px;
  background: repeating-linear-gradient(0deg, #f0c45f 0 38px, transparent 39px 56px);
}

.keyboard {
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: -48px;
  height: 80px;
  border: 5px solid #171412;
  border-radius: 12px;
  background: repeating-linear-gradient(90deg, #2b2723 0 28px, #171412 29px 33px);
}

.messenger,
.todo-panel {
  padding: 22px;
}

.side-drawer {
  position: absolute;
  top: 190px;
  bottom: 90px;
  width: 390px;
  z-index: 9;
  transition: transform 220ms ease;
}

.drawer-left {
  left: 0;
  transform: translateX(calc(-100% + 54px));
}

.drawer-right {
  right: 0;
  transform: translateX(calc(100% - 54px));
}

.side-drawer.is-open {
  transform: translateX(0);
}

.drawer-panel {
  width: 100%;
  height: 100%;
  border: 4px solid #171412;
  border-radius: 0 12px 12px 0;
  background: rgba(255, 249, 234, 0.95);
  box-shadow: 12px 14px 0 rgba(0, 0, 0, 0.18);
}

.drawer-right .drawer-panel {
  border-radius: 12px 0 0 12px;
  box-shadow: -12px 14px 0 rgba(0, 0, 0, 0.18);
}

.drawer-tab {
  position: absolute;
  top: 28px;
  width: 54px;
  min-height: 176px;
  padding: 10px 7px;
  border: 4px solid #171412;
  background: rgba(255, 255, 255, 0.95);
  color: #171412;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  z-index: 2;
}

.drawer-left .drawer-tab {
  right: 0;
  border-radius: 0 14px 14px 0;
}

.drawer-right .drawer-tab {
  left: 0;
  border-radius: 14px 0 0 14px;
}

.messenger-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 3px solid #171412;
}

.messenger-header strong {
  font-size: 28px;
}

.messenger-header span {
  color: var(--muted);
  font-weight: 900;
}

.message-list {
  height: calc(100% - 58px);
  overflow: auto;
  padding: 20px 0;
}

.message {
  margin-bottom: 16px;
  padding: 16px;
  border: 3px solid #171412;
  border-radius: 8px;
  background: #fffdf6;
}

.message strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.message p {
  margin: 0;
  color: #403a34;
  font-size: 19px;
  line-height: 1.4;
}

.panel-title {
  padding-bottom: 16px;
  border-bottom: 3px solid #171412;
  font-size: 30px;
  font-weight: 900;
}

.todo-list {
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
  max-height: calc(100% - 70px);
  overflow: auto;
}

.todo-list li {
  margin-bottom: 12px;
  padding: 14px;
  border: 3px solid #171412;
  border-radius: 8px;
  background: #fffdf6;
  font-size: 20px;
  font-weight: 800;
}

.todo-list .done {
  color: #5f6a5b;
  text-decoration: line-through;
  background: #dcebd3;
}

.end-day-button {
  position: absolute;
  right: 28px;
  bottom: 24px;
  z-index: 8;
}

.work-screen {
  display: none;
  grid-template-rows: 1fr;
  align-items: center;
  justify-items: center;
  padding: 42px;
  background:
    linear-gradient(rgba(23, 20, 18, 0.24), rgba(23, 20, 18, 0.36)),
    url("../assets/images/background/work/desk.png") center / cover no-repeat,
    linear-gradient(180deg, #171412, #3b3430);
}

.work-screen.active {
  display: grid;
}

.work-status-bar {
  position: absolute;
  inset: 24px 28px auto 28px;
  width: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  z-index: 8;
  pointer-events: none;
}

.work-screen .work-status-bar .status-bars {
  display: none;
}

.work-clock {
  flex: 0 0 auto;
  margin-left: auto;
}

.computer-frame {
  width: min(1080px, 62vw);
  height: min(610px, calc(100vh - 250px));
  min-height: 430px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.computer-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border: 4px solid #050505;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), transparent 36%),
    linear-gradient(180deg, #23424b, #151d24);
  color: #f7f2e8;
  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.24);
}

.desktop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
  padding: 0 18px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 5, 5, 0.34);
  font-size: 18px;
  font-weight: 900;
}

.work-screen .desktop-icons {
  position: absolute;
  left: 24px;
  top: 78px;
  right: auto;
  width: 138px;
  height: auto;
  display: grid;
  gap: 10px;
  background: transparent;
}

.work-side-drawer {
  top: 190px;
  bottom: 90px;
}

.desktop-icon {
  min-height: 66px;
  padding: 10px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fffdf6;
  font-size: 16px;
  font-weight: 900;
}

.desktop-icon:hover {
  background: rgba(241, 196, 94, 0.28);
}

.desktop-app-window {
  position: absolute;
  left: 196px;
  right: 34px;
  top: 82px;
  bottom: 22px;
  overflow: hidden;
  border: 3px solid #171412;
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.96);
  color: #171412;
  box-shadow: 12px 14px 0 rgba(0, 0, 0, 0.24);
}

.desktop-app-window[hidden] {
  display: none;
}

.desktop-window-panel {
  padding: 18px;
}

.desktop-window-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 3px solid #171412;
  font-size: 26px;
}

.desktop-window-header span {
  color: #6e655d;
  font-size: 16px;
  font-weight: 900;
}

.desktop-window-copy {
  margin: 18px 0;
  color: #403a34;
  font-size: 20px;
  font-weight: 800;
}

.work-card-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.work-card {
  min-height: 210px;
  padding: 18px;
  border: 3px solid #171412;
  border-radius: 8px;
  background: #fff9ea;
  text-align: left;
  font-size: 17px;
  font-weight: 800;
}

.work-card.is-finished {
  opacity: 0.72;
  background: #e7e2d4;
}

.work-card strong,
.work-card span {
  display: block;
}

.work-card strong {
  margin-bottom: 14px;
  font-size: 21px;
}

.work-card span {
  margin-top: 8px;
  color: #403a34;
}

.work-hp-bar {
  display: block;
  width: 100%;
  height: 16px;
  overflow: hidden;
  border: 2px solid #171412;
  border-radius: 999px;
  background: rgba(23, 20, 18, 0.16);
}

.work-hp-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #d94f44, #f1c45e);
  transition: width 180ms ease;
}

.work-hp-bar.large {
  height: 22px;
  margin-top: 10px;
}

.desktop-message,
.desktop-todo-list li,
.desktop-notice {
  margin-top: 14px;
  padding: 14px;
  border: 3px solid #171412;
  border-radius: 8px;
  background: #fff9ea;
}

.desktop-message p {
  margin: 8px 0 0;
  color: #403a34;
  line-height: 1.45;
}

.desktop-todo-list {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.desktop-notice {
  background: #e7f0dc;
  font-weight: 900;
}

.approval-document {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  height: 100%;
  padding: 14px 16px;
  background:
    linear-gradient(rgba(255, 253, 246, 0.55), rgba(255, 253, 246, 0.2)),
    rgba(231, 240, 220, 0.72);
}

.approval-paper {
  min-height: 0;
  padding: 18px 22px;
  border: 4px solid #171412;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fff5d7, #fff9ea);
  box-shadow: 8px 9px 0 rgba(23, 20, 18, 0.16);
}

.approval-document-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 10px;
  align-items: end;
}

.approval-document-header h2 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1;
}

.approval-task-title,
.approval-report-label {
  height: 32px;
  padding: 5px 10px;
  border: 3px solid #171412;
  border-radius: 6px;
  background: linear-gradient(180deg, #fffdf6, #e6e0d6);
  box-shadow: inset 0 -3px 0 rgba(23, 20, 18, 0.1);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.15;
}

.approval-task-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.approval-report-label {
  display: grid;
  place-items: center;
  text-align: center;
}

.approval-table {
  display: grid;
  grid-template-columns: 42px repeat(4, minmax(0, 1fr));
  min-height: 150px;
  margin-top: 24px;
  border: 2px solid #171412;
  background: rgba(255, 253, 246, 0.5);
}

.approval-side-label {
  display: grid;
  place-items: center;
  border-right: 2px solid #171412;
  font-size: 18px;
  font-weight: 900;
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.approval-column {
  position: relative;
  display: grid;
  grid-template-rows: 28px 44px minmax(0, 1fr);
  justify-items: center;
  min-width: 0;
  border-right: 2px solid #171412;
}

.approval-column:last-child {
  border-right: 0;
}

.approval-column > strong {
  display: grid;
  place-items: center;
  width: 100%;
  border-bottom: 2px solid #171412;
  font-size: 16px;
}

.approval-comment {
  align-self: center;
  max-width: calc(100% - 12px);
  padding: 5px 12px;
  border: 2px solid #171412;
  border-radius: 6px;
  background: #fffdf6;
  font-size: 14px;
  font-style: italic;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.approval-mental-gain {
  display: block;
  margin-top: 3px;
  color: #247f55;
  font-size: 12px;
  font-style: normal;
}

.approval-column.has-sequence .approval-comment {
  opacity: 0.35;
  transform: translateY(4px);
}

.approval-column.is-reacting .approval-comment {
  opacity: 1;
  transform: translateY(0);
  animation: approvalBubblePop 260ms ease both;
}

.approval-column.is-reacting .approval-face {
  animation: approvalFaceNod 320ms ease both;
}

.approval-comment.tone-positive {
  border-color: #3f9d6b;
  background: #ecf8df;
}

.approval-comment.tone-mixed {
  border-color: #d9793f;
  background: #fff0df;
}

.approval-comment.tone-confused {
  border-color: #e5b935;
  background: #fff7ca;
}

.approval-comment.tone-neutral {
  border-color: #8b8580;
  background: #f1eee8;
}

.approval-face {
  align-self: end;
  width: 64px;
  height: 76px;
  margin-bottom: 0;
  border: 3px solid #171412;
  border-radius: 38px 38px 12px 12px;
  background:
    radial-gradient(circle at 40% 36%, #171412 0 2px, transparent 3px),
    radial-gradient(circle at 60% 36%, #171412 0 2px, transparent 3px),
    radial-gradient(circle at 50% 60%, #d9793f 0 3px, transparent 4px),
    linear-gradient(180deg, #f1c45e 0 22%, #f1b99b 22% 62%, #fffdf6 62%);
  box-shadow: 4px 5px 0 rgba(23, 20, 18, 0.18);
}

.approval-face.npc-ceo {
  background:
    radial-gradient(circle at 40% 38%, #171412 0 2px, transparent 3px),
    radial-gradient(circle at 61% 38%, #171412 0 2px, transparent 3px),
    linear-gradient(180deg, #6a5b50 0 30%, #e7b08c 30% 64%, #d8e8ef 64%);
}

.approval-face.npc-manager {
  background:
    radial-gradient(circle at 43% 36%, #171412 0 2px, transparent 3px),
    radial-gradient(circle at 58% 36%, #171412 0 2px, transparent 3px),
    linear-gradient(180deg, #171412 0 24%, #f1b99b 24% 62%, #2d2a26 62%);
}

.approval-face.npc-senior {
  background:
    radial-gradient(circle at 42% 38%, #171412 0 2px, transparent 3px),
    radial-gradient(circle at 60% 38%, #171412 0 2px, transparent 3px),
    linear-gradient(180deg, #171412 0 18%, #f1b99b 18% 62%, #fffdf6 62%);
}

.approval-summary-box {
  padding: 12px 16px;
  border: 4px solid #171412;
  border-radius: 8px;
  background: #e5e1dc;
  box-shadow: 6px 7px 0 rgba(23, 20, 18, 0.16);
  text-align: center;
}

.approval-summary-box p {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 900;
}

.approval-effects {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 900;
}

.approval-effects .effect-up {
  color: #247f55;
}

.approval-effects .effect-down {
  color: #b74035;
}

.approval-feedback {
  padding: 12px;
  border-top: 1px solid var(--color-border-tertiary);
  margin-top: 12px;
}

.feedback-accuracy {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 12px;
}

.accuracy-high {
  background: #1a3a1a;
  color: #6ac86a;
}

.accuracy-mid {
  background: #3a3010;
  color: #c8a020;
}

.accuracy-low {
  background: #3a1010;
  color: #c86060;
}

.feedback-pentagon-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 12px 0;
}

.feedback-pentagon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.feedback-pentagon-label {
  font-size: 10px;
  color: var(--color-text-secondary);
  text-align: center;
}

.feedback-pentagon-item:last-child polygon:last-of-type {
  fill: rgba(106, 200, 106, 0.2);
  stroke: #6ac86a;
}

.feedback-hidden-key {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 10px;
  background: var(--color-background-secondary);
  border-radius: 4px;
  margin-bottom: 8px;
  font-size: 12px;
}

.feedback-hidden-key-label {
  color: var(--color-accent, #c8a020);
  font-weight: 500;
  white-space: nowrap;
}

.axis-gap-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.axis-gap-item {
  font-size: 12px;
  color: var(--color-text-secondary);
  padding: 3px 0;
  border-bottom: 1px solid var(--color-border-tertiary);
  line-height: 1.5;
}

.axis-gap-item:last-child {
  border-bottom: none;
}

.axis-gap-perfect {
  font-size: 12px;
  color: #6ac86a;
  text-align: center;
  padding: 6px 0;
}

.approval-confirm-button {
  min-width: 240px;
  padding: 8px 18px;
  border: 3px solid #171412;
  border-radius: 6px;
  background: #fffdf6;
  color: #171412;
  font-size: 16px;
  font-weight: 900;
}

.approval-confirm-button:hover {
  background: #f1c45e;
}

.approval-confirm-button:disabled {
  opacity: 0.5;
  cursor: wait;
  background: #e5e1dc;
}

@keyframes approvalBubblePop {
  0% {
    transform: translateY(8px) scale(0.96);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes approvalFaceNod {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.work-summary-strip,
.work-meta-grid,
.work-feedback-deltas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.work-summary-strip span,
.work-meta-grid span,
.work-feedback-deltas span {
  padding: 8px 10px;
  border: 2px solid #171412;
  border-radius: 8px;
  background: #eef3e6;
  font-weight: 900;
}

.work-feedback {
  margin: 16px 0;
  padding: 16px;
  border: 3px solid #171412;
  border-radius: 8px;
  background: #f1c45e;
}

.work-feedback p {
  margin: 8px 0 0;
  font-weight: 800;
}

.trait-feedback {
  margin-top: 12px;
  padding: 12px;
  border: 3px solid #171412;
  border-radius: 8px;
  background: #d7edf1;
}

.trait-feedback strong,
.trait-feedback span {
  display: block;
}

.trait-feedback span {
  margin-top: 6px;
}

.work-action-row,
.work-submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.work-action-row button,
.work-submit-row button {
  padding: 12px 16px;
  border: 3px solid #171412;
  border-radius: 8px;
  background: #fff9ea;
  color: #171412;
  font-size: 18px;
  font-weight: 900;
}

.work-submit-row button:first-child {
  background: #f1c45e;
}

.work-action-row button:disabled,
.work-submit-row button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.work-combat-readout {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
  margin: 18px 0;
}

.work-combat-readout > div {
  padding: 16px;
  border: 3px solid #171412;
  border-radius: 8px;
  background: #fff9ea;
}

.work-combat-readout span,
.work-combat-readout strong {
  display: block;
}

.work-combat-readout span {
  color: #6e655d;
  font-weight: 900;
}

.work-combat-readout strong {
  margin-top: 6px;
  font-size: 24px;
}

.work-detail.just-hit .work-combat-readout {
  animation: workHit 220ms ease;
}

.battle-screen {
  display: grid;
  grid-template-rows: 172px minmax(86px, 1fr) 104px 78px;
  gap: 10px;
  min-height: 100%;
  height: 100%;
  overflow: hidden;
}

.battle-monster,
.battle-player,
.battle-log {
  border: 3px solid #171412;
  border-radius: 8px;
  background: #fff9ea;
}

.battle-monster {
  padding: 10px 12px;
}

.monster-visual {
  position: relative;
  display: grid;
  place-items: center;
  height: 74px;
  margin-bottom: 8px;
  border: 3px solid #171412;
  border-radius: 8px;
  background:
    repeating-linear-gradient(0deg, rgba(23, 20, 18, 0.06) 0 8px, transparent 8px 16px),
    #e7edf1;
}

.monster-paper {
  width: 68px;
  height: 72px;
  border: 4px solid #171412;
  border-radius: 8px 8px 22px 8px;
  background:
    linear-gradient(180deg, #fffdf6 0 22%, #f1c45e 22% 30%, #fffdf6 30%),
    #fffdf6;
  box-shadow: 10px 10px 0 rgba(23, 20, 18, 0.18);
}

.monster-hit .monster-paper {
  animation: workHit 220ms ease;
}

.damage-pop {
  position: absolute;
  right: 34%;
  top: 16px;
  color: #d94f44;
  font-size: 30px;
  font-weight: 900;
  animation: damagePop 520ms ease both;
}

.battle-name-row,
.battle-player {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.battle-name-row strong {
  font-size: 20px;
}

.battle-small {
  display: block;
  margin-top: 8px;
  color: #403a34;
  font-weight: 900;
}

.battle-log {
  overflow: hidden;
  padding: 10px 12px;
  background: #171412;
  color: #fffdf6;
}

.battle-log p {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: 14px;
}

.battle-player {
  padding: 10px 12px;
}

.player-visual {
  width: 56px;
  height: 72px;
  border: 4px solid #171412;
  border-radius: 28px 28px 12px 12px;
  background:
    radial-gradient(circle at 50% 22%, #f1c45e 0 18px, transparent 19px),
    linear-gradient(180deg, transparent 0 42%, #3978d4 42% 100%);
}

.player-hit .player-visual {
  animation: workHit 220ms ease;
}

.battle-player-stats {
  display: grid;
  grid-template-columns: 78px minmax(140px, 1fr) 42px;
  gap: 6px;
  align-items: center;
  flex: 1;
  font-weight: 900;
}

.work-mp-bar {
  display: block;
  height: 16px;
  overflow: hidden;
  border: 2px solid #171412;
  border-radius: 999px;
  background: rgba(23, 20, 18, 0.16);
}

.work-mp-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #3978d4, #8dddeb);
  transition: width 180ms ease;
}

.battle-time {
  min-width: 150px;
  text-align: right;
  font-weight: 900;
}

.battle-time strong,
.battle-time span {
  display: block;
}

.battle-skill-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.battle-skill-row button {
  min-height: 70px;
  padding: 10px;
  border: 3px solid #171412;
  border-radius: 8px;
  background: #fff9ea;
  color: #171412;
  text-align: left;
  font-weight: 900;
}

.battle-skill-row button span,
.battle-skill-row button strong {
  display: block;
}

.battle-skill-row button span {
  margin-top: 5px;
  color: #403a34;
  font-size: 12px;
}

.battle-skill-row button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.work-battle-app {
  display: grid;
  grid-template-rows: minmax(198px, 1fr) minmax(54px, auto) 88px 66px;
  gap: 8px;
  height: 100%;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(23, 20, 18, 0.04) 0 3px, transparent 3px 8px),
    rgba(255, 253, 246, 0.94);
}

.work-battle-stage {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: stretch;
  min-height: 0;
}

.work-battle-arrow {
  align-self: center;
  height: 78px;
  border: 4px solid #171412;
  border-radius: 8px;
  background: #f1c45e;
  color: #171412;
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 4px 5px 0 rgba(23, 20, 18, 0.2);
}

.work-battle-arrow:disabled {
  visibility: hidden;
}

.work-battle-enemy,
.work-battle-message,
.work-battle-player,
.work-battle-actions button,
.work-battle-empty {
  border: 4px solid #171412;
  border-radius: 8px;
  background: #fff9ea;
  box-shadow: 5px 6px 0 rgba(23, 20, 18, 0.16);
}

.work-battle-enemy {
  display: grid;
  grid-template-rows: auto auto minmax(86px, 1fr);
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
}

.work-battle-enemy-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.work-battle-enemy-header strong,
.work-battle-enemy-header span,
.work-battle-count span {
  display: block;
}

.work-battle-enemy-header strong {
  font-size: 21px;
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.work-battle-enemy-header span,
.work-battle-count span {
  margin-top: 5px;
  color: #403a34;
  font-weight: 900;
}

.work-battle-count {
  min-width: 132px;
  text-align: right;
}

.work-battle-hp-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 80px;
  gap: 8px;
  align-items: center;
  font-weight: 900;
}

.work-battle-hp,
.work-battle-mp {
  height: 18px;
  overflow: hidden;
  border: 3px solid #171412;
  border-radius: 999px;
  background: rgba(23, 20, 18, 0.16);
}

.work-battle-hp i,
.work-battle-mp i {
  display: block;
  height: 100%;
  transition: width 180ms ease;
}

.work-battle-hp i {
  background: linear-gradient(90deg, #d94f44, #f1c45e);
}

.work-battle-mp i {
  background: linear-gradient(90deg, #3978d4, #8dddeb);
}

.work-battle-monster {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 86px;
  border: 3px solid #171412;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(23, 20, 18, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 20, 18, 0.08) 1px, transparent 1px),
    #e7f0dc;
  background-size: 18px 18px;
}

.work-battle-paper-stack {
  width: 94px;
  height: 66px;
  border: 4px solid #171412;
  border-radius: 7px;
  background:
    linear-gradient(180deg, #fffdf6 0 22%, #d94f44 22% 30%, #fffdf6 30% 48%, #f1c45e 48% 56%, #fffdf6 56%),
    #fffdf6;
  box-shadow: 12px 10px 0 rgba(23, 20, 18, 0.2), -13px 12px 0 #d7edf1;
  animation: workBattleIdle 1100ms steps(2, end) infinite;
}

.work-battle-monitor-eye {
  position: absolute;
  width: 24px;
  height: 14px;
  border: 3px solid #171412;
  border-radius: 999px;
  background: #3978d4;
  transform: translate(16px, -2px);
}

.work-battle-damage-pop {
  position: absolute;
  right: 34%;
  top: 22px;
  color: #d94f44;
  font-size: 34px;
  font-weight: 900;
  animation: damagePop 520ms ease both;
}

.work-battle-monster.is-defeated {
  filter: grayscale(0.75);
  opacity: 0.72;
}

.work-battle-message {
  min-height: 54px;
  padding: 10px 14px;
  background: #171412;
  color: #fffdf6;
}

.work-battle-message p {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.work-battle-player {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 124px;
  gap: 10px;
  align-items: center;
  min-height: 0;
  padding: 8px 10px;
}

.work-battle-player-avatar {
  width: 48px;
  height: 60px;
  border: 4px solid #171412;
  border-radius: 28px 28px 10px 10px;
  background:
    radial-gradient(circle at 50% 22%, #f1c45e 0 18px, transparent 19px),
    linear-gradient(180deg, transparent 0 42%, #3978d4 42% 100%);
}

.work-battle-player-stats {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 72px;
  gap: 5px 7px;
  align-items: center;
  font-weight: 900;
  font-size: 15px;
}

.work-battle-time {
  display: none;
  text-align: right;
  font-weight: 900;
}

.work-battle-time span,
.work-battle-time strong {
  display: block;
}

.work-battle-time strong {
  margin: 2px 0;
  font-size: 22px;
}

.work-battle-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.work-battle-actions button {
  min-width: 0;
  min-height: 60px;
  padding: 8px 10px;
  color: #171412;
  text-align: left;
  font-weight: 900;
  overflow: hidden;
}

.work-battle-actions button:first-child {
  background: #f1c45e;
}

.work-battle-actions button strong,
.work-battle-actions button span {
  display: block;
}

.work-battle-actions button span {
  margin-top: 3px;
  color: #403a34;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.work-battle-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.work-battle-empty {
  display: grid;
  place-content: center;
  gap: 16px;
  height: 100%;
  padding: 32px;
  text-align: center;
}

.work-battle-empty h2,
.work-battle-empty p {
  margin: 0;
}

.work-battle-empty h2 {
  font-size: 32px;
}

.work-battle-empty p {
  font-size: 20px;
  font-weight: 900;
}

.work-battle-empty button {
  justify-self: center;
  padding: 12px 18px;
  border: 3px solid #171412;
  border-radius: 8px;
  background: #f1c45e;
  color: #171412;
  font-size: 18px;
  font-weight: 900;
}

.monster-hit .work-battle-paper-stack,
.player-hit .work-battle-player-avatar {
  animation: workHit 220ms ease;
}

@keyframes workBattleIdle {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-4px) rotate(1deg);
  }
}

@keyframes damagePop {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.8);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-30px) scale(1.1);
  }
}

@keyframes workHit {
  0% {
    transform: translateX(0);
  }
  35% {
    transform: translateX(-8px);
  }
  70% {
    transform: translateX(6px);
  }
  100% {
    transform: translateX(0);
  }
}

/* Confirm OS turn battle */
.work-battle-app {
  grid-template-rows: 38px minmax(0, 1fr) minmax(68px, auto) 136px;
  gap: 10px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 253, 246, 0.9), rgba(226, 236, 219, 0.94)),
    repeating-linear-gradient(0deg, rgba(23, 20, 18, 0.05) 0 2px, transparent 2px 7px);
}

.work-battle-topline {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
}

.work-battle-topline .work-battle-count {
  justify-self: center;
  display: flex;
  gap: 14px;
  min-width: 0;
  padding: 6px 12px;
  border: 3px solid #171412;
  border-radius: 8px;
  background: #fff9ea;
  box-shadow: 4px 4px 0 rgba(23, 20, 18, 0.16);
  color: #171412;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.work-battle-arena {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 4px solid #171412;
  border-radius: 8px;
  background:
    linear-gradient(0deg, rgba(63, 157, 107, 0.22) 0 30%, transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(141, 221, 235, 0.18)),
    #dfead9;
}

.work-battle-arena::before,
.work-battle-arena::after {
  content: "";
  position: absolute;
  height: 24px;
  border: 3px solid rgba(23, 20, 18, 0.26);
  border-radius: 50%;
  background: rgba(255, 253, 246, 0.28);
}

.work-battle-arena::before {
  right: 9%;
  top: 46%;
  width: 280px;
}

.work-battle-arena::after {
  left: 8%;
  bottom: 12%;
  width: 220px;
}

.work-battle-enemy {
  position: absolute;
  top: 14px;
  right: 16px;
  width: min(62%, 640px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  grid-template-rows: auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.work-battle-enemy-sheet,
.work-battle-player-stats {
  border: 4px solid #171412;
  border-radius: 8px;
  background: #fff9ea;
  box-shadow: 5px 6px 0 rgba(23, 20, 18, 0.18);
}

.work-battle-enemy-sheet {
  order: 1;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.work-battle-enemy .work-battle-monster {
  order: 2;
  min-height: 154px;
  border: 0;
  background: transparent;
}

.work-battle-enemy-header {
  display: grid;
  gap: 4px;
}

.work-battle-enemy-header strong {
  font-size: 22px;
}

.work-battle-enemy-header span {
  margin: 0;
}

.work-battle-player {
  position: absolute;
  left: 28px;
  bottom: 18px;
  width: min(54%, 560px);
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 14px;
  align-items: end;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.work-battle-player-avatar {
  width: 116px;
  height: 142px;
  justify-self: center;
  border-radius: 56px 56px 16px 16px;
  box-shadow: 8px 8px 0 rgba(23, 20, 18, 0.2);
}

.work-battle-player-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  padding: 12px;
  font-size: 14px;
}

.work-battle-player-stats .player-name {
  display: block;
  font-size: 18px;
}

.work-battle-hp-row {
  grid-template-columns: 62px minmax(0, 1fr) 74px;
}

.work-battle-hp,
.work-battle-mp {
  height: 16px;
  background: #ded6c8;
}

.work-battle-hp i {
  background: #3f9d6b;
}

.work-battle-hp-row.hp-mid .work-battle-hp i {
  background: #f1c45e;
}

.work-battle-hp-row.hp-low .work-battle-hp i {
  background: #d94f44;
}

.work-battle-hp-row.mp-row .work-battle-mp i {
  background: linear-gradient(90deg, #3978d4, #8dddeb);
}

.monster-hp {
  grid-template-columns: 78px minmax(0, 1fr) 86px;
}

.focus-readout {
  justify-self: end;
  padding: 4px 8px;
  border: 2px solid #171412;
  border-radius: 6px;
  background: #e7f0dc;
  font-weight: 900;
}

.work-battle-paper-stack {
  width: 136px;
  height: 98px;
  box-shadow: 16px 14px 0 rgba(23, 20, 18, 0.2), -18px 16px 0 #d7edf1;
}

.work-battle-monitor-eye {
  width: 32px;
  height: 18px;
  transform: translate(24px, -4px);
}

.work-battle-message {
  min-height: 68px;
  padding: 12px 16px;
  border-color: #fff9ea;
  outline: 4px solid #171412;
  background: #171412;
  animation: battleLogIn 180ms ease both;
}

.work-battle-message p {
  min-height: 42px;
  white-space: normal;
}

.work-battle-message p br {
  display: block;
  content: "";
  margin-top: 3px;
}

.work-battle-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.work-battle-actions button {
  min-height: 62px;
  padding: 10px 12px;
  border-width: 4px;
  background: #fff9ea;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.work-battle-actions button:hover:not(:disabled) {
  transform: translate(-2px, -2px);
  background: #f1c45e;
  box-shadow: 7px 8px 0 rgba(23, 20, 18, 0.2);
}

.work-battle-actions button:active:not(:disabled) {
  transform: translate(1px, 1px);
  box-shadow: 3px 4px 0 rgba(23, 20, 18, 0.2);
}

.work-battle-actions button:disabled {
  filter: grayscale(0.8);
}

.battle-locked .work-battle-actions button {
  pointer-events: none;
}

.monster-hit .work-battle-monster {
  animation: workHit 240ms ease;
}

.player-hit .work-battle-player-avatar {
  animation: workHit 240ms ease;
}

@keyframes battleLogIn {
  0% {
    opacity: 0.45;
    transform: translateY(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Requested non-overlapping battle alignment */
.work-battle-app {
  grid-template-rows: 24px minmax(310px, 1fr) minmax(68px, auto);
  gap: 6px;
}

.work-battle-arena {
  min-height: 310px;
  margin-top: 2px;
}

.work-battle-topline {
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 8px;
}

.work-battle-topline .work-battle-count {
  gap: 10px;
  height: 24px;
  min-height: 0;
  padding: 2px 10px;
  border-width: 3px;
  font-size: 13px;
  line-height: 1.1;
}

.work-battle-topline .work-battle-count span {
  margin-top: 0;
}

.work-battle-topline .work-battle-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 28px;
  min-height: 0;
  padding: 0;
  border-width: 3px;
  border-radius: 6px;
  font-size: 24px;
  line-height: 1;
  transform: none;
  box-shadow: 3px 4px 0 rgba(23, 20, 18, 0.18);
}

.work-battle-enemy {
  top: 12px;
  right: 14px;
  width: min(78%, 690px);
  grid-template-columns: minmax(138px, 0.72fr) minmax(260px, 1.12fr) 150px;
  gap: 10px;
  align-items: start;
  padding: 0;
}

.work-battle-enemy-meta {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 4px 8px;
  min-width: 0;
  padding: 10px;
  border: 4px solid #171412;
  border-radius: 8px;
  background: #fff9ea;
  box-shadow: 5px 6px 0 rgba(23, 20, 18, 0.18);
  font-size: 13px;
  font-weight: 900;
}

.work-battle-enemy-meta span {
  color: #574f47;
}

.work-battle-enemy-meta strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-battle-enemy-sheet {
  min-width: 0;
  min-height: 102px;
  align-content: center;
}

.work-battle-enemy-header strong {
  display: block;
  max-height: 52px;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.2;
}

.work-battle-enemy .work-battle-monster {
  min-height: 112px;
}

.work-battle-paper-stack {
  width: 118px;
  height: 80px;
}

.work-battle-player {
  left: 20px;
  bottom: 16px;
  width: auto;
  max-width: none;
  grid-template-columns: 118px 260px;
  gap: 12px;
  align-items: end;
}

.work-battle-player-avatar {
  width: 104px;
  height: 124px;
}

.work-battle-player-stats {
  min-width: 0;
  min-height: 112px;
  align-content: center;
}

.work-battle-player-stats .work-battle-hp-row {
  grid-template-columns: 82px minmax(0, 1fr) 74px;
}

.work-battle-arena > .work-battle-actions {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 420px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  z-index: 2;
}

.work-battle-arena > .work-battle-actions button {
  min-height: 54px;
}

.leave-work-button {
  position: absolute;
  right: 22px;
  bottom: 20px;
  padding: 12px 18px;
  border: 3px solid #171412;
  border-radius: 8px;
  background: #f1c45e;
  color: #171412;
  font-size: 18px;
  font-weight: 900;
}

.office-dialogue {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 3.2%;
  min-height: 150px;
  padding: 24px 28px;
  border: 5px solid #0a0908;
  border-radius: 24px;
  background: rgba(244, 246, 249, 0.94);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
  z-index: 8;
}

.office-dialogue[hidden] {
  display: none;
}

.office-dialogue strong {
  display: block;
  margin-bottom: 8px;
  color: #7a4c30;
  font-size: 20px;
  font-weight: 900;
}

.task-processing-app {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) minmax(58px, auto);
  gap: 10px;
  height: 100%;
  min-height: 0;
  padding: 12px;
  background: linear-gradient(180deg, #fffdf6, #e8efe3);
  box-sizing: border-box;
  overflow: hidden;
}

.task-processing-app.is-interrupting {
  animation: interrupt-shake 0.3s ease;
}

.task-processing-header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 34px;
  gap: 10px;
  align-items: center;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 4px;
}

.pressure-high .task-processing-header {
  border-color: #c8a000;
}

.pressure-critical .task-processing-header {
  border-color: #c83000;
}

.time-caution #timeArc {
  color: #c8a000;
}

.time-warning #timeArc {
  color: #c86000;
}

.time-danger #timeArc,
.time-overtime #timeArc {
  color: #c83000;
  animation: pulse-clock 1s infinite;
}

.task-processing-title {
  min-width: 0;
}

.task-processing-title span {
  display: block;
  color: #574f47;
  font-size: 13px;
  font-weight: 900;
}

.task-processing-title strong {
  display: block;
  overflow: hidden;
  color: #171412;
  font-size: 20px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-processing-title p {
  margin: 3px 0 0;
  overflow: hidden;
  color: #3d3731;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directive-section {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border-tertiary);
}

.directive-text {
  margin: 0 0 10px;
  color: var(--color-text-primary);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
}

.directive-keywords-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.directive-keywords-label {
  color: var(--color-text-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.directive-keywords {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 6px;
}

.directive-progress {
  margin-left: auto;
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.directive-progress-done {
  color: #6ac86a;
}

.keyword-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1.5px solid transparent;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.keyword-btn-pending {
  border-color: var(--color-accent, #c8a020);
  border-style: dashed;
  background: transparent;
  color: var(--color-accent, #c8a020);
}

.keyword-btn-pending:hover {
  border-style: solid;
  background: rgba(200, 160, 32, 0.1);
}

.keyword-btn-pending .keyword-btn-icon {
  color: var(--color-accent, #c8a020);
  font-size: 11px;
}

.keyword-btn-active {
  border-color: var(--color-accent, #c8a020);
  border-style: solid;
  background: rgba(200, 160, 32, 0.15);
  color: var(--color-accent, #c8a020);
}

.keyword-btn-active .keyword-btn-icon {
  font-size: 11px;
}

.keyword-btn-done {
  border: 1.5px solid var(--color-border-tertiary);
  border-style: solid;
  background: var(--color-background-secondary);
  color: var(--color-text-secondary);
  cursor: pointer;
  opacity: 1;
}

.keyword-btn-done:hover {
  border-color: var(--color-accent, #c8a020);
  color: var(--color-accent, #c8a020);
}

.keyword-btn-done .keyword-btn-icon {
  color: #6ac86a;
  font-size: 11px;
}

.keyword-btn-text {
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.keyword-wrap {
  display: inline-block;
}

.directive-dropdown-slot {
  height: 130px;
  margin-top: 6px;
  padding: 0 4px;
  overflow: hidden;
  transition: none;
}

.directive-dropdown-slot.is-open {
  padding: 10px;
  border: 1px solid var(--color-accent, #c8a020);
  border-radius: 8px;
  background: var(--color-background-primary);
}

.keyword-dropdown-prompt {
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-border-tertiary);
  color: var(--color-text-primary);
  font-size: 13px;
}

.keyword-dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
}

.keyword-dropdown-item {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--color-background-secondary);
  color: var(--color-text-primary);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.keyword-dropdown-item:hover {
  border-color: var(--color-accent, #c8a020);
  background: var(--color-background-tertiary);
  color: var(--color-accent, #c8a020);
}

.keyword-dropdown-item-selected {
  border-color: var(--color-accent, #c8a020);
  background: var(--color-background-tertiary);
  color: var(--color-accent, #c8a020);
  font-weight: 600;
}

.keyword-dropdown-cancel {
  width: 100%;
  padding: 3px 0;
  border: none;
  background: none;
  color: var(--color-text-secondary);
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  transition: color 0.15s ease;
}

.keyword-dropdown-cancel:hover {
  color: var(--color-text-primary);
}

.task-processing-main {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.72fr);
  gap: 12px;
  min-height: 0;
  overflow: hidden;
}

.task-document,
.task-info-panel {
  min-height: 0;
  border: 4px solid #171412;
  border-radius: 8px;
  background: #fff9ea;
  box-shadow: 5px 6px 0 rgba(23, 20, 18, 0.18);
}

.task-document {
  display: grid;
  place-items: center;
  position: relative;
  padding: 18px;
}

.document-warning,
.document-danger-high {
  outline: 2px solid #c8a000;
}

.document-danger,
.document-danger-critical {
  outline: 2px solid #c83000;
  animation: pulse-border 1.2s ease-in-out infinite;
}

.document-danger-mid::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, transparent 50%, #c8a000 50%);
}

.task-document-paper {
  width: min(72%, 360px);
  min-height: min(220px, 100%);
  padding: 24px;
  border: 3px solid #171412;
  background: #fffef8;
  box-shadow: 8px 10px 0 rgba(23, 20, 18, 0.13);
}

.task-document-paper strong {
  display: block;
  margin-bottom: 22px;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.task-document-lines {
  display: grid;
  gap: 14px;
}

.task-document-lines span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(23, 20, 18, 0.18);
}

.task-document.blank .task-document-paper {
  border-color: #8b8580;
  color: var(--color-text-secondary);
}

.task-document.complete .task-document-lines span,
.task-document.almost .task-document-lines span {
  background: rgba(23, 20, 18, 0.34);
}

@keyframes pulse-border {
  0%,
  100% {
    outline-color: #c83000;
  }
  50% {
    outline-color: #ff6030;
  }
}

@keyframes pulse-clock {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

@keyframes interrupt-shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  50% {
    transform: translateX(4px);
  }
  75% {
    transform: translateX(-2px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes pulse-mp {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes unknown-shake {
  0%,
  90%,
  100% {
    transform: translateX(0);
  }
  92% {
    transform: translateX(-2px);
  }
  96% {
    transform: translateX(2px);
  }
}

.task-info-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
}

.task-info-panel > strong {
  font-size: 18px;
  font-weight: 900;
}

.task-info-panel dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.task-info-panel dl div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 2px solid rgba(23, 20, 18, 0.18);
  border-radius: 6px;
  background: #ffffff;
}

.task-info-panel dt,
.task-info-panel dd {
  margin: 0;
  min-width: 0;
  font-size: 14px;
  font-weight: 900;
}

.task-info-panel dd {
  color: #574f47;
}

.task-info-value {
  display: inline-block;
}

.pressure-high .task-info-value.is-unknown,
.pressure-critical .task-info-value.is-unknown {
  animation: unknown-shake 2s ease-in-out infinite;
}

.task-info-panel p {
  margin: 0;
  padding: 10px;
  border-radius: 6px;
  background: #e7f0dc;
  color: #171412;
  font-size: 14px;
  font-weight: 900;
}

.axis-panel {
  display: grid;
  place-items: center;
  padding: 8px;
  border: 2px solid rgba(23, 20, 18, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.54);
}

.pentagon-chart {
  display: block;
  margin: 0 auto;
}

.revealed-hints {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 4px;
  background: var(--color-background-secondary, #fff9ea);
}

.revealed-hints-title {
  margin: 0 0 6px;
  color: var(--color-text-primary, #171412);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.axis-hint {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 13px;
}

.axis-hint-label {
  min-width: 40px;
  color: var(--color-accent, #c8a020);
  font-weight: 700;
  white-space: nowrap;
}

.axis-hint-text {
  color: var(--color-text-primary, #171412);
  font-size: 13px;
  line-height: 1.4;
}

.task-processing-footer {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 150px;
  gap: 10px;
  align-items: stretch;
  min-height: 0;
}

.task-processing-footer .work-battle-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.task-processing-footer .work-battle-actions button {
  min-height: 54px;
  padding: 8px 10px;
}

.task-processing-footer .work-battle-actions button strong {
  font-size: 16px;
}

.task-processing-footer .work-battle-actions button span {
  font-size: 12px;
  line-height: 1.25;
}

.task-actions [data-interrupt-choice] {
  border-left: 3px solid #4060c8;
  background: #0f0f1a;
  color: #fff9ea;
}

.task-actions [data-interrupt-choice="ignore"],
.task-actions [data-interrupt-choice="wait"],
.task-actions [data-interrupt-choice="handle_later"] {
  color: var(--color-text-secondary);
}

.task-bottom-bar {
  display: grid;
  grid-template-rows: minmax(44px, auto) minmax(54px, auto) auto;
  gap: 8px;
  min-width: 0;
}

.task-bottom-message {
  min-width: 0;
  transition: background-color 0.5s ease;
}

.task-bottom-message p {
  display: grid;
  align-items: center;
  min-height: 54px;
  margin: 0;
  padding: 10px 14px;
  border: 4px solid #171412;
  border-radius: 8px;
  background: #171412;
  color: #fff9ea;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  transition: background-color 0.5s ease;
}

.pressure-mid .task-bottom-message,
.pressure-mid .task-bottom-message p,
.danger-mid .task-bottom-message,
.danger-mid .task-bottom-message p {
  background: #1a1a14;
}

.pressure-high .task-bottom-message,
.pressure-high .task-bottom-message p,
.danger-high .task-bottom-message,
.danger-high .task-bottom-message p {
  background: #1a1400;
}

.pressure-critical .task-bottom-message,
.pressure-critical .task-bottom-message p,
.danger-critical .task-bottom-message,
.danger-critical .task-bottom-message p {
  background: #1a0800;
}

.interrupt-active .task-bottom-message,
.interrupt-active .task-bottom-message p,
.is-interrupting .task-bottom-message,
.is-interrupting .task-bottom-message p {
  background: #0a0a1a;
  border-left: 3px solid #4060c8;
}

.overtime-choice-bar {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-top: 2px solid #c83000;
  background: #1a1a1a;
}

.overtime-choice-bar button {
  flex: 1;
  min-height: 44px;
  border: 3px solid #c83000;
  border-radius: 8px;
  background: #fff9ea;
  color: #171412;
  font-weight: 900;
}

.overtime-choice-bar button strong,
.overtime-choice-bar button span {
  display: block;
}

.overtime-choice-bar button span {
  margin-top: 2px;
  font-size: 12px;
}

.task-resource-bars {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 3px solid #171412;
  border-radius: 8px;
  background: #fff9ea;
}

.work-battle-mp.mp-low i,
.status-bar.mental.mp-low .status-fill {
  background: #c83000;
  animation: pulse-mp 1s ease-in-out infinite;
}

.work-battle-hp.hp-low i,
.status-bar.health.hp-low .status-fill {
  background: #c83000;
}

.task-processing-commands {
  display: grid;
  gap: 8px;
}

.task-processing-commands button {
  min-height: 48px;
  border: 4px solid #171412;
  border-radius: 8px;
  background: #f1c45e;
  color: #171412;
  font-weight: 900;
}

.office-dialogue p {
  margin: 0;
  max-width: calc(100% - 180px);
  color: #171412;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
}

.office-dialogue button {
  position: absolute;
  right: 24px;
  bottom: 22px;
  min-width: 130px;
  padding: 12px 18px;
  border: 4px solid #171412;
  border-radius: 14px;
  background: #fff;
  color: #171412;
  font-size: 22px;
  font-weight: 900;
}

.result-screen {
  display: none;
  place-items: center;
  background: linear-gradient(180deg, #1a1715, #49392f);
}

.result-screen.active {
  display: grid;
}

.result-card {
  width: min(760px, 80vw);
  padding: 44px;
  border: 4px solid #171412;
  border-radius: 8px;
  background: rgba(255, 249, 234, 0.96);
  box-shadow: 16px 16px 0 rgba(0, 0, 0, 0.3);
}

.result-card p {
  color: #403a34;
  font-size: 25px;
  line-height: 1.5;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.result-stats div {
  padding: 16px;
  border: 3px solid #171412;
  border-radius: 8px;
  background: #fffdf6;
}

.result-stats span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.result-stats strong {
  display: block;
  margin-top: 6px;
  font-size: 30px;
}

@keyframes idleWalk {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-7px) rotate(1deg); }
}

@keyframes buzz {
  0% { transform: translateX(-2px) rotate(-1deg); }
  100% { transform: translateX(2px) rotate(1deg); }
}

@keyframes caretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes roomZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.035); }
}

@keyframes popupIn {
  0% {
    opacity: 0;
    transform: scale(0.94);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes traitTagIn {
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes interactionGlow {
  0% { transform: scale(0.96); }
  100% { transform: scale(1.08); }
}

.task-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.task-app.is-interrupting {
  animation: interrupt-shake 0.3s ease;
}

.task-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--color-border-tertiary);
}

.pressure-high .task-header {
  border-color: #c8a000;
}

.pressure-critical .task-header {
  border-color: #c83000;
}

.task-nav-btn {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--color-border-tertiary);
  border-radius: 4px;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 16px;
  cursor: pointer;
}

.task-nav-btn:disabled {
  border-color: var(--color-border-tertiary);
  background: var(--color-background-secondary);
  color: var(--color-border-tertiary);
  cursor: default;
}

.task-title {
  flex: 1;
  min-width: 0;
}

.task-sender {
  display: block;
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 400;
}

.task-name {
  display: block;
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-count {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  align-items: flex-end;
  color: var(--color-text-secondary);
}

.task-count span:first-child {
  font-size: 13px;
  font-weight: 600;
}

.task-count span:last-child {
  font-size: 12px;
  font-weight: 500;
}

.task-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: visible;
}

.task-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.task-right {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 220px;
  padding: 12px 8px;
  border-left: 1px solid var(--color-border-tertiary);
}

.task-right .pentagon-chart {
  width: min(200px, 100%);
  height: auto;
}

.document-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--color-background-secondary);
}

.document-badge-icon {
  font-size: 18px;
  line-height: 1;
}

.document-badge-label {
  color: var(--color-text-secondary);
  font-size: 12px;
}

.task-right .document-badge {
  margin-top: 0;
}

.task-app .revealed-hints {
  margin-top: 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--color-background-secondary);
}

.task-app .revealed-hints-title {
  margin: 0 0 6px;
  color: var(--color-text-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hint-item {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.4;
}

.hint-item:last-child {
  margin-bottom: 0;
}

.hint-axis {
  min-width: 36px;
  color: var(--color-accent, #c8a020);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.hint-text {
  color: var(--color-text-primary);
  font-size: 13px;
}

.hint-item-npc .hint-axis {
  color: #6a8ac8;
}

.task-message {
  flex-shrink: 0;
  min-height: 40px;
  padding: 10px 12px;
  background: var(--color-background-tertiary, #1a1a1a);
  color: #fffdf6;
}

.task-message p {
  display: block;
  overflow: hidden;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pressure-mid .task-message,
.danger-mid .task-message {
  background: #1a1a14;
}

.pressure-high .task-message,
.danger-high .task-message {
  background: #1a1400;
}

.pressure-critical .task-message,
.danger-critical .task-message {
  background: #1a0800;
}

.interrupt-active .task-message,
.is-interrupting .task-message {
  border-left: 3px solid #4060c8;
  background: #0a0a1a;
}

.task-actions {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
  padding: 8px 12px;
  border-top: 1px solid var(--color-border-tertiary);
}

.task-actions button {
  flex: 1;
  min-height: 46px;
  min-width: 0;
  padding: 8px 10px;
  border: 3px solid #171412;
  border-radius: 6px;
  background: #fff9ea;
  color: #171412;
  text-align: left;
  cursor: pointer;
}

.task-actions button strong,
.task-actions button span {
  display: block;
}

.task-actions button strong,
.task-actions button span:first-child {
  font-size: 14px;
  font-weight: 600;
}

.task-actions button span:last-child {
  margin-top: 2px;
  color: #403a34;
  font-size: 12px;
  font-weight: 500;
}

.task-actions button:disabled {
  border-color: var(--color-border-tertiary);
  background: var(--color-background-secondary);
  color: var(--color-border-tertiary);
  cursor: not-allowed;
}

.task-footer-hint {
  flex-shrink: 0;
  min-height: 18px;
  padding: 4px 12px 0;
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 500;
  text-align: right;
}

.task-footer {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border-top: 1px solid var(--color-border-tertiary);
}

.task-submit-btn,
.task-exit-btn {
  min-height: 32px;
  border-radius: 4px;
  cursor: pointer;
}

.task-submit-btn {
  border: none;
  padding: 7px 20px;
  background: var(--color-accent, #c8a020);
  color: var(--color-background-primary, #111);
  font-size: 14px;
  font-weight: 700;
}

.task-submit-btn-disabled,
.task-submit-btn:disabled {
  border: 1px solid var(--color-border-tertiary);
  background: var(--color-background-secondary);
  color: var(--color-text-secondary);
  cursor: not-allowed;
}

.task-exit-btn {
  border: 1px solid var(--color-border-tertiary);
  padding: 7px 16px;
  background: var(--color-background-secondary);
  color: var(--color-text-primary);
  font-size: 14px;
  font-weight: 500;
}

.approval-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: 0;
}

.approval-screen .approval-header {
  display: flex;
  flex-shrink: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px 8px;
  border-bottom: 1px solid var(--color-border-tertiary);
}

.approval-screen .approval-task-title {
  flex: 1;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.approval-screen .approval-outcome-badge {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.approval-screen .outcome-approved {
  background: rgba(106, 200, 106, 0.15);
  color: #6ac86a;
}

.approval-screen .outcome-conditional {
  background: rgba(200, 160, 32, 0.15);
  color: var(--color-accent, #c8a020);
}

.approval-screen .outcome-rejected {
  background: rgba(200, 48, 0, 0.15);
  color: #c86060;
}

.approval-screen .approval-summary {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border-tertiary);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.approval-screen .approval-summary p {
  margin: 0;
  font-size: 14px;
}

.approval-screen .approval-effects {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--color-border-tertiary);
}

.approval-screen .approval-effect {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--color-background-secondary);
  font-size: 12px;
}

.approval-screen .approval-effect-up .approval-effect-label::before {
  content: "▲ ";
  color: #6ac86a;
  font-size: 12px;
}

.approval-screen .approval-effect-down .approval-effect-label::before {
  content: "▼ ";
  color: #c86060;
  font-size: 12px;
}

.approval-screen .approval-effect-neutral .approval-effect-label::before {
  content: "• ";
  color: var(--color-text-secondary);
  font-size: 12px;
}

.approval-screen .approval-approvers {
  display: flex;
  flex-shrink: 0;
  border-bottom: 1px solid var(--color-border-tertiary);
}

.approval-screen .approval-approver {
  flex: 1;
  padding: 10px 12px;
  border-right: 1px solid var(--color-border-tertiary);
  transition: background 0.3s;
}

.approval-screen .approval-approver:last-child {
  border-right: none;
}

.approval-screen .approval-approver.is-reacting {
  background: var(--color-background-secondary);
}

.approval-screen .approval-approver-role {
  display: block;
  margin-bottom: 4px;
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.approval-screen .approval-approver-comment {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

.approval-screen .approval-token-gain {
  display: block;
  margin-top: 4px;
  color: #6ac86a;
  font-size: 12px;
}

.approval-screen .approval-feedback {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border-tertiary);
}

.approval-screen .feedback-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.approval-screen .feedback-accuracy {
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.approval-screen .accuracy-high {
  background: rgba(106, 200, 106, 0.15);
  color: #6ac86a;
}

.approval-screen .accuracy-mid {
  background: rgba(200, 160, 32, 0.15);
  color: var(--color-accent, #c8a020);
}

.approval-screen .accuracy-low {
  background: rgba(200, 48, 0, 0.15);
  color: #c86060;
}

.approval-screen .feedback-hidden-key {
  color: var(--color-text-secondary);
  font-size: 12px;
}

.approval-screen .feedback-charts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.approval-screen .feedback-chart-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.approval-screen .feedback-chart-label {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

.approval-screen .feedback-chart-divider {
  margin-top: 20px;
  padding: 0 4px;
  color: var(--color-text-secondary);
  font-size: 12px;
}

.approval-screen .gap-msg-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.approval-screen .gap-msg-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--color-background-secondary);
  font-size: 12px;
}

.approval-screen .gap-msg-low {
  border-left: 3px solid #c86060;
}

.approval-screen .gap-msg-high {
  border-left: 3px solid #6080c8;
}

.approval-screen .gap-msg-axis {
  font-size: 13px;
  font-weight: 500;
}

.approval-screen .gap-msg-text {
  color: var(--color-text-secondary);
  font-size: 12px;
}

.approval-screen .gap-msg-perfect {
  margin: 0;
  padding: 6px 0;
  color: #6ac86a;
  font-size: 12px;
  text-align: center;
}

.approval-screen .approval-confirm {
  flex-shrink: 0;
  padding: 10px 14px;
}

.approval-screen .approval-confirm-btn {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--color-border-tertiary);
  border-radius: 6px;
  background: var(--color-background-secondary);
  color: var(--color-text-primary);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}

.approval-screen .approval-confirm-btn:hover:not(:disabled) {
  background: var(--color-background-tertiary);
}

.approval-screen .approval-confirm-btn:disabled {
  background: var(--color-background-secondary);
  color: var(--color-border-tertiary);
  cursor: wait;
}

@media (max-width: 1300px) {
  .game-shell {
    min-width: 100vw;
  }

  .story-panel {
    height: 33%;
    min-width: 0;
  }

  .choice-grid,
  .office-layout {
    gap: 14px;
  }
}
