@font-face {
  font-family: "Fusion Pixel 12 Proportional";
  src: url("./assets/fonts/fusion-pixel-12px-proportional/fusion-pixel-12px-proportional-zh_hans.otf.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --ink-950: #071013;
  --ink-900: #0b171a;
  --ink-850: #102126;
  --ink-800: #172b30;
  --chalk: #eef0e8;
  --chalk-muted: #aeb9b4;
  --paper: #e8dec4;
  --paper-edge: #cabc98;
  --paper-ink: #1c2728;
  --paper-muted: #65706b;
  --rust: #c8774d;
  --field: #617667;
  --card-width: min(86vw, 360px);
  --card-height: min(52.5dvh, 486px);
  --stack-gap: clamp(8px, 2.5vw, 11px);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  background: var(--ink-950);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

.app-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(100%, 460px);
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink-900);
  border-inline: 1px solid rgb(232 222 196 / 5%);
}

.status-header {
  position: relative;
  z-index: 30;
  padding: calc(12px + env(safe-area-inset-top)) 16px 10px;
  background: var(--ink-900);
  border-bottom: 1px solid rgb(232 222 196 / 9%);
}

.status-header__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  margin-bottom: 10px;
}

.eyebrow,
.screen-title {
  display: block;
}

.eyebrow {
  margin-bottom: 1px;
  color: var(--chalk-muted);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.18em;
}

.screen-title {
  color: var(--chalk);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.035em;
}

