@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url("/fonts/fraunces.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #183c3e;
  --muted: #546965;
  --paper: #f7f8ee;
  --white: #fffef9;
  --green: #155e56;
  --mint: #b5eacb;
  --gold: #f7cf58;
  --coral: #ff9d86;
  --blue: #b7d9f6;
  --red: #a33130;
  --line: #d7dfcf;
  --shadow: 0 18px 55px #2348410d;
  color: var(--ink);
  font-family: Manrope, sans-serif;
  font-size: 14px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse at 5% 5%, #d9eddb99, transparent 42%),
    radial-gradient(ellipse at 95% 20%, #fff0bc80, transparent 35%),
    var(--paper);
  line-height: 1.6;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 12px;
  min-height: 44px;
  padding: 12px 20px;
  font-weight: 750;
  background: var(--green);
  color: white;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  transition:
    transform 0.16s,
    background 0.16s,
    box-shadow 0.16s;
}
button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #173e3b20;
}
button:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: none;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: #97aaa1;
}
button.danger {
  background: var(--red);
}
button.link {
  background: none;
  color: var(--green);
  padding: 6px 0;
  min-height: 36px;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
button.primary {
  background: var(--gold);
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid #14766b;
  outline-offset: 4px;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
input {
  min-width: 0;
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #afbeb4;
  border-radius: 10px;
  background: #fffef9;
  color: var(--ink);
}
input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  flex-shrink: 0;
}
input::placeholder {
  color: #67776b;
  font-size: 12px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: Fraunces, serif;
  line-height: 1.12;
  letter-spacing: -1.5px;
  font-weight: 650;
}
h3 {
  font-size: 18px;
  line-height: 1.3;
}
h2 {
  font-size: 36px;
}
p {
  line-height: 1.7;
}
.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  vertical-align: middle;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.muted,
.fineprint,
.help {
  color: var(--muted);
}
.eyebrow,
.small-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.eyebrow {
  color: var(--green);
}
.small-label {
  color: var(--muted);
}
.masthead {
  max-width: 1400px;
  margin: auto;
  padding: 24px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  font-size: 19px;
  letter-spacing: -0.6px;
  font-weight: 800;
  line-height: 1.1;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2.5px;
  margin-top: 7px;
  font-weight: 600;
}
.brand img {
  width: 42px;
  height: 42px;
}
.header-tools {
  display: flex;
  gap: 10px;
  align-items: center;
}
.tool-button {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  padding: 9px 12px;
  font-size: 11px;
  min-height: 40px;
}
.tool-button .icon {
  width: 16px;
  height: 16px;
}
.connection {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: 8px;
}
.connection:before,
.status-dot {
  content: "";
  width: 7px;
  height: 7px;
  background: #c47224;
  border-radius: 50%;
  flex-shrink: 0;
}
.connection.online:before,
.status-dot {
  background: #2b8665;
}
.status-dot.off {
  background: #a5aea4;
}
.connection.online {
  color: #286b50;
}
main {
  max-width: 1400px;
  padding: 38px 44px 54px;
  margin: auto;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.9fr);
  gap: 70px;
  align-items: center;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
}
.hero-eyebrow .icon {
  width: 16px;
}
.hero h1 {
  font-size: clamp(44px, 5.2vw, 74px);
  letter-spacing: -3px;
}
.hero h1 em {
  color: var(--green);
  font-style: normal;
}
.hero-copy > p {
  font-size: 16px;
  margin-top: 24px;
  color: var(--muted);
}
.hero-facts {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 24px 0 0;
  font-size: 10px;
  font-weight: 700;
}
.hero-facts span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-facts .icon {
  width: 16px;
  height: 16px;
}
.signal-scene {
  margin-top: 25px;
  position: relative;
  max-width: 610px;
}
.signal-orbit {
  height: 174px;
  position: relative;
  overflow: hidden;
  border-radius: 90px;
  background:
    repeating-linear-gradient(90deg, transparent 0 29px, #41695a0c 29px 30px),
    linear-gradient(120deg, #c8efd3, #e8ebc3 65%, #fbd89f);
  border: 1px solid #ccdcb8;
}
.signal-orbit:before,
.signal-orbit:after {
  content: "";
  position: absolute;
  inset: -100px 22%;
  border: 1px solid #23554b30;
  border-radius: 50%;
  transform: rotate(-30deg);
}
.signal-orbit:after {
  inset: -155px 16%;
  transform: rotate(30deg);
}
.signal-eye {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
  width: 150px;
  height: 100px;
  display: grid;
  place-items: center;
  background: var(--green);
  border-radius: 60%;
  box-shadow: 8px 8px 0 #2c5e4920;
  color: var(--gold);
}
.signal-eye .icon {
  width: 96px;
  height: 96px;
  stroke-width: 1;
}
.orbit-label {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 7px;
  letter-spacing: 1.6px;
  white-space: nowrap;
  z-index: 2;
}
.orbit-dot {
  position: absolute;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--coral);
  border: 7px solid #ffffff66;
}
.dot-a {
  left: 14%;
  top: 28%;
}
.dot-b {
  right: 18%;
  bottom: 25%;
  background: var(--gold);
  width: 36px;
  height: 36px;
}
.dot-c {
  right: 30%;
  top: 8%;
  background: var(--blue);
  width: 20px;
  height: 20px;
}
.role-explorer {
  display: flex;
  gap: 9px;
  justify-content: center;
  margin-top: -20px;
  position: relative;
}
.role-chip {
  color: var(--ink);
  padding: 10px 16px;
  font-size: 12px;
  border: 2px solid var(--paper);
  border-radius: 30px;
  box-shadow: 0 3px 0 #173e3b10;
}
.tone-mint {
  background: var(--mint);
}
.tone-coral {
  background: var(--coral);
}
.tone-blue {
  background: var(--blue);
}
.role-chip.chosen {
  border-color: var(--ink);
}
.role-chip .icon {
  width: 18px;
  height: 18px;
}
.lore-caption {
  margin-top: 15px;
  max-width: 510px;
  min-height: 94px;
}
.lore-caption .small-label {
  font-size: 8px;
}
.lore-caption p {
  font-size: 12px;
  margin-top: 6px;
  line-height: 1.6;
  color: var(--muted);
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.entry {
  position: relative;
  padding: 40px 34px;
  background: linear-gradient(160deg, #fffef9 65%, #edf2df);
  border: 1px solid #cbd6bd;
  box-shadow: 10px 10px 0 #dfe7d44d;
}
.entry-symbol {
  position: absolute;
  right: 28px;
  top: -22px;
  background: var(--coral);
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: rotate(15deg);
}
.entry-symbol .icon {
  width: 30px;
  height: 30px;
}
.entry h2 {
  font-size: 42px;
  margin: 15px 0;
}
.entry > p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 25px;
  max-width: 300px;
}
.field {
  display: block;
  font-size: 11px;
  font-weight: 750;
  margin-bottom: 8px;
}
.entry > .primary {
  width: 100%;
  margin-top: 12px;
  justify-content: space-between;
  padding: 15px 20px;
}
.divider {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 8px;
  letter-spacing: 1px;
  margin: 24px 0;
  color: var(--muted);
}
.divider:before,
.divider:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.join-row button {
  flex-shrink: 0;
  padding: 12px 18px;
}
.join-row input {
  letter-spacing: 2px;
}
.entry .fineprint {
  font-size: 9px;
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 20px;
}
.fineprint .icon {
  width: 13px;
  height: 13px;
}
.rule-link {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.rule-link .icon {
  width: 16px;
}
.entry .resume {
  display: flex;
  margin: 10px auto 0;
}
.how-it-plays {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.how-card {
  display: flex;
  position: relative;
  gap: 17px;
  padding: 28px 24px;
  border-radius: 18px;
  overflow: hidden;
}
.how-mint {
  background: #dcf0df;
}
.how-gold {
  background: #f8edba;
}
.how-coral {
  background: #f9dcd0;
}
.how-number {
  position: absolute;
  right: 15px;
  top: 8px;
  opacity: 0.13;
  font-family: Fraunces, serif;
  font-size: 55px;
  line-height: 1;
}
.how-card > .icon {
  width: 30px;
  height: 30px;
  margin-top: 4px;
}
.how-card h3 {
  font-size: 15px;
  position: relative;
}
.how-card p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 9px;
  max-width: 235px;
}
footer {
  max-width: 1400px;
  margin: auto;
  padding: 25px 44px 30px;
  font-size: 10px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}
.room-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 0 0 30px;
}
.room-heading h1 {
  font-size: 42px;
  margin-top: 8px;
}
.invite {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.room-code {
  font-family: monospace;
  font-size: 17px;
  letter-spacing: 3px;
  font-weight: 700;
}
.timer {
  font-variant-numeric: tabular-nums;
}
.layout {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr) 265px;
  gap: 20px;
  align-items: start;
}
.layout.lobby-layout {
  grid-template-columns: 280px minmax(0, 1fr);
}
.players-panel {
  padding: 22px;
}
.players {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.players li {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.players li:last-child {
  border: 0;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}
.color-0 {
  background: var(--gold);
}
.color-1 {
  background: var(--blue);
}
.color-2 {
  background: var(--coral);
}
.color-3 {
  background: var(--mint);
}
.color-4 {
  background: #e1c9f0;
}
.color-5 {
  background: #f4c5ce;
}
.player-text {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.player-text small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 2px;
}
.tag {
  background: #f2ebd0;
  color: #6e5819;
  font-size: 8px;
  padding: 3px 6px;
  border-radius: 6px;
}
.tag.good {
  background: #d7eedc;
  color: #275844;
}
.mini-button {
  padding: 0 7px;
  min-height: 30px;
}
.lobby-note {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 16px;
}
.help {
  font-size: 11px;
  line-height: 1.7;
  margin-top: 18px;
}
.help p {
  margin-top: 8px;
}
.settings-head {
  margin-bottom: 22px;
}
.settings-head h2 {
  font-size: 34px;
  margin-top: 8px;
}
.settings-head p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}
.role-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.mode-options {
  grid-template-columns: repeat(3, 1fr);
}
.role-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 17px;
  cursor: pointer;
}
.role-option:has(input:checked) {
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
}
.role-option:has(input:disabled) {
  cursor: default;
}
.role-option strong {
  display: block;
  font-size: 13px;
}
.role-option small {
  display: block;
  font-size: 10px;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 5px;
}
.mode-options .role-option {
  position: relative;
  flex-wrap: wrap;
  padding: 18px;
  gap: 12px;
}
.mode-options input {
  margin-left: auto;
}
.mode-options .role-option > span:last-child {
  width: 100%;
}
.mode-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #ffffff80;
}
.mode-basic {
  background: #e6f3e6;
}
.mode-classic {
  background: #faf0cb;
}
.mode-custom {
  background: #e6effa;
}
.option-emblem {
  display: none;
}
.timer-settings {
  padding-top: 20px;
  margin-top: 25px;
  border-top: 1px solid var(--line);
}
.timer-settings .row {
  flex-wrap: wrap;
  font-size: 12px;
}
.timer-settings input[type="number"] {
  width: 85px;
}
.fineprint {
  font-size: 10px;
  line-height: 1.7;
  margin-top: 12px;
}
.lobby-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.lobby-actions p {
  width: 100%;
  font-size: 11px;
  color: var(--muted);
}
.board-column {
  min-width: 0;
}
.expeditions {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.expedition {
  flex: 1;
  font-size: 9px;
  color: var(--muted);
  background: #e5eadc;
  border-radius: 12px;
  padding: 12px 5px;
  text-align: center;
  border-top: 4px solid transparent;
}
.expedition-orb {
  font-family: Fraunces, serif;
  font-size: 23px;
  font-weight: 650;
  margin-bottom: 2px;
  line-height: 1.3;
}
.expedition.current {
  background: #f7e6a4;
  border-color: #d2a826;
  color: #514216;
}
.expedition.pass {
  background: #cce8d3;
  border-color: #388459;
  color: #22563a;
}
.expedition.fail {
  background: #f4c9bd;
  border-color: #b84b39;
  color: #8b3528;
}
.phase-ribbon {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin: 0 0 15px;
}
.phase-ribbon span {
  flex: 1;
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 8px;
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 2px solid var(--line);
}
.phase-ribbon .icon {
  width: 14px;
  height: 14px;
}
.phase-ribbon .active {
  color: var(--green);
  border-color: var(--green);
  font-weight: 800;
}
.table-panel {
  background: linear-gradient(140deg, #175a52, #214446);
  color: white;
  border-radius: 22px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.table-seal {
  position: absolute;
  right: -25px;
  top: 0;
  transform: rotate(-20deg);
  color: #b5eacb0f;
  pointer-events: none;
}
.table-seal .icon {
  width: 200px;
  height: 200px;
}
.table-panel > .eyebrow {
  color: var(--mint);
  font-size: 9px;
  position: relative;
}
.table-panel h2 {
  font-size: 33px;
  margin: 12px 0 15px;
  position: relative;
}
.table-description {
  color: #d1e4d9;
  font-size: 12px;
  position: relative;
}
.table-players {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 24px;
}
.seat {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 12px 10px;
  background: #ffffff08;
  border: 1px solid #ffffff38;
  color: white;
  border-radius: 12px;
  text-align: left;
}
.seat:disabled {
  opacity: 1;
  cursor: default;
}
.seat.selected {
  background: #ffffff14;
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}
.seat-name {
  font-size: 11px;
  flex: 1;
  overflow-wrap: anywhere;
}
.seat .mark {
  color: var(--gold);
}
.table-actions {
  margin-top: 24px;
}
.table-actions p {
  font-size: 12px;
  color: #d1e4d9;
  margin-bottom: 12px;
}
.table-actions button {
  background: var(--gold);
  color: var(--ink);
}
.table-actions button.danger {
  background: var(--coral);
  color: #541c18;
}
.table-actions .row {
  flex-wrap: wrap;
}
.rejects {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  font-size: 10px;
  color: var(--muted);
}
.reject-dots {
  display: flex;
  gap: 5px;
}
.reject-dots i {
  display: block;
  width: 16px;
  height: 6px;
  background: #d4decc;
  border-radius: 4px;
}
.reject-dots .used {
  background: var(--red);
}
.private-card {
  text-align: center;
  background: linear-gradient(145deg, #f2ebca, #fff9e2);
}
.private-card.side-conspiracy {
  background: linear-gradient(145deg, #ffe1d4, #fff7eb);
}
.private-card.side-loyal {
  background: linear-gradient(145deg, #d9efde, #fffef1);
}
.card-back-art {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--green);
}
.card-back-art > .icon:first-child {
  width: 60px;
  height: 60px;
}
.card-back-art span {
  font-family: Fraunces, serif;
  font-size: 42px;
  color: #d5a52b;
}
.card-back-art > .icon:last-child {
  width: 15px;
  height: 15px;
  align-self: flex-start;
  margin-top: 25px;
}
.role-symbol {
  display: grid;
  place-items: center;
  height: 105px;
}
.role-symbol .icon {
  width: 66px;
  height: 66px;
  stroke-width: 1.3;
}
.private-card h3 {
  font-family: Fraunces, serif;
  font-size: 27px;
}
.private-card p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
}
.private-card button {
  width: 100%;
  margin-top: 20px;
  font-size: 11px;
  padding: 10px;
}
.private-card .small-label {
  font-size: 8px;
  letter-spacing: 1px;
}
.private-card .small-label .icon {
  width: 15px;
}
.intel {
  text-align: left;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid #b4c6b2;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.intel strong {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.good-text {
  color: #226340;
}
.evil-text {
  color: #a33130;
}
.history {
  font-size: 11px;
  margin-top: 4px;
}
.history summary {
  cursor: pointer;
  font-weight: 750;
  padding: 8px 0;
}
.history-item {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: 11px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.ballots {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.ballot {
  font-size: 9px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.finale {
  text-align: center;
  background: linear-gradient(120deg, #def0db, #f9e4a5);
  padding: 30px;
  border-radius: 22px;
  margin-bottom: 25px;
}
.finale-conspiracy {
  background: linear-gradient(120deg, #f9d7c1, #f4c5ce);
}
.victory-emblem .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
}
.finale h2 {
  font-size: 44px;
  margin: 10px 0;
}
.finale p {
  font-size: 13px;
}
.finale button {
  margin-top: 20px;
}
.role-reveals {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}
.role-reveals > div {
  background: #ffffff70;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.role-reveals small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
}
#chat {
  max-width: 1312px;
  margin: 0 auto 40px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 20px;
  padding: 24px;
}
.chat-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  letter-spacing: 1.2px;
  font-weight: 700;
}
#messages {
  max-height: 200px;
  overflow: auto;
  font-size: 11px;
  margin-top: 14px;
  overflow-wrap: anywhere;
}
.message {
  padding: 5px 0;
}
.message strong {
  margin: 0 8px;
  color: var(--green);
}
.message time {
  font-size: 8px;
  color: var(--muted);
}
#chat-form {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
#notice {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 90vw;
  z-index: 20;
  padding: 16px 24px;
  background: #fff0b9;
  border: 1px solid #d8b643;
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: 12px;
}
.offline-banner {
  background: #fff0bd;
  border: 1px solid #ddc263;
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 20px;
  font-size: 12px;
}
.share-link {
  max-width: 650px;
  margin-bottom: 20px;
}
.share-link input {
  font-size: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
[hidden] {
  display: none !important;
}
.rulebook {
  max-width: 1000px;
}
.rulebook h1 {
  font-size: 64px;
  margin: 12px 0 20px;
}
.rulebook .intro {
  font-size: 18px;
  max-width: 680px;
  color: var(--muted);
}
.rulebook section {
  margin-top: 35px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}
.rulebook h2 {
  font-size: 30px;
  margin-bottom: 18px;
}
.rulebook h3 {
  margin: 20px 0 8px;
}
.rulebook p,
.rulebook li {
  font-size: 13px;
}
.rulebook li {
  margin-bottom: 8px;
}
.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.role-explainer {
  padding: 18px;
  background: #eef2e5;
  border-radius: 13px;
}
.role-explainer h3 {
  margin: 0 0 8px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th,
td {
  padding: 12px 9px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
th {
  background: #e7eedc;
}
.rulebook .return-link {
  display: inline-flex;
  margin-top: 30px;
  font-weight: 800;
}
.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  overflow: hidden;
}
.confetti i {
  position: absolute;
  top: -20px;
  left: 8%;
  width: 10px;
  height: 17px;
  background: var(--gold);
  animation: fall 2.3s ease-in forwards;
}
.confetti i:nth-child(3n) {
  background: var(--mint);
  left: 36%;
  animation-delay: 0.2s;
}
.confetti i:nth-child(4n) {
  background: var(--coral);
  left: 68%;
  animation-delay: 0.4s;
}
.confetti i:nth-child(5n) {
  background: var(--blue);
  left: 88%;
  animation-delay: 0.1s;
}
.confetti i:nth-child(even) {
  margin-left: 7%;
  animation-duration: 1.9s;
}
@keyframes fall {
  to {
    transform: translate(80px, 105vh) rotate(540deg);
  }
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
html[data-motion="on"] .hero-copy,
html[data-motion="on"] .entry {
  animation: arrive 0.6s both;
}
html[data-motion="on"] .entry {
  animation-delay: 0.1s;
}
html[data-motion="off"] *,
html[data-motion="off"] *:before,
html[data-motion="off"] *:after {
  animation: none !important;
  transition: none !important;
}
@media (min-width: 1450px) {
  main {
    padding-top: 65px;
  }
  .hero {
    gap: 100px;
  }
}
@media (max-width: 1150px) {
  .hero {
    gap: 35px;
  }
  .hero h1 {
    font-size: 56px;
  }
  .entry {
    padding: 30px 24px;
  }
  .layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .right-column {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .private-card {
    max-width: none;
  }
  #chat {
    margin-left: 44px;
    margin-right: 44px;
  }
  .hero-facts {
    gap: 12px;
  }
  .how-card {
    padding: 23px 18px;
    gap: 12px;
  }
  .mode-options {
    gap: 8px;
  }
  .mode-options .role-option {
    padding: 13px;
  }
}
@media (max-width: 760px) {
  .masthead {
    padding: 20px;
  }
  .brand {
    font-size: 16px;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 1.5px;
  }
  .header-tools {
    gap: 6px;
  }
  .tool-button {
    padding: 9px;
  }
  .tool-button span {
    display: none;
  }
  .connection {
    font-size: 0;
    margin: 0;
    gap: 0;
  }
  .connection:before {
    width: 8px;
    height: 8px;
  }
  main {
    padding: 25px 20px 35px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero h1 {
    font-size: clamp(42px, 8vw, 63px);
    letter-spacing: -2px;
  }
  .hero-copy > p {
    font-size: 14px;
    margin-top: 20px;
  }
  .hero-eyebrow {
    font-size: 8px;
    margin-bottom: 18px;
  }
  .hero-facts {
    font-size: 9px;
    gap: 14px;
  }
  .signal-orbit {
    height: 140px;
  }
  .signal-eye {
    width: 125px;
    height: 85px;
  }
  .signal-eye .icon {
    width: 78px;
    height: 78px;
  }
  .orbit-label {
    font-size: 6px;
    bottom: 10px;
  }
  .lore-caption {
    min-height: 85px;
  }
  .entry {
    padding: 32px 25px;
  }
  .entry h2 {
    font-size: 40px;
  }
  .entry > p {
    max-width: none;
  }
  .entry-symbol {
    right: 20px;
    width: 43px;
    height: 43px;
  }
  .how-it-plays {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 32px;
  }
  .how-card p {
    max-width: none;
  }
  .how-card {
    padding: 23px;
  }
  .how-number {
    font-size: 58px;
  }
  .room-heading {
    flex-wrap: wrap;
    margin-bottom: 25px;
    gap: 15px;
  }
  .room-heading h1 {
    font-size: 34px;
  }
  .invite {
    width: 100%;
    gap: 10px;
  }
  .invite button {
    margin-left: auto;
    font-size: 11px;
  }
  .layout,
  .layout.lobby-layout {
    grid-template-columns: 1fr;
  }
  .players-panel {
    padding: 18px;
  }
  .players-panel .players {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 15px;
  }
  .players li {
    font-size: 11px;
  }
  .players-panel .help {
    margin-top: 10px;
  }
  .panel {
    padding: 22px;
  }
  .settings-head h2 {
    font-size: 29px;
  }
  .mode-options {
    grid-template-columns: 1fr;
  }
  .mode-options .role-option {
    flex-wrap: nowrap;
    align-items: center;
    gap: 14px;
  }
  .mode-options .role-option > span:last-child {
    width: auto;
    flex: 1;
  }
  .mode-options input {
    order: 3;
    margin-left: auto;
  }
  .mode-icon {
    flex-shrink: 0;
  }
  .role-options {
    grid-template-columns: 1fr;
  }
  .right-column {
    display: block;
    grid-column: auto;
  }
  .right-column .help {
    margin: 20px 0;
  }
  .expeditions {
    gap: 5px;
  }
  .expedition {
    font-size: 8px;
    padding: 10px 2px;
  }
  .expedition-orb {
    font-size: 22px;
  }
  .table-panel {
    padding: 24px 20px;
  }
  .table-panel h2 {
    font-size: 30px;
  }
  .seat {
    padding: 10px 8px;
  }
  .seat-name {
    font-size: 10px;
  }
  .seat .avatar {
    width: 27px;
    height: 27px;
    font-size: 11px;
  }
  .phase-ribbon {
    gap: 6px;
  }
  .phase-ribbon span {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .phase-ribbon small {
    font-size: 8px;
  }
  .private-card {
    max-width: none;
  }
  .private-card p {
    font-size: 12px;
  }
  .private-card .intel {
    font-size: 12px;
  }
  .private-card button {
    max-width: 320px;
  }
  #chat {
    margin: 0 20px 30px;
    padding: 20px;
  }
  .chat-heading {
    letter-spacing: 0.6px;
    font-size: 8px;
  }
  footer {
    padding: 20px;
    flex-wrap: wrap;
    font-size: 9px;
    gap: 10px;
  }
  .rulebook h1 {
    font-size: 48px;
  }
  .rulebook .intro {
    font-size: 15px;
  }
  .rulebook section {
    padding: 22px;
    margin-top: 24px;
  }
  .rules-grid {
    grid-template-columns: 1fr;
  }
  th,
  td {
    padding: 10px 7px;
  }
  .finale {
    padding: 24px 18px;
  }
  .finale h2 {
    font-size: 37px;
  }
  .role-reveals {
    gap: 8px;
  }
  .role-reveals > div {
    padding: 8px 12px;
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

@media (min-width: 761px) and (max-width: 950px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .hero-copy {
    max-width: 680px;
  }
  .entry {
    max-width: 620px;
    width: 100%;
  }
  .hero h1 {
    font-size: 62px;
  }
  .how-it-plays {
    gap: 12px;
  }
  .how-card {
    flex-direction: column;
  }
}
