:root {
  color-scheme: light;
  --paper: #f5f0e4;
  --paper-deep: #e9e0cf;
  --ink: #17211b;
  --muted: #6d746c;
  --line: rgba(23, 33, 27, 0.16);
  --orange: #ff6038;
  --acid: #c9f45b;
  --blue: #6bc6f2;
  --pink: #f4a7c3;
  --white: #fffdf7;
  --shadow: 0 24px 70px rgba(63, 50, 27, 0.13);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(23, 33, 27, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 27, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  overscroll-behavior-y: none;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 310px;
  height: 310px;
  border-radius: 46% 54% 61% 39% / 42% 39% 61% 58%;
  opacity: 0.45;
  filter: blur(1px);
  pointer-events: none;
}

.ambient-one {
  top: -150px;
  right: -80px;
  rotate: 18deg;
  background: var(--acid);
}

.ambient-two {
  bottom: -200px;
  left: -170px;
  width: 420px;
  height: 420px;
  background: var(--pink);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 40px));
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.site-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 12px;
  box-shadow: 3px 3px 0 var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.build-tag,
.icon-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.56);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.build-tag {
  padding: 8px 11px;
}

.icon-button {
  min-width: 82px;
  min-height: 44px;
  padding: 8px 12px;
  cursor: pointer;
}

.icon-button:hover {
  background: var(--white);
}

.sound-on {
  display: none;
}

.icon-button[aria-pressed="true"] .sound-off {
  display: none;
}

.icon-button[aria-pressed="true"] .sound-on {
  display: inline;
}

.screen {
  display: none;
  animation: screen-in 420ms ease both;
}

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

@keyframes screen-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.start-screen {
  min-height: calc(100svh - 82px);
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(44px, 8vw, 110px);
  padding: 60px 4vw 76px;
}

.boss-screen {
  width: min(980px, 100%);
  min-height: calc(100svh - 82px);
  margin: 0 auto;
  align-content: center;
  padding: 52px 0 76px;
}

.theme-screen {
  width: min(760px, 100%);
  min-height: calc(100svh - 82px);
  margin: 0 auto;
  align-content: center;
  padding: 48px 0 74px;
}

.theme-loading {
  min-height: 430px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 20px;
  text-align: center;
}

.theme-loading p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.theme-loading small {
  margin-top: -12px;
  color: var(--muted);
  font-size: 11px;
}

.generator-orb {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 2px solid var(--ink);
  border-radius: 40% 60% 54% 46%;
  background: var(--acid);
  font-size: 26px;
  font-weight: 950;
  box-shadow: 8px 8px 0 var(--ink);
  animation: generator-think 1.1s ease-in-out infinite alternate;
}

@keyframes generator-think {
  to { border-radius: 61% 39% 45% 55%; transform: rotate(8deg) scale(1.04); }
}

.thinking-line {
  width: min(260px, 72vw);
  height: 7px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 99px;
  background: var(--white);
}

.thinking-line i {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--orange);
  animation: thinking-move 850ms ease-in-out infinite alternate;
}

@keyframes thinking-move {
  from { transform: translateX(-10%); }
  to { transform: translateX(165%); }
}

.theme-reveal {
  animation: screen-in 420ms ease both;
}

.theme-reveal > .kicker,
.theme-note {
  text-align: center;
}

.theme-card {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 24px;
  padding: clamp(26px, 5vw, 44px);
  background: var(--white);
  box-shadow: 9px 10px 0 var(--ink);
}

.theme-card::after {
  content: "";
  position: absolute;
  top: -62px;
  right: -62px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--blue);
  opacity: .42;
}

.theme-card-code {
  position: relative;
  z-index: 1;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .14em;
}

.theme-industry {
  position: absolute;
  z-index: 2;
  top: 24px;
  right: 24px;
  max-width: 55%;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--acid);
  font-size: 10px;
  font-weight: 900;
}

.theme-label {
  display: block;
  margin-top: 42px;
  color: var(--orange);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .1em;
}

.theme-card h2 {
  position: relative;
  z-index: 1;
  margin: 7px 0 0;
  font-size: clamp(38px, 7vw, 62px);
  line-height: 1.04;
  letter-spacing: -.06em;
  overflow-wrap: anywhere;
}

.theme-card > p {
  margin: 14px 0 0;
  color: #4c544d;
  font-size: 17px;
  line-height: 1.6;
}

