:root {
  color-scheme: dark;
  --void: #050403;
  --space: #0c0a07;
  --panel: rgba(16, 13, 8, 0.9);
  --panel-strong: #171108;
  --paper: #d6bc72;
  --paper-dim: #9b8452;
  --line: rgba(214, 188, 114, 0.2);
  --line-hot: rgba(230, 184, 77, 0.82);
  --bsc: #e6b84d;
  --gold-deep: #8f6b24;
  --jade: #123b2e;
  --jade-light: #2f7056;
  --lime: #d6bc72;
  --cyan: #e6b84d;
  --red: #8f2119;
  --red-hot: #c7472c;
  --text: #fff0ca;
  --muted: #9f8d68;
  --ink: #070502;
  --serif: "Source Han Serif SC", "Source Han Serif CN", "Noto Serif CJK SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: var(--serif);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(5, 4, 3, 0.96), rgba(5, 4, 3, 0.86) 42%, rgba(5, 4, 3, 0.98)),
    radial-gradient(circle at 18% 14%, rgba(143, 33, 25, 0.28), transparent 34%),
    radial-gradient(circle at 74% 8%, rgba(230, 184, 77, 0.12), transparent 24%),
    url("./assets/longmen-gate-panel-bg.png"),
    linear-gradient(90deg, rgba(214, 188, 114, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(214, 188, 114, 0.025) 1px, transparent 1px),
    var(--void);
  background-attachment: scroll, scroll, scroll, fixed, scroll, scroll, scroll;
  background-position: center, center, center, center top, center, center, center;
  background-size: auto, auto, auto, min(1600px, 140vw) auto, 88px 88px, 88px 88px, auto;
  color: var(--text);
  font-family: var(--serif);
  font-weight: 700;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 761px) {
  body.room-head {
    overflow: hidden;
  }
}

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

button,
.button,
.nav-actions a,
.rules a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(214, 188, 114, 0.08), transparent 44%),
    rgba(12, 10, 7, 0.88);
  color: var(--text);
  padding: 0 14px;
  font-weight: 850;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ui-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  color: currentColor;
  vertical-align: -0.14em;
}

.icon-only {
  aspect-ratio: 1;
  padding: 0;
}

button:hover,
.button:hover,
.nav-actions a:hover,
.rules a:hover {
  border-color: var(--line-hot);
  background:
    linear-gradient(135deg, rgba(230, 184, 77, 0.16), transparent 44%),
    rgba(18, 14, 8, 0.96);
}

button:active,
.button:active {
  transform: translateY(1px);
}

button.primary,
.button.primary,
.tool-card button,
.geo-form button.primary {
  border-color: var(--bsc);
  background:
    linear-gradient(180deg, #ffd46b, var(--bsc) 52%, #9d7427);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 215, 0.52),
    inset 0 -1px 0 rgba(7, 5, 2, 0.42),
    0 10px 26px rgba(230, 184, 77, 0.2);
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
.brand,
button,
.button {
  font-family: var(--serif);
}

.app-shell {
  min-height: 100dvh;
}

.app-shell[data-room="head"] .council-room,
.app-shell[data-room="council"] .globe-stage {
  display: none;
}

.app-shell[data-room="council"] .council-room {
  display: block;
  min-height: 100dvh;
  padding: 118px 0 86px;
}

.council-room[hidden] {
  display: none;
}

.council-head {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto 28px;
}

.council-head h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 4vw, 64px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow:
    0 2px 0 rgba(143, 33, 25, 0.36),
    0 14px 30px rgba(0, 0, 0, 0.42);
}

.council-head p:not(.eyebrow) {
  max-width: 620px;
  color: var(--paper);
  font-size: 16px;
  line-height: 1.55;
}

.globe-stage {
  --dragon-opacity: 0.18;
  --dragon-scale: 1;
  --mist-opacity: 0.3;
  --mist-scale: 1;
  --mist-drift: 0%;
  --mist-lift: 0%;
  --mist-gap: 8%;
  --mist-blur: 7px;
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 40%, rgba(230, 184, 77, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(5, 4, 3, 0.02), rgba(5, 4, 3, 0.94)),
    #050403;
}

.globe-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 4, 3, 0.9) 0%, rgba(5, 4, 3, 0.52) 34%, rgba(5, 4, 3, 0.04) 74%),
    linear-gradient(180deg, rgba(5, 4, 3, 0.12), rgba(5, 4, 3, 0.62)),
    url("./assets/longmen-gate-banner-bg.png");
  background-position: center;
  background-size: cover;
  opacity: var(--dragon-opacity);
  mix-blend-mode: normal;
  mask-image:
    radial-gradient(circle at 72% 45%, rgba(0, 0, 0, 0.92), transparent 54%),
    linear-gradient(180deg, transparent 0%, #000 18%, #000 86%, transparent 100%);
  transform: scale(var(--dragon-scale));
  transform-origin: 72% 45%;
  transition:
    opacity 180ms linear,
    transform 260ms ease-out;
  will-change: opacity, transform;
}

