:root {
  --paper: #f2eee5;
  --paper-light: #faf8f2;
  --paper-deep: #e8e2d7;
  --paper-sidebar: #e3ddd2;
  --ink: #202823;
  --ink-soft: #59635d;
  --ink-faint: #89918c;
  --forest: #173e2e;
  --forest-mid: #24563f;
  --moss: #79a952;
  --moss-light: #b8d77f;
  --water: #4f9390;
  --dirt: #7b5940;
  --line: rgba(31, 40, 35, 0.13);
  --line-light: rgba(255, 255, 255, 0.14);
  --shadow: 0 22px 70px rgba(40, 49, 43, 0.13);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --content: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper-light);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  font: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--forest-mid);
  outline-offset: 3px;
}

svg {
  display: block;
}

::selection {
  color: #fff;
  background: var(--forest-mid);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 9px 13px;
  color: #fff;
  background: var(--forest);
  border-radius: 10px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: var(--paper-light);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.sidebar {
  position: relative;
  z-index: 50;
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 18px 13px 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 0 0, rgba(184, 215, 127, 0.2), transparent 16rem),
    var(--paper-sidebar);
  border-right: 1px solid var(--line);
}

.sidebar-top {
  display: flex;
  min-height: 53px;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 12px;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.brand-cube {
  width: 29px;
  height: 29px;
  color: var(--forest);
  transition: transform 260ms var(--ease);
}

.brand:hover .brand-cube {
  transform: rotate(-5deg) translateY(-2px);
}

.brand-cube svg {
  width: 100%;
  height: 100%;
}

.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  place-items: center;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.icon-button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.48);
}

.icon-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sidebar-close {
  display: none;
}

.sidebar-nav {
  display: grid;
  gap: 3px;
}

.nav-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 0 11px;
  color: var(--ink-soft);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    transform 180ms var(--ease);
}

.nav-item:hover,
.nav-item:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.42);
  outline: none;
}

.nav-item.is-active {
  color: var(--ink);
  background: rgba(250, 248, 242, 0.86);
  border-color: var(--line);
  box-shadow: 0 5px 14px rgba(47, 56, 49, 0.05);
}

.nav-icon svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.nav-arrow {
  color: var(--ink-faint);
  font-size: 11px;
}

.sidebar-label {
  margin: 24px 11px 8px;
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sidebar-live {
  margin: auto 4px 10px;
  padding: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0, rgba(184, 215, 127, 0.17), transparent 54%),
    var(--forest);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: none;
}

.sidebar-live-head {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.63);
  font-size: 10px;
  font-weight: 750;
}

.status-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: #a49379;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(164, 147, 121, 0.12);
}

.status-dot.is-online {
  background: #58c88b;
  box-shadow: 0 0 0 4px rgba(88, 200, 139, 0.14);
}

.status-dot.is-online::after {
  position: absolute;
  inset: -5px;
  content: "";
  border: 1px solid rgba(88, 200, 139, 0.52);
  border-radius: 50%;
  animation: status-pulse 2.3s ease-out infinite;
}

.status-dot.is-offline {
  background: #d0695f;
  box-shadow: 0 0 0 4px rgba(208, 105, 95, 0.14);
}

.sidebar-live > strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 43px;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.sidebar-live > span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
}

