@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #f5eee4;
  --muted: #b9aca0;
  --muted-strong: #d8cabe;
  --night: #0c0a0d;
  --night-soft: #151116;
  --panel: rgba(29, 21, 26, 0.88);
  --panel-light: rgba(52, 37, 39, 0.76);
  --line: rgba(217, 181, 117, 0.22);
  --line-strong: rgba(217, 181, 117, 0.46);
  --gold: #d9b575;
  --gold-bright: #f0cf8b;
  --burgundy: #6d2438;
  --burgundy-light: #a5485f;
  --blue: #8daec2;
  --green: #91b69a;
  --danger: #d77e75;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --display: 'Cormorant Garamond', Georgia, serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--night);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 76% 10%, rgba(104, 48, 47, 0.22), transparent 30rem),
    radial-gradient(circle at 10% 36%, rgba(25, 55, 71, 0.18), transparent 34rem),
    linear-gradient(145deg, #0b090d 0%, #151015 46%, #0d0b0e 100%);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: '';
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
}

a {
  color: var(--gold-bright);
}

.loading-shell,
.no-script {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  color: var(--muted);
}

.loading-seal {
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--display);
  font-size: 2rem;
}

.no-script {
  padding: 2rem;
  text-align: center;
}

.site-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 2.65rem;
  height: 2.65rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 207, 139, 0.16), transparent 65%);
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
}

.brand-copy span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.text-button,
.quiet-button {
  border: 0;
  background: transparent;
  color: var(--muted-strong);
  font-weight: 600;
}

.text-button:hover,
.quiet-button:hover {
  color: var(--gold-bright);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.65rem;
  padding: 0.65rem 1rem;
  background: linear-gradient(135deg, rgba(217, 181, 117, 0.18), rgba(109, 36, 56, 0.28));
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--gold-bright);
  background: linear-gradient(135deg, rgba(217, 181, 117, 0.28), rgba(109, 36, 56, 0.42));
}

