:root {
  --bg-ink: #0a0a0f;
  --panel: #141420;
  --text-main: #f9f8ff;
  --muted: #c8c4de;
  --holy-1: #f3d68f;
  --holy-2: #fff7d6;
  --evil-1: #ff3f3f;
  --evil-2: #9d031f;
  --accent: #41ff7a;
  --danger: #ff5c7a;
  --shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% 10%, #262637, var(--bg-ink) 40%),
    linear-gradient(155deg, #0c0c14, #151529 58%, #241323);
  color: var(--text-main);
}

body {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.app-shell {
  width: 100%;
  max-width: 460px;
  min-height: 100vh;
  padding: 10px 14px 18px;
  position: relative;
  overflow: hidden;
}

.screen {
  display: none;
  min-height: 100vh;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  position: relative;
  box-shadow: var(--shadow);
}

.screen.active {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: rise-in 300ms ease;
}

.hero h1,
.hero h2,
.hero h3 {
  margin: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  letter-spacing: 0.03em;
}

.hero h1 {
  font-size: 2.1rem;
}

.hero h2 {
  font-size: 1.9rem;
}

.kicker {
  margin: 0;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.subhead {
  margin: 6px 0 0;
  color: #e8e5ff;
  font-size: 0.95rem;
}

.stage-label {
  margin: 7px 0 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #ffd99f;
}

#screen-saint.stress {
  animation: saint-shudder 260ms linear;
}

.path-grid {
  display: grid;
  gap: 14px;
}

.path-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  min-height: 176px;
  padding: 16px 16px 16px 142px;
  color: #eaeaf2;
  text-align: left;
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  row-gap: 6px;
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.path-card:active {
  transform: scale(0.985);
}

.path-card .path-label {
  grid-column: 1;
  grid-row: 1;
  font-family: "Bebas Neue", Impact, sans-serif;
  letter-spacing: 0.04em;
  font-size: 1.45rem;
  text-transform: uppercase;
}

.path-card .path-icon {
  position: absolute;
  left: 16px;
  top: 39%;
  transform: translateY(-50%);
  width: 116px;
  height: 104px;
  display: grid;
  place-items: center;
}

.path-card .path-emoji {
  grid-column: 1;
  grid-row: 2;
  font-family: "Bebas Neue", Impact, sans-serif;
  letter-spacing: 0.05em;
  font-size: 2.6rem;
  line-height: 0.95;
  margin-top: -2px;
}

.path-card .path-hint {
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  font-size: 0.95rem;
}

.path-card.saint {
  color: #fff8df;
  border-color: rgba(246, 212, 132, 0.7);
  background: radial-gradient(circle at 75% 14%, rgba(255, 210, 130, 0.14), transparent 38%),
    linear-gradient(170deg, #040712, #060814 62%, #0a0c19);
  box-shadow: inset 0 0 20px rgba(245, 198, 88, 0.16), 0 10px 22px rgba(0, 0, 0, 0.38);
}

.path-card.sinner {
  color: #fff3f4;
  border-color: rgba(255, 96, 120, 0.62);
  background: radial-gradient(circle at 74% 14%, rgba(255, 100, 100, 0.1), transparent 42%),
    linear-gradient(170deg, #04050d, #070812 62%, #0c0d18);
  box-shadow: inset 0 0 20px rgba(255, 80, 100, 0.12), 0 10px 22px rgba(0, 0, 0, 0.38);
}

.path-card.saint .path-label {
  color: #f7f4f4;
}

.path-card.saint .path-emoji {
  color: #f4d57e;
  text-shadow: 0 0 10px rgba(245, 212, 126, 0.34);
}

.path-card.saint .path-hint {
  color: #dbdde7;
}

.path-card.sinner .path-label {
  color: #ffe8ec;
}

.path-card.sinner .path-emoji {
  color: #ff7180;
  text-shadow: 0 0 10px rgba(255, 102, 122, 0.3);
}

.path-card.sinner .path-hint {
  color: #ffd9df;
}

.path-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.path-card.saint .path-icon img {
  width: 114%;
  height: 114%;
  max-width: none;
}

.path-card.sinner .path-icon img {
  width: 138%;
  height: 112%;
  max-width: none;
  transform: translateX(3px);
}

.path-card.sinner .path-icon {
  top: calc(35% - 2px);
}

.saint-grid {
  display: grid;
  gap: 10px;
}

.saint-flow-step {
  display: none;
}

.saint-flow-step.active {
  display: block;
  animation: rise-in 220ms ease;
}

.diag-panel {
  background: rgba(15, 17, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px;
}

.panel-title {
  margin: 0 0 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #dbd8ee;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.panel-head .panel-title {
  margin: 0;
}

.checklist-spinner {
  width: 16px;
  height: 16px;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.22);
  border-top-color: #7df8b2;
}

.checklist {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.checklist li {
  position: relative;
  padding-left: 18px;
  font-size: 0.83rem;
  color: #b9b5cf;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #53506d;
}

.checklist li.pass {
  color: #aef8c6;
}

.checklist li.pass::before {
  background: #4dfb91;
}

.checklist li.fail {
  color: #ffc0cd;
}

.checklist li.fail::before {
  background: #ff597d;
}

.meter-track {
  height: 10px;
  background: #24263d;
  border-radius: 999px;
  overflow: hidden;
}

.meter-fill {
  width: 12%;
  height: 100%;
  background: linear-gradient(90deg, #53f9a2, #f9df81 65%, #ff667f);
  transition: width 300ms ease;
}

.status-line {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: #d8d5ec;
}

.escape-row {
  margin-top: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.escape-row.persistent {
  margin-top: auto;
}

.escape-btn {
  border: 1px solid #cbc8dc;
  border-radius: 9px;
  min-height: 40px;
  background: #f2f1f8;
  color: #1e1b31;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.escape-btn.sinner {
  border-color: #168f3b;
  min-height: 48px;
  background: linear-gradient(180deg, #48cc75, #1e9f4a);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 8px 16px rgba(21, 122, 57, 0.26);
  opacity: 1;
}

.escape-btn:active {
  transform: scale(0.99);
}

.loading-card {
  background: #13131f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  animation: spin 980ms linear infinite;
}

.load-title {
  margin: 0;
  font-weight: 600;
}

.progress-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #2a2a3c;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--holy-1), #fffef5);
  transition: width 400ms linear;
}

.progress-text {
  margin: 0;
  font-size: 0.88rem;
  color: #dfdbff;
}

.modal {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  z-index: 4;
}

.modal-escape-row {
  grid-template-columns: 1fr;
}

.modal-sinner-btn {
  width: 100%;
  min-height: 52px;
  font-size: 0.92rem;
}

.escape-link {
  border: 0;
  background: transparent;
  color: #f0f5ff;
  font-family: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.hidden {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 360px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 16px;
  background: #fefefe;
  color: #121220;
  padding: 16px;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow);
}

.modal-card h3 {
  margin: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  letter-spacing: 0.04em;
  font-size: 1.4rem;
}

.modal-card p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.45;
}

.saint-modal {
  position: relative;
  min-height: 290px;
}

.sinner-nudge-card {
  background: linear-gradient(170deg, #1b0a0f, #090813 62%);
  color: #fff4f4;
  border: 1px solid rgba(255, 133, 133, 0.32);
}

.sinner-nudge-card .cta.ghost {
  background: linear-gradient(180deg, #42c876, #1f9f4b);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(23, 130, 58, 0.3);
}

.sinner-nudge-card .cta.primary {
  background: linear-gradient(180deg, #ff5f5f, #ac0024);
  color: #fff;
}

.cta {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.cta:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.cta.primary {
  background: #09090f;
  color: #fff;
}

.cta.secondary {
  background: #f0eef7;
  color: #171622;
}

.cta.ghost {
  background: #171524;
  color: #f9f8ff;
}

.cta.tiny {
  position: absolute;
  top: 20px;
  left: 10px;
  font-size: 0.75rem;
  padding: 8px 10px;
  border-radius: 999px;
  white-space: nowrap;
  background: #eff0fa;
  color: #100f1f;
}

.evade-zone {
  position: relative;
  height: 78px;
  border: 1px dashed rgba(0, 0, 0, 0.16);
  border-radius: 10px;
  overflow: hidden;
}

.small-note {
  color: #504b63;
  font-size: 0.77rem;
}

.small-note.error-note {
  color: #c61d39;
  font-weight: 600;
}

.loading-note {
  color: #bcb7d4;
}

.error {
  background: #180f16;
  color: #fff3f8;
}

.error-main-btn {
  width: 100%;
  min-height: 52px;
  font-size: 0.95rem;
}

.slider-wrap input[type="range"] {
  width: 100%;
  accent-color: #f8d386;
}

.consent-list {
  display: grid;
  gap: 8px;
}

.consent-list label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.81rem;
  line-height: 1.3;
}

.queue-number {
  margin: 0;
  font-size: 0.9rem;
}

.queue-live {
  display: flex;
  align-items: center;
  gap: 8px;
}

.queue-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(43, 42, 64, 0.24);
  border-top-color: #2d2b41;
  animation: spin 780ms linear infinite;
}

.queue-live-status {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #595470;
}

.saint-input,
.saint-textarea {
  width: 100%;
  border: 1px solid #dbdbe8;
  border-radius: 10px;
  padding: 9px 10px;
  font-family: inherit;
  font-size: 0.86rem;
}

.captcha-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.captcha-tile {
  border: 1px solid #d8d8e6;
  border-radius: 10px;
  padding: 12px 6px;
  text-align: center;
  font-size: 0.75rem;
  background: #f8f8ff;
  color: #1f1e2f;
}

.captcha-tile:active {
  transform: scale(0.98);
}

.captcha-tile.selected {
  background: #221f34;
  color: #fff;
  border-color: #221f34;
}

.terms-box {
  background: #11131f;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 14px;
}

.sinner-main {
  flex: 1;
  display: grid;
  align-content: center;
  gap: 14px;
}

.terms-line {
  display: flex;
  gap: 10px;
  font-size: 0.89rem;
  line-height: 1.45;
  color: #f7f2fc;
}

.terms-line input {
  margin-top: 2px;
  transform: scale(1.2);
  accent-color: #ff3c3c;
}

.cta.massive {
  width: 100%;
  min-height: 30vh;
  border-radius: 18px;
  background: linear-gradient(180deg, #ff5f5f, #a00020 70%);
  color: #fff;
  letter-spacing: 0.07em;
  font-size: 1.2rem;
  animation: pulse 1.3s ease-in-out infinite;
}

.sinner-modal {
  background: #fff8f8;
}

#screen-confirm {
  background: radial-gradient(circle at 40% 10%, #210000, #050404 65%);
  overflow: hidden;
}

#screen-confirm.active {
  justify-content: center;
  align-items: center;
}

#screen-cliffhanger {
  background: radial-gradient(circle at 50% -10%, #300009, #09070f 62%);
  overflow: hidden;
}

#screen-saint-pending {
  background: radial-gradient(circle at 50% -12%, #232131, #08080f 62%);
  overflow: hidden;
}

#screen-saint-pending .hero h2 {
  color: #f5edd8;
}

#screen-saint-pending .hero .subhead {
  line-height: 1.38;
  color: #e2dceb;
}

#screen-saint-failed {
  background: radial-gradient(circle at 50% -12%, #24131a, #09070d 62%);
  overflow: hidden;
}

#screen-saint-failed .hero h2 {
  color: #ffd8e1;
}

#screen-confirm.flash {
  animation: red-flash 360ms ease 2;
}

.confirm-hero {
  z-index: 2;
}

.sinner-end-hero {
  margin-top: 0;
}

.confirm-center {
  width: min(100%, 420px);
  display: grid;
  gap: 16px;
  z-index: 2;
}

.alignment-title {
  color: #ff5151;
  text-shadow: none;
}

#screen-confirm.flash .alignment-title {
  animation: alignment-glow-pulse 760ms ease-out 1;
}

.flash-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 0, 0, 0), rgba(255, 0, 0, 0.36));
  pointer-events: none;
}

