:root {
  --bg: #0d1b2a;
  --paper-deep: #d4bd8a;
  --line: rgba(255, 248, 230, 0.16);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --success: #9ae6b4;
  --warning: #fbd38d;
  --danger: #fecaca;
  --info: #bfdbfe;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
  color: #f8f2e6;
  background:
    radial-gradient(circle at top, rgba(205, 168, 93, 0.24), transparent 35%),
    linear-gradient(180deg, #182b43 0%, #0d1b2a 55%, #0a1420 100%);
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
  align-items: stretch;
}

.eyebrow {
  margin: 0 0 0.35rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--paper-deep);
}

h1,
h2,
h3,
.summary-value,
.panel-value {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.98;
}

h2 {
  font-size: 1.65rem;
  color: #fff3d5;
}

h3 {
  font-size: 1.1rem;
  color: #fff3d5;
}

.hero-copy,
.hero-credit {
  margin: 0.8rem 0 0;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 232, 185, 0.84);
}
.panel-note,
.summary-detail,
.card,
.placeholder-card p,
.roadmap-note,
.helper-text,
li {
  line-height: 1.55;
}

.hero-panel,
.card,
.summary-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(10, 20, 32, 0.46);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 1.4rem;
  align-self: end;
}

.panel-label,
.summary-label,
.field span {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-deep);
}

.panel-value,
.summary-value {
  margin: 0.35rem 0;
}

.panel-value {
  font-size: 1.6rem;
}

.summary-value {
  font-size: 2.45rem;
}

.panel-note,
.hero-copy,
.summary-detail,
.helper-text,
.muted {
  margin: 0.4rem 0 0;
  color: rgba(248, 242, 230, 0.84);
}

.view-switcher {
  display: inline-flex;
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(8, 16, 26, 0.62);
  border: 1px solid var(--line);
}

.nav-button {
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  color: #f8f2e6;
  background: transparent;
  cursor: pointer;
}

.nav-button.is-active {
  background: linear-gradient(135deg, rgba(205, 168, 93, 0.2), rgba(205, 168, 93, 0.35));
  color: #fff8e8;
}

main {
  display: grid;
  gap: 1rem;
}

.summary-grid,
.content-grid,
.form-grid,
.preview-list,
.role-count-summary,
.assistant-summary {
  display: grid;
  gap: 1rem;
}

.summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.content-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid,
.preview-list,
.role-count-summary,
.assistant-summary {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.summary-card,
.card {
  padding: 1.3rem 1.4rem;
}

.card,
.card li,
.roadmap-note,
.placeholder-card p {
  color: rgba(248, 242, 230, 0.88);
}

.plain-list,
.issue-list,
.note-list {
  margin: 0;
  padding-left: 1.15rem;
}

.card-heading {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 1rem;
}

.roadmap-note {
  margin: 0;
  max-width: 28rem;
  text-align: right;
}

.roadmap-list {
  display: grid;
  gap: 0.85rem;
}

.roadmap-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 248, 230, 0.06);
  border: 1px solid rgba(255, 248, 230, 0.08);
}

.status-pill,
.preview-chip,
.alias-chip,
.role-badge,
.assistant-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill.done,
.preview-chip.saved,
.alias-chip,
.assistant-step-number {
  background: rgba(47, 133, 90, 0.18);
  color: var(--success);
}

.status-pill.next,
.preview-chip.alias,
.role-badge.good {
  background: rgba(53, 92, 125, 0.24);
  color: var(--info);
}

.status-pill.queued,
.preview-chip.new,
.role-badge.evil {
  background: rgba(251, 211, 141, 0.18);
  color: var(--warning);
}

.preview-chip.empty,
.preview-chip.invalid {
  background: rgba(255, 248, 230, 0.08);
  color: rgba(248, 242, 230, 0.8);
}

.roadmap-item h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #fff3d5;
}

.roadmap-item p {
  margin: 0.35rem 0 0;
  color: rgba(248, 242, 230, 0.76);
}