.sidebar-live-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 11px;
  color: rgba(255, 255, 255, 0.48);
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sidebar-bottom {
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.sidebar-bottom-pinned {
  margin-top: auto;
}

.server-profile {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 57px;
  padding: 6px 8px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 160ms ease;
}

.server-profile:hover {
  background: rgba(255, 255, 255, 0.45);
}

.profile-block {
  position: relative;
  width: 34px;
  height: 34px;
  overflow: hidden;
  background: var(--forest-mid);
  border-radius: 7px;
}

.profile-block::before,
.profile-block::after {
  position: absolute;
  content: "";
}

.profile-block::before {
  top: 0;
  right: 0;
  left: 0;
  height: 12px;
  background: var(--moss-light);
}

.profile-block::after {
  top: 9px;
  left: 10px;
  width: 8px;
  height: 8px;
  background: #e7f7c9;
}

.server-profile > span:nth-child(2) {
  display: grid;
}

.server-profile strong {
  font-size: 12px;
}

.server-profile small {
  color: var(--ink-faint);
  font-size: 9px;
}

.server-profile svg {
  width: 17px;
  fill: none;
  stroke: var(--ink-soft);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.sidebar-backdrop {
  display: none;
}

.main-panel {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: 68px minmax(0, 1fr);
  background:
    radial-gradient(circle at 86% 6%, rgba(79, 147, 144, 0.08), transparent 28rem),
    var(--paper-light);
}

.topbar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 0 28px;
  background: rgba(250, 248, 242, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.topbar-left,
.topbar-actions,
.topbar-status {
  display: flex;
  align-items: center;
}

.topbar-left {
  gap: 12px;
}

.menu-button {
  display: none;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--ink-faint);
  font-size: 11px;
}

.breadcrumb strong {
  color: var(--ink);
  font-weight: 750;
}

.topbar-actions {
  gap: 14px;
}

.topbar-status {
  gap: 8px;
  color: var(--ink-soft);
  font-size: 10px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 200ms var(--ease),
    background 160ms ease,
    box-shadow 200ms ease;
}

.button:hover {
  transform: none;
}

.button-small {
  min-height: 38px;
  padding: 0 14px;
}

.button-dark {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 8px 22px rgba(31, 40, 35, 0.14);
}

.button-dark:hover {
  background: var(--forest);
}

.button-light {
  color: var(--forest);
  background: var(--paper-light);
  border-color: rgba(255, 255, 255, 0.18);
}

.button-outline {
  color: var(--forest);
  background: rgba(255, 255, 255, 0.42);
  border-color: var(--line);
}

.button-outline:hover {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(36, 86, 63, 0.3);
}

.main-scroll {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}

.workspace-hero {
  position: relative;
  display: flex;
  min-height: calc(100vh - 68px);
  min-height: calc(100dvh - 68px);
  align-items: center;
  padding: 38px 30px 46px;
  overflow: hidden;
  background:
    linear-gradient(rgba(36, 86, 63, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 86, 63, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 82% 30%, rgba(184, 215, 127, 0.18), transparent 34%);
  background-size:
    34px 34px,
    34px 34px,
    auto;
}

.workspace-hero::after {
  position: absolute;
  right: -80px;
  bottom: -130px;
  width: 300px;
  height: 300px;
  background: var(--moss-light);
  content: "";
  opacity: 0.11;
  transform: rotate(18deg);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(400px, 1fr) minmax(420px, 1fr);
  gap: clamp(28px, 3vw, 48px);
  align-items: center;
  width: min(100%, 1130px);
  margin: 0 auto;
}

.hero-copy {
  max-width: 560px;
}

.hero-live-label {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--forest-mid);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 4.8vw, 64px);
  font-weight: 500;
  letter-spacing: -0.052em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero-copy > p {
  max-width: 540px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

.hero-join {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
  padding: 13px 14px 13px 17px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 40, 35, 0.16);
  border-radius: 12px;
  box-shadow: 0 14px 38px rgba(42, 52, 45, 0.09);
  backdrop-filter: blur(12px);
  transition:
    border-color 180ms ease,
    box-shadow 220ms var(--ease);
}

.hero-join:hover {
  border-color: rgba(36, 86, 63, 0.34);
  box-shadow: 0 18px 44px rgba(42, 52, 45, 0.12);
}

.hero-address {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.hero-address span {
  color: var(--ink-faint);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-kicker,
.stat-card > span,
.feature-index {
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-address strong {
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 22px;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
}

.composer-copy {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  color: #fff;
  background: var(--forest-mid);
  border: 0;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 160ms ease,
    transform 180ms var(--ease);
}

.composer-copy:hover {
  background: var(--forest);
  transform: translateY(-1px);
}

.composer-copy svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-top: 14px;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  align-items: center;
  margin: 23px 0 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  list-style: none;
}

.hero-features li {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.hero-features span {
  display: grid;
  width: 22px;
  height: 22px;
  color: #fff;
  background: var(--forest-mid);
  border-radius: 6px;
  font-size: 10px;
  place-items: center;
}

.hero-visual {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 26px 70px rgba(42, 52, 45, 0.13);
}

.hero-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease);
}

.hero-visual:hover > img {
  transform: scale(1.015);
}

.online-roster {
  position: absolute;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 15px 16px 13px;
  background: rgba(250, 248, 242, 0.9);
  border: 1px solid rgba(31, 40, 35, 0.15);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(31, 40, 35, 0.15);
  backdrop-filter: blur(16px);
}

.online-roster header,
.online-roster header > div {
  display: flex;
  align-items: center;
}

.online-roster header {
  justify-content: space-between;
  gap: 16px;
}

.online-roster header > div {
  gap: 8px;
}

.online-roster h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
}

.online-roster header > strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
}

.online-roster header small {
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 600;
}

.player-list {
  display: flex;
  min-height: 44px;
  max-height: 82px;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin: 12px 0 9px;
  padding: 0;
  overflow-y: auto;
  list-style: none;
  scrollbar-color: rgba(36, 86, 63, 0.25) transparent;
  scrollbar-width: thin;
}

.player-chip {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 32px;
  padding: 4px 9px 4px 4px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 10px;
  font-weight: 750;
}

.player-avatar {
  display: grid;
  width: 23px;
  height: 23px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16) 50%, transparent 50%),
    var(--forest-mid);
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  place-items: center;
  text-transform: uppercase;
}

