:root {
  --ink: #15231d;
  --ink-soft: #43544c;
  --ink-muted: #748078;
  --paper: #f6f5ef;
  --paper-strong: #ffffff;
  --paper-tint: #ecefe6;
  --line: #dfe3d9;
  --line-strong: #cbd2c6;
  --forest: #24503a;
  --forest-deep: #172f27;
  --grass: #75a843;
  --grass-light: #a6ce68;
  --sky: #6fcbdc;
  --sky-deep: #24788e;
  --sun: #f3c75c;
  --clay: #c6714f;
  --danger: #d73a3a;
  --danger-deep: #ad2525;
  --shadow-sm: 0 2px 10px rgba(24, 42, 33, 0.07);
  --shadow-md: 0 14px 34px rgba(20, 37, 29, 0.12);
  --radius: 8px;
  --max-width: 1200px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

button {
  color: inherit;
}

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

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

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

h1,
h2,
h3,
strong {
  letter-spacing: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
canvas:focus-visible {
  outline: 3px solid rgba(111, 203, 220, 0.55);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--forest-deep);
  border-radius: 6px;
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  color: #f4f7f1;
  background: rgba(19, 38, 31, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  width: min(var(--max-width), calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.brand-mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  color: #183225;
  background: linear-gradient(135deg, var(--grass-light), var(--grass));
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  box-shadow: inset -3px -3px 0 rgba(22, 63, 37, 0.16);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 17px;
}

.brand-copy small {
  margin-top: 4px;
  color: #adc3b5;
  font-size: 10px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
}

.nav-links a {
  position: relative;
  padding: 10px 12px;
  color: #cfdcd4;
  border-radius: 6px;
  font-size: 14px;
  transition: color 160ms ease, background 160ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
  padding: 9px 13px;
  color: #e9f1eb;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.account-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}

.account-chip.is-bound {
  color: #193026;
  background: var(--grass-light);
  border-color: var(--grass-light);
}

.account-chip svg {
  width: 17px;
  height: 17px;
}

.mailbox-chip {
  position: relative;
}

.mailbox-chip b {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--danger);
  border-radius: 999px;
  font-size: 10px;
}

.header-refresh-button {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  color: #edf5ef;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.header-refresh-button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.header-refresh-button.is-refreshing svg {
  animation: headerRefreshSpin 0.8s linear infinite;
}

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

.friend-badge {
  padding: 1px 6px;
  color: #246b72;
  background: #dff2f4;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  color: #ffffff;
}

.hero {
  position: relative;
  min-height: 730px;
  color: #ffffff;
  background: #1c2a25;
  overflow: hidden;
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(12, 23, 19, 0.92) 0%, rgba(12, 23, 19, 0.73) 46%, rgba(12, 23, 19, 0.23) 74%, rgba(12, 23, 19, 0.42) 100%),
    linear-gradient(180deg, rgba(12, 23, 19, 0.12) 10%, rgba(12, 23, 19, 0.35) 56%, rgba(12, 23, 19, 0.96) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: 120px;
  width: 360px;
  height: 360px;
  opacity: 0.12;
  background-image: linear-gradient(rgba(255, 255, 255, 0.7) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.7) 1px, transparent 1px);
  background-size: 32px 32px;
  transform: rotate(12deg);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 112px 0 230px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  padding: 7px 11px;
  color: #dce9df;
  background: rgba(18, 35, 29, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  font-size: 13px;
}

.status-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  flex: 0 0 auto;
  background: #71db77;
  border: 2px solid rgba(113, 219, 119, 0.25);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(113, 219, 119, 0.12);
}

.hero h1 {
  max-width: 740px;
  margin-bottom: 18px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.08;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

.hero h1 span {
  color: #b9df7d;
}

.hero-content > p {
  max-width: 650px;
  margin-bottom: 30px;
  color: #d2dfd7;
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

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

.button:active {
  transform: translateY(0);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.button svg {
  width: 18px;
  height: 18px;
}

.button-primary {
  color: #172c22;
  background: var(--grass-light);
  border-color: #b7dd78;
  box-shadow: 0 8px 20px rgba(63, 102, 44, 0.18);
}

.button-primary:hover {
  background: #b5dd7a;
}

.button-secondary {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line-strong);
}

.button-secondary:hover {
  border-color: #a9b6aa;
  box-shadow: var(--shadow-sm);
}

.button-ghost {
  color: #eef5ef;
  background: rgba(17, 35, 28, 0.3);
  border-color: rgba(255, 255, 255, 0.25);
}

.button-ghost:hover {
  background: rgba(17, 35, 28, 0.55);
  border-color: rgba(255, 255, 255, 0.4);
}

.button-light {
  color: #173126;
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}

.button-danger {
  color: #ffffff;
  background: var(--danger);
  border-color: var(--danger);
  box-shadow: 0 8px 20px rgba(165, 35, 35, 0.18);
}

.button-danger:hover {
  background: var(--danger-deep);
  border-color: var(--danger-deep);
}

.button-full {
  width: 100%;
}

.address-card {
  width: min(100%, 490px);
  margin-top: 26px;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(15, 33, 26, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

.address-card > div {
  display: grid;
  gap: 3px;
}

.address-card span {
  color: #a9beb1;
  font-size: 12px;
}

.address-card strong {
  font-family: Consolas, "Courier New", monospace;
  font-size: 20px;
}

.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.28);
}

.icon-button svg {
  width: 19px;
  height: 19px;
}

.hero-stats {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 0;
  width: min(var(--max-width), calc(100% - 40px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  transform: translateX(-50%);
  background: rgba(247, 247, 241, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.hero-stat {
  min-width: 0;
  padding: 19px 22px;
  display: grid;
  color: var(--ink);
  border-right: 1px solid var(--line);
}

.hero-stat:last-child {
  border-right: 0;
}

.hero-stat > span {
  color: var(--ink-muted);
  font-size: 12px;
}

.hero-stat strong {
  margin: 4px 0 1px;
  font-size: 20px;
}

.hero-stat strong b {
  color: var(--grass);
  font-size: 27px;
}

.hero-stat small {
  color: var(--ink-muted);
  font-size: 11px;
}

.seed-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Consolas, "Courier New", monospace;
  font-size: 16px !important;
}

.announcement-ticker {
  position: relative;
  z-index: 5;
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 0 max(20px, calc((100% - var(--max-width)) / 2));
  color: #ffffff;
  background: var(--clay);
}

.ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.ticker-label svg {
  width: 18px;
  height: 18px;
}

.ticker-content {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: #ffffff;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.ticker-content span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticker-content svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.ticker-time {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.section {
  padding: 92px 0;
}

.section > * {
  width: min(var(--max-width), calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.section-light {
  background: var(--paper);
}

.section-head {
  margin-bottom: 34px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-head > div:first-child {
  max-width: 650px;
}

.section-label {
  display: block;
  margin-bottom: 7px;
  color: var(--grass);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
}

.section-head p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.panel {
  padding: 25px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.panel-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.panel-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-title-row h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.badge-green {
  color: #265a31;
  background: #dff1df;
  border: 1px solid #c3e3c4;
}

.badge-blue {
  color: #215d70;
  background: #dff2f6;
  border: 1px solid #bde4ec;
}

.owner-badge {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  margin-left: 5px;
  padding: 2px 6px;
  color: #ffffff;
  background: #d73a3a;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  vertical-align: middle;
  white-space: nowrap;
}

.player-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(430px, 1.4fr);
  gap: 20px;
}

.player-overview {
  min-height: 430px;
}

.capacity-wrap {
  margin: 34px 0 32px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.capacity-ring {
  --progress: 15%;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: conic-gradient(var(--grass) var(--progress), #e6eadf var(--progress));
  border-radius: 50%;
}

.capacity-ring::before {
  content: "";
  grid-area: 1 / 1;
  width: 100px;
  height: 100px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line);
}

.capacity-ring > div {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  display: grid;
  justify-items: center;
}

.capacity-ring strong {
  font-size: 31px;
  line-height: 1.2;
}

.capacity-ring span {
  color: var(--ink-muted);
  font-size: 12px;
}

.capacity-copy {
  display: grid;
  gap: 5px;
}

.capacity-copy strong {
  font-size: 16px;
}

.capacity-copy span {
  color: var(--ink-soft);
  font-size: 13px;
}

.capacity-copy small {
  color: var(--ink-muted);
}

.quick-facts {
  margin: 0;
  padding-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  border-top: 1px solid var(--line);
}

.quick-facts div {
  display: grid;
  gap: 3px;
}

.quick-facts dt {
  color: var(--ink-muted);
  font-size: 12px;
}

.quick-facts dd {
  margin: 0;
  font-weight: 700;
}

.player-list-panel {
  display: flex;
  min-height: 430px;
  flex-direction: column;
}

.live-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--grass);
  font-size: 12px;
  font-weight: 700;
}

.player-list {
  margin: 20px 0 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 1;
}

.player-item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  background: #f7f8f3;
  border: 1px solid #e3e7dd;
  border-radius: 6px;
}

.player-avatar,
.avatar {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #ffffff;
  border-radius: 5px;
  font-weight: 800;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.12);
}

.player-info {
  min-width: 0;
  display: grid;
  flex: 1;
}

.player-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.player-info span {
  color: var(--ink-muted);
  font-size: 11px;
}

.ping {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-soft);
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
}

.ping i {
  width: 6px;
  height: 6px;
  background: #67b85e;
  border-radius: 50%;
}

.panel-footnote {
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--ink-muted);
  font-size: 11px;
}

.panel-footnote svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.section-map {
  color: #eef5ef;
  background:
    linear-gradient(rgba(23, 47, 39, 0.94), rgba(23, 47, 39, 0.98)),
    url("./assets/world-3.jpg") center / cover;
}

.section-head-light p {
  color: #aebfb5;
}

.map-legend {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #c9d7ce;
  font-size: 12px;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 2px;
}

.legend-overworld {
  background: #7db85a;
}

.legend-nether {
  background: #d6644a;
}

.legend-end {
  background: #c7a6df;
}

.map-dimensions {
  width: max-content;
  margin: 0 auto 18px;
  padding: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
}

.map-dimension {
  min-width: 112px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  color: #b6c8be;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

.map-dimension:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.map-dimension.is-active {
  color: #193126;
  background: var(--grass-light);
  box-shadow: 0 5px 14px rgba(4, 15, 10, 0.2);
}

.map-dimension svg {
  width: 17px;
  height: 17px;
}

.map-layout {
  display: grid;
  grid-template-columns: 275px minmax(0, 1fr);
  gap: 18px;
}

.map-sidebar {
  display: grid;
  gap: 14px;
}

.map-summary,
.map-coordinate {
  padding: 19px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.map-summary > span {
  color: #a9bcb0;
  font-size: 12px;
}

.map-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 30px;
}

.map-summary p {
  margin: 12px 0 0;
  color: #a9bcb0;
  font-size: 12px;
}

.progress-track {
  height: 6px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 2px;
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  background: var(--grass-light);
}

.region-list {
  display: grid;
  gap: 8px;
}

.region-item {
  width: 100%;
  padding: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d9e6dd;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: background 150ms ease, border-color 150ms ease;
}

.region-item:hover,
.region-item.is-active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(182, 221, 122, 0.45);
}

.region-item > span:last-child {
  min-width: 0;
  display: grid;
}

.region-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.region-item small {
  color: #9bafa2;
  font-size: 10px;
}

.region-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 5px;
}

.region-icon svg {
  width: 17px;
  height: 17px;
}

.region-icon-spawn {
  color: #f7e4a8;
  background: #806b39;
}

.region-icon-industry {
  color: #dce7e2;
  background: #52625c;
}

.region-icon-farm {
  color: #eff6b8;
  background: #58723b;
}

.region-icon-nether {
  color: #ffd3c6;
  background: #8a4639;
}

.map-coordinate {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 9px;
}

.map-coordinate svg {
  width: 18px;
  height: 18px;
  grid-row: span 2;
  color: var(--grass-light);
}

.map-coordinate span {
  color: #9fb3a6;
  font-size: 10px;
}

.map-coordinate strong {
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
}

.map-stage {
  min-width: 0;
  background: #192d25;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(4, 14, 10, 0.22);
}

.map-toolbar {
  min-height: 54px;
  padding: 0 12px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #20382e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.map-toolbar-title,
.map-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-toolbar-title {
  color: #d8e6dc;
  font-size: 13px;
  font-weight: 700;
}

.map-toolbar-title svg {
  width: 17px;
  height: 17px;
  color: var(--grass-light);
}

.map-tool-button {
  width: 34px;
  height: 34px;
}

.map-tool-button svg {
  width: 16px;
  height: 16px;
}

.map-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.8;
  min-height: 410px;
  background: #172a23;
  overflow: hidden;
}

#exploredMap {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}

#exploredMap.is-dragging {
  cursor: grabbing;
}

.map-tooltip {
  position: absolute;
  z-index: 3;
  min-width: 150px;
  padding: 10px 12px;
  color: #edf5ef;
  background: rgba(10, 24, 18, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  box-shadow: var(--shadow-md);
  pointer-events: none;
}

.map-tooltip strong,
.map-tooltip span {
  display: block;
}

.map-tooltip strong {
  margin-bottom: 3px;
  font-size: 13px;
}

.map-tooltip span {
  color: #aabeb1;
  font-size: 11px;
}

.map-compass {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #dbe7df;
  background: rgba(15, 33, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
}

.requirement-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  color: #526555;
  background: #e8ede3;
  border: 1px solid #d6ddd1;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
}

.requirement-pill svg {
  width: 16px;
  height: 16px;
}

.board-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(450px, 1.28fr);
  gap: 20px;
}

.message-composer {
  align-self: start;
}

.composer-head {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-large {
  width: 46px;
  height: 46px;
  font-size: 18px;
}

.composer-head > div {
  display: grid;
}

.composer-head strong {
  font-size: 15px;
}

.composer-head small {
  color: var(--ink-muted);
  font-size: 11px;
}

.field-label {
  display: block;
  margin: 14px 0 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.text-input,
textarea.text-input,
select.text-input {
  width: 100%;
  padding: 11px 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: 0;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

textarea.text-input {
  resize: vertical;
}

.text-input:focus,
textarea.text-input:focus,
select.text-input:focus {
  border-color: #7eb67b;
  box-shadow: 0 0 0 3px rgba(117, 168, 67, 0.13);
}

textarea {
  min-height: 120px;
}

.field-meta {
  margin: 7px 0 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-muted);
  font-size: 10px;
}

.feed-head {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feed-head h3 {
  margin: 0;
  font-size: 18px;
}

.feed-head span {
  color: var(--ink-muted);
  font-size: 12px;
}

.message-list {
  display: grid;
  gap: 12px;
}

.message-item {
  position: relative;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.message-head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.message-author {
  min-width: 0;
  display: grid;
  flex: 1;
}

.message-author strong {
  font-size: 14px;
}

.message-author span {
  color: var(--ink-muted);
  font-size: 10px;
}

.message-body {
  margin: 14px 0 0;
  color: #2f4038;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.delete-button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  color: var(--danger);
  background: #fff6f6;
  border: 1px solid #f2caca;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
}

.delete-button:hover {
  background: #ffe8e8;
}

.delete-button svg {
  width: 14px;
  height: 14px;
}

.section-album {
  background:
    linear-gradient(180deg, #ecefe6 0%, #f6f5ef 100%);
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 135px;
  gap: 14px;
}

.album-item {
  position: relative;
  grid-column: span 4;
  grid-row: span 2;
  min-height: 260px;
  background: #dce3d9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.album-item:nth-child(4n + 1) {
  grid-column: span 8;
  grid-row: span 3;
}

.album-item:nth-child(4n + 4) {
  grid-column: span 8;
  grid-row: span 2;
}

.album-image-button {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: none;
  border: 0;
  cursor: zoom-in;
}

.album-image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.album-item:hover .album-image-button img {
  transform: scale(1.035);
}

.album-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 42px 16px 15px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  color: #ffffff;
  background: linear-gradient(transparent, rgba(10, 24, 18, 0.92));
  pointer-events: none;
}

.album-copy {
  min-width: 0;
  display: grid;
}

.album-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.album-copy span {
  color: #c9d6ce;
  font-size: 10px;
}

.album-delete {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  color: #ffffff;
  background: rgba(128, 31, 31, 0.86);
  border-color: rgba(255, 255, 255, 0.25);
  pointer-events: auto;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 210px;
  display: grid;
  place-items: center;
  padding: 30px;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.62);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}

.empty-state > div {
  display: grid;
  justify-items: center;
}

.empty-state svg {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  color: #96a49a;
}

.empty-state strong {
  color: var(--ink);
  font-size: 16px;
}

.empty-state span {
  margin-top: 4px;
  font-size: 12px;
}

.blueprint-toolbar {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.search-field {
  width: min(100%, 440px);
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.search-field:focus-within {
  border-color: #7eb67b;
  box-shadow: 0 0 0 3px rgba(117, 168, 67, 0.13);
}

.search-field svg {
  width: 18px;
  height: 18px;
  color: var(--ink-muted);
}

.search-field input {
  min-width: 0;
  flex: 1;
  padding: 10px 0;
  background: transparent;
  border: 0;
  outline: 0;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.filter-pill {
  min-height: 34px;
  padding: 6px 11px;
  color: var(--ink-soft);
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  cursor: pointer;
}

.filter-pill:hover,
.filter-pill.is-active {
  color: #1c3d2a;
  background: #e7f1db;
  border-color: #b9d69a;
}

.blueprint-summary {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--ink-muted);
  font-size: 11px;
}

.blueprint-summary span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blueprint-summary svg {
  width: 14px;
  height: 14px;
}

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

.blueprint-card {
  display: grid;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.blueprint-cover {
  position: relative;
  height: 140px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%) 0 0 / 18px 18px,
    linear-gradient(315deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%) 0 0 / 18px 18px,
    var(--cover, #52715d);
}

.blueprint-cover > svg {
  width: 48px;
  height: 48px;
  opacity: 0.86;
}

.blueprint-category {
  position: absolute;
  top: 11px;
  left: 11px;
  padding: 4px 7px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(18, 32, 26, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.blueprint-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #ffffff;
  background: rgba(128, 31, 31, 0.86);
  border-color: rgba(255, 255, 255, 0.25);
}

.blueprint-body {
  padding: 16px;
  display: grid;
}

.blueprint-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.blueprint-title-row h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.blueprint-version {
  flex: 0 0 auto;
  color: var(--sky-deep);
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
}

.blueprint-description {
  margin: 9px 0 13px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
  min-height: 40px;
}

.tag-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  padding: 3px 7px;
  color: #4c6053;
  background: #edf1e9;
  border-radius: 4px;
  font-size: 10px;
}

.blueprint-footer {
  margin-top: 15px;
  padding-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.blueprint-meta {
  display: grid;
  color: var(--ink-muted);
  font-size: 10px;
}

.download-button {
  min-height: 32px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  background: var(--forest);
  border: 1px solid var(--forest);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.download-button:hover {
  background: #1b402e;
}

.download-button svg {
  width: 14px;
  height: 14px;
}

.section-social {
  background:
    radial-gradient(circle at 12% 12%, rgba(111, 203, 220, 0.08), transparent 24%),
    var(--paper-strong);
}

.social-layout {
  display: grid;
  grid-template-columns: minmax(290px, 0.62fr) minmax(0, 1.38fr);
  gap: 20px;
}

.post-composer {
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 18px);
}

.upload-inline {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 7px 10px;
  color: var(--sky-deep);
  background: #e7f5f7;
  border: 1px solid #c5e5ea;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.upload-inline svg {
  width: 16px;
  height: 16px;
}

.upload-inline.is-dragover {
  border-color: #4f8a45;
  background: #eef5e9;
  box-shadow: 0 0 0 3px rgba(79, 138, 69, 0.14);
}

.social-compose-actions {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.social-compose-actions > span {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-feed {
  display: grid;
  gap: 14px;
}

.post-card {
  padding: 21px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.post-head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.post-author {
  min-width: 0;
  display: grid;
  flex: 1;
}

.post-author strong {
  font-size: 14px;
}

.post-author span {
  color: var(--ink-muted);
  font-size: 10px;
}

.follow-button {
  min-height: 32px;
  padding: 6px 10px;
  color: var(--forest);
  background: #edf4e8;
  border: 1px solid #c9ddbb;
  border-radius: 5px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.follow-button.is-following {
  color: #5c6a60;
  background: #f0f2ee;
  border-color: #d9ded5;
}

.post-content {
  margin: 15px 0 0;
  color: #2f4038;
  line-height: 1.85;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.post-image {
  width: 100%;
  max-height: 520px;
  margin-top: 14px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.post-video {
  width: 100%;
  max-height: 620px;
  margin-top: 14px;
  display: block;
  background: #101813;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.post-comments {
  margin-top: 17px;
  padding-top: 14px;
  display: grid;
  gap: 9px;
  border-top: 1px solid var(--line);
}

.comment-item {
  padding: 10px 11px;
  background: #f7f8f4;
  border: 1px solid #e7eae2;
  border-radius: 6px;
}

.comment-item strong {
  margin-right: 6px;
  font-size: 12px;
}

.comment-item span {
  color: var(--ink-muted);
  font-size: 9px;
}

.comment-item p {
  margin: 5px 0 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.comment-composer {
  margin-top: 13px;
  display: grid;
  gap: 8px;
}

.emoji-picker {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.emoji-button {
  width: 32px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  background: #f5f6f1;
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
  font-size: 17px;
}

.comment-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.comment-input-row input {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
}

.post-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.section-music {
  background:
    linear-gradient(145deg, #f3f0e6 0%, #edf4f1 55%, #f7f5ee 100%);
}

.music-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.music-card {
  min-width: 0;
  padding: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.music-cover {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #397c8e, #6fa96d);
  border-radius: 7px;
}

.music-cover svg {
  width: 25px;
  height: 25px;
}

.music-main {
  min-width: 0;
}

.music-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.music-title h3 {
  margin: 0;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.music-meta {
  color: var(--ink-muted);
  font-size: 10px;
}

.music-description {
  margin: 9px 0 11px;
  color: var(--ink-soft);
  font-size: 12px;
}

.music-card audio {
  width: 100%;
  height: 34px;
  margin-top: 8px;
}

.music-links {
  margin-top: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.music-link {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  color: var(--forest);
  background: #edf4e8;
  border: 1px solid #c9ddbb;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
}

.music-link svg {
  width: 14px;
  height: 14px;
}

.section-announcements {
  color: #eef5ef;
  background:
    linear-gradient(135deg, rgba(23, 47, 39, 0.97), rgba(29, 63, 47, 0.95)),
    url("./assets/world-1.jpg") center / cover;
}

.announcement-list {
  display: grid;
  gap: 12px;
}

.announcement-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 24px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.announcement-meta {
  display: grid;
  align-content: start;
  gap: 8px;
}

.announcement-meta time {
  color: #a9bcb0;
  font-size: 11px;
}

.announcement-category {
  width: max-content;
  padding: 4px 7px;
  color: #dceadf;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.announcement-copy h3 {
  margin: 0 0 7px;
  font-size: 19px;
}

.announcement-copy p {
  margin: 0;
  color: #c0d0c5;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.announcement-actions {
  align-self: start;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.guide-card {
  padding: 26px;
}

.guide-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 6px;
}

.guide-icon svg {
  width: 22px;
  height: 22px;
}

.guide-icon-green {
  color: #315f33;
  background: #dcefd8;
}

.guide-icon-blue {
  color: #266d7b;
  background: #d9eff3;
}

.guide-icon-yellow {
  color: #765a20;
  background: #f7e8b9;
}

.guide-icon-red {
  color: #9a2a2a;
  background: #f6dada;
}

.guide-card h3 {
  margin-bottom: 14px;
  font-size: 20px;
}

.check-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 13px;
}

.check-list svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--grass);
}

.command-list {
  display: grid;
  gap: 8px;
}

.command-list div {
  padding: 10px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #f4f6f1;
  border: 1px solid #e5e9df;
  border-radius: 5px;
}

.command-list code {
  color: #24503a;
  font-family: Consolas, "Courier New", monospace;
  font-weight: 700;
}

.command-list span {
  color: var(--ink-muted);
  font-size: 11px;
}

.guide-note {
  margin: 13px 0 0;
  color: var(--ink-muted);
  font-size: 11px;
}

.community-card > p,
.admin-entry-card > p {
  color: var(--ink-soft);
  font-size: 13px;
}

.community-row {
  min-height: 44px;
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
}

.community-row:first-of-type {
  margin-top: 18px;
}

.community-row > span {
  color: var(--ink-muted);
  font-size: 11px;
}

.community-row strong {
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

.community-row .icon-button {
  width: 31px;
  height: 31px;
  color: var(--ink-soft);
  border-color: var(--line);
}

.community-row .icon-button svg {
  width: 15px;
  height: 15px;
}

.admin-entry-card {
  border-color: #ebc4c4;
  background: linear-gradient(180deg, #ffffff, #fffafa);
}

.danger-label {
  color: var(--danger);
}

.admin-entry-status {
  margin: 13px 0 0;
  color: var(--ink-muted);
  font-size: 11px;
  text-align: center;
}

.admin-entry-status.is-admin {
  color: #2d6a3e;
  font-weight: 700;
}

.admin-dashboard {
  padding: 82px 0 96px;
  color: #eef5ef;
  background: #172f27;
}

.admin-dashboard > * {
  width: min(var(--max-width), calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.admin-header {
  margin-bottom: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.admin-header h2 {
  margin-bottom: 6px;
  font-size: 36px;
}

.admin-header p {
  margin: 0;
  color: #afc1b6;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-session {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: #dbe8df;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
}

.admin-session svg {
  width: 16px;
  height: 16px;
  color: var(--grass-light);
}

.admin-stat-grid {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.admin-stat {
  min-width: 0;
  padding: 17px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
}

.admin-stat-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 5px;
}

.admin-stat-icon svg {
  width: 18px;
  height: 18px;
}

.stat-blue {
  color: #a9e9f5;
  background: rgba(63, 163, 184, 0.22);
}

.stat-green {
  color: #c1e8a0;
  background: rgba(107, 166, 76, 0.22);
}

.stat-yellow {
  color: #f5dc95;
  background: rgba(206, 166, 70, 0.22);
}

.stat-orange {
  color: #f2bfa9;
  background: rgba(191, 103, 72, 0.22);
}

.stat-red {
  color: #f3b3b3;
  background: rgba(195, 65, 65, 0.22);
}

.admin-stat > div {
  min-width: 0;
  display: grid;
}

.admin-stat span {
  color: #a9bcb0;
  font-size: 10px;
}

.admin-stat strong {
  font-size: 24px;
  line-height: 1.3;
}

.admin-stat small {
  color: #91a79a;
  font-size: 9px;
}

.admin-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 18px;
}

.admin-bottom-grid .panel {
  color: var(--ink);
  border-color: transparent;
}

.visit-chart {
  height: 220px;
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 12px;
}

.chart-column {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 7px;
  align-items: end;
}

.chart-bar-wrap {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  background: #f0f3ec;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
}

.chart-bar {
  width: 100%;
  min-height: 6px;
  background: linear-gradient(180deg, #8fbd61, #5c8e3e);
  border-radius: 4px 4px 0 0;
  transition: height 300ms ease;
}

.chart-column.is-today .chart-bar {
  background: linear-gradient(180deg, #75c6d8, #2f869d);
}

.chart-value {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  color: #30443a;
  font-size: 9px;
  font-weight: 700;
}

.chart-label {
  color: var(--ink-muted);
  font-size: 10px;
  text-align: center;
}

.quick-action-list {
  margin-top: 18px;
  display: grid;
}

.quick-action-list button {
  min-height: 46px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  color: var(--ink-soft);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
}

.quick-action-list button:last-child {
  border-bottom: 0;
}

.quick-action-list button:hover {
  color: var(--forest);
}

.quick-action-list svg {
  width: 17px;
  height: 17px;
}

.quick-action-list button svg:last-child {
  color: var(--ink-muted);
}

.admin-accounts-panel {
  margin-top: 18px;
}

.admin-account-toolbar {
  margin-top: 18px;
}

.admin-account-toolbar .search-field {
  max-width: 360px;
}

.admin-account-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.admin-account-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  font-size: 12px;
}

.admin-account-table th,
.admin-account-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.admin-account-table th {
  color: var(--ink-muted);
  background: #f5f7f2;
  font-size: 10px;
  font-weight: 800;
}

.admin-account-table tr:last-child td {
  border-bottom: 0;
}

.account-action-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.account-action-row button {
  min-height: 28px;
  padding: 4px 7px;
  color: var(--ink-soft);
  background: #f5f6f2;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  font-size: 10px;
}

.account-action-row button.danger {
  color: var(--danger);
  background: #fff5f5;
  border-color: #edc9c9;
}

.site-footer {
  color: #b8c8be;
  background: #101e19;
}

.footer-main,
.footer-bottom {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.footer-main {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.footer-brand .brand-mark {
  width: 34px;
  height: 34px;
}

.footer-brand > div {
  display: grid;
}

.footer-brand strong {
  color: #eef5ef;
}

.footer-brand span {
  font-size: 10px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-ip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  color: #eaf2ec;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  cursor: pointer;
}

.footer-ip span {
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
}

.footer-ip svg {
  width: 15px;
  height: 15px;
}

.footer-bottom {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10px;
}

.modal-layer {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 16, 12, 0.74);
  backdrop-filter: blur(5px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-height: calc(100vh - 48px);
  padding: 30px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  overflow-y: auto;
}

.modal-small {
  width: min(100%, 460px);
}

.modal-wide {
  width: min(100%, 720px);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 34px;
  height: 34px;
  color: var(--ink-soft);
  border-color: var(--line);
}

.modal-close svg {
  width: 17px;
  height: 17px;
}

.modal-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
  border-radius: 6px;
}

.modal-icon svg {
  width: 23px;
  height: 23px;
}

.modal-icon-green {
  color: #2e6b3a;
  background: #dcefd9;
}

.modal-icon-blue {
  color: #216f7f;
  background: #d9eff3;
}

.modal-icon-yellow {
  color: #735a22;
  background: #f7e8b9;
}

.modal-icon-red {
  color: #ac2f2f;
  background: #f7dada;
}

.modal-card h2 {
  margin-bottom: 8px;
  font-size: 26px;
}

.modal-card > p {
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 13px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.form-span-2 {
  grid-column: 1 / -1;
}

.upload-dropzone {
  min-height: 150px;
  margin-top: 4px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 22px;
  color: var(--ink-soft);
  background: #f7f8f4;
  border: 1px dashed #b8c3b7;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: border-color 150ms ease, background 150ms ease;
}

.upload-dropzone:hover,
.upload-dropzone.has-file,
.upload-dropzone.is-dragover {
  background: #f0f5eb;
  border-color: #7baa66;
}

.upload-dropzone.is-dragover {
  border-style: solid;
  border-color: #4f8a45;
  box-shadow: 0 0 0 3px rgba(79, 138, 69, 0.16);
}

.upload-dropzone svg {
  width: 29px;
  height: 29px;
  margin-bottom: 4px;
  color: var(--grass);
}

.upload-dropzone strong {
  color: var(--ink);
  font-size: 14px;
}

.upload-dropzone span {
  color: var(--ink-muted);
  font-size: 10px;
}

.upload-dropzone-compact {
  min-height: 112px;
}

.upload-preview {
  position: relative;
  height: 180px;
  margin-top: 12px;
  background: #eef1ea;
  border-radius: 6px;
  overflow: hidden;
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-download-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: #4f8a45;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.video-download-link:hover {
  text-decoration: underline;
}

.video-action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-error {
  margin: 11px 0 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

.form-note {
  margin: 10px 0 0;
  padding: 9px 10px;
  color: #765a20;
  background: #fff8e5;
  border: 1px solid #f0dda8;
  border-radius: 5px;
  font-size: 11px;
}

.profile-summary {
  margin: 6px 0 18px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f5f7f2;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.profile-summary > div {
  display: grid;
}

.profile-summary strong {
  font-size: 16px;
}

.profile-summary small {
  color: var(--ink-muted);
  font-size: 10px;
}

.profile-action-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.profile-actions {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-actions .button {
  flex: 1;
}

.auth-mode-switch {
  margin-bottom: 14px;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: #eef1ea;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.auth-mode-switch button {
  min-height: 36px;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
}

.auth-mode-switch button.is-active {
  color: #ffffff;
  background: var(--forest);
}

.form-error-strong {
  padding: 9px 10px;
  color: #a11f1f;
  background: #fff0f0;
  border: 1px solid #f2c6c6;
  border-radius: 5px;
}

.code-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.demo-code {
  margin-top: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  color: #225b6d;
  background: #e6f4f7;
  border: 1px solid #bee1e8;
  border-radius: 5px;
}

.demo-code svg {
  width: 17px;
  height: 17px;
  grid-row: span 2;
}

.demo-code span {
  font-size: 11px;
}

.demo-code strong {
  font-family: Consolas, "Courier New", monospace;
  font-size: 20px;
}

.demo-code small {
  grid-column: 2 / -1;
  color: #4d7a86;
  font-size: 9px;
}

.admin-login-card {
  border-top: 4px solid var(--danger);
}

.lightbox {
  position: fixed;
  z-index: 2500;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 56px;
  background: rgba(4, 11, 8, 0.94);
}

.lightbox > img {
  max-width: min(1200px, 100%);
  max-height: calc(100vh - 150px);
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  color: #ffffff;
}

.lightbox-caption {
  position: fixed;
  left: 50%;
  bottom: 18px;
  max-width: min(760px, calc(100% - 40px));
  padding: 10px 14px;
  display: grid;
  color: #ffffff;
  background: rgba(24, 37, 31, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 5px;
  transform: translateX(-50%);
  text-align: center;
}

.lightbox-caption span {
  color: #b4c4ba;
  font-size: 11px;
}

.toast-region {
  position: fixed;
  z-index: 3000;
  right: 20px;
  bottom: 20px;
  width: min(380px, calc(100% - 40px));
  display: grid;
  gap: 9px;
  pointer-events: none;
}

.toast {
  padding: 13px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: flex-start;
  gap: 10px;
  color: #eef5ef;
  background: rgba(21, 42, 34, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  animation: toastIn 220ms ease both;
  pointer-events: auto;
}

.toast.is-error {
  background: #9f2929;
  border-color: #c85555;
}

.toast.is-success {
  background: #2a6740;
  border-color: #4a8e60;
}

.toast svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.toast strong,
.toast span {
  display: block;
}

.toast strong {
  font-size: 13px;
}

.toast span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
}

.toast-close {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
  background: none;
  border: 0;
  cursor: pointer;
}

.toast-close svg {
  width: 14px;
  height: 14px;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1050px) {
  :root {
    --header-height: 66px;
  }

  .nav-wrap {
    gap: 12px;
  }

  .nav-links a {
    padding: 9px 8px;
    font-size: 13px;
  }

  .account-chip span {
    display: none;
  }

  .account-chip {
    width: 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
  }

  .hero {
    min-height: 790px;
  }

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

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

  .hero-stat {
    padding: 14px 18px;
  }

  .hero-stat:nth-child(2) {
    border-right: 0;
  }

  .hero-stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .player-layout,
  .board-layout {
    grid-template-columns: 1fr;
  }

  .player-overview {
    min-height: 0;
  }

  .map-layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }

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

  .admin-stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .site-header {
    height: auto;
    min-height: var(--header-height);
  }

  .nav-wrap {
    min-height: var(--header-height);
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .account-chip {
    margin-left: 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    display: none;
    padding: 0 0 14px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero {
    min-height: 870px;
  }

  .hero-content {
    padding: 76px 0 300px;
  }

  .hero h1 {
    font-size: clamp(40px, 11vw, 62px);
  }

  .announcement-ticker {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .ticker-time {
    display: none;
  }

  .section {
    padding: 72px 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

  .map-sidebar {
    grid-template-columns: 1fr 1.2fr;
  }

  .map-coordinate {
    grid-column: 1 / -1;
  }

  .region-list {
    grid-template-columns: 1fr 1fr;
  }

  .map-canvas-wrap {
    min-height: 360px;
  }

  .blueprint-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .blueprint-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .announcement-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .announcement-meta {
    display: flex;
    align-items: center;
  }

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

  .social-layout {
    grid-template-columns: 1fr;
  }

  .post-composer {
    position: static;
  }

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

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .admin-bottom-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    padding: 24px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-bottom {
    padding: 16px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .lightbox {
    padding: 54px 16px;
  }
}

@media (max-width: 620px) {
  .nav-wrap,
  .hero-content,
  .hero-stats,
  .section > *,
  .admin-dashboard > *,
  .footer-main,
  .footer-bottom {
    width: min(100% - 28px, var(--max-width));
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    min-height: 920px;
  }

  .hero-content {
    padding: 64px 0 385px;
  }

  .hero-content > p {
    font-size: 15px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .address-card strong {
    font-size: 17px;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stat {
    padding: 12px 14px;
  }

  .hero-stat strong {
    font-size: 17px;
  }

  .hero-stat strong b {
    font-size: 23px;
  }

  .seed-value {
    font-size: 12px !important;
  }

  .section {
    padding: 60px 0;
  }

  .section h2 {
    font-size: 30px;
  }

  .panel {
    padding: 20px;
  }

  .capacity-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }

  .player-list {
    grid-template-columns: 1fr;
  }

  .map-legend {
    flex-wrap: wrap;
    gap: 10px 15px;
  }

  .map-dimensions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .map-dimension {
    min-width: 0;
    padding: 8px 7px;
  }

  .map-sidebar {
    grid-template-columns: 1fr;
  }

  .region-list {
    grid-template-columns: 1fr;
  }

  .map-canvas-wrap {
    min-height: 300px;
    aspect-ratio: 4 / 3;
  }

  .field-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .album-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .album-item,
  .album-item:nth-child(4n + 1),
  .album-item:nth-child(4n + 4) {
    grid-column: auto;
    grid-row: auto;
    min-height: 245px;
  }

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

  .comment-input-row {
    grid-template-columns: 1fr;
  }

  .music-card {
    grid-template-columns: 1fr;
  }

  .admin-stat-grid {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .admin-session {
    justify-content: center;
  }

  .chart-value {
    display: none;
  }

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

  .form-span-2 {
    grid-column: auto;
  }

  .code-input-row {
    grid-template-columns: 1fr;
  }

  .modal-layer {
    padding: 12px;
  }

  .modal-card {
    max-height: calc(100vh - 24px);
    padding: 25px 20px;
  }

  .toast-region {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
  }
}

.works-toolbar {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.works-count {
  color: var(--ink-muted);
  font-size: 13px;
}

.works-feed {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.works-feed .post-card {
  min-width: 0;
}

.works-feed .post-content {
  white-space: pre-wrap;
}

.work-compose-wrap {
  margin-top: 24px;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--ink-muted);
  font-size: 13px;
}

.work-compose-button {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--forest);
  border: 0;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.work-compose-button:hover {
  background: var(--forest-deep);
  transform: translateY(-2px);
}

.work-compose-button i {
  width: 27px;
  height: 27px;
}

.work-composer-account {
  margin-bottom: 16px;
}

.work-type-switch {
  margin-bottom: 14px;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: #eef2ed;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.work-type-switch button {
  min-height: 42px;
  padding: 7px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-weight: 700;
  cursor: pointer;
}

.work-type-switch button.is-active {
  color: #ffffff;
  background: var(--forest);
}

.work-type-switch i {
  width: 17px;
  height: 17px;
}

@media (max-width: 860px) {
  .works-feed {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .works-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .work-type-switch {
    grid-template-columns: 1fr;
  }

  .social-compose-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .social-compose-actions .button {
    width: 100%;
  }
}

.mailbox-entry-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #a9cbd5;
  cursor: pointer;
}

.profile-content-tools {
  margin: -4px 0 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.profile-content-tools > div {
  display: flex;
  gap: 8px;
}

.profile-content-tools .search-field {
  margin: 0;
}

.search-compact-card.is-managing {
  grid-template-columns: auto auto minmax(0, 1fr) auto;
}

.favorite-select {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-muted);
  font-size: 12px;
  cursor: pointer;
}

.favorite-select input {
  width: 17px;
  height: 17px;
  accent-color: var(--forest);
}

.mailbox-modal {
  width: min(860px, 100%);
}

.mailbox-tabs {
  margin: 20px 0;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
}

.mailbox-tabs button {
  min-height: 42px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  font-weight: 700;
  cursor: pointer;
}

.mailbox-tabs button.is-active {
  color: var(--forest);
  border-bottom-color: var(--forest);
}

.mailbox-tabs button i {
  width: 17px;
  height: 17px;
}

.mailbox-tabs button span {
  min-width: 20px;
  padding: 1px 6px;
  color: #ffffff;
  background: var(--danger);
  border-radius: 999px;
  font-size: 11px;
  text-align: center;
}

.mailbox-content {
  min-height: 260px;
  max-height: min(62vh, 650px);
  overflow: auto;
}

.chat-list {
  display: grid;
  gap: 8px;
}

.chat-list-item {
  width: 100%;
  padding: 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.chat-list-item:hover {
  border-color: var(--forest);
}

.chat-list-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.chat-list-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.chat-list-copy small {
  overflow: hidden;
  color: var(--ink-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-list-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
  color: var(--ink-muted);
  font-size: 11px;
}

.chat-list-meta b {
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--danger);
  border-radius: 999px;
  font-size: 10px;
}

.player-context-menu {
  position: fixed;
  z-index: 5000;
  width: 230px;
  padding: 7px;
  background: var(--paper-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.player-context-head {
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line);
}

.player-context-head > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.player-context-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-context-head span {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-muted);
  font-size: 11px;
}

.context-tag {
  padding: 1px 6px;
  color: var(--ink-soft);
  background: #e8ede7;
  border-radius: 999px;
  font-size: 10px;
}

.context-tag.is-owner {
  color: #a42f2f;
  background: #f8dddd;
}

.context-tag.is-friend {
  color: #246b72;
  background: #dff2f4;
}

.player-context-menu > button {
  width: 100%;
  min-height: 38px;
  padding: 8px 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 5px;
  text-align: left;
  cursor: pointer;
}

.player-context-menu > button:hover {
  color: var(--forest);
  background: #eef4eb;
}

.player-context-menu > button svg,
.player-context-loading svg {
  width: 16px;
  height: 16px;
}

.player-context-loading {
  padding: 14px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-muted);
  font-size: 12px;
}

.mail-compose-form {
  display: grid;
  gap: 9px;
}

.mailbox-list-tools {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-muted);
  font-size: 13px;
}

.mailbox-list-tools button,
.mail-item-foot button {
  padding: 2px 0;
  color: var(--forest);
  background: transparent;
  border: 0;
  font-weight: 700;
  cursor: pointer;
}

.mailbox-list-tools button:hover,
.mail-item-foot button:hover {
  text-decoration: underline;
}

.mail-list {
  display: grid;
  gap: 10px;
}

.mail-item {
  padding: 15px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mail-item.is-unread {
  border-left: 4px solid var(--sky-deep);
  background: #f5fbfc;
}

.mail-item-head,
.mail-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mail-item-head > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mail-item-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-item-head time,
.mail-item-foot span {
  color: var(--ink-muted);
  font-size: 12px;
}

.mail-item p {
  margin: 9px 0;
  color: var(--ink-soft);
  white-space: pre-wrap;
}

.mail-item-foot > div {
  display: flex;
  gap: 10px;
}

.mail-item-foot button.danger {
  color: var(--danger);
}

.mail-type {
  padding: 2px 7px;
  color: #4c6370;
  background: #e4edf0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.mail-type.is-system {
  color: #7d5413;
  background: #f7ebc9;
}

.admin-messages-panel {
  margin-top: 20px;
}

.admin-message-list {
  display: grid;
  gap: 10px;
}

.admin-message-item {
  padding: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-message-copy {
  min-width: 0;
}

.admin-message-copy > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-message-copy p {
  margin: 7px 0;
  color: var(--ink-soft);
}

.admin-message-copy small {
  color: var(--ink-muted);
}

@media (max-width: 680px) {
  .profile-content-tools,
  .profile-content-tools > div {
    grid-template-columns: 1fr;
    align-items: stretch;
    flex-direction: column;
  }

  .profile-content-tools .button {
    width: 100%;
  }

  .mailbox-tabs {
    overflow-x: auto;
  }

  .mailbox-tabs button {
    flex: 0 0 auto;
  }

  .mail-item-head,
  .mail-item-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-message-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .admin-message-item > .delete-button {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

.user-center-banner {
  position: relative;
  height: 128px;
  margin: -2px 0 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.user-center-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-center-banner-shade {
  position: absolute;
  inset: 0;
  background: rgba(12, 28, 22, 0.58);
}

.user-center-banner .section-label {
  position: absolute;
  left: 18px;
  bottom: 13px;
  color: #e8f4ec;
}

.user-center-summary {
  position: relative;
  z-index: 1;
  margin-top: -38px;
  margin-bottom: 14px;
  padding: 16px;
  background: var(--paper-strong);
  box-shadow: var(--shadow-sm);
}

.user-center-summary h2 {
  margin: 0 0 3px;
  font-size: 24px;
}

.user-center-summary small {
  font-size: 12px;
}

.user-center-metrics {
  margin: 14px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.user-center-metrics > div {
  padding: 12px 8px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
}

.user-center-metrics > div:last-child {
  border-right: 0;
}

.user-center-metrics span {
  color: var(--ink-muted);
  font-size: 12px;
}

.user-center-metrics strong {
  color: var(--forest);
  font-size: 22px;
}

.account-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.account-setting-card {
  min-width: 0;
  padding: 15px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 12px;
  background: #f8faf6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.account-setting-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--forest);
  background: #deebe0;
  border-radius: var(--radius);
}

.account-setting-icon-blue {
  color: var(--sky-deep);
  background: #deedf0;
}

.account-setting-card h3 {
  margin: 0 0 3px;
  font-size: 17px;
}

.account-setting-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 12px;
}

.account-setting-card .button {
  grid-column: 1 / -1;
  width: 100%;
}

.public-profile-cover {
  position: relative;
  height: 178px;
  margin: -2px 0 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.public-profile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-profile-cover > span {
  position: absolute;
  inset: 0;
  background: rgba(10, 28, 21, 0.46);
}

.public-profile-modal .public-profile-head {
  position: relative;
  z-index: 1;
  margin: -44px 18px 0;
  padding: 16px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.public-profile-stats {
  margin-top: 16px;
  background: #f8faf6;
  box-shadow: var(--shadow-sm);
}

.public-profile-stats strong {
  color: var(--forest);
}

.public-profile-badges .badge {
  min-height: 27px;
}

.public-profile-footer {
  margin-top: 20px;
  padding-top: 16px;
  display: flex;
  justify-content: flex-start;
  border-top: 1px solid var(--line);
}

.public-profile-footer .button {
  min-width: 120px;
}

.account-more-card {
  border-color: #c8d9c3;
}

.account-more-card.is-highlighted {
  animation: account-more-highlight 1.1s ease 2;
}

.account-more-status {
  padding: 9px 10px;
  color: var(--ink-muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 12px;
}

.account-more-status.is-logged-in {
  color: var(--forest);
  background: #edf5e9;
  border-color: #c8ddbd;
}

.account-more-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.account-more-actions .button {
  width: 100%;
}

.account-more-actions .button-danger {
  grid-column: 1 / -1;
}

@keyframes account-more-highlight {
  0%,
  100% {
    box-shadow: none;
  }

  50% {
    box-shadow: 0 0 0 4px rgba(117, 168, 67, 0.22);
  }
}

@media (max-width: 620px) {
  .account-settings-grid {
    grid-template-columns: 1fr;
  }

  .user-center-metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .user-center-banner {
    height: 108px;
  }

  .public-profile-cover {
    height: 135px;
  }

  .public-profile-modal .public-profile-head {
    margin: -34px 8px 0;
  }

  .account-more-actions {
    grid-template-columns: 1fr;
  }

  .account-more-actions .button-danger {
    grid-column: auto;
  }
}

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

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

.section-search {
  background: var(--paper-strong);
}

.global-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 22px;
}

.global-search-field {
  min-height: 52px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.global-search-field i {
  width: 21px;
  height: 21px;
  color: var(--forest);
}

.global-search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.search-results {
  display: grid;
  gap: 26px;
}

.search-start {
  min-height: 190px;
  padding: 38px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.search-start i {
  width: 36px;
  height: 36px;
  color: var(--forest);
}

.search-start strong {
  color: var(--ink);
  font-size: 18px;
}

.search-group {
  display: grid;
  gap: 12px;
}

.search-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.search-group-head h3 {
  margin: 0;
  font-size: 20px;
}

.search-group-head span {
  color: var(--ink-muted);
  font-size: 13px;
}

.search-player-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.search-player-card {
  min-width: 0;
  min-height: 76px;
  padding: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.search-player-card:hover {
  border-color: var(--forest);
  box-shadow: var(--shadow-sm);
}

.search-player-card > span:nth-child(2) {
  min-width: 0;
  display: grid;
}

.search-player-card strong,
.search-player-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-player-card small {
  color: var(--ink-muted);
}

.search-compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.search-compact-card {
  min-width: 0;
  padding: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.search-compact-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--forest);
  background: #e1ebe1;
  border-radius: var(--radius);
}

.search-video-icon {
  color: #9f3f35;
  background: #f4e3df;
}

.search-compact-body {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.search-compact-body strong,
.search-compact-body span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-compact-body span {
  color: var(--ink-muted);
  font-size: 13px;
}

.search-compact-body audio {
  width: 100%;
  margin-top: 5px;
}

.search-compact-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.creator-link {
  width: fit-content;
  max-width: 100%;
  padding: 0;
  color: var(--forest);
  background: transparent;
  border: 0;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.creator-link:disabled {
  color: inherit;
  cursor: default;
}

.favorite-button {
  min-height: 34px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ink-soft);
  background: var(--paper-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.favorite-button i {
  width: 16px;
  height: 16px;
}

.favorite-button.is-active {
  color: #a62f42;
  background: #fff0f3;
  border-color: #e6a9b4;
}

.author-profile-link {
  min-width: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.author-profile-link:disabled {
  cursor: default;
}

.blueprint-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-video {
  background: #edf2ee;
}

.video-live-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.video-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.video-card {
  min-width: 0;
  overflow: hidden;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.video-player {
  aspect-ratio: 16 / 9;
  background: #101914;
}

.video-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-card-body {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.video-card-body p {
  margin: 0;
  color: var(--ink-soft);
}

.video-author-row,
.video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.creator-avatar-button {
  min-width: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.creator-avatar-button > span:last-child {
  min-width: 0;
  display: grid;
}

.creator-avatar-button small,
.video-meta span {
  overflow: hidden;
  color: var(--ink-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-meta {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 13px;
}

.video-footnote {
  margin: 14px 0 0;
  color: var(--ink-muted);
  text-align: right;
  font-size: 13px;
}

.profile-age-card {
  margin: 16px 0;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.profile-age-card > i {
  width: 28px;
  height: 28px;
  color: var(--forest);
}

.profile-age-card > div {
  display: grid;
}

.profile-age-card span,
.profile-age-card small {
  color: var(--ink-muted);
  font-size: 13px;
}

.public-profile-modal {
  width: min(920px, 100%);
}

.public-profile-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.public-profile-head .profile-avatar {
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
  font-size: 34px;
}

.public-profile-copy {
  min-width: 0;
}

.public-profile-copy h2 {
  margin: 3px 0 4px;
  font-size: 30px;
}

.public-profile-copy p {
  margin: 0;
  color: var(--ink-muted);
}

.public-profile-badges {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.public-profile-stats {
  margin: 22px 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.public-profile-stats > div {
  padding: 14px 10px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
}

.public-profile-stats > div:last-child {
  border-right: 0;
}

.public-profile-stats span {
  color: var(--ink-muted);
  font-size: 12px;
}

.public-profile-stats strong {
  font-size: 20px;
}

.profile-tabs {
  margin-bottom: 18px;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
}

.profile-tabs button {
  padding: 10px 14px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  font-weight: 700;
  cursor: pointer;
}

.profile-tabs button.is-active {
  color: var(--forest);
  border-bottom-color: var(--forest);
}

.public-profile-content {
  min-height: 180px;
}

.profile-post {
  padding: 16px 0;
  display: grid;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.profile-post:first-child {
  padding-top: 0;
}

.profile-post:last-child {
  border-bottom: 0;
}

.profile-post-head,
.profile-post-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-post-head span,
.profile-post-foot span {
  color: var(--ink-muted);
  font-size: 13px;
}

.profile-post p {
  margin: 0;
  white-space: pre-wrap;
}

.profile-post img,
.profile-post video {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #101914;
  border-radius: var(--radius);
}

@media (max-width: 920px) {
  .search-player-grid,
  .search-compact-grid,
  .video-feed {
    grid-template-columns: 1fr;
  }

  .public-profile-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .public-profile-stats > div:nth-child(3n) {
    border-right: 0;
  }

  .public-profile-stats > div:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .global-search-form {
    grid-template-columns: 1fr;
  }

  .global-search-form .button {
    width: 100%;
  }

  .video-live-actions,
  .video-author-row,
  .video-meta,
  .search-group-head {
    align-items: stretch;
    flex-direction: column;
  }

  .video-live-actions .button {
    width: 100%;
  }

  .public-profile-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-profile-head .profile-avatar {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }

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

  .public-profile-stats > div,
  .public-profile-stats > div:nth-child(3n) {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .public-profile-stats > div:nth-child(2n) {
    border-right: 0;
  }

  .public-profile-stats > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .profile-tabs {
    overflow-x: auto;
  }

  .profile-tabs button {
    flex: 0 0 auto;
  }

  .search-compact-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .search-compact-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}