.new-game-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.stack-form,
.saved-player-list,
.draft-preview,
.board-editor,
.roster-slots,
.preview-roster,
.role-selection-grid,
.assistant-steps,
.player-registry-panel {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 248, 230, 0.08);
  background: rgba(255, 248, 230, 0.04);
}

.player-registry-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: end;
}

.player-registry-bucket {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 248, 230, 0.08);
  background: rgba(255, 248, 230, 0.04);
}

.player-registry-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 0.85rem;
}

.player-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-status-chip.is-registered {
  background: rgba(71, 146, 92, 0.18);
  color: var(--success);
}

.player-status-chip.is-retired {
  background: rgba(205, 168, 93, 0.16);
  color: var(--warning);
}

.saved-player.is-inactive {
  opacity: 0.9;
}

.saved-player-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.9rem;
}

.player-picker-grid {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field input,
.field select {
  width: 100%;
  border: 1px solid rgba(255, 248, 230, 0.15);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  background: rgba(7, 15, 24, 0.78);
  color: #fff8e8;
}

.compact-field {
  max-width: 220px;
}

.field input:focus,
.field select:focus {
  outline: 2px solid rgba(205, 168, 93, 0.35);
  outline-offset: 2px;
}

.team-split-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(320px, 1.25fr);
  gap: 1rem;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 248, 230, 0.08);
  background: rgba(255, 248, 230, 0.04);
}

.team-split-controls,
.team-clash-panel {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.team-split-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.team-split-card {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 248, 230, 0.1);
  background: rgba(255, 248, 230, 0.05);
}

.team-split-card.is-good {
  border-color: rgba(96, 165, 250, 0.18);
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.12), rgba(255, 248, 230, 0.04));
}

.team-split-card.is-evil {
  border-color: rgba(248, 113, 113, 0.18);
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.12), rgba(255, 248, 230, 0.04));
}

.team-split-card h3 {
  margin-top: 0.25rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.team-split-slider-field {
  gap: 0.7rem;
}

.team-split-slider-field input[type="range"] {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(71, 130, 184, 0.86) 0%, rgba(255, 202, 122, 0.72) 50%, rgba(142, 40, 40, 0.85) 100%);
  appearance: none;
  height: 0.7rem;
  box-shadow: inset 0 0 0 1px rgba(255, 248, 230, 0.12);
}

.team-split-slider-field input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 248, 230, 0.86);
  background: #102033;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
}

.team-split-slider-field input[type="range"]::-moz-range-thumb {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 248, 230, 0.86);
  background: #102033;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
}

.team-split-scale {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(248, 242, 230, 0.7);
}

.team-split-scale span:nth-child(2) {
  text-align: center;
}

.team-split-scale span:last-child {
  text-align: right;
}

.team-clash-stage {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 248, 230, 0.1);
  background: rgba(7, 15, 24, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255, 248, 230, 0.04), 0 18px 36px rgba(0, 0, 0, 0.22);
}

.team-clash-background,
.team-clash-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.team-clash-background {
  z-index: 1;
}

.team-clash-layer {
  z-index: 2;
}

.team-clash-caption {
  margin: 0;
  min-height: 2.8rem;
}

.inline-actions,
.form-actions,
.preview-banner,
.saved-player-header,
.preview-roster-row,
.quest-row,
.role-option-header,
.assistant-toolbar,
.assistant-step-header {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
}

.primary-button,
.secondary-button,
.inline-button,
.danger-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #fff8e8;
}

.primary-button,
.secondary-button,
.danger-button {
  padding: 0.85rem 1.2rem;
}