.globe-stage::after {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at calc(58% + var(--mist-drift)) calc(37% + var(--mist-lift)), rgba(255, 250, 230, 0.24), rgba(236, 220, 186, 0.12) 31%, transparent 58%),
    radial-gradient(ellipse at calc(73% - var(--mist-drift)) 58%, rgba(235, 217, 178, 0.18), rgba(150, 178, 190, 0.07) 32%, transparent 62%),
    linear-gradient(102deg, transparent 0%, rgba(255, 248, 226, 0.2) 24%, rgba(255, 248, 226, 0.06) 43%, transparent 58%, rgba(219, 199, 152, 0.15) 76%, transparent 100%),
    repeating-linear-gradient(106deg, transparent 0 58px, rgba(255, 250, 232, 0.055) 70px 98px, transparent 116px 168px);
  background-position:
    calc(50% + var(--mist-drift)) 47%,
    calc(58% - var(--mist-drift)) 54%,
    calc(50% + var(--mist-drift)) center,
    calc(50% - var(--mist-drift)) center;
  background-size:
    116% 108%,
    92% 94%,
    142% 142%,
    170% 170%;
  opacity: var(--mist-opacity);
  mix-blend-mode: screen;
  filter: blur(var(--mist-blur)) saturate(0.86);
  mask-image: radial-gradient(ellipse at 70% 45%, transparent 0 var(--mist-gap), rgba(0, 0, 0, 0.72) calc(var(--mist-gap) + 8%), rgba(0, 0, 0, 0.96) 58%, transparent 84%);
  transform: translate3d(var(--mist-drift), var(--mist-lift), 0) scale(var(--mist-scale));
  transform-origin: 70% 45%;
  transition:
    opacity 180ms linear,
    transform 280ms ease-out,
    background-position 280ms ease-out,
    filter 220ms ease-out;
  will-change: opacity, transform, background-position, filter;
}

#globeMap.globe-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  transform: none;
}

#globeMap.globe-map .maplibregl-canvas-container,
#globeMap.globe-map .maplibregl-canvas {
  inset: 0;
}

#globeMap.globe-map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 44%, transparent 0 52%, rgba(5, 4, 3, 0.08) 70%, rgba(5, 4, 3, 0.62) 100%),
    radial-gradient(circle at 24% 26%, rgba(143, 33, 25, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(5, 4, 3, 0), rgba(5, 4, 3, 0.24));
  z-index: 1;
}

.maplibregl-canvas {
  outline: none;
}

.maplibregl-ctrl-bottom-left,
.maplibregl-ctrl-bottom-right {
  opacity: 0.52;
}

.geo-marker {
  position: absolute;
  width: 46px;
  height: 64px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  padding: 0;
  cursor: pointer;
  filter:
    drop-shadow(0 9px 8px rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 10px color-mix(in srgb, var(--marker-color, var(--bsc)) 22%, transparent));
}