.season-counter {
  display: block;
  margin-top: 2px;
  color: var(--chalk-muted);
  font-size: 7px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.season-counter.is-complete {
  color: #e7b36f;
}

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

.turn-counter {
  min-width: 48px;
  color: var(--chalk-muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.icon-button {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 9px;
  color: var(--chalk-muted);
  font-size: 10px;
  font-weight: 600;
  background: transparent;
  border: 1px solid rgb(232 222 196 / 15%);
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.icon-button--square {
  width: 44px;
  min-width: 44px;
  padding: 0;
  font-size: 16px;
}

.icon-button:active,
.icon-button[aria-pressed="true"] {
  color: var(--chalk);
  background: rgb(232 222 196 / 9%);
  border-color: rgb(232 222 196 / 30%);
}

.icon-button:focus-visible,
.choice-button:focus-visible,
.scenario-card:focus-visible,
.dev-transfer-trigger:focus-visible,
.transfer-dialog button:focus-visible {
  outline: 2px solid #e7b36f;
  outline-offset: 3px;
}

.meter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.meter {
  --meter-color: #d0aa69;
  position: relative;
  min-width: 0;
  padding: 5px 4px 6px;
  background: var(--ink-850);
  border: 1px solid rgb(232 222 196 / 8%);
  border-radius: 7px;
  transition:
    border-color 160ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

.meter__top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  color: var(--meter-color);
  gap: 2px;
}

.meter__icon-field {
  display: inline-grid;
  flex: none;
  place-items: center;
}

.meter__icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.meter__value {
  color: var(--chalk);
  font-size: 9px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.meter__direction {
  position: absolute;
  top: -8px;
  right: -3px;
  display: grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  color: var(--ink-900);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  background: var(--paper);
  border: 1px solid rgb(11 23 26 / 18%);
  border-radius: 5px;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 140ms ease, transform 160ms ease;
}

.meter__delta {
  position: absolute;
  top: calc(100% - 1px);
  right: 2px;
  z-index: 3;
  display: block;
  min-width: 0;
  height: auto;
  padding: 0;
  color: #f5f2e8;
  font-size: 10px;
  font-weight: 820;
  line-height: 1;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 140ms ease, transform 160ms ease;
}

.meter__delta.is-positive { color: #8ed6a9; }
.meter__delta.is-negative { color: #ee928b; }

.meter-change-summary {
  font-variant-numeric: tabular-nums;
}

.meter-change-summary[hidden] { display: none; }

.meter__label {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--chalk-muted);
  font-size: 9px;
  font-weight: 550;
  line-height: 1.15;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meter__track {
  position: relative;
  height: 3px;
  margin: 5px 1px 0;
  overflow: hidden;
  background: rgb(231 239 232 / 10%);
  border-radius: 99px;
}

.meter__fill {
  width: var(--value, 50%);
  height: 100%;
  background: var(--meter-color);
  border-radius: inherit;
  transition: width 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.meter.is-preview {
  background: rgb(232 222 196 / 7%);
  border-color: color-mix(in srgb, var(--meter-color) 58%, transparent);
  transform: translateY(-2px);
}

.meter.is-preview .meter__direction {
  opacity: 1;
  transform: translateY(0);
}

.meter.is-changing {
  border-color: color-mix(in srgb, var(--meter-color) 76%, transparent);
}

.meter.is-changing .meter__value {
  color: #fff;
}

.meter.is-changing .meter__delta {
  animation: meter-delta var(--effect-feedback-duration, 1900ms) cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes meter-delta {
  0% { opacity: 0; transform: translateY(-2px); }
  9%, 86% { opacity: 1; transform: translateY(1px); }
  100% { opacity: 0; transform: translateY(-1px); }
}

.play-area {
  position: relative;
  z-index: 10;
  display: grid;
  min-height: 0;
  padding: 12px 0 2px;
}

.deck-stage {
  position: relative;
  align-self: center;
  justify-self: center;
  width: var(--card-width);
  height: calc(var(--card-height) + var(--stack-gap) * 2 + 8px);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.card-stack {
  position: relative;
  width: 100%;
  height: var(--card-height);
  touch-action: none;
}

.scenario-card {
  --depth-y: 0px;
  --depth-scale: 1;
  --depth-opacity: 1;
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--paper-ink);
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgb(0 0 0 / 22%);
  opacity: var(--depth-opacity);
  transform: translate3d(0, var(--depth-y), 0) scale(var(--depth-scale));
  transform-origin: 50% 62%;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.scenario-card[data-depth="0"] {
  z-index: 3;
  cursor: grab;
}

.scenario-card[data-depth="1"] {
  z-index: 2;
  --depth-y: var(--stack-gap);
  --depth-scale: 0.974;
  --depth-opacity: 0.96;
  pointer-events: none;
}

.scenario-card[data-depth="2"] {
  z-index: 1;
  --depth-y: calc(var(--stack-gap) * 2);
  --depth-scale: 0.948;
  --depth-opacity: 0.88;
  pointer-events: none;
}

.scenario-card.is-dragging {
  cursor: grabbing;
  box-shadow: 0 15px 32px rgb(0 0 0 / 26%);
}

.card-body {
  display: grid;
  place-content: center;
  min-height: 0;
  padding: 22px 26px;
  text-align: center;
}

.card-kicker {
  margin: 0 0 7px;
  color: var(--paper-muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.card-title {
  margin: 0;
  color: var(--paper-ink);
  font-size: clamp(20px, 5.6vw, 25px);
  font-weight: 680;
  letter-spacing: 0.02em;
}

.card-copy {
  max-width: 250px;
  margin: 13px auto 0;
  color: #56615d;
  font-size: clamp(13px, 3.5vw, 15px);
  line-height: 1.65;
}

.commit-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  z-index: 8;
  padding: 5px 9px;
  color: var(--chalk);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  background: var(--ink-800);
  border: 1px solid rgb(232 222 196 / 18%);
  border-radius: 7px;
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity 120ms ease, transform 160ms ease;
  pointer-events: none;
}

.commit-hint.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.result-toast {
  position: absolute;
  bottom: 8px;
  left: 50%;
  z-index: 12;
  min-width: 178px;
  padding: 8px 12px;
  color: var(--chalk);
  font-size: 11px;
  font-weight: 560;
  text-align: center;
  background: var(--ink-800);
  border: 1px solid rgb(232 222 196 / 16%);
  border-radius: 8px;
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
}

.result-toast.is-visible {
  animation: toast-in-out 2800ms ease both;
}

.new-player-tutorial {
  position: absolute;
  top: var(--new-player-tutorial-top, 606px);
  left: var(--new-player-tutorial-left, 50%);
  z-index: 11;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: min(calc(100% - 32px), var(--new-player-tutorial-width, 306px));
  max-width: 100%;
  gap: 3px;
  box-sizing: border-box;
  padding: 4px 8px 0;
  color: rgb(242 240 231 / 96%);
  text-align: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-shadow: 0 2px 12px rgb(0 8 12 / 88%);
  transform: translateX(-50%);
  pointer-events: none;
}

.new-player-tutorial[data-tutorial-layout-ready="false"] {
  visibility: hidden;
}

.new-player-tutorial[hidden],
.new-player-tutorial > [hidden] {
  display: none;
}

.new-player-tutorial__message {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.new-player-tutorial strong {
  font-size: 16px;
  font-weight: 680;
  line-height: 1.32;
  letter-spacing: .015em;
}

.new-player-tutorial span,
.new-player-tutorial small {
  color: rgb(205 216 211 / 82%);
  font-size: 13.5px;
  font-weight: 520;
  line-height: 1.42;
  letter-spacing: 0;
}

.new-player-tutorial small {
  display: none;
}

.new-player-tutorial[data-tutorial-step="second"] {
  z-index: 31;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  width: min(100%, var(--new-player-tutorial-width, 460px));
  overflow: hidden;
  padding: 6px 8px 8px 18px;
  color: rgb(226 235 230 / 94%);
  background: rgb(3 15 22 / 96%);
  border-bottom: 1px solid rgb(95 182 176 / 30%);
  box-shadow: 0 8px 20px rgb(0 7 10 / 24%);
  text-align: center;
  text-shadow: none;
}

.new-player-tutorial[data-tutorial-step="second"] strong {
  display: block;
  max-width: 410px;
  margin: 0 auto;
  font-size: 13.5px;
  font-weight: 560;
  line-height: 1.42;
  letter-spacing: .01em;
}

.new-player-tutorial__dismiss {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: rgb(205 216 211 / 76%);
  background: transparent;
  border: 0;
  cursor: pointer;
  pointer-events: auto;
}

.new-player-tutorial__dismiss img {
  width: 17px;
  height: 17px;
  opacity: .82;
}

.new-player-tutorial__dismiss:hover img {
  opacity: 1;
}

.new-player-tutorial__dismiss:focus-visible {
  outline: 2px solid rgb(95 182 176 / 72%);
  outline-offset: -5px;
}

.app-shell.has-new-player-tutorial--second .meter-grid {
  position: relative;
  z-index: 1;
}

.app-shell.has-new-player-tutorial--second .meter {
  border-color: color-mix(in srgb, var(--meter-color) 42%, transparent);
  animation: new-player-meter-focus 720ms cubic-bezier(.22, 1, .36, 1) both;
}

.app-shell.has-new-player-tutorial--second .meter:nth-child(2) { animation-delay: 45ms; }
.app-shell.has-new-player-tutorial--second .meter:nth-child(3) { animation-delay: 90ms; }
.app-shell.has-new-player-tutorial--second .meter:nth-child(4) { animation-delay: 135ms; }
.app-shell.has-new-player-tutorial--second .meter:nth-child(5) { animation-delay: 180ms; }

@keyframes new-player-meter-focus {
  0% { background-color: transparent; transform: translateY(0); }
  44% { background-color: color-mix(in srgb, var(--meter-color) 11%, transparent); transform: translateY(-1px); }
  100% { background-color: transparent; transform: translateY(0); }
}

.app-shell.has-new-player-tutorial--first .scenario-card[data-depth="0"]:not(.is-dragging) {
  animation: new-player-card-demo 1540ms cubic-bezier(.22, .78, .22, 1) 220ms both;
}

@keyframes new-player-card-demo {
  0%, 10% {
    transform: translate3d(0, var(--depth-y, 0), 0) rotate(0) scale(var(--depth-scale, 1));
  }
  28% {
    transform: translate3d(-11px, var(--depth-y, 0), 0) rotate(-.65deg) scale(var(--depth-scale, 1));
  }
  45% {
    transform: translate3d(0, var(--depth-y, 0), 0) rotate(0) scale(var(--depth-scale, 1));
  }
  63% {
    transform: translate3d(11px, var(--depth-y, 0), 0) rotate(.65deg) scale(var(--depth-scale, 1));
  }
  80%, 100% {
    transform: translate3d(0, var(--depth-y, 0), 0) rotate(0) scale(var(--depth-scale, 1));
  }
}

.app-shell.has-new-player-tutorial .gesture-hint,
.app-shell.has-new-player-tutorial .scenario-card[data-depth="0"] .faceted-card-gesture {
  visibility: hidden;
}

@media (max-width: 340px), (max-height: 620px) {
  .new-player-tutorial {
    width: min(calc(100% - 24px), var(--new-player-tutorial-width, 260px));
    padding: 3px 6px 0;
  }

  .new-player-tutorial strong {
    font-size: 15.5px;
    line-height: 1.32;
  }

  .new-player-tutorial span {
    font-size: 13px;
    line-height: 1.4;
  }

  .new-player-tutorial[data-tutorial-step="second"] {
    width: min(100%, var(--new-player-tutorial-width, 340px));
    grid-template-columns: minmax(0, 1fr) 44px;
    padding: 5px 5px 6px 12px;
  }

  .new-player-tutorial[data-tutorial-step="second"] strong {
    font-size: 12.5px;
    line-height: 1.38;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-shell.has-new-player-tutorial--first .scenario-card[data-depth="0"]:not(.is-dragging),
  .app-shell.has-new-player-tutorial--second .meter {
    animation: none;
  }
}

.app-shell.reduce-motion.has-new-player-tutorial--first .scenario-card[data-depth="0"]:not(.is-dragging),
.app-shell.reduce-motion.has-new-player-tutorial--second .meter {
  animation: none;
}

.season-echo-card {
  cursor: grab;
}

.season-echo-card__body {
  overflow: hidden;
}

.season-echo-card__portrait {
  width: 78px;
  height: auto;
  aspect-ratio: 2 / 3;
  margin-bottom: 16px;
  overflow: hidden;
  color: #826f4d;
  background: rgb(130 111 77 / 7%);
  border-color: rgb(130 111 77 / 28%);
  border-radius: 9px 9px 13px 13px;
}

.season-echo-card__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.season-echo-card__portrait[hidden],
.season-echo-card__portrait img[hidden] {
  display: none;
}

.season-echo-card__message {
  max-width: 250px;
  line-height: 1.65;
  text-align: center;
}

.season-echo-card__footer {
  color: var(--paper-muted);
  font-weight: 400;
  letter-spacing: normal;
}

.season-echo-card__gesture {
  display: inline-flex;
  width: fit-content;
  margin-top: 16px;
  gap: 7px;
  align-items: center;
  color: rgb(162 187 182 / 72%);
  font-size: 10px;
  font-weight: 620;
  letter-spacing: .08em;
  transition: opacity 140ms ease;
}

.season-echo-card.is-dragging .season-echo-card__gesture {
  opacity: .18;
}

.season-end-card {
  cursor: default;
}

.season-end-card__body {
  padding-right: 32px;
  padding-left: 32px;
}

.season-end-card__mark {
  width: 32px;
  height: 1px;
  margin: 0 auto 20px;
  background: rgb(28 39 40 / 24%);
}

.season-end-card .card-copy {
  max-width: 230px;
}

.season-deck-back {
  color: transparent;
  background: var(--paper);
  pointer-events: none;
}

.dev-transfer-trigger {
  position: absolute;
  right: 18px;
  bottom: 72px;
  z-index: 18;
  display: grid;
  gap: 3px;
  min-width: 148px;
  min-height: 58px;
  padding: 9px 16px 10px;
  color: var(--chalk);
  text-align: left;
  background: rgb(8 28 34 / 94%);
  border: 1px solid rgb(141 200 187 / 46%);
  border-radius: 0;
  box-shadow: 0 10px 28px rgb(0 0 0 / 30%);
  cursor: pointer;
}

.dev-transfer-trigger[hidden] {
  display: none !important;
}

.dev-transfer-trigger__eyebrow {
  color: #8dc8bb;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .08em;
}

.dev-transfer-trigger__label {
  font-size: 14px;
  font-weight: 720;
}

.dev-transfer-trigger:disabled,
.transfer-offer__select:disabled {
  color: var(--chalk-muted);
  cursor: default;
  opacity: 0.58;
}

@keyframes toast-in-out {
  0% { opacity: 0; transform: translate(-50%, 8px); }
  6%, 88% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -4px); }
}

.control-panel {
  position: relative;
  z-index: 25;
  padding: 8px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--ink-900);
  border-top: 1px solid rgb(232 222 196 / 8%);
}

.choice-controls {
  display: grid;
  grid-template-columns: minmax(94px, 1fr) minmax(84px, auto) minmax(94px, 1fr);
  gap: 8px;
  align-items: center;
}

.choice-button {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
  min-height: 46px;
  padding: 0 10px;
  color: var(--chalk);
  font-size: 11px;
  font-weight: 620;
  background: var(--ink-850);
  border: 1px solid rgb(232 222 196 / 15%);
  border-radius: 10px;
  cursor: pointer;
}

.choice-button--left {
  justify-content: flex-start;
  text-align: left;
}

.choice-button--right {
  justify-content: flex-end;
  text-align: right;
}

.choice-button:active {
  background: rgb(232 222 196 / 10%);
  transform: translateY(1px);
}

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

.choice-button__arrow {
  flex: 0 0 auto;
  color: #e7b36f;
  font-size: 17px;
  font-weight: 450;
}

.choice-button > span:not(.choice-button__arrow) {
  min-width: 0;
  line-height: 1.25;
  white-space: normal;
}

.gesture-hint {
  margin: 0;
  color: var(--chalk-muted);
  font-size: 9px;
  line-height: 1.35;
  text-align: center;
}

.is-locked .scenario-card[data-depth="0"] {
  pointer-events: none;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.transfer-dialog {
  width: min(calc(100% - 24px), 430px);
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 0;
  color: var(--chalk);
  background: transparent;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgb(0 0 0 / 48%);
}

.transfer-dialog::backdrop {
  background: rgb(3 10 12 / 78%);
  backdrop-filter: blur(3px);
}

.transfer-dialog__surface {
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 20px;
  background: #07171d;
  border: 1px solid rgb(232 222 196 / 22%);
  border-radius: 12px;
  overscroll-behavior: contain;
}

.transfer-dialog__header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.transfer-dialog__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #8dc8bb;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.transfer-dialog h2,
.transfer-dialog h3,
.transfer-dialog p {
  margin-top: 0;
}

.transfer-dialog h2 {
  margin-bottom: 0;
  font-size: 23px;
  line-height: 1.3;
}

.transfer-dialog h2:focus {
  outline: none;
}

.transfer-dialog__close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  color: var(--chalk);
  font-size: 24px;
  line-height: 1;
  background: var(--ink-850);
  border: 1px solid rgb(232 222 196 / 17%);
  border-radius: 10px;
  cursor: pointer;
}

.transfer-dialog__summary {
  margin: 18px 0 16px;
  color: rgb(223 232 228 / 76%);
  font-size: 13px;
  line-height: 1.62;
}

.transfer-offer-list {
  display: grid;
  gap: 12px;
}

.transfer-offer {
  position: relative;
  width: 100%;
  min-height: 86px;
  padding: 17px 86px 15px 17px;
  color: var(--chalk);
  text-align: left;
  background: rgb(12 37 43 / 72%);
  border: 1px solid rgb(141 200 187 / 24%);
  border-radius: 2px;
  cursor: pointer;
}

.transfer-offer h3 {
  margin-bottom: 7px;
  font-size: 19px;
}

.transfer-offer p {
  margin-bottom: 0;
  color: rgb(223 232 228 / 66%);
  font-size: 12px;
  line-height: 1.45;
}

.transfer-offer__meta {
  font-weight: 560;
}

.transfer-offer__cue {
  position: absolute;
  top: 50%;
  right: 17px;
  color: #8dc8bb;
  font-size: 12px;
  font-weight: 700;
  transform: translateY(-50%);
}

.transfer-offer--fallback {
  min-height: 0;
  padding: 18px 0 0;
  color: var(--chalk);
  background: transparent;
  border: 0;
  border-top: 1px solid rgb(232 222 196 / 23%);
  border-radius: 0;
}

.transfer-offer--fallback p {
  color: rgb(239 240 234 / 78%);
  font-size: 13px;
}

.transfer-conversation {
  padding: 22px 18px 18px;
  background: rgb(12 37 43 / 72%);
  border: 1px solid rgb(141 200 187 / 24%);
}

.transfer-conversation__speaker {
  margin-bottom: 18px;
  color: #8dc8bb;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: .04em;
}

.transfer-conversation__line {
  margin-bottom: 16px;
  color: rgb(239 240 234 / 91%);
  font-size: 15px;
  line-height: 1.75;
}

.transfer-conversation__speaker--player {
  margin-top: 6px;
  color: #e7b36f;
}

.transfer-conversation__reply {
  margin-bottom: 22px;
  padding: 14px 15px;
  color: rgb(247 244 232 / 96%);
  font-size: 15px;
  line-height: 1.68;
  background: rgb(231 179 111 / 8%);
  border-left: 2px solid rgb(231 179 111 / 70%);
}

.transfer-conversation__closing {
  margin-bottom: 0;
  color: rgb(223 232 228 / 78%);
  font-size: 13px;
  line-height: 1.65;
}

.transfer-conversation__actions {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 10px;
  margin-top: 24px;
}

.transfer-conversation__back {
  min-height: 48px;
  color: rgb(223 232 228 / 76%);
  font-size: 12px;
  font-weight: 650;
  background: transparent;
  border: 1px solid rgb(223 232 228 / 22%);
  cursor: pointer;
}

.transfer-offer__select,
.transfer-confirmation button {
  min-height: 44px;
  padding: 0 12px;
  color: var(--chalk);
  font-size: 11px;
  font-weight: 700;
  background: var(--ink-800);
  border: 1px solid rgb(232 222 196 / 22%);
  border-radius: 9px;
  cursor: pointer;
}

.transfer-offer__select {
  width: 100%;
  margin-top: 4px;
}

.transfer-decision-status {
  margin: 10px 0 0;
  padding-left: 10px;
  color: #e7b36f !important;
  font-size: 12px !important;
  font-weight: 700;
  border-left: 2px solid #e7b36f;
}

.transfer-confirmation {
  margin-top: 12px;
  padding: 14px;
  background: rgb(231 179 111 / 9%);
  border: 1px solid rgb(231 179 111 / 35%);
  border-radius: 12px;
}

.transfer-confirmation h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

.transfer-confirmation p {
  margin-bottom: 12px;
  color: var(--chalk-muted);
  font-size: 12px;
  line-height: 1.55;
}

.transfer-confirmation__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

#transferConfirmButton {
  color: var(--ink-950);
  background: #e7b36f;
  border-color: #e7b36f;
}

.transfer-dialog__notice {
  margin: 14px 0 0;
  color: var(--chalk-muted);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

@media (max-height: 700px) {
  :root {
    --card-height: min(55dvh, 348px);
  }

  .status-header {
    padding-top: calc(8px + env(safe-area-inset-top));
    padding-bottom: 7px;
  }

  .status-header__meta {
    margin-bottom: 6px;
  }

  .meter {
    padding-block: 3px 4px;
  }

  .meter__label {
    margin-top: 0;
  }

  .card-placeholder {
    width: 48px;
    height: 48px;
    margin-bottom: 9px;
  }

  .card-placeholder svg {
    width: 30px;
    height: 30px;
  }

  .card-index {
    min-height: 36px;
  }

  .card-body {
    padding: 10px 18px;
  }

  .card-kicker {
    margin-bottom: 5px;
    font-size: 9px;
  }

  .card-title {
    font-size: clamp(18px, 5.4vw, 22px);
  }

  .card-copy {
    margin-top: 7px;
    font-size: clamp(12px, 3.4vw, 14px);
    line-height: 1.42;
  }

  .card-footer {
    min-height: 38px;
    font-size: 9px;
  }

  .play-area {
    padding-top: 6px;
  }

  .season-echo-card__portrait {
    width: 52px;
    height: auto;
    margin-bottom: 9px;
  }

  .season-echo-card__message {
    line-height: 1.42;
  }
}

@media (max-width: 355px) {
  :root {
    --card-width: calc(100vw - 34px);
  }

  .status-header {
    padding-inline: 10px;
  }

  .meter-grid {
    gap: 3px;
  }

  .meter {
    padding-inline: 2px;
  }

  .meter__label {
    font-size: 8px;
  }

  .choice-controls {
    grid-template-columns: 1fr 66px 1fr;
    gap: 5px;
  }

  .choice-button {
    min-height: 44px;
    padding-inline: 7px;
    font-size: 10px;
  }
}

/*
 * V0.18 opt-in abstract NPC experiment.
 * One native 48x48 bust canvas is shown at integer scale in a single global
 * right-hand slot.  No character, pose, or event may override these values.
 */
.app-shell[data-npc-art="abstract-v1"][data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id]:not(.event-card--text-only) {
  --portrait-top: 24px;
  --portrait-left: 96px;
  --portrait-width: 240px;
  --portrait-top-compact: 8px;
  --portrait-left-compact: 86px;
  --portrait-width-compact: 192px;
}

.app-shell[data-npc-art="abstract-v1"] .event-card__portrait {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

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

  .result-toast.is-visible,
  .meter.is-changing .meter__delta {
    animation: none !important;
    opacity: 1;
  }

  .result-toast.is-visible {
    transform: translate(-50%, 0);
  }

  .meter.is-changing .meter__delta {
    transform: translate(50%, 0);
  }
}

.reduce-motion .scenario-card {
  transform-origin: center;
}

.reduce-motion[data-card-feel="layered"] .event-card__portrait {
  transform: translate3d(0, 0, 0) !important;
  transition: none !important;
}

.reduce-motion[data-card-feel="layered"] .event-card__thickness {
  transform: translate3d(0, 5px, 0) !important;
  transition: none !important;
}

.reduce-motion .meter,
.reduce-motion .meter__fill {
  transition-duration: 100ms;
}

.reduce-motion .result-toast.is-visible {
  animation: none;
  opacity: 1;
  transform: translate(-50%, 0);
}

.reduce-motion .meter.is-changing .meter__delta {
  animation: none;
  opacity: 1;
  transform: translateY(1px);
}

/* Yearly club-stage mode — presentation-only refactor over the V0.7 gesture state machine. */
.app-shell {
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #09171c;
  border-inline-color: rgb(209 222 219 / 6%);
}

.club-stage-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #09171c;
  pointer-events: none;
}

.status-header {
  background: #0b1a1f;
  border-bottom-color: rgb(209 222 219 / 10%);
}

.play-area {
  display: block;
  padding: 0;
  overflow: hidden;
}

.deck-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.card-stack {
  width: 100%;
  height: 100%;
  touch-action: none;
}

.event-card {
  --club-accent: #496770;
  display: block;
  overflow: visible;
  color: var(--chalk);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.event-card.is-dragging {
  box-shadow: none;
}

.event-card__surface {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.event-card__topline {
  display: none;
}

.event-card__thickness,
.event-card__plane {
  display: none;
  position: absolute;
  top: 5%;
  right: 3.5%;
  bottom: 5.5%;
  left: 3.5%;
  clip-path: polygon(4% 0, 95% 0, 100% 7%, 97% 92%, 92% 100%, 8% 100%, 0 91%, 0 8%);
  pointer-events: none;
}

.app-shell[data-card-feel="layered"] .event-card__thickness,
.app-shell[data-card-feel="layered"] .event-card__plane {
  display: block;
}

.app-shell[data-card-feel="layered"] .event-card__thickness {
  z-index: 0;
  background: var(--club-accent);
  opacity: 0.26;
  transform: translate3d(var(--surface-edge-x, 0px), 5px, 0);
  transition: transform 150ms cubic-bezier(.2, .82, .2, 1), opacity 150ms ease;
}

.app-shell[data-card-feel="layered"] .event-card__plane {
  z-index: 1;
  background: #0d2228;
  filter: drop-shadow(0 12px 17px rgb(0 0 0 / 23%));
  transition: filter 150ms ease;
}

.app-shell[data-card-feel="layered"] .event-card.is-dragging .event-card__thickness {
  opacity: 0.38;
  transition: none;
}

.app-shell[data-card-feel="layered"] .event-card.is-dragging .event-card__plane {
  filter: drop-shadow(0 17px 22px rgb(0 0 0 / 31%));
}

.event-card:focus-visible {
  outline: 0;
}

.event-card:focus-visible .event-card__story {
  border-left-color: #e7b36f;
}

.event-card[data-depth="0"] {
  --depth-y: 0px;
  --depth-scale: 1;
  --depth-opacity: 1;
}

.event-card[data-depth="1"],
.event-card[data-depth="2"] {
  --depth-opacity: 0;
  pointer-events: none;
}

.event-card__accent-field {
  position: absolute;
  z-index: 2;
  top: 4%;
  bottom: 4%;
  width: 67%;
  background: var(--club-accent);
  opacity: 0.9;
  pointer-events: none;
}

.event-card--portrait-right .event-card__accent-field {
  right: -8%;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 88%);
}

.event-card--portrait-left .event-card__accent-field {
  left: -8%;
  clip-path: polygon(0 0, 78% 0, 100% 88%, 0 100%);
}

.event-card__portrait {
  position: absolute;
  z-index: 3;
  top: 0;
  width: min(112vw, 516px);
  height: 96%;
  object-fit: contain;
  object-position: center bottom;
  image-rendering: pixelated;
  pointer-events: none;
  -webkit-user-drag: none;
}

.app-shell[data-card-feel="layered"] .event-card__portrait {
  transform: translate3d(var(--portrait-lag-x, 0px), var(--portrait-lag-y, 0px), 0);
  transition: transform 160ms cubic-bezier(.2, .82, .2, 1);
  will-change: transform;
}

.app-shell[data-card-feel="layered"] .event-card.is-dragging .event-card__portrait {
  transition: none;
}

.event-card--portrait-right .event-card__portrait {
  left: 15%;
}

.event-card--portrait-left .event-card__portrait {
  left: -28%;
}

.event-card__story {
  position: absolute;
  top: 20%;
  z-index: 4;
  width: min(48%, 202px);
  padding: 0 0 0 12px;
  text-align: left;
  border-left: 3px solid var(--club-accent);
}

.event-card--portrait-right .event-card__story {
  left: clamp(18px, 5vw, 26px);
}

.event-card--portrait-left .event-card__story {
  right: clamp(18px, 5vw, 26px);
}

.event-card__club {
  margin: 0 0 6px;
  color: rgb(238 240 232 / 64%);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.14em;
}

.event-card .card-kicker {
  margin: 0 0 10px;
  color: var(--chalk);
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0.03em;
}

.event-card .card-title {
  color: var(--chalk);
  font-size: clamp(20px, 5.5vw, 24px);
  line-height: 1.2;
  letter-spacing: 0;
  text-wrap: balance;
}

.event-card .card-copy {
  max-width: none;
  margin: 13px 0 0;
  color: rgb(238 240 232 / 78%);
  font-size: clamp(12px, 3.25vw, 14px);
  line-height: 1.62;
}

.event-card--text-only .event-card__accent-field {
  top: 12%;
  right: 8%;
  bottom: 12%;
  left: 8%;
  width: auto;
  clip-path: polygon(8% 0, 100% 9%, 92% 100%, 0 88%);
  opacity: 0.34;
}

.event-card--text-only .event-card__story {
  top: 50%;
  right: auto;
  left: 50%;
  width: min(78%, 320px);
  padding-left: 14px;
  transform: translate(-50%, -50%);
}

.app-shell[data-card-feel="layered"] .event-card__story {
  border-left-color: rgb(238 240 232 / 34%);
}

.app-shell[data-card-feel="layered"] .event-card:not(.event-card--text-only) .event-card__accent-field {
  top: 7%;
  bottom: 7%;
  opacity: 0.82;
}

.app-shell[data-card-feel="layered"] .event-card--portrait-right .event-card__accent-field {
  right: 3.5%;
}

.app-shell[data-card-feel="layered"] .event-card--portrait-left .event-card__accent-field {
  left: 3.5%;
}

.app-shell[data-card-feel="layered"] .event-card--text-only .event-card__accent-field {
  opacity: 0.22;
}

.commit-hint {
  bottom: 40px;
  z-index: 10;
}

.result-toast {
  bottom: 14px;
  z-index: 12;
}

.season-echo-card__body,
.season-end-card__body {
  overflow: visible;
  padding: 0 0 0 14px;
}

.season-echo-card__portrait {
  width: min(112vw, 516px);
  height: 96%;
  margin: 0;
  border: 0;
  border-radius: 0;
}

.season-echo-card__message,
.season-end-card .card-copy {
  max-width: none;
  text-align: left;
}

.season-deck-back {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.control-panel {
  min-height: 38px;
  padding: 7px 14px calc(8px + env(safe-area-inset-bottom));
  background: #0b1a1f;
  border-top-color: rgb(209 222 219 / 9%);
}

.choice-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
}

.assistive-choice {
  position: absolute !important;
  width: 1px !important;
  min-width: 0 !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.assistive-choice:focus-visible {
  position: static !important;
  width: auto !important;
  min-width: 84px !important;
  height: auto !important;
  min-height: 44px !important;
  padding: 0 10px !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
  border: 1px solid #e7b36f !important;
}

.gesture-hint {
  color: rgb(238 240 232 / 52%);
  font-size: 10px;
  letter-spacing: 0.08em;
  transition: opacity 420ms ease;
}

.has-swiped .gesture-hint {
  opacity: 0.28;
}

@media (max-height: 700px) {
  .event-card__accent-field {
    top: 2%;
    bottom: 2%;
  }

  .event-card__portrait {
    height: 100%;
  }

  .event-card__story {
    top: 14%;
    width: min(50%, 190px);
  }

  .event-card .card-title {
    font-size: clamp(19px, 5.5vw, 23px);
  }

  .event-card .card-copy {
    margin-top: 8px;
    font-size: clamp(11px, 3.1vw, 13px);
    line-height: 1.45;
  }

}

@media (max-width: 355px) {
  .event-card__story {
    width: 49%;
  }

  .event-card .card-kicker {
    font-size: 10px;
  }

}

/*
 * V0.10 — default traditional card adaptation.
 * The rejected borderless/layered experiments remain available only through
 * ?cardFeel=rigid and ?cardFeel=layered for comparison. Gesture thresholds,
 * result mapping and season sequencing are shared and unchanged.
 */
.app-shell[data-card-feel="traditional"] {
  --card-width: min(calc(100vw - 24px), 402px);
  --card-height: min(64dvh, 560px);
  --stack-gap: clamp(10px, 3.1vw, 13px);
}

.app-shell[data-card-feel="traditional"] .deck-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding-bottom: calc(var(--stack-gap) * 2);
}

.app-shell[data-card-feel="traditional"] .card-stack {
  position: relative;
  width: var(--card-width);
  height: var(--card-height);
  touch-action: none;
}

.app-shell[data-card-feel="traditional"] .event-card {
  overflow: hidden;
  color: var(--paper-ink);
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  border-radius: 18px;
  box-shadow: 0 16px 32px rgb(0 0 0 / 28%);
}

.app-shell[data-card-feel="traditional"] .event-card.is-dragging {
  box-shadow: 0 20px 38px rgb(0 0 0 / 34%);
}

.app-shell[data-card-feel="traditional"] .event-card__surface {
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.app-shell[data-card-feel="traditional"] .event-card__thickness,
.app-shell[data-card-feel="traditional"] .event-card__plane {
  display: none;
}

.app-shell[data-card-feel="traditional"] .event-card[data-depth="0"] {
  --depth-opacity: 1;
}

.app-shell[data-card-feel="traditional"] .event-card[data-depth="1"] {
  --depth-opacity: 0.96;
  pointer-events: none;
}

.app-shell[data-card-feel="traditional"] .event-card[data-depth="2"] {
  --depth-opacity: 0.88;
  pointer-events: none;
}

.app-shell[data-card-feel="traditional"] .event-card__topline {
  position: absolute;
  inset: 0 0 auto;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 18px;
  color: #5f6964;
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.14em;
  background: rgb(238 229 204 / 96%);
  border-bottom: 1px solid rgb(103 95 74 / 20%);
}

.app-shell[data-card-feel="traditional"] .event-card__accent-field,
.app-shell[data-card-feel="traditional"] .event-card--portrait-right .event-card__accent-field,
.app-shell[data-card-feel="traditional"] .event-card--portrait-left .event-card__accent-field {
  inset: 40px 0 40%;
  width: auto;
  background: var(--club-accent);
  clip-path: none;
  opacity: 0.92;
}

.app-shell[data-card-feel="traditional"] .event-card__portrait,
.app-shell[data-card-feel="traditional"] .season-echo-card__portrait {
  top: 40px;
  bottom: auto;
  left: auto;
  width: 78%;
  height: calc(60% - 40px);
  max-width: none;
  margin: 0;
  object-fit: contain;
  object-position: center bottom;
  border: 0;
  border-radius: 0;
  transform: none;
}

.app-shell[data-card-feel="traditional"] .event-card--portrait-right .event-card__portrait {
  right: 1%;
  left: auto;
}

.app-shell[data-card-feel="traditional"] .event-card--portrait-left .event-card__portrait {
  right: auto;
  left: 1%;
}

.app-shell[data-card-feel="traditional"] .event-card__story,
.app-shell[data-card-feel="traditional"] .event-card--portrait-right .event-card__story,
.app-shell[data-card-feel="traditional"] .event-card--portrait-left .event-card__story {
  position: absolute;
  inset: 60% 0 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: auto;
  min-height: 0;
  padding: 17px 22px 16px;
  color: var(--paper-ink);
  text-align: left;
  background: rgb(232 222 196 / 98%);
  border-top: 1px solid rgb(103 95 74 / 21%);
  border-left: 0;
  transform: none;
}

.app-shell[data-card-feel="traditional"] .event-card .card-kicker {
  margin: 0 0 7px;
  color: #5d6863;
  font-size: 10px;
  font-weight: 680;
  line-height: 1.35;
  letter-spacing: 0.035em;
}

.app-shell[data-card-feel="traditional"] .event-card .card-title {
  margin: 0;
  color: var(--paper-ink);
  font-size: clamp(20px, 5.5vw, 25px);
  font-weight: 720;
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.app-shell[data-card-feel="traditional"] .event-card .card-copy {
  max-width: none;
  margin: 10px 0 0;
  color: #56615d;
  font-size: clamp(12px, 3.25vw, 14px);
  line-height: 1.52;
}

.app-shell[data-card-feel="traditional"] .event-card--text-only .event-card__accent-field {
  inset: 40px 0 0;
  width: auto;
  clip-path: none;
  opacity: 0.12;
}

.app-shell[data-card-feel="traditional"] .event-card--text-only .event-card__story {
  inset: 40px 0 0;
  justify-content: center;
  padding: 30px 28px;
  background: transparent;
  border-top: 0;
}

.app-shell[data-card-feel="traditional"] .season-echo-card__message,
.app-shell[data-card-feel="traditional"] .season-end-card .card-copy {
  max-width: none;
  text-align: left;
}

.app-shell[data-card-feel="traditional"] .season-deck-back {
  color: transparent;
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  border-radius: 18px;
  box-shadow: 0 13px 28px rgb(0 0 0 / 23%);
}

.card-choice-tabs {
  position: absolute;
  inset: 0;
  z-index: 9;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.card-choice-tab {
  position: absolute;
  top: 45%;
  display: flex;
  gap: 7px;
  align-items: center;
  max-width: 55%;
  min-height: 46px;
  padding: 9px 13px;
  color: var(--chalk);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.3;
  background: rgb(15 38 43 / 88%);
  border: 1px solid rgb(232 222 196 / 26%);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-50%) scale(.985);
}

.card-choice-tab--left {
  left: -1px;
  justify-content: flex-start;
  text-align: left;
  border-radius: 0 10px 10px 0;
}

.card-choice-tab--right {
  right: -1px;
  justify-content: flex-end;
  text-align: right;
  border-radius: 10px 0 0 10px;
}

.event-card[data-preview-choice] .card-choice-tab.is-active {
  visibility: visible;
  opacity: var(--choice-progress, 0);
  transform: translateY(-50%) scale(1);
}

.card-choice-tab__arrow {
  flex: 0 0 auto;
  color: #e7b36f;
  font-size: 17px;
  font-weight: 500;
}

.card-choice-tab__label {
  min-width: 0;
}

.event-card[data-depth="1"] .card-choice-tabs,
.event-card[data-depth="2"] .card-choice-tabs {
  display: none;
}

.app-shell[data-card-feel="traditional"] .commit-hint {
  bottom: max(20px, calc((100% - var(--card-height)) / 2 + 16px));
}

@media (max-height: 700px) {
  .app-shell[data-card-feel="traditional"] {
    --card-height: min(64dvh, 382px);
  }

  .app-shell[data-card-feel="traditional"] .event-card__topline {
    height: 34px;
    padding-inline: 14px;
    font-size: 8px;
  }

  .app-shell[data-card-feel="traditional"] .event-card__accent-field,
  .app-shell[data-card-feel="traditional"] .event-card--portrait-right .event-card__accent-field,
  .app-shell[data-card-feel="traditional"] .event-card--portrait-left .event-card__accent-field {
    inset: 34px 0 48%;
  }

  .app-shell[data-card-feel="traditional"] .event-card__portrait,
  .app-shell[data-card-feel="traditional"] .season-echo-card__portrait {
    top: 34px;
    bottom: auto;
    width: 74%;
    height: calc(52% - 34px);
  }

  .app-shell[data-card-feel="traditional"] .event-card__story,
  .app-shell[data-card-feel="traditional"] .event-card--portrait-right .event-card__story,
  .app-shell[data-card-feel="traditional"] .event-card--portrait-left .event-card__story {
    inset: 52% 0 0;
    padding: 11px 17px 10px;
  }

  .app-shell[data-card-feel="traditional"] .event-card--text-only .event-card__accent-field,
  .app-shell[data-card-feel="traditional"] .event-card--text-only .event-card__story {
    inset: 34px 0 0;
  }

  .app-shell[data-card-feel="traditional"] .event-card--text-only .event-card__story {
    padding: 22px 20px;
  }

  .app-shell[data-card-feel="traditional"] .event-card .card-kicker {
    margin-bottom: 4px;
    font-size: 9px;
  }

  .app-shell[data-card-feel="traditional"] .event-card .card-title {
    font-size: clamp(18px, 5.3vw, 22px);
  }

  .app-shell[data-card-feel="traditional"] .event-card .card-copy {
    margin-top: 6px;
    font-size: clamp(10.5px, 3.15vw, 12.5px);
    line-height: 1.4;
  }

  .card-choice-tab {
    top: 42%;
    min-height: 42px;
    padding: 7px 10px;
    font-size: 11px;
  }
}

@media (max-width: 355px) {
  .app-shell[data-card-feel="traditional"] {
    --card-width: calc(100vw - 20px);
  }

  .app-shell[data-card-feel="traditional"] .event-card__story,
  .app-shell[data-card-feel="traditional"] .event-card--portrait-right .event-card__story,
  .app-shell[data-card-feel="traditional"] .event-card--portrait-left .event-card__story {
    padding-inline: 15px;
  }

  .card-choice-tab {
    max-width: 58%;
    font-size: 10.5px;
  }
}

/*
 * V0.11 — deep-navy club programme card on a fixed annual club stage.
 * Presentation only: the accepted V0.7 gesture thresholds, release timing,
 * left/right database mapping and event 12 -> season echo -> season end chain
 * remain in app.js. The generated room plate is a PROVISIONAL visual asset.
 */
.app-shell[data-card-feel="traditional"] {
  --card-width: min(70vw, 292px);
  --card-height: min(62dvh, 520px);
  --stack-gap: clamp(9px, 2.6vw, 11px);
  --stack-x-gap: clamp(4px, 1.8vw, 7px);
  background: #07131d;
  border-inline-color: rgb(179 198 207 / 7%);
}

.club-stage-bg {
  background-color: #07131d;
  background-image: url("./assets/stages/clubroom-night-v1.png");
  background-position: center;
  background-size: cover;
  filter: saturate(.72) contrast(.96) brightness(.74);
  transform: scale(1.008);
}

.club-stage-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgb(3 12 19 / 8%) 0%, rgb(3 12 19 / 1%) 34%, rgb(3 12 19 / 16%) 100%),
    linear-gradient(90deg, rgb(4 15 23 / 8%), transparent 28%, transparent 72%, rgb(4 15 23 / 9%));
}

.status-header {
  padding: calc(10px + env(safe-area-inset-top)) 14px 9px;
  background: linear-gradient(180deg, rgb(4 16 25 / 98%), rgb(5 19 28 / 92%));
  border-bottom-color: rgb(178 204 214 / 12%);
}

.status-header__meta {
  min-height: 33px;
  margin-bottom: 8px;
}

.status-header__meta > div:first-child {
  display: grid;
  grid-template-columns: auto auto;
  gap: 13px;
  align-items: baseline;
}

.eyebrow,
.turn-counter {
  display: none;
}

.screen-title {
  font-size: 17px;
  font-weight: 720;
  letter-spacing: .045em;
}

.season-counter {
  margin: 0;
  color: rgb(238 240 232 / 68%);
  font-size: 9px;
  letter-spacing: .06em;
}

.header-actions {
  gap: 5px;
}

.icon-button {
  min-height: 32px;
  padding-inline: 8px;
  font-size: 8px;
  background: rgb(7 26 37 / 38%);
  border-color: rgb(212 222 219 / 13%);
  border-radius: 6px;
}

.icon-button--square {
  width: 32px;
  min-width: 32px;
  font-size: 15px;
}

.meter-grid {
  gap: 0;
}

.meter {
  min-height: 49px;
  padding: 3px 8px 5px;
  background: transparent;
  border: 0;
  border-left: 1px solid rgb(168 196 207 / 12%);
  border-radius: 0;
}

.meter:first-child {
  border-left: 0;
}

.meter__top {
  min-height: 19px;
  gap: 3px;
}

.meter__icon {
  width: 17px;
  height: 17px;
}

.meter__value {
  font-size: 10px;
}

.meter__label {
  margin-top: 1px;
  color: rgb(238 240 232 / 74%);
  font-size: 8px;
}

.meter__track {
  height: 3px;
  margin: 5px 0 0;
  background: rgb(147 180 193 / 20%);
}

.meter.is-preview {
  background: rgb(232 222 196 / 4%);
  border-color: color-mix(in srgb, var(--meter-color) 42%, transparent);
}

.control-panel {
  min-height: 34px;
  padding: 6px 14px calc(7px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgb(5 18 27 / 82%), rgb(4 15 23 / 96%));
  border-top-color: rgb(178 204 214 / 10%);
}

.gesture-hint {
  margin: 0;
  color: rgb(231 237 234 / 50%);
  font-size: 9px;
}

.app-shell[data-card-feel="traditional"] .deck-stage {
  padding: 0 0 calc(var(--stack-gap) * 2);
  transform: translateX(clamp(8px, 4.6vw, 18px));
}

.app-shell[data-card-feel="traditional"] .event-card {
  overflow: visible;
  color: var(--chalk);
  background: transparent;
  border: 0;
  border-radius: 14px;
  box-shadow: none;
  will-change: transform;
}

.app-shell[data-card-feel="traditional"] .event-card.is-dragging {
  box-shadow: none;
}

.app-shell[data-card-feel="traditional"] .event-card__surface {
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgb(18 47 67 / 24%), transparent 36%),
    #071d2c;
  border: 1px solid #b6a578;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 2px #071d2c,
    inset 0 0 0 3px rgb(218 199 151 / 40%),
    0 2px 0 rgb(230 212 164 / 34%),
    0 14px 27px rgb(0 0 0 / 38%);
}

.app-shell[data-card-feel="traditional"] .event-card__surface::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  height: 8px;
  content: "";
  background: #071d2c;
  pointer-events: none;
}

.app-shell[data-card-feel="traditional"] .event-card.is-dragging .event-card__surface {
  box-shadow:
    inset 0 0 0 2px #071d2c,
    inset 0 0 0 3px rgb(218 199 151 / 46%),
    0 2px 0 rgb(230 212 164 / 42%),
    0 19px 34px rgb(0 0 0 / 46%);
}

.app-shell[data-card-feel="traditional"] .event-card[data-depth="0"],
.app-shell[data-card-feel="traditional"] .event-card[data-depth="1"],
.app-shell[data-card-feel="traditional"] .event-card[data-depth="2"] {
  --depth-opacity: 1;
}

.app-shell[data-card-feel="traditional"] .scenario-card[data-depth="1"],
.app-shell[data-card-feel="traditional"] .scenario-card[data-depth="2"] {
  --depth-opacity: 1;
}

.app-shell[data-card-feel="traditional"] .scenario-card[data-depth="1"] {
  transform: translate3d(var(--stack-x-gap), var(--stack-gap), 0) scale(.974);
}

.app-shell[data-card-feel="traditional"] .scenario-card[data-depth="2"] {
  transform: translate3d(calc(var(--stack-x-gap) * 2), calc(var(--stack-gap) * 2), 0) scale(.948);
}

.app-shell[data-card-feel="traditional"] .event-card[data-depth="1"] .event-card__surface {
  background: #102633;
  border-color: #9d9677;
}

.app-shell[data-card-feel="traditional"] .event-card[data-depth="2"] .event-card__surface {
  background: #172b32;
  border-color: #858a72;
}

.app-shell[data-card-feel="traditional"] .event-card[data-depth="1"] .event-card__portrait,
.app-shell[data-card-feel="traditional"] .event-card[data-depth="2"] .event-card__portrait {
  clip-path: inset(0 0 30% 0);
}

.app-shell[data-card-feel="traditional"] .event-card__topline {
  position: absolute;
  top: 15px;
  right: auto;
  bottom: auto;
  left: 18px;
  z-index: 7;
  display: flex;
  flex-direction: row-reverse;
  gap: 11px;
  align-items: center;
  justify-content: flex-end;
  width: auto;
  height: 42px;
  padding: 0 14px;
  color: #17252b;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: .05em;
  background: #e5d7b1;
  border: 1px solid #c7b78b;
  border-radius: 2px;
  box-shadow: 0 2px 0 rgb(0 0 0 / 18%);
}

.app-shell[data-card-feel="traditional"] .event-card__topline span:last-child {
  font-size: 21px;
  font-weight: 780;
  line-height: 1;
  letter-spacing: -.03em;
}

.app-shell[data-card-feel="traditional"] .event-card__accent-field,
.app-shell[data-card-feel="traditional"] .event-card--portrait-right .event-card__accent-field,
.app-shell[data-card-feel="traditional"] .event-card--portrait-left .event-card__accent-field {
  inset: 57px auto 9px 9px;
  width: 11px;
  background: var(--club-accent);
  clip-path: none;
  opacity: .94;
}

.app-shell[data-card-feel="traditional"] .event-card__portrait,
.app-shell[data-card-feel="traditional"] .season-echo-card__portrait {
  top: 22px;
  right: auto;
  bottom: auto;
  left: 0;
  width: 120%;
  height: calc(112% - 28px);
  max-width: none;
  margin: 0;
  object-fit: contain;
  object-position: center top;
  border: 0;
  border-radius: 0;
  transform: none;
}

.app-shell[data-card-feel="traditional"] .event-card--portrait-right .event-card__portrait {
  right: auto;
  left: 0;
}

.app-shell[data-card-feel="traditional"] .event-card--portrait-left .event-card__portrait {
  right: auto;
  left: -20%;
}

.app-shell[data-card-feel="traditional"] .event-card__story,
.app-shell[data-card-feel="traditional"] .event-card--portrait-right .event-card__story,
.app-shell[data-card-feel="traditional"] .event-card--portrait-left .event-card__story {
  position: absolute;
  inset: auto 8px 8px 19px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: auto;
  height: 35%;
  min-height: 0;
  padding: 15px 19px 14px;
  color: #18272b;
  text-align: left;
  background: #e7d9b4;
  border: 1px solid #c8b98e;
  border-left: 0;
  border-radius: 0 24px 10px 0;
  box-shadow: 0 -2px 0 rgb(5 18 27 / 16%);
  transform: none;
}

.app-shell[data-card-feel="traditional"] .event-card .card-kicker {
  margin: 0 0 6px;
  color: #285172;
  font-size: 9.5px;
  font-weight: 720;
  line-height: 1.3;
  letter-spacing: .035em;
}

.app-shell[data-card-feel="traditional"] .event-card .card-title {
  margin: 0;
  color: #142226;
  font-size: clamp(20px, 5.9vw, 25px);
  font-weight: 760;
  line-height: 1.16;
  letter-spacing: .005em;
}

.app-shell[data-card-feel="traditional"] .event-card .card-copy {
  max-width: none;
  margin: 9px 0 0;
  color: #3c4948;
  font-size: clamp(11.5px, 3.15vw, 13.5px);
  line-height: 1.48;
}

.app-shell[data-card-feel="traditional"] .event-card--text-only .event-card__accent-field {
  inset: 57px auto 9px 9px;
  width: 11px;
  background: var(--club-accent);
  opacity: .7;
}

.app-shell[data-card-feel="traditional"] .event-card--text-only .event-card__story {
  inset: auto 8px 8px 19px;
  width: auto;
  height: 61%;
  padding: 22px 21px;
  background: #e7d9b4;
  border: 1px solid #c8b98e;
  border-left: 0;
  border-radius: 0 24px 10px 0;
  transform: none;
}

.app-shell[data-card-feel="traditional"] .season-deck-back {
  background: #102633;
  border: 1px solid #989275;
  border-radius: 14px;
  box-shadow:
    0 2px 0 rgb(230 212 164 / 24%),
    0 12px 24px rgb(0 0 0 / 32%);
}

.card-choice-tabs {
  inset: 0;
  overflow: hidden;
  border-radius: 0;
}

.card-choice-tab {
  top: 52.5%;
  gap: 4px;
  width: min(62%, 160px);
  max-width: none;
  min-height: 48px;
  padding: 9px 8px;
  overflow: hidden;
  color: #17252a;
  font-size: clamp(10.8px, 2.9vw, 11.5px);
  font-weight: 710;
  line-height: 1.28;
  background: #eadcb8;
  border: 1px solid #c7b78b;
  box-shadow: 0 4px 10px rgb(0 0 0 / 28%);
  visibility: hidden;
  opacity: 0;
  transition: none;
}

.card-choice-tab--left {
  left: 0;
  justify-content: flex-start;
  text-align: left;
  border-radius: 0 9px 9px 0;
  clip-path: inset(0 var(--choice-clip, 100%) 0 0);
  transform: translate3d(calc(var(--choice-offset, 10px) * -1), -50%, 0);
  transform-origin: left center;
}

.card-choice-tab--right {
  right: 0;
  justify-content: flex-end;
  text-align: right;
  border-radius: 9px 0 0 9px;
  clip-path: inset(0 0 0 var(--choice-clip, 100%));
  transform: translate3d(var(--choice-offset, 10px), -50%, 0);
  transform-origin: right center;
}

.event-card[data-preview-choice] .card-choice-tab.is-active {
  visibility: visible;
  opacity: var(--choice-progress, 0);
}

.event-card[data-preview-choice] .card-choice-tab--left.is-active {
  transform: translate3d(calc(var(--choice-offset, 10px) * -1), -50%, 0);
}

.event-card[data-preview-choice] .card-choice-tab--right.is-active {
  transform: translate3d(var(--choice-offset, 10px), -50%, 0);
}

.card-choice-tab__arrow {
  color: #285172;
  font-size: 15px;
  transition: transform 120ms cubic-bezier(.2, .82, .2, 1);
}

.card-choice-tab__label {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.event-card.is-choice-ready .card-choice-tab.is-active {
  border-color: #9f8758;
  box-shadow: 0 5px 13px rgb(0 0 0 / 36%);
}

.event-card.is-choice-ready .card-choice-tab--left.is-active .card-choice-tab__arrow {
  transform: translateX(2px);
}

.event-card.is-choice-ready .card-choice-tab--right.is-active .card-choice-tab__arrow {
  transform: translateX(-2px);
}

.app-shell[data-card-feel="traditional"] .commit-hint {
  bottom: max(16px, calc((100% - var(--card-height)) / 2 + 11px));
  color: #1d2a2d;
  background: #e5d7b1;
  border-color: #bdaa78;
  box-shadow: 0 3px 8px rgb(0 0 0 / 24%);
}

@media (max-height: 700px) {
  .app-shell[data-card-feel="traditional"] {
    --card-height: min(62dvh, 382px);
  }

  .status-header {
    padding-top: calc(7px + env(safe-area-inset-top));
    padding-bottom: 6px;
  }

  .status-header__meta {
    min-height: 28px;
    margin-bottom: 5px;
  }

  .screen-title {
    font-size: 15px;
  }

  .meter {
    min-height: 43px;
    padding: 2px 7px 4px;
  }

  .app-shell[data-card-feel="traditional"] .event-card__topline {
    top: 11px;
    left: 14px;
    height: 34px;
    padding-inline: 11px;
  }

  .app-shell[data-card-feel="traditional"] .event-card__topline span:last-child {
    font-size: 18px;
  }

  .app-shell[data-card-feel="traditional"] .event-card__accent-field,
  .app-shell[data-card-feel="traditional"] .event-card--portrait-right .event-card__accent-field,
  .app-shell[data-card-feel="traditional"] .event-card--portrait-left .event-card__accent-field {
    inset: 46px auto 7px 7px;
    width: 9px;
  }

  .app-shell[data-card-feel="traditional"] .event-card__portrait,
  .app-shell[data-card-feel="traditional"] .season-echo-card__portrait {
    top: 18px;
    height: calc(112% - 24px);
  }

  .app-shell[data-card-feel="traditional"] .event-card__story,
  .app-shell[data-card-feel="traditional"] .event-card--portrait-right .event-card__story,
  .app-shell[data-card-feel="traditional"] .event-card--portrait-left .event-card__story {
    inset: auto 7px 7px 16px;
    height: 43%;
    padding: 10px 15px 9px;
    border-radius: 0 18px 8px 0;
  }

  .app-shell[data-card-feel="traditional"] .event-card--text-only .event-card__story {
    inset: auto 7px 7px 16px;
    height: 66%;
    padding: 17px 16px;
  }

  .app-shell[data-card-feel="traditional"] .event-card .card-kicker {
    margin-bottom: 4px;
    font-size: 8.5px;
  }

  .app-shell[data-card-feel="traditional"] .event-card .card-title {
    font-size: clamp(17px, 5.3vw, 21px);
  }

  .app-shell[data-card-feel="traditional"] .event-card .card-copy {
    margin-top: 5px;
    font-size: clamp(10px, 3vw, 12px);
    line-height: 1.38;
  }

  .card-choice-tab {
    top: 50%;
    width: min(64%, 140px);
    max-width: none;
    min-height: 42px;
    padding: 7px 11px;
    font-size: 10.5px;
  }
}

@media (max-width: 355px) {
  .app-shell[data-card-feel="traditional"] {
    --card-width: min(70vw, 292px);
    --stack-x-gap: 4px;
  }

  .app-shell[data-card-feel="traditional"] .deck-stage {
    transform: translateX(8px);
  }

  .status-header {
    padding-inline: 10px;
  }

  .status-header__meta > div:first-child {
    gap: 8px;
  }

  .screen-title {
    font-size: 14px;
  }

  .season-counter {
    font-size: 8px;
  }

  .icon-button {
    padding-inline: 6px;
    font-size: 7px;
  }

  .meter {
    padding-inline: 5px;
  }

  .card-choice-tab {
    width: min(64%, 140px);
    max-width: none;
  }
}

/* Screenshot-only calibration: reproduces the 390×844 mobile CSS canvas in
 * the desktop QA browser without changing the production layout. */
.app-shell[data-qa-canvas="390x844"] {
  --card-width: 273px;
  --card-height: 520px;
  width: 390px;
  height: 844px;
  margin: 0;
}

.app-shell[data-qa-canvas="390x844"] .event-card .card-title {
  font-size: 23px;
}

.app-shell[data-qa-canvas="390x844"] .event-card .card-copy {
  font-size: 12.3px;
}

.app-shell[data-qa-canvas="390x844"] .card-choice-tab {
  font-size: 11.3px;
}

/*
 * V0.12 atmospheric swipe stage.
 * Opt-in only: ?visual=atmospheric&startCard=2
 * Reuses the exact NPC PNG, yearly room plate and existing gesture state
 * machine. This layer changes composition only.
 */
.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] {
  --card-width: min(78.5vw, 306px);
  --card-height: min(66dvh, 556px);
  --stack-gap: 7px;
  --stack-x-gap: 6px;
  background: #06131d;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .club-stage-bg {
  background-color: #06131d;
  filter: saturate(.72) brightness(.62);
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .club-stage-bg::after {
  background: rgb(3 13 22 / 30%);
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .deck-stage {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0 0 14px;
  transform: translateY(-10px);
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .card-stack {
  position: relative;
  width: var(--card-width);
  height: var(--card-height);
  touch-action: none;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card {
  overflow: visible;
  color: var(--chalk);
  background: transparent;
  border: 0;
  border-radius: 14px;
  box-shadow: none;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card__surface {
  inset: 0;
  overflow: hidden;
  background: rgb(5 23 35 / 76%);
  border: 1px solid rgb(148 180 188 / 28%);
  border-radius: inherit;
  box-shadow: 0 18px 46px rgb(0 0 0 / 38%);
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card__surface::after {
  display: none;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card.is-dragging .event-card__surface {
  border-color: rgb(148 196 199 / 42%);
  box-shadow: 0 23px 54px rgb(0 0 0 / 46%);
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-depth="0"] {
  --depth-opacity: 1;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .scenario-card[data-depth="1"] {
  --depth-opacity: 1;
  transform: translate3d(var(--stack-x-gap), var(--stack-gap), 0) scale(.986);
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .scenario-card[data-depth="2"] {
  --depth-opacity: 0;
  transform: translate3d(calc(var(--stack-x-gap) * 2), calc(var(--stack-gap) * 2), 0) scale(.972);
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-depth="1"] .event-card__surface {
  background: #0a2130;
  border-color: rgb(116 153 162 / 22%);
  box-shadow: 0 13px 30px rgb(0 0 0 / 28%);
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-depth="1"] .event-card__surface > * {
  visibility: hidden;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card__topline {
  display: none;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card__accent-field,
.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card--portrait-right .event-card__accent-field,
.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card--portrait-left .event-card__accent-field {
  inset: 0 -7% 0 auto;
  width: 58%;
  background: #164b55;
  clip-path: polygon(18% 5%, 100% 0, 100% 100%, 0 91%);
  opacity: .58;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card__portrait,
.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .season-echo-card__portrait {
  top: -16px;
  right: auto;
  bottom: auto;
  left: -24px;
  width: 456px;
  height: auto;
  max-width: none;
  margin: 0;
  object-fit: initial;
  object-position: initial;
  border: 0;
  border-radius: 0;
  filter: none;
  transform: none;
  image-rendering: pixelated;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card--portrait-right .event-card__portrait,
.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card--portrait-left .event-card__portrait {
  right: auto;
  left: -24px;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card__story,
.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card--portrait-right .event-card__story,
.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card--portrait-left .event-card__story {
  position: absolute;
  inset: auto 0 0;
  z-index: 6;
  display: block;
  width: auto;
  height: 39%;
  min-height: 0;
  padding: 49px 18px 16px;
  color: var(--chalk);
  text-align: left;
  background: rgb(3 15 24 / 92%);
  border: 0;
  border-top: 1px solid rgb(121 183 170 / 25%);
  border-radius: 0 0 13px 13px;
  box-shadow: none;
  transform: none;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card .card-kicker {
  margin: 0 0 7px;
  color: #79b7aa;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: .035em;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card .card-title {
  margin: 0;
  color: #edf2ee;
  font-size: 23px;
  font-weight: 720;
  line-height: 1.24;
  letter-spacing: .005em;
  text-wrap: balance;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card .card-copy {
  max-width: none;
  margin: 9px 0 0;
  color: rgb(218 227 225 / 84%);
  font-size: 13px;
  line-height: 1.52;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card--text-only .event-card__accent-field {
  inset: 0 -7% 0 auto;
  width: 58%;
  background: #164b55;
  opacity: .28;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card--text-only .event-card__story {
  inset: auto 0 0;
  width: auto;
  height: 48%;
  padding: 30px 20px 18px;
  background: rgb(3 15 24 / 94%);
  transform: none;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .card-choice-tabs {
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .card-choice-tab {
  top: 43%;
  gap: 5px;
  width: 148px;
  max-width: 58%;
  min-height: 48px;
  padding: 8px 10px;
  color: #e8f0ee;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
  background: #071c28;
  border: 1px solid rgb(121 183 170 / 36%);
  border-radius: 2px;
  box-shadow: 0 7px 18px rgb(0 0 0 / 32%);
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .card-choice-tab--left {
  border-left: 2px solid #79b7aa;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .card-choice-tab--right {
  border-right: 2px solid #79b7aa;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .card-choice-tab__arrow {
  color: #79b7aa;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .commit-hint {
  bottom: max(14px, calc((100% - var(--card-height)) / 2 + 5px));
  color: #dce9e6;
  background: #071c28;
  border-color: rgb(121 183 170 / 34%);
  box-shadow: 0 6px 16px rgb(0 0 0 / 28%);
}

@media (max-height: 700px) {
  .app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] {
    --card-height: min(66dvh, 390px);
  }

  .app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card__portrait,
  .app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .season-echo-card__portrait,
  .app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card--portrait-right .event-card__portrait,
  .app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card--portrait-left .event-card__portrait {
    top: -12px;
    left: -31px;
    width: 380px;
  }

  .app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card__story,
  .app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card--portrait-right .event-card__story,
  .app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card--portrait-left .event-card__story {
    height: 45%;
    padding: 28px 14px 11px;
  }

  .app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card .card-kicker {
    margin-bottom: 4px;
    font-size: 9px;
  }

  .app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card .card-title {
    font-size: 18px;
  }

  .app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card .card-copy {
    margin-top: 5px;
    font-size: 10.5px;
    line-height: 1.38;
  }
}

.app-shell[data-qa-canvas="390x844"][data-visual-mode="atmospheric"][data-card-feel="traditional"] {
  --card-width: 306px;
  --card-height: 556px;
}

.app-shell[data-qa-canvas="390x844"][data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card .card-title {
  font-size: 23px;
}

.app-shell[data-qa-canvas="390x844"][data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card .card-copy {
  font-size: 13px;
}

/*
 * V0.13 reading-density correction.
 * The upper-left illustration space now carries identity and event title;
 * the lower panel is reserved for the event fact and the speaker's note.
 */
.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id]:not(.event-card--text-only) {
  --portrait-top: -34px;
  --portrait-left: -45px;
  --portrait-width: 530px;
  --portrait-top-compact: -12px;
  --portrait-left-compact: -31px;
  --portrait-width-compact: 380px;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id][data-portrait-preset="fangjingzhi"] {
  --portrait-top: -26px;
  --portrait-left: -68px;
  --portrait-top-compact: -8px;
  --portrait-left-compact: -49px;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id][data-portrait-preset="luheng"],
.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id][data-composition="gesture-bridge"] {
  --portrait-top: -5px;
  --portrait-left: -34px;
  --portrait-top-compact: -4px;
  --portrait-left-compact: -24px;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id][data-composition="left-anchor"] {
  --portrait-left: -145px;
  --portrait-left-compact: -104px;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id][data-composition="evidence-close"] {
  --portrait-top: -48px;
  --portrait-top-compact: -20px;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id]:not(.event-card--text-only) .event-card__portrait,
.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id].event-card--portrait-right .event-card__portrait,
.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id].event-card--portrait-left .event-card__portrait {
  top: var(--portrait-top);
  left: var(--portrait-left);
  width: var(--portrait-width);
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id]:not(.event-card--text-only) .event-card__story {
  inset: 0;
  width: auto;
  height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: inherit;
  pointer-events: none;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id]:not(.event-card--text-only) .card-kicker {
  position: absolute;
  top: 22px;
  left: 18px;
  width: 142px;
  margin: 0;
  padding-left: 8px;
  color: var(--story-highlight, #82b9ae);
  border-left: 2px solid var(--story-highlight, #79b7aa);
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: .035em;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id]:not(.event-card--text-only) .card-title {
  position: absolute;
  top: 75px;
  left: 18px;
  width: 142px;
  margin: 0;
  color: #edf2ee;
  font-size: 26px;
  font-weight: 740;
  line-height: 1.17;
  letter-spacing: .005em;
  text-wrap: balance;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id][data-composition="left-anchor"] .card-kicker,
.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id][data-composition="left-anchor"] .card-title {
  right: 18px;
  left: auto;
  width: 138px;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id][data-portrait-preset="peiyan"][data-composition="left-anchor"] .card-kicker,
.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id][data-portrait-preset="peiyan"][data-composition="left-anchor"] .card-title {
  right: 12px;
  width: 132px;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id][data-title-variant="compact"] .card-title {
  top: 72px;
  font-size: 22px;
  line-height: 1.18;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id]:not(.event-card--text-only) .card-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 206px;
  margin: 0;
  padding: 17px 20px 16px;
  color: #e3ebe8;
  background: rgb(3 15 24 / 95%);
  border-top: 1px solid rgb(121 183 170 / 30%);
  border-radius: 0 0 13px 13px;
  font-size: 14.5px;
  line-height: 1.58;
  text-wrap: pretty;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id]:not(.event-card--text-only) .card-copy__lead {
  display: block;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id]:not(.event-card--text-only) .card-copy__focus {
  display: inline-block;
  color: var(--story-highlight, #8dc8bb);
  font-size: 22px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id]:not(.event-card--text-only) .card-copy__note {
  display: block;
  margin-top: 12px;
  padding-top: 10px;
  color: rgb(211 224 220 / 80%);
  border-top: 1px solid rgb(121 183 170 / 20%);
  font-size: 14px;
  line-height: 1.55;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id]:not(.event-card--text-only) .card-copy__nowrap {
  white-space: nowrap;
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] {
  --card-width: min(84vw, 328px);
  --card-height: min(69dvh, 582px);
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .deck-stage {
  transform: translateY(-20px);
}

.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id]:not(.event-card--text-only) .event-card__accent-field,
.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id].event-card--portrait-right .event-card__accent-field,
.app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id].event-card--portrait-left .event-card__accent-field {
  bottom: 206px;
  width: 68%;
  background: var(--club-accent, #164b55);
  opacity: .48;
}

@media (max-height: 700px) {
  .app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] {
    --card-width: min(78.5vw, 306px);
    --card-height: min(66dvh, 390px);
  }

  .app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id]:not(.event-card--text-only) .event-card__portrait,
  .app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id].event-card--portrait-right .event-card__portrait,
  .app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id].event-card--portrait-left .event-card__portrait {
    top: var(--portrait-top-compact);
    left: var(--portrait-left-compact);
    width: var(--portrait-width-compact);
  }

  .app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id]:not(.event-card--text-only) .card-kicker {
    top: 13px;
    left: 14px;
    font-size: 9px;
  }

  .app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id]:not(.event-card--text-only) .card-title {
    top: 45px;
    left: 14px;
    width: 132px;
    font-size: 18px;
  }

  .app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id][data-composition="left-anchor"] .card-kicker,
  .app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id][data-composition="left-anchor"] .card-title {
    right: 14px;
    left: auto;
    width: 132px;
  }

  .app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id][data-title-variant="compact"] .card-title {
    top: 43px;
    font-size: 16.5px;
  }

  .app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id]:not(.event-card--text-only) .card-copy {
    min-height: 138px;
    padding: 11px 14px 12px;
    font-size: 11.5px;
    line-height: 1.42;
  }

  .app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id]:not(.event-card--text-only) .card-copy__focus {
    font-size: 16px;
  }

  .app-shell[data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id]:not(.event-card--text-only) .card-copy__note {
    margin-top: 6px;
    padding-top: 6px;
    font-size: 10.5px;
    line-height: 1.4;
  }
}

.app-shell[data-qa-canvas="390x844"][data-visual-mode="atmospheric"][data-card-feel="traditional"] {
  --card-width: 328px;
  --card-height: 582px;
}

/*
 * V0.16 optional hybrid pixel typography and pixel-v2 art calibration.
 * Opt in with: ?visual=atmospheric&npcArt=pixel-v2&type=hybrid-pixel
 * Pixel display type is restricted to identity and counters. Event titles
 * and long copy intentionally remain in the modern CJK sans stack: the
 * title must carry the decision, while pixel type supplies world identity.
 */
.app-shell[data-type-mode="hybrid-pixel"] .screen-title,
.app-shell[data-type-mode="hybrid-pixel"] .season-counter,
.app-shell[data-type-mode="hybrid-pixel"] .turn-counter,
.app-shell[data-type-mode="hybrid-pixel"] .event-card__topline,
.app-shell[data-type-mode="hybrid-pixel"] .card-kicker {
  font-family: "Fusion Pixel 12 Proportional", "PingFang SC", "Noto Sans SC", sans-serif;
  font-style: normal;
  font-synthesis: none;
  -webkit-font-smoothing: none;
  text-rendering: geometricPrecision;
}

.app-shell[data-type-mode="hybrid-pixel"] .screen-title {
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .04em;
  text-shadow: 2px 2px 0 rgb(0 0 0 / 38%);
}

.app-shell[data-type-mode="hybrid-pixel"] .season-counter,
.app-shell[data-type-mode="hybrid-pixel"] .turn-counter {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .08em;
}

.app-shell[data-type-mode="hybrid-pixel"][data-visual-mode="atmospheric"] .event-card[data-card-id]:not(.event-card--text-only) .card-kicker {
  padding-left: 10px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: .04em;
}

.app-shell[data-npc-art="pixel-v2"][data-visual-mode="atmospheric"] .event-card[data-card-id]:not(.event-card--text-only) {
  --portrait-width: 512px;
  --portrait-width-compact: 384px;
}

@media (max-height: 700px) {
  .app-shell[data-type-mode="hybrid-pixel"] .screen-title {
    font-size: 20px;
  }

  .app-shell[data-type-mode="hybrid-pixel"][data-visual-mode="atmospheric"] .event-card[data-card-id]:not(.event-card--text-only) .card-kicker {
    font-size: 9px;
  }

  .app-shell[data-npc-art="pixel-v2"][data-visual-mode="atmospheric"][data-card-feel="traditional"] .event-card[data-card-id][data-composition="left-anchor"] {
    --portrait-left-compact: -132px;
  }
}

/*
 * V0.18 opt-in player customizer.
 * The editor is an explicit internal opt-in. The older
 * playerPresence=A|B|C parameter remains an internal QA control, not a player
 * choice. Current avatar images are working interaction assets.
 */
.player-moment-layer[hidden],
.season-player-passport[hidden],
.transfer-player-identity[hidden] {
  display: none !important;
}

.gesture-hint {
  color: rgb(238 240 232 / 72%);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .04em;
}

.player-setup-dialog {
  width: min(calc(100% - 12px), 440px);
  max-width: none;
  max-height: calc(100dvh - 12px);
  padding: 0;
  color: var(--chalk);
  background: transparent;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 24px 72px rgb(0 0 0 / 58%);
}

.player-setup-dialog::backdrop {
  background: rgb(2 9 14 / 88%);
  backdrop-filter: blur(4px);
}

.player-setup-dialog__surface {
  max-height: calc(100dvh - 12px);
  overflow: auto;
  padding: 15px;
  background: #071923;
  border: 1px solid rgb(182 165 120 / 42%);
  border-radius: 16px;
  overscroll-behavior: contain;
}

.player-setup-dialog__header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.player-setup-dialog__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #8dc8bb;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .13em;
}

.player-setup-dialog h2,
.player-setup-dialog p,
.player-setup-dialog figure {
  margin-top: 0;
}

.player-setup-dialog h2 {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.25;
}

.player-setup-dialog__badge {
  flex: 0 0 auto;
  padding: 5px 7px;
  color: #d9c88e;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  border: 1px solid rgb(217 200 142 / 34%);
  border-radius: 999px;
}

.player-setup-dialog__explanation {
  margin: 10px 0;
  color: rgb(238 240 232 / 75%);
  font-size: 10.5px;
  line-height: 1.5;
}

.player-avatar-preview {
  display: grid;
  grid-template-columns: minmax(112px, 42%) minmax(0, 1fr);
  min-height: 168px;
  margin: 0 0 10px;
  overflow: hidden;
  background: #0b2633;
  border: 1px solid rgb(141 200 187 / 20%);
  border-radius: 12px;
}

.player-avatar-preview__stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #0d3340 0%, #09232e 100%);
}

.player-avatar-preview__stage img {
  position: absolute;
  inset: 5px 7px 9px;
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  object-fit: contain;
  object-position: center bottom;
  image-rendering: pixelated;
  pointer-events: none;
  -webkit-user-drag: none;
}

.player-avatar-preview__baseline {
  position: absolute;
  right: 14px;
  bottom: 8px;
  left: 14px;
  height: 1px;
  background: rgb(217 200 142 / 42%);
}

.player-avatar-preview figcaption {
  display: flex;
  min-width: 0;
  padding: 13px 12px;
  flex-direction: column;
  justify-content: center;
}

.player-avatar-preview figcaption strong,
.player-avatar-preview figcaption span,
.player-avatar-preview figcaption small {
  display: block;
}

.player-avatar-preview figcaption strong {
  color: #f2ead2;
  font-size: 14px;
  line-height: 1.35;
}

.player-avatar-preview figcaption span {
  margin-top: 5px;
  color: #8dc8bb;
  font-size: 11px;
  font-weight: 700;
}

.player-avatar-preview figcaption small {
  margin-top: 9px;
  color: rgb(238 240 232 / 56%);
  font-size: 9px;
  line-height: 1.45;
}

.player-setup-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 9px;
  padding: 3px;
  background: rgb(2 11 16 / 58%);
  border: 1px solid rgb(151 183 188 / 14%);
  border-radius: 10px;
}

.player-setup-tabs button {
  min-width: 0;
  min-height: 38px;
  padding: 0 5px;
  color: rgb(238 240 232 / 58%);
  font-size: 10px;
  font-weight: 760;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
}

.player-setup-tabs button[aria-selected="true"] {
  color: #071923;
  background: #d9c88e;
  border-color: #d9c88e;
}

.player-setup-panels {
  min-height: 164px;
}

.player-setup-panel[hidden] {
  display: none !important;
}

.player-setup-panel {
  min-height: 164px;
  padding: 11px;
  background: rgb(11 38 51 / 72%);
  border: 1px solid rgb(151 183 188 / 16%);
  border-radius: 10px;
}

.player-physical-control + .player-physical-control {
  margin-top: 11px;
}

.player-physical-control__heading,
.player-setup-panel__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.player-physical-control__heading label,
.player-setup-panel__heading strong {
  color: #edf2ee;
  font-size: 10.5px;
  font-weight: 760;
}

.player-physical-control__heading output,
.player-setup-panel__heading span {
  color: #d9c88e;
  font-size: 10px;
  font-weight: 760;
  text-align: right;
}

.player-range-control {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: center;
  margin-top: 5px;
}

.player-range-control button {
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  color: #d9c88e;
  font-size: 20px;
  line-height: 1;
  background: #071923;
  border: 1px solid rgb(217 200 142 / 32%);
  border-radius: 8px;
  cursor: pointer;
}

.player-range-control button:disabled {
  color: rgb(238 240 232 / 25%);
  border-color: rgb(238 240 232 / 10%);
  cursor: default;
}

.player-range-control input[type="range"] {
  width: 100%;
  accent-color: #d9c88e;
}

.player-range-control__limits {
  display: flex;
  margin: 1px 46px 0;
  justify-content: space-between;
  color: rgb(238 240 232 / 38%);
  font-size: 8px;
}

.player-skin-tone-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin-top: 14px;
}

.player-skin-tone {
  position: relative;
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 62px;
  padding: 5px 2px;
  place-items: center;
  color: rgb(238 240 232 / 62%);
  font-size: 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
}

.player-skin-tone__swatch {
  display: block;
  width: 34px;
  height: 34px;
  background: var(--skin-tone);
  border: 2px solid rgb(255 255 255 / 18%);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgb(0 0 0 / 26%);
}

.player-skin-tone.is-selected,
.player-hairstyle.is-selected {
  color: #f2ead2;
  background: rgb(141 200 187 / 8%);
  border-color: #d9c88e;
}

.player-skin-tone.is-selected .player-skin-tone__swatch {
  border-color: #f2ead2;
  box-shadow: 0 0 0 2px #071923, 0 0 0 4px #d9c88e;
}

.player-hairstyle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 9px;
}

.player-hairstyle {
  min-width: 0;
  min-height: 116px;
  padding: 5px;
  overflow: hidden;
  color: rgb(238 240 232 / 64%);
  font-size: 8.5px;
  background: #071923;
  border: 1px solid rgb(151 183 188 / 20%);
  border-radius: 9px;
  cursor: pointer;
}

.player-hairstyle img {
  display: block;
  width: 100%;
  height: 84px;
  object-fit: cover;
  object-position: 50% 4%;
  image-rendering: pixelated;
  pointer-events: none;
  -webkit-user-drag: none;
}

.player-hairstyle span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-setup-panel__note {
  margin: 10px 0 0;
  color: rgb(238 240 232 / 60%);
  font-size: 8.5px;
  line-height: 1.45;
}

.player-setup-profile-error {
  margin: 9px 0 0;
  color: #f2c3aa;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

.player-setup-profile-error[hidden] {
  display: none !important;
}

.player-setup-dialog__field input[aria-invalid="true"] {
  border-color: #e7a17d;
  box-shadow: 0 0 0 2px rgb(231 161 125 / 18%);
}

.player-setup-dialog__fields {
  display: grid;
  grid-template-columns: 1fr 86px;
  gap: 8px;
}

.player-setup-dialog__field {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: rgb(238 240 232 / 72%);
  font-size: 9px;
  font-weight: 650;
}

.player-setup-dialog__field input {
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  color: var(--chalk);
  background: #0b2633;
  border: 1px solid rgb(151 183 188 / 28%);
  border-radius: 8px;
}

.player-setup-dialog__field--locked {
  grid-column: 1 / -1;
  display: flex;
  min-height: 36px;
  padding: 8px 10px;
  align-items: center;
  justify-content: space-between;
  background: rgb(141 200 187 / 7%);
  border: 1px solid rgb(141 200 187 / 15%);
  border-radius: 8px;
}

.player-setup-dialog__field--locked strong {
  color: rgb(238 240 232 / 82%);
  font-size: 9px;
}

.player-setup-dialog__notice {
  margin: 8px 0;
  color: rgb(238 240 232 / 55%);
  font-size: 9.5px;
  line-height: 1.48;
}

.player-setup-dialog__actions {
  position: sticky;
  z-index: 3;
  bottom: -15px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 8px;
  margin: 0 -15px -15px;
  padding: 8px 15px max(15px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgb(7 25 35 / 78%), #071923 26%);
}

.player-setup-dialog__default,
.player-setup-dialog__confirm {
  min-height: 48px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 9px;
  cursor: pointer;
}

.player-setup-dialog__default {
  color: #d9c88e;
  background: transparent;
  border: 1px solid rgb(217 200 142 / 42%);
}

.player-setup-dialog__confirm {
  color: #071923;
  background: #d9c88e;
  border: 1px solid #d9c88e;
}

.player-setup-dialog button:focus-visible,
.player-setup-dialog input:focus-visible {
  outline: 2px solid #8dc8bb;
  outline-offset: 2px;
}

.app-shell[data-player-customizer="active"] .deck-stage {
  z-index: 2;
}

.player-moment-layer {
  position: absolute;
  z-index: 3;
  bottom: 8px;
  left: 50%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  width: min(52vw, 176px);
  height: 36px;
  overflow: hidden;
  background: linear-gradient(90deg, rgb(5 25 35 / 84%), rgb(5 25 35 / 12%));
  border-left: 2px solid rgb(217 200 142 / 72%);
  transform: translateX(-50%);
  pointer-events: none;
}

.player-moment-layer__image {
  width: 34px;
  height: 52px;
  object-fit: cover;
  object-position: 50% 6%;
  image-rendering: pixelated;
  opacity: .9;
  filter: saturate(.82) brightness(.9);
}

.player-moment-layer__label {
  display: block;
  overflow: hidden;
  min-width: 0;
  padding: 0 7px;
  align-self: center;
  color: #d9c88e;
  font-size: 9.5px;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgb(0 0 0 / 72%);
  white-space: nowrap;
}

.season-player-passport {
  position: absolute;
  z-index: 5;
  top: 7%;
  right: 8%;
  left: 8%;
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  height: 47%;
  overflow: hidden;
  color: #edf2ee;
  background: rgb(5 25 35 / 94%);
  border: 1px solid rgb(217 200 142 / 44%);
  border-radius: 9px;
}

.season-player-passport__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  image-rendering: pixelated;
  background: #0b2b37;
}

.season-player-passport__copy {
  display: flex;
  min-width: 0;
  padding: 12px 10px;
  flex-direction: column;
  justify-content: center;
}

.season-player-passport__name,
.season-player-passport__meta,
.season-player-passport__appearance,
.season-player-passport__copy em {
  display: block;
}

.season-player-passport__name {
  color: #f2ead2;
  font-size: 13px;
  line-height: 1.3;
}

.season-player-passport__meta {
  margin-top: 4px;
  color: #8dc8bb;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
}

.season-player-passport__appearance {
  margin-top: 7px;
  color: rgb(238 240 232 / 65%);
  font-size: 8.5px;
  font-style: normal;
  line-height: 1.45;
}

.season-player-passport__copy em {
  margin-top: 8px;
  padding-top: 7px;
  color: rgb(238 240 232 / 52%);
  font-size: 8.5px;
  font-style: normal;
  line-height: 1.4;
  border-top: 1px solid rgb(238 240 232 / 12%);
}

.season-end-card.has-player-passport .season-end-card__body,
.app-shell[data-visual-mode="atmospheric"] .season-end-card.has-player-passport .season-end-card__body {
  top: auto;
  right: auto;
  bottom: 7%;
  left: 50%;
  width: 82%;
  height: auto;
  padding: 0 0 0 12px;
  background: transparent;
  border-top: 0;
  transform: translateX(-50%);
}

.season-end-card.has-player-passport .card-kicker {
  margin-bottom: 4px;
  font-size: 9px;
}

.season-end-card.has-player-passport .card-title {
  font-size: 19px;
}

.season-end-card.has-player-passport .card-copy {
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.4;
}

.transfer-player-identity {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 13px 0 0;
  padding: 8px 10px;
  background: rgb(141 200 187 / 7%);
  border: 1px solid rgb(141 200 187 / 18%);
  border-radius: 10px;
}

.transfer-player-identity img {
  width: 54px;
  height: 66px;
  object-fit: contain;
  object-position: center bottom;
  image-rendering: pixelated;
}

.transfer-player-identity p,
.transfer-player-identity strong,
.transfer-player-identity span,
.transfer-player-identity small {
  display: block;
  margin: 0;
}

.transfer-player-identity strong {
  color: #f2ead2;
  font-size: 12px;
}

.transfer-player-identity span {
  margin-top: 3px;
  color: #8dc8bb;
  font-size: 9px;
}

.transfer-player-identity small {
  margin-top: 5px;
  color: rgb(238 240 232 / 58%);
  font-size: 9px;
  line-height: 1.4;
}

@media (max-height: 700px) {
  .player-setup-dialog__surface {
    padding: 12px;
  }

  .player-setup-dialog__explanation {
    margin-block: 8px;
    font-size: 10px;
    line-height: 1.42;
  }

  .player-avatar-preview {
    grid-template-columns: 38% minmax(0, 1fr);
    min-height: 128px;
    margin-bottom: 7px;
  }

  .player-avatar-preview figcaption {
    padding: 9px;
  }

  .player-avatar-preview figcaption small {
    margin-top: 5px;
    font-size: 8px;
  }

  .player-setup-tabs {
    margin-bottom: 6px;
  }

  .player-setup-tabs button {
    min-height: 34px;
  }

  .player-setup-panels,
  .player-setup-panel {
    min-height: 146px;
  }

  .player-setup-panel {
    padding: 8px;
  }

  .player-hairstyle {
    min-height: 100px;
  }

  .player-hairstyle img {
    height: 68px;
  }

  .player-setup-dialog__fields {
    gap: 6px;
  }

  .player-setup-dialog__field input {
    min-height: 40px;
  }

  .player-setup-dialog__field--locked {
    min-height: 32px;
    padding-block: 6px;
  }

  .player-setup-dialog__notice {
    margin-block: 7px;
    font-size: 8.5px;
  }

  .player-setup-dialog__actions {
    bottom: -12px;
    margin: 0 -12px -12px;
    padding: 7px 12px max(12px, env(safe-area-inset-bottom));
  }

  .player-setup-dialog__default,
  .player-setup-dialog__confirm {
    min-height: 44px;
  }

  .player-moment-layer {
    bottom: 5px;
    grid-template-columns: 32px minmax(0, 1fr);
    width: 160px;
    height: 34px;
  }

  .player-moment-layer__image {
    width: 32px;
  }

  .season-player-passport__copy {
    padding: 7px;
  }

  .season-player-passport__appearance,
  .season-player-passport__copy em {
    display: none;
  }
}

@media (max-width: 355px) {
  .player-setup-dialog__surface {
    padding-inline: 11px;
  }

  .player-avatar-preview {
    grid-template-columns: 42% minmax(0, 1fr);
  }

  .player-avatar-preview figcaption {
    padding-inline: 8px;
  }

  .player-avatar-preview figcaption small {
    font-size: 7.7px;
  }

  .player-skin-tone-grid,
  .player-hairstyle-grid {
    gap: 4px;
  }

  .player-skin-tone__swatch {
    width: 30px;
    height: 30px;
  }

  .player-hairstyle {
    padding-inline: 3px;
  }

  .player-setup-dialog__actions {
    margin-inline: -11px;
    padding-inline: 11px;
  }

  .season-player-passport {
    right: 6%;
    left: 6%;
    grid-template-columns: 40% minmax(0, 1fr);
  }
}

.faceted-card-back {
  display: none;
}

.asset-ready-gate {
  position: absolute;
  z-index: 80;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: #e7ece7;
  background: #04131b;
  opacity: 1;
  transition: opacity 150ms ease;
}

.asset-ready-gate span {
  font-size: 13px;
  font-weight: 760;
  letter-spacing: .12em;
}

.asset-ready-gate small {
  color: rgb(200 211 206 / 58%);
  font-size: 9px;
  letter-spacing: .08em;
}

.asset-ready-gate[hidden] {
  display: none;
}

.app-shell[data-boot-state="ready"] .asset-ready-gate {
  opacity: 0;
  pointer-events: none;
}

/*
 * Integrated MVP — V4 faceted portrait card + "牌影回声".
 * This is the default player presentation. The previous programme-card skin
 * remains available with `?visual=club-programme` for regression comparison.
 * Gesture thresholds and the event 12 -> season echo -> season end flow stay
 * in the existing app.js state machine.
 */
.app-shell[data-visual-mode="faceted-echo"] {
  --faceted-safe-top: env(safe-area-inset-top, 0px);
  --faceted-ink-980: #020d13;
  --faceted-ink-950: #04131b;
  --faceted-ink-920: #061a23;
  --faceted-ink-880: #092731;
  --faceted-ink-820: #103640;
  --faceted-teal-500: #5baaa6;
  --faceted-teal-300: #a0cec5;
  --faceted-paper-100: #f0f3ed;
  --faceted-paper-300: #c8d3ce;
  --faceted-old-gold: #c6a25d;
  --faceted-hud-height: 100px;
  --faceted-stack-top: 139px;
  --card-width: 306px;
  --card-height: calc(var(--card-width) * 1.5);
  --faceted-card-scale: .425;
  --stack-x-gap: 8px;
  --stack-y-gap: 9px;
  --stack-third-x: 15px;
  --stack-third-y: 18px;
  --stack-rotation-next: .72deg;
  --stack-rotation-third: 1.55deg;
  --faceted-back-inset: 7px;
  --faceted-back-line: 8px;
  background: var(--faceted-ink-950);
  border-inline-color: rgb(160 206 197 / 8%);
}

.app-shell[data-visual-mode="faceted-echo"] .club-stage-bg {
  inset: 0;
  background-color: var(--faceted-ink-950);
  background-image:
    var(--club-stage-image, none),
    radial-gradient(circle at 22% 26%, rgb(62 122 125 / 22%), transparent 28%),
    radial-gradient(circle at 80% 68%, rgb(49 94 104 / 16%), transparent 34%),
    linear-gradient(155deg, #071b24 0%, #04131b 52%, #061922 100%);
  background-position: var(--club-stage-focal-position, 50% 50%);
  background-size: cover;
  filter: none;
  transform: none;
}

.app-shell[data-visual-mode="faceted-echo"] .club-stage-bg::before,
.app-shell[data-visual-mode="faceted-echo"] .club-stage-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.app-shell[data-visual-mode="faceted-echo"] .club-stage-bg::before {
  background: linear-gradient(180deg, rgb(1 9 14 / 12%), rgb(1 9 14 / 34%));
}

.app-shell[data-visual-mode="faceted-echo"] .club-stage-bg::after {
  background: transparent;
  box-shadow: inset 0 0 84px rgb(0 0 0 / 38%);
}

.app-shell[data-visual-mode="faceted-echo"][data-club-stage-overlay="early-morning"] .club-stage-bg::after {
  background: linear-gradient(180deg, rgb(79 112 111 / 8%), rgb(1 10 15 / 27%));
}

.app-shell[data-visual-mode="faceted-echo"][data-club-stage-overlay="rainy-evening"] .club-stage-bg::after {
  background: linear-gradient(180deg, rgb(7 22 30 / 22%), rgb(1 8 13 / 42%));
}

.app-shell[data-visual-mode="faceted-echo"][data-club-stage-overlay="night"] .club-stage-bg::after {
  background: linear-gradient(180deg, rgb(1 7 12 / 34%), rgb(0 5 9 / 55%));
}

.app-shell[data-visual-mode="faceted-echo"] .status-header {
  z-index: 30;
  box-sizing: border-box;
  height: calc(var(--faceted-hud-height) + var(--faceted-safe-top));
  padding: calc(4px + var(--faceted-safe-top)) 14px 4px;
  background: linear-gradient(180deg, rgb(2 12 18 / 97%), rgb(3 15 22 / 82%));
  border-bottom-color: rgb(139 186 181 / 15%);
  backdrop-filter: blur(5px);
}

.app-shell[data-visual-mode="faceted-echo"] .status-header__meta {
  min-height: 25px;
  margin-bottom: 1px;
}

.app-shell[data-visual-mode="faceted-echo"] .eyebrow,
.app-shell[data-visual-mode="faceted-echo"] .turn-counter {
  display: none;
}

.app-shell[data-visual-mode="faceted-echo"] .screen-title {
  font-size: 15px;
}

.app-shell[data-visual-mode="faceted-echo"] .season-counter {
  font-size: 8px;
}

.app-shell[data-visual-mode="faceted-echo"] .icon-button {
  min-height: 28px;
  padding-inline: 7px;
  font-size: 9.5px;
}

.app-shell[data-visual-mode="faceted-echo"] .icon-button--square {
  width: 28px;
  min-width: 28px;
  font-size: 13px;
}

.app-shell[data-visual-mode="faceted-echo"] .meter {
  min-height: 38px;
  padding: 1px 6px 3px;
}

.app-shell[data-visual-mode="faceted-echo"] .meter__top {
  min-height: 14px;
  gap: 2px;
}

.app-shell[data-visual-mode="faceted-echo"] .meter__icon-field {
  position: relative;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  isolation: isolate;
}

.app-shell[data-visual-mode="faceted-echo"] .meter__icon-field::before {
  position: absolute;
  inset: -2px;
  z-index: -1;
  content: "";
  background: color-mix(in srgb, var(--meter-color) 27%, rgb(8 31 39 / 73%));
  clip-path: polygon(0 22%, 22% 0, 100% 0, 100% 78%, 78% 100%, 0 100%);
  opacity: 0;
  transform: scale(.78);
  transition:
    opacity 150ms ease,
    transform 180ms cubic-bezier(.22, 1, .36, 1);
}

.app-shell[data-visual-mode="faceted-echo"] .meter__icon {
  width: 16px;
  height: 16px;
  overflow: visible;
  fill: currentColor;
  stroke: none;
}

.app-shell[data-visual-mode="faceted-echo"] .meter__value {
  font-size: 10.5px;
  font-weight: 700;
}

.app-shell[data-visual-mode="faceted-echo"] .meter__label {
  margin-top: 0;
  font-size: 9.5px;
  font-weight: 620;
  line-height: 1.1;
}

.app-shell[data-visual-mode="faceted-echo"] .meter__track {
  height: 2px;
  margin-top: 2px;
}

.app-shell[data-visual-mode="faceted-echo"] .meter.is-preview {
  background: transparent;
  border-color: rgb(168 196 207 / 12%);
  transform: none;
}

.app-shell[data-visual-mode="faceted-echo"] .meter.is-preview .meter__icon-field::before {
  opacity: 0;
}

.app-shell[data-visual-mode="faceted-echo"] .meter__icon-field::after {
  position: absolute;
  top: -4px;
  right: -5px;
  width: 6px;
  height: 6px;
  border: 0;
  border-radius: 50%;
  background: var(--meter-color);
  box-shadow: 0 0 0 2px rgb(3 15 22 / 92%), 0 0 0 3px color-mix(in srgb, var(--meter-color) 30%, transparent);
  content: "";
  opacity: 0;
  transform: scale(.55);
  transition: opacity 120ms ease, transform 150ms ease;
}

.app-shell[data-visual-mode="faceted-echo"] .meter.is-preview .meter__icon-field::after {
  opacity: 1;
  transform: scale(1);
}

.app-shell[data-visual-mode="faceted-echo"] .meter.is-preview .meter__icon,
.app-shell[data-visual-mode="faceted-echo"] .meter.is-preview .meter__label {
  color: var(--faceted-paper-100);
}

.app-shell[data-visual-mode="faceted-echo"] .play-area {
  position: static;
  overflow: visible;
}

.app-shell[data-visual-mode="faceted-echo"] .deck-stage {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  transform: none;
}

.app-shell[data-visual-mode="faceted-echo"] .card-stack {
  position: absolute;
  top: calc(var(--faceted-stack-top) + var(--faceted-safe-top));
  left: calc(50% - var(--card-width) / 2 - 5px);
  width: var(--card-width);
  height: var(--card-height);
  touch-action: none;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id] {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: var(--faceted-paper-100);
  background: transparent;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
  opacity: 1;
  isolation: isolate;
  transform-origin: 50% 82%;
  will-change: transform;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id]::before,
.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id]::after,
.app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id])::before,
.app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id])::after {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: 10px;
  pointer-events: none;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id]::before,
.app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id])::before {
  z-index: -2;
  background:
    linear-gradient(135deg, #153a43 0%, #09232d 46%, #03131b 100%);
  box-shadow:
    0 18px 30px rgb(0 0 0 / 42%),
    0 5px 9px rgb(0 0 0 / 54%);
  transform: translate3d(8px, 11px, 0);
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id]::after,
.app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id])::after {
  z-index: -1;
  background: #0b2a34;
  border: 1px solid rgb(198 162 93 / 42%);
  box-shadow: inset -1px -1px 0 rgb(127 190 183 / 26%);
  transform: translate3d(3px, 4px, 0);
}

/*
 * Only the top card carries the full double-rim treatment. Lower cards need
 * enough mass to read as a stack, not three repeated metallic frames.
 */
.app-shell[data-visual-mode="faceted-echo"] .event-card[data-depth="1"]::before {
  opacity: .28;
  box-shadow: 0 8px 16px rgb(0 0 0 / 24%);
  transform: translate3d(4px, 5px, 0);
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-depth="1"]::after,
.app-shell[data-visual-mode="faceted-echo"] .event-card[data-depth="2"]::before,
.app-shell[data-visual-mode="faceted-echo"] .event-card[data-depth="2"]::after,
.app-shell[data-visual-mode="faceted-echo"] .event-card[data-depth="3"]::before,
.app-shell[data-visual-mode="faceted-echo"] .event-card[data-depth="3"]::after {
  display: none;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id][data-depth="0"] {
  z-index: 3;
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id][data-depth="1"] {
  z-index: 2;
  transform: translate3d(var(--stack-x-gap), var(--stack-y-gap), 0) rotate(var(--stack-rotation-next)) scale(1);
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id][data-depth="2"] {
  z-index: 1;
  transform:
    translate3d(var(--stack-third-x), var(--stack-third-y), 0)
    rotate(var(--stack-rotation-third))
    scale(1);
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id][data-depth="3"] {
  z-index: 0;
  visibility: visible;
  opacity: .001;
  pointer-events: none;
  transform:
    translate3d(var(--stack-third-x), var(--stack-third-y), 0)
    rotate(var(--stack-rotation-third))
    scale(1);
}

.app-shell[data-visual-mode="faceted-echo"] .scenario-card[data-depth="1"] {
  z-index: 2;
  --depth-opacity: 1;
  opacity: 1;
  transform: translate3d(var(--stack-x-gap), var(--stack-y-gap), 0) rotate(var(--stack-rotation-next)) scale(1);
}

.app-shell[data-visual-mode="faceted-echo"] .scenario-card[data-depth="2"] {
  z-index: 1;
  --depth-opacity: 1;
  opacity: 1;
  transform:
    translate3d(var(--stack-third-x), var(--stack-third-y), 0)
    rotate(var(--stack-rotation-third))
    scale(1);
}

.app-shell[data-visual-mode="faceted-echo"] .scenario-card[data-depth="3"] {
  z-index: 0;
  --depth-opacity: .001;
  visibility: visible;
  opacity: .001;
  pointer-events: none;
  transform:
    translate3d(var(--stack-third-x), var(--stack-third-y), 0)
    rotate(var(--stack-rotation-third))
    scale(1);
}

.app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id])[data-depth="1"] .event-card__surface,
.app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id])[data-depth="2"] .event-card__surface,
.app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id])[data-depth="3"] .event-card__surface {
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(145deg, rgb(82 140 138 / 12%), transparent 35%),
    linear-gradient(180deg, #0b2a34, #071a23 64%, #05151d);
  border-color: rgb(127 174 170 / 37%);
  border-radius: 2px;
  clip-path: none;
  box-shadow:
    5px 7px 0 rgb(2 12 17 / 86%),
    8px 11px 18px rgb(0 0 0 / 34%);
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id] .event-card__surface {
  position: absolute;
  top: 0;
  left: 0;
  width: 720px;
  height: 1080px;
  overflow: hidden;
  background: var(--faceted-ink-920);
  border: 2px solid rgb(159 205 197 / 58%);
  border-radius: 22px;
  clip-path: none;
  box-shadow:
    inset 0 0 0 2px rgb(3 19 27 / 68%),
    0 18px 44px rgb(0 0 0 / 34%);
  transform: scale(var(--faceted-card-scale));
  transform-origin: top left;
  pointer-events: none;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id] .event-card__surface::before {
  position: absolute;
  inset: 15px;
  z-index: 20;
  content: "";
  border: 2px solid rgb(151 197 189 / 17%);
  border-radius: 15px;
  clip-path: none;
  pointer-events: none;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id] .event-card__surface::after {
  display: none;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id].is-dragging .event-card__surface {
  border-color: rgb(166 214 204 / 61%);
  box-shadow:
    inset 0 0 0 2px rgb(3 19 27 / 60%),
    0 26px 60px rgb(0 0 0 / 47%);
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-depth="1"] .event-card__surface {
  border-color: rgb(127 174 170 / 18%);
  box-shadow: 0 8px 18px rgb(0 0 0 / 22%);
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-depth="2"] .event-card__surface,
.app-shell[data-visual-mode="faceted-echo"] .event-card[data-depth="3"] .event-card__surface {
  border-color: rgb(127 174 170 / 10%);
  box-shadow: none;
}

.app-shell[data-visual-mode="faceted-echo"] .faceted-card-back {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  backface-visibility: hidden;
  visibility: hidden;
  opacity: 0;
  background:
    linear-gradient(144deg, rgb(83 147 143 / 18%), transparent 34%),
    linear-gradient(326deg, rgb(198 162 93 / 10%), transparent 28%),
    #061a23;
  box-shadow: inset 0 0 0 16px #061a23, inset 0 0 0 17px rgb(145 193 185 / 24%);
  transform: translateZ(1px);
  transition: none;
  will-change: auto;
  pointer-events: none;
}

.app-shell[data-visual-mode="faceted-echo"] .faceted-card-back__mark {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 250px;
  place-items: center;
  color: rgb(160 206 197 / 35%);
  text-align: center;
  transform: translate(-50%, -54%);
}

.app-shell[data-visual-mode="faceted-echo"] .faceted-card-back__edge {
  position: absolute;
  top: 50%;
  display: grid;
  width: 38px;
  height: 38px;
  color: rgb(160 206 197 / 28%);
  place-items: center;
  transform: translateY(-50%);
}

.app-shell[data-visual-mode="faceted-echo"] .faceted-card-back__edge--left {
  left: 32px;
}

.app-shell[data-visual-mode="faceted-echo"] .faceted-card-back__edge--right {
  right: 32px;
}

.app-shell[data-visual-mode="faceted-echo"] .faceted-card-back__edge svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.app-shell[data-visual-mode="faceted-echo"] .faceted-card-back__mark svg {
  width: 86px;
  height: 86px;
  margin-bottom: 24px;
  fill: currentColor;
}

.app-shell[data-visual-mode="faceted-echo"] .faceted-card-back__mark strong,
.app-shell[data-visual-mode="faceted-echo"] .faceted-card-back__mark small {
  display: block;
  font-style: normal;
}

.app-shell[data-visual-mode="faceted-echo"] .faceted-card-back__mark strong {
  font-size: 24px;
  font-weight: 720;
  letter-spacing: .18em;
}

.app-shell[data-visual-mode="faceted-echo"] .faceted-card-back__mark small {
  margin-top: 10px;
  color: rgb(200 211 206 / 22%);
  font-size: 16px;
  font-weight: 620;
  letter-spacing: .28em;
}

.app-shell[data-visual-mode="faceted-echo"] img.is-asset-failed {
  display: none;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-depth="1"] .faceted-card-back,
.app-shell[data-visual-mode="faceted-echo"] .event-card[data-depth="2"] .faceted-card-back,
.app-shell[data-visual-mode="faceted-echo"] .event-card[data-depth="3"] .faceted-card-back {
  visibility: visible;
  opacity: 1;
  clip-path: none;
  animation: none;
  transition: none;
  transform: translateZ(1px);
  will-change: auto;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-depth="1"] .faceted-card-back {
  box-shadow:
    inset 0 0 0 16px #061a23,
    inset 0 0 0 17px rgb(145 193 185 / 12%);
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-depth="2"] .faceted-card-back,
.app-shell[data-visual-mode="faceted-echo"] .event-card[data-depth="3"] .faceted-card-back {
  box-shadow:
    inset 0 0 0 16px #061a23,
    inset 0 0 0 17px rgb(145 193 185 / 7%);
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id][data-depth="1"] .event-card__surface::before,
.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id][data-depth="2"] .event-card__surface::before,
.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id][data-depth="3"] .event-card__surface::before {
  display: none;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-depth="0"].is-awaiting-assets .faceted-card-back {
  visibility: visible;
  opacity: 1;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id]) .faceted-card-back {
  box-shadow:
    inset 0 0 0 var(--faceted-back-inset) #061a23,
    inset 0 0 0 var(--faceted-back-line) rgb(145 193 185 / 24%);
}