.primary-button {
  background: linear-gradient(135deg, #b99141, #d7b26b);
  color: #1b1204;
  font-weight: 700;
}

.secondary-button,
.inline-button {
  background: rgba(255, 248, 230, 0.08);
  border: 1px solid rgba(255, 248, 230, 0.12);
}

.danger-button {
  background: rgba(122, 32, 32, 0.78);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #fff4ef;
}

.inline-button {
  padding: 0.8rem 1rem;
}

.primary-button:disabled,
.secondary-button:disabled,
.inline-button:disabled,
.danger-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.feedback {
  margin: 0;
  min-height: 1.4rem;
}

.feedback.info {
  color: rgba(248, 242, 230, 0.82);
}

.feedback.success {
  color: var(--success);
}

.feedback.error {
  color: var(--danger);
}

.section-intro,
.board-topline {
  display: grid;
  gap: 0.35rem;
}

.player-registry-panel {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 248, 230, 0.08);
  background: rgba(255, 248, 230, 0.04);
}

.player-registry-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: end;
}

.player-registry-bucket {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 248, 230, 0.08);
  background: rgba(255, 248, 230, 0.04);
}

.player-registry-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 0.85rem;
}

.player-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-status-chip.is-registered {
  background: rgba(71, 146, 92, 0.18);
  color: var(--success);
}

.player-status-chip.is-retired {
  background: rgba(205, 168, 93, 0.16);
  color: var(--warning);
}

.saved-player.is-inactive {
  opacity: 0.9;
}

.saved-player-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.9rem;
}

.player-picker-grid {
  display: grid;
  gap: 1rem;
  margin-top: -0.15rem;
}

.player-picker-bucket {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 248, 230, 0.08);
  background: rgba(255, 248, 230, 0.04);
}

.player-picker-bucket.is-selected-group {
  border-color: rgba(71, 146, 92, 0.28);
  background: linear-gradient(180deg, rgba(71, 146, 92, 0.1), rgba(255, 248, 230, 0.04));
}

.player-picker-bucket.is-available-group {
  border-color: rgba(205, 168, 93, 0.14);
  background: linear-gradient(180deg, rgba(205, 168, 93, 0.06), rgba(255, 248, 230, 0.03));
}

.player-picker-bucket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.player-picker-bucket-header h3 {
  margin: 0.15rem 0 0;
  font-size: 1.1rem;
  color: #fff3d5;
}

.player-picker-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 220px));
  gap: 0.85rem;
  justify-content: start;
}

.player-picker-empty {
  min-height: 0;
}

.player-picker-toggle {
  position: relative;
  display: grid;
  gap: 0.25rem;
  justify-items: center;
  align-content: center;
  aspect-ratio: 3 / 2;
  min-height: 0;
  width: 100%;
  padding: 1.35rem 1.15rem 1.2rem;
  border: 0;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(120, 76, 26, 0.08), rgba(120, 76, 26, 0.02)),
    url("Assets/Images/Namecard.png") center center / cover no-repeat;
  color: #4b2d12;
  text-align: center;
  cursor: pointer;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.26));
  transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease;
}

.player-picker-toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(74, 43, 16, 0.08);
  pointer-events: none;
}

.player-picker-toggle:hover {
  transform: translateY(-2px) scale(1.01);
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.3));
}

.player-picker-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(205, 168, 93, 0.18);
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.3));
}

.player-picker-toggle.is-selected {
  box-shadow: 0 0 0 2px rgba(71, 146, 92, 0.58), 0 0 28px rgba(71, 146, 92, 0.24);
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.34));
}

.player-picker-toggle.is-selected::after {
  box-shadow: inset 0 0 0 2px rgba(239, 255, 232, 0.34);
}

.player-picker-name {
  max-width: 72%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
  font-weight: 700;
  line-height: 1.15;
  color: #4d2f13;
  text-shadow: 0 1px 0 rgba(255, 245, 218, 0.64);
}

.player-picker-meta {
  max-width: 68%;
  font-size: 0.8rem;
  line-height: 1.25;
  color: rgba(82, 49, 19, 0.84);
  text-shadow: 0 1px 0 rgba(255, 245, 218, 0.5);
}

.roster-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.75fr);
  gap: 0.75rem;
  align-items: end;
}