.marker-art {
  position: absolute;
  left: 0;
  bottom: 0;
  display: block;
  width: 46px;
  height: 64px;
  transform: scale(var(--marker-scale, 1));
  transform-origin: 0 100%;
  transition: transform 90ms ease-out;
}

.globe-map.marker-zooming .marker-art {
  transition-duration: 0ms;
}

.biao-spear {
  position: absolute;
  left: 18px;
  top: 1px;
  display: block;
  width: 5px;
  height: 56px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5a3c14, #ffe199 48%, #6f4718);
  box-shadow:
    inset 0 0 0 1px rgba(7, 5, 2, 0.38),
    0 0 14px rgba(230, 184, 77, 0.28);
}

.biao-spear::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -2px;
  width: 13px;
  height: 13px;
  background:
    linear-gradient(135deg, #ffe8a8, #9b6d22 64%, #2f1e09);
  clip-path: polygon(50% 0, 100% 74%, 55% 58%, 50% 100%, 45% 58%, 0 74%);
  transform: translateX(-50%);
}

.biao-flag {
  position: absolute;
  left: 21px;
  top: 12px;
  display: block;
  width: 24px;
  height: 25px;
  border: 2px solid rgba(255, 224, 151, 0.88);
  border-left: 0;
  border-radius: 0 4px 10px 0;
  background:
    linear-gradient(135deg, rgba(255, 240, 202, 0.18), transparent 35%),
    linear-gradient(180deg, color-mix(in srgb, var(--marker-color, var(--bsc)) 86%, #fff0ca), color-mix(in srgb, var(--marker-color, var(--bsc)) 64%, #050403));
  box-shadow:
    inset -5px -7px 0 rgba(5, 4, 3, 0.22),
    0 0 0 4px color-mix(in srgb, var(--marker-color, var(--bsc)) 16%, transparent);
}

.biao-flag::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 12px;
  height: 12px;
  background: rgba(5, 4, 3, 0.46);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.biao-flag span {
  position: absolute;
  left: 7px;
  top: 5px;
  width: 8px;
  height: 12px;
  border-radius: 999px 999px 3px 3px;
  background: rgba(5, 4, 3, 0.78);
  box-shadow: 7px 0 0 rgba(5, 4, 3, 0.78);
}

.biao-knot {
  position: absolute;
  left: 12px;
  top: 34px;
  width: 21px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red-hot), #6f1713);
  transform: rotate(-16deg);
}

.biao-knot::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 4px;
  width: 13px;
  height: 18px;
  background: linear-gradient(180deg, #c7472c, #5e110e);
  clip-path: polygon(0 0, 100% 18%, 64% 100%, 34% 54%);
}

.biao-point {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--marker-color, var(--bsc));
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--marker-color, var(--bsc)) 17%, transparent),
    0 0 18px color-mix(in srgb, var(--marker-color, var(--bsc)) 62%, transparent);
  transform: translateX(-50%);
}

.geo-marker.active {
  z-index: 5;
}

.geo-marker.active .biao-flag {
  border-color: #fff0ca;
  box-shadow:
    inset -5px -7px 0 rgba(5, 4, 3, 0.18),
    0 0 0 6px rgba(230, 184, 77, 0.2),
    0 0 26px rgba(230, 184, 77, 0.82);
  transform: scale(1.08);
}

.geo-marker.draft {
  --marker-color: var(--red);
}

.globe-coordinate {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  display: grid;
  gap: 4px;
  min-width: 224px;
  padding: 10px 14px;
  border: 1px solid rgba(216, 199, 155, 0.24);
  border-radius: 4px;
  background: rgba(17, 16, 12, 0.82);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(8px);
  transform: translateX(-50%);
  pointer-events: none;
}

.globe-coordinate span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.globe-coordinate strong {
  color: var(--bsc);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0;
}

@keyframes markerPulse {
  from {
    transform: scale(0.72);
    opacity: 0.9;
  }
  to {
    transform: scale(1.7);
    opacity: 0;
  }
}

.space-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 24% 72%, rgba(143, 33, 25, 0.18), transparent 30%),
    linear-gradient(rgba(214, 188, 114, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 188, 114, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.18;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.62), transparent 82%);
}

