/* Collective edition: warm editorial welcome, accessible tools, shared exploration. */
:root {
  --mint: #9ed8ba;
  --stroke: rgba(221, 205, 164, 0.2);
  --soft: #b7c2b6;
  --surface: #122e25;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #a6dcc4 !important;
  outline-offset: 4px;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
#intro {
  display: block;
  inset: 0;
  padding: 0;
  background: #0b241b;
  overflow: auto;
  color: #f3eddf;
  z-index: 60;
  min-height: 100dvh;
}
.welcome-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 5.5%;
  padding: 25px 0;
  border-bottom: 1px solid var(--stroke);
  gap: 20px;
}
.wordmark {
  color: inherit;
  text-decoration: none;
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.17em;
  font-weight: 650;
}
.brand-symbol {
  border: 1px solid #b4945b;
  width: 40px;
  height: 45px;
  display: grid;
  place-items: center;
  font-size: 25px;
  color: #d1b078;
  border-radius: 20px 20px 5px 5px;
}
.wordmark small {
  display: block;
  font-size: 8px;
  color: var(--soft);
  margin-top: 6px;
  letter-spacing: 0.15em;
}
.welcome-nav {
  display: flex;
  align-items: center;
  gap: 35px;
}
.welcome-nav button,
.welcome-footer button {
  background: none;
  border: 0;
  color: inherit;
  padding: 8px 0;
  font-size: 12px;
}
.welcome-nav .nav-podcast {
  color: inherit;
  text-decoration: none;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}