.button.secondary {
  border-color: rgba(245, 238, 228, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.button.danger {
  border-color: rgba(215, 126, 117, 0.4);
  color: #ffd3ce;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  line-height: 0.98;
}

h1 {
  max-width: 10ch;
  margin-bottom: 1.15rem;
  font-size: clamp(3.6rem, 7vw, 6.8rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(2.15rem, 4vw, 3.5rem);
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.75rem;
}

.lead {
  max-width: 36rem;
  margin-bottom: 1.4rem;
  color: var(--muted-strong);
  font-size: 1.07rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: center;
  min-height: 530px;
  padding: clamp(1rem, 3vw, 3rem) 0 3.5rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.7rem;
}

.meta-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(217, 181, 117, 0.24);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  background: rgba(217, 181, 117, 0.07);
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-pill::before {
  width: 0.45rem;
  height: 0.45rem;
  display: inline-block;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(217, 181, 117, 0.09);
  content: '';
}

.portrait-frame {
  position: relative;
  min-height: 500px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(217, 181, 117, 0.3);
  border-radius: 1.2rem;
  background: #111;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.portrait-frame::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(9, 7, 10, 0.95) 100%);
  content: '';
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  display: block;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.86) contrast(1.05);
}

.portrait-caption {
  position: absolute;
  right: 1.25rem;
  bottom: 1.15rem;
  left: 1.25rem;
  z-index: 2;
  color: var(--muted-strong);
  font-family: var(--display);
  font-size: 1.25rem;
  font-style: italic;
}

.portrait-caption button {
  display: block;
  margin-top: 0.55rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold-bright);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.house-note {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-left: 2px solid var(--gold);
  background: rgba(11, 9, 13, 0.58);
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 1rem 0 1.25rem;
}

.section-heading p {
  max-width: 31rem;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.access-panel,
.household-panel,
.timeline-panel,
.dashboard-panel,
.host-panel {
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.role-card {
  position: relative;
  min-height: 148px;
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  border: 1px solid rgba(245, 238, 228, 0.13);
  border-radius: 0.8rem;
  padding: 1rem;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(44, 29, 36, 0.9), rgba(22, 18, 23, 0.95));
  color: var(--ink);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.role-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 5rem;
  height: 5rem;
  border-radius: 0 0 0 100%;
  background: radial-gradient(circle at top right, rgba(217, 181, 117, 0.15), transparent 70%);
  content: '';
}

.role-card:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 181, 117, 0.5);
  background: linear-gradient(145deg, rgba(74, 38, 48, 0.96), rgba(25, 19, 25, 0.98));
}

.role-initial {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
}

.role-card small,
.role-card .role-player {
  color: var(--muted);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role-card strong {
  display: block;
  margin: 0.15rem 0 0.25rem;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1;
}

.role-card span {
  display: block;
  color: var(--muted-strong);
  font-size: 0.86rem;
  line-height: 1.35;
}

.role-card .role-card-art {
  position: relative;
  width: 4.2rem;
  height: 6.8rem;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(217, 181, 117, 0.36);
  border-radius: 0.55rem;
  background: linear-gradient(145deg, rgba(80, 50, 43, 0.9), rgba(20, 15, 19, 0.98));
}

.role-card .role-card-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 24%;
  filter: saturate(0.85) contrast(1.03);
}

.role-card .role-card-art .role-initial {
  position: absolute;
  right: 0.25rem;
  bottom: 0.25rem;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-color: rgba(245, 238, 228, 0.7);
  background: rgba(18, 13, 17, 0.86);
  color: var(--gold-bright);
  font-size: 0.95rem;
  line-height: 1;
}

.role-card .role-card-art-placeholder {
  display: grid;
  place-items: center;
}

.role-card .role-card-art-placeholder .role-initial {
  position: static;
  width: 2.7rem;
  height: 2.7rem;
  background: transparent;
  font-size: 1.45rem;
}

.role-card > span:last-child {
  min-width: 0;
}

.timeline-grid,
.scene-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.scene-card {
  min-height: 180px;
  border: 1px solid rgba(245, 238, 228, 0.13);
  border-radius: 0.8rem;
  padding: 1rem;
  background: rgba(25, 18, 23, 0.78);
}

.scene-card.live {
  border-color: var(--line-strong);
  background: linear-gradient(145deg, rgba(71, 39, 43, 0.8), rgba(25, 19, 24, 0.9));
}

.scene-card .scene-number {
  color: var(--gold);
  font-family: var(--display);
  font-size: 1.65rem;
}

.scene-card h3 {
  margin: 0.6rem 0 0.35rem;
  font-size: 1.35rem;
  line-height: 1.03;
}

.scene-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.scene-card .scene-status {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--muted-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-note {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(245, 238, 228, 0.1);
  color: var(--muted);
  font-size: 0.8rem;
}

.invitation-card {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 1.6rem);
  align-items: center;
  border-color: rgba(217, 181, 117, 0.35);
  background:
    linear-gradient(135deg, rgba(75, 41, 48, 0.72), rgba(25, 18, 24, 0.95)),
    repeating-linear-gradient(0deg, transparent 0, transparent 4px, rgba(255, 255, 255, 0.015) 5px);
}

.invitation-visual {
  width: min(100%, 210px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(217, 181, 117, 0.48);
  border-radius: 0.65rem;
  background: #161016;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

.invitation-visual img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 572 / 1024;
  object-fit: cover;
}

.invitation-placeholder {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.75rem;
  padding: 1rem;
  color: var(--muted);
  text-align: center;
}

.invitation-placeholder .role-initial {
  width: 4.5rem;
  height: 4.5rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: 2rem;
}

.invitation-placeholder span:last-child {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.invitation-copy h2 {
  max-width: 12ch;
}

.special-role {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.special-role.has-invite {
  grid-template-columns: 7rem minmax(0, 1fr);
}

.special-role > img {
  width: 7rem;
  height: 10.5rem;
  display: block;
  object-fit: cover;
  object-position: center 22%;
  border: 1px solid rgba(217, 181, 117, 0.36);
  border-radius: 0.5rem;
}

.special-role-mark {
  width: 3.3rem;
  height: 3.3rem;
  display: grid !important;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold-bright) !important;
  font-family: var(--display);
  font-size: 1.65rem !important;
}

.special-role .special-role-kicker {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--gold) !important;
  font-size: 0.68rem !important;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.special-role strong {
  display: block;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(4, 3, 5, 0.78);
  backdrop-filter: blur(12px);
}

.modal {
  width: min(100%, 460px);
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  padding: 1.5rem;
  background: linear-gradient(145deg, #271923, #120f14);
  box-shadow: var(--shadow);
}

.modal-close {
  float: right;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(245, 238, 228, 0.16);
  border-radius: 50%;
  background: transparent;
  color: var(--muted-strong);
}

.modal h2 {
  padding-right: 2.5rem;
  font-size: 2.6rem;
}

.modal p {
  color: var(--muted-strong);
}

.form-label {
  display: block;
  margin: 1.2rem 0 0.45rem;
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.code-input {
  width: 100%;
  border: 1px solid rgba(217, 181, 117, 0.36);
  border-radius: 0.6rem;
  padding: 0.85rem 0.9rem;
  outline: 0;
  background: rgba(8, 7, 9, 0.6);
  color: var(--ink);
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.form-error {
  min-height: 1.55rem;
  margin: 0.6rem 0 0;
  color: var(--danger);
  font-size: 0.88rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1rem;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  padding: 2.2rem 0 2rem;
}

.dashboard-hero h1 {
  max-width: none;
  margin-bottom: 0.55rem;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.dashboard-hero .role-label {
  margin-bottom: 0;
  color: var(--muted-strong);
  font-size: 1.05rem;
}

.private-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(215, 126, 117, 0.35);
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  color: #ffd3ce;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1rem;
  align-items: start;
}

.dashboard-main,
.dashboard-side {
  display: grid;
  gap: 1rem;
}

.card {
  border: 1px solid rgba(245, 238, 228, 0.13);
  border-radius: 0.9rem;
  padding: clamp(1.1rem, 3vw, 1.7rem);
  background: var(--panel);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

.card h2 {
  font-size: 2.25rem;
}

.card h3 {
  font-size: 1.55rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.dispatch-card {
  border-color: rgba(217, 181, 117, 0.28);
  background:
    linear-gradient(135deg, rgba(75, 41, 48, 0.78), rgba(25, 18, 24, 0.95)),
    repeating-linear-gradient(0deg, transparent 0, transparent 4px, rgba(255, 255, 255, 0.015) 5px);
}

.dispatch-text {
  color: var(--muted-strong);
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.25;
}

.info-list,
.cue-list,
.host-list {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.info-list li,
.cue-list li,
.host-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--muted-strong);
}

.info-list li::before,
.cue-list li::before,
.host-list li::before {
  position: absolute;
  top: 0.6rem;
  left: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--gold);
  content: '';
}

.label-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
}

.label {
  display: inline-block;
  border: 1px solid rgba(217, 181, 117, 0.25);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prop-card {
  border-color: rgba(141, 174, 194, 0.3);
  background: linear-gradient(145deg, rgba(30, 52, 61, 0.72), rgba(22, 19, 25, 0.95));
}

.prop-name {
  margin-bottom: 0.35rem;
  color: var(--blue);
  font-family: var(--display);
  font-size: 2rem;
}

.verdict-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(215, 126, 117, 0.32);
  background: linear-gradient(145deg, rgba(63, 25, 34, 0.86), rgba(23, 15, 21, 0.95));
}

.verdict-seal {
  width: 4.5rem;
  height: 4.5rem;
  display: grid;
  place-items: center;
  margin: 0.7rem 0 1rem;
  border: 1px solid rgba(215, 126, 117, 0.46);
  border-radius: 50%;
  color: #ffc5bd;
  font-family: var(--display);
  font-size: 2.25rem;
  box-shadow: 0 0 0 8px rgba(215, 126, 117, 0.06);
}

.verdict-result {
  margin-bottom: 0.75rem;
  color: #ffd3ce;
  font-family: var(--display);
  font-size: 2.5rem;
  line-height: 0.95;
}

.verdict-result.safe {
  color: var(--green);
}

.verdict-body {
  color: var(--muted-strong);
}

.locked-cue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px dashed rgba(217, 181, 117, 0.3);
  border-radius: 0.7rem;
  padding: 0.85rem;
  color: var(--muted);
}

.locked-cue strong {
  display: block;
  color: var(--muted-strong);
}

.locked-cue span {
  font-size: 0.8rem;
}

.cue-item {
  border-left: 2px solid var(--gold);
  padding: 0.1rem 0 0.1rem 0.85rem;
}

.cue-item strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--gold-bright);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cue-item p {
  margin-bottom: 0;
  color: var(--muted-strong);
}

details {
  border-top: 1px solid rgba(245, 238, 228, 0.12);
  padding-top: 0.85rem;
}

details + details {
  margin-top: 0.85rem;
}

summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
}

.stage-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 1rem 0 1.25rem;
}

.stage-dot {
  min-height: 5.6rem;
  border: 1px solid rgba(245, 238, 228, 0.13);
  border-radius: 0.65rem;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  text-align: left;
}

.stage-dot.active {
  border-color: var(--gold);
  background: rgba(217, 181, 117, 0.12);
  color: var(--gold-bright);
}

.stage-dot strong {
  display: block;
  margin-bottom: 0.2rem;
  color: inherit;
  font-family: var(--display);
  font-size: 1.45rem;
}

.stage-dot span {
  display: block;
  font-size: 0.72rem;
  line-height: 1.25;
}

.whisper-button {
  width: 100%;
  border: 1px solid rgba(141, 174, 194, 0.22);
  border-radius: 0.7rem;
  padding: 0.8rem 1rem;
  background: rgba(141, 174, 194, 0.06);
  color: var(--blue);
  text-align: left;
}

.whisper-button:hover {
  border-color: var(--blue);
  background: rgba(141, 174, 194, 0.11);
}

.whisper-reveal {
  margin-top: 0.8rem;
  color: var(--muted-strong);
  font-family: var(--display);
  font-size: 1.35rem;
  font-style: italic;
}

.host-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 1.35rem;
}