.topbar {
  position: fixed;
  top: 18px;
  left: 24px;
  right: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  pointer-events: none;
}

.topbar > * {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--bsc) 72%, var(--red));
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(230, 184, 77, 0.18), transparent 56%),
    linear-gradient(145deg, #5e130f, var(--red));
  color: #ffe6a0;
  font-weight: 950;
  box-shadow:
    inset 0 0 0 2px rgba(255, 240, 202, 0.12),
    0 0 0 2px rgba(5, 4, 3, 0.5),
    0 0 18px rgba(143, 33, 25, 0.5);
}

.brand-seal {
  width: 24px;
  height: 24px;
  color: #ffe6a0;
  filter: drop-shadow(0 1px 0 rgba(7, 5, 2, 0.52));
}

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

.room-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(214, 188, 114, 0.24);
  border-radius: 4px;
  background: rgba(12, 9, 5, 0.74);
  padding: 5px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.room-tabs button {
  min-height: 36px;
  border-color: transparent;
  background: transparent;
  color: var(--paper);
  padding: 0 12px;
}

.room-tabs button.active {
  border-color: var(--bsc);
  background:
    linear-gradient(180deg, rgba(255, 212, 107, 0.95), rgba(230, 184, 77, 0.92));
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 244, 215, 0.42);
}

.ca-copy-button {
  min-width: 156px;
  justify-content: flex-start;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--paper);
}

.music-toggle.active {
  border-color: rgba(230, 184, 77, 0.58);
  color: var(--bsc);
}

.music-toggle.awaiting {
  border-color: rgba(214, 188, 114, 0.32);
  color: var(--paper-dim);
}

.bgm-audio {
  display: none;
}

.site-footer {
  position: fixed;
  left: 24px;
  bottom: 16px;
  z-index: 48;
  display: inline-flex;
  max-width: min(560px, calc(100vw - 48px));
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(226, 185, 92, 0.28);
  border-left: 3px solid rgba(230, 184, 77, 0.62);
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(255, 240, 202, 0.045), transparent 34%),
    rgba(9, 7, 4, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 202, 0.08),
    0 12px 32px rgba(0, 0, 0, 0.34);
  color: var(--paper-dim);
  padding: 8px 10px 8px 12px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.site-footer span {
  white-space: nowrap;
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.social-links a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(214, 188, 114, 0.2);
  border-radius: 3px;
  background: rgba(12, 10, 7, 0.62);
  color: var(--paper);
  padding: 0 9px;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease;
}

.social-links a:hover {
  border-color: var(--line-hot);
  background: rgba(230, 184, 77, 0.12);
  color: var(--bsc);
}

.wallet-panel {
  position: fixed;
  top: 72px;
  right: 24px;
  z-index: 60;
  width: min(360px, calc(100% - 48px));
  padding: 14px;
  background-color: rgba(12, 9, 5, 0.97);
}

.wallet-panel[hidden] {
  display: none;
}

.wallet-panel .panel-title {
  margin-bottom: 10px;
  padding-bottom: 10px;
}

#walletCloseButton {
  width: 32px;
  min-height: 32px;
  padding: 0;
  border-color: rgba(255, 255, 255, 0.12);
  font-size: 18px;
}

.wallet-options {
  display: grid;
  gap: 8px;
}

.wallet-option {
  justify-content: space-between;
  min-height: 48px;
  width: 100%;
  gap: 12px;
  text-align: left;
}

.wallet-option strong {
  display: block;
}