.welcome-nav .nav-podcast:hover {
  border-bottom-color: #d1b078;
}
.edition {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--soft);
}
.welcome-main {
  max-width: 1600px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 5%;
  padding: 54px 5.5% 48px;
  align-items: center;
  min-height: 620px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #c9d6c5;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: #a2d9af;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 4px #a2d9af12;
}
#intro h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 5.6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 27px 0 25px;
}
#intro h1 em {
  font-weight: 400;
  color: #d1b078;
}
.welcome-lead {
  max-width: 420px;
  color: #bfcbbf;
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 28px;
}
#intro .intro-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  max-width: 520px;
}
.intro-actions button {
  border: 1px solid #9ca58a65;
  border-radius: 7px;
  padding: 16px 19px;
  background: transparent;
  color: #f3eddf;
  font-weight: 550;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.intro-actions button:hover {
  background: #ffffff10;
  transform: translateY(-2px);
}
.intro-actions button.primary {
  background: #efeadc;
  color: #133527;
  border-color: #efeadc;
}
.intro-actions button.primary:hover {
  background: #fffaf0;
}
.intro-actions #btn-continue {
  flex-basis: 100%;
  border: 0;
  color: #dabd85;
  justify-content: flex-start;
  padding: 9px 0;
}
.welcome-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 9px;
  color: #9bad9e;
  margin-top: 19px;
}
.mode-switch {
  display: inline-block;
  color: #c8d8c8;
  font-size: 10px;
  margin-top: 20px;
  text-underline-offset: 5px;
}
.welcome-art {
  position: relative;
  min-width: 0;
  height: 490px;
  background: radial-gradient(ellipse at 50% 35%, #1f4a35, #102d23 70%);
  border: 1px solid #cbb38238;
  border-radius: 48% 48% 9px 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.welcome-art:after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid #cbb38217;
  border-radius: 48% 48% 6px 6px;
  pointer-events: none;
}
.art-caption {
  position: absolute;
  top: 34px;
  left: 30px;
  right: 30px;
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 0.18em;
  color: #b6c0a5;
}
.hero-wheel {
  width: 100%;
  max-width: 480px;
  transform: rotate(-13deg);
}
.hero-wheel svg {
  display: block;
  width: 100%;
  filter: drop-shadow(0 24px 22px #02180fb0);
}
.art-note {
  position: absolute;
  right: -12px;
  bottom: 85px;
  background: #e9e1cf;
  color: #143326;
  display: flex;
  gap: 13px;
  padding: 21px 23px;
  box-shadow: 0 10px 30px #0003;
  transform: rotate(3deg);
  border-radius: 3px;
  z-index: 1;
}
.note-icon {
  font-size: 27px;
}
.art-note small {
  font-size: 7px;
  letter-spacing: 0.16em;
}
.art-note p {
  font: 25px/1.08 var(--serif);
  margin: 9px 0 0;
}
.party-pill {
  position: absolute;
  bottom: 20px;
  left: 23px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  z-index: 1;
}
.party-pill small {
  display: block;
  font-size: 9px;
  color: #9cae99;
  margin-top: 4px;
}
.avatar-stack {
  display: flex;
  padding-left: 6px;
}
.avatar-stack i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid #123426;
  border-radius: 50%;
  margin-left: -6px;
  background: #dbb980;
  color: #19352a;
  font-size: 10px;
  font-style: normal;
}
.avatar-stack i:nth-child(2) {
  background: #a1c4ba;
}
.avatar-stack i:nth-child(3) {
  background: #d2a6a6;
}
.welcome-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.4fr;
  gap: 20px;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  margin: 0 5.5%;
  padding: 25px 0;
}
.welcome-bottom > div {
  display: flex;
  gap: 15px;
  align-items: center;
}
.welcome-bottom b {
  font: 36px var(--serif);
  font-weight: normal;
  color: #dbbc86;
}
.welcome-bottom span {
  font-size: 10px;
  color: #9eae9d;
  max-width: 110px;
  line-height: 1.5;
}
.welcome-bottom p {
  margin: 0;
  font: 17px/1.6 var(--serif);
  text-align: right;
}
.welcome-bottom p span {
  font: 10px var(--sans);
}
.welcome-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 0 5.5%;
  padding: 20px 0;
  color: #8f9f8e;
  font-size: 8px;
  letter-spacing: 0.12em;
}
.welcome-footer a {
  color: #bdc6b4;
  font-size: 10px;
  letter-spacing: 0;
  text-underline-offset: 4px;
}
.welcome-footer button {
  font-size: 10px;
  letter-spacing: 0;
}
#hud .hud-money {
  border-radius: 9px;
  background: #0b201ce8;
}
#hud .hud-right button {
  border-radius: 7px;
  background: #0b201ce8;
  letter-spacing: 0;
}
#room-name {
  top: 95px;
  font-size: 9px;
}
.hud-right {
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 75%;
}
#prompt {
  max-width: 90vw;
  width: max-content;
}
#online-count {
  color: #b5e6c9;
}
.experience-tools {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 12;
  display: flex;
  gap: 8px;
  align-items: center;
}
.mission-pill {
  background: #102a22f0;
  color: #eee6d5;
  border: 1px solid #cbb38255;
  border-radius: 9px;
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  max-width: 310px;
}
.mission-pill small {
  display: block;
  font-size: 8px;
  color: #dbbb80;
  letter-spacing: 0.15em;
  margin-bottom: 5px;
}
.mission-pill span {
  display: block;
  color: #a3b6a7;
  font-size: 10px;
  margin-top: 6px;
}
body:has(#intro:not([hidden])) .experience-tools,
body:has(#epilogue:not([hidden])) .experience-tools {
  display: none;
}
.calm-toggle {
  background: #102a22f0;
  color: #eee6d5;
  border: 1px solid #cbb38255;
  border-radius: 9px;
  padding: 12px;
  font-size: 11px;
}
.experience-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(1000px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  border: 1px solid #8f9b7155;
  border-radius: 18px;
  background: #0c241c;
  color: #f3eddf;
  padding: 0;
  box-shadow: 0 35px 100px #0008;
  overflow: auto;
}
.experience-dialog::backdrop {
  background: #03150ee3;
  backdrop-filter: blur(7px);
}
.ex-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 27px 30px 23px;
  border-bottom: 1px solid var(--stroke);
}
.ex-head small,
.section-kicker {
  display: block;
  font-size: 9px;
  color: #d4b47a;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.ex-head h2 {
  font: 34px var(--serif);
  font-weight: 400;
  margin: 7px 0 0;
}
.ex-close {
  border: 1px solid var(--stroke);
  background: transparent;
  color: inherit;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 22px;
}
.ex-body {
  padding: 26px 30px 30px;
}
.ex-body p {
  color: #b8c8b9;
  font-size: 13px;
  line-height: 1.7;
}
.ex-body h3 {
  font: 25px var(--serif);
  font-weight: 400;
  margin: 10px 0;
}
.ex-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.ex-card {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 22px;
  background: #ffffff03;
}
.ex-card label {
  display: block;
  font-size: 11px;
  color: #ccdacb;
  margin: 16px 0 7px;
}
.ex-card input {
  background: #051a12;
  border: 1px solid #7b937b77;
  color: #f3eddf;
  border-radius: 7px;
  padding: 13px;
  width: 100%;
  font: 16px var(--sans);
}
.ex-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid #cbb38255;
  border-radius: 7px;
  background: #ffffff08;
  color: #e7eada;
  font: 12px var(--sans);
  cursor: pointer;
  text-decoration: none;
}
.ex-button.primary {
  background: #dedec7;
  color: #173325;
  border-color: #dedec7;
  font-weight: 650;
}
.ex-button:hover {
  filter: brightness(1.15);
}
.ex-button[aria-pressed="true"] {
  border-color: #dfba79;
  background: #8ba17d33;
}
.ex-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.ex-error {
  color: #ffb5a3 !important;
  min-height: 19px;
  font-size: 12px !important;
}
.ex-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9cccb1;
  font-size: 10px;
}
.ex-colors {
  display: flex;
  gap: 9px;
  margin-top: 12px;
}
.ex-colors button {
  height: 28px;
  width: 28px;
  border-radius: 50%;
  border: 3px solid transparent;
  background: var(--avatar);
}
.ex-colors button[aria-pressed="true"] {
  outline: 2px solid #f5eddb;
  outline-offset: 3px;
}
.room-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.room-code {
  font: 28px var(--sans);
  letter-spacing: 0.23em;
  color: #e3c590;
  display: block;
  margin-top: 7px;
}
.ex-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.player-list {
  display: grid;
  gap: 9px;
}
.player-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid #ffffff0c;
}
.player-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--avatar);
  color: #183a2b;
  font-size: 12px;
  font-weight: 700;
}
.player-row b {
  font-size: 12px;
}
.player-row small {
  display: block;
  font-size: 10px;
  color: #93ab99;
  margin-top: 5px;
}
.player-row .you-label {
  margin-left: auto;
  color: #dabc83;
  font-size: 9px;
}
.room-feed {
  max-height: 175px;
  overflow: auto;
  margin-top: 18px;
}
.room-feed p {
  font-size: 11px;
  padding-bottom: 9px;
  border-bottom: 1px solid #ffffff08;
  margin: 7px 0;
}
.ex-progress {
  height: 5px;
  background: #ffffff12;
  border-radius: 9px;
  overflow: hidden;
  margin: 13px 0;
}
.ex-progress i {
  display: block;
  height: 100%;
  background: #b7c98f;
  transition: width 0.4s;
}
.quiz-question {
  font: 27px/1.25 var(--serif);
  margin: 18px 0;
}
.quiz-answers {
  display: grid;
  gap: 10px;
}
.quiz-answers button {
  text-align: left;
  justify-content: flex-start;
  line-height: 1.5;
  padding: 16px;
}
.quiz-answers button.correct {
  background: #81cba12b;
  border-color: #81cba1;
}
.quiz-answers button.selected {
  border-color: #e4be7e;
}
.quiz-feedback {
  background: #a4c28913;
  border-left: 3px solid #b4cc92;
  padding: 16px;
  margin-top: 20px;
}
.quiz-timer {
  font-size: 12px;
  color: #dfbe84;
}
.score-row {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--stroke);
  font-size: 13px;
}
.roulette-number {
  display: grid;
  place-items: center;
  width: 115px;
  height: 115px;
  background: #183c2a;
  border: 1px solid #b89c5e;
  border-radius: 50%;
  font: 55px var(--serif);
  margin: 24px auto;
}
.roulette-number.red {
  background: #85362c;
}
.roulette-number.black {
  background: #0a1611;
}
.history-strip {
  display: flex;
  gap: 7px;
  justify-content: center;
}
.history-strip span {
  border: 1px solid var(--stroke);
  border-radius: 50%;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  font-size: 10px;
}
.map-svg {
  width: 100%;
  display: block;
  border-radius: 10px;
  background: #061c14;
  border: 1px solid var(--stroke);
}
.map-key {
  display: flex;
  gap: 17px;
  flex-wrap: wrap;
  font-size: 10px;
  color: #b9c6b5;
  margin: 14px 0;
}
.map-key i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f4d391;
  margin-right: 6px;
}
.discovery-list {
  max-height: 370px;
  overflow: auto;
  display: grid;
  gap: 9px;
}
.discovery-item {
  padding: 13px;
  border: 1px solid var(--stroke);
  border-radius: 9px;
  font-size: 11px;
  line-height: 1.6;
}
.discovery-item b {
  display: block;
  color: #dcc391;
}
.discovery-item p {
  margin: 6px 0;
  font-size: 11px;
}
.guide-step {
  display: flex;
  gap: 14px;
  margin: 20px 0;
}
.guide-step > span {
  font: 28px var(--serif);
  color: #c6a66f;
}
.guide-step h3 {
  font-size: 20px;
  margin: 0 0 5px;
}
.guide-step p {
  margin: 0;
}
.ex-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.ex-controls span {
  font-size: 11px;
  color: #b7c6b5;
}
.invite-preview {
  font-size: 11px;
  word-break: break-all;
  color: #d9c089;
  padding: 10px;
  border: 1px dashed var(--stroke);
  border-radius: 6px;
  margin-top: 10px;
  user-select: all;
}
body.calm-mode *,
body.calm-mode *::before,
body.calm-mode *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}
body.calm-mode #game {
  filter: none !important;
}
body.calm-mode #flash {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
@media (max-width: 1000px) {
  .welcome-main {
    gap: 30px;
    padding-top: 38px;
    min-height: 550px;
  }
  .welcome-art {
    height: 420px;
  }
  .welcome-lead {
    font-size: 13px;
  }
  .welcome-proof {
    gap: 9px;
    font-size: 8px;
  }
  .welcome-bottom {
    grid-template-columns: repeat(3, 1fr);
  }
  .welcome-bottom > p {
    display: none;
  }
  .edition {
    display: none;
  }
  .art-note {
    right: -8px;
    padding: 15px;
    bottom: 80px;
  }
  .art-note p {
    font-size: 22px;
  }
  .welcome-footer {
    letter-spacing: 0;
  }
  .welcome-footer > span {
    max-width: 170px;
    line-height: 1.5;
  }
}
@media (max-width: 700px) {
  .welcome-header {
    padding: 18px 0;
  }
  .welcome-main {
    grid-template-columns: 1fr;
    padding: 35px 6% 28px;
    gap: 30px;
  }
  .welcome-art {
    height: 330px;
    margin: 0 8px;
    order: 2;
    border-radius: 150px 150px 8px 8px;
  }
  .hero-wheel {
    width: 300px;
  }
  .art-caption {
    top: 24px;
    font-size: 7px;
  }
  .art-note {
    bottom: 65px;
    right: 0;
  }
  .art-note p {
    font-size: 20px;
  }
  .party-pill {
    left: 16px;
    bottom: 15px;
    font-size: 10px;
  }
  .welcome-copy h1 {
    font-size: 58px !important;
  }
  .welcome-lead {
    max-width: 100%;
    font-size: 13px;
  }
  .welcome-proof {
    font-size: 9px;
  }
  .welcome-bottom {
    gap: 10px;
    padding: 18px 0;
  }
  .welcome-bottom > div {
    display: block;
  }
  .welcome-bottom b {
    font-size: 30px;
  }
  .welcome-bottom span {
    display: block;
    font-size: 9px;
  }
  .welcome-footer {
    flex-wrap: wrap;
    gap: 10px;
  }
  .welcome-footer > span {
    flex-basis: 100%;
    max-width: none;
  }
  .welcome-nav button {
    font-size: 10px;
  }
  .wordmark {
    font-size: 10px;
  }
  .brand-symbol {
    width: 32px;
    height: 38px;
  }
  .ex-grid {
    grid-template-columns: 1fr;
  }
  .ex-head {
    padding: 20px;
  }
  .ex-head h2 {
    font-size: 29px;
  }
  .ex-body {
    padding: 20px;
  }
  .ex-card {
    padding: 17px;
  }
  .room-heading {
    flex-wrap: wrap;
  }
  .hud-right {
    gap: 5px;
    max-width: 67%;
    right: 10px;
    top: 10px;
  }
  .hud-right button {
    padding: 8px !important;
    font-size: 10px !important;
  }
  .hud-money {
    left: 10px;
    top: 10px;
    min-width: 105px;
    padding: 9px;
  }
  .hud-money b {
    font-size: 24px;
  }
  #room-name {
    top: 103px;
  }
  .experience-tools {
    bottom: 15px;
    left: 10px;
  }
  .mission-pill {
    max-width: 230px;
    font-size: 10px;
    padding: 10px;
  }
  .mission-pill span {
    display: none;
  }
  .calm-toggle {
    display: none;
  }
  .lock-inner {
    border-radius: 10px;
    margin: 0 16px;
  }
  .lock-inner span {
    font-size: 10px;
  }
  .dialog-box {
    padding: 15px;
    gap: 12px;
  }
  .text {
    font-size: 18px;
  }
  .portrait {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
  .choices {
    max-height: 30vh;
    overflow: auto;
  }
  .choice {
    font-size: 12px;
  }
  .room-code {
    font-size: 23px;
  }
  .quiz-question {
    font-size: 24px;
  }
}
@media (pointer: coarse) {
  body[data-mode="3d"] #pad {
    display: block;
  }
  .experience-tools {
    bottom: 190px;
  }
  body:has(.experience-dialog[open]) #pad {
    display: none;
  }
  #dialog {
    padding-bottom: 20px;
  }
  .mission-pill small {
    font-size: 8px;
  }
}
@media (max-height: 600px) and (min-width: 701px) {
  .welcome-main {
    padding-top: 25px;
    padding-bottom: 25px;
    min-height: 450px;
  }
  .welcome-art {
    height: 360px;
  }
  #intro h1 {
    font-size: 62px;
  }
  .experience-dialog {
    max-height: 95dvh;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ex-body a {
  color: #dfc99c;
  text-underline-offset: 3px;
}
body:has(#intro:not([hidden])) #hud {
  visibility: hidden;
}
#intro .intro-actions #btn-start:disabled {
  opacity: 0.5;
}
.experience-dialog .ex-button:disabled {
  cursor: default;
}
.experience-dialog .quiz-answers .correct:disabled {
  opacity: 1;
}
/* The resume-mouse overlay must leave the HUD and guide buttons clickable. */
#lock {
  pointer-events: none;
}
.lock-inner {
  pointer-events: auto;
}
.ex-tabs .ex-button.primary[aria-pressed="true"] {
  background: #dedec7;
  color: #173325;
  border-color: #dedec7;
}
.ex-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0c241c;
}
@media (max-width: 700px) {
  #intro .intro-actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: none;
  }
  #intro .intro-actions button {
    width: 100%;
  }
}