.player-list-message {
  color: var(--ink-soft);
  font-size: 10px;
}

.online-roster > p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 8px;
}

.content-wrap {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  padding-bottom: 50px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.65fr);
  gap: 14px;
}

.world-widget,
.pulse-widget {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.world-widget {
  background:
    radial-gradient(circle at 80% 15%, rgba(184, 215, 127, 0.19), transparent 35%),
    var(--paper-deep);
}

.widget-heading {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: start;
  justify-content: space-between;
  padding: 30px 30px 0;
}

.section-kicker {
  color: var(--forest-mid);
}

.widget-heading h2 {
  margin: 10px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 3.4vw, 49px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.widget-heading a {
  padding: 8px 11px;
  color: var(--forest-mid);
  background: rgba(255, 255, 255, 0.43);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
}

.world-visual {
  position: absolute;
  right: -5%;
  bottom: 30px;
  width: 76%;
  min-width: 500px;
}

.widget-crystal {
  transform-box: fill-box;
  transform-origin: center;
  animation: crystal-float 3.8s ease-in-out infinite;
}

.world-facts {
  position: absolute;
  z-index: 3;
  bottom: 25px;
  left: 26px;
  display: grid;
  gap: 9px;
}

.world-facts > div {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.world-facts strong {
  min-width: 54px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.world-facts span {
  color: var(--ink-soft);
  font-size: 9px;
}

.pulse-widget {
  display: flex;
  flex-direction: column;
  padding: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0, rgba(184, 215, 127, 0.17), transparent 40%),
    var(--forest);
  border-color: var(--forest);
}

.pulse-widget .section-kicker {
  color: var(--moss-light);
}

.pulse-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pulse-number {
  display: grid;
  margin-top: auto;
}

.pulse-number strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 78px;
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.85;
}

.pulse-number span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
}

.pulse-widget p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.61);
  font-size: 11px;
}

.pulse-bars {
  display: flex;
  height: 34px;
  gap: 5px;
  align-items: end;
  margin: 22px 0;
}