.matrix-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to bottom,
      rgba(40, 255, 120, 0.16) 1px,
      transparent 1px
    ),
    linear-gradient(to right, rgba(40, 255, 120, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.35;
  animation: matrix-drift 3.2s linear infinite;
}

.license-card {
  margin-top: 12px;
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  z-index: 2;
}

.license-card .label {
  margin: 0 0 10px;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: #ffb6b6;
}

.end-state-card {
  display: grid;
  gap: 10px;
}

.end-state-line {
  margin: 2px 0 0;
  font-weight: 600;
}

.binding-progress {
  display: grid;
  gap: 8px;
}

.binding-workline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.binding-spinner {
  width: 22px;
  height: 22px;
  border-width: 2px;
  border-color: rgba(255, 142, 142, 0.28);
  border-top-color: #ff8c8c;
  box-shadow: 0 0 14px rgba(255, 88, 88, 0.36);
}

.binding-track {
  background: #2b2326;
  height: 10px;
}

.binding-fill {
  width: 8%;
  background: linear-gradient(90deg, #ff5d5d, #ffd8d8);
}

.binding-progress-text {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffcbcb;
}

.end-binding {
  color: #ff9a9a;
  letter-spacing: 0.03em;
  animation: binding-pulse 1.2s ease-in-out infinite;
}

.pending-banner {
  position: relative;
  width: 100%;
  z-index: 5;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  transform: translateY(-20px);
  opacity: 0;
  transition: transform 320ms ease, opacity 320ms ease;
}

.pending-banner.visible {
  transform: translateY(0);
  opacity: 1;
}

.saint-pending-banner {
  margin-top: 4px;
}

.pending-head {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.saint-pending-head {
  color: #fceecf;
}

.saint-pending-head .pending-icon {
  background: #f2cd88;
  color: #221306;
}

.pending-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2a0000;
  background: #ff6f6f;
  font-size: 0.75rem;
}

.pending-body {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #ffe8e8;
}

.pending-grid {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.pending-grid.compact {
  gap: 8px;
}

.pending-chip-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pending-chip-row.minimal {
  opacity: 0.9;
}

.pending-chip {
  margin: 0;
  border: 1px solid rgba(255, 210, 210, 0.25);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 8px 9px;
  display: grid;
  gap: 2px;
}

.pending-chip .chip-label {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffd3d3;
}

.pending-chip strong {
  font-size: 0.85rem;
  color: #fff2f2;
}

.pending-chip.danger {
  border-color: rgba(255, 116, 116, 0.5);
  background: rgba(255, 85, 85, 0.16);
}

.pending-action-card {
  border: 1px solid rgba(255, 198, 120, 0.65);
  background: linear-gradient(170deg, rgba(63, 27, 16, 0.92), rgba(26, 10, 16, 0.96));
  border-radius: 18px;
  padding: 14px;
  display: grid;
  gap: 9px;
  justify-items: center;
  text-align: center;
  box-shadow: inset 0 0 34px rgba(255, 161, 91, 0.16), 0 0 26px rgba(255, 128, 64, 0.24);
}

.saint-action-card {
  border-color: rgba(242, 216, 162, 0.68);
  background: linear-gradient(170deg, rgba(43, 33, 20, 0.92), rgba(18, 14, 19, 0.96));
  box-shadow: inset 0 0 30px rgba(255, 214, 134, 0.14), 0 0 20px rgba(170, 145, 85, 0.18);
}

.saint-pending-banner.passed .saint-action-card {
  border-color: rgba(140, 226, 176, 0.72);
  box-shadow: inset 0 0 28px rgba(120, 227, 167, 0.14), 0 0 20px rgba(94, 192, 141, 0.14);
}

.saint-pending-banner.failed .saint-action-card {
  border-color: rgba(255, 182, 182, 0.68);
  box-shadow: inset 0 0 28px rgba(255, 135, 135, 0.12), 0 0 20px rgba(255, 106, 106, 0.14);
}

.pending-action-card.primary-focus {
  padding: 14px;
}

.pending-action-title {
  margin: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(1.34rem, 5.8vw, 1.96rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffdba1;
  text-shadow: 0 0 12px rgba(255, 167, 89, 0.45);
}

.saint-action-card .pending-action-title {
  color: #ffe4b0;
  text-shadow: 0 0 10px rgba(255, 213, 130, 0.3);
}

.pending-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 170, 95, 0), rgba(255, 170, 95, 0.8), rgba(255, 170, 95, 0));
}

.pending-icon-row {
  margin: 2px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.icon-badge {
  font-size: clamp(1.9rem, 9vw, 3.1rem);
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(255, 183, 119, 0.55));
}

.saint-icon-row .icon-badge {
  filter: none;
}

.pending-action-target {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.2;
}

.pending-action-headline {
  margin: 0;
  display: grid;
  gap: 2px;
  font-size: clamp(1.86rem, 7.2vw, 2.4rem);
  line-height: 1.03;
  letter-spacing: -0.01em;
  color: #fff6f2;
}

.saint-action-headline {
  font-size: clamp(1.62rem, 6.6vw, 2.15rem);
  color: #fff9ef;
  gap: 1px;
}

.pending-action-headline .headline-line {
  display: block;
}

.pending-action-headline strong {
  color: #ffffff;
  font-weight: 800;
}

.pending-action-headline .or-line {
  font-size: 0.9em;
  font-weight: 500;
  color: #f6ebda;
}

.pending-action-benefit {
  margin: 0;
  font-size: clamp(1.02rem, 4.2vw, 1.28rem);
  line-height: 1.1;
  color: #ffe7d8;
}

.saint-action-card .pending-action-benefit {
  color: #f4ebd8;
}

.pending-free-drink {
  margin: -2px 0 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(2.3rem, 9.2vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: #ffd877;
  text-shadow: 0 0 14px rgba(255, 191, 94, 0.42);
}

.saint-bonus {
  color: #ddd8d0;
  font-size: clamp(1.62rem, 6.8vw, 2.24rem);
  text-shadow: none;
}

.saint-theoretical-note {
  margin: -4px 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #d5cab5;
}

.pending-host-note {
  margin: 6px 0 0;
  font-size: clamp(0.98rem, 3.9vw, 1.2rem);
  line-height: 1.16;
  font-weight: 700;
  color: #ffe7bf;
}

.pending-passcode {
  margin: 0;
  width: 100%;
  padding: 12px 14px;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 214, 138, 0.75);
  background: rgba(19, 10, 7, 0.78);
  box-shadow: inset 0 0 14px rgba(255, 181, 106, 0.12);
}

.saint-passcode {
  border-color: rgba(244, 218, 165, 0.72);
  background: rgba(15, 11, 9, 0.82);
  box-shadow: inset 0 0 12px rgba(247, 221, 158, 0.1);
}

.passcode-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffd8a2;
}