.app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id]) .event-card__surface {
  overflow: hidden;
  border-radius: 10px;
  clip-path: none;
  box-shadow:
    inset 0 0 0 1px rgb(3 19 27 / 62%),
    0 18px 44px rgb(0 0 0 / 34%);
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id] .event-card__thickness,
.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id] .event-card__plane,
.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id] .event-card__topline,
.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id] .event-card__accent-field,
.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id] .card-choice-tabs {
  display: none;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id] .card-grain {
  position: absolute;
  inset: 0;
  z-index: 19;
  opacity: .07;
  background-image:
    repeating-linear-gradient(117deg, transparent 0 10px, rgb(255 255 255 / 22%) 10.5px 11px),
    repeating-linear-gradient(27deg, transparent 0 17px, rgb(0 0 0 / 20%) 17.5px 18px);
  pointer-events: none;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id] .portrait-field {
  position: relative;
  height: 700px;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 35%, rgb(43 106 110 / 28%), transparent 38%),
    linear-gradient(140deg, #061a23, #0a2d36 67%, #071a23);
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id] .event-card__portrait.portrait-source {
  position: absolute;
  top: -2px;
  right: -4px;
  bottom: auto;
  left: auto;
  z-index: 3;
  width: 470px;
  height: 705px;
  max-width: none;
  margin: 0;
  object-fit: contain;
  object-position: center top;
  backface-visibility: visible;
  filter: none;
  image-rendering: auto;
  transform: none;
  will-change: auto;
  pointer-events: none;
  -webkit-user-drag: none;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id] .event-card__portrait.portrait-source.event-art-source {
  object-fit: cover;
  object-position: center top;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id] .portrait-blend {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(90deg, #061a23 0%, rgb(6 26 35 / 96%) 21%, rgb(6 26 35 / 56%) 44%, transparent 68%),
    linear-gradient(180deg, rgb(5 20 28 / 8%), transparent 50%, rgb(4 17 24 / 92%) 100%);
  pointer-events: none;
}

.app-shell[data-visual-mode="faceted-echo"] .portrait-facets span,
.app-shell[data-visual-mode="faceted-echo"] .story-facets span {
  position: absolute;
  display: block;
  pointer-events: none;
}

.app-shell[data-visual-mode="faceted-echo"] .portrait-facets .f1 {
  top: 0;
  left: 0;
  width: 250px;
  height: 210px;
  opacity: .36;
  background: linear-gradient(138deg, rgb(31 83 89 / 85%), rgb(5 23 31 / 20%));
  clip-path: polygon(0 0, 100% 0, 55% 100%, 0 70%);
}

.app-shell[data-visual-mode="faceted-echo"] .portrait-facets .f2 {
  top: 295px;
  left: -22px;
  width: 218px;
  height: 250px;
  opacity: .32;
  background: rgb(15 63 70 / 70%);
  clip-path: polygon(0 18%, 72% 0, 100% 63%, 34% 100%);
}

.app-shell[data-visual-mode="faceted-echo"] .portrait-facets .f3 {
  right: -40px;
  bottom: 32px;
  width: 190px;
  height: 182px;
  opacity: .18;
  background: rgb(198 162 93 / 44%);
  clip-path: polygon(58% 0, 100% 36%, 64% 100%, 0 72%);
}

.app-shell[data-visual-mode="faceted-echo"] .portrait-facets .f4 {
  top: 54px;
  right: 20px;
  width: 180px;
  height: 90px;
  opacity: .1;
  border-top: 6px solid rgb(106 178 171 / 78%);
  transform: skewY(-14deg);
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id] .speaker-tab {
  position: absolute;
  top: 58px;
  left: 42px;
  z-index: 5;
  display: grid;
  gap: 3px;
  align-items: start;
  max-width: 270px;
  min-width: 0;
  padding: 5px 12px 8px 17px;
  color: #b9d9d2;
  font-size: 20px;
  font-weight: 680;
  letter-spacing: .055em;
  background: transparent;
  border-bottom: 1px solid rgb(141 200 187 / 46%);
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id] .speaker-tab__name {
  white-space: nowrap;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id] .speaker-tab__role {
  max-width: 232px;
  color: rgb(185 217 210 / 88%);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: .025em;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id] .speaker-tab::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  content: "";
  background: var(--faceted-teal-500);
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id] .headline-shard {
  position: absolute;
  top: 166px;
  left: 25px;
  z-index: 4;
  width: max-content;
  max-width: 300px;
  min-height: 0;
  padding: 12px 18px 14px 22px;
  background: transparent;
  border-left: 4px solid rgb(141 200 187 / 66%);
  box-shadow: none;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id] .headline-shard::before {
  display: none;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id] .headline-shard .card-title {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #f3f3ec;
  font-size: 44px;
  font-weight: 770;
  line-height: 1.18;
  letter-spacing: -.035em;
  text-shadow: 0 5px 20px rgb(0 0 0 / 36%);
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id] .event-card__story.story-field {
  position: absolute;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 7;
  display: block;
  width: auto;
  height: 520px;
  padding: 162px 64px 44px 72px;
  color: var(--faceted-paper-100);
  text-align: left;
  background: linear-gradient(
    180deg,
    rgb(4 19 27 / 0%) 0%,
    rgb(4 19 27 / 56%) 24%,
    rgb(4 19 27 / 92%) 54%,
    #061821 100%
  );
  border: 0;
  border-radius: 0;
  clip-path: none;
  box-shadow: none;
  transform: none;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id] .event-card__story.story-field::before {
  display: none;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id] .story-field .card-copy {
  position: relative;
  z-index: 3;
  display: block;
  max-width: 582px;
  min-height: 0;
  margin: 0;
  padding: 0;
  color: #e0e6e1;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 38px;
  font-weight: 470;
  line-height: 1.5;
  letter-spacing: .002em;
  text-wrap: pretty;
}