.roster-meta,
.preview-card,
.saved-player,
.empty-state,
.role-option,
.quest-row,
.role-count-card,
.assistant-step,
.assistant-card {
  border-radius: 18px;
  background: rgba(255, 248, 230, 0.06);
  border: 1px solid rgba(255, 248, 230, 0.08);
}

.roster-meta {
  min-height: 3.75rem;
  padding: 0.85rem 0.95rem;
  display: flex;
  align-items: center;
  color: rgba(248, 242, 230, 0.82);
}

.roster-meta.saved {
  border-color: rgba(47, 133, 90, 0.25);
}

.roster-meta.alias {
  border-color: rgba(96, 165, 250, 0.28);
}

.roster-meta.new {
  border-color: rgba(251, 211, 141, 0.25);
}

.roster-meta.muted {
  border-style: dashed;
}

.saved-player,
.preview-card,
.role-count-card,
.assistant-card,
.assistant-step {
  padding: 1rem;
}

.saved-player h3,
.preview-card h3,
.role-count-card h3,
.assistant-card h3,
.assistant-step h3 {
  font-size: 1.05rem;
}

.alias-row,
.role-badge-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.rename-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
  margin-top: 0.9rem;
}

.empty-state {
  padding: 1rem;
}

.role-selection-grid {
  display: grid;
  gap: 1rem;
}

.role-picker-bucket {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 248, 230, 0.08);
  background: rgba(255, 248, 230, 0.04);
}

.role-picker-bucket.is-selected-group {
  border-color: rgba(205, 168, 93, 0.2);
  background: linear-gradient(180deg, rgba(205, 168, 93, 0.1), rgba(255, 248, 230, 0.04));
}

.role-picker-bucket.is-available-group {
  border-color: rgba(255, 248, 230, 0.12);
  background: linear-gradient(180deg, rgba(255, 248, 230, 0.06), rgba(255, 248, 230, 0.03));
}

.role-picker-bucket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.role-picker-bucket-header h3 {
  margin: 0.15rem 0 0;
  font-size: 1.1rem;
  color: #fff3d5;
}

.role-picker-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 260px));
  gap: 0.85rem;
  justify-content: start;
}

.role-picker-empty {
  min-height: 0;
}

.role-picker-toggle {
  position: relative;
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  align-content: center;
  aspect-ratio: 3 / 2;
  width: 100%;
  min-height: 0;
  padding: 1.2rem 1.25rem 1.15rem;
  border: 0;
  border-radius: 24px;
  text-align: center;
  cursor: pointer;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.24));
  transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease;
}

.role-picker-toggle.good {
  background:
    linear-gradient(180deg, rgba(98, 136, 167, 0.08), rgba(98, 136, 167, 0.02)),
    url("Assets/Images/Namecard_Good.png") center center / cover no-repeat;
}

.role-picker-toggle.evil {
  background:
    linear-gradient(180deg, rgba(122, 39, 39, 0.08), rgba(122, 39, 39, 0.02)),
    url("Assets/Images/Namecard_Evil.png") center center / cover no-repeat;
}

.role-picker-toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(74, 43, 16, 0.08);
  pointer-events: none;
}

.role-picker-toggle:hover {
  transform: translateY(-2px) scale(1.01);
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.28));
}

.role-picker-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(205, 168, 93, 0.18);
}

.role-picker-toggle.is-selected.good {
  box-shadow: 0 0 0 2px rgba(91, 142, 196, 0.52), 0 0 26px rgba(91, 142, 196, 0.18);
}

.role-picker-toggle.is-selected.evil {
  box-shadow: 0 0 0 2px rgba(183, 74, 74, 0.5), 0 0 26px rgba(183, 74, 74, 0.18);
}

.role-picker-toggle.is-selected::after {
  box-shadow: inset 0 0 0 2px rgba(255, 248, 230, 0.28);
}

