*,
*::before,
*::after {
  box-sizing: border-box;
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: #ecebf3;
  font-family: "Martian Mono", ui-monospace, monospace;
  scrollbar-width: none;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: 0 0;
}

.jump {
  position: fixed;
  left: 18px;
  top: 50%;
  z-index: 12;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jump button {
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #c4b8ff;
  color: #120f20;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.jump button svg {
  width: 20px;
  height: 20px;
  overflow: visible;
  fill: currentColor;
}

.jump button.on {
  background: #ece8ff;
}

.by {
  position: fixed;
  bottom: 14px;
  left: 0;
  right: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  font-size: 11px;
  color: #8e8c9e;
}

.by svg {
  width: 15px;
  height: 15px;
  color: #5865f2;
}

.page > * {
  transition: opacity 0.45s ease;
}

.page.pick > * {
  opacity: 0.18;
}

.page.pick > .flash {
  opacity: 1;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0;
  padding: 72px 20px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 40px 40px;
  align-items: start;
  zoom: 0.84;
}

@media (max-height: 840px) and (min-width: 861px) {
  .page {
    zoom: 0.76;
  }
}

.intro {
  grid-column: 1;
  grid-row: 1 / 3;
}

.world {
  grid-column: 2;
  grid-row: 1;
}

.name {
  margin: 0;
  font-family: Orbitron, sans-serif;
  font-size: clamp(56px, 9vw, 88px);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ecebf3;
}

.type {
  margin: 22px 0 0;
  max-width: 42ch;
  font-size: 14px;
  line-height: 1.75;
  color: #b8b6c6;
}

.more {
  margin: 16px 0 0;
  max-width: 42ch;
  font-size: 13px;
  line-height: 1.7;
  color: #8e8c9e;
}

.langs {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  max-width: 440px;
}

.langs li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.langs li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.langs svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: #c4b8ff;
}

.langs b {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ecebf3;
}

.langs span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: #8e8c9e;
}

.dock {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  max-width: 480px;
  justify-self: center;
}

.lyrics {
  width: 100%;
  padding: 8px 4px 12px;
  text-align: center;
}

.lyrics p {
  margin: 0;
}

.lyrics-side {
  min-height: 1.4em;
  font-size: 12px;
  color: #585667;
}

.lyrics-now {
  margin: 8px 0;
  min-height: 1.6em;
  font-size: 18px;
  line-height: 1.5;
  color: #8e8c9e;
}

.lyrics-now b {
  color: #c4b8ff;
  font-weight: 500;
}

.contrib {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  margin-top: 0;
}

.gh-mark {
  display: grid;
  place-items: center;
  margin: 0 0 4px;
  color: #c4b8ff;
}

.gh-mark svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.contrib-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8e8c9e;
}

.contrib-top a {
  color: #c4b8ff;
  text-decoration: none;
}

.cal {
  overflow: hidden;
  width: 100%;
}

.months {
  display: grid;
  grid-template-columns: repeat(53, minmax(0, 1fr));
  gap: 3px;
  height: 14px;
  margin-bottom: 6px;
  font-size: 9px;
  color: #585667;
}

.grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(53, minmax(0, 1fr));
  grid-template-rows: repeat(7, auto);
  grid-auto-flow: column;
  gap: 3px;
}

.grid i {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.05);
}

.legend i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.05);
}

.grid i.l1,
.legend i.l1 {
  background: rgba(196, 184, 255, 0.35);
}

.grid i.l2,
.legend i.l2 {
  background: rgba(196, 184, 255, 0.58);
}

.grid i.l3,
.legend i.l3 {
  background: #c4b8ff;
}

.grid i.l4,
.legend i.l4 {
  background: #ece8ff;
}

.contrib-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 10px;
  color: #585667;
}

.legend {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tip {
  position: fixed;
  z-index: 20;
  pointer-events: none;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(22, 20, 34, 0.96);
  color: #ecebf3;
  font-size: 10px;
  opacity: 0;
  transform: translate(-50%, -130%);
  transition: opacity 0.12s;
}


.world {
  width: 100%;
  max-width: 480px;
  justify-self: center;
}

.place-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: #c4b8ff;
}

.globe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

#globe {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: pan-y;
}

#globe.dragging {
  cursor: grabbing;
}

.pin {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -100%);
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.25s;
}

.pin .card {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(22, 20, 34, 0.94);
  font-size: 11px;
  line-height: 1.45;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 24px rgba(127, 108, 255, 0.25);
}

.pin .card b {
  color: #c4b8ff;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pin .card span {
  display: block;
  color: #ecebf3;
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.pin .card small {
  display: block;
  color: #8e8c9e;
  font-size: 10px;
}

.pin.away .card b {
  color: #78dcff;
}

.pin.away .card {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 24px rgba(120, 220, 255, 0.25);
}

.pin .stem {
  display: block;
  width: 1px;
  height: 34px;
  margin: 0 auto;
  background: linear-gradient(#c4b8ff, transparent);
}

.pin.away .stem {
  background: linear-gradient(#78dcff, transparent);
}

.hint {
  margin: 12px 0 0;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #585667;
}

.world .hint {
  position: absolute;
  bottom: 1%;
  left: 0;
  right: 0;
  text-align: center;
}

.player {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) 92px;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.player button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #c4b8ff;
  color: #120f20;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.player button svg,
.vol-icon {
  width: 18px;
  height: 18px;
  overflow: visible;
  fill: currentColor;
}

.vol-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vol-icon {
  flex: none;
  color: #c4b8ff;
}

.player-bar {
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}

.player-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: #c4b8ff;
}

.player #time {
  font-size: 11px;
  color: #8e8c9e;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.player #vol {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  outline: none;
}

.player #vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c4b8ff;
  cursor: pointer;
}

.player #vol::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #c4b8ff;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .pin {
    transition: none;
  }
}
