/* Persuasion — editorial story dossier */

:root {
  color-scheme: light;
  --paper: #f1efe7;
  --paper-bright: #fbfaf4;
  --paper-deep: #e5e2d7;
  --ink: #151712;
  --ink-soft: #262922;
  --muted: #6c6e65;
  --line: #cbc8bc;
  --line-dark: #8f9188;
  --acid: #d9ff63;
  --acid-strong: #c8f241;
  --coral: #ff6e54;
  --danger: #c94130;
  --success: #2f7450;
  --white: #fffef9;
  --font-display: "Moranga", "Iowan Old Style", "Book Antiqua", Georgia, serif;
  --font-sans: "Inter", "Avenir Next", "Helvetica Neue", Helvetica, sans-serif;
  --shadow-soft: 0 18px 60px rgba(21, 23, 18, 0.09);
  --header-height: 78px;
  --radius: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  min-height: 100%;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "dlig" 0;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::selection {
  color: var(--ink);
  background: var(--acid);
}

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

button,
summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

main {
  width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
}

h1 em,
h2 em {
  font-weight: 400;
}

.app-container {
  width: min(100% - 48px, 1380px);
  margin-inline: auto;
}

.page-shell {
  min-height: calc(100vh - var(--header-height));
  padding: clamp(54px, 7vw, 108px) 0 80px;
}

.page-intro h1 {
  max-width: 920px;
  font-size: clamp(3.5rem, 7vw, 7rem);
  line-height: 0.9;
}

.page-intro > p:last-child {
  max-width: 630px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
}

.eyebrow {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  line-height: 1.25;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: var(--paper-bright);
  border: 1px solid var(--line);
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 19px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-size: 0.87rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

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

.btn:focus-visible,
.text-button:focus-visible,
.story-list-action:focus-visible,
.header-nav a:focus-visible,
.header-menu summary:focus-visible,
.header-popover a:focus-visible,
.header-popover button:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.btn:disabled {
  opacity: 0.5;
}

.btn.primary {
  color: var(--paper-bright);
  background: var(--ink);
  border-color: var(--ink);
}

.btn.primary:hover:not(:disabled) {
  color: var(--ink);
  background: var(--acid);
  border-color: var(--acid);
}

.btn.secondary {
  color: var(--ink);
  background: var(--paper-bright);
  border-color: var(--line-dark);
}

.btn.secondary:hover:not(:disabled) {
  border-color: var(--ink);
}

.btn.accent {
  color: var(--ink);
  background: var(--acid);
  border-color: var(--acid);
}

.btn.accent:hover:not(:disabled) {
  background: var(--acid-strong);
  border-color: var(--acid-strong);
}

.btn.inverse {
  color: var(--paper-bright);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn.inverse:hover:not(:disabled) {
  color: var(--ink);
  background: var(--paper-bright);
}

.btn.danger {
  color: var(--paper-bright);
  background: var(--danger);
  border-color: var(--danger);
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-transform: uppercase;
  text-underline-offset: 4px;
}

.text-button:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.text-button.danger {
  color: var(--danger);
}

.action-row,
.popover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.notice {
  margin: 20px 0;
  padding: 14px 17px;
  border-left: 3px solid var(--line-dark);
  background: var(--paper-bright);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.notice.good {
  border-color: var(--success);
}

.notice.bad {
  border-color: var(--danger);
}

.field-message {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
}

.field-message.is-error {
  color: #ff9f8f;
}

.form-grid {
  display: grid;
  gap: 22px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

label small {
  margin-left: 5px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

input,
textarea,
select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  border-radius: 0;
  padding: 13px 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 450;
  letter-spacing: 0;
  outline: none;
  text-transform: none;
  transition: border-color 160ms ease;
}

input::placeholder,
textarea::placeholder {
  color: #96978f;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

textarea.large-textarea {
  min-height: 150px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--ink);
  box-shadow: 0 2px 0 var(--ink);
}

.checkbox-row {
  flex-direction: row;
  align-items: flex-start;
  gap: 13px;
  cursor: pointer;
}

.checkbox-row input {
  appearance: none;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 1px;
  padding: 0;
  border: 1px solid var(--line-dark);
  background: var(--paper-bright);
}

.checkbox-row input:checked {
  border-color: var(--ink);
  background:
    linear-gradient(var(--acid), var(--acid)) center / 12px 12px no-repeat,
    var(--paper-bright);
}

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

.checkbox-row small {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 450;
  letter-spacing: 0;
  text-transform: none;
}

/* Header */

.header-shell {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid rgba(21, 23, 18, 0.18);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(18px);
}

.site-header {
  height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.header-brand {
  width: fit-content;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  text-decoration: none;
}

.header-brand span {
  color: var(--coral);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.header-nav a {
  position: relative;
  padding: 29px 0 25px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform 160ms ease;
}

.header-nav a:hover,
.header-nav a.is-active {
  color: var(--ink);
}

.header-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
}

.header-menu {
  position: relative;
}

.header-menu > summary {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 13px 5px 7px;
  border: 1px solid var(--line);
  background: var(--paper-bright);
  font-size: 0.8rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.header-menu > summary::-webkit-details-marker {
  display: none;
}

.header-menu[open] > summary {
  border-color: var(--ink);
}

.credit-orb {
  width: 27px;
  height: 27px;
  display: block;
  border-radius: 50%;
  background:
    radial-gradient(circle at 33% 30%, var(--paper-bright) 0 7%, transparent 8%),
    var(--acid);
  border: 1px solid var(--ink);
}

.credit-menu summary.is-negative {
  color: var(--danger);
}

.account-monogram {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--paper-bright);
  background: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
}

.header-popover {
  position: absolute;
  top: calc(100% + 11px);
  right: 0;
  z-index: 60;
  width: 310px;
  padding: 22px;
  color: var(--paper-bright);
  background: var(--ink);
  border: 1px solid #34372f;
  box-shadow: var(--shadow-soft);
}

.header-popover::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 19px;
  width: 12px;
  height: 12px;
  background: var(--ink);
  border-top: 1px solid #34372f;
  border-left: 1px solid #34372f;
  transform: rotate(45deg);
}

.popover-kicker {
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-popover strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
}

.popover-copy {
  margin: 9px 0 18px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
}

.header-popover .btn {
  min-height: 40px;
  padding: 10px 12px;
  font-size: 0.74rem;
}

.header-popover-account {
  width: 250px;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 13px;
}

.account-identity {
  display: flex;
  flex-direction: column;
  padding: 8px 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.account-identity strong {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
}

.account-identity span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  text-overflow: ellipsis;
}

.header-popover-account a,
.header-popover-account button {
  width: 100%;
  display: block;
  padding: 11px 8px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
  text-align: left;
  text-decoration: none;
}

.header-popover-account a:hover,
.header-popover-account button:hover {
  color: var(--acid);
}

/* Landing */

.landing-page {
  min-height: 100vh;
  overflow: hidden;
  background: var(--paper);
}

.landing-header {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.landing-community-link {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.landing-community-link:hover {
  color: var(--ink);
}

.landing-stage {
  min-height: min(700px, calc(100vh - 92px));
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(390px, 0.72fr);
  align-items: stretch;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.landing-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(70px, 8vw, 126px) clamp(38px, 7vw, 108px);
}

.landing-copy h1 {
  max-width: 920px;
  margin: 20px 0 30px;
  font-size: clamp(4.2rem, 8vw, 8.3rem);
  line-height: 0.82;
}

.landing-copy h1 em {
  display: block;
  color: var(--coral);
}

.landing-lede {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
}

.landing-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 46px;
}

.landing-proof span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-proof span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.landing-access {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  padding: 30px;
  color: var(--paper-bright);
  background: var(--ink);
}

.access-index {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.access-mark {
  position: absolute;
  top: 74px;
  right: -34px;
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: var(--ink);
  background: var(--acid);
  transform: rotate(10deg);
}

.access-mark::before,
.access-mark::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(21, 23, 18, 0.38);
  border-radius: 50%;
}

.access-mark::after {
  inset: 25px;
  border-style: dashed;
}

.access-mark span {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 2.5rem;
  transform: rotate(-10deg);
}

.access-content {
  position: absolute;
  right: 30px;
  bottom: 48px;
  left: 30px;
}

.access-content .eyebrow {
  color: rgba(255, 255, 255, 0.48);
}

.access-content h2 {
  margin: 12px 0 9px;
  font-size: clamp(2.3rem, 3.2vw, 3.6rem);
  line-height: 0.96;
}

.access-content > p:not(.eyebrow, .field-message) {
  max-width: 390px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
}

.landing-login-form {
  display: grid;
  gap: 19px;
  margin-top: 28px;
}

.landing-login-form label {
  color: rgba(255, 255, 255, 0.62);
}

.landing-login-form input {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.38);
}

.landing-login-form input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.landing-login-form input:focus {
  border-color: var(--acid);
  box-shadow: 0 2px 0 var(--acid);
}

.landing-login-form .btn {
  width: 100%;
  justify-content: space-between;
}

.access-content > .btn.inverse {
  width: 100%;
  margin-top: 10px;
}

.access-success {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 24px;
  padding: 14px;
  color: var(--ink);
  background: var(--acid);
}

.access-success > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.access-success strong {
  display: block;
  font-size: 0.85rem;
}

.access-success p {
  font-size: 0.76rem;
}

.landing-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-top: 0;
}

.landing-mode {
  min-height: 350px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(28px, 4vw, 70px);
  padding: clamp(40px, 5vw, 74px);
  background: var(--paper-bright);
}

.landing-mode + .landing-mode {
  border-left: 1px solid var(--line);
}

.landing-mode.is-dark {
  color: var(--paper-bright);
  background: var(--ink-soft);
}

.landing-mode.is-dark .eyebrow,
.landing-mode.is-dark p {
  color: rgba(255, 255, 255, 0.55);
}

.mode-number {
  color: var(--coral);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 2.5rem;
  line-height: 1;
}

.landing-mode h2 {
  margin: 14px 0;
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  line-height: 0.95;
}

.landing-mode p:last-child {
  max-width: 480px;
  color: var(--muted);
}

.landing-mode.is-dark p:last-child {
  color: rgba(255, 255, 255, 0.55);
}

.landing-footer {
  height: 110px;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Home */

.home-intro {
  max-width: 880px;
  margin-bottom: clamp(52px, 7vw, 96px);
}

.home-intro h1 {
  margin: 16px 0 25px;
}

.home-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}

.home-mode-card {
  min-height: 650px;
  display: grid;
  grid-template-rows: auto 250px 1fr;
  color: var(--ink);
  background: var(--paper-bright);
  text-decoration: none;
}

.home-mode-card + .home-mode-card {
  border-left: 1px solid var(--line);
}

.home-mode-card.agent-mode {
  color: var(--paper-bright);
  background: var(--ink);
}

.home-mode-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.agent-mode .home-mode-topline {
  color: rgba(255, 255, 255, 0.58);
  border-color: rgba(255, 255, 255, 0.18);
}

.home-mode-art {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.agent-mode .home-mode-art {
  border-color: rgba(255, 255, 255, 0.18);
}

.mode-art-word {
  position: absolute;
  right: 8%;
  bottom: 13%;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 6rem);
  transform: rotate(-5deg);
}

.story-mode .mode-art-word {
  color: var(--coral);
}

.agent-mode .mode-art-word {
  color: var(--acid);
  transform: rotate(3deg);
}

.orbit {
  position: absolute;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.orbit-one {
  width: 330px;
  height: 330px;
  top: -115px;
  left: -40px;
}

.orbit-two {
  width: 170px;
  height: 170px;
  top: 62px;
  left: 120px;
  background: var(--acid);
}

.agent-grid-art {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}

.agent-node {
  position: absolute;
  z-index: 2;
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  border: 1px solid var(--acid);
  border-radius: 50%;
  color: var(--ink);
  background: var(--acid);
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.node-one {
  top: 38px;
  left: 14%;
}

.node-two {
  right: 19%;
  bottom: 30px;
}

.agent-path {
  position: absolute;
  top: 75px;
  left: 18%;
  width: 65%;
  height: 1px;
  background: var(--acid);
  transform: rotate(13deg);
  transform-origin: left;
}

.home-mode-copy {
  align-self: end;
  padding: clamp(30px, 4vw, 55px);
}

.agent-mode .eyebrow,
.agent-mode .home-mode-copy > p {
  color: rgba(255, 255, 255, 0.55);
}

.home-mode-copy h2 {
  margin: 15px 0 22px;
  font-size: clamp(2.6rem, 4.3vw, 4.7rem);
  line-height: 0.94;
}

.home-mode-copy > p {
  max-width: 500px;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  gap: 16px;
  margin-top: 31px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-mode-card:hover .text-link b {
  transform: translateX(5px);
}

.text-link b {
  transition: transform 160ms ease;
}

/* Stories */

.stories-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(290px, 0.7fr);
  gap: 60px;
  align-items: end;
  padding-bottom: clamp(55px, 8vw, 110px);
}

.stories-hero h1 {
  margin-top: 16px;
}

.stories-hero-aside {
  padding: 25px 0 8px;
  border-top: 1px solid var(--ink);
}

.stories-hero-aside > p {
  margin-bottom: 28px;
  color: var(--muted);
}

.story-catalogue {
  border-top: 1px solid var(--ink);
}

.catalogue-heading {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.story-list {
  border-top: 1px solid var(--line);
}

.story-list-item {
  min-height: 170px;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  align-items: center;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms ease;
}

.story-list-item:hover {
  background: var(--paper-bright);
}

.story-list-index {
  align-self: stretch;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--coral);
  font-family: var(--font-display);
  font-size: 2rem;
}

.story-list-copy {
  min-width: 0;
  padding: 28px 0;
}

.story-list-copy h3 {
  overflow: hidden;
  margin: 8px 0 9px;
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-list-copy > p:last-child {
  color: var(--muted);
  font-size: 0.78rem;
}

.story-list-action {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  margin-right: 28px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.story-list-action b {
  display: none;
}

.story-list-action:hover {
  background: var(--acid);
  transform: rotate(-8deg);
}

.empty-state {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.empty-state-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--acid);
  font-family: var(--font-display);
  font-size: 2rem;
}

.empty-state h3 {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 1.7rem;
}

.empty-state p {
  font-size: 0.85rem;
}

/* Arena */

.arena-hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(500px, 1.1fr);
  border: 1px solid var(--line);
}

.arena-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(45px, 6vw, 90px);
}

.arena-copy h1 {
  margin: 20px 0 30px;
  font-size: clamp(4rem, 6.5vw, 7rem);
  line-height: 0.86;
}

.arena-copy h1 em {
  color: var(--coral);
}

.arena-lede {
  max-width: 540px;
  color: var(--muted);
  font-size: 1.08rem;
}

.arena-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 42px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--coral) 18%, transparent);
}

.arena-visual {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    var(--ink);
  background-size: 42px 42px;
}

.arena-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(217, 255, 99, 0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-outer {
  width: min(75%, 490px);
  aspect-ratio: 1;
}

.ring-inner {
  width: min(44%, 280px);
  aspect-ratio: 1;
  border-style: dashed;
}

.arena-contender {
  position: absolute;
  width: 122px;
  height: 122px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
}

.arena-contender span {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.75;
}

.arena-contender small {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.contender-a {
  top: 27%;
  left: 17%;
  background: var(--acid);
}

.contender-b {
  right: 16%;
  bottom: 25%;
  background: var(--coral);
}

.arena-coordinate {
  position: absolute;
  left: 22px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.arena-coordinate.top {
  top: 20px;
}

.arena-coordinate.bottom {
  bottom: 20px;
}

.arena-process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-top: 0;
}

.arena-process article {
  min-height: 230px;
  padding: 35px;
}

.arena-process article + article {
  border-left: 1px solid var(--line);
}

.arena-process article > span {
  color: var(--coral);
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.arena-process h2 {
  margin: 25px 0 9px;
  font-size: 2.1rem;
}

.arena-process p {
  max-width: 300px;
  color: var(--muted);
  font-size: 0.84rem;
}

/* Creator */

.creator-page-head {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  column-gap: 60px;
  align-items: end;
  padding-bottom: clamp(60px, 8vw, 110px);
}

.creator-page-head > .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 18px;
}

.creator-page-head h1 {
  font-size: clamp(3.8rem, 7vw, 7rem);
}

.creator-page-head h1 em {
  color: var(--coral);
}

.creator-page-head > p:last-child {
  margin-bottom: 8px;
}

.creator-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(45px, 7vw, 100px);
  align-items: start;
  border-top: 1px solid var(--ink);
}

.creator-guide {
  position: sticky;
  top: calc(var(--header-height) + 34px);
  padding-top: 35px;
}

.creator-guide ol {
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.creator-guide li {
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.creator-guide li > span {
  color: var(--coral);
  font-family: var(--font-display);
}

.creator-guide li p {
  color: var(--muted);
  font-size: 0.78rem;
}

.creator-guide li strong {
  display: block;
  color: var(--ink);
}

.creator-guide-note {
  padding: 15px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}

.creator-form {
  min-width: 0;
}

.form-section {
  padding: 38px 0 65px;
  border-bottom: 1px solid var(--ink);
}

.form-section-heading,
.admin-module-heading {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 40px;
}

.form-section-heading > span,
.admin-module-heading > span {
  color: var(--coral);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 2rem;
  line-height: 1;
}

.form-section-heading h2,
.admin-module-heading h2 {
  margin-top: 7px;
  font-size: clamp(2rem, 3.2vw, 3.3rem);
  line-height: 1;
}

.character-editors {
  display: grid;
  gap: 18px;
}

.character-editor {
  min-width: 0;
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: 24px 35px;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--paper-bright);
}

.character-editor legend {
  padding: 0 12px;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.character-editor legend span {
  margin-right: 8px;
  color: var(--coral);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.character-editor label:nth-of-type(2) {
  grid-row: span 2;
}

.character-editor .text-button {
  justify-self: start;
}

.add-character-button {
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 18px;
  border: 1px dashed var(--line-dark);
  background: transparent;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.add-character-button span {
  color: var(--ink);
  font-size: 1.4rem;
}

.add-character-button:hover {
  color: var(--ink);
  border-style: solid;
  background: var(--paper-bright);
}

.creator-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 35px 0;
}

.creator-submit > div > p:last-child {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Profile */

.profile-layout {
  min-height: 670px;
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  border: 1px solid var(--line);
}

.profile-intro {
  position: relative;
  overflow: hidden;
  padding: clamp(45px, 7vw, 100px);
  color: var(--paper-bright);
  background: var(--ink);
}

.profile-intro::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -100px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(217, 255, 99, 0.55);
  border-radius: 50%;
  box-shadow:
    0 0 0 50px rgba(217, 255, 99, 0.06),
    0 0 0 100px rgba(217, 255, 99, 0.03);
}

.profile-intro .eyebrow {
  color: rgba(255, 255, 255, 0.5);
}

.profile-intro h1 {
  position: relative;
  z-index: 1;
  margin: 22px 0 28px;
  font-size: clamp(3.7rem, 6vw, 6.7rem);
  line-height: 0.88;
}

.profile-intro h1 em {
  color: var(--acid);
}

.profile-intro > p {
  position: relative;
  z-index: 1;
  max-width: 460px;
  color: rgba(255, 255, 255, 0.58);
}

.profile-email {
  position: absolute;
  bottom: 35px;
  left: clamp(45px, 7vw, 100px);
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-form {
  align-self: center;
  padding: clamp(40px, 6vw, 80px);
}

.form-intro {
  margin: -15px 0 32px;
  color: var(--muted);
  font-size: 0.82rem;
}

.profile-form .btn {
  width: 100%;
  justify-content: space-between;
  margin-top: 32px;
}

/* Admin */

.admin-head {
  padding-bottom: 70px;
}

.admin-head h1 {
  margin: 16px 0 20px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--line);
}

.admin-module {
  min-width: 0;
  padding: clamp(30px, 4vw, 52px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-bright);
}

.admin-module-wide {
  grid-column: 1 / -1;
}

.provider-selector {
  display: grid;
  border-top: 1px solid var(--line);
}

.provider-selector button {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.provider-selector button > span {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
}

.provider-selector button i {
  width: 9px;
  height: 9px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
}

.provider-selector button small {
  font-size: 0.66rem;
}

.provider-selector button.is-active {
  color: var(--ink);
}

.provider-selector button.is-active i {
  border-color: var(--ink);
  background: var(--acid);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--acid) 30%, transparent);
}

.assistant-form {
  display: grid;
  grid-template-columns: minmax(250px, 0.45fr) minmax(0, 1fr);
  gap: 35px;
}

.assistant-form-meta {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.assistant-prompt-field {
  min-height: 230px;
}

.assistant-form .btn {
  grid-column: 2;
  justify-self: end;
}

.admin-delete-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
  margin-bottom: 50px;
}

/* Game */

.game-page-shell {
  padding: 34px 0 12px;
}

.game-page-container {
  min-height: 0;
}

.game-titlebar {
  min-height: 74px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 20px;
}

.game-titlebar h1 {
  margin-top: 6px;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 0.95;
}

.intro-band {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  background: var(--paper-bright);
}

.intro-band__inner {
  display: grid;
  grid-template-columns: 135px 1fr auto;
  gap: 25px;
  align-items: start;
  padding: 19px 22px;
}

.intro-band__copy {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  line-height: 1.55;
}

.intro-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  background: var(--paper-bright);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(270px, 0.7fr) minmax(0, 1.3fr);
  gap: 12px;
}

.game-characters,
.character-panel {
  min-height: 0;
}

.character-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--paper-bright);
}

.character-panel-heading {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.character-panel-heading > span {
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-deep);
  font-size: 0.69rem;
  font-weight: 700;
}

.character-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.character-summary {
  position: relative;
  width: 100%;
  min-height: 100px;
  display: grid;
  grid-template-columns: 30px 48px minmax(0, 1fr) 24px;
  gap: 11px;
  align-items: center;
  padding: 15px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.character-summary:hover:not(:disabled) {
  background: var(--paper);
}

.character-summary.is-active {
  color: var(--paper-bright);
  background: var(--ink);
}

.character-summary.is-inactive {
  color: var(--ink);
}

.character-summary:disabled {
  opacity: 0.68;
}

.character-index {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.is-active .character-index {
  color: var(--acid);
}

.character-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper-deep);
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.is-active .character-avatar {
  color: var(--ink);
  background: var(--acid);
  border-color: var(--acid);
}

.character-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.character-name {
  overflow: hidden;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.character-summary-copy {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.is-active .character-summary-copy {
  color: rgba(255, 255, 255, 0.55);
}

.character-arrow {
  color: var(--muted);
  transition: transform 160ms ease;
}

.character-summary:hover .character-arrow,
.is-active .character-arrow {
  transform: translateX(3px);
}

.character-placeholder {
  min-height: 100px;
  display: grid;
  place-items: center;
  padding: 20px;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
}

.chat-panel {
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-bright);
}

.chat-shell {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: 70px minmax(0, 1fr) auto;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
}

.chat-header strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}

.conversation-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.conversation-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.messages {
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(22px, 4vw, 48px);
  background:
    linear-gradient(rgba(21, 23, 18, 0.025) 1px, transparent 1px);
  background-size: 100% 52px;
}

.conversation-empty {
  max-width: 460px;
  margin: auto;
  text-align: center;
}

.conversation-empty > span {
  display: block;
  height: 70px;
  color: var(--coral);
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
}

.conversation-empty h3 {
  margin-bottom: 10px;
  font-size: 2.2rem;
}

.conversation-empty p {
  color: var(--muted);
  font-size: 0.86rem;
}

.message {
  max-width: min(78%, 680px);
}

.message.user {
  align-self: flex-end;
  padding: 17px 20px;
  color: var(--ink);
  background: var(--acid);
}

.message.character {
  align-self: flex-start;
  padding: 0 0 0 18px;
  border-left: 2px solid var(--coral);
}

.message.is-streaming {
  opacity: 0.82;
}

.message-meta {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.message.user .message-meta {
  color: color-mix(in srgb, var(--ink) 62%, transparent);
}

.message-body {
  font-family: var(--font-sans);
  font-size: clamp(0.92rem, 1.2vw, 1rem);
  line-height: 1.6;
}

.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: var(--paper-bright);
}

.composer textarea {
  min-height: 63px;
  max-height: 170px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font-sans);
}

.composer textarea:focus {
  border-color: var(--ink);
  box-shadow: none;
}

.composer .send-btn {
  min-width: 112px;
  height: 63px;
  justify-content: space-between;
}

.chat-error {
  margin: 0;
  border-left: 3px solid var(--danger);
}

/* Results and loading */

.status-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 30px;
  background: var(--paper);
  text-align: center;
}

.status-screen h1 {
  max-width: 650px;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1;
}

.status-pulse {
  width: 36px;
  height: 36px;
  display: block;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
  animation: status-pulse 1.3s ease-in-out infinite;
}

.status-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--paper-bright);
  background: var(--danger);
  font-family: var(--font-display);
  font-size: 2rem;
}