.role-picker-team {
  max-width: 78%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.role-picker-team.good {
  background: rgba(85, 131, 173, 0.18);
  color: #365979;
}

.role-picker-team.evil {
  background: rgba(145, 45, 45, 0.18);
  color: #7b2222;
}

.role-picker-name {
  max-width: 76%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
  font-weight: 700;
  line-height: 1.12;
  color: #4d2f13;
  text-shadow: 0 1px 0 rgba(255, 245, 218, 0.64);
}

.role-picker-summary {
  max-width: 72%;
  font-size: 0.79rem;
  line-height: 1.28;
  color: rgba(82, 49, 19, 0.86);
  text-shadow: 0 1px 0 rgba(255, 245, 218, 0.5);
}

.role-count-summary {
  margin-top: -0.1rem;
}

.quest-row {
  padding: 0.95rem 1rem;
  align-items: end;
}

.quest-row strong {
  display: block;
}

.quest-row .muted {
  margin-top: 0.2rem;
}

.preview-banner {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 248, 230, 0.08);
}

.preview-banner.ready {
  background: rgba(47, 133, 90, 0.12);
  border-color: rgba(47, 133, 90, 0.26);
}

.preview-banner.draft {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.2);
}

.preview-banner.issues {
  background: rgba(127, 29, 29, 0.18);
  border-color: rgba(248, 113, 113, 0.2);
}

.preview-banner-list {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 248, 230, 0.12);
}

.preview-banner .issue-list {
  color: rgba(248, 242, 230, 0.9);
}

.preview-banner .issue-list li + li {
  margin-top: 0.35rem;
}

.note-panel {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(251, 211, 141, 0.16);
  background: rgba(251, 211, 141, 0.08);
}

.preview-roster-row {
  padding: 0.8rem 0.95rem;
}

.preview-roster-row strong {
  font-weight: 600;
}

.preview-seat {
  display: grid;
  gap: 0.2rem;
}

.cleanup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.history-cleanup-actions {
  margin-top: 1rem;
}
.assistant-toolbar {
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.assistant-summary {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.assistant-step {
  position: relative;
}

.assistant-step.is-current {
  border-color: rgba(96, 165, 250, 0.3);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.18);
}

.assistant-step.is-complete {
  border-color: rgba(47, 133, 90, 0.26);
}

.assistant-step-header {
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.placeholder-card {
  max-width: 760px;
}

.view[hidden] {
  display: none;
}

[hidden] {
  display: none !important;
}

code {
  font-family: Consolas, "Courier New", monospace;
  color: #ffe8a3;
}

@media (max-width: 960px) {
  .hero,
  .content-grid,
  .roster-row,
  .rename-form,
  .quest-row {
    grid-template-columns: 1fr;
  }

  .card-heading {
    align-items: start;
    flex-direction: column;
  }

  .roadmap-note {
    text-align: left;
  }

  .team-split-panel {
    grid-template-columns: 1fr;
  }

  .inline-actions,
  .form-actions,
  .preview-banner,
  .saved-player-header,
  .preview-roster-row,
  .quest-row,
  .role-option-header,
  .assistant-toolbar,
  .assistant-step-header {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 1rem, 1120px);
    padding-top: 1rem;
  }

  .view-switcher {
    width: 100%;
    justify-content: space-between;
  }

  .nav-button {
    flex: 1;
  }

  .summary-value {
    font-size: 2rem;
  }

  .team-split-panel {
    padding: 0.9rem;
  }

  .team-split-summary {
    grid-template-columns: 1fr;
  }

  .team-split-scale {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .team-split-scale span,
  .team-split-scale span:nth-child(2),
  .team-split-scale span:last-child {
    text-align: left;
  }

  .team-clash-caption {
    min-height: 0;
  }
}

body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 14%, rgba(244, 210, 132, 0.18), transparent 18%),
    linear-gradient(180deg, #1f3249 0%, #101a28 46%, #08111b 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 231, 171, 0.14), transparent 12%),
    linear-gradient(180deg, rgba(4, 8, 14, 0) 0%, rgba(4, 8, 14, 0.28) 54%, rgba(4, 8, 14, 0.92) 100%);
}

body::after {
  inset: auto 0 0;
  height: 34vh;
  background:
    linear-gradient(180deg, rgba(5, 9, 15, 0) 0%, rgba(5, 9, 15, 0.94) 100%),
    radial-gradient(circle at 18% 100%, rgba(32, 53, 74, 0.52), transparent 34%),
    radial-gradient(circle at 82% 100%, rgba(32, 53, 74, 0.46), transparent 28%);
}

.page-shell {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 1.7rem 1.8rem;
  border: 1px solid rgba(229, 194, 119, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(15, 24, 37, 0.78), rgba(27, 41, 61, 0.66)),
    radial-gradient(circle at top right, rgba(229, 194, 119, 0.14), transparent 32%);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -28% auto;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 194, 119, 0.12), transparent 68%);
  pointer-events: none;
}