.host-stage-button {
  flex: 1 1 130px;
  min-height: 4.2rem;
  border: 1px solid rgba(245, 238, 228, 0.14);
  border-radius: 0.7rem;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  text-align: left;
}

.host-stage-button:hover,
.host-stage-button.active {
  border-color: var(--gold);
  background: rgba(217, 181, 117, 0.13);
  color: var(--gold-bright);
}

.host-stage-button strong {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
}

.host-stage-button span {
  display: block;
  font-size: 0.74rem;
}

.host-cue-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.host-cue-table th,
.host-cue-table td {
  padding: 0.7rem 0.55rem;
  border-bottom: 1px solid rgba(245, 238, 228, 0.1);
  text-align: left;
  vertical-align: top;
}

.host-cue-table th {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.host-cue-table td {
  color: var(--muted-strong);
}

.host-cue-table td:first-child {
  color: var(--ink);
  font-weight: 700;
}

.special-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.special-role {
  border: 1px solid rgba(245, 238, 228, 0.12);
  border-radius: 0.7rem;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
}

.special-role strong {
  display: block;
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: 1.45rem;
}

.special-role span {
  color: var(--muted);
  font-size: 0.85rem;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  max-width: min(25rem, calc(100% - 2rem));
  border: 1px solid var(--line-strong);
  border-radius: 0.7rem;
  padding: 0.8rem 1rem;
  background: #241820;
  color: var(--ink);
  box-shadow: var(--shadow);
}

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

.small {
  font-size: 0.84rem;
}

@media (max-width: 900px) {
  .role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-grid,
  .scene-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 680px) {
  .site-shell {
    width: min(100% - 1.1rem, 1180px);
    padding-top: 0.45rem;
  }

  .site-header {
    align-items: flex-start;
  }

  .brand-copy strong {
    font-size: 1.15rem;
  }

  .brand-copy span {
    font-size: 0.61rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1.8rem;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(3.3rem, 17vw, 5.1rem);
  }

  .portrait-frame,
  .portrait-frame img {
    min-height: 400px;
  }

  .role-grid,
  .timeline-grid,
  .scene-grid,
  .special-role-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .dashboard-hero,
  .footer-note {
    display: block;
  }

  .section-heading p {
    margin-top: 0.6rem;
  }

  .dashboard-hero .private-tag {
    margin-top: 1rem;
  }

  .invitation-card {
    grid-template-columns: 1fr;
  }

  .invitation-visual {
    width: min(100%, 190px);
  }

  .invitation-copy h2 {
    max-width: none;
  }

  .stage-strip {
    grid-template-columns: repeat(5, minmax(54px, 1fr));
    overflow-x: auto;
  }

  .stage-dot {
    min-width: 54px;
  }

  .stage-dot span {
    font-size: 0.64rem;
  }

  .host-cue-table {
    display: block;
    overflow-x: auto;
    white-space: normal;
  }

  .footer-note span + span {
    display: block;
    margin-top: 0.45rem;
  }
}

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