.theme-constraint {
  margin-top: 26px;
  border-left: 4px solid var(--orange);
  padding: 5px 0 5px 14px;
}

.theme-constraint span {
  color: var(--orange);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .12em;
}

.theme-constraint p {
  margin: 5px 0 0;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.48;
}

.theme-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.theme-error {
  width: min(520px, 100%);
  justify-self: center;
  border: 2px solid var(--ink);
  border-radius: 24px;
  padding: clamp(28px, 6vw, 48px);
  background: var(--white);
  text-align: center;
  box-shadow: 9px 10px 0 var(--ink);
}

.theme-error .error-symbol {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--pink);
  font-size: 34px;
  font-weight: 950;
}

.theme-error .kicker {
  margin-bottom: 9px;
}

.theme-error h2 {
  margin: 0;
  font-size: clamp(34px, 7vw, 50px);
  letter-spacing: -.055em;
}

.theme-error > p:not(.kicker) {
  margin: 14px 0 26px;
  color: var(--muted);
  line-height: 1.6;
}

.theme-error .primary-button {
  margin: 0 auto;
}

.theme-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 25px;
}

.boss-heading {
  text-align: center;
}

.boss-heading .kicker {
  margin-bottom: 10px;
}

.boss-heading h2 {
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.boss-heading > p:last-child {
  margin: 13px 0 0;
  color: var(--muted);
}

.boss-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 36px;
}