.wallet-option-main,
.wallet-option-state {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.wallet-option-main strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-option-state {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.wallet-option.detected .wallet-option-state {
  color: var(--paper);
}

.hero-copy {
  position: absolute;
  left: 36px;
  bottom: 78px;
  z-index: 3;
  width: min(430px, calc(100% - 560px));
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 12px;
  border: 1px solid rgba(230, 184, 77, 0.48);
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(143, 33, 25, 0.24), transparent 60%),
    rgba(230, 184, 77, 0.1);
  color: var(--bsc);
  padding: 7px 10px;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1;
}

.hero-copy h1 {
  margin-bottom: 14px;
  max-width: 8ch;
  font-size: clamp(44px, 5vw, 76px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow:
    0 2px 0 rgba(143, 33, 25, 0.5),
    0 16px 34px rgba(0, 0, 0, 0.46);
}

.lead {
  max-width: 390px;
  color: var(--paper);
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 750;
  line-height: 1.58;
}

.hero-actions,
.dock-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 26px;
}

.live-panel,
.bounty-dock,
.publish-panel,
.wallet-panel,
.tool-card,
.workspace-card,
.metrics article,
.pin-card,
.rules {
  border: 1px solid rgba(226, 185, 92, 0.32);
  border-left: 3px solid rgba(230, 184, 77, 0.72);
  border-radius: 3px;
  background-image:
    linear-gradient(135deg, rgba(255, 240, 202, 0.055), transparent 28%),
    radial-gradient(circle at 100% 0, rgba(230, 184, 77, 0.1), transparent 34%),
    radial-gradient(circle at 0 100%, rgba(143, 33, 25, 0.16), transparent 38%),
    linear-gradient(90deg, rgba(214, 188, 114, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(214, 188, 114, 0.045) 1px, transparent 1px);
  background-color: rgba(12, 9, 5, 0.92);
  background-size: auto, auto, auto, 24px 24px, 24px 24px;
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 202, 0.09),
    inset 0 -1px 0 rgba(5, 4, 3, 0.9),
    0 18px 48px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(10px) saturate(1.12);
}

.live-panel {
  position: absolute;
  top: 84px;
  right: 24px;
  z-index: 3;
  width: min(384px, calc(100% - 48px));
  padding: 18px;
}

.panel-head,
.panel-title,
.dock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.panel-head span,
.panel-title span,
.address-list span,
label,
.metrics span,
.dock-meta span {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.panel-head strong,
.panel-title strong,
.dock-top strong {
  color: var(--paper);
  font-family: var(--mono);
  white-space: nowrap;
}

#statusLine {
  color: var(--paper-dim);
  font-weight: 780;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.address-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.address-list div {
  display: grid;
  gap: 6px;
}

.address-list button {
  justify-content: flex-start;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--mono);
  font-size: 12px;
}

.bounty-dock {
  position: absolute;
  right: 24px;
  bottom: 36px;
  z-index: 3;
  width: min(420px, calc(100% - 48px));
  padding: 20px;
}

.dock-top {
  color: var(--bsc);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
}

.bounty-dock h2 {
  margin-bottom: 10px;
  font-size: clamp(23px, 1.8vw, 30px);
  line-height: 1.18;
  font-weight: 900;
}

.bounty-dock p {
  color: var(--paper);
  font-size: 14px;
  font-weight: 730;
  line-height: 1.58;
}

.dock-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.dock-meta span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(226, 185, 92, 0.08), transparent 54%),
    rgba(255, 255, 255, 0.04);
  padding: 8px 10px;
}

.metrics,
.map-board,
.bounty-hall,
.role-workbench,
.chain-tools,
.rules {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 28px 0 72px;
}

.metrics article {
  min-height: 112px;
  padding: 18px;
  background-color: rgba(12, 9, 5, 0.9);
}

.metrics strong {
  display: block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: clamp(20px, 1.8vw, 30px);
  line-height: 1.05;
}

.section-title {
  margin-bottom: 22px;
}

.section-title h2,
.rules h2 {
  margin-bottom: 10px;
  font-size: clamp(32px, 3.6vw, 56px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow:
    0 2px 0 rgba(143, 33, 25, 0.36),
    0 14px 30px rgba(0, 0, 0, 0.42);
}

.map-board,
.bounty-hall,
.role-workbench,
.chain-tools {
  padding-bottom: 72px;
}

.board-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

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

.pin-card {
  display: grid;
  gap: 12px;
  min-height: 188px;
  padding: 18px;
  background-color: rgba(12, 9, 5, 0.9);
  text-align: left;
}

.pin-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  min-height: 148px;
  align-content: center;
  border: 1px dashed rgba(230, 184, 77, 0.36);
  border-radius: 3px;
  background: rgba(12, 9, 5, 0.72);
  padding: 22px;
}