.loading-panel {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: var(--muted);
}

.result-panel {
  max-width: 780px;
  margin: 8vh auto 0;
  padding: clamp(45px, 8vw, 100px);
  border: 1px solid var(--line);
  background: var(--paper-bright);
  text-align: center;
}

.result-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 30px;
  border-radius: 50%;
  background: var(--acid);
  font-family: var(--font-display);
  font-size: 2rem;
}

.result-panel h1 {
  margin: 16px 0 20px;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 0.95;
}

.result-panel > p:not(.eyebrow) {
  margin-bottom: 30px;
  color: var(--muted);
}

/* Scrollbars and motion */

.messages,
.character-grid {
  scrollbar-color: var(--line-dark) transparent;
  scrollbar-width: thin;
}

@keyframes status-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(217, 255, 99, 0.45);
    transform: scale(0.88);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(217, 255, 99, 0);
    transform: scale(1);
  }
}

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

/* Tablet */

@media (max-width: 980px) {
  :root {
    --header-height: 116px;
  }

  .app-container {
    width: min(100% - 32px, 1380px);
  }

  .site-header {
    height: var(--header-height);
    grid-template-columns: 1fr auto;
    grid-template-rows: 58px 58px;
  }

  .header-brand {
    grid-column: 1;
  }

  .header-actions {
    grid-column: 2;
  }

  .header-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    align-self: stretch;
    gap: 28px;
    border-top: 1px solid var(--line);
  }

  .header-nav a {
    padding: 19px 0 14px;
  }

  .landing-stage,
  .landing-modes,
  .home-modes,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .landing-stage {
    border-right: 0;
    border-left: 0;
  }

  .landing-access {
    min-height: 610px;
  }

  .landing-mode + .landing-mode,
  .home-mode-card + .home-mode-card {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .stories-hero,
  .creator-page-head {
    grid-template-columns: 1fr;
  }

  .stories-hero-aside {
    max-width: 620px;
  }

  .arena-hero {
    grid-template-columns: 1fr;
  }

  .arena-visual {
    min-height: 520px;
  }

  .creator-layout {
    grid-template-columns: 1fr;
  }

  .creator-guide {
    position: static;
    display: none;
  }

  .profile-intro {
    min-height: 580px;
  }

  .profile-form {
    min-height: 540px;
  }

  .game-layout {
    height: auto !important;
    display: flex;
    flex-direction: column;
  }

  .chat-panel {
    order: -1;
    min-height: 65vh;
  }

  .character-panel {
    height: auto;
  }

  .character-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
  }

  .character-summary {
    border-right: 1px solid var(--line);
  }

  .character-placeholder {
    display: none;
  }
}