/* The opening youth card carries the first dense block of playable copy. */
.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id="YA-S0-001"] .speaker-tab,
.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id="YA-S0-001"] .headline-shard {
  background: transparent;
}
.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id="YA-S0-001"] .story-field .card-copy {
  color: #eef0ea;
  text-shadow: 0 2px 12px rgb(0 0 0 / 34%);
}

.app-shell[data-visual-mode="faceted-echo"] .story-facets .s1 {
  top: 34px;
  left: 0;
  width: 175px;
  height: 200px;
  opacity: .18;
  background: #1b5960;
  clip-path: polygon(0 0, 100% 23%, 70% 100%, 0 72%);
}

.app-shell[data-visual-mode="faceted-echo"] .story-facets .s2 {
  right: -30px;
  bottom: 0;
  width: 250px;
  height: 220px;
  opacity: .12;
  background: #6a5b45;
  clip-path: polygon(56% 0, 100% 30%, 84% 100%, 0 78%);
}

.app-shell[data-visual-mode="faceted-echo"] .story-facets .s3 {
  top: 103px;
  right: 54px;
  width: 115px;
  height: 105px;
  opacity: .08;
  border: 5px solid #7ab4ae;
  transform: rotate(21deg);
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id] .story-field footer {
  position: absolute;
  right: 64px;
  bottom: 37px;
  left: 72px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 19px;
  color: #789594;
  font-size: 19px;
  font-weight: 660;
  letter-spacing: .09em;
  border-top: 1px solid rgb(123 166 161 / 20%);
}