.hero h1 {
  text-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
}

.hero-panel {
  background:
    linear-gradient(180deg, rgba(255, 248, 230, 0.08), rgba(255, 248, 230, 0.03)),
    rgba(9, 14, 22, 0.46);
}

.nav-button.is-active {
  background: linear-gradient(135deg, rgba(229, 194, 119, 0.3), rgba(128, 84, 34, 0.32));
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.95fr);
  gap: 1.25rem;
  align-items: stretch;
}

.landing-copy-block,
.landing-illustration,
.landing-action-card {
  border: 1px solid rgba(255, 244, 216, 0.12);
  border-radius: 28px;
  background: rgba(10, 17, 26, 0.54);
  box-shadow: var(--shadow);
}

.landing-copy-block {
  padding: 1.7rem;
  backdrop-filter: blur(8px);
}

.landing-copy {
  max-width: 42rem;
  margin-top: 0.7rem;
}

.landing-status-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.landing-status-item {
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background: rgba(255, 248, 230, 0.05);
  border: 1px solid rgba(255, 248, 230, 0.08);
}

.landing-status-value,
.landing-card-metric {
  margin: 0.35rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  color: #fff3d5;
}

.landing-illustration {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background:
    radial-gradient(circle at 50% 18%, rgba(243, 217, 154, 0.28), transparent 13%),
    linear-gradient(180deg, rgba(60, 86, 112, 0.34) 0%, rgba(15, 22, 33, 0.94) 78%);
}

.landing-illustration::before {
  content: "";
  position: absolute;
  inset: auto 12% 0;
  height: 78%;
  background: linear-gradient(180deg, rgba(11, 14, 20, 0) 0%, rgba(11, 14, 20, 0) 38%, rgba(11, 14, 20, 0.96) 38%, rgba(11, 14, 20, 0.96) 100%);
  clip-path: polygon(0 100%, 0 62%, 12% 62%, 12% 48%, 20% 48%, 20% 62%, 30% 62%, 30% 32%, 38% 32%, 38% 62%, 48% 62%, 48% 18%, 57% 18%, 57% 62%, 67% 62%, 67% 40%, 76% 40%, 76% 62%, 86% 62%, 86% 50%, 94% 50%, 94% 62%, 100% 62%, 100% 100%);
}

.landing-illustration::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(180deg, rgba(7, 11, 16, 0) 0%, rgba(7, 11, 16, 0.98) 100%);
}

.landing-moon {
  position: absolute;
  top: 2.1rem;
  left: 50%;
  width: 6.8rem;
  height: 6.8rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #fff4ce 0%, #f0cf84 48%, rgba(240, 207, 132, 0.18) 74%, rgba(240, 207, 132, 0) 100%);
  box-shadow: 0 0 42px rgba(240, 207, 132, 0.24);
}

.landing-sword {
  position: absolute;
  left: 50%;
  top: 5.6rem;
  width: 0.9rem;
  height: 14rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff8e6 0%, #cfd8df 34%, #8090a1 100%);
  box-shadow: 0 0 18px rgba(220, 230, 238, 0.12);
}