.pulse-bars i {
  width: 5px;
  height: 12px;
  background: var(--moss-light);
  border-radius: 3px;
  opacity: 0.7;
  animation: bar-pulse 1.8s ease-in-out infinite alternate;
}

.pulse-bars i:nth-child(2) { height: 22px; animation-delay: -0.4s; }
.pulse-bars i:nth-child(3) { height: 17px; animation-delay: -0.8s; }
.pulse-bars i:nth-child(4) { height: 31px; animation-delay: -1.2s; }
.pulse-bars i:nth-child(5) { height: 20px; animation-delay: -0.6s; }
.pulse-bars i:nth-child(6) { height: 28px; animation-delay: -1.4s; }
.pulse-bars i:nth-child(7) { height: 15px; animation-delay: -0.9s; }
.pulse-bars i:nth-child(8) { height: 24px; animation-delay: -0.2s; }

.pulse-copy {
  align-self: flex-start;
}

.content-section {
  padding: 120px 0 20px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.46fr);
  gap: 54px;
  align-items: end;
  margin-bottom: 42px;
}

.section-heading h2,
.start-copy h2 {
  margin: 11px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(43px, 5vw, 68px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.97;
}

.section-heading > p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.feature-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  padding: 25px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition:
    transform 240ms var(--ease),
    box-shadow 240ms var(--ease);
}

.feature-card:hover {
  box-shadow: 0 18px 45px rgba(42, 52, 45, 0.09);
  transform: translateY(-2px);
}

.feature-dark {
  color: #fff;
  background:
    radial-gradient(circle at 100% 0, rgba(184, 215, 127, 0.12), transparent 38%),
    var(--forest);
  border-color: var(--forest);
}

.feature-green {
  background: var(--moss-light);
  border-color: rgba(36, 86, 63, 0.15);
}

.feature-index {
  align-self: flex-end;
  color: var(--ink-faint);
}

.feature-dark .feature-index {
  color: rgba(255, 255, 255, 0.4);
}

.feature-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-top: 5px;
  color: var(--forest-mid);
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 19px;
  place-items: center;
}

.feature-dark .feature-icon {
  color: var(--forest);
  background: var(--moss-light);
  border-color: transparent;
}

.feature-card > div:nth-of-type(2) {
  margin-top: auto;
}

.feature-card h3 {
  margin: 0 0 11px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.feature-dark p {
  color: rgba(255, 255, 255, 0.62);
}

.feature-meta,
.feature-card > a {
  margin-top: 21px;
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 800;
}

.feature-dark .feature-meta {
  color: rgba(255, 255, 255, 0.43);
}

.feature-card > a {
  color: var(--forest-mid);
}

.status-heading {
  align-items: center;
}

.status-updated {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-self: end;
  color: var(--ink-soft);
  font-size: 10px;
}

.status-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr 0.88fr 1.12fr;
  gap: 10px;
}