.pin-empty strong {
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
}

.pin-empty span {
  max-width: 44ch;
  color: var(--muted);
  font-weight: 760;
  line-height: 1.45;
}

.pin-card.active {
  border-color: var(--line-hot);
  background: rgba(230, 184, 77, 0.09);
}

.pin-card .pin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pin-title {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.pin-title .ui-icon {
  color: var(--bsc);
  font-size: 18px;
}

.pin-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
}

.pin-card .reward {
  color: var(--bsc);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.pin-card p {
  margin: 0;
  color: var(--paper);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.58;
}

.pin-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.pin-foot span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  color: var(--muted);
  padding: 6px 9px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
}

.hall-feed {
  display: grid;
  gap: 12px;
}

.hall-thread {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 0;
  border: 1px solid rgba(226, 185, 92, 0.28);
  border-left: 3px solid rgba(230, 184, 77, 0.72);
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(255, 240, 202, 0.045), transparent 28%),
    linear-gradient(90deg, rgba(214, 188, 114, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(214, 188, 114, 0.035) 1px, transparent 1px),
    rgba(12, 9, 5, 0.92);
  background-size: auto, 24px 24px, 24px 24px, auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 202, 0.08),
    0 14px 38px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.hall-thread.active {
  border-color: var(--line-hot);
  background-color: rgba(230, 184, 77, 0.08);
}

.hall-count {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 4, 3, 0.28);
  padding: 18px 10px;
}

.hall-count strong {
  color: var(--bsc);
  font-family: var(--mono);
  font-size: 24px;
  line-height: 1;
}

.hall-count span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.hall-thread-main {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 18px;
}

.hall-thread-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.hall-thread-head h3 {
  margin: 0;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.18;
  font-weight: 900;
}

.hall-thread-head strong {
  flex: none;
  color: var(--bsc);
  font-family: var(--mono);
  font-size: 13px;
}

.hall-meta,
.hall-reply-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hall-meta span,
.hall-reply-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  color: var(--muted);
  padding: 6px 9px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
}

.hall-brief,
.hall-reply p {
  margin: 0;
  color: var(--paper);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.58;
}

.hall-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hall-replies {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.hall-reply {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
}

.hall-reply-rail {
  width: 2px;
  min-height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(230, 184, 77, 0.7), rgba(230, 184, 77, 0.08));
  justify-self: center;
}

.hall-reply-main {
  display: grid;
  gap: 8px;
  min-width: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.hall-reply-reason {
  color: var(--muted);
}

.hall-reply-empty,
.hall-empty {
  border: 1px dashed rgba(230, 184, 77, 0.34);
  border-radius: 3px;
  background: rgba(12, 9, 5, 0.68);
  color: var(--muted);
  padding: 18px;
  font-weight: 780;
}

.hall-empty {
  display: grid;
  gap: 8px;
  min-height: 148px;
  align-content: center;
}

.hall-empty strong {
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
}

.workspace-tabs {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(12, 9, 5, 0.84);
  padding: 6px;
}

.workspace-tabs button {
  min-height: 36px;
  border-color: transparent;
  background: transparent;
  color: var(--paper);
}

.workspace-tabs button.active {
  border-color: var(--bsc);
  background: var(--bsc);
  color: var(--ink);
}

.workspace-content {
  display: grid;
  gap: 12px;
}

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

.workspace-card {
  display: grid;
  gap: 14px;
  min-height: 186px;
  padding: 18px;
  background-color: rgba(12, 9, 5, 0.92);
}

.workspace-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.18;
  font-weight: 900;
}

.workspace-card p {
  margin: 0;
  color: var(--paper);
  font-size: 14px;
  font-weight: 710;
  line-height: 1.45;
}