.app-shell[data-visual-mode="faceted-echo"] .faceted-card-gesture {
  display: inline-flex;
  gap: 9px;
  align-items: center;
}

.app-shell[data-visual-mode="faceted-echo"] .faceted-card-gesture i {
  color: #a3c6c0;
  font-size: 28px;
  font-style: normal;
  font-weight: 400;
  line-height: .7;
}

/* Ordinary events without a named NPC use their own 720 × 1080 composition.
 * They must not fall back to the small legacy card typography and then be
 * scaled a second time with the faceted surface. */
.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id].event-card--text-only .faceted-text-card {
  background:
    linear-gradient(150deg, rgb(21 73 79 / 21%), transparent 38%),
    linear-gradient(326deg, rgb(198 162 93 / 8%), transparent 31%),
    var(--faceted-ink-920);
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id].event-card--text-only .faceted-text-card__meta {
  position: absolute;
  top: 63px;
  right: 78px;
  left: 78px;
  z-index: 5;
  display: flex;
  gap: 14px;
  align-items: center;
  color: #75918f;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: .08em;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id].event-card--text-only .faceted-text-card__meta span:nth-child(2) {
  padding-left: 14px;
  border-left: 2px solid rgb(134 187 179 / 28%);
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id].event-card--text-only .faceted-text-card__meta span:last-child {
  margin-left: auto;
  color: #a4bdb8;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id].event-card--text-only .event-card__story.faceted-text-card__body {
  position: absolute;
  inset: 0;
  z-index: 7;
  box-sizing: border-box;
  display: flex;
  width: auto;
  height: auto;
  padding: 188px 82px 72px;
  flex-direction: column;
  color: var(--faceted-paper-100);
  text-align: left;
  background: transparent;
  border: 0;
  transform: none;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id].event-card--text-only .faceted-text-card__body::before {
  position: absolute;
  top: 180px;
  bottom: 238px;
  left: 56px;
  width: 4px;
  content: "";
  background: linear-gradient(180deg, var(--faceted-teal-500), rgb(91 170 166 / 10%));
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id].event-card--text-only .faceted-text-card__body .card-kicker {
  margin: 0 0 20px;
  color: #a4c9c2;
  font-size: 28px;
  font-weight: 680;
  letter-spacing: .045em;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id].event-card--text-only .faceted-text-card__body .card-kicker small {
  display: block;
  margin-top: 7px;
  color: rgb(164 201 194 / 72%);
  font-size: 18px;
  font-weight: 520;
  line-height: 1.3;
  letter-spacing: .025em;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id].event-card--text-only .faceted-text-card__body .card-title {
  max-width: 550px;
  margin: 0;
  color: #f2f3ed;
  font-size: 60px;
  font-weight: 760;
  line-height: 1.18;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id].event-card--text-only .faceted-text-card__body .card-copy {
  max-width: 548px;
  margin: 43px 0 0;
  color: #d5dfda;
  font-size: 34px;
  font-weight: 460;
  line-height: 1.62;
  letter-spacing: .003em;
  text-wrap: pretty;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id].event-card--text-only .faceted-text-card__body footer {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
  color: #789594;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: .085em;
  border-top: 1px solid rgb(123 166 161 / 22%);
}

.faceted-decision-layer {
  display: none;
}

.app-shell[data-visual-mode="faceted-echo"] .faceted-decision-layer {
  position: absolute;
  inset: 0;
  z-index: 31;
  display: block;
  pointer-events: none;
}

.app-shell[data-visual-mode="faceted-echo"] .choice-echo {
  position: absolute;
  top: var(
    --faceted-choice-preview-top,
    calc(var(--faceted-hud-height) + var(--faceted-safe-top) + 1px)
  );
  right: 8px;
  left: 8px;
  z-index: 5;
  display: flex;
  box-sizing: border-box;
  flex-direction: column;
  width: auto;
  min-height: 76px;
  padding: 10px 16px 11px;
  color: #edf1eb;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  visibility: hidden;
  opacity: 0;
  text-shadow: 0 2px 10px rgb(0 7 10 / 58%);
  pointer-events: none;
}

.app-shell[data-visual-mode="faceted-echo"] .choice-echo--left {
  align-items: flex-start;
  padding-right: 46px;
  text-align: left;
  border-left: 2px solid rgb(91 170 166 / 70%);
  transform: translateY(-5px);
}

.app-shell[data-visual-mode="faceted-echo"] .choice-echo--right {
  align-items: flex-end;
  padding-left: 46px;
  text-align: right;
  border-right: 2px solid rgb(91 170 166 / 70%);
  transform: translateY(-5px);
}

.app-shell[data-visual-mode="faceted-echo"] .choice-rule {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 18px;
  margin-bottom: 9px;
  color: #c4aa71;
}

.app-shell[data-visual-mode="faceted-echo"] .choice-rule i {
  display: block;
  width: 46px;
  height: 1px;
  opacity: .76;
  background: linear-gradient(90deg, rgb(198 162 93 / 0%), rgb(198 162 93 / 88%));
}

.app-shell[data-visual-mode="faceted-echo"] .choice-echo--right .choice-rule i {
  background: linear-gradient(90deg, rgb(198 162 93 / 88%), rgb(198 162 93 / 0%));
}

.app-shell[data-visual-mode="faceted-echo"] .choice-rule b {
  font-size: 18px;
  font-weight: 480;
  line-height: 1;
}

.app-shell[data-visual-mode="faceted-echo"] .choice-echo__copy {
  display: flex;
  flex-direction: column;
  width: 100%;
  font-style: normal;
}

.app-shell[data-visual-mode="faceted-echo"] .choice-echo__copy strong,
.app-shell[data-visual-mode="faceted-echo"] .choice-echo__copy em {
  display: block;
  max-width: 100%;
  font-style: normal;
  overflow-wrap: anywhere;
  white-space: normal;
}

.app-shell[data-visual-mode="faceted-echo"] .choice-echo__copy strong {
  color: #f1f2ec;
  font-size: 18px;
  font-weight: 720;
  line-height: 1.28;
  letter-spacing: -.025em;
}

.app-shell[data-visual-mode="faceted-echo"] .choice-echo__copy em {
  margin-top: 3px;
  color: #bdcbc7;
  font-size: 13.5px;
  font-weight: 530;
  line-height: 1.4;
  letter-spacing: .004em;
}

.app-shell[data-visual-mode="faceted-echo"] .choice-echo--left .choice-echo__copy em {
  padding-right: 0;
}

.app-shell[data-visual-mode="faceted-echo"] .choice-echo--right .choice-echo__copy em {
  padding-left: 0;
}

.app-shell[data-visual-mode="faceted-echo"] .choice-echo[data-line-count="3"] .choice-echo__copy strong {
  font-size: 17px;
  line-height: 1.28;
  letter-spacing: -.012em;
}

.app-shell[data-visual-mode="faceted-echo"] .choice-echo[data-line-count="3"] .choice-echo__copy em {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.38;
}

.app-shell[data-visual-mode="faceted-echo"] .faceted-decision-layer[data-preview-choice="left"] .choice-echo[data-choice="left"],
.app-shell[data-visual-mode="faceted-echo"] .faceted-decision-layer[data-preview-choice="right"] .choice-echo[data-choice="right"] {
  visibility: visible;
  opacity: var(--decision-copy-progress, 0);
  transform: translateY(0);
}

.app-shell[data-visual-mode="faceted-echo"] .faceted-decision-layer.is-choice-ready .choice-rule {
  color: #d5b773;
  text-shadow: 0 0 15px rgb(198 162 93 / 20%);
}

.app-shell[data-visual-mode="faceted-echo"] .commit-hint {
  top: calc(748px + var(--faceted-safe-top));
  bottom: auto;
  padding: 0;
  color: rgb(189 203 199 / 74%);
  font-size: 10px;
  letter-spacing: .12em;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.app-shell[data-visual-mode="faceted-echo"] .result-toast {
  z-index: 32;
}

.app-shell[data-visual-mode="faceted-echo"] .control-panel {
  z-index: 25;
  background: linear-gradient(180deg, rgb(4 19 27 / 0%), rgb(2 12 18 / 84%));
  border-top-color: transparent;
}

.app-shell[data-visual-mode="faceted-echo"][data-faceted-choice-preview] .gesture-hint {
  opacity: .12;
}

.app-shell[data-visual-mode="faceted-echo"] .gesture-hint {
  color: rgb(162 187 182 / 55%);
  font-size: 10px;
  font-weight: 590;
  letter-spacing: .11em;
}

.app-shell[data-visual-mode="faceted-echo"].has-swiped .gesture-hint {
  opacity: .22;
}

/*
 * Season echo and season-end cards use the same physical medium as the event
 * deck. They remain text-led because no approved scout portrait belongs to
 * this build; no placeholder or mismatched pixel character is introduced.
 */
.app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id]) {
  --depth-opacity: 1;
  display: block;
  overflow: visible;
  color: var(--faceted-paper-100);
  background: transparent;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
  isolation: isolate;
  transform-origin: 50% 82%;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id]) .event-card__surface {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: var(--faceted-paper-100);
  background:
    linear-gradient(145deg, rgb(52 112 113 / 18%), transparent 35%),
    linear-gradient(326deg, rgb(198 162 93 / 9%), transparent 31%),
    linear-gradient(180deg, #0a2a34 0%, #061a23 61%, #04131b 100%);
  border: 1px solid rgb(156 204 195 / 58%);
  border-radius: 10px;
  clip-path: none;
  box-shadow:
    inset 0 0 0 1px rgb(3 19 27 / 62%),
    0 18px 44px rgb(0 0 0 / 34%);
}

.app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id]) .event-card__surface::before {
  position: absolute;
  inset: 7px;
  z-index: 20;
  content: "";
  border: 1px solid rgb(151 197 189 / 17%);
  border-radius: 7px;
  clip-path: none;
  pointer-events: none;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id]) .event-card__surface::after {
  display: none;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id]).is-dragging .event-card__surface {
  border-color: rgb(166 214 204 / 64%);
  box-shadow:
    inset 0 0 0 1px rgb(3 19 27 / 56%),
    0 26px 60px rgb(0 0 0 / 47%);
}

