@font-face { font-family: Anton; src: url(/fonts/anton-latin.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: Archivo; src: url(/fonts/archivo-latin-wdth.woff2) format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
:root {
  --gold: #ffc531; --gold2: #ffe08a; --ink: #0b0d1c; --panel: rgba(14, 15, 30, .72); --line: rgba(255, 210, 120, .22);
  --text: #f6efe0; --mute: #b9ad95; --red: #ff6a3d; --teal: #6fe3d1;
  --sans: Archivo, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: #0b0d1c; color: var(--text); font-family: var(--sans); overflow: hidden; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
#city { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.vignette { position: fixed; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 9, 20, .86) 0%, rgba(8, 9, 20, .55) 30%, rgba(8, 9, 20, 0) 55%),
              linear-gradient(0deg, rgba(8, 9, 20, .7) 0%, rgba(8, 9, 20, 0) 22%); }

.bar { position: fixed; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 18px 28px; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: Anton, var(--sans); font-size: 22px; letter-spacing: .06em; }
.brand img { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); }
.bar-right { display: flex; align-items: center; gap: 12px; }
.live { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--mute); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); animation: pulse 1.6s infinite; }
.live.off i { background: var(--mute); box-shadow: none; animation: none; }
@keyframes pulse { 50% { opacity: .35; } }
.lang { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-weight: 700; }
.lang:hover { border-color: var(--gold); }