.stat-card {
  display: flex;
  min-height: 218px;
  flex-direction: column;
  padding: 23px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.stat-card > span {
  margin-bottom: auto;
  color: var(--ink-faint);
}

.stat-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.stat-card strong b {
  font-weight: inherit;
}

.stat-card strong small {
  color: var(--ink-faint);
  font-size: 15px;
  letter-spacing: 0;
}

.stat-card p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.stat-card-primary {
  color: #fff;
  background: var(--forest);
  border-color: var(--forest);
}

.stat-card-primary > span,
.stat-card-primary p {
  color: rgba(255, 255, 255, 0.55);
}

.stat-card-primary.is-offline {
  background: #6b3732;
  border-color: #6b3732;
}

.stat-card-accent {
  background: var(--moss-light);
  border-color: rgba(36, 86, 63, 0.14);
}

.inline-copy {
  width: fit-content;
  margin-top: 16px;
  padding: 7px 10px;
  color: var(--forest);
  background: rgba(255, 255, 255, 0.57);
  border: 1px solid rgba(36, 86, 63, 0.12);
  border-radius: 9px;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.start-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  padding: clamp(36px, 6vw, 70px);
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.start-copy h2 {
  font-size: clamp(40px, 4.5vw, 61px);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.steps li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 104px;
  border-bottom: 1px solid var(--line);
}

.steps li > span {
  color: var(--forest-mid);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 800;
}

.steps strong {
  font-size: 12px;
}

.steps p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.steps button,
.steps a {
  padding: 6px 0;
  color: var(--forest-mid);
  background: none;
  border: 0;
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(36, 86, 63, 0.28);
  text-underline-offset: 4px;
}

code {
  padding: 1px 4px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 4px;
}

.content-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: end;
  margin-top: 100px;
  padding: 36px 0 5px;
  border-top: 1px solid var(--line);
}

.content-footer > div {
  display: grid;
  grid-template-columns: 23px 1fr;
  gap: 1px 9px;
  align-items: center;
}

.footer-cube {
  position: relative;
  display: block;
  grid-row: 1 / 3;
  width: 21px;
  height: 21px;
  background: var(--forest-mid);
  border-radius: 5px;
}

.footer-cube::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 7px;
  content: "";
  background: var(--moss-light);
}

.content-footer strong {
  font-size: 11px;
}

.content-footer span,
.content-footer p {
  color: var(--ink-faint);
  font-size: 9px;
}

.content-footer nav {
  display: flex;
  gap: 18px;
  font-size: 10px;
  font-weight: 750;
}

.content-footer p {
  margin: 0;
  justify-self: end;
  text-align: right;
}

.noscript-note {
  margin: 20px;
  padding: 12px;
  background: #fff6d8;
  border: 1px solid #ded09f;
  border-radius: 8px;
}

.toast {
  position: fixed;
  z-index: 200;
  right: 22px;
  bottom: 22px;
  padding: 11px 15px;
  color: #fff;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(31, 40, 35, 0.24);
  font-size: 11px;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 220ms var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 620ms var(--ease),
    transform 620ms var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes status-pulse {
  0% {
    opacity: 0.8;
    transform: scale(0.75);
  }
  75%,
  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

@keyframes cube-float {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-7px) rotate(-2deg);
  }
}

@keyframes crystal-float {
  0%,
  100% {
    transform: translateY(0);
    filter: drop-shadow(0 0 0 rgba(107, 224, 174, 0));
  }
  50% {
    transform: translateY(-7px);
    filter: drop-shadow(0 8px 8px rgba(50, 169, 124, 0.25));
  }
}