.app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id]):focus-visible .event-card__surface {
  outline: 2px solid rgb(213 183 115 / 82%);
  outline-offset: 3px;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id]) .event-card__thickness,
.app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id]) .event-card__plane {
  display: none;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id]) .event-card__topline {
  position: absolute;
  inset: 0 0 auto;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 45px;
  padding: 0 25px 0 22px;
  color: #a8cbc5;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: .13em;
  background: linear-gradient(90deg, rgb(6 27 36 / 96%), rgb(7 34 42 / 86%));
  border-bottom: 1px solid rgb(121 177 170 / 22%);
}

.app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id]) .event-card__topline::before {
  width: 4px;
  height: 18px;
  margin-right: 9px;
  flex: none;
  content: "";
  background: var(--faceted-teal-500);
  transform: skewY(-18deg);
}

.app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id]) .event-card__topline span:first-child {
  margin-right: auto;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id]) .event-card__accent-field {
  position: absolute;
  inset: 45px 0 0;
  z-index: 1;
  width: auto;
  background:
    linear-gradient(139deg, rgb(22 74 79 / 30%), transparent 45%),
    linear-gradient(318deg, rgb(118 94 57 / 15%), transparent 40%);
  clip-path: none;
  opacity: 1;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id]) .event-card__accent-field::before,
.app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id]) .event-card__accent-field::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id]) .event-card__accent-field::before {
  top: 26px;
  left: -18px;
  width: 178px;
  height: 154px;
  opacity: .31;
  background: #17515a;
  clip-path: polygon(0 4%, 100% 0, 73% 100%, 8% 78%);
}

.app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id]) .event-card__accent-field::after {
  right: -24px;
  bottom: 14px;
  width: 164px;
  height: 176px;
  opacity: .14;
  background: #9b7d4d;
  clip-path: polygon(52% 0, 100% 32%, 82% 100%, 0 76%);
}

.app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id]) .card-choice-tabs {
  display: none;
}

.app-shell[data-visual-mode="faceted-echo"] .season-echo-card__body,
.app-shell[data-visual-mode="faceted-echo"] .season-end-card__body,
.app-shell[data-visual-mode="faceted-echo"] .event-card--portrait-right .season-echo-card__body,
.app-shell[data-visual-mode="faceted-echo"] .event-card--text-only .season-end-card__body {
  position: absolute;
  inset: 45px 0 0;
  z-index: 5;
  display: flex;
  width: auto;
  padding: 66px 36px 45px;
  flex-direction: column;
  justify-content: center;
  color: var(--faceted-paper-100);
  text-align: left;
  background: transparent;
  border: 0;
  transform: none;
}

.app-shell[data-visual-mode="faceted-echo"] .season-echo-card.has-pathway-variants .season-echo-card__variant {
  visibility: visible;
  opacity: .001;
  pointer-events: none;
}

.app-shell[data-visual-mode="faceted-echo"] .season-echo-card.has-pathway-variants[data-selected-pathway="left"] .season-echo-card__variant[data-pathway="left"],
.app-shell[data-visual-mode="faceted-echo"] .season-echo-card.has-pathway-variants[data-selected-pathway="right"] .season-echo-card__variant[data-pathway="right"] {
  opacity: 1;
}

.app-shell[data-visual-mode="faceted-echo"] .season-echo-card__body::before,
.app-shell[data-visual-mode="faceted-echo"] .season-end-card__body::before {
  width: 58px;
  height: 2px;
  margin-bottom: 18px;
  content: "";
  background: linear-gradient(90deg, var(--faceted-old-gold), transparent);
  transform: skewX(-25deg);
}

.app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id]) .card-kicker {
  margin: 0 0 10px;
  color: #9fc8c0;
  font-size: 11px;
  font-weight: 720;
  line-height: 1.35;
  letter-spacing: .08em;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id]) .card-title {
  max-width: 240px;
  margin: 0;
  color: #f1f2ec;
  font-size: 27px;
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id]) .card-copy,
.app-shell[data-visual-mode="faceted-echo"] .season-echo-card__message {
  max-width: 236px;
  margin: 18px 0 0;
  color: #cbd7d2;
  font-size: 13px;
  font-weight: 470;
  line-height: 1.72;
  text-align: left;
  text-wrap: pretty;
}

.app-shell[data-visual-mode="faceted-echo"] .season-echo-card__body::after {
  display: none;
  content: "";
}

.app-shell[data-visual-mode="faceted-echo"][data-career-unit="2"] .season-echo-card__body::after {
  content: "";
}

.app-shell[data-visual-mode="faceted-echo"] .season-end-card__body {
  padding-top: 76px;
}

.app-shell[data-visual-mode="faceted-echo"] .season-end-card__mark {
  display: none;
}

.app-shell[data-visual-mode="faceted-echo"] .season-end-card.has-player-passport .season-player-passport {
  top: 62px;
  right: 24px;
  left: 24px;
  z-index: 7;
  grid-template-columns: 39% minmax(0, 1fr);
  height: 218px;
  background: rgb(4 21 29 / 93%);
  border: 1px solid rgb(141 195 187 / 31%);
  border-radius: 0;
  clip-path: polygon(0 7px, 7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
}

.app-shell[data-visual-mode="faceted-echo"] .season-end-card.has-player-passport .season-player-passport__image {
  image-rendering: pixelated;
  background: #0a3039;
}

.app-shell[data-visual-mode="faceted-echo"] .season-end-card.has-player-passport .season-end-card__body {
  top: auto;
  right: 28px;
  bottom: 34px;
  left: 28px;
  width: auto;
  height: auto;
  padding: 0 0 0 13px;
  background: transparent;
  border-left: 2px solid rgb(198 162 93 / 69%);
  transform: none;
}

.app-shell[data-visual-mode="faceted-echo"] .season-end-card.has-player-passport .season-end-card__body::before {
  display: none;
}

.app-shell[data-visual-mode="faceted-echo"] .season-end-card.has-player-passport .card-kicker {
  margin-bottom: 4px;
  font-size: 8px;
}

.app-shell[data-visual-mode="faceted-echo"] .season-end-card.has-player-passport .card-title {
  font-size: 20px;
}

.app-shell[data-visual-mode="faceted-echo"] .season-end-card.has-player-passport .card-copy {
  margin-top: 5px;
  font-size: 9.5px;
  line-height: 1.42;
}

.app-shell[data-visual-mode="faceted-echo"] .season-deck-back {
  --depth-opacity: 1;
  color: transparent;
  background:
    linear-gradient(145deg, rgb(82 140 138 / 12%), transparent 35%),
    linear-gradient(326deg, rgb(198 162 93 / 8%), transparent 28%),
    linear-gradient(180deg, #0b2a34, #071a23 64%, #05151d);
  border: 1px solid rgb(127 174 170 / 37%);
  border-radius: 2px;
  clip-path: none;
  box-shadow:
    inset 0 0 0 var(--faceted-back-inset) #061a23,
    inset 0 0 0 var(--faceted-back-line) rgb(145 193 185 / 24%),
    4px 6px 0 rgb(2 15 21 / 92%),
    7px 10px 28px rgb(0 0 0 / 38%);
}

@media (max-width: 340px), (max-height: 620px) {
  .app-shell[data-visual-mode="faceted-echo"] {
    --faceted-hud-height: 92px;
    --faceted-stack-top: 102px;
    --card-width: 260px;
    --card-height: 390px;
    --faceted-card-scale: .3611111111;
    --stack-x-gap: 6px;
    --stack-y-gap: 7px;
    --stack-third-x: 11px;
    --stack-third-y: 13px;
    --faceted-back-inset: 6px;
    --faceted-back-line: 7px;
  }

  .app-shell[data-visual-mode="faceted-echo"] .status-header {
    height: calc(var(--faceted-hud-height) + var(--faceted-safe-top));
    padding: calc(3px + var(--faceted-safe-top)) 8px 3px;
    overflow: visible;
  }

  .app-shell[data-visual-mode="faceted-echo"] .status-header__meta {
    min-height: 22px;
    margin-bottom: 1px;
  }

  .app-shell[data-visual-mode="faceted-echo"] .status-header__meta > div:first-child {
    gap: 6px;
  }

  .app-shell[data-visual-mode="faceted-echo"] .screen-title {
    font-size: 13px;
  }

  .app-shell[data-visual-mode="faceted-echo"] .season-counter {
    font-size: 7px;
  }

  .app-shell[data-visual-mode="faceted-echo"] .icon-button {
    min-height: 32px;
    padding-inline: 7px;
    font-size: 10px;
  }

  .app-shell[data-visual-mode="faceted-echo"] .icon-button--square {
    width: 32px;
    min-width: 32px;
    font-size: 12px;
  }

  .app-shell[data-visual-mode="faceted-echo"] .meter {
    min-height: 34px;
    padding: 0 4px 2px;
  }

  .app-shell[data-visual-mode="faceted-echo"] .meter__top {
    min-height: 13px;
    gap: 1px;
  }

  .app-shell[data-visual-mode="faceted-echo"] .meter__icon-field {
    width: 16px;
    height: 16px;
  }

  .app-shell[data-visual-mode="faceted-echo"] .meter__icon {
    width: 15px;
    height: 15px;
  }

  .app-shell[data-visual-mode="faceted-echo"] .meter__value {
    font-size: 10.5px;
    font-weight: 700;
  }

  .app-shell[data-visual-mode="faceted-echo"] .meter__label {
    margin-top: 0;
    font-size: 9.5px;
    font-weight: 620;
    line-height: 1.1;
  }

  .app-shell[data-visual-mode="faceted-echo"] .meter__track {
    height: 2px;
    margin-top: 2px;
  }

  .app-shell[data-visual-mode="faceted-echo"] .card-stack {
    top: calc(var(--faceted-stack-top) + var(--faceted-safe-top));
    left: calc(50% - 130px - 4px);
  }

  .app-shell[data-visual-mode="faceted-echo"] .scenario-card[data-depth="2"] {
    transform: translate3d(11px, 13px, 0) rotate(var(--stack-rotation-third)) scale(1);
  }

  .app-shell[data-visual-mode="faceted-echo"] .choice-echo {
    top: var(
      --faceted-choice-preview-top,
      calc(var(--faceted-hud-height) + var(--faceted-safe-top) + 1px)
    );
    right: 6px;
    left: 6px;
    width: auto;
    min-height: 68px;
    padding: 8px 12px 9px;
  }

  .app-shell[data-visual-mode="faceted-echo"] .choice-echo--left {
    right: 6px;
    padding-right: 38px;
  }

  .app-shell[data-visual-mode="faceted-echo"] .choice-echo--right {
    left: 6px;
    padding-left: 38px;
  }

  .app-shell[data-visual-mode="faceted-echo"] .choice-rule {
    gap: 7px;
    height: 14px;
    margin-bottom: 6px;
  }

  .app-shell[data-visual-mode="faceted-echo"] .choice-rule i {
    width: 34px;
  }

  .app-shell[data-visual-mode="faceted-echo"] .choice-rule b {
    font-size: 15px;
  }

  .app-shell[data-visual-mode="faceted-echo"] .choice-echo__copy strong {
    font-size: 15.5px;
    line-height: 1.26;
  }

  .app-shell[data-visual-mode="faceted-echo"] .choice-echo__copy em {
    font-size: 12px;
    line-height: 1.36;
  }

  .app-shell[data-visual-mode="faceted-echo"] .choice-echo[data-line-count="3"] .choice-echo__copy strong,
  .app-shell[data-visual-mode="faceted-echo"] .choice-echo[data-line-count="3"] .choice-echo__copy em {
    font-size: 12.5px;
    line-height: 1.3;
  }

  .app-shell[data-visual-mode="faceted-echo"] .commit-hint {
    top: auto;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .app-shell[data-visual-mode="faceted-echo"] .control-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 28px;
    padding: 3px 10px max(4px, env(safe-area-inset-bottom));
  }

  .app-shell[data-visual-mode="faceted-echo"] .gesture-hint {
    font-size: 8px;
  }

  .app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id]) .event-card__topline {
    height: 38px;
    padding-inline: 18px;
    font-size: 8px;
  }

  .app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id]) .event-card__accent-field {
    inset-block-start: 38px;
  }

  .app-shell[data-visual-mode="faceted-echo"] .season-echo-card__body,
  .app-shell[data-visual-mode="faceted-echo"] .season-end-card__body,
  .app-shell[data-visual-mode="faceted-echo"] .event-card--portrait-right .season-echo-card__body,
  .app-shell[data-visual-mode="faceted-echo"] .event-card--text-only .season-end-card__body {
    inset-block-start: 38px;
    padding: 40px 28px 24px;
    justify-content: flex-start;
  }

  .app-shell[data-visual-mode="faceted-echo"] .season-echo-card__body::before,
  .app-shell[data-visual-mode="faceted-echo"] .season-end-card__body::before {
    margin-bottom: 13px;
  }

  .app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id]) .card-kicker {
    margin-bottom: 7px;
    font-size: 9px;
  }

  .app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id]) .card-title {
    max-width: 205px;
    font-size: 23px;
  }

  .app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id]) .card-copy,
  .app-shell[data-visual-mode="faceted-echo"] .season-echo-card__message {
    max-width: 210px;
    margin-top: 12px;
    font-size: 11.25px;
    line-height: 1.56;
  }

  .app-shell[data-visual-mode="faceted-echo"] .season-echo-card__body::after {
    margin-top: 12px;
    font-size: 7.5px;
  }

  .app-shell[data-visual-mode="faceted-echo"] .season-echo-card__gesture {
    margin-top: 10px;
    font-size: 8px;
  }

  .app-shell[data-visual-mode="faceted-echo"] .season-end-card.has-player-passport .season-player-passport {
    top: 50px;
    right: 18px;
    left: 18px;
    height: 180px;
  }

  .app-shell[data-visual-mode="faceted-echo"] .season-end-card.has-player-passport .season-end-card__body {
    right: 22px;
    bottom: 26px;
    left: 22px;
    padding: 0 0 0 10px;
  }
}

@media (min-width: 341px) and (max-height: 740px) {
  .app-shell[data-visual-mode="faceted-echo"] {
    --faceted-hud-height: 100px;
    --faceted-stack-top: 110px;
    --card-width: 270px;
    --card-height: 405px;
    --faceted-card-scale: .375;
    --faceted-back-inset: 6px;
    --faceted-back-line: 7px;
  }

  .app-shell[data-visual-mode="faceted-echo"] .card-stack {
    top: calc(var(--faceted-stack-top) + var(--faceted-safe-top));
    left: calc(50% - var(--card-width) / 2 - 4px);
  }

  .app-shell[data-visual-mode="faceted-echo"] .choice-echo {
    top: var(
      --faceted-choice-preview-top,
      calc(var(--faceted-hud-height) + var(--faceted-safe-top) + 1px)
    );
    right: 8px;
    left: 8px;
    width: auto;
  }

  .app-shell[data-visual-mode="faceted-echo"] .choice-echo__copy strong {
    font-size: 17px;
  }

  .app-shell[data-visual-mode="faceted-echo"] .choice-echo__copy em {
    font-size: 13px;
  }

  .app-shell[data-visual-mode="faceted-echo"] .commit-hint {
    top: auto;
    bottom: 42px;
  }

  .app-shell[data-visual-mode="faceted-echo"] .season-echo-card__body,
  .app-shell[data-visual-mode="faceted-echo"] .season-end-card__body,
  .app-shell[data-visual-mode="faceted-echo"] .event-card--portrait-right .season-echo-card__body,
  .app-shell[data-visual-mode="faceted-echo"] .event-card--text-only .season-end-card__body {
    padding: 49px 30px 35px;
  }

  .app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id]) .card-title {
    font-size: 24px;
  }

  .app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id]) .card-copy,
  .app-shell[data-visual-mode="faceted-echo"] .season-echo-card__message {
    margin-top: 14px;
    font-size: 11.75px;
    line-height: 1.62;
  }
}

.app-shell[data-qa-canvas="390x844"][data-visual-mode="faceted-echo"] {
  --card-width: 306px;
  --card-height: 459px;
  --faceted-card-scale: .425;
  width: 390px;
  height: 844px;
}

/* V13 — the season boundary action is a real button in the HUD/card gap.
 * It is separate from the completed card and remains above the thumb. */
.dev-transfer-trigger:not([data-call-state="development"]) {
  position: absolute;
  top: calc(var(--faceted-hud-height, 100px) + var(--faceted-safe-top, 0px) + 7px);
  right: 8px;
  bottom: auto;
  left: 8px;
  z-index: 35;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  width: auto;
  min-width: 0;
  min-height: 64px;
  padding: 9px 12px 9px 11px;
  color: #efeee7;
  text-align: left;
  background: linear-gradient(90deg, rgb(7 27 33 / 96%), rgb(7 24 29 / 88%));
  border: 0;
  border-top: 1px solid rgb(183 154 111 / 38%);
  border-bottom: 1px solid rgb(110 167 158 / 28%);
  border-left: 3px solid #b79a70;
  border-radius: 0;
  box-shadow: none;
  animation: season-call-slip-in 360ms cubic-bezier(.22, .72, .32, 1) both;
}

.dev-transfer-trigger:not([data-call-state="development"]):hover {
  color: #fff;
  background: linear-gradient(90deg, rgb(10 35 41 / 98%), rgb(8 29 34 / 94%));
  border-top-color: rgb(201 174 132 / 62%);
  border-bottom-color: rgb(141 200 187 / 44%);
  border-left-color: #d0ae7b;
}

.dev-transfer-trigger__icon {
  width: 15px;
  height: 15px;
  margin-inline: auto;
  fill: #bfa479;
}

.dev-transfer-trigger__copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.dev-transfer-trigger__copy strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dev-transfer-trigger__copy small {
  color: rgb(199 184 157 / 72%);
  font-size: 8px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: .12em;
}

.dev-transfer-trigger__answer {
  align-self: stretch;
  display: grid;
  min-width: 42px;
  padding-left: 10px;
  place-items: center;
  color: #efe7d7;
  font-size: 10px;
  font-weight: 700;
  border-left: 1px solid rgb(183 154 111 / 32%);
}

@keyframes season-call-slip-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translate(0, 0); }
}

.transfer-dialog {
  width: min(calc(100% - 22px), 418px);
  border-radius: 0;
  box-shadow: 0 26px 78px rgb(0 0 0 / 58%);
}

.transfer-dialog::backdrop {
  background: rgb(2 6 7 / 84%);
  backdrop-filter: blur(2px);
}

.transfer-dialog__surface {
  padding: 0 22px 22px;
  background: #0b171a;
  border-color: rgb(183 154 111 / 30%);
  border-radius: 0;
}

.transfer-dialog__header {
  min-height: 82px;
  padding-top: 19px;
  border-bottom: 1px solid rgb(183 154 111 / 22%);
}

.transfer-dialog__eyebrow {
  color: #bfa479;
  font-size: 9px;
  letter-spacing: .1em;
}

.transfer-dialog h2 {
  margin-bottom: 14px;
  color: #f0f0e9;
  font-size: 22px;
  font-weight: 710;
  letter-spacing: -.02em;
}

.transfer-dialog__close {
  width: 40px;
  height: 40px;
  color: rgb(232 234 226 / 75%);
  background: transparent;
  border: 0;
  border-radius: 0;
}

.transfer-dialog__close:hover {
  color: #fff;
  background: rgb(255 255 255 / 5%);
}

.transfer-dialog__summary {
  margin: 14px 0 18px;
  color: rgb(221 222 213 / 60%);
  font-size: 11px;
  line-height: 1.5;
}

.transfer-offer-list {
  gap: 0;
}

.transfer-offer {
  min-height: 76px;
  padding: 15px 72px 14px 0;
  color: #ecece5;
  background: transparent;
  border: 0;
  border-top: 1px solid rgb(183 154 111 / 18%);
  border-radius: 0;
}

.transfer-offer:first-child {
  border-top: 0;
}

.transfer-offer:hover {
  background: rgb(183 154 111 / 5%);
}

.transfer-offer h3 {
  margin-bottom: 5px;
  font-size: 17px;
}

.transfer-offer p {
  color: rgb(220 221 212 / 56%);
  font-size: 11px;
}

.transfer-offer__cue {
  right: 3px;
  color: rgb(199 174 135 / 76%);
  font-size: 10px;
}

.transfer-offer--fallback {
  padding: 17px 0 0;
  border-top: 1px solid rgb(183 154 111 / 20%);
}

.transfer-conversation {
  padding: 4px 0 0;
  background: transparent;
  border: 0;
}

.transfer-conversation__speaker {
  margin: 18px 0 9px;
  color: rgb(195 203 198 / 68%);
  font-size: 10px;
  letter-spacing: .08em;
}

.transfer-conversation__line {
  max-width: 34em;
  margin-bottom: 14px;
  color: rgb(239 239 232 / 90%);
  font-size: 14px;
  line-height: 1.72;
}

.transfer-conversation__turn {
  position: relative;
  padding: 0;
}

.transfer-conversation__turn + .transfer-conversation__turn {
  margin-top: 20px;
}

.transfer-conversation__turn .transfer-conversation__speaker {
  margin: 0 0 8px;
}

.transfer-conversation__turn .transfer-conversation__line,
.transfer-conversation__turn .transfer-conversation__reply {
  margin-bottom: 0;
}

.transfer-conversation__turn .transfer-conversation__line + .transfer-conversation__line {
  margin-top: 12px;
}

.transfer-conversation__turn--player {
  margin-left: 24px;
  padding-left: 14px;
  border-left: 1px solid rgb(183 154 111 / 36%);
}

.transfer-conversation__turn--player .transfer-conversation__reply {
  padding: 0;
  border-bottom: 0;
}

.transfer-conversation__turn--compact {
  display: flex;
  min-width: 0;
  margin: 0 0 16px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgb(183 154 111 / 14%);
  border-left: 0;
}

.transfer-conversation__turn--compact .transfer-conversation__speaker {
  flex: 0 0 auto;
  margin-right: 7px;
  font-size: 9px;
}