.hero { position: fixed; left: 56px; top: 50%; transform: translateY(-54%); width: min(560px, 44vw); z-index: 4; pointer-events: none; }
.hero > * { pointer-events: auto; }
.kicker { margin: 0 0 14px; color: var(--gold); font-weight: 700; letter-spacing: .14em; font-size: 13px; }
h1 { margin: 0; font-size: clamp(34px, 3.6vw, 56px); line-height: 1.12; font-weight: 900; letter-spacing: -.01em; text-wrap: balance; text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
html[lang=en] h1 { font-family: Anton, var(--sans); font-weight: 400; letter-spacing: .01em; line-height: 1.05; font-size: clamp(40px, 4.3vw, 66px); }
.sub { margin: 18px 0 26px; color: #e3d8c2; font-size: 17px; line-height: 1.6; max-width: 34em; }
.find { display: flex; gap: 0; background: rgba(10, 11, 24, .82); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.find input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); padding: 12px 14px; font-size: 16px; }
.find input::placeholder { color: #8f8572; }
.find button { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #241a00; border: 0; border-radius: 10px; padding: 0 22px; font-weight: 800; font-size: 16px; cursor: pointer; white-space: nowrap; }
.find button:hover { filter: brightness(1.08); }
.steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: flex; gap: 12px; align-items: center; color: #e9dfcb; font-size: 15px; }
.steps b { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 197, 49, .14); border: 1px solid var(--line); color: var(--gold); font-size: 13px; }

.stats { position: fixed; left: 56px; bottom: 26px; display: flex; gap: 26px; z-index: 4; flex-wrap: wrap; }
.stats div { display: flex; flex-direction: column; gap: 2px; }
.stats b { font-family: Anton, var(--sans); font-weight: 400; font-size: 26px; color: var(--gold2); letter-spacing: .02em; }
.stats .wide b { font-family: var(--sans); font-weight: 800; font-size: 17px; line-height: 1.9; color: var(--text); }
.stats span { color: var(--mute); font-size: 12px; }

.labels { position: fixed; inset: 0; pointer-events: none; z-index: 3; }
.lbl { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); pointer-events: auto; cursor: pointer; white-space: nowrap;
  background: rgba(12, 12, 26, .78); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px 3px 4px; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; gap: 5px; color: var(--text); transition: opacity .2s; }
.lbl img { width: 16px; height: 16px; border-radius: 50%; background: #222; }
.lbl.ruin { color: #ffb399; border-color: rgba(255, 106, 61, .4); }
.lbl.hl { background: var(--gold); color: #241a00; border-color: var(--gold); z-index: 2; }
.lbl.far { opacity: 0; pointer-events: none; }

.card { position: fixed; right: 28px; top: 50%; transform: translateY(-50%); width: 340px; z-index: 6; background: var(--panel); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.card .x { position: absolute; right: 10px; top: 8px; background: none; border: 0; color: var(--mute); font-size: 24px; cursor: pointer; }
.card-head { display: flex; gap: 12px; align-items: center; padding-right: 22px; }
.card-head img { width: 48px; height: 48px; border-radius: 50%; background: #222; object-fit: cover; }
.card-head h2 { margin: 0; font-size: 19px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-head p { margin: 2px 0 0; color: var(--mute); font-size: 13px; }
.tag { margin-left: auto; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: rgba(255, 197, 49, .16); color: var(--gold); white-space: nowrap; }
.tag.ruin { background: rgba(255, 106, 61, .16); color: var(--red); }
.tag.copy { background: rgba(185, 173, 149, .16); color: var(--mute); }
.card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 18px 0 12px; }
.card dt { color: var(--mute); font-size: 12px; }
.card dd { margin: 2px 0 0; font-weight: 800; font-size: 17px; }
.why { margin: 0 0 14px; color: #e3d8c2; font-size: 14px; line-height: 1.55; }
.card-act { display: flex; gap: 8px; }
.card-act button, .card-act a { flex: 1; text-align: center; border-radius: 10px; padding: 10px 0; font-weight: 800; font-size: 14px; cursor: pointer; text-decoration: none; }
.card-act button { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #241a00; border: 0; }
.card-act a { border: 1px solid var(--line); color: var(--text); }
.soon { margin: 12px 0 0; color: var(--mute); font-size: 12px; text-align: center; }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--gold); color: #241a00; font-weight: 800; padding: 10px 18px; border-radius: 999px; z-index: 9; }
.loading { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; gap: 16px; align-items: center; justify-content: center; background: #0b0d1c; transition: opacity .6s; color: var(--mute); }
.loading img { width: 84px; height: 84px; border-radius: 50%; animation: pulse 1.4s infinite; }
.loading.done { opacity: 0; pointer-events: none; }

@media (max-width: 820px) {
  .vignette { background: linear-gradient(180deg, rgba(8, 9, 20, .9) 0%, rgba(8, 9, 20, .55) 42%, rgba(8, 9, 20, 0) 62%), linear-gradient(0deg, rgba(8, 9, 20, .75) 0%, rgba(8, 9, 20, 0) 20%); }
  .bar { padding: 12px 16px; }
  .brand { font-size: 18px; } .brand img { width: 28px; height: 28px; }
  .hero { left: 16px; right: 16px; top: 62px; transform: none; width: auto; }
  .kicker { font-size: 11px; margin-bottom: 8px; }
  h1 { font-size: 27px; } html[lang=en] h1 { font-size: 34px; }
  .sub { font-size: 14px; margin: 10px 0 14px; }
  .find input { font-size: 15px; padding: 10px; } .find button { padding: 0 14px; font-size: 15px; }
  .steps { margin-top: 12px; gap: 6px; } .steps li { font-size: 13px; } .steps b { width: 22px; height: 22px; font-size: 12px; }
  .stats { left: 16px; right: 16px; bottom: 14px; gap: 14px; }
  .stats b { font-size: 20px; } .stats .wide { display: none; }
  .card { left: 12px; right: 12px; top: auto; bottom: 12px; transform: none; width: auto; padding: 16px; }
  .card dl { grid-template-columns: 1fr 1fr 1fr; gap: 8px 10px; margin: 12px 0 8px; } .card dd { font-size: 15px; }
  .lbl { font-size: 11px; }
}

/* butterfly tower panel */
.tower { position: fixed; right: 28px; top: 74px; width: 300px; z-index: 4; background: var(--panel); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.tower-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.tw-clock { margin-left: auto; font-family: Anton, var(--sans); font-size: 22px; color: var(--gold2); letter-spacing: .04em; }
.tw-owner { margin: 10px 0 8px; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(255, 197, 49, .1); border: 1px solid var(--line); font-weight: 800; cursor: pointer; min-height: 52px; }
.tw-owner img { width: 30px; height: 30px; border-radius: 50%; background: #222; }
.tw-owner small { display: block; color: var(--mute); font-weight: 600; font-size: 12px; }
.tw-board { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tw-board li { display: flex; justify-content: space-between; font-size: 13px; color: #e3d8c2; cursor: pointer; }
.tw-board li b { color: var(--gold); font-weight: 800; }
.tw-note { margin: 8px 0 0; color: var(--mute); font-size: 12px; line-height: 1.5; }
.feed { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; display: grid; gap: 4px; max-height: 120px; overflow: hidden; }
.feed div { font-size: 12px; color: #d8ccb4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: feedIn .5s; }
.feed div b { color: var(--gold); }
@keyframes feedIn { from { opacity: 0; transform: translateY(-6px); } }
.card { top: auto; bottom: 26px; transform: none; }
.upg { margin: 0 0 12px; font-size: 13px; color: var(--mute); }
.upg .bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); margin-top: 6px; overflow: hidden; }
.upg .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #ff8a2a); }
.card-act .ghost { background: rgba(255, 106, 61, .14); color: #ffb399; border: 1px solid rgba(255, 106, 61, .35); }
.burn { margin-top: 12px; display: grid; gap: 8px; }
.burn input { width: 100%; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 9px 10px; font-size: 14px; outline: 0; }
.burn-row { display: flex; gap: 8px; } .burn-row input[type=color] { width: 46px; flex: none; padding: 2px; height: 38px; }
.burn button { background: linear-gradient(180deg, #ffb070, #ff6a3d); color: #2a0b00; border: 0; border-radius: 10px; padding: 11px 0; font-weight: 900; cursor: pointer; }
.burn-tip { margin: 0; font-size: 12px; color: var(--mute); min-height: 1em; word-break: break-all; }
.burn-tip a { color: var(--gold); }
@media (max-width: 820px) {
  .tower { left: 12px; right: 12px; top: auto; bottom: 64px; width: auto; padding: 8px 12px; }
  .tower .tw-board, .tower .tw-note, .tower .feed { display: none; }
  .tower { display: flex; align-items: center; gap: 10px; }
  .tower-head { flex: none; font-size: 13px; } .tower-head b { display: none; }
  .tw-owner { margin: 0; flex: 1; min-height: 0; padding: 4px 8px; font-size: 13px; background: none; border: 0; }
  .tw-owner img { width: 22px; height: 22px; } .tw-owner small { display: none; }
  .tw-clock { font-size: 18px; }
  .card { bottom: 12px; z-index: 7; max-height: 70vh; overflow: auto; }
}
body:has(#card:not([hidden])) .tower .tw-note, body:has(#card:not([hidden])) .tower .feed { display: none; }
@media (max-width: 820px) { body:has(#card:not([hidden])) .tower, body:has(#card:not([hidden])) .stats { display: none; } }
@media (max-height: 760px) and (min-width: 821px) { .card dl { gap: 8px 16px; margin: 12px 0 8px; } .why { display: none; } }
.shout { width: 100%; margin: 0 0 10px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 8px 10px; font-size: 13px; outline: 0; }
.cabar { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; background: rgba(12, 12, 26, .82); border: 1px solid var(--line); border-radius: 999px; padding: 5px 6px 5px 14px; font-size: 13px; }
.cabar span { color: var(--gold); font-weight: 900; } .cabar code { color: var(--text); font-size: 13px; }
.cabar button, .cabar a { border: 0; border-radius: 999px; padding: 5px 12px; font-weight: 800; font-size: 12px; cursor: pointer; text-decoration: none; }
.cabar button { background: rgba(255, 255, 255, .08); color: var(--text); } .cabar a { background: var(--gold); color: #241a00; }
@media (max-width: 820px) { .cabar { top: 50px; padding: 3px 4px 3px 10px; font-size: 12px; } body:has(#caBar:not([hidden])) .hero { top: 92px; } }
.xlink { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--text); }
.xlink:hover { border-color: var(--gold); }
