:root {
  --bg: #061211;
  --bg-deep: #020807;
  --panel: #0a1b19;
  --panel-2: #0d2420;
  --ink: #edfaf4;
  --muted: #93aca3;
  --muted-2: #68837a;
  --line: rgba(213, 255, 238, 0.13);
  --line-strong: rgba(213, 255, 238, 0.24);
  --mint: #a9f5d3;
  --mint-bright: #d7ffed;
  --peach: #ffd6b7;
  --lilac: #d8c7ff;
  --danger: #ff9c94;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font-ui: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
}

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

html {
  height: 100%;
  background: var(--bg-deep);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, #11322b 0%, transparent 48%),
    radial-gradient(90% 70% at 90% 110%, #142419 0%, transparent 55%),
    linear-gradient(160deg, #061311 0%, #030908 100%);
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(169, 245, 211, 0.25);
  color: var(--mint-bright);
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

/* ---------- atmosphere ---------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient__glow {
  position: absolute;
  width: 54vmax;
  height: 54vmax;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.42;
  animation: drift 26s ease-in-out infinite alternate;
}

.ambient__glow--a {
  top: -28vmax;
  left: -12vmax;
  background: radial-gradient(circle, rgba(50, 157, 125, 0.5), transparent 68%);
}

.ambient__glow--b {
  right: -24vmax;
  top: 22vh;
  width: 46vmax;
  height: 46vmax;
  background: radial-gradient(circle, rgba(108, 83, 167, 0.28), transparent 68%);
  animation-delay: -9s;
}

.ambient__glow--c {
  bottom: -32vmax;
  left: 28%;
  width: 58vmax;
  height: 58vmax;
  background: radial-gradient(circle, rgba(128, 102, 63, 0.18), transparent 65%);
  animation-delay: -16s;
}

.ambient__stars {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 9%, rgba(255, 255, 255, 0.55) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 32% 52%, rgba(190, 255, 231, 0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 65% 72%, rgba(255, 255, 255, 0.38) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 42%, rgba(255, 255, 255, 0.42) 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 48% 88%, rgba(255, 220, 191, 0.35) 50%, transparent 51%);
  background-size: 100% 100%;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.ambient__grain {
  position: absolute;
  inset: -50%;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  animation: grain 0.8s steps(2) infinite;
}

@keyframes drift {
  from { transform: translate3d(-2%, -2%, 0) scale(0.96); }
  to { transform: translate3d(4%, 4%, 0) scale(1.08); }
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

/* ---------- shell ---------- */

.app {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1280px;
  height: 100dvh;
  margin: 0 auto;
  padding-top: var(--safe-top);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 10px;
  flex: 0 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  min-width: 0;
}

.brand__mark {
  position: relative;
  display: block;
  width: 34px;
  height: 30px;
  flex: 0 0 auto;
}

.brand__mark i {
  position: absolute;
  border: 1px solid rgba(190, 255, 231, 0.52);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(214, 255, 240, 0.5), transparent 55%);
  box-shadow: inset 0 0 8px rgba(169, 245, 211, 0.15);
}

.brand__mark i:nth-child(1) { width: 17px; height: 17px; left: 0; bottom: 1px; }
.brand__mark i:nth-child(2) { width: 12px; height: 12px; left: 17px; top: 0; opacity: 0.8; }
.brand__mark i:nth-child(3) { width: 8px; height: 8px; right: 0; bottom: 4px; opacity: 0.55; }

.brand__word {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}

.brand__word strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.brand__word small {
  font-size: 7px;
  letter-spacing: 0.28em;
  color: var(--muted-2);
}

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

.area-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 48vw;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 24, 21, 0.55);
  backdrop-filter: blur(14px);
  color: #c8ded5;
  font-size: 11px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.area-chip__dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(169, 245, 211, 0.1), 0 0 12px rgba(169, 245, 211, 0.8);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(8, 24, 21, 0.5);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.icon-button:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(18, 45, 39, 0.7);
}