.transfer-conversation__turn--compact .transfer-conversation__reply {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: rgb(222 223 214 / 60%);
  font-size: 10px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transfer-conversation__turn--risk {
  padding-top: 18px;
  border-top: 1px solid rgb(183 154 111 / 18%);
}

.transfer-conversation__turn--latest {
  animation: transfer-turn-enter 220ms cubic-bezier(.22, .72, .32, 1) both;
}

.transfer-conversation__response-list {
  display: grid;
  margin-top: 23px;
  border-top: 1px solid rgb(183 154 111 / 24%);
}

.transfer-conversation__response {
  position: relative;
  width: 100%;
  min-height: 54px;
  padding: 13px 32px 13px 0;
  color: rgb(238 238 231 / 86%);
  font: inherit;
  font-size: 12px;
  font-weight: 590;
  line-height: 1.55;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgb(183 154 111 / 18%);
  border-radius: 0;
  cursor: pointer;
}

.transfer-conversation__response::after {
  position: absolute;
  top: 50%;
  right: 4px;
  color: rgb(199 174 135 / 72%);
  font-size: 20px;
  font-weight: 400;
  content: "›";
  transform: translateY(-52%);
}

.transfer-conversation__response:hover,
.transfer-conversation__response:focus-visible {
  color: #fff;
  background: rgb(183 154 111 / 5%);
}

.transfer-conversation__response:disabled {
  color: rgb(222 223 214 / 38%);
  cursor: default;
}

.transfer-conversation__speaker--player {
  color: rgb(205 202 188 / 64%);
}

.transfer-conversation__reply {
  margin-bottom: 20px;
  padding: 0 0 17px;
  color: #f0f0e8;
  font-size: 15px;
  line-height: 1.7;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgb(183 154 111 / 20%);
}

.transfer-conversation__closing {
  color: rgb(230 231 222 / 76%);
  font-size: 13px;
  line-height: 1.65;
}

.transfer-conversation__actions {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid rgb(183 154 111 / 18%);
}

.transfer-conversation__back,
.transfer-conversation__actions .transfer-offer__select,
.transfer-conversation--decision > .transfer-offer__select {
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 0;
  color: rgb(222 223 214 / 66%);
  font-size: 11px;
  font-weight: 620;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.transfer-conversation__actions .transfer-offer__select,
.transfer-conversation--decision > .transfer-offer__select {
  color: #f0f0e9;
  border-bottom: 1px solid rgb(199 174 135 / 62%);
}

@keyframes transfer-turn-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.transfer-offer--fallback .transfer-offer__select {
  min-height: 44px;
  color: rgb(231 231 223 / 84%);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgb(183 154 111 / 36%);
  border-radius: 0;
}

.transfer-confirmation {
  margin-top: 4px;
  padding: 18px 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgb(183 154 111 / 22%);
  border-radius: 0;
}

.transfer-confirmation h3 {
  margin-bottom: 12px;
  font-size: 15px;
}

.transfer-confirmation > p {
  max-width: 36em;
  color: rgb(230 231 222 / 78%);
  font-size: 12px;
  line-height: 1.75;
}

.transfer-confirmation__actions button {
  border-radius: 0;
}

#transferConfirmButton {
  color: #efe7d7;
  background: transparent;
  border-color: rgb(199 174 135 / 54%);
}

.transfer-dialog__notice {
  color: rgb(217 218 209 / 50%);
  text-align: left;
}

.youth-trial-choice {
  position: relative;
  width: 100%;
  min-height: 92px;
  padding: 18px 34px 17px 0;
  color: #eeeeea;
  font: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 1px solid rgb(183 154 111 / 22%);
  border-radius: 0;
  cursor: pointer;
}

.youth-trial-choice::after {
  position: absolute;
  top: 50%;
  right: 4px;
  color: rgb(199 174 135 / 72%);
  font-size: 20px;
  content: "›";
  transform: translateY(-50%);
}

.youth-trial-choice:first-child { border-top: 0; }
.youth-trial-choice h3 { margin: 0 0 7px; font-size: 16px; line-height: 1.4; }
.youth-trial-choice p,
.youth-trial-choice small {
  display: block;
  margin: 0;
  color: rgb(222 223 214 / 64%);
  font-size: 11px;
  line-height: 1.55;
}
.youth-trial-choice small { margin-top: 4px; color: rgb(207 188 157 / 72%); }
.youth-trial-choice:hover { color: #fff; background: rgb(183 154 111 / 5%); }

.youth-entry-stage {
  display: grid;
  gap: 16px;
  padding-top: 3px;
}
.youth-entry-stage h3 { margin: 0; font-size: 18px; line-height: 1.4; }
.youth-entry-stage p {
  margin: 0;
  color: rgb(234 235 228 / 82%);
  font-size: 13px;
  line-height: 1.72;
}
.youth-entry-stage small {
  color: rgb(199 174 135 / 78%);
  font-size: 9px;
  font-weight: 660;
  letter-spacing: .08em;
}
.youth-entry-stage__boundary {
  padding-top: 14px;
  color: rgb(222 223 214 / 66%) !important;
  border-top: 1px solid rgb(183 154 111 / 18%);
}
.youth-entry-stage > .transfer-offer__select {
  width: fit-content;
  min-height: 44px;
  margin: 4px 0 0;
  padding: 0;
  color: #f0f0e9;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgb(199 174 135 / 62%);
  border-radius: 0;
}

.career-ending {
  display: grid;
  gap: 20px;
  padding: 2px 0 0;
}
.career-ending__advance {
  justify-self: start;
  min-height: 44px;
  padding: 0;
  color: #f0f0e9;
  font: inherit;
  font-size: 12px;
  font-weight: 640;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgb(199 174 135 / 62%);
  border-radius: 0;
  cursor: pointer;
}
.career-ending__scene {
  display: grid;
  margin: 0;
  padding: 0;
}
.career-ending__scene > p {
  margin: 0;
  padding: 3px 0 18px;
  color: rgb(239 239 232 / 86%);
  border-bottom: 1px solid rgb(183 154 111 / 16%);
  font-size: 13px;
  line-height: 1.78;
}
.career-ending__route {
  display: grid;
  gap: 0;
  border-top: 1px solid rgb(183 154 111 / 18%);
}
.career-ending__route-stage {
  display: grid;
  gap: 7px;
  padding: 18px 0 19px;
  border-bottom: 1px solid rgb(183 154 111 / 18%);
  background: transparent;
}
.career-ending__route-stage small {
  color: rgb(199 174 135 / 72%);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .09em;
}
.career-ending__route-stage h3 {
  margin: 0;
  color: #eeeeea;
  font-size: 15px;
  font-weight: 640;
}
.career-ending__route-stage p {
  margin: 0;
  color: rgb(222 223 214 / 60%);
  font-size: 10px;
  line-height: 1.62;
}
.career-ending__secondary-heading {
  margin: 4px 0 -8px;
  color: rgb(222 223 214 / 68%);
  font-size: 11px;
  font-weight: 630;
  letter-spacing: .05em;
}
.career-ending__stats { display: grid; margin: 0; }
.career-ending__stats > div {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgb(183 154 111 / 14%);
}
.career-ending__stats dt { color: rgb(222 223 214 / 68%); font-size: 11px; }
.career-ending__stats dd { margin: 0; color: #eeeeea; font-size: 11px; font-variant-numeric: tabular-nums; }
.career-ending__stamps {
  display: flex;
  margin: -2px 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.career-ending__stamps li {
  padding: 6px 9px 5px;
  color: rgb(222 204 169 / 78%);
  border: 1px solid rgb(199 174 135 / 32%);
  font-size: 9px;
  letter-spacing: .05em;
  transform: rotate(-.5deg);
}
.career-ending__stamps li:nth-child(even) { transform: rotate(.45deg); }
.career-ending__meaning,
.career-ending__tradeoff {
  margin: 0;
  color: rgb(239 239 232 / 88%);
  font-size: 14px;
  line-height: 1.75;
}
.career-ending__tradeoff {
  padding-top: 16px;
  color: rgb(222 223 214 / 68%);
  border-top: 1px solid rgb(183 154 111 / 18%);
}

@media (max-width: 340px), (max-height: 600px) {
  .transfer-dialog__surface { padding-right: 17px; padding-left: 17px; }
  .youth-trial-choice { min-height: 80px; padding-top: 14px; padding-bottom: 13px; }
  .career-ending { gap: 14px; }
  .career-ending__scene > p { padding: 2px 0 13px; }
  .career-ending__route-stage { padding: 14px 0 15px; }
  .career-ending__stats > div { min-height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .dev-transfer-trigger:not([data-call-state="development"]) {
    animation: none;
  }

  .transfer-conversation__turn--latest {
    animation: none;
  }
}

.app-shell[data-visual-mode="faceted-echo"].reduce-motion .event-card[data-card-id] {
  transform-origin: center;
}

.app-shell[data-visual-mode="faceted-echo"].reduce-motion .faceted-decision-layer {
  transition: opacity 100ms linear;
}

/*
 * Faceted Echo visual-QA hooks. These are opt-in query states only:
 * `qaGray=1` and `qaBackgroundSafe=1`. They never appear in the player URL.
 */
.app-shell[data-visual-mode="faceted-echo"][data-qa-gray="true"] {
  filter: grayscale(1);
}

.background-safe-qa {
  display: none;
}

.app-shell[data-visual-mode="faceted-echo"][data-qa-background-safe="true"] .background-safe-qa {
  position: absolute;
  z-index: 48;
  inset: 0;
  display: block;
  pointer-events: none;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .04em;
}

.app-shell[data-visual-mode="faceted-echo"][data-qa-background-safe="true"] .background-safe-qa span {
  position: absolute;
  display: grid;
  place-items: start;
  padding: 5px 7px;
  color: #f7e5b2;
  background: rgb(198 162 93 / 12%);
  border: 1px dashed rgb(222 194 130 / 78%);
  text-shadow: 0 1px 4px #020d13;
}

.background-safe-qa__hud {
  inset: 0 0 auto;
  height: 78px;
}

.background-safe-qa__card {
  top: 118px;
  right: 0;
  left: 0;
  height: 502px;
}

.background-safe-qa__choice {
  top: 600px;
  right: 28px;
  left: 28px;
  height: 148px;
}

.background-safe-qa__hint {
  top: 776px;
  right: 40px;
  left: 40px;
  height: 58px;
}

/*
 * Gate 2 isolated vertical slice.
 * REVIEW ONLY: this dialog opens only after the explicit ?gate2Slice=1 query.
 * It does not alter any V8 card, HUD, stack or gesture selector.
 */
.app-shell[data-gate2-slice="review"] .gate2-review-dialog {
  box-sizing: border-box;
  width: min(100%, 460px);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: auto;
  padding:
    calc(18px + env(safe-area-inset-top))
    18px
    calc(16px + env(safe-area-inset-bottom));
  overflow: hidden;
  color: var(--chalk);
  background:
    linear-gradient(180deg, rgb(2 12 18 / 58%), rgb(2 12 18 / 90%)),
    radial-gradient(circle at 50% 36%, rgb(54 112 113 / 18%), transparent 46%),
    #04131b;
  border: 0;
}

.app-shell[data-gate2-slice="review"] .gate2-review-dialog::backdrop {
  background: #04131b;
}

.app-shell[data-gate2-slice="review"] .gate2-review-dialog__surface {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  gap: 10px;
  width: min(100%, 390px);
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0 auto;
}

.app-shell[data-gate2-slice="review"] .gate2-review-dialog__header {
  min-width: 0;
  padding-left: 13px;
  border-left: 2px solid #c6a25d;
}

.app-shell[data-gate2-slice="review"] .gate2-review-dialog__header span {
  display: block;
  color: #9fc8c0;
  font-size: 9px;
  font-weight: 720;
  letter-spacing: .14em;
}

.app-shell[data-gate2-slice="review"] .gate2-review-dialog__header h1 {
  margin: 5px 0 0;
  color: #f1f2ec;
  font-size: clamp(25px, 7.2vw, 31px);
  font-weight: 760;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.app-shell[data-gate2-slice="review"] .gate2-review-dialog__header p {
  max-width: 330px;
  margin: 7px 0 0;
  color: #bdcbc7;
  font-size: 11px;
  line-height: 1.55;
}

.app-shell[data-gate2-slice="review"] .gate2-review-dialog__player {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  margin: 0;
  place-items: end center;
  overflow: hidden;
}

.app-shell[data-gate2-slice="review"] .gate2-review-dialog__player[hidden] {
  display: none !important;
}

.app-shell[data-gate2-slice="review"] .gate2-review-dialog__player::after {
  position: absolute;
  right: 9%;
  bottom: 20px;
  left: 9%;
  height: 14px;
  content: "";
  background: radial-gradient(ellipse, rgb(0 0 0 / 48%), transparent 70%);
  filter: blur(4px);
  pointer-events: none;
}

.app-shell[data-gate2-slice="review"] .gate2-review-dialog__player img {
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center bottom;
  image-rendering: auto;
  pointer-events: none;
  -webkit-user-drag: none;
}

.app-shell[data-gate2-slice="review"] .gate2-review-dialog__player figcaption {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  padding: 5px 8px;
  color: rgb(200 211 206 / 68%);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .06em;
  background: rgb(4 19 27 / 78%);
  border-left: 1px solid rgb(160 206 197 / 18%);
}

.app-shell[data-gate2-slice="review"] .gate2-review-dialog__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  min-width: 0;
  margin: 0;
  background: rgb(160 206 197 / 16%);
  border: 1px solid rgb(160 206 197 / 18%);
}

.app-shell[data-gate2-slice="review"] .gate2-review-dialog__facts div {
  min-width: 0;
  padding: 8px 10px;
  background: rgb(5 25 35 / 94%);
}

.app-shell[data-gate2-slice="review"] .gate2-review-dialog__facts dt {
  color: rgb(160 206 197 / 68%);
  font-size: 8px;
  font-weight: 680;
  letter-spacing: .08em;
}

.app-shell[data-gate2-slice="review"] .gate2-review-dialog__facts dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: #eef0e8;
  font-size: 11px;
  font-weight: 720;
  line-height: 1.3;
}

.app-shell[data-gate2-slice="review"] .gate2-review-dialog__status {
  min-width: 0;
  margin: 0;
  color: rgb(189 203 199 / 72%);
  font-size: 9px;
  line-height: 1.45;
  text-align: center;
}

.app-shell[data-gate2-slice="review"] .gate2-review-dialog__status.is-error {
  color: #e0bca5;
}

.app-shell[data-gate2-slice="review"] .gate2-review-dialog__enter {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: #04131b;
  font-size: 12px;
  font-weight: 800;
  background: #d5b773;
  border: 1px solid #e0c784;
  border-radius: 2px;
  cursor: pointer;
}

.app-shell[data-gate2-slice="review"] .gate2-review-dialog__enter:disabled {
  color: rgb(200 211 206 / 44%);
  background: rgb(8 38 48 / 78%);
  border-color: rgb(160 206 197 / 16%);
  cursor: default;
}

.app-shell[data-gate2-slice="review"] .gate2-review-dialog__enter:focus-visible,
.app-shell[data-gate2-slice="review"] .gate2-review-dialog__status:focus-visible {
  outline: 2px solid #a0cec5;
  outline-offset: 3px;
}

@media (max-width: 340px), (max-height: 620px) {
  .app-shell[data-gate2-slice="review"] .gate2-review-dialog {
    padding:
      calc(9px + env(safe-area-inset-top))
      10px
      calc(8px + env(safe-area-inset-bottom));
  }

  .app-shell[data-gate2-slice="review"] .gate2-review-dialog__surface {
    gap: 6px;
  }

  .app-shell[data-gate2-slice="review"] .gate2-review-dialog__header {
    padding-left: 9px;
  }

  .app-shell[data-gate2-slice="review"] .gate2-review-dialog__header span {
    font-size: 7.5px;
  }

  .app-shell[data-gate2-slice="review"] .gate2-review-dialog__header h1 {
    margin-top: 3px;
    font-size: 22px;
  }

  .app-shell[data-gate2-slice="review"] .gate2-review-dialog__header p {
    margin-top: 4px;
    font-size: 9px;
    line-height: 1.4;
  }

  .app-shell[data-gate2-slice="review"] .gate2-review-dialog__facts div {
    padding: 5px 7px;
  }

  .app-shell[data-gate2-slice="review"] .gate2-review-dialog__facts dt {
    font-size: 7px;
  }

  .app-shell[data-gate2-slice="review"] .gate2-review-dialog__facts dd {
    margin-top: 2px;
    font-size: 9px;
  }

  .app-shell[data-gate2-slice="review"] .gate2-review-dialog__status {
    font-size: 7.5px;
  }

  .app-shell[data-gate2-slice="review"] .gate2-review-dialog__enter {
    min-height: 44px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-shell[data-gate2-slice="review"] .gate2-review-dialog,
  .app-shell[data-gate2-slice="review"] .gate2-review-dialog *,
  .app-shell[data-gate2-slice="review"] .gate2-review-dialog *::before,
  .app-shell[data-gate2-slice="review"] .gate2-review-dialog *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* The default route stops at this player-facing shell; internal test routes bypass it. */
.player-entry {
  --entry-world-dark: #0b0e10;
  --entry-row-dark: #111313;
  --entry-text: #ececeb;
  --entry-accent: #86694d;
  --entry-accent-focus: #a07e5d;
  --entry-left: clamp(30px, 9.35vw, 40px);
  --entry-width: clamp(168px, 52.6vw, 226px);
  --entry-row-height: clamp(48px, 6.46svh, 55px);
  --entry-row-gap: clamp(9px, 1.3svh, 11px);
  --entry-bottom: max(calc(env(safe-area-inset-bottom, 0px) + 38px), 17.5svh);
  position: fixed;
  z-index: 1000;
  inset: 0;
  width: min(100%, 460px);
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  color: var(--entry-text);
  background: var(--entry-world-dark);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  isolation: isolate;
}
.player-entry[hidden],
.player-entry__panel[hidden] { display: none; }
.player-entry__scene {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  image-rendering: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.player-entry__panel {
  position: absolute;
  z-index: 1;
  left: var(--entry-left);
  bottom: var(--entry-bottom);
  display: grid;
  width: var(--entry-width);
  gap: clamp(22px, 3.7svh, 31px);
}
.player-entry__panel--start {
  isolation: isolate;
  gap: clamp(17px, 2.6svh, 23px);
}
.player-entry__panel--start::before {
  position: absolute;
  z-index: -1;
  inset: -18px -22px -14px;
  content: "";
  background: radial-gradient(ellipse at 24% 50%, rgb(7 10 11 / 36%), rgb(7 10 11 / 18%) 58%, transparent 82%);
  pointer-events: none;
}
.player-entry__profile[hidden],
.player-entry__introduction[hidden] { display: none; }
.player-entry__profile,
.player-entry__appearance,
.player-entry__introduction {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow-y: auto;
  padding: max(calc(env(safe-area-inset-top, 0px) + 24px), 32px) var(--entry-left)
    max(calc(env(safe-area-inset-bottom, 0px) + 24px), 28px);
  background: rgb(11 14 16 / 8%);
  overscroll-behavior: contain;
}
.player-entry__introduction {
  background: transparent;
}
.player-entry__appearance[hidden] { display: none; }
.player-entry__introduction-body {
  display: grid;
  width: min(100%, 298px);
  margin-top: clamp(34px, 8svh, 68px);
  padding: 18px 18px 20px;
  gap: clamp(18px, 3.2svh, 26px);
  background: linear-gradient(90deg, rgb(7 10 11 / 58%), rgb(7 10 11 / 31%) 72%, transparent);
}
.player-entry__introduction-copy {
  max-width: 29em;
  margin: 0;
  color: rgb(248 246 241 / 90%);
  font-size: 14px;
  line-height: 1.65;
  text-shadow: 0 1px 6px rgb(0 0 0 / 74%);
}
.player-entry__club-options {
  display: grid;
  gap: 0;
}
.player-entry__club-options button {
  display: grid;
  min-height: 72px;
  padding: 12px 14px 12px 17px;
  align-content: center;
  gap: 4px;
  border: 0;
  border-left: 2px solid rgb(160 126 93 / 64%);
  border-bottom: 1px solid rgb(217 208 193 / 22%);
  border-radius: 0;
  color: var(--entry-text);
  background: rgb(14 17 18 / 78%);
  font: inherit;
  text-align: left;
  cursor: pointer;
  clip-path: none;
  transition: border-color 150ms ease, background-color 150ms ease, transform 170ms ease;
}
.player-entry__club-options button:first-child { border-top: 1px solid rgb(217 208 193 / 22%); }
.player-entry__club-options strong {
  font-size: 18px;
  font-weight: 620;
  letter-spacing: .035em;
}
.player-entry__club-options span {
  color: rgb(244 243 238 / 82%);
  font-size: 12px;
  letter-spacing: .025em;
}
.player-entry__club-options .player-entry__youth-start {
  display: flex;
  min-height: 52px;
  padding: 0 4px 10px 0;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid rgb(217 208 193 / 34%);
  border-radius: 0;
  color: var(--entry-text);
  background: transparent;
  text-align: left;
  transition: color 150ms ease, border-color 150ms ease;
}
.player-entry__club-options .player-entry__youth-start:first-child {
  border-top: 0;
}
.player-entry__club-options .player-entry__youth-start strong {
  font-size: 16px;
  font-weight: 580;
  letter-spacing: .025em;
}
.player-entry__club-options .player-entry__youth-start .player-entry__chevron {
  width: 16px;
  height: 16px;
  opacity: .78;
  transition: transform 150ms ease, opacity 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .player-entry__club-options button:hover {
    border-color: var(--entry-accent-focus);
    background: rgb(134 105 77 / 17%);
    transform: translateX(2px);
  }
  .player-entry__club-options .player-entry__youth-start:hover {
    color: #fff;
    background: transparent;
    border-color: var(--entry-accent-focus);
    transform: none;
  }
  .player-entry__club-options .player-entry__youth-start:hover .player-entry__chevron {
    opacity: 1;
    transform: translateX(3px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .player-entry__club-options .player-entry__youth-start .player-entry__chevron {
    transition: none;
  }
  .player-entry__club-options .player-entry__youth-start:hover .player-entry__chevron {
    transform: none;
  }
}
.player-entry__profile-back {
  min-height: 44px;
  padding: 0;
  border: 0;
  color: rgb(236 236 235 / 68%);
  background: transparent;
  font: inherit;
  font-size: 12px;
  letter-spacing: .08em;
  cursor: pointer;
}
.player-entry__profile-form {
  display: grid;
  width: min(100%, 310px);
  margin-top: clamp(30px, 7.1svh, 60px);
  padding: 18px 18px 20px;
  gap: clamp(24px, 4.5svh, 38px);
  background: linear-gradient(90deg, rgb(7 10 11 / 55%), rgb(7 10 11 / 29%) 74%, transparent);
}
.player-entry__appearance-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "heading"
    "avatar"
    "hint"
    "controls"
    "summary"
    "note"
    "error"
    "submit";
  width: min(100%, 430px);
  margin-top: clamp(16px, 3.6svh, 30px);
  column-gap: 0;
  row-gap: clamp(13px, 2svh, 19px);
}
.player-entry__appearance-form > .player-entry__profile-heading { grid-area: heading; }
.player-entry__appearance-form > .player-entry__profile-submit { grid-area: submit; }
.player-entry__appearance-form > .player-entry__profile-error { grid-area: error; }
.player-entry__avatar-preview {
  position: relative;
  grid-area: avatar;
  align-self: stretch;
  min-height: min(68svh, 570px);
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid rgb(184 151 111 / 58%);
}
.player-entry__avatar-preview img {
  position: absolute;
  inset: 0 0 1px;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  image-rendering: auto;
  filter: drop-shadow(0 10px 12px rgb(0 0 0 / 34%));
  user-select: none;
  -webkit-user-drag: none;
}
.player-entry__avatar-preview span {
  position: absolute;
  right: 12%;
  bottom: 0;
  left: 12%;
  height: 1px;
  background: rgb(236 236 235 / 20%);
}
.player-entry__appearance-scroll-hint {
  position: static;
  z-index: 1;
  grid-area: hint;
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  margin: -7px 0 -4px;
  padding: 4px 3px 5px;
  align-items: center;
  justify-self: center;
  gap: 7px;
  color: rgb(246 244 238 / 72%);
  border-bottom: 1px solid rgb(184 151 111 / 48%);
  font-size: 10px;
  font-weight: 560;
  letter-spacing: .07em;
  text-shadow: 0 1px 5px rgb(0 0 0 / 78%);
  pointer-events: none;
  transform: none;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}
.player-entry__appearance-scroll-hint img {
  width: 13px;
  height: 13px;
  opacity: .72;
  transform: rotate(90deg);
}
.player-entry__appearance-scroll-hint[hidden],
.player-entry__appearance-scroll-hint.is-hidden {
  display: none;
}
.player-entry__appearance-controls {
  display: grid;
  grid-area: controls;
  align-content: start;
  gap: 17px;
}
.player-entry__avatar-sticky-preview {
  position: sticky;
  top: max(calc(env(safe-area-inset-top, 0px) + 8px), 8px);
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  min-height: 92px;
  margin: 0;
  overflow: hidden;
  align-items: stretch;
  border-block: 1px solid rgb(184 151 111 / 44%);
  color: rgb(246 244 238 / 70%);
  background: rgb(7 12 14 / 94%);
  box-shadow: 0 8px 18px rgb(0 0 0 / 18%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-5px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}
.player-entry__avatar-sticky-preview.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.player-entry__avatar-sticky-preview figcaption {
  align-self: end;
  padding: 0 0 13px 4px;
  font-size: 10px;
  font-weight: 560;
  letter-spacing: .12em;
}
.player-entry__avatar-sticky-crop {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-left: 1px solid rgb(236 236 235 / 15%);
  background: rgb(4 9 11 / 54%);
}
.player-entry__avatar-sticky-crop img {
  position: absolute;
  top: 0;
  left: 50%;
  width: 340px;
  max-width: none;
  height: auto;
  user-select: none;
  filter: drop-shadow(0 5px 7px rgb(0 0 0 / 28%));
  transform: translate(-50%, var(--entry-head-crop-y, -11%));
  -webkit-user-drag: none;
}
.player-entry__range {
  display: grid;
  gap: 7px;
}
.player-entry__range > span,
.player-entry__choice-group legend {
  color: rgb(246 244 238 / 86%);
  font-size: 12px;
  font-weight: 620;
  letter-spacing: .08em;
  text-shadow: 0 1px 5px rgb(0 0 0 / 70%);
}
.player-entry__range > span {
  display: flex;
  justify-content: space-between;
}
.player-entry__range output {
  color: #fff;
  font-weight: 650;
}
.player-entry__range input {
  appearance: none;
  width: 100%;
  height: 22px;
  margin: 0;
  outline: 0;
  background: transparent;
  cursor: pointer;
}
.player-entry__range input::-webkit-slider-runnable-track {
  height: 2px;
  background: rgb(134 105 77 / 70%);
}
.player-entry__range input::-webkit-slider-thumb {
  appearance: none;
  width: 13px;
  height: 13px;
  margin-top: -5.5px;
  border: 1px solid rgb(236 236 235 / 54%);
  border-radius: 0;
  background: var(--entry-accent-focus);
}
.player-entry__range input:focus-visible::-webkit-slider-thumb {
  outline: 2px solid #e2c989;
  outline-offset: 3px;
}
.player-entry__range input::-moz-range-track {
  height: 2px;
  background: rgb(134 105 77 / 70%);
}
.player-entry__range input::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 1px solid rgb(236 236 235 / 54%);
  border-radius: 0;
  background: var(--entry-accent-focus);
}
.player-entry__choice-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.player-entry__choice-group legend { margin-bottom: 9px; }
.player-entry__skin-options,
.player-entry__hair-options {
  display: flex;
  gap: 8px;
}
.player-entry__skin-options label,
.player-entry__hair-options label { cursor: pointer; }
.player-entry__skin-options input,
.player-entry__hair-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.player-entry__skin-options span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgb(246 244 238 / 34%);
  color: transparent;
  background: var(--swatch);
  font-size: 0;
}
.player-entry__skin-options input:checked + span {
  border-color: var(--entry-text);
  box-shadow: 0 0 0 2px rgb(11 14 16 / 74%), 0 0 0 3px var(--entry-accent-focus);
}
.player-entry__hair-options {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px 9px;
}
.player-entry__hair-options label { grid-column: span 2; }
.player-entry__hair-options label:nth-child(4) { grid-column: 2 / span 2; }
.player-entry__hair-options label:nth-child(5) { grid-column: 4 / span 2; }
.player-entry__hair-options span {
  display: grid;
  min-height: 42px;
  padding: 8px 6px;
  place-items: center;
  border: 1px solid rgb(184 151 111 / 42%);
  color: rgb(246 244 238 / 84%);
  background: rgb(5 12 15 / 42%);
  font-size: 12px;
  font-weight: 580;
  line-height: 1.3;
  text-align: center;
  text-shadow: 0 1px 5px rgb(0 0 0 / 76%);
}
.player-entry__hair-options input:checked + span {
  border-color: #e2c989;
  color: #fff;
  background: rgb(134 105 77 / 28%);
  box-shadow: inset 0 -2px 0 #e2c989;
}
.player-entry__skin-options input:focus-visible + span,
.player-entry__hair-options input:focus-visible + span {
  outline: 2px solid #e2c989;
  outline-offset: 3px;
}
.player-entry__appearance-summary {
  grid-area: summary;
  margin: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 620;
  letter-spacing: .045em;
  line-height: 1.5;
  text-shadow: 0 1px 6px rgb(0 0 0 / 78%);
}
.player-entry__appearance-note {
  grid-area: note;
  margin: -8px 0 0;
  color: rgb(246 244 238 / 68%);
  font-size: 11px;
  line-height: 1.5;
  text-shadow: 0 1px 5px rgb(0 0 0 / 72%);
}
.player-entry__profile-heading {
  display: grid;
  gap: 8px;
}
.player-entry__profile-heading > span {
  color: rgb(236 236 235 / 54%);
  font-size: 10px;
  font-weight: 520;
  letter-spacing: .14em;
}
.player-entry__profile-heading h2 {
  margin: 0;
  color: var(--entry-text);
  font-size: clamp(23px, 6.4vw, 28px);
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: .04em;
}
.player-entry__profile-heading h2:focus { outline: 0; }
.player-entry__profile-heading i {
  width: 32px;
  height: 2px;
  margin-top: 4px;
  background: var(--entry-accent);
}
.player-entry__profile-fields {
  display: grid;
  gap: 18px;
}
.player-entry__profile-field {
  display: grid;
  grid-template-columns: minmax(64px, .34fr) minmax(0, 1fr);
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid rgb(134 105 77 / 44%);
}
.player-entry__profile-field > span {
  color: rgb(246 244 238 / 75%);
  font-size: 11px;
  font-weight: 520;
  letter-spacing: .08em;
}
.player-entry__profile-field input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: var(--entry-text);
  background: transparent;
  font: inherit;
  font-size: 17px;
  font-weight: 540;
  letter-spacing: .035em;
}
.player-entry__profile-field input::placeholder { color: rgb(246 244 238 / 48%); }
.player-entry__profile-field input:focus-visible {
  box-shadow: 0 2px 0 var(--entry-accent-focus);
}
.player-entry__profile-field input[aria-invalid="true"] {
  box-shadow: 0 2px 0 #b87868;
}
.player-entry__profile-field--locked {
  grid-template-columns: minmax(64px, .34fr) minmax(0, 1fr) auto;
}
.player-entry__profile-field--locked strong {
  color: var(--entry-text);
  font-size: 17px;
  font-weight: 540;
  letter-spacing: .035em;
}
.player-entry__profile-field--locked small {
  color: rgb(236 236 235 / 38%);
  font-size: 9px;
  letter-spacing: .08em;
}
.player-entry__profile-error {
  min-height: 18px;
  margin: -16px 0 0;
  color: #d29b8c;
  font-size: 11px;
  line-height: 1.5;
}
.player-entry__profile-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 226px);
  min-height: var(--entry-row-height);
  padding: 0 8px 0 16px;
  border: 1px solid rgb(134 105 77 / 62%);
  border-radius: 0;
  color: var(--entry-text);
  background: rgb(11 14 16 / 10%);
  clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 0 100%);
  font: inherit;
  font-size: clamp(16px, 4.6vw, 19px);
  font-weight: 620;
  letter-spacing: .025em;
  cursor: pointer;
  touch-action: manipulation;
}
.player-entry__heading {
  display: grid;
  gap: 8px;
  padding-left: 12px;
  border-left: 2px solid rgb(160 126 93 / 72%);
}
.player-entry h1 {
  margin: 0;
  color: var(--entry-text);
  font-size: clamp(25px, 6.8vw, 29px);
  font-weight: 620;
  line-height: 1.12;
  letter-spacing: .065em;
  text-shadow: 0 2px 8px rgb(0 0 0 / 64%);
}
#entryTitle {
  display: inline-flex;
  width: fit-content;
  align-items: baseline;
  gap: 0;
  white-space: nowrap;
}
#entryTitle > span,
#entryTitle > strong {
  color: #f0efeb;
  font: inherit;
  letter-spacing: inherit;
}
.player-entry__title-rule {
  display: block;
  width: clamp(42px, 12vw, 54px);
  height: 1px;
  background: rgb(184 151 111 / 72%);
}
.player-entry__actions {
  display: grid;
  gap: var(--entry-row-gap);
}
.player-entry__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: var(--entry-row-height);
  padding: 0 8px 0 clamp(13px, 3.8vw, 16px);
  border: 1px solid rgb(134 105 77 / 56%);
  border-radius: 0;
  color: var(--entry-text);
  background: rgb(11 14 16 / 8%);
  clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 0 100%);
  font: inherit;
  font-size: clamp(16px, 4.6vw, 19px);
  font-weight: 620;
  line-height: 1;
  letter-spacing: .025em;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.player-entry__button:disabled {
  border-color: rgb(236 236 235 / 13%);
  color: rgb(236 236 235 / 40%);
  background: rgb(11 14 16 / 4%);
  cursor: not-allowed;
}
.player-entry__chevron {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  pointer-events: none;
  user-select: none;
}
.player-entry__button:disabled .player-entry__chevron {
  opacity: .38;
}
.player-entry__button,
.player-entry__profile-submit,
.player-entry__chevron {
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 170ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .player-entry__button:not(:disabled):hover,
  .player-entry__profile-submit:hover {
    border-color: var(--entry-accent-focus);
    background: rgb(134 105 77 / 14%);
    transform: translateX(2px);
  }
  .player-entry__button:not(:disabled):hover .player-entry__chevron,
  .player-entry__profile-submit:hover .player-entry__chevron {
    transform: translateX(3px);
  }
}
.player-entry[data-input-modality="mouse"] .player-entry__button:not(:disabled):hover,
.player-entry[data-input-modality="mouse"] .player-entry__profile-submit:hover {
  border-color: var(--entry-accent-focus);
  color: #fff;
  background: rgb(134 105 77 / 18%);
  transform: translateX(2px);
}
.player-entry[data-input-modality="mouse"] .player-entry__button:not(:disabled):hover .player-entry__chevron,
.player-entry[data-input-modality="mouse"] .player-entry__profile-submit:hover .player-entry__chevron {
  transform: translateX(3px);
}
.player-entry button:focus-visible { outline: 2px solid #e2c989; outline-offset: 3px; }
@media (max-width: 600px) {
  .player-entry__appearance-form { gap: 16px; }
  .player-entry__appearance { scroll-padding-top: 104px; }
  .player-entry__avatar-preview {
    min-height: clamp(380px, 53svh, 500px);
  }
  .player-entry__appearance-controls { gap: 16px; }
}
@media (max-width: 340px), (max-height: 620px) {
  .player-entry__scene { object-position: 50% 70%; }
  .player-entry__panel { gap: 22px; }
  .player-entry__profile { padding-top: max(calc(env(safe-area-inset-top, 0px) + 12px), 18px); }
  .player-entry__appearance { padding-top: max(calc(env(safe-area-inset-top, 0px) + 10px), 14px); }
  .player-entry__profile-form { margin-top: 12px; gap: 18px; }
  .player-entry__appearance-form {
    margin-top: 4px;
    gap: 13px;
  }
  .player-entry__appearance-controls { gap: 13px; }
  .player-entry__appearance { scroll-padding-top: 90px; }
  .player-entry__avatar-preview { min-height: 300px; }
  .player-entry__avatar-sticky-preview {
    grid-template-columns: minmax(0, 1fr) 94px;
    min-height: 78px;
  }
  .player-entry__avatar-sticky-preview figcaption { padding-bottom: 10px; }
  .player-entry__avatar-sticky-crop img {
    width: 286px;
  }
  .player-entry__skin-options span { width: 37px; height: 37px; }
  .player-entry__hair-options { gap: 6px; }
  .player-entry__hair-options span { min-height: 38px; padding-block: 6px; font-size: 10.5px; }
  .player-entry__profile-fields { gap: 10px; }
  .player-entry__profile-error { margin-top: -10px; }
}
@media (prefers-reduced-motion: reduce) {
  .player-entry, .player-entry *, .player-entry *::before, .player-entry *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Start-screen collections use the same quiet, editorial language as the
 * approved entry direction. They are records, not dashboard cards. */
.player-entry__collections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin-top: 2px;
  border-top: 1px solid rgb(236 236 235 / 18%);
}
.player-entry:not([data-entry-state="start"]) .player-entry__collections { display: none; }
.player-entry__collections button {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  justify-items: start;
  gap: 3px;
  min-width: 0;
  min-height: 50px;
  padding: 10px 0 0;
  border: 0;
  border-radius: 0;
  color: rgb(236 236 235 / 72%);
  background: transparent;
  font: inherit;
  font-size: 11px;
  letter-spacing: .06em;
  white-space: nowrap;
  cursor: pointer;
}
.player-entry__collections button + button {
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid rgb(236 236 235 / 14%);
}
.player-entry__collections small {
  display: block;
  color: rgb(236 236 235 / 42%);
  font-size: 9px;
  letter-spacing: .04em;
}
.player-entry__collections button:focus-visible {
  outline: 2px solid #e2c989;
  outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  .player-entry__collections button:hover { color: #fff; }
  .player-entry__collections button:hover small { color: rgb(236 236 235 / 68%); }
}

.collection-dialog {
  width: min(calc(100% - 24px), 430px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(134 105 77 / 58%);
  border-radius: 0;
  color: #ececeb;
  background: #0b1011;
  box-shadow: 0 18px 52px rgb(0 0 0 / 46%);
}
.collection-dialog::backdrop { background: rgb(3 7 8 / 76%); }
.collection-dialog__surface {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: calc(100dvh - 24px);
}
.collection-dialog__header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  padding: 22px 20px 17px;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgb(236 236 235 / 14%);
  background: #0b1011;
}
.collection-dialog__header > div { display: grid; gap: 5px; }
.collection-dialog__header span {
  color: #b99a75;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .14em;
}
.collection-dialog__header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 590;
  letter-spacing: .035em;
}
.collection-dialog__header h2:focus { outline: 0; }
.collection-dialog__header p {
  margin: 0;
  color: rgb(236 236 235 / 55%);
  font-size: 11px;
  line-height: 1.45;
}
.collection-dialog__close {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: rgb(236 236 235 / 66%);
  background: transparent;
  font: inherit;
  font-size: 27px;
  font-weight: 300;
  cursor: pointer;
}
.collection-dialog__close:focus-visible,
.collection-dialog__body button:focus-visible,
.collection-dialog__body summary:focus-visible {
  outline: 2px solid #e2c989;
  outline-offset: 3px;
}
.collection-dialog__body {
  min-height: 0;
  padding: 6px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.collection-empty {
  margin: 26px 0;
  color: rgb(236 236 235 / 58%);
  font-size: 13px;
  line-height: 1.7;
}
.achievement-gallery {
  margin: 0;
  padding: 0;
  list-style: none;
}
.achievement-gallery__categories {
  display: flex;
  margin: 2px 0 9px;
  gap: 5px 16px;
  overflow-x: auto;
  border-bottom: 1px solid rgb(236 236 235 / 12%);
  scrollbar-width: none;
}
.achievement-gallery__categories::-webkit-scrollbar { display: none; }
.achievement-gallery__category {
  position: relative;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 0 8px;
  color: rgb(236 236 235 / 48%);
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 10px;
  letter-spacing: .04em;
  cursor: pointer;
}
.achievement-gallery__category[aria-pressed="true"] { color: #ececeb; }
.achievement-gallery__category[aria-pressed="true"]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: rgb(199 174 135 / 84%);
  content: "";
}
.achievement-gallery__category:focus-visible { outline: 2px solid #e2c989; outline-offset: 2px; }
.achievement-gallery__item {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0 16px 10px;
  border-bottom: 1px solid rgb(236 236 235 / 11%);
}
.achievement-gallery__item::before {
  position: absolute;
  top: 17px;
  bottom: 17px;
  left: 0;
  width: 2px;
  content: "";
  background: rgb(236 236 235 / 12%);
}
.achievement-gallery__item.is-unlocked::before {
  background: rgb(185 154 117 / 88%);
}
.achievement-gallery__index {
  padding-top: 2px;
  color: rgb(185 154 117 / 72%);
  font-size: 10px;
  letter-spacing: .08em;
}
.achievement-gallery__copy { display: grid; gap: 5px; }
.achievement-gallery__copy strong {
  font-size: 14px;
  font-weight: 620;
  letter-spacing: .025em;
}
.achievement-gallery__copy span {
  color: rgb(236 236 235 / 58%);
  font-size: 11px;
  line-height: 1.55;
}
.achievement-gallery__status {
  width: fit-content;
  padding-bottom: 2px;
  color: rgb(236 236 235 / 40%);
  border-bottom: 1px solid currentcolor;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .09em;
}
.achievement-gallery__item.is-unlocked .achievement-gallery__status {
  color: rgb(211 186 145 / 92%);
}
.achievement-gallery__item.is-unlocked .achievement-gallery__copy strong { color: #f1f0eb; }
.achievement-gallery__item.is-unlocked .achievement-gallery__copy span { color: rgb(236 236 235 / 68%); }
.achievement-gallery__item.is-locked .achievement-gallery__copy strong,
.achievement-gallery__item.is-locked .achievement-gallery__index { color: rgb(236 236 235 / 37%); }
.achievement-gallery__item.is-locked .achievement-gallery__copy span { color: rgb(236 236 235 / 32%); }

.npc-gallery__group { padding: 17px 0 19px; border-bottom: 1px solid rgb(236 236 235 / 12%); }
.npc-gallery__group header {
  display: flex;
  margin-bottom: 12px;
  align-items: baseline;
  justify-content: space-between;
}
.npc-gallery__group h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 610;
  letter-spacing: .035em;
}
.npc-gallery__group header small { color: rgb(236 236 235 / 42%); font-size: 9px; }
.npc-gallery__slots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}
.npc-gallery__record,
.npc-gallery__locked { min-width: 0; }
.npc-gallery__record > summary {
  display: grid;
  gap: 6px;
  color: inherit;
  cursor: pointer;
  list-style: none;
}
.npc-gallery__record > summary::-webkit-details-marker { display: none; }
.npc-gallery__portrait,
.npc-gallery__silhouette {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-bottom: 1px solid rgb(185 154 117 / 46%);
  background: #12191a;
}
.npc-gallery__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.npc-gallery__silhouette svg {
  position: absolute;
  top: 24%;
  left: 50%;
  width: 30%;
  height: 52%;
  fill: rgb(236 236 235 / 12%);
  transform: translateX(-50%);
}
.npc-gallery__record-name,
.npc-gallery__locked-label {
  overflow: hidden;
  color: rgb(236 236 235 / 76%);
  font-size: 9px;
  line-height: 1.35;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.npc-gallery__record-role { display: none; }
.npc-gallery__locked-label { color: rgb(236 236 235 / 28%); }
.npc-gallery__record[open] {
  grid-column: 1 / -1;
  padding: 10px 0 4px;
}
.npc-gallery__record[open] > summary {
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: end;
}
.npc-gallery__record[open] .npc-gallery__portrait,
.npc-gallery__record[open] .npc-gallery__silhouette { grid-row: 1 / span 2; }
.npc-gallery__record[open] .npc-gallery__record-name {
  align-self: end;
  font-size: 14px;
  font-weight: 620;
  text-align: left;
}
.npc-gallery__record[open] .npc-gallery__record-role {
  display: block;
  align-self: start;
  color: rgb(236 236 235 / 48%);
  font-size: 10px;
}
.npc-gallery__description {
  margin: 11px 0 0 82px;
  color: rgb(236 236 235 / 62%);
  font-size: 11px;
  line-height: 1.65;
}
@media (max-width: 340px), (max-height: 620px) {
  .collection-dialog { width: min(calc(100% - 12px), 430px); max-height: calc(100dvh - 12px); }
  .collection-dialog__surface { max-height: calc(100dvh - 12px); }
  .collection-dialog__header { padding: 16px 14px 13px; }
  .collection-dialog__body { padding-right: 14px; padding-left: 14px; }
  .npc-gallery__slots { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .collection-dialog, .collection-dialog * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Collection V2: unlocked people open a dedicated portrait view instead of
 * expanding the five-column index in place. */
.npc-gallery__slot {
  display: grid;
  min-width: 0;
  padding: 0;
  gap: 6px;
  color: inherit;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.npc-gallery__slot .npc-gallery__portrait,
.npc-gallery__slot .npc-gallery__silhouette { width: 100%; }
.npc-gallery__slot-name {
  overflow: hidden;
  color: rgb(236 236 235 / 76%);
  font-size: 9px;
  line-height: 1.35;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.npc-gallery__slot-role { display: none; }
.npc-gallery__locked { display: grid; min-width: 0; gap: 6px; }
.npc-gallery__silhouette img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.npc-gallery__slot:hover .npc-gallery__portrait { border-bottom-color: rgb(226 201 137 / 74%); }

.collection-dialog--npc-detail { width: min(calc(100% - 24px), 390px); }
.npc-detail__body { display: grid; gap: 22px; padding-top: 18px; }
.npc-detail__portrait {
  width: min(72%, 230px);
  margin: 0 auto;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-bottom: 1px solid rgb(185 154 117 / 58%);
  background: #111718;
}
.npc-detail__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 16%; }
.npc-detail__section {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgb(236 236 235 / 12%);
}
.npc-detail__section h3 {
  margin: 0;
  color: rgb(199 174 135 / 78%);
  font-size: 9px;
  font-weight: 680;
  letter-spacing: .12em;
}
.npc-detail__section p,
.npc-detail__encounters { margin: 0; color: rgb(236 236 235 / 72%); font-size: 12px; line-height: 1.72; }
.npc-detail__encounters { padding: 0 0 0 18px; }
.npc-detail__encounters li { padding: 5px 0; }

.achievement-unlock {
  position: absolute;
  z-index: 36;
  top: calc(var(--faceted-hud-height, 100px) + var(--faceted-safe-top, env(safe-area-inset-top, 0px)) + 7px);
  right: 12px;
  display: grid;
  width: min(calc(100% - 24px), 292px);
  min-height: 46px;
  padding: 7px 10px 7px 9px;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  color: #ececeb;
  border: 0;
  border-top: 1px solid rgb(185 154 117 / 42%);
  border-bottom: 1px solid rgb(185 154 117 / 28%);
  border-left: 2px solid #b99a75;
  border-radius: 0;
  background: rgb(7 21 25 / 96%);
  box-shadow: 0 9px 20px rgb(0 0 0 / 27%);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.achievement-unlock[hidden] { display: none; }
.achievement-unlock__mark {
  display: grid;
  width: 22px;
  height: 30px;
  place-items: center;
  color: #c7ae87;
  border-right: 1px solid rgb(185 154 117 / 28%);
}
.achievement-unlock__mark svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}
.achievement-unlock__copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}
.achievement-unlock__copy strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.achievement-unlock__copy small {
  color: rgb(199 174 135 / 74%);
  font-size: 8px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: .09em;
}
.achievement-unlock__action {
  padding-left: 9px;
  color: rgb(236 236 235 / 58%);
  font-size: 9px;
  font-weight: 650;
  border-left: 1px solid rgb(236 236 235 / 13%);
}
.achievement-unlock:hover {
  color: #fff;
  border-left-color: #d0ae7b;
  background: rgb(10 27 31 / 98%);
}
.achievement-unlock:focus-visible { outline: 2px solid #e2c989; outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .achievement-unlock:not([hidden]) { animation: achievement-arrival 260ms cubic-bezier(.22, .72, .32, 1) both; }
}
@keyframes achievement-arrival {
  from { opacity: 0; transform: translate(10px, -2px); }
  to { opacity: 1; transform: translate(0, 0); }
}

@media (max-width: 340px), (max-height: 620px) {
  .achievement-unlock {
    top: calc(var(--faceted-hud-height, 92px) + var(--faceted-safe-top, env(safe-area-inset-top, 0px)) + 5px);
    right: 8px;
    width: min(calc(100% - 16px), 286px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .achievement-unlock:not([hidden]) { animation: none; }
}

/* V11 — keep the drag decision and the card in separate reading zones.
 * The previous fixed echo sat directly over the card headline and story copy.
 * Reserve one compact lane below the HUD, then begin the physical stack after
 * that lane. Resting cards still expose no option copy. */
.app-shell[data-visual-mode="faceted-echo"] {
  --faceted-stack-top: 216px;
}

.app-shell[data-visual-mode="faceted-echo"] .choice-echo {
  height: 92px;
  min-height: 0;
  padding-block: 7px 9px;
  overflow: hidden;
  justify-content: flex-start;
}

.app-shell[data-visual-mode="faceted-echo"] .choice-rule {
  height: 13px;
  margin-bottom: 4px;
}

.app-shell[data-visual-mode="faceted-echo"] .choice-rule b {
  font-size: 15px;
}

.app-shell[data-visual-mode="faceted-echo"] .choice-echo__copy strong {
  font-size: 16px;
  line-height: 1.24;
}

.app-shell[data-visual-mode="faceted-echo"] .choice-echo__copy em {
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.32;
}

/* The guide remains manually dismissible and logically active, but while a
 * drag preview is visible the decision copy gets the single reading lane. */
.app-shell[data-visual-mode="faceted-echo"][data-faceted-choice-preview].has-new-player-tutorial .new-player-tutorial {
  visibility: hidden;
}

/* The first-use gesture guide shares the reserved lane while the card rests.
 * On drag it yields that lane to the current option preview above. Keeping it
 * here avoids placing the guide below a short-screen card, where it was clipped. */
.app-shell[data-visual-mode="faceted-echo"] .new-player-tutorial[data-tutorial-step="first"] {
  top: calc(var(--faceted-hud-height, 100px) + var(--faceted-safe-top, env(safe-area-inset-top, 0px)) + 8px);
}

@media (min-width: 341px) and (max-height: 740px) {
  .app-shell[data-visual-mode="faceted-echo"] {
    --faceted-stack-top: 202px;
    --card-width: 242px;
    --card-height: 363px;
    --faceted-card-scale: .3361111111;
  }

  .app-shell[data-visual-mode="faceted-echo"] .choice-echo {
    height: 88px;
  }
}

@media (max-width: 340px) and (min-height: 621px) {
  .app-shell[data-visual-mode="faceted-echo"] {
    --faceted-stack-top: 196px;
    --card-width: 250px;
    --card-height: 375px;
    --faceted-card-scale: .3472222222;
  }

  .app-shell[data-visual-mode="faceted-echo"] .choice-echo {
    height: 86px;
  }
}

@media (max-height: 620px) {
  .app-shell[data-visual-mode="faceted-echo"] {
    --faceted-stack-top: 190px;
    --card-width: 232px;
    --card-height: 348px;
    --faceted-card-scale: .3222222222;
  }

  .app-shell[data-visual-mode="faceted-echo"] .choice-echo {
    height: 84px;
  }
}