.landing-sword::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2.4rem;
  width: 6.2rem;
  height: 0.55rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, #8a6731 0%, #e6c784 50%, #8a6731 100%);
}

.landing-sword::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1.1rem;
  height: 3rem;
  transform: translateX(-50%);
  border-radius: 0 0 999px 999px;
  background: linear-gradient(180deg, #8a6731 0%, #3c2710 100%);
}

.landing-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.landing-action-card {
  display: grid;
  gap: 0.9rem;
  padding: 1.35rem;
  align-content: start;
  position: relative;
  overflow: hidden;
}

.landing-action-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.9;
  pointer-events: none;
}

.landing-action-card > * {
  position: relative;
  z-index: 1;
}

.landing-action-card.is-players::before {
  background: linear-gradient(160deg, rgba(120, 148, 189, 0.2), rgba(15, 20, 29, 0));
}

.landing-action-card.is-match::before {
  background: linear-gradient(160deg, rgba(229, 194, 119, 0.22), rgba(15, 20, 29, 0));
}

.landing-action-card.is-history::before {
  background: linear-gradient(160deg, rgba(132, 108, 74, 0.26), rgba(15, 20, 29, 0));
}

.landing-card-kicker {
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--paper-deep);
}

.landing-action-card h3 {
  font-size: 1.5rem;
}

.landing-action-card .summary-detail {
  min-height: 3.4rem;
}

.landing-action-card .primary-button {
  margin-top: 0.35rem;
  justify-self: start;
}

.landing-roadmap-card {
  margin-top: 1rem;
}

@media (max-width: 960px) {
  .landing-hero,
  .landing-action-grid,
  .landing-status-strip {
    grid-template-columns: 1fr;
  }

  .landing-illustration {
    min-height: 240px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 1.25rem;
  }

  .landing-copy-block,
  .landing-action-card {
    padding: 1.15rem;
  }
}

.home-view {
  display: grid;
}

.home-stage {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(255, 244, 216, 0.16);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
  background:
    linear-gradient(180deg, rgba(9, 13, 18, 0.12) 0%, rgba(9, 13, 18, 0.28) 42%, rgba(9, 13, 18, 0.58) 100%),
    url("Assets/Images/Camelot_wallpaper.png") center center / cover no-repeat;
}

.home-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 241, 197, 0.12), transparent 16%),
    linear-gradient(90deg, rgba(7, 10, 16, 0.62) 0%, rgba(7, 10, 16, 0.18) 28%, rgba(7, 10, 16, 0.14) 72%, rgba(7, 10, 16, 0.62) 100%),
    linear-gradient(180deg, rgba(7, 10, 16, 0.12) 0%, rgba(7, 10, 16, 0.04) 26%, rgba(7, 10, 16, 0.38) 100%);
}

.home-stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18rem;
  background: linear-gradient(180deg, rgba(5, 8, 12, 0) 0%, rgba(5, 8, 12, 0.38) 58%, rgba(5, 8, 12, 0.68) 100%);
}

.home-stage-overlay {
  position: relative;
  z-index: 1;
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding: clamp(1.8rem, 4vw, 3.4rem);
  text-align: center;
}

.home-command-panel {
  width: min(43rem, calc(100% - 1rem));
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.home-text-panel {
  width: min(35rem, 100%);
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  padding: 1.1rem 1.4rem 1.45rem;
  border-radius: 28px;
  border: 1px solid rgba(255, 244, 216, 0.12);
  background:
    linear-gradient(180deg, rgba(10, 14, 20, 0.38) 0%, rgba(10, 14, 20, 0.54) 100%),
    rgba(12, 18, 27, 0.22);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
}

.home-text-panel::before {
  content: "";
  width: min(8rem, 30%);
  height: 1px;
  margin-bottom: 0.2rem;
  background: linear-gradient(90deg, rgba(255, 244, 216, 0), rgba(255, 244, 216, 0.72), rgba(255, 244, 216, 0));
}

.home-stage-kicker {
  color: #fff0bf;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.34);
}

.home-stage h2 {
  max-width: 10ch;
  font-size: clamp(1.95rem, 4vw, 3.7rem);
  line-height: 0.96;
  color: #fff8e8;
  text-shadow: 0 12px 24px rgba(0, 0, 0, 0.38);
}

.home-stage-copy {
  max-width: 27rem;
  margin: 0;
  color: rgba(255, 248, 230, 0.92);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.34);
}

