:root {
  color-scheme: dark;
  --bg: #111116;
  --panel: #19191f;
  --panel-2: #202027;
  --text: #f1eef2;
  --muted: #a4a0ab;
  --line: #ffffff12;
  --accent: #f17c8e;
  --lilac: #b5a0e0;
  --danger: #ffb3b8;
  --radius: 20px;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(ellipse at 12% 0%,#34202b66,transparent 45%),var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  min-height: 100vh;
}

button,input {
  font: inherit;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: .45;
}

button:focus-visible,a:focus-visible,input:focus-visible {
  outline: 2px solid var(--lilac);
  outline-offset: 4px;
}

button,input {
  border-radius: 9px;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1 {
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: 1.12;
}

h2 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -.02em;
  margin-bottom: 0;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 3px;
}

[hidden] {
  display: none!important;
}

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

.eyebrow {
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .13em;
  color: var(--accent);
  text-transform: uppercase;
}

.fine-print {
  font-size: .8rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.site-header {
  height: 104px;
  max-width: 1600px;
  padding: 0 5%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.2;
  font-size: 1.05rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: .58rem;
  letter-spacing: .21em;
  font-weight: 500;
  margin-top: 6px;
}

.brand-mark {
  font-size: 1.45rem;
  background: #271d26;
  border: 1px solid #ffffff0e;
  border-radius: 13px;
  width: 56px;
  height: 51px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: -.08em;
}

.brand-mark span {
  color: var(--accent);
  margin: 0 2px;
  font-size: 1.1rem;
}

.header-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

.connection {
  font-size: .8rem;
  color: var(--muted);
}

.connection.online:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #a6c9b2;
  border-radius: 50%;
  margin-right: 8px;
}

.button {
  border: 1px solid transparent;
  padding: 11px 17px;
  min-height: 45px;
  line-height: 1.25;
  font-size: .9rem;
  font-weight: 550;
  transition: background .15s,transform .15s;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  color: #25171d;
  box-shadow: 0 3px 15px #f17c8e12;
}

.button.primary:hover:not(:disabled) {
  background: #ff91a1;
}

.button.secondary {
  background: #ffffff09;
  border-color: #ffffff16;
}

.button.secondary:hover:not(:disabled) {
  background: #ffffff10;
}

.button.quiet {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}

.button.quiet:hover:not(:disabled) {
  color: var(--text);
  background: #ffffff07;
}

.button.small {
  min-height: 36px;
  padding: 8px 12px;
  font-size: .8rem;
}

.button.full {
  width: 100%;
}

.text-button {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 0;
  font-size: .8rem;
}

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

.entry-layout {
  max-width: 1260px;
  margin: 60px auto 0;
  padding: 0 50px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 100px;
  align-items: center;
}

.intro h1 {
  font-size: clamp(3rem,5.6vw,5rem);
  margin-bottom: 26px;
}

.intro-copy {
  color: var(--muted);
  max-width: 440px;
  line-height: 1.8;
}

.intro-scene {
  position: relative;
  isolation: isolate;
  max-width: 440px;
  height: 220px;
  margin-top: 34px;
  overflow: hidden;
}

.scene-screen {
  position: absolute;
  left: 16%;
  right: 16%;
  height: 133px;
  top: 3px;
  background: linear-gradient(135deg,#553145,#35304b 70%,#2c2937);
  border: 1px solid #b5a0e028;
  border-radius: 6px;
  box-shadow: 0 0 70px #f17c8e0e;
  display: grid;
  place-items: center;
  transform: perspective(700px) rotateX(-4deg);
  z-index: 1;
}

.scene-play {
  color: #e4c8d69c;
  font-size: 1.4rem;
}

.scene-seats {
  position: absolute;
  bottom: 11px;
  left: 19%;
  right: 19%;
  display: flex;
  gap: 18px;
  justify-content: center;
  z-index: 2;
}

.scene-seats span {
  display: block;
  height: 69px;
  width: 99px;
  border-radius: 21px 21px 9px 9px;
  background: linear-gradient(180deg,#44303a,#291f29);
  border: 1px solid #ad748a26;
  box-shadow: 0 7px 0 -1px #19161d;
}

.scene-glow {
  position: absolute;
  inset: 45px 0 -30px;
  background: radial-gradient(ellipse,#b96f8c18,transparent 65%);
  z-index: 0;
}

.intro-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: #a9a0af;
  font-size: .75rem;
  margin: 18px 0 40px;
}

.intro-features span+span:before {
  content: "·";
  margin-right: 18px;
  color: #5a4b5b;
}

.entry-card {
  background: linear-gradient(145deg,#242029,#1b1b22);
  border: 1px solid #ffffff0d;
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: 0 20px 80px #0002;
}

.card-heading {
  margin-bottom: 30px;
}

.card-heading .eyebrow {
  font-size: .65rem;
}

.card-heading h2 {
  font-size: 1.8rem;
  margin-top: 12px;
}

.card-heading p {
  font-size: .9rem;
  color: var(--muted);
  margin: 10px 0 0;
}

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

label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: .85rem;
  color: #d7d0dc;
}

input:not([type=range]) {
  background: #10101588;
  border: 1px solid #ffffff18;
  padding: 12px 13px;
  min-height: 47px;
  width: 100%;
  color: var(--text);
}

input::placeholder {
  color: #807888;
}

input[type=range] {
  accent-color: var(--accent);
  cursor: pointer;
}

.error-message {
  color: var(--danger);
  font-size: .85rem;
  line-height: 1.6;
  margin: 18px 0 0;
}

.loading-view,.fatal-view {
  max-width: 700px;
  padding: 100px 30px;
  text-align: center;
  margin: 0 auto;
}

.loading-view p {
  color: var(--muted);
  margin-top: 18px;
}

.loader {
  display: inline-block;
  width: 25px;
  height: 25px;
  border: 2px solid #ffffff18;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.fatal-view h1 {
  font-size: 2.6rem;
}

.fatal-view>p:not(.eyebrow) {
  color: var(--muted);
}

.lobby {
  max-width: 1260px;
  margin: 45px auto;
  padding: 0 50px 50px;
}

.lobby-heading h1 {
  font-size: clamp(2rem,3.5vw,3rem);
  margin-bottom: 15px;
}

.lobby-columns {
  margin-top: 42px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #19191fd9;
  padding: 26px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.count {
  color: var(--muted);
  font-size: .75rem;
}

.asset-list,.room-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.asset-card {
  padding: 18px;
  border: 1px solid #ffffff0b;
  border-radius: 12px;
  background: #ffffff03;
  display: flex;
  gap: 16px;
  align-items: center;
}

.asset-art {
  flex-shrink: 0;
  width: 47px;
  height: 60px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: #d4b8c7;
  background: linear-gradient(135deg,#56313c,#39324d);
}

.asset-copy {
  flex: 1;
  min-width: 0;
}

.asset-copy h3,.room-card h3 {
  font-size: 1rem;
  margin: 0;
  overflow-wrap: anywhere;
}

.asset-copy p,.room-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .8rem;
}

.asset-card .button {
  flex-shrink: 0;
}

.room-card {
  padding: 17px;
  background: #ffffff04;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.room-card>div {
  min-width: 0;
}

.empty-state {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.8;
  padding: 20px 0;
  margin: 0;
}

.room-view {
  max-width: 1600px;
  padding: 10px 5% 50px;
  margin: auto;
}

.room-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0 24px;
  gap: 25px;
}

.room-heading h1 {
  font-size: 1.65rem;
  margin: 10px 0 0;
  overflow-wrap: anywhere;
}

.room-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.theatre-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 330px;
  gap: 24px;
  align-items: start;
}

.screen-column {
  min-width: 0;
}

.player-shell {
  position: relative;
  background: #060609;
  border: 1px solid #ffffff13;
  border-radius: 15px;
  aspect-ratio: 16/10;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px #0003;
}

.player-shell video {
  position: absolute;
  width: 100%;
  height: calc(100% - 88px);
  object-fit: contain;
  inset: 0 0 88px;
  outline: none;
}

.screen-topline {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  pointer-events: none;
}

.screen-status {
  background: #15131cbb;
  backdrop-filter: blur(8px);
  padding: 5px 9px;
  border: 1px solid #ffffff0c;
  border-radius: 6px;
  font-size: .7rem;
  color: #c9c1d0;
}

.player-empty {
  position: absolute;
  inset: 0 0 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%,#3b283b55,transparent 65%);
}

.screen-symbol {
  font-size: 1.3rem;
  color: var(--accent);
  height: 65px;
  width: 65px;
  border-radius: 50%;
  border: 1px solid #f17c8e35;
  background: #f17c8e08;
  display: grid;
  place-items: center;
  padding-left: 4px;
  margin-bottom: 22px;
}

.player-empty h2 {
  font-size: 1.25rem;
}

.player-empty p {
  font-size: .85rem;
  color: var(--muted);
  margin: 10px 0 0;
}

.playback-blocked {
  position: absolute;
  inset: 0 0 88px;
  background: #08080ccc;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 25px;
  text-align: center;
}

.playback-blocked p {
  color: var(--muted);
  font-size: .8rem;
  margin: 14px 0 0;
}

.transport {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #141318;
  border-top: 1px solid #ffffff0b;
  padding: 9px 18px 12px;
  height: 88px;
}

.seek-row {
  height: 18px;
  display: flex;
  align-items: center;
}

.seek-row input {
  width: 100%;
  margin: 0;
  height: 5px;
}

.transport-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  margin-top: 3px;
}

.icon-button {
  background: transparent;
  border: 0;
  min-width: 34px;
  min-height: 34px;
  padding: 5px;
  color: #cec6d4;
  font-size: 1.35rem;
  display: grid;
  place-items: center;
}

.play-button {
  font-size: 1rem;
  color: var(--text);
}

.time-display {
  font-size: .75rem;
  color: #b1a8ba;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.transport-spacer {
  flex: 1;
}

.volume-control {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: .7rem;
}

.volume-control input {
  width: 70px;
  height: 4px;
}

.under-screen {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 17px 3px;
  color: #8f869a;
  font-size: .75rem;
}

.under-screen>span:last-child {
  text-align: right;
  color: var(--lilac);
}

.conversation-panel {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #19191f;
  overflow: hidden;
}

.people-section,.voice-section {
  padding: 21px;
  border-bottom: 1px solid var(--line);
}

.people-section .section-heading {
  margin-bottom: 15px;
}

.people-section h2,.chat-section h2 {
  font-size: .9rem;
}

.participants {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.participant {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.participant-avatar {
  width: 33px;
  height: 33px;
  flex-shrink: 0;
  border: 1px solid #ffffff12;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #413044;
  color: #f2c5d4;
  font-size: .8rem;
}

.participant:nth-child(2) .participant-avatar {
  background: #333044;
  color: #c8bbec;
}

.participant-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .85rem;
}

.participant-badge {
  font-size: .7rem;
  color: var(--muted);
}

.participant-empty {
  font-size: .8rem;
  color: var(--muted);
  padding: 4px 0;
}

.voice-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.voice-heading h3 {
  font-size: .9rem;
}

.voice-heading p {
  font-size: .75rem;
  margin: 3px 0 0;
}

.voice-indicator {
  color: #827189;
  font-size: 1.3rem;
  letter-spacing: -.1em;
}

.voice-indicator.active {
  color: #b2d0ba;
}

.voice-actions {
  display: flex;
  gap: 8px;
}

.voice-actions .button {
  font-size: .8rem;
  padding: 9px 11px;
  min-height: 38px;
}

.voice-actions .button:not(.full) {
  flex: 1;
}

.friend-volume {
  font-size: .7rem;
  color: var(--muted);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 17px;
}

.friend-volume input {
  width: 90px;
  height: 4px;
}

.voice-section .fine-print {
  font-size: .7rem;
  margin-top: 13px;
}

.chat-section {
  position: relative;
  padding: 21px;
}

.chat-caption {
  font-size: .7rem;
  color: var(--muted);
}

.chat-messages {
  height: 210px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #49404e transparent;
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding: 0 3px 8px 0;
}

.chat-message {
  font-size: .85rem;
  overflow-wrap: anywhere;
}

.chat-meta {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 3px;
}

.chat-author {
  font-size: .75rem;
  font-weight: 600;
  color: #d9c0d2;
}

.chat-message.own .chat-author {
  color: var(--lilac);
}

.chat-time {
  color: #817888;
  font-size: .65rem;
}

.chat-text {
  white-space: pre-wrap;
  margin: 0;
  line-height: 1.5;
  color: #d4ceda;
}

.chat-empty {
  position: absolute;
  top: 100px;
  left: 25px;
  right: 25px;
  text-align: center;
  color: #82798d;
  font-size: .85rem;
  pointer-events: none;
}

.chat-form {
  display: flex;
  gap: 7px;
  margin-top: 15px;
}

.chat-form input {
  min-width: 0;
  min-height: 41px;
  padding: 9px 10px;
  font-size: .85rem;
}

.chat-form .button {
  min-height: 41px;
  padding: 9px 12px;
  font-size: .8rem;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  background: #38303e;
  border: 1px solid #ffffff21;
  border-radius: 10px;
  font-size: .85rem;
  box-shadow: 0 12px 40px #0005;
  z-index: 20;
  max-width: 90%;
  text-align: center;
}

.noscript {
  padding: 30px;
  text-align: center;
}

.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;
}

.player-shell:fullscreen {
  border-radius: 0;
  border: 0;
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
  background: #000;
}

.player-shell:fullscreen video {
  height: calc(100% - 88px);
}

@media(min-width:1450px) {
  .chat-messages {
    height: 270px;
  }
  .theatre-layout {
    grid-template-columns: minmax(0,1fr) 350px;
  }
}

@media(max-width:1050px) {
  .site-header {
    padding: 0 4%;
    height: 90px;
  }
  .entry-layout {
    gap: 45px;
    padding: 0 35px;
    margin-top: 45px;
  }
  .intro h1 {
    font-size: 3.6rem;
  }
  .entry-card {
    padding: 27px;
  }
  .room-view {
    padding: 10px 3% 40px;
  }
  .theatre-layout {
    grid-template-columns: minmax(0,1fr) 295px;
    gap: 17px;
  }
  .people-section,.voice-section,.chat-section {
    padding: 17px;
  }
  .player-shell {
    aspect-ratio: 16/11;
  }
  .volume-control span {
    display: none;
  }
  .under-screen {
    flex-direction: column;
    gap: 4px;
  }
  .under-screen>span:last-child {
    text-align: left;
  }
  .lobby {
    padding: 0 35px 40px;
  }
  .asset-card {
    flex-wrap: wrap;
  }
  .asset-card .button {
    margin-left: 63px;
  }
  .chat-messages {
    height: 190px;
  }
}

@media(max-width:790px) {
  .entry-layout {
    grid-template-columns: 1fr;
    max-width: 550px;
    margin-top: 30px;
    gap: 25px;
    padding: 0 25px 45px;
  }
  .intro h1 {
    font-size: 3.2rem;
  }
  .intro-copy {
    font-size: .95rem;
  }
  .intro-scene {
    display: none;
  }
  .intro-features {
    margin: 23px 0 0;
    font-size: .7rem;
    gap: 7px 12px;
  }
  .intro-features span+span:before {
    margin-right: 12px;
  }
  .entry-card {
    padding: 27px;
  }
  .theatre-layout {
    grid-template-columns: 1fr;
  }
  .player-shell {
    aspect-ratio: 16/11;
  }
  .conversation-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .people-section {
    border-right: 1px solid var(--line);
  }
  .chat-section {
    grid-column: 1/-1;
  }
  .chat-messages {
    height: 240px;
  }
  .chat-empty {
    top: 130px;
  }
  .room-heading {
    margin-top: 0;
  }
  .room-heading h1 {
    font-size: 1.35rem;
  }
  .room-actions {
    gap: 5px;
  }
  .room-actions .button {
    font-size: .7rem;
    padding: 8px;
  }
  .under-screen {
    flex-direction: row;
    margin-bottom: 0;
  }
  .under-screen>span:last-child {
    text-align: right;
  }
  .lobby-columns {
    grid-template-columns: 1fr;
  }
  .lobby {
    margin-top: 25px;
    padding: 0 25px 35px;
  }
  .asset-card {
    flex-wrap: nowrap;
  }
  .asset-card .button {
    margin-left: 0;
  }
  .lobby-heading h1 {
    font-size: 2.3rem;
  }
  .header-right {
    gap: 12px;
  }
  .connection {
    font-size: .7rem;
  }
}

@media(max-width:440px) {
  .site-header {
    height: 83px;
  }
  .brand {
    font-size: .95rem;
    gap: 9px;
  }
  .brand-mark {
    width: 44px;
    height: 43px;
    font-size: 1.2rem;
  }
  .brand small {
    font-size: .5rem;
  }
  .header-right {
    gap: 7px;
  }
  .header-right .button {
    font-size: .7rem;
    padding: 7px;
  }
  .connection {
    font-size: .65rem;
  }
  .room-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .room-actions {
    flex-direction: column;
  }
  .player-shell {
    aspect-ratio: 4/3;
  }
  .transport {
    padding-left: 10px;
    padding-right: 10px;
  }
  .transport-row {
    gap: 6px;
  }
  .volume-control input {
    width: 50px;
  }
  .screen-topline {
    top: 10px;
    left: 10px;
    right: 10px;
  }
  .screen-status {
    font-size: .6rem;
  }
  .screen-symbol {
    width: 45px;
    height: 45px;
    margin-bottom: 14px;
  }
  .player-empty h2 {
    font-size: 1rem;
  }
  .player-empty p {
    font-size: .75rem;
  }
  .under-screen {
    font-size: .65rem;
  }
  .conversation-panel {
    grid-template-columns: 1fr;
  }
  .people-section {
    border-right: 0;
  }
  .chat-section {
    grid-column: auto;
  }
  .chat-messages {
    height: 220px;
  }
  .asset-card {
    padding: 13px;
    gap: 11px;
    flex-wrap: wrap;
  }
  .asset-card .button {
    margin-left: 58px;
  }
  .lobby-columns .panel {
    padding: 20px;
  }
  .intro h1 {
    font-size: 2.9rem;
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    animation: none!important;
    transition: none!important;
  }
}