@keyframes bar-pulse {
  from {
    opacity: 0.38;
    transform: scaleY(0.68);
  }
  to {
    opacity: 0.9;
    transform: scaleY(1);
  }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .sidebar {
    padding-right: 10px;
    padding-left: 10px;
  }

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

  .pulse-widget {
    min-height: 300px;
  }

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

  .feature-card {
    min-height: 330px;
  }

  .status-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .start-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .workspace-hero {
    min-height: auto;
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    width: min(100%, 720px);
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-copy h1 {
    font-size: clamp(48px, 7vw, 66px);
  }

  .hero-visual {
    min-height: 500px;
  }
}

@media (min-width: 821px) and (max-height: 800px) {
  .sidebar {
    padding-top: 10px;
    padding-bottom: 8px;
  }

  .sidebar-top {
    min-height: 46px;
    padding-bottom: 7px;
  }

  .nav-item {
    min-height: 38px;
  }

  .sidebar-label {
    margin-top: 13px;
    margin-bottom: 5px;
  }

  .sidebar-live {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 12px;
    align-items: center;
    margin-top: auto;
    margin-bottom: 7px;
    padding: 10px 12px;
  }

  .sidebar-live-head {
    margin: 0;
  }

  .sidebar-live > strong {
    grid-column: 2;
    grid-row: 1;
    font-size: 28px;
  }

  .sidebar-live > span,
  .sidebar-live-meta {
    display: none;
  }

  .sidebar-bottom {
    padding-top: 6px;
  }

  .server-profile {
    min-height: 51px;
  }
}

@media (max-width: 820px) {
  body {
    overflow: hidden;
  }

  .app-shell {
    display: block;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .sidebar {
    position: fixed;
    z-index: 100;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(310px, calc(100vw - 30px));
    border: 1px solid var(--line);
    border-radius: 0 12px 12px 0;
    box-shadow: 0 24px 80px rgba(29, 37, 31, 0.27);
    transform: translateX(calc(-100% - 24px));
    transition: transform 300ms var(--ease);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-close {
    display: grid;
  }

  .sidebar-backdrop {
    position: fixed;
    z-index: 90;
    inset: 0;
    display: block;
    padding: 0;
    background: rgba(31, 40, 35, 0.28);
    border: 0;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(3px);
    transition: opacity 220ms ease;
  }

  .sidebar-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .main-panel {
    height: 100%;
    grid-template-rows: 62px minmax(0, 1fr);
  }

  .topbar {
    padding: 0 14px 0 10px;
  }

  .menu-button {
    display: grid;
  }

  .breadcrumb > span:first-child,
  .breadcrumb > span:nth-child(2) {
    display: none;
  }

  .topbar-status {
    display: none;
  }

  .workspace-hero {
    min-height: auto;
    padding: 46px 18px 64px;
  }

  .hero-copy h1 {
    font-size: clamp(43px, 12vw, 61px);
  }

  .hero-copy > p {
    font-size: 14px;
  }

  .hero-visual {
    min-height: min(520px, 72vh);
  }

  .content-wrap {
    width: min(calc(100% - 28px), var(--content));
  }

  .world-widget {
    min-height: 470px;
  }

  .widget-heading {
    display: grid;
    gap: 16px;
    padding: 24px 23px 0;
  }

  .widget-heading a {
    width: fit-content;
  }

  .world-visual {
    right: -42%;
    bottom: 46px;
    width: 130%;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 22px;
  }

  .status-updated {
    margin-top: 18px;
    justify-self: start;
  }

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

  .start-panel {
    gap: 36px;
    padding: 30px 22px;
  }

  .steps li {
    grid-template-columns: 34px 1fr;
    padding: 18px 0;
  }

  .steps li > :last-child {
    grid-column: 2;
    justify-self: start;
  }

  .content-footer {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .content-footer p {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 520px) {
  .topbar .button {
    min-height: 35px;
    padding: 0 11px;
  }

  .hero-live-label {
    margin-bottom: 15px;
    font-size: 9px;
  }

  .hero-copy > p {
    margin-top: 17px;
  }

  .hero-join {
    display: grid;
    gap: 13px;
    margin-top: 24px;
    padding: 15px;
  }

  .hero-address strong {
    font-size: 21px;
  }

  .composer-copy {
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-features {
    display: grid;
    gap: 8px;
  }

  .hero-visual {
    min-height: 440px;
  }

  .hero-visual > img {
    object-position: 50% 50%;
  }

  .online-roster {
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 13px;
  }

  .player-list {
    max-height: 75px;
    overflow-y: auto;
  }

  .world-facts {
    right: 20px;
    bottom: 20px;
    left: 20px;
    grid-template-columns: repeat(3, 1fr);
    padding: 13px;
    background: rgba(250, 248, 242, 0.75);
    border: 1px solid var(--line);
    border-radius: 13px;
    backdrop-filter: blur(10px);
  }

  .world-facts > div {
    display: grid;
    gap: 0;
  }

  .world-facts strong {
    min-width: 0;
    font-size: 18px;
  }

  .world-facts span {
    font-size: 7px;
  }

  .pulse-widget {
    min-height: 330px;
  }

  .content-section {
    padding-top: 90px;
  }

  .section-heading h2,
  .start-copy h2 {
    font-size: 42px;
  }

  .content-footer nav {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  .main-scroll {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