#flow-passcode {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, "Roboto Mono", monospace;
  font-size: clamp(1.56rem, 7.2vw, 2.2rem);
  line-height: 1;
  letter-spacing: 0.12em;
  color: #fff0c1;
}

#saint-flow-passcode {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, "Roboto Mono", monospace;
  font-size: clamp(1.42rem, 6vw, 2.02rem);
  line-height: 1;
  letter-spacing: 0.1em;
  color: #f7efdc;
}

.pending-deadline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 197, 197, 0.25);
  padding-top: 8px;
  font-size: 0.78rem;
  color: #ffd7d7;
}

.pending-deadline strong {
  color: #fff;
}

.pending-footnote {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.35;
  color: #ffd0d0;
}

.pending-footnote.compact {
  font-size: 0.75rem;
  color: #ffd7d7;
}

#restart-flow {
  margin-top: auto;
}

.saint-outcome-text {
  margin: 2px 0 0;
  text-align: center;
  font-size: 0.84rem;
  line-height: 1.35;
  color: #d8d2e3;
}

.saint-outcome-text.passed {
  color: #a8efc7;
}

.saint-outcome-text.failed {
  color: #ffbbc7;
}

.saint-failed-card {
  border: 1px solid rgba(255, 170, 170, 0.38);
  border-radius: 16px;
  background: linear-gradient(170deg, rgba(52, 18, 23, 0.88), rgba(19, 12, 19, 0.94));
  padding: 14px;
  display: grid;
  gap: 8px;
}

.saint-failed-title {
  margin: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffd2dd;
}

.saint-failed-detail {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #ffe9ef;
}

.saint-failed-actions {
  display: grid;
  gap: 10px;
}

.saint-failed-actions .cta.primary {
  background: linear-gradient(180deg, #ff6262, #9d0023);
  color: #fff;
}

#saint-back-main {
  margin-top: auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 80, 80, 0.5);
  }
  50% {
    transform: scale(1.015);
    box-shadow: 0 0 0 14px rgba(255, 80, 80, 0);
  }
}

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

@keyframes red-flash {
  0% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(2) saturate(1.8);
  }
  100% {
    filter: brightness(1);
  }
}

@keyframes alignment-glow-pulse {
  0%,
  100% {
    text-shadow: none;
  }
  45% {
    text-shadow: 0 0 14px rgba(255, 70, 70, 0.75);
  }
}

@keyframes saint-shudder {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  50% {
    transform: translateX(3px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes matrix-drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(18px);
  }
}

@keyframes binding-pulse {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
}

@keyframes pending-cta-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.01);
  }
}

@media (min-width: 600px) {
  .app-shell {
    padding-top: 18px;
    padding-bottom: 24px;
  }

  .screen {
    min-height: 820px;
  }
}