/* Mobile */

@media (max-width: 680px) {
  :root {
    --header-height: 108px;
  }

  .app-container {
    width: min(100% - 22px, 1380px);
  }

  .page-shell {
    padding: 42px 0 60px;
  }

  .page-intro h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .site-header {
    grid-template-rows: 54px 54px;
    gap: 0 14px;
  }

  .header-brand {
    font-size: 1.42rem;
  }

  .header-summary-label {
    display: none;
  }

  .header-menu > summary {
    height: 39px;
    padding-right: 7px;
  }

  .header-nav {
    gap: 22px;
  }

  .header-nav a {
    padding-top: 17px;
    font-size: 0.67rem;
  }

  .header-popover {
    position: fixed;
    top: 60px;
    right: 11px;
    left: 11px;
    width: auto;
  }

  .header-popover::before {
    display: none;
  }

  .landing-header {
    height: 72px;
  }

  .landing-stage {
    width: 100%;
  }

  .landing-copy {
    padding: 66px 22px 75px;
  }

  .landing-copy h1 {
    font-size: clamp(3.35rem, 14.4vw, 3.75rem);
  }

  .landing-proof {
    flex-direction: column;
  }

  .landing-access {
    min-height: 580px;
    padding: 22px;
  }

  .access-content {
    right: 22px;
    bottom: 32px;
    left: 22px;
  }

  .access-mark {
    top: 55px;
    right: -10px;
    width: 135px;
    height: 135px;
  }

  .landing-mode {
    min-height: 330px;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 35px 24px;
  }

  .landing-footer {
    height: 90px;
  }

  .home-mode-card {
    min-height: 610px;
  }

  .home-mode-copy {
    padding: 28px 23px 36px;
  }

  .home-mode-copy h2 {
    font-size: 2.8rem;
  }

  .stories-hero {
    gap: 38px;
  }

  .story-list-item {
    min-height: 150px;
    grid-template-columns: 48px minmax(0, 1fr) 52px;
    gap: 13px;
  }

  .story-list-index {
    font-size: 1.2rem;
  }

  .story-list-copy h3 {
    font-size: 1.9rem;
  }

  .story-list-action {
    width: 42px;
    height: 42px;
    margin-right: 8px;
  }

  .story-list-action span {
    display: none;
  }

  .story-list-action b {
    display: block;
  }

  .empty-state {
    align-items: flex-start;
    padding: 48px 20px;
  }

  .arena-copy {
    padding: 45px 24px 55px;
  }

  .arena-copy h1 {
    font-size: 4rem;
  }

  .arena-visual {
    min-height: 440px;
  }

  .arena-contender {
    width: 90px;
    height: 90px;
  }

  .arena-contender span {
    font-size: 3rem;
  }

  .arena-process {
    grid-template-columns: 1fr;
  }

  .arena-process article {
    min-height: 180px;
  }

  .arena-process article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .creator-page-head h1 {
    font-size: 3.7rem;
  }

  .form-section-heading,
  .admin-module-heading {
    grid-template-columns: 38px 1fr;
    gap: 13px;
  }

  .character-editor {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }

  .character-editor label:nth-of-type(2) {
    grid-row: auto;
  }

  .creator-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .creator-submit .btn {
    width: 100%;
    justify-content: space-between;
  }

  .profile-intro {
    min-height: 520px;
    padding: 45px 25px;
  }

  .profile-intro h1 {
    font-size: 3.8rem;
  }

  .profile-email {
    bottom: 28px;
    left: 25px;
  }

  .profile-form {
    min-height: 500px;
    padding: 42px 24px;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-module-wide {
    grid-column: auto;
  }

  .assistant-form {
    grid-template-columns: 1fr;
  }

  .assistant-form .btn {
    grid-column: auto;
    justify-self: stretch;
  }

  .admin-delete-form {
    grid-template-columns: 1fr;
  }

  .game-page-shell {
    padding-top: 26px;
  }

  .game-titlebar {
    align-items: flex-end;
  }

  .game-titlebar h1 {
    font-size: 2.5rem;
  }

  .intro-band__inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .intro-band__inner > .eyebrow {
    grid-column: 1;
  }

  .intro-band__copy {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .intro-band__toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .character-grid {
    grid-template-columns: 1fr;
  }

  .character-summary {
    border-right: 0;
  }

  .chat-panel {
    min-height: 70vh;
  }

  .messages {
    padding: 24px 18px;
  }

  .message {
    max-width: 90%;
  }

  .composer {
    grid-template-columns: 1fr;
  }

  .composer .send-btn {
    width: 100%;
    height: 48px;
  }

  .result-panel {
    margin-top: 2vh;
    padding: 45px 24px;
  }
}