.workspace-meta,
.evidence-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workspace-meta span,
.evidence-meta span {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  color: var(--muted);
  padding: 6px 9px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
}

.workspace-actions,
.evidence-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.workspace-empty {
  display: grid;
  gap: 8px;
  min-height: 148px;
  align-content: center;
  border: 1px dashed rgba(230, 184, 77, 0.36);
  border-radius: 3px;
  background: rgba(12, 9, 5, 0.72);
  padding: 22px;
}

.workspace-empty strong {
  font-size: 20px;
  font-weight: 900;
}

.workspace-empty span {
  max-width: 56ch;
  color: var(--muted);
  font-weight: 760;
  line-height: 1.45;
}

.evidence-list {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.evidence-row {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}

.evidence-row textarea {
  min-height: 74px;
}

.evidence-hash,
.evidence-links {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.evidence-links a {
  color: var(--bsc);
}

.publish-panel {
  padding: 20px;
  background-color: rgba(12, 9, 5, 0.94);
}

.map-publish-panel {
  position: absolute;
  top: 84px;
  right: 24px;
  bottom: 36px;
  z-index: 4;
  display: grid;
  align-content: start;
  width: min(456px, calc(100% - 48px));
  overflow: auto;
  border-color: rgba(230, 184, 77, 0.46);
  opacity: 0;
  pointer-events: none;
  transform: translateX(26px) scale(0.98);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.map-publish-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.app-shell.publishing .live-panel,
.app-shell.publishing .bounty-dock {
  opacity: 0.2;
  pointer-events: none;
  transform: translateX(18px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.map-publish-panel .panel-title strong {
  color: var(--bsc);
}

.geo-form {
  display: grid;
  gap: 16px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 0.48fr;
  gap: 12px;
}

.field-row.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

input,
textarea,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(214, 188, 114, 0.045), transparent 44%),
    rgba(5, 4, 3, 0.9);
  color: var(--text);
  padding: 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--bsc);
}

.upload-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.upload-button {
  display: inline-flex;
  min-height: 38px;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(230, 184, 77, 0.48);
  border-radius: 4px;
  background: rgba(230, 184, 77, 0.1);
  color: var(--bsc);
  padding: 0 13px;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

#proofUploadState {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.35;
}

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

.upload-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(216, 199, 155, 0.14);
  border-radius: 4px;
  background: rgba(5, 4, 3, 0.56);
  padding: 8px;
}

.upload-item a,
.upload-item span {
  min-width: 0;
  overflow: hidden;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-item a {
  color: var(--bsc);
}

.upload-item button {
  min-height: 28px;
  padding: 0 9px;
  font-size: 12px;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 0.78fr 1fr;
  gap: 12px;
}

.tool-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 300px;
  padding: 18px;
  background-color: rgba(12, 9, 5, 0.92);
}

.tool-card.hot {
  border-color: var(--line-hot);
}

.tool-card h3 {
  margin-bottom: 2px;
  font-size: 21px;
  font-weight: 900;
}

.result {
  min-height: 128px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: rgba(5, 4, 3, 0.62);
  padding: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.result.empty {
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 850;
  white-space: normal;
}

.rules {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 72px;
  padding: 28px;
  background-color: rgba(12, 9, 5, 0.94);
}

.rules p:not(.eyebrow) {
  max-width: 700px;
  color: var(--paper);
  font-size: 17px;
  font-weight: 760;
  line-height: 1.45;
}

.rules a {
  flex: none;
  color: var(--bsc);
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  width: fit-content;
  max-width: min(520px, calc(100vw - 32px));
  transform: translateX(-50%);
  border: 1px solid var(--line-hot);
  border-radius: 4px;
  background: rgba(12, 9, 5, 0.96);
  color: var(--text);
  padding: 14px 18px;
  font-weight: 850;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.rules-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 6, 4, 0.72);
  backdrop-filter: blur(7px);
}

.rules-modal[hidden] {
  display: none;
}

.rules-modal-card {
  width: min(560px, 100%);
  border: 1px solid var(--line-hot);
  border-radius: 4px;
  background:
    radial-gradient(circle at 50% 0, rgba(143, 33, 25, 0.16), transparent 46%),
    linear-gradient(rgba(230, 184, 77, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 184, 77, 0.05) 1px, transparent 1px),
    rgba(14, 11, 7, 0.98);
  background-size: 28px 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
  padding: 20px;
}

#rulesCloseButton {
  width: 34px;
  min-height: 34px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}