/* ---------- stage ---------- */

.stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.wall-scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 clamp(18px, 4.6vw, 60px);
  scrollbar-width: none;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

.wall-scroll::-webkit-scrollbar {
  display: none;
}

.stage-heading {
  position: relative;
  z-index: 2;
  padding: clamp(14px, 3vh, 36px) 0 6px;
  animation: rise 0.7s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  color: #a7c3b9;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(169, 245, 211, 0.5);
  animation: pulseDot 2.4s ease-out infinite;
}

.stage-heading h1 {
  max-width: 780px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 6.6vw, 62px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.stage-heading h1 em {
  font-style: normal;
  color: var(--mint);
}

.wall-sub {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.rule-line {
  margin: 15px 0 0;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.bubble-layer {
  position: relative;
  width: 100%;
  min-height: 55vh;
}

/* ---------- bubbles ---------- */

.bubble {
  --hue: 174;
  --size: 138px;
  position: absolute;
  display: block;
  width: var(--size);
  height: var(--size);
  margin: 0;
  padding: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 30% 22%, hsla(var(--hue), 100%, 91%, 0.26), transparent 27%),
    radial-gradient(circle at 74% 82%, hsla(var(--hue), 82%, 63%, 0.17), transparent 46%),
    radial-gradient(circle at 55% 48%, rgba(18, 46, 40, 0.46), rgba(6, 18, 16, 0.45));
  border: 1px solid hsla(var(--hue), 78%, 82%, 0.26);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.22),
    inset 0 -18px 45px hsla(var(--hue), 60%, 8%, 0.24),
    0 22px 60px rgba(0, 0, 0, 0.38),
    0 0 45px hsla(var(--hue), 80%, 60%, 0.06);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  color: var(--ink);
  text-align: left;
  animation: floatBubble var(--float-duration, 8s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.bubble::before {
  content: "";
  position: absolute;
  inset: 8% 12% 58% 14%;
  border-radius: 50%;
  background: linear-gradient(145deg, hsla(var(--hue), 100%, 95%, 0.18), transparent 62%);
  filter: blur(1px);
  pointer-events: none;
}

.bubble::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid hsla(var(--hue), 90%, 88%, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.bubble__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 19% 17% 16%;
  overflow: hidden;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.25s ease;
}

.bubble:hover .bubble__inner {
  transform: scale(1.035);
  background: hsla(var(--hue), 80%, 80%, 0.04);
}

.bubble:hover {
  border-color: hsla(var(--hue), 80%, 84%, 0.48);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.26),
    0 26px 72px rgba(0, 0, 0, 0.45),
    0 0 56px hsla(var(--hue), 80%, 62%, 0.13);
}

.bubble:active .bubble__inner {
  transform: scale(0.97);
}

.bubble__mood {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 5px;
  color: hsla(var(--hue), 90%, 86%, 0.78);
  font-size: clamp(7px, calc(var(--size) * 0.056), 9px);
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.bubble__mood span:first-child {
  font-size: 1.15em;
}

.bubble__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(11px, calc(var(--size) * 0.108), 16px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
  text-wrap: pretty;
}

.bubble--long .bubble__text {
  font-size: clamp(10px, calc(var(--size) * 0.094), 14px);
  line-height: 1.5;
}

.bubble__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: rgba(225, 247, 238, 0.55);
  font-size: clamp(7px, calc(var(--size) * 0.052), 9px);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.bubble__foot span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.bubble__heart {
  font-size: 1.15em;
  line-height: 1;
  color: var(--peach);
}

.bubble__owner {
  position: absolute;
  top: 10%;
  right: -4px;
  z-index: 2;
  padding: 3px 7px;
  border: 1px solid rgba(169, 245, 211, 0.35);
  border-radius: 999px;
  background: rgba(8, 24, 21, 0.86);
  color: var(--mint);
  font-size: 8px;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.bubble.is-mine {
  border-color: rgba(169, 245, 211, 0.5);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.26),
    0 22px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(169, 245, 211, 0.1),
    0 0 50px rgba(169, 245, 211, 0.1);
}

.bubble.is-fresh .bubble__inner {
  animation: bubbleIn 0.8s cubic-bezier(0.18, 0.9, 0.2, 1) both;
}

.bubble.is-liked .bubble__inner {
  animation: liked 0.6s ease both;
}

@keyframes floatBubble {
  0%, 100% { transform: translate(-50%, -50%) translate3d(0, 0, 0) rotate(-0.4deg); }
  50% { transform: translate(-50%, -50%) translate3d(0, -9px, 0) rotate(0.5deg); }
}

@keyframes bubbleIn {
  from { opacity: 0; transform: scale(0.72); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes liked {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.08); }
  65% { transform: scale(0.98); }
}

/* ---------- empty / loading ---------- */

.empty-state {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 55vh;
  padding: 50px 16px 40px;
  text-align: center;
  animation: rise 0.6s ease both;
}

.empty-orb {
  position: relative;
  width: 108px;
  height: 108px;
  margin-bottom: 26px;
  border: 1px solid rgba(169, 245, 211, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 27%, rgba(213, 255, 238, 0.24), transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(43, 107, 89, 0.15), transparent 68%);
  box-shadow: inset 0 0 40px rgba(169, 245, 211, 0.08), 0 0 70px rgba(62, 167, 132, 0.08);
  animation: emptyFloat 7s ease-in-out infinite;
}

.empty-orb::before,
.empty-orb::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(169, 245, 211, 0.12);
  border-radius: 50%;
}

.empty-orb::before { inset: -18px; }
.empty-orb::after { inset: -36px; opacity: 0.55; }

.empty-orb span {
  position: absolute;
  inset: 35%;
  border-radius: 50%;
  background: rgba(169, 245, 211, 0.11);
  filter: blur(4px);
}

.empty-kicker {
  margin: 0 0 10px;
  color: var(--mint);
  font-size: 10px;
  letter-spacing: 0.22em;
}

.empty-state h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.empty-state > p:not(.empty-kicker) {
  max-width: 340px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.text-button {
  margin-top: 22px;
  padding: 10px 0;
  color: var(--mint-bright);
  border-bottom: 1px solid rgba(169, 245, 211, 0.35);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.text-button:hover {
  border-color: var(--mint);
}

@keyframes emptyFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

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

.gate {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 28px 24px calc(36px + var(--safe-bottom));
  text-align: center;
  animation: rise 0.8s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.gate__orb {
  position: relative;
  width: clamp(138px, 30vw, 190px);
  height: clamp(138px, 30vw, 190px);
  margin-bottom: 30px;
}

.gate__core {
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(225, 255, 245, 0.85), transparent 18%),
    radial-gradient(circle at 48% 48%, rgba(129, 241, 201, 0.38), rgba(27, 79, 64, 0.32) 62%, transparent 70%);
  border: 1px solid rgba(202, 255, 237, 0.42);
  box-shadow:
    inset 0 0 28px rgba(169, 245, 211, 0.22),
    0 0 50px rgba(77, 199, 158, 0.16);
  animation: coreBreathe 4.5s ease-in-out infinite;
}

.gate__ring {
  position: absolute;
  border: 1px solid rgba(169, 245, 211, 0.15);
  border-radius: 50%;
}

.gate__ring--one {
  inset: 12%;
  animation: ringPulse 4.2s ease-out infinite;
}

.gate__ring--two {
  inset: 0;
  animation: ringPulse 4.2s 1.4s ease-out infinite;
}

.gate__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px;
  border-radius: 50%;
  background: var(--mint-bright);
  box-shadow: 0 0 0 5px rgba(169, 245, 211, 0.1), 0 0 22px rgba(169, 245, 211, 0.8);
}

.gate__kicker {
  margin: 0 0 15px;
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.36em;
}

.gate h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 8vw, 62px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.gate__copy {
  max-width: 390px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}

.gate__error {
  max-width: 390px;
  margin: 16px 0 0;
  padding: 9px 14px;
  border: 1px solid rgba(255, 156, 148, 0.2);
  border-radius: 10px;
  background: rgba(255, 156, 148, 0.07);
  color: #ffc2bc;
  font-size: 11px;
  line-height: 1.6;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 240px;
  margin-top: 28px;
  padding: 15px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #caffea, #8fe9c6);
  color: #07211a;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 34px rgba(91, 208, 166, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 42px rgba(91, 208, 166, 0.26);
  filter: brightness(1.03);
}

.primary-button:active {
  transform: translateY(0) scale(0.99);
}

.primary-button[disabled] {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.primary-button__icon {
  font-size: 15px;
}

.ghost-button {
  margin-top: 14px;
  padding: 8px;
  color: var(--muted);
  font-size: 11px;
  text-decoration: underline;
  text-decoration-color: rgba(147, 172, 163, 0.35);
  text-underline-offset: 4px;
}

.ghost-button:hover {
  color: var(--ink);
}

.gate__privacy {
  margin: 20px 0 0;
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.loading-state {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: rgba(4, 13, 11, 0.55);
  backdrop-filter: blur(8px);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.radar {
  position: relative;
  width: 94px;
  height: 94px;
  border: 1px solid rgba(169, 245, 211, 0.16);
  border-radius: 50%;
}

.radar::before {
  content: "";
  position: absolute;
  inset: 34px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 18px rgba(169, 245, 211, 0.8);
  animation: pulseDot 2s ease-out infinite;
}

.radar span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(169, 245, 211, 0.12);
  border-radius: 50%;
  animation: radarWave 3s ease-out infinite;
}

.radar span:nth-child(2) { animation-delay: 1s; }
.radar span:nth-child(3) { animation-delay: 2s; }

@keyframes radarWave {
  0% { transform: scale(0.28); opacity: 0; }
  20% { opacity: 0.8; }
  100% { transform: scale(1.18); opacity: 0; }
}

@keyframes coreBreathe {
  0%, 100% { transform: scale(0.94); opacity: 0.8; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes ringPulse {
  0% { transform: scale(0.9); opacity: 0; }
  30% { opacity: 0.9; }
  100% { transform: scale(1.1); opacity: 0; }
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(169, 245, 211, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(169, 245, 211, 0); }
  100% { box-shadow: 0 0 0 0 rgba(169, 245, 211, 0); }
}

/* ---------- action bar ---------- */

.actionbar {
  position: relative;
  z-index: 8;
  flex: 0 0 auto;
  padding: 8px clamp(18px, 4.6vw, 60px) calc(10px + var(--safe-bottom));
  background: linear-gradient(to top, rgba(3, 10, 9, 0.98) 35%, rgba(3, 10, 9, 0.75) 72%, transparent);
}

.actionbar::before {
  content: "";
  position: absolute;
  inset: -46px 0 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(3, 10, 9, 0.92), transparent);
}

.my-status {
  width: 100%;
  max-width: 560px;
  margin: 0 auto 8px;
  padding: 11px 15px 12px;
  border: 1px solid rgba(169, 245, 211, 0.17);
  border-radius: 16px;
  background: rgba(9, 27, 23, 0.78);
  backdrop-filter: blur(16px);
  animation: rise 0.4s ease both;
  cursor: pointer;
}

.my-status[role="button"]:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.my-status__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.my-status__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #b8d6ca;
  font-size: 10px;
  letter-spacing: 0.02em;
}

.my-status__timer {
  color: var(--mint);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.my-status__track {
  height: 2px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(169, 245, 211, 0.1);
}

.my-status__track span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #68cfa9, #d7ffed);
  box-shadow: 0 0 10px rgba(169, 245, 211, 0.35);
  transition: width 1s linear;
}

.compose-button {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  max-width: 560px;
  min-height: 64px;
  margin: 0 auto;
  padding: 11px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ccffec 0%, #9befca 62%, #8be4c3 100%);
  color: #082019;
  text-align: left;
  box-shadow:
    0 10px 30px rgba(84, 198, 158, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.compose-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 38px rgba(84, 198, 158, 0.24);
  filter: saturate(1.06);
}

.compose-button:active {
  transform: scale(0.992);
}

.compose-button[disabled] {
  background: rgba(16, 38, 32, 0.9);
  border: 1px solid var(--line);
  color: var(--muted);
  box-shadow: none;
  cursor: default;
  transform: none;
}

.compose-button__plus {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(6, 29, 22, 0.13);
  font-size: 19px;
  font-weight: 300;
}

.compose-button[disabled] .compose-button__plus {
  background: rgba(169, 245, 211, 0.06);
  color: var(--mint);
}

.compose-button__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.compose-button__text strong {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.compose-button__text small {
  color: rgba(8, 32, 25, 0.58);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.compose-button[disabled] .compose-button__text small {
  color: var(--muted-2);
}

.compose-button__arrow {
  margin-left: auto;
  font-size: 17px;
  opacity: 0.55;
}

.actionbar__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 6px 0 0;
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.connection-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mint);
  opacity: 0.75;
}

.connection-dot.is-offline {
  background: var(--danger);
  opacity: 1;
}

/* ---------- sheet ---------- */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(1, 6, 5, 0.66);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.scrim.is-open {
  opacity: 1;
}

.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 40;
  width: min(100%, 620px);
  max-height: 88dvh;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(30, 75, 63, 0.3), transparent 55%),
    #081714;
  box-shadow: 0 -24px 80px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, 102%);
  transition: transform 0.34s cubic-bezier(0.2, 0.9, 0.2, 1);
  overflow: hidden;
}

.sheet.is-open {
  transform: translate(-50%, 0);
}

.sheet__grab {
  display: flex;
  justify-content: center;
  padding: 10px 0 2px;
}

.sheet__grab span {
  width: 36px;
  height: 3px;
  border-radius: 3px;
  background: rgba(220, 255, 241, 0.18);
}

.sheet__content {
  max-height: calc(88dvh - 18px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 22px calc(26px + var(--safe-bottom));
  scrollbar-width: thin;
  scrollbar-color: rgba(169, 245, 211, 0.2) transparent;
}

.sheet__content::-webkit-scrollbar {
  width: 4px;
}

.sheet__content::-webkit-scrollbar-thumb {
  background: rgba(169, 245, 211, 0.2);
  border-radius: 4px;
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.sheet-head h2 {
  margin: 3px 0 0;
  font-family: var(--font-display);
  font-size: clamp(23px, 5vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.sheet-head__eyebrow {
  margin: 0;
  color: var(--mint);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.sheet-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.sheet-close:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

/* detail */

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

.mood-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid hsla(var(--hue, 174), 80%, 80%, 0.2);
  border-radius: 999px;
  background: hsla(var(--hue, 174), 70%, 60%, 0.07);
  color: hsla(var(--hue, 174), 90%, 87%, 0.9);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.detail__timer {
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

.detail__timer.is-urgent {
  color: var(--peach);
}

.detail__content {
  margin: 0;
  color: #f0fcf6;
  font-family: var(--font-display);
  font-size: clamp(21px, 4.6vw, 28px);
  line-height: 1.65;
  letter-spacing: 0.01em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.detail__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 24px;
}

.stat {
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.018);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.stat span {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.detail__extension {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.detail__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.like-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 214, 183, 0.24);
  border-radius: 999px;
  background: rgba(255, 214, 183, 0.07);
  color: var(--peach);
  font-size: 11px;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.like-button:hover {
  background: rgba(255, 214, 183, 0.12);
  border-color: rgba(255, 214, 183, 0.4);
}

.like-button:active {
  transform: scale(0.97);
}

.like-button[disabled] {
  opacity: 0.45;
  cursor: default;
}

.like-button .heart {
  font-size: 15px;
  line-height: 1;
}

.report-link {
  margin-left: auto;
  padding: 8px;
  color: var(--muted-2);
  font-size: 9px;
  text-decoration: underline;
  text-decoration-color: rgba(147, 172, 163, 0.3);
  text-underline-offset: 3px;
}

.report-link:hover {
  color: var(--muted);
}

.owner-note {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid rgba(169, 245, 211, 0.16);
  border-radius: 12px;
  background: rgba(169, 245, 211, 0.04);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.owner-note strong {
  color: var(--mint);
  font-weight: 500;
}

.echoes {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.echoes__head {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 12px;
}

.echoes__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
}

.echoes__head span {
  color: var(--muted-2);
  font-size: 10px;
}

.echo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.echo {
  padding: 11px 13px;
  border: 1px solid rgba(220, 255, 241, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
}

.echo__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.echo__meta .mine {
  color: var(--mint);
}

.echo__text {
  margin: 0;
  color: #d9ece4;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.echo-empty {
  margin: 0 0 16px;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.7;
}

.echo-report {
  margin-left: auto;
  padding: 1px 2px;
  color: var(--muted-2);
  font-size: 8px;
  text-decoration: underline;
  text-decoration-color: rgba(147, 172, 163, 0.25);
  text-underline-offset: 2px;
}

.echo-report:hover {
  color: var(--muted);
}

.sheet-body {
  padding-bottom: 4px;
}

.sheet-copy {
  margin: -8px 0 20px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.sheet-retry {
  margin-top: 18px;
}

.gone-close {
  margin-top: 22px;
}

.info-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.info-actions .ghost-button {
  margin: 0;
  padding: 4px 0;
}

.echo-form {
  margin-top: 16px;
}

.echo-form textarea,
.compose-form textarea {
  display: block;
  width: 100%;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(3, 12, 10, 0.55);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.echo-form textarea {
  min-height: 76px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.65;
}

.echo-form textarea::placeholder,
.compose-form textarea::placeholder {
  color: rgba(147, 172, 163, 0.55);
}

.echo-form textarea:focus,
.compose-form textarea:focus {
  border-color: rgba(169, 245, 211, 0.38);
  background: rgba(4, 16, 13, 0.75);
}

.echo-form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
}

.echo-form__foot span {
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.small-button {
  min-height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--mint);
  color: #082019;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.small-button:hover {
  filter: brightness(1.04);
}

.small-button:active {
  transform: scale(0.97);
}

.small-button[disabled] {
  opacity: 0.5;
  cursor: wait;
}

/* compose */

.compose-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compose-form textarea {
  min-height: 148px;
  padding: 16px;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.65;
}

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

.compose-meta span {
  color: var(--muted-2);
  font-size: 9px;
}

.char-count {
  font-variant-numeric: tabular-nums;
}

.char-count.is-near {
  color: var(--peach);
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: -7px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mood-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mood-option {
  --hue: 174;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.mood-option:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.mood-option.is-selected {
  border-color: hsla(var(--hue), 80%, 80%, 0.42);
  background: hsla(var(--hue), 70%, 60%, 0.12);
  color: hsla(var(--hue), 90%, 89%, 0.95);
}

.mood-option__glyph {
  font-size: 11px;
}

.compose-note {
  padding: 13px 14px;
  border: 1px solid rgba(169, 245, 211, 0.12);
  border-radius: 12px;
  background: rgba(169, 245, 211, 0.028);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.8;
}

.compose-note strong {
  color: #c0dcd1;
  font-weight: 500;
}

.compose-location {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-2);
  font-size: 9px;
}

.compose-location::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px rgba(169, 245, 211, 0.6);
}

.publish-button {
  min-height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #d2ffef, #91ebc8);
  color: #07211a;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 30px rgba(84, 198, 158, 0.14);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.publish-button:hover {
  filter: brightness(1.03);
}

.publish-button:active {
  transform: scale(0.99);
}

.publish-button[disabled] {
  opacity: 0.5;
  cursor: wait;
}

.form-error {
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(255, 156, 148, 0.18);
  border-radius: 9px;
  background: rgba(255, 156, 148, 0.06);
  color: #ffc2bc;
  font-size: 10px;
  line-height: 1.6;
}

/* 后台实名核验面板：前台仍不展示任何身份 */

.verify-form {
  margin-top: 6px;
}

.verify-input {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(3, 12, 10, 0.55);
  color: var(--ink);
  outline: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.verify-input:focus {
  border-color: rgba(169, 245, 211, 0.38);
  background: rgba(4, 16, 13, 0.75);
}

.verify-input::placeholder {
  color: rgba(147, 172, 163, 0.55);
  letter-spacing: 0.02em;
}

.verify-row {
  display: flex;
  gap: 8px;
  margin-top: 9px;
}

.verify-row .verify-input {
  flex: 1;
  min-width: 0;
}

.verify-row .small-button {
  white-space: nowrap;
}

.verify-hint,
.verify-note {
  margin: 10px 0 0;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.7;
}

.verify-note {
  padding-top: 10px;
  border-top: 1px solid rgba(147, 172, 163, 0.12);
}

.verify-devcode {
  margin: 9px 0 0;
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(169, 245, 211, 0.08);
  color: var(--mint);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.verify-form .form-error {
  margin-top: 10px;
}

.verify-form .publish-button {
  width: 100%;
  margin-top: 16px;
}

/* report */

.report-reasons {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 4px 0 14px;
}

.reason-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  font-size: 11px;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.reason-option::before {
  content: "";
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.reason-option.is-selected {
  border-color: rgba(169, 245, 211, 0.35);
  background: rgba(169, 245, 211, 0.06);
  color: var(--ink);
}

.reason-option.is-selected::before {
  border: 4px solid var(--mint);
  background: #082019;
}

.report-note {
  width: 100%;
  min-height: 62px;
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(3, 12, 10, 0.55);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.6;
  resize: none;
  outline: none;
}

.report-note:focus {
  border-color: rgba(169, 245, 211, 0.35);
}

.report-submit {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 156, 148, 0.25);
  border-radius: 13px;
  background: rgba(255, 156, 148, 0.08);
  color: #ffc2bc;
  font-size: 11px;
  letter-spacing: 0.03em;
}

.report-submit:hover {
  background: rgba(255, 156, 148, 0.13);
}

.report-submit[disabled] {
  opacity: 0.5;
  cursor: wait;
}

/* info / rules */

.info-hero {
  margin: 8px 0 22px;
  padding: 18px;
  border: 1px solid rgba(169, 245, 211, 0.13);
  border-radius: 16px;
  background:
    radial-gradient(90% 100% at 0% 0%, rgba(169, 245, 211, 0.08), transparent 60%),
    rgba(255, 255, 255, 0.015);
}

.info-hero p {
  margin: 0;
  color: #d6e9e1;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.7;
}

.rules {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rule {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(220, 255, 241, 0.06);
}

.rule:last-child {
  border-bottom: 0;
}

.rule__num {
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.rule strong {
  display: block;
  margin-bottom: 3px;
  color: #d9ebe3;
  font-size: 11px;
  font-weight: 500;
}

.rule p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.75;
}

.info-foot {
  margin: 18px 0 0;
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

/* gone */

.gone-state {
  padding: 28px 4px 16px;
  text-align: center;
}

.gone-state__orb {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border: 1px solid rgba(220, 255, 241, 0.12);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 32%, rgba(220, 255, 241, 0.12), transparent 50%);
  animation: bubbleIn 0.5s ease both;
}

.gone-state h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
}

.gone-state p {
  max-width: 300px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

/* toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(102px + var(--safe-bottom));
  z-index: 60;
  max-width: min(86vw, 420px);
  padding: 10px 16px;
  border: 1px solid rgba(169, 245, 211, 0.18);
  border-radius: 999px;
  background: rgba(8, 28, 23, 0.94);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
  color: #d8eee5;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
  transform: translate(-50%, 8px);
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
  pointer-events: none;
}

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

.toast.is-error {
  border-color: rgba(255, 156, 148, 0.28);
  color: #ffc7c1;
}

/* floating reward */

.reward {
  position: fixed;
  z-index: 70;
  color: var(--mint);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  animation: rewardUp 1.25s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes rewardUp {
  from { opacity: 1; transform: translate(-50%, 0); }
  to { opacity: 0; transform: translate(-50%, -46px); }
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 30px;
  background: var(--bg);
  color: var(--ink);
  text-align: center;
  font-size: 13px;
}

/* ---------- responsive ---------- */

@media (min-width: 720px) {
  .topbar {
    padding: 22px 4.8vw 12px;
  }

  .actionbar {
    padding-bottom: calc(14px + var(--safe-bottom));
  }

  .gate__copy {
    font-size: 13px;
  }

  .bubble {
    cursor: pointer;
  }

  .sheet {
    bottom: 18px;
    border-radius: 26px;
    max-height: min(86dvh, 880px);
  }

  .sheet.is-open {
    transform: translate(-50%, 0);
  }
}

@media (max-width: 380px) {
  .topbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand__word small {
    display: none;
  }

  .stage-heading h1 {
    font-size: 31px;
  }

  .gate h1 {
    font-size: 36px;
  }

  .gate__orb {
    margin-bottom: 20px;
  }

  .sheet__content {
    padding-left: 17px;
    padding-right: 17px;
  }
}

@media (min-width: 1100px) {
  .stage-heading {
    padding-top: 3vh;
  }

  .bubble-layer {
    min-height: 58vh;
  }

  .gate {
    justify-content: center;
  }

  .gate__orb {
    margin-bottom: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .bubble {
    animation: none;
  }
}

/* ---------- 年龄 / 协议 / 位置单独同意 ---------- */

.gate__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 14px;
}

.gate__links a {
  color: var(--mint);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-form .sheet-copy {
  margin-bottom: 10px;
}

.consent-row {
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  gap: 10px;
  line-height: 1.5;
  margin: 8px 0;
  padding: 12px 13px;
}

.consent-row span {
  color: var(--ink);
  font-size: 13px;
}

.consent-checkbox {
  accent-color: var(--mint);
  flex: 0 0 auto;
  height: 17px;
  margin-top: 2px;
  width: 17px;
}

.consent-row a {
  color: var(--mint-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.location-notice {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.location-notice li {
  border-left: 2px solid var(--mint);
  padding-left: 12px;
}

.location-notice strong {
  color: var(--mint-bright);
  font-size: 13px;
}

.location-notice p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 4px 0 0;
}

.verify-wechat {
  margin-top: 12px;
  width: 100%;
}

.mute-link {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  padding: 8px 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mute-link:hover {
  color: var(--ink);
}

/* ---------- 申诉与结果告知 ---------- */

.case-notices,
.case-list,
.case-mutes {
  display: grid;
  gap: 10px;
  margin: 10px 0 18px;
}

.case-notice,
.case-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
}

.case-notice.is-unread {
  border-color: var(--mint);
}

.case-notice strong,
.case-card__head {
  color: var(--mint-bright);
  font-size: 13px;
}

.case-notice p,
.case-card__meta,
.case-card__result {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 5px 0 0;
}

.case-card__head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.case-card__content {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
  margin: 8px 0 0;
  word-break: break-word;
}

.case-card .small-button {
  margin-top: 10px;
}

.case-mutes h3,
.case-list h3 {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin: 6px 0;
  text-transform: uppercase;
}

@media (max-width: 420px) {
  .consent-actions .publish-button,
  .consent-actions .ghost-button {
    flex: 1 1 100%;
  }
}
