:root {
  --black: #000000;
  --ink: #1d1d1f;
  --gray: #6e6e73;
  --line: #d2d2d7;
  --silver: #f5f5f7;
  --white: #ffffff;
  --accent: #3e6bff;
  --accent-hover: #2b57ea;
  --violet: #a35bff;
  --brand: linear-gradient(100deg, #5b8cff 10%, #b65bff 90%);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  --radius-xl: 28px;
  --radius-m: 18px;
  --wrap: 1080px;
  --nav: 48px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav) + 16px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid rgba(62, 107, 255, 0.55);
  outline-offset: 3px;
  border-radius: 8px;
}

code {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0;
}

.wrap {
  width: min(var(--wrap), 100% - 44px);
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav);
  background: rgba(251, 251, 253, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body[data-nav="dark"] {
  background: var(--black);
}

.topbar.dark {
  background: rgba(0, 0, 0, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.topbar .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.topbar.dark .brand {
  color: #f5f5f7;
}

.brand:hover {
  text-decoration: none;
}

.menu {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.menu a {
  font-size: 13px;
  letter-spacing: -0.01em;
  color: rgba(0, 0, 0, 0.8);
}

.topbar.dark .menu a {
  color: rgba(255, 255, 255, 0.8);
}

.menu a:hover {
  color: var(--accent);
  text-decoration: none;
}

.topbar.dark .menu a:hover {
  color: #fff;
}

.menu a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.topbar.dark .menu a[aria-current="page"] {
  color: #fff;
}

.play {
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 980px;
  padding: 5px 13px;
  cursor: pointer;
}

.play:hover {
  background: var(--accent-hover);
}

.burger {
  display: none;
  margin-left: auto;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.burger span {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s ease;
}

.burger span:first-child {
  top: 14px;
}

.burger span:last-child {
  top: 21px;
}

.topbar.dark .burger {
  color: #f5f5f7;
}

.topbar.open .burger span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.topbar.open .burger span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 980px;
  border: 0;
  font: inherit;
  font-size: 17px;
  font-weight: 400;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
}

.btn:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.btn.ghost {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.btn.ghost:hover {
  background: var(--accent);
  color: #fff;
}

.more {
  font-size: 19px;
}

.more::after {
  content: " ›";
}

.hero {
  background: var(--black);
  color: #f5f5f7;
  text-align: center;
  padding: 72px 0 0;
  overflow: hidden;
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 12.4vw, 120px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.045em;
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  margin: 14px auto 0;
  max-width: 22ch;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero .actions {
  margin-top: 30px;
  display: flex;
  gap: 22px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.hero .more {
  color: #2997ff;
}

.live {
  margin-top: 22px;
  font-size: 14px;
  color: #86868b;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #86868b;
  display: inline-block;
}

.dot.on {
  background: #30d158;
  box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.18);
}

.dot.off {
  background: #ff453a;
}

.stage {
  width: min(600px, 88vw);
  margin: 8px auto -40px;
}

.stage img {
  width: 100%;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  animation: rise 1.4s cubic-bezier(0.2, 0.7, 0.1, 1) both, hover 7s ease-in-out 1.4s infinite;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hover {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.band,
.page-head {
  background: var(--white);
}

.band {
  padding: 110px 0;
}

.band.silver {
  background: var(--silver);
}

.band.black {
  background: var(--black);
  color: #f5f5f7;
}

.headline {
  margin: 0;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.035em;
  max-width: 20ch;
}

.center .headline,
.center .intro {
  margin-inline: auto;
  text-align: center;
}

.intro {
  margin: 18px 0 0;
  max-width: 40ch;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.33;
  color: var(--gray);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.band.black .intro {
  color: #86868b;
}

.worlds {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.world {
  text-align: center;
  padding: 0 8px;
}

.world .mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 16px;
  display: grid;
  place-items: center;
}

.world .mark svg {
  width: 34px;
  height: 34px;
}

.world h3 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.world .tagline {
  margin: 6px 0 22px;
  color: var(--gray);
  font-size: 19px;
}

.world ul {
  list-style: none;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  font-size: 15px;
}

.bento {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.tile {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  overflow: hidden;
  position: relative;
}

.tile.wide {
  grid-column: span 4;
}

.tile.half {
  grid-column: span 3;
}

.tile.night {
  background: var(--black);
  color: #f5f5f7;
}

.tile h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.14;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 16ch;
}

.tile p {
  margin: 12px 0 0;
  color: var(--gray);
  font-size: 17px;
  max-width: 44ch;
}

.tile.night p {
  color: #a1a1a6;
}

.tile .figure {
  margin-top: auto;
  padding-top: 28px;
  font-size: clamp(56px, 7vw, 84px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.tile .figure small {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--gray);
  margin-left: 6px;
}

.tile.night .figure small {
  color: #a1a1a6;
}

.plotmap {
  margin-top: auto;
  padding-top: 32px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
}

.plotmap span {
  aspect-ratio: 1;
  border-radius: 6px;
  background: #e8e8ed;
}

.plotmap .own {
  background: var(--brand);
}

.plotmap .sale {
  background: #ffd60a;
}

.legend {
  margin-top: 14px;
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--gray);
}

.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: -1px;
}

.boards {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

.board {
  background: var(--silver);
  border-radius: var(--radius-xl);
  padding: 30px 28px 18px;
}

.band.silver .board {
  background: var(--white);
}

.board h3 {
  margin: 0 0 14px;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.board ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.board li {
  display: grid;
  grid-template-columns: 22px 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  font-size: 15px;
}

.board li:first-child {
  border-top: 0;
}

.board .pos {
  color: var(--gray);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.board li:nth-child(-n+3) .pos {
  color: var(--ink);
  font-weight: 700;
}

.board img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  image-rendering: pixelated;
}

.board .who {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.board .who a {
  color: inherit;
}

.board .val {
  color: var(--gray);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.board.noface li {
  grid-template-columns: 22px 1fr auto;
}

.steps {
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: block;
  font-size: 64px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.05em;
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}

.steps h3 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.steps p {
  margin: 8px 0 0;
  color: var(--gray);
}

.band.black .steps p {
  color: #a1a1a6;
}

.closing,
.center .after {
  text-align: center;
}

.closing .headline {
  margin-inline: auto;
}

.closing .actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}

.page-head {
  padding: 84px 0 12px;
}

.page-head .headline {
  font-size: clamp(44px, 7vw, 80px);
}

.ranks {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

.rank {
  background: var(--silver);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.rank h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.025em;
}

.rank .swatch {
  width: 36px;
  height: 6px;
  border-radius: 3px;
  margin-bottom: 18px;
}

.rank p {
  margin: 10px 0 0;
  color: var(--gray);
}

.rules {
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  max-width: 760px;
}

.rules li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.rules li:last-child {
  border-bottom: 1px solid var(--line);
}

.rules .para {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--gray);
  line-height: 1.1;
}

.rules h3 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.rules p {
  margin: 6px 0 0;
  color: var(--gray);
}

.table {
  margin-top: 48px;
  overflow-x: auto;
  border-radius: var(--radius-xl);
  background: var(--silver);
  padding: 8px 24px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th {
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  padding: 16px 12px;
}

td {
  padding: 16px 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  font-variant-numeric: tabular-nums;
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 980px;
  background: rgba(62, 107, 255, 0.1);
  color: var(--accent);
  letter-spacing: 0;
}

.search {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  max-width: 560px;
}

.search input {
  flex: 1;
  min-width: 0;
  height: 56px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0 20px;
  font: inherit;
  font-size: 19px;
  color: var(--ink);
}

.search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(62, 107, 255, 0.18);
}

.search .btn {
  height: 56px;
  padding: 0 28px;
}

.profile {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

.profile .skin {
  width: 100%;
  background: var(--silver);
  border-radius: var(--radius-xl);
  padding: 28px 40px;
  image-rendering: pixelated;
}

.profile h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.profile .tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.facts {
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px 24px;
}

.facts dt {
  font-size: 13px;
  color: var(--gray);
}

.facts dd {
  margin: 4px 0 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.empty {
  color: var(--gray);
  font-size: 17px;
  padding: 24px 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 20px);
  background: rgba(29, 29, 31, 0.92);
  color: #fff;
  padding: 12px 20px;
  border-radius: 980px;
  font-size: 15px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(10px);
  z-index: 60;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.foot {
  background: var(--silver);
  color: var(--gray);
  font-size: 12px;
  line-height: 1.6;
  padding: 26px 0 40px;
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.foot a {
  color: #424245;
}

.foot nav {
  display: flex;
  gap: 18px;
}

@media (max-width: 900px) {
  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .tile,
  .tile.half {
    grid-column: span 1;
  }

  .tile.wide {
    grid-column: span 2;
  }

  .worlds,
  .steps {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

@media (max-width: 760px) {
  .burger {
    display: block;
  }

  .menu {
    display: none;
    position: absolute;
    top: var(--nav);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 22px 22px;
    background: rgba(251, 251, 253, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .topbar.dark .menu {
    background: rgba(22, 22, 23, 0.97);
  }

  .topbar.open .menu {
    display: flex;
  }

  .menu a {
    font-size: 21px;
    font-weight: 600;
    padding: 12px 0;
  }

  .topbar .play {
    display: none;
  }

  .band {
    padding: 80px 0;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .tile,
  .tile.wide,
  .tile.half {
    grid-column: span 1;
    padding: 32px 28px;
    min-height: 0;
  }

  .profile {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .profile .skin {
    max-width: 220px;
  }

  .rules li {
    grid-template-columns: 52px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage img {
    animation: none;
  }

  .toast,
  .burger span {
    transition: none;
  }
}