.home-button-stack {
  width: min(33rem, 100%);
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.home-image-button {
  --button-aspect-ratio: 699 / 284;
  --button-text-top: 55%;
  width: min(100%, 32rem);
  aspect-ratio: var(--button-aspect-ratio);
  padding: 0;
  border: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  color: #fff8ef;
  display: block;
  position: relative;
  cursor: pointer;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.34));
  transition: transform 140ms ease, filter 140ms ease;
}

.home-image-button span {
  position: absolute;
  left: 50%;
  top: var(--button-text-top);
  transform: translate(-50%, -50%);
  width: min(74%, 23rem);
  padding: 0.25rem 1.25rem;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(1.18rem, 1.9vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fffaf0;
  text-align: center;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.9);
}

.home-image-button:hover {
  transform: translateY(-2px) scale(1.01);
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.4));
}

.home-image-button:focus-visible {
  outline: none;
  transform: translateY(-2px) scale(1.01);
  filter: drop-shadow(0 0 0 3px rgba(255, 241, 197, 0.34)) drop-shadow(0 18px 22px rgba(0, 0, 0, 0.4));
}

.home-image-button.is-new-game {
  --button-aspect-ratio: 699 / 284;
  --button-text-top: 60.5%;
  background-image: url("Assets/Images/arthurian_button_1.png");
}

.home-image-button.is-players {
  --button-aspect-ratio: 688 / 296;
  --button-text-top: 59.5%;
  background-image: url("Assets/Images/arthurian_button_2.png");
}

.home-image-button.is-history {
  --button-aspect-ratio: 772 / 259;
  --button-text-top: 57.5%;
  background-image: url("Assets/Images/arthurian_button_3.png");
}

@media (max-width: 960px) {
  .home-stage,
  .home-stage-overlay {
    min-height: 64vh;
  }

  .home-command-panel {
    width: min(38rem, calc(100% - 0.6rem));
  }

  .home-text-panel {
    width: min(33rem, 100%);
    padding: 1rem 1.15rem 1.3rem;
  }

  .home-stage h2 {
    font-size: clamp(1.9rem, 5vw, 3.1rem);
  }

  .home-button-stack {
    width: min(29rem, 100%);
  }

  .home-image-button {
    width: min(100%, 28rem);
  }
}

@media (max-width: 640px) {
  .home-stage,
  .home-stage-overlay {
    min-height: 58vh;
  }

  .home-stage-overlay {
    padding: 1.2rem 0.75rem 1.6rem;
  }

  .home-command-panel {
    width: min(100%, 34rem);
    gap: 0.8rem;
  }

  .home-text-panel {
    width: min(100%, 22rem);
    gap: 0.65rem;
    padding: 0.95rem 0.8rem 1.15rem;
    border-radius: 24px;
  }

  .home-stage h2 {
    font-size: clamp(1.8rem, 8vw, 2.7rem);
  }

  .home-stage-copy {
    max-width: 20rem;
    font-size: 0.96rem;
  }

  .home-button-stack {
    width: min(100%, 23rem);
    gap: 0.3rem;
  }

  .home-image-button {
    width: min(100%, 22rem);
    background-size: contain;
  }

  .home-image-button span {
    width: min(82%, 16rem);
    padding-inline: 0.8rem;
    font-size: 1rem;
  }
}



.saved-player-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.player-registry-bucket {
  display: grid;
  gap: 0.85rem;
  padding: 0.25rem 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.player-registry-bucket + .player-registry-bucket {
  margin-top: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 248, 230, 0.08);
}

.new-game-layout,
.players-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
}