.boss-option {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 22px;
  background: var(--white);
  text-align: left;
  cursor: pointer;
  box-shadow: 6px 7px 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.boss-option:hover,
.boss-option[aria-checked="true"] {
  transform: translate(2px, 2px);
  box-shadow: 4px 5px 0 var(--ink);
}

.boss-vision[aria-checked="true"] { background: #eefabf; }
.boss-data[aria-checked="true"] { background: #dff3fc; }
.boss-speed[aria-checked="true"] { background: #fbe0ea; }

.boss-option-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.boss-option-top i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--ink);
  border-radius: 15px;
  background: var(--ink);
  color: var(--white);
  font-style: normal;
  font-weight: 900;
}

.boss-option-top em {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.boss-option > strong {
  margin-top: 23px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.boss-option q {
  min-height: 3.2em;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 720;
  line-height: 1.55;
}

.boss-rule {
  width: 100%;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.boss-option small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.boss-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 34px;
}

.text-button {
  border: 0;
  padding: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.primary-button:disabled {
  transform: none;
  background: #cfc9bd;
  color: #77736c;
  box-shadow: none;
  cursor: not-allowed;
}

.kicker {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 750px;
  margin: 0;
  font-size: clamp(52px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

h1 span {
  position: relative;
  display: inline;
  z-index: 0;
}

h1 span::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -0.03em;
  bottom: 0.06em;
  left: 0.02em;
  height: 0.23em;
  background: var(--acid);
  rotate: -1.5deg;
}

.intro {
  max-width: 590px;
  margin: 30px 0 0;
  color: #4d554e;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.75;
}

.start-actions,
.result-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
}

.start-actions > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.primary-button,
.secondary-button {
  min-height: 56px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 0 20px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  min-width: 235px;
  background: var(--orange);
  color: var(--white);
}

.secondary-button {
  min-width: 126px;
  background: var(--white);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.primary-button:active,
.secondary-button:active {
  transform: translate(5px, 5px);
  box-shadow: 0 0 0 var(--ink);
}

.brief-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  justify-self: center;
  border: 2px solid var(--ink);
  border-radius: 24px;
  padding: 25px;
  background: var(--white);
  box-shadow: 12px 14px 0 var(--ink), var(--shadow);
  rotate: 1.5deg;
}

.urgent-tag {
  position: absolute;
  top: -16px;
  right: 28px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  padding: 6px 12px;
  background: var(--acid);
  font-size: 12px;
  font-weight: 900;
  rotate: 3deg;
}

.brief-card-top {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
}

.boss-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
}

.brief-card-top div:nth-child(2) {
  display: grid;
  gap: 2px;
}

.brief-card-top span,
.read-status {
  color: var(--muted);
  font-size: 11px;
}

.online-dot {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-radius: 50%;
  background: #42c96c;
}

.brief-card > p {
  margin: 11px 0;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.42;
  letter-spacing: -0.03em;
}

.brief-card > p strong {
  color: var(--orange);
}

.voice-message {
  width: 76%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 8px;
  border-radius: 12px 12px 3px 12px;
  padding: 10px 14px;
  background: var(--acid);
  font-weight: 800;
}

.voice-bars {
  display: flex;
  align-items: center;
  gap: 3px;
}

.voice-bars i {
  width: 3px;
  height: 12px;
  border-radius: 3px;
  background: var(--ink);
}

.voice-bars i:nth-child(2),
.voice-bars i:nth-child(4) { height: 20px; }
.voice-bars i:nth-child(3) { height: 27px; }

.read-status {
  display: block;
  text-align: right;
}

.deadline-stamp {
  position: absolute;
  right: 20px;
  bottom: -24px;
  border: 3px solid var(--orange);
  border-radius: 50%;
  padding: 15px 9px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  rotate: -10deg;
}

.game-screen {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 42px 0 70px;
}

.game-topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
}

.active-theme {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  padding: 9px 12px;
  background: var(--acid);
}

.active-theme span,
.active-theme em {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}

.active-theme strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-theme em {
  font-style: normal;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.progress-track,
.metric-track {
  overflow: hidden;
  border: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.55);
}

.progress-track {
  height: 9px;
  border-radius: 10px;
}

.progress-track span,
.metric-track span {
  display: block;
  width: 50%;
  height: 100%;
  transition: width 360ms cubic-bezier(.2,.8,.2,1);
}

.progress-track span {
  width: 12.5%;
  background: var(--ink);
}

.timer {
  min-width: 92px;
  font-variant-numeric: tabular-nums;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.timer-cluster {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.timer-cluster > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.timer.is-urgent {
  color: var(--orange);
  animation: urgent-pulse 700ms ease infinite alternate;
}

@keyframes urgent-pulse {
  to { transform: scale(1.06); }
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.metric-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px 11px;
  background: rgba(255, 253, 247, 0.72);
}

.metric-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
}

.metric-heading strong {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.metric-track {
  height: 7px;
  margin-top: 9px;
  border-radius: 9px;
}

.metric-value .metric-track span { background: var(--blue); }
.metric-boss .metric-track span { background: var(--pink); }
.metric-token .metric-track span { background: var(--acid); }

.metric-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.metric-card.is-shaking {
  animation: metric-shake 350ms ease;
}

@keyframes metric-shake {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-4px) rotate(-0.5deg); }
  65% { transform: translateX(4px) rotate(0.5deg); }
}

.scenario-card {
  position: relative;
  margin-top: 24px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--white);
  box-shadow: 8px 9px 0 var(--ink);
}

.scenario-card.is-changing {
  animation: card-change 300ms ease both;
}

@keyframes card-change {
  45% { opacity: 0; transform: translateX(-14px) rotate(-0.4deg); }
  46% { transform: translateX(14px) rotate(0.4deg); }
  100% { opacity: 1; transform: translateX(0); }
}

.scenario-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.source-pill {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--acid);
  color: var(--ink);
}

.scenario-context {
  margin: 24px 0 6px;
  color: var(--muted);
  font-size: 14px;
}

.scenario-card h2 {
  max-width: 760px;
  min-height: 2.5em;
  margin: 0;
  font-size: clamp(29px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.work-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 22px;
}

.work-split > div {
  min-height: 66px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  padding: 12px 13px;
}

.work-ai { background: #e1f5ff; }
.work-human { background: #f2facf; }

.work-split span {
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.work-split p {
  margin: 5px 0 0;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.scenario-card:has(.source-pill:not(:empty)) .source-pill {
  max-width: min(68vw, 360px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.choice-list {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.choice-button {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: 12px 15px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.choice-button:hover:not(:disabled) {
  transform: translateX(3px);
  background: #f8f3e7;
  box-shadow: -4px 0 0 var(--orange);
}

.choice-button:disabled {
  cursor: default;
}

.choice-button.is-selected {
  background: var(--acid);
  box-shadow: 4px 4px 0 var(--ink);
}

.choice-button.is-dimmed {
  opacity: 0.38;
}

.choice-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}

.choice-copy {
  font-size: 15px;
  font-weight: 780;
  line-height: 1.4;
}

.choice-arrow {
  font-size: 18px;
  font-weight: 900;
}

.feedback {
  min-height: 0;
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  border-left: 4px solid var(--orange);
  padding: 0 0 0 13px;
  color: #434a43;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.5;
  opacity: 0;
  transition: max-height 220ms ease, opacity 180ms ease, margin 220ms ease, padding 220ms ease;
}

.feedback.is-visible {
  max-height: 116px;
  margin-top: 18px;
  padding-top: 4px;
  padding-bottom: 4px;
  opacity: 1;
}

.feedback-aside {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.keyboard-hint {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.result-screen {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 44px 0 80px;
}

.result-heading {
  text-align: center;
}

.result-heading .kicker {
  margin-bottom: 10px;
}

.result-heading h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.result-heading > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
}

.share-card {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  border: 2px solid var(--ink);
  border-radius: 24px;
  padding: clamp(24px, 5vw, 46px);
  background:
    linear-gradient(rgba(23, 33, 27, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 27, 0.04) 1px, transparent 1px),
    var(--white);
  background-size: 18px 18px;
  box-shadow: 9px 10px 0 var(--ink);
}

.share-card::after {
  content: "";
  position: absolute;
  top: -55px;
  right: -50px;
  width: 170px;
  height: 170px;
  border: 2px solid var(--ink);
  border-radius: 48% 52% 43% 57%;
  background: var(--acid);
  rotate: 18deg;
}

.share-card-brand {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.result-badge {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin-top: 42px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--orange);
  color: var(--white);
  font-size: 22px;
  font-weight: 950;
  box-shadow: 5px 5px 0 var(--ink);
  rotate: -3deg;
}

.result-label {
  margin: 26px 0 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.share-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.065em;
}

.result-quote {
  max-width: 600px;
  margin: 16px 0 0;
  color: #414942;
  font-size: 17px;
  line-height: 1.65;
}

.result-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 28px;
}

.result-metrics div {
  border: 1px solid var(--ink);
  border-radius: 12px;
  padding: 12px;
  background: rgba(245, 240, 228, 0.78);
}

.result-metrics span,
.result-metrics strong {
  display: block;
}

.result-metrics span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.result-metrics strong {
  margin-top: 3px;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}

.key-decision {
  margin-top: 14px;
  border-left: 4px solid var(--orange);
  padding: 6px 0 6px 13px;
}

.key-decision span {
  color: var(--orange);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.key-decision p {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.45;
}

.share-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.ai-review-panel {
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  padding: clamp(20px, 4vw, 30px);
  background: var(--acid);
  box-shadow: 7px 8px 0 var(--ink);
}

.ai-review-panel::after {
  content: "AI";
  position: absolute;
  top: -20px;
  right: 10px;
  color: rgba(23, 33, 27, 0.08);
  font-size: 122px;
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

.ai-review-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.ai-review-head span {
  color: #44502d;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .12em;
}

.ai-review-head h3 {
  margin: 4px 0 0;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1;
  letter-spacing: -.055em;
}

.ai-product-score {
  display: flex;
  align-items: baseline;
  min-width: 116px;
  justify-content: flex-end;
  color: var(--ink);
}

.ai-product-score strong {
  font-size: clamp(44px, 8vw, 64px);
  font-weight: 950;
  letter-spacing: -.06em;
  line-height: .9;
  font-variant-numeric: tabular-nums;
}

.ai-product-score small {
  margin-left: 4px;
  font-size: 10px;
  font-weight: 900;
}

.ai-review-verdict {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 17px 0 0;
  font-size: 15px;
  font-weight: 780;
  line-height: 1.55;
}

.ai-review-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}

.ai-review-tags span {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--white);
  font-size: 10px;
  font-weight: 900;
}

.ai-review-dimensions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 18px;
}

.ai-review-dimensions > div {
  border: 1px solid rgba(23, 33, 27, .45);
  border-radius: 11px;
  padding: 10px;
  background: rgba(255, 255, 255, .42);
}

.ai-review-dimensions span,
.ai-review-dimensions strong {
  display: block;
}

.ai-review-dimensions span {
  font-size: 9px;
  font-weight: 850;
}

.ai-review-dimensions strong {
  margin-top: 3px;
  font-size: 23px;
  font-variant-numeric: tabular-nums;
}

.big-company-diagnosis {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  border: 2px solid var(--ink);
  border-radius: 15px;
  padding: 14px;
  background: #fbe0ea;
}

.diagnosis-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.diagnosis-title span {
  font-size: 11px;
  font-weight: 950;
}

.diagnosis-title strong {
  color: var(--orange);
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}

.diagnosis-title em {
  margin-left: auto;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.diagnosis-track {
  overflow: hidden;
  height: 8px;
  margin-top: 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
}

.diagnosis-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--acid), var(--orange));
  transition: width 500ms ease;
}

.big-company-diagnosis p {
  margin: 10px 0 0;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.45;
}

.big-company-diagnosis small {
  display: block;
  margin-top: 5px;
  color: #5f4b52;
  font-size: 10px;
  line-height: 1.4;
}

.ai-review-panel.is-loading .ai-review-tags span {
  animation: review-pulse 1.3s ease-in-out infinite alternate;
}

@keyframes review-pulse {
  from { opacity: .45; }
  to { opacity: 1; }
}

.result-actions {
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.product-result-card {
  margin-top: 24px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--ink);
  color: var(--white);
  box-shadow: 8px 9px 0 var(--orange);
}

.product-result-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 20px;
}

.product-result-head span,
.product-result-grid span {
  color: #bfc8c0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.product-result-head h3 {
  margin: 5px 0 0;
  color: var(--acid);
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
}

.product-result-head p {
  margin: 10px 0 0;
  color: #d8ded8;
  line-height: 1.55;
}

.completion-seal {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 2px solid var(--acid);
  border-radius: 50%;
  color: var(--acid);
  font-size: 22px;
  font-weight: 950;
  rotate: 5deg;
}

.completion-seal small {
  display: block;
  margin-top: -16px;
  font-size: 8px;
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}

.feature-chips span {
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
}

.product-definition {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.product-definition > div {
  border-top: 1px solid rgba(255,255,255,.25);
  padding-top: 11px;
}

.product-definition span {
  color: var(--acid);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .1em;
}

.product-definition p {
  margin: 6px 0 0;
  color: var(--white);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.45;
}

.product-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 18px;
}

.product-result-grid > div {
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 13px;
  padding: 13px;
}

.product-result-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--white);
  font-size: 23px;
}

.product-result-grid p {
  margin: 6px 0 0;
  color: #bfc8c0;
  font-size: 10px;
  line-height: 1.45;
}

.copy-status {
  min-height: 20px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.share-prompt {
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.55;
  text-align: center;
}

.result-actions-primary {
  justify-content: center;
  margin-top: 16px;
}

@media (max-width: 820px) {
  .app-shell {
    width: min(100% - 28px, 680px);
  }

  .start-screen {
    grid-template-columns: 1fr;
    gap: 54px;
    padding: 48px 0 76px;
  }

  .start-copy {
    text-align: center;
  }

  .intro {
    margin-right: auto;
    margin-left: auto;
  }

  .start-actions {
    flex-direction: column;
  }

  .brief-card {
    max-width: 480px;
  }

  .boss-screen {
    padding-top: 42px;
  }

  .theme-screen {
    padding-top: 36px;
  }

  .boss-grid {
    grid-template-columns: 1fr;
    width: min(520px, 100%);
    margin-right: auto;
    margin-left: auto;
  }

  .boss-option {
    min-height: 220px;
  }
}

@media (max-width: 600px) {
  .site-header {
    min-height: calc(68px + env(safe-area-inset-top, 0px));
  }

  .wordmark > span:last-child,
  .build-tag {
    display: none;
  }

  .start-screen {
    min-height: calc(100svh - 68px);
    padding-top: 38px;
  }

  .boss-screen {
    min-height: calc(100svh - 68px);
    padding: 34px 0 64px;
  }

  .theme-screen {
    min-height: calc(100svh - 68px);
    padding: 32px 0 60px;
  }

  .theme-card {
    padding: 25px 20px;
    box-shadow: 6px 7px 0 var(--ink);
  }

  .theme-card h2 {
    font-size: clamp(32px, 10.2vw, 39px);
  }

  .theme-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .theme-actions button {
    width: 100%;
  }

  .theme-actions .primary-button {
    order: -1;
  }

  .boss-heading h2 {
    font-size: 40px;
  }

  .boss-heading > p:last-child {
    font-size: 13px;
    line-height: 1.55;
  }

  .boss-grid {
    gap: 11px;
    margin-top: 26px;
  }

  .boss-option {
    min-height: 144px;
    padding: 14px 16px;
  }

  .boss-option-top i {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .boss-option > strong {
    margin-top: 8px;
    font-size: 23px;
  }

  .boss-option q {
    min-height: auto;
    margin: 3px 0 8px;
    font-size: 13px;
  }

  .boss-rule {
    padding-top: 8px;
  }

  .boss-option small {
    display: none;
  }

  .boss-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 24px;
  }

  .boss-actions .primary-button {
    width: 100%;
    order: -1;
  }

  h1 {
    font-size: clamp(44px, 12vw, 50px);
    letter-spacing: -0.085em;
  }

  h1 span {
    display: inline-block;
    white-space: nowrap;
  }

  .intro br {
    display: none;
  }

  .brief-card {
    width: calc(100% - 10px);
    padding: 22px;
    box-shadow: 7px 8px 0 var(--ink), var(--shadow);
  }

  .brief-card > p {
    font-size: 20px;
  }

  .game-screen,
  .result-screen {
    padding-top: 28px;
  }

  .game-topbar {
    gap: 12px;
  }

  .progress-copy span:last-child {
    display: none;
  }

  .timer {
    min-width: 72px;
    font-size: 25px;
  }

  .timer-cluster > span {
    display: none;
  }

  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .active-theme {
    grid-template-columns: auto minmax(0, 1fr);
    margin-top: 13px;
  }

  .active-theme em {
    grid-column: 1 / -1;
  }

  .metric-card {
    display: block;
    padding: 9px 8px;
  }

  .metric-heading {
    font-size: 10px;
  }

  .metric-heading strong {
    font-size: 16px;
  }

  .metric-card p {
    display: none;
  }

  .metric-track {
    margin-top: 0;
  }

  .scenario-card {
    margin-top: 16px;
    border-radius: 18px;
    padding: 23px 18px;
    box-shadow: 5px 6px 0 var(--ink);
  }

  .scenario-card h2 {
    min-height: auto;
    font-size: 29px;
  }

  .choice-list {
    margin-top: 22px;
  }

  .work-split {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 14px;
  }

  .work-split > div {
    min-height: auto;
    padding: 8px 9px;
  }

  .work-split p {
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.3;
  }

  .work-split span {
    font-size: 8px;
  }

  .choice-button {
    grid-template-columns: 30px 1fr;
    min-height: 60px;
    padding: 10px 12px;
  }

  .choice-copy,
  .key-decision p,
  .product-definition p,
  .product-result-grid p {
    overflow-wrap: anywhere;
  }

  .choice-arrow {
    display: none;
  }

  .keyboard-hint {
    display: none;
  }

  .keyboard-support {
    display: none;
  }

  .share-card {
    padding: 26px 20px;
    box-shadow: 6px 7px 0 var(--ink);
  }

  .share-card::after {
    width: 130px;
    height: 130px;
  }

  .result-badge {
    width: 64px;
    height: 64px;
    margin-top: 32px;
    font-size: 18px;
  }

  .result-metrics {
    gap: 6px;
  }

  .result-metrics div {
    padding: 9px;
  }

  .result-metrics strong {
    font-size: 22px;
  }

  .share-footer {
    display: grid;
  }

  .ai-review-panel {
    padding: 20px 16px;
    box-shadow: 5px 6px 0 var(--ink);
  }

  .ai-review-panel::after {
    right: -8px;
    font-size: 96px;
  }

  .ai-review-head {
    gap: 10px;
  }

  .ai-product-score {
    min-width: 94px;
  }

  .ai-review-dimensions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diagnosis-title {
    flex-wrap: wrap;
  }

  .diagnosis-title em {
    margin-left: 0;
  }

  .product-result-card {
    padding: 22px 18px;
    box-shadow: 5px 6px 0 var(--orange);
  }

  .completion-seal {
    width: 64px;
    height: 64px;
    font-size: 18px;
  }

  .product-result-grid {
    grid-template-columns: 1fr;
  }

  .product-definition {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .result-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .result-actions button {
    width: 100%;
  }
}

@media (max-width: 359px) {
  .app-shell {
    width: calc(100% - 20px);
  }

  h1 {
    font-size: 40px;
  }

  .primary-button,
  .secondary-button {
    min-width: 0;
  }

  .theme-industry {
    position: relative;
    top: auto;
    right: auto;
    display: inline-flex;
    max-width: 100%;
    margin-top: 18px;
  }

  .theme-label {
    margin-top: 22px;
  }

  .scenario-card h2 {
    font-size: 26px;
  }

  .metric-heading {
    display: grid;
    gap: 2px;
  }
}

@media (pointer: coarse) {
  button,
  a {
    min-height: 44px;
  }

  .wordmark {
    min-width: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