.rules-modal-body {
  display: grid;
  gap: 14px;
  color: var(--paper);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.65;
}

.rules-modal-body p,
.rules-modal-body ul {
  margin: 0;
}

.rules-modal-body ul {
  display: grid;
  gap: 10px;
  padding-left: 1.25em;
}

#toast.show {
  opacity: 1;
}

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

  button,
  .button,
  .nav-actions a {
    transition: none;
  }

  .geo-marker::after {
    animation: none;
  }
}

@media (max-width: 1100px) {
  .hero-copy {
    width: min(620px, calc(100% - 48px));
  }

  .live-panel {
    top: 84px;
  }

  .bounty-dock {
    bottom: 24px;
  }

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

  .board-grid,
  .tool-grid,
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .hall-thread {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .pin-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-shell[data-room="council"] .council-room {
    padding-bottom: 32px;
  }

  .globe-stage {
    min-height: 1060px;
    padding: 206px 14px 14px;
  }

  .globe-map {
    inset: 0;
    height: 100%;
  }

  .globe-coordinate {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    width: min(280px, calc(100% - 28px));
    min-width: 0;
    margin-top: 14px;
    transform: none;
  }

  .hero-copy,
  .live-panel,
  .bounty-dock,
  .map-publish-panel {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
    top: 12px;
    left: 14px;
    right: 14px;
  }

  .room-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wallet-panel {
    top: 204px;
    right: 14px;
    width: calc(100% - 28px);
  }

  .site-footer {
    position: relative;
    left: auto;
    bottom: auto;
    display: flex;
    width: calc(100% - 28px);
    max-width: none;
    margin: 0 auto 14px;
    justify-content: space-between;
  }

  .hero-copy {
    margin-top: 40px;
  }

  .hero-copy h1 {
    max-width: 10ch;
    font-size: clamp(48px, 15vw, 64px);
  }

  .lead {
    max-width: 28ch;
    font-size: 18px;
  }

  .live-panel,
  .bounty-dock,
  .map-publish-panel {
    margin-top: 16px;
  }

  .map-publish-panel {
    display: none;
    max-height: none;
    overflow: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .map-publish-panel.open {
    display: grid;
  }

  .app-shell.publishing .live-panel,
  .app-shell.publishing .bounty-dock {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .metrics,
  .council-head,
  .map-board,
  .bounty-hall,
  .role-workbench,
  .chain-tools,
  .rules {
    width: calc(100% - 28px);
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 18px 0 52px;
  }

  .metrics article {
    min-height: 96px;
    padding: 15px;
  }

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

  .hall-thread {
    grid-template-columns: 1fr;
  }

  .hall-count {
    grid-auto-flow: column;
    align-content: center;
    justify-content: start;
    justify-items: start;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 16px;
  }

  .hall-thread-head {
    display: grid;
  }

  .workspace-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .field-row,
  .field-row.compact {
    grid-template-columns: 1fr;
  }

  .form-actions,
  .hero-actions,
  .dock-actions,
  .upload-strip,
  .rules {
    flex-direction: column;
    align-items: stretch;
  }

  .upload-item {
    grid-template-columns: 1fr;
  }

  .section-title h2,
  .rules h2 {
    font-size: clamp(38px, 12vw, 54px);
  }
}

@media (max-width: 420px) {
  .nav-actions {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
    justify-items: start;
    gap: 10px;
  }

  .globe-stage {
    min-height: 1120px;
  }

  .hero-copy h1 {
    font-size: clamp(44px, 14vw, 52px);
  }

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