:root {
  color-scheme: dark;
  --bg: #0d1014;
  --panel: #161b21;
  --line: #2b3138;
  --text: #f1f5f3;
  --muted: #a1a8b1;
  --mint: #83f2c2;
  --amber: #ffd18c;
  --pink: #fab2ed;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans:
    Inter, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}
::selection {
  background: var(--mint);
  color: #101e19;
}
button {
  border: 0;
  background: none;
}
button:active:not(:disabled) {
  filter: brightness(0.86);
}
[hidden] {
  display: none !important;
}
svg {
  width: 19px;
  height: 19px;
  display: block;
}
.topbar {
  border-bottom: 1px solid var(--line);
  background: #11151a;
}
.topinner,
main {
  max-width: 1496px;
  margin: auto;
  padding: 0 clamp(24px, 4.25vw, 76px);
}
.topinner {
  height: 74px;
  display: flex;
  align-items: center;
  gap: clamp(32px, 6vw, 100px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  font:
    900 23px/1 Arial,
    sans-serif;
  letter-spacing: -1.3px;
}
.brandmark {
  height: 34px;
  width: 34px;
  background: var(--mint);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transform: rotate(-4deg);
}
.brandmark i {
  display: block;
  width: 3px;
  background: #14271f;
  height: 9px;
}
.brandmark i:nth-child(2) {
  height: 18px;
}
.brandmark i:nth-child(3) {
  height: 13px;
}
.brandmark i:nth-child(4) {
  height: 21px;
}
.topinner nav {
  display: flex;
  gap: 9px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  padding: 9px 14px;
  border-radius: 6px;
  min-height: 38px;
}
.nav svg {
  width: 16px;
  height: 16px;
}
.nav:hover,
.iconbtn:hover,
.mapfoot button:hover,
.back:hover {
  background: #252d33;
}
.nav.selected {
  color: var(--mint);
  background: #1d302a;
}
.topend,
.profile,
.connection,
.online,
.mapfoot,
.mapfoot > span,
.audio-controls,
.attendance,
.enter,
.sectiontitle,
.sectiontitle h2,
.breadcrumb,
.player-label,
.mapstamp,
.dialog-head,
.back,
.primary {
  display: flex;
  align-items: center;
}
.topend {
  margin-left: auto;
  gap: 20px;
}
.connection {
  gap: 8px;
  font-size: 12px;
  color: #bfc9c5;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  display: inline-block;
}
.connection.off .dot {
  background: #eeb580;
}
.navdivider {
  height: 22px;
  width: 1px;
  background: var(--line);
}
.profile {
  gap: 9px;
  font-size: 13px;
  font-weight: 650;
}
.profile canvas {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #30433d;
  image-rendering: pixelated;
  padding: 3px;
}
main {
  padding-top: 32px;
  padding-bottom: 20px;
}
.breadcrumb {
  gap: 10px;
  color: #8f98a4;
  font: 600 10px/1.4 var(--mono);
  letter-spacing: 1.8px;
}
.breadcrumb svg {
  width: 14px;
  height: 14px;
}
.breadcrumb b {
  color: #58616a;
}
.breadcrumb #crumb {
  color: #bdc8c4;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 15px 0 32px;
}
.intro h1 {
  font-size: clamp(40px, 4.3vw, 64px);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.065em;
  font-weight: 820;
}
.intro p {
  color: #acb3bc;
  font-size: 15px;
  line-height: 1.5;
  margin: 11px 0 0;
  letter-spacing: -0.02em;
}
.online {
  gap: 5px;
  background: #1a2520;
  border: 1px solid #32423a;
  border-radius: 100px;
  color: #cbd8d1;
  padding: 8px 13px;
  font-size: 12px;
}
.online svg {
  color: var(--mint);
  width: 15px;
  height: 15px;
  margin-right: 3px;
}
.online b {
  color: var(--mint);
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 2.16fr) minmax(245px, 1fr);
  gap: 25px;
}
.sectiontitle {
  height: 27px;
  margin-bottom: 12px;
  gap: 9px;
  justify-content: space-between;
}
.sectiontitle h2 {
  margin: 0;
  gap: 9px;
  letter-spacing: -0.035em;
  font-size: 19px;
}
.sectiontitle h2 svg {
  width: 19px;
  height: 19px;
  color: var(--mint);
}
.micro,
.qty,
.mapstamp,
.venue-code,
.player-label,
footer {
  font-family: var(--mono);
}
.micro {
  font-size: 10px;
  letter-spacing: 1.35px;
  color: #98a2ac;
}
.qty {
  font-size: 11px;
  color: #b7c2c7;
  background: #20262d;
  padding: 3px 7px;
  border: 1px solid #303740;
  border-radius: 4px;
}
.mapbox {
  border: 1px solid #353b43;
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
}
.scene {
  aspect-ratio: 1.78;
  position: relative;
  overflow: hidden;
  background: #141923;
  isolation: isolate;
  cursor: crosshair;
}
.scene #scenery {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}
.mapstamp,
.expand {
  position: absolute;
  top: 14px;
  background: #11161eed;
  border: 1px solid #66727b;
  border-radius: 5px;
  z-index: 3;
}
.mapstamp {
  left: 14px;
  gap: 7px;
  font: bold 10px/1 var(--mono);
  letter-spacing: 1px;
  padding: 8px 10px;
}
.mapstamp .dot {
  width: 6px;
  height: 6px;
}
.expand {
  right: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
}
.expand svg {
  height: 16px;
  width: 16px;
}
.door {
  position: absolute;
  border-radius: 12%;
  z-index: 1;
  transition: background 0.16s;
}
.door:hover {
  background: #fff1;
}
.classical-door {
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  padding: 5px 8px;
  border-radius: 3px;
  border: 1px solid #d2c697;
  background: #173b33;
  color: #fff2be;
  font-size: clamp(10px, 1vw, 14px);
  font-weight: 700;
  white-space: nowrap;
}
.classical-door:hover {
  background: #285746;
}
.jazz-door {
  left: 21%;
  width: 15%;
  top: 36%;
  height: 31%;
}
.rock-door {
  left: 66%;
  width: 17%;
  top: 33%;
  height: 33%;
}
#avatars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.person {
  position: absolute;
  transform: translate(-50%, -100%);
  text-align: center;
  transition:
    left 0.32s linear,
    top 0.32s linear;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.person:after {
  content: "";
  width: 26px;
  height: 7px;
  position: absolute;
  bottom: 0;
  background: #0b101b99;
  border-radius: 50%;
  z-index: -1;
}
.person canvas {
  width: clamp(25px, 2.9vw, 42px);
  height: auto;
  image-rendering: pixelated;
}
.nametag {
  font: 700 10px var(--sans);
  color: #c6ffdf;
  background: #132d26;
  border: 1px solid #8cddbb;
  border-radius: 4px;
  padding: 3px 6px;
  white-space: nowrap;
  margin-bottom: 3px;
}
.person.other .nametag {
  background: #272333;
  border-color: #9f91ad;
  color: #f0e8f5;
}
.mapfoot {
  height: 48px;
  padding: 0 15px;
  gap: 13px;
  color: var(--muted);
  font-size: 12px;
}
.mapfoot > span {
  gap: 7px;
}
.mapfoot svg {
  width: 15px;
  height: 15px;
}
.mapfoot > i {
  height: 12px;
  width: 1px;
  background: #3c424b;
}
.mapfoot button {
  display: grid;
  place-items: center;
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  color: var(--muted);
}
aside {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
#venues {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 14px;
  flex: 1;
}
.venue {
  --tint: var(--amber);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: left;
  border: 1px solid #413835;
  border-radius: 9px;
  background: #241c19;
  min-height: 156px;
  padding: 0;
}
.venue.rock {
  --tint: var(--pink);
  border-color: #403340;
  background: #241b27;
}
.venue.classical {
  --tint: #cee7c4;
  border-color: #34453a;
  background: #19281e;
}
.classical .venue-bg {
  background-image:
    linear-gradient(90deg, #0c1915ef 0%, #11241a70 50%, #10171011 90%),
    url("/art/classical.webp");
}
.venue-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(90deg, #130e0be8 0%, #17100d75 48%, #100b090b 90%),
    url("/art/jazz.webp");
  background-position: center;
  background-size: cover;
  transition: transform 0.3s;
}
.rock .venue-bg {
  background-image:
    linear-gradient(90deg, #160f1be8 0%, #18101d77 48%, #150f190c 90%),
    url("/art/rock.webp");
}
.venue:hover .venue-bg {
  transform: scale(1.035);
}
.venue-body {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: clamp(16px, 1.25vw, 21px) 20px 12px;
  gap: 3px;
}
.venue-code {
  color: var(--tint);
  font-size: 10px;
  letter-spacing: 1.4px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
}
.venue-code i {
  width: 6px;
  height: 6px;
  background: var(--tint);
}
.venue-body strong {
  font-size: clamp(24px, 2.1vw, 36px);
  letter-spacing: -0.05em;
  line-height: 1.32;
  margin-top: 4px;
}
.venue-en {
  font-size: 13px;
  color: #e9e1e1;
  letter-spacing: 0.2px;
}
.venue-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #131218e8;
  color: white;
  border-top: 1px solid #ffffff26;
  padding: 0 17px;
  height: 39px;
  flex-shrink: 0;
}
.attendance,
.enter {
  gap: 7px;
  font-size: 12px;
}
.attendance {
  color: #c8c5c8;
}
.enter {
  color: var(--tint);
  font-weight: 700;
}
.venue-foot svg {
  width: 15px;
  height: 15px;
}
.player {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 21px;
}
.album {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 5px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    repeating-linear-gradient(128deg, transparent 0 5px, #a1e3c339 5px 6px),
    #326c58;
}
.disc {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      #182523 0 5%,
      #c6efd2 6% 17%,
      #53917a 18% 22%,
      transparent 24%
    ),
    repeating-radial-gradient(circle, #182a26 0 2px, #32463a 3px 4px);
  box-shadow: 3px 4px 0 #132a2044;
}
.album.jazz {
  background-color: #93703a;
}
.album.rock {
  background-color: #87577c;
}
.album.classical {
  background-color: #657c55;
}
.track {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 150px;
}
.player-label {
  color: var(--mint);
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 700;
}
.track strong {
  font-size: 19px;
  letter-spacing: -0.5px;
}
.track small {
  color: var(--muted);
  font-size: 12px;
}
#wave {
  width: clamp(60px, 28%, 430px);
  flex: 1;
  height: 35px;
  margin-left: auto;
}
.tracktime {
  font: 11px var(--mono);
  color: #acb4b9;
  white-space: nowrap;
}
.audio-controls {
  gap: 7px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.soundbtn,
.iconbtn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 5px;
  background: #252d32;
}
.soundbtn {
  background: none;
  color: var(--mint);
}
#volume {
  width: 72px;
  height: 4px;
  accent-color: var(--mint);
  cursor: pointer;
}
footer {
  display: flex;
  justify-content: space-between;
  margin: 19px 1px 0;
  font-size: 9px;
  color: #8f9b9c;
  letter-spacing: 1.5px;
}
footer .dot {
  width: 5px;
  height: 5px;
  margin-right: 4px;
}
footer span + span {
  font: 12px var(--sans);
  letter-spacing: 0;
}
#room-panel {
  flex: 1;
}
.queue-panel {
  padding: 17px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
}
#queue {
  padding: 0;
  margin: 0 0 17px;
  list-style: none;
}
.queue-item,
.song-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.queue-item b,
.song-row b {
  font-size: 14px;
}
.queue-item span,
.song-row small,
.empty {
  color: var(--muted);
  font-size: 13px;
}
.queue-item span {
  font-family: var(--mono);
}
.empty {
  padding: 18px 0;
  line-height: 1.65;
}
.primary {
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 750;
  color: #14251e;
  background: var(--mint);
  border-radius: 6px;
  width: 100%;
  min-height: 42px;
}
.primary:hover {
  background: #afffd9;
}
.primary svg,
.back svg {
  width: 16px;
  height: 16px;
}
.back {
  gap: 8px;
  margin: 12px auto;
  padding: 11px 16px;
  border-radius: 5px;
  color: #c5ceca;
  font-size: 13px;
}
dialog {
  width: min(460px, calc(100% - 30px));
  max-height: 85vh;
  overflow: auto;
  background: #171c22;
  color: var(--text);
  border: 1px solid #39424a;
  border-radius: 12px;
  padding: 24px;
}
dialog::backdrop {
  background: #04070bd6;
}
.dialog-head {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.dialog-head h2 {
  font-size: 23px;
  margin: 0;
}
.dialog-head button svg {
  width: 16px;
}
.song-row div {
  display: grid;
  gap: 4px;
}
.song-row button {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 12px;
  padding: 8px 12px;
  color: var(--mint);
  background: #22362d;
  border-radius: 5px;
}
.song-row a,
#track-credit a {
  color: inherit;
  text-underline-offset: 3px;
}
.song-row a:hover,
#track-credit a:hover {
  color: var(--mint);
}
.dialog-group {
  font-size: 14px;
  margin: 24px 0 0;
  color: var(--amber);
}
.dialog-group.rock {
  color: var(--pink);
}
.dialog-group.classical {
  color: #cee7c4;
}
.hint {
  font-size: 14px;
  line-height: 1.65;
  color: #c1c9ce;
}
.song-row button:hover {
  background: #30473b;
}
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #e1f2e9;
  color: #192c21;
  padding: 11px 17px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  z-index: 6;
  max-width: 90vw;
}
#toast:empty {
  display: none;
}
.mapbox.enlarged {
  position: fixed;
  inset: 0;
  z-index: 5;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #090c10;
}
.enlarged .scene {
  width: min(100%, calc((100dvh - 50px) * 1.78));
}
.enlarged .mapfoot {
  width: min(100%, calc((100dvh - 50px) * 1.78));
}
@media (min-width: 1500px) {
  .topinner {
    height: 82px;
  }
  main {
    padding-top: 42px;
  }
  .intro {
    margin-bottom: 38px;
  }
}
@media (max-width: 880px) {
  .topinner,
  main {
    padding-left: 22px;
    padding-right: 22px;
  }
  .topinner {
    gap: 22px;
  }
  .topend {
    gap: 10px;
  }
  .nav {
    padding: 9px;
  }
  .layout {
    grid-template-columns: minmax(0, 1.75fr) minmax(207px, 1fr);
    gap: 16px;
  }
  .scene {
    aspect-ratio: 1.42;
  }
  .venue {
    min-height: 138px;
  }
  .venue-body {
    padding: 12px 15px 8px;
  }
  .venue-en {
    font-size: 11px;
  }
  .venue-foot {
    height: 32px;
  }
  .audio-controls {
    padding-left: 6px;
  }
  .player {
    gap: 10px;
  }
  .track {
    min-width: 130px;
  }
}
@media (max-width: 680px) {
  .topinner {
    height: 60px;
    gap: 14px;
  }
  .topinner,
  main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .brand {
    font-size: 19px;
    gap: 8px;
  }
  .brandmark {
    width: 29px;
    height: 29px;
  }
  .nav {
    font-size: 0;
    gap: 0;
    padding: 9px;
    min-width: 37px;
  }
  .nav svg {
    width: 19px;
    height: 19px;
  }
  .topinner nav {
    gap: 2px;
  }
  .topend {
    gap: 8px;
  }
  .navdivider,
  .profile > span,
  .connection > span {
    display: none;
  }
  .profile canvas {
    width: 29px;
    height: 29px;
  }
  main {
    padding-top: 23px;
  }
  .intro {
    margin: 12px 0 24px;
    align-items: flex-start;
  }
  .intro h1 {
    font-size: 39px;
  }
  .intro p {
    font-size: 13px;
    max-width: 285px;
  }
  .online {
    font-size: 10px;
    padding: 6px 8px;
    white-space: nowrap;
    margin-top: 6px;
  }
  .online svg {
    width: 12px;
    height: 12px;
  }
  .layout {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  .scene {
    aspect-ratio: 1.65;
  }
  .sectiontitle h2 {
    font-size: 17px;
  }
  .sectiontitle {
    margin-bottom: 8px;
  }
  .mapfoot {
    height: 40px;
    font-size: 11px;
  }
  .micro {
    font-size: 8px;
  }
  #venues {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 10px;
  }
  .venue.classical {
    grid-column: 1 / -1;
  }
  .venue {
    min-height: 148px;
  }
  .venue-foot {
    padding: 0 10px;
    height: 35px;
  }
  .venue-body {
    padding: 14px 12px 7px;
  }
  .enter,
  .attendance {
    font-size: 11px;
    gap: 4px;
  }
  .venue-body strong {
    font-size: 23px;
  }
  .venue-code {
    font-size: 9px;
  }
  .player {
    margin-top: 20px;
    padding: 12px;
    gap: 10px;
  }
  .album {
    width: 42px;
    height: 46px;
  }
  .disc {
    width: 32px;
    height: 32px;
  }
  .track {
    min-width: 0;
  }
  .track strong {
    font-size: 16px;
  }
  .track small {
    font-size: 10px;
  }
  #wave {
    min-width: 0;
    height: 28px;
  }
  .tracktime,
  #volume {
    display: none;
  }
  .audio-controls {
    padding: 0;
    border: 0;
  }
  .soundbtn {
    width: 34px;
  }
  footer {
    margin: 15px 0;
    font-size: 8px;
  }
  footer span + span {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
