/* ============================================================
   components.css — panels, buttons, cards, modals, forms
   ============================================================ */

/* ---------------- panel ---------------- */
.panel {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-panel);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

/* ---------------- buttons ---------------- */
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--text-2);
  background: rgba(12, 18, 30, 0.42);
  border: 1px solid var(--stroke);
  backdrop-filter: var(--blur);
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.icon-btn:hover { color: var(--text); background: rgba(30, 44, 70, 0.6); border-color: var(--stroke-strong); }
.icon-btn:active { transform: scale(0.95); }
.icon-btn[aria-pressed="true"], .icon-btn.is-on { color: var(--accent); border-color: rgba(109, 179, 238, 0.42); background: rgba(44, 92, 148, 0.34); }
.icon-btn.sm { width: 30px; height: 30px; border-radius: 9px; }
.icon-btn.sm .icon { width: 16px; height: 16px; }
.lang-btn { width: auto; padding: 0 12px; font-size: 12px; letter-spacing: 0.04em; }

.ghost-btn, .primary-btn, .danger-btn, .link-btn, .chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all var(--t-fast) var(--ease);
  white-space: nowrap;
}
.ghost-btn {
  color: var(--text-2);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
}
.ghost-btn:hover { color: var(--text); border-color: var(--stroke-strong); background: var(--fill-hover); }
.ghost-btn.sm { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 9px; }

.primary-btn {
  color: #f3faff;
  background: linear-gradient(135deg, #7cc0f2, #3f7fd6 60%, #3566b6);
  box-shadow: 0 12px 28px -12px rgba(63, 127, 214, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}
.primary-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.primary-btn:disabled { opacity: 0.45; filter: none; transform: none; cursor: not-allowed; }
.danger-btn { color: #ffe9e9; background: rgba(190, 66, 66, 0.24); border: 1px solid rgba(239, 129, 129, 0.4); }
.danger-btn:hover { background: rgba(190, 66, 66, 0.36); }
.link-btn { height: auto; padding: 0; color: var(--accent); font-size: 12px; }
.link-btn:hover { text-decoration: underline; }

.chip-btn {
  height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 11.5px;
  color: var(--text-2);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
}
.chip-btn:hover { color: var(--text); background: var(--fill-hover); }
.chip-btn .chev { opacity: 0.5; }

/* ---------------- popover / menu ---------------- */
.popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  min-width: 232px;
  padding: 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: var(--panel-strong);
  box-shadow: var(--shadow-pop);
  backdrop-filter: var(--blur);
  animation: pop-in 0.2s var(--ease) both;
}
.popover[hidden] { display: none; }
.lang-popover { min-width: 168px; }
.sort-popover { min-width: 152px; top: calc(100% + 6px); }

.menu-section + .menu-section { border-top: 1px solid var(--stroke); margin-top: 6px; padding-top: 6px; }
.menu-label {
  padding: 8px 10px 5px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 12.5px;
  color: var(--text-2);
  text-align: left;
  transition: background var(--t-fast), color var(--t-fast);
}
.menu-item:hover { background: var(--fill-hover); color: var(--text); }
.menu-item .icon { width: 17px; height: 17px; opacity: 0.75; }
.menu-item .icon.tick { opacity: 0; margin-left: auto; }
.menu-item.is-active .icon.tick { opacity: 1; }
.menu-item .switch, .menu-item .menu-value { margin-left: auto; }
.menu-value { font-size: 11.5px; color: var(--text-3); }

.switch {
  position: relative;
  width: 30px;
  height: 17px;
  border-radius: 999px;
  background: rgba(120, 140, 168, 0.28);
  transition: background var(--t-fast) var(--ease);
  flex: none;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #cfd9e6;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast);
}
.switch.on { background: rgba(79, 143, 224, 0.7); }
.switch.on::after { transform: translateX(13px); background: #fff; }

/* ---------------- equalizer (music playing) ---------------- */
.eq { display: none; align-items: flex-end; gap: 2px; height: 12px; margin-left: 2px; }
.eq i {
  display: block;
  width: 2px;
  height: 100%;
  border-radius: 2px;
  background: currentColor;
  transform-origin: bottom;
  animation: eq-bar 0.9s ease-in-out infinite;
}
.eq i:nth-child(2) { animation-delay: 0.18s; }
.eq i:nth-child(3) { animation-delay: 0.36s; }
.icon-btn.is-on .eq { display: inline-flex; }

/* ---------------- mood chips ---------------- */
.mood-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 2px 6px;
  border-radius: 11px;
  border: 1px solid transparent;
  color: var(--text-3);
  transition: all var(--t-fast) var(--ease);
  min-width: 0;
}
.mood-chip:hover { color: var(--text-2); background: var(--fill); transform: translateY(-1px); }
.mood-emoji { font-size: 17px; line-height: 1.15; filter: grayscale(0.35) opacity(0.82); transition: filter var(--t-fast); }
.mood-name { font-size: 10.5px; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mood-chip:hover .mood-emoji { filter: none; }
.mood-chip.is-active {
  color: #eaf5ff;
  border-color: color-mix(in srgb, var(--mood, var(--accent)) 42%, transparent);
  background: color-mix(in srgb, var(--mood, var(--accent)) 12%, transparent);
  box-shadow: 0 0 18px -9px var(--mood, var(--accent));
}
.mood-chip.is-active .mood-emoji { filter: none; transform: scale(1.08); }
.mood-chip.is-active .mood-name { color: #f2f8ff; }

/* ---------------- hot cards ---------------- */
.hot-card {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 11px;
  width: 100%;
  padding: 12px 12px 11px;
  border-radius: 13px;
  border: 1px solid transparent;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.hot-card + .hot-card { margin-top: 2px; }
.hot-card:hover { background: rgba(255, 255, 255, 0.045); border-color: var(--stroke); transform: translateY(-1px); }
.hot-card:focus-visible { outline-offset: -1px; }
.hot-emoji {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-size: 17px;
  line-height: 1;
  background: color-mix(in srgb, var(--mood, #6db3ee) 16%, rgba(255, 255, 255, 0.03));
  border: 1px solid color-mix(in srgb, var(--mood, #6db3ee) 30%, transparent);
}
.hot-main { min-width: 0; }
.hot-top { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; }
.hot-nick {
  font-size: 11.5px;
  color: #c9d8ea;
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hot-place { font-size: 10.5px; color: var(--text-3); display: inline-flex; align-items: center; gap: 3px; }
.hot-place .icon { width: 11px; height: 11px; }
.hot-time { margin-left: auto; font-size: 10px; color: rgba(120, 140, 164, 0.8); white-space: nowrap; }
.hot-text {
  font-size: 12.5px;
  line-height: 1.62;
  color: #d7e3f2;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.hot-foot { display: flex; align-items: center; gap: 12px; margin-top: 7px; }
.hot-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.hot-stat .icon { width: 12px; height: 12px; }
.hot-stat.is-liked { color: var(--like); }
.hot-tag {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--mood, var(--accent)) 85%, white);
}

/* skeleton */
.skel {
  height: 100px;
  margin: 4px 0;
  border-radius: 13px;
  border: 1px solid var(--stroke);
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.03) 20%, rgba(255, 255, 255, 0.075) 38%, rgba(255, 255, 255, 0.03) 56%);
  background-size: 220% 100%;
  animation: shimmer 1.6s linear infinite;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 34px 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 12.5px;
  line-height: 1.7;
}
.empty .empty-orb {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(160, 215, 245, 0.5), rgba(60, 110, 160, 0.12) 65%, transparent 72%);
  border: 1px solid var(--stroke);
}

/* ---------------- modal ---------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 88;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 50% 40%, rgba(6, 12, 22, 0.72), rgba(2, 4, 8, 0.9));
  backdrop-filter: blur(10px) saturate(120%);
  animation: fade-in 0.25s var(--ease) both;
}
.modal-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 620px);
  max-height: min(88vh, 900px);
  border-radius: 24px;
  border: 1px solid rgba(160, 190, 230, 0.16);
  background: linear-gradient(180deg, rgba(20, 29, 47, 0.96), rgba(11, 17, 29, 0.97));
  box-shadow: 0 46px 120px -40px rgba(0, 0, 0, 0.95), 0 1px 0 0 rgba(255, 255, 255, 0.07) inset;
  overflow: hidden;
  animation: pop-in 0.32s var(--ease-out) both;
}
.modal-panel:focus { outline: none; }
.modal-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 180px;
  background: radial-gradient(120% 100% at 20% 0%, rgba(90, 150, 220, 0.16), transparent 70%);
  pointer-events: none;
}
.modal.is-closing .modal-panel { animation: fade-in 0.16s var(--ease) reverse both; }
.modal.is-closing .modal-backdrop { animation: fade-in 0.16s var(--ease) reverse both; }

.modal-panel.sm { width: min(100%, 440px); }
.modal-panel.md { width: min(100%, 620px); }
.modal-panel.lg { width: min(100%, 720px); }
.modal-panel.xl { width: min(100%, 880px); }

.modal-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 22px 14px;
  flex: none;
}
.modal-title { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.modal-title h2 { font-size: 17px; font-weight: 600; letter-spacing: 0.02em; }
.modal-title p { font-size: 11.5px; color: var(--text-3); }
.modal-close { margin-left: auto; flex: none; }

.modal-body {
  position: relative;
  padding: 0 22px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
}
.modal-foot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid var(--stroke);
  background: rgba(8, 13, 22, 0.55);
}
.modal-foot .grow { flex: 1; }
.modal-foot .hint { font-size: 11px; color: var(--text-3); }

/* ---------------- forms ---------------- */
.field { margin-bottom: 16px; }
.field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  text-transform: uppercase;
}
.field-label .req { color: var(--danger); }
.field-row { display: flex; align-items: center; gap: 10px; }

.input-row { display: flex; align-items: center; gap: 8px; }
.input-row .input { flex: 1; }
.dice-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.03);
  transition: all var(--t-fast) var(--ease);
}
.dice-btn:hover { color: var(--accent); border-color: rgba(109, 179, 238, 0.5); background: rgba(109, 179, 238, 0.08); transform: rotate(-8deg); }
.dice-btn:active { transform: scale(0.94); }
.dice-btn .icon { width: 20px; height: 20px; }

.input, .textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(6, 10, 18, 0.55);
  color: var(--text);
  font-size: 13.5px;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.input::placeholder, .textarea::placeholder { color: rgba(120, 140, 164, 0.65); }
.input:focus, .textarea:focus {
  border-color: rgba(109, 179, 238, 0.55);
  background: rgba(8, 14, 24, 0.75);
  box-shadow: 0 0 0 3px rgba(109, 179, 238, 0.12);
  outline: none;
}
.textarea { min-height: 122px; resize: vertical; line-height: 1.7; }
.input.invalid, .textarea.invalid { border-color: rgba(239, 129, 129, 0.6); }
.field-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.counter { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.counter.warn { color: var(--warm); }
.counter.over { color: var(--danger); }
.field-note { font-size: 11px; color: var(--text-3); }

.mood-pick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 5px;
  max-height: 268px;
  overflow-y: auto;
  padding: 4px;
  border-radius: 13px;
  border: 1px solid var(--stroke);
  background: rgba(6, 10, 18, 0.4);
}

.mood-pick.compact {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  max-height: 330px;
}
.publish-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: 0 20px;
}
.publish-col { min-width: 0; }
@media (max-width: 760px) {
  .publish-grid { grid-template-columns: minmax(0, 1fr); }
  .mood-pick.compact { max-height: none; }
}

.emoji-strip { display: flex; flex-wrap: wrap; gap: 3px; }
.emoji-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 17px;
  transition: background var(--t-fast), transform var(--t-fast);
}
.emoji-btn:hover { background: var(--fill-hover); transform: scale(1.12); }

.uploader { display: flex; flex-wrap: wrap; gap: 8px; }
.upload-tile, .thumb {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 12px;
  overflow: hidden;
  flex: none;
}
.upload-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px dashed var(--stroke-strong);
  color: var(--text-3);
  font-size: 9.5px;
  cursor: pointer;
  transition: all var(--t-fast);
}
.upload-tile:hover { color: var(--accent); border-color: rgba(109, 179, 238, 0.55); background: rgba(109, 179, 238, 0.06); }
.upload-tile .icon { width: 18px; height: 18px; }
.thumb { border: 1px solid var(--stroke); background: #0a0f19; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-x {
  position: absolute;
  top: 3px;
  right: 3px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
}
.thumb-x .icon { width: 12px; height: 12px; }

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.6;
  cursor: pointer;
}
.check-line input { margin-top: 3px; accent-color: var(--accent); }

/* ---------------- toast ---------------- */
.toast-host {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 99;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: min(92vw, 420px);
}
.toast {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  color: #eef6ff;
  background: rgba(18, 27, 44, 0.94);
  border: 1px solid var(--stroke-strong);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8);
  backdrop-filter: var(--blur);
  animation: fade-up 0.26s var(--ease) both;
  pointer-events: auto;
  text-align: center;
}
.toast.is-error { border-color: rgba(239, 129, 129, 0.45); color: #ffecec; }
.toast.is-out { animation: fade-in 0.2s var(--ease) reverse both; }

/* ---------------- detail ---------------- */
.detail-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.detail-orb {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 22px;
  background: color-mix(in srgb, var(--mood, var(--accent)) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--mood, var(--accent)) 32%, transparent);
  flex: none;
}
.detail-who { min-width: 0; }
.detail-who b { display: block; font-size: 13px; font-weight: 550; }
.detail-who span { font-size: 11px; color: var(--text-3); display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.detail-actions { margin-left: auto; display: flex; gap: 4px; }

.detail-content {
  margin: 18px 0 4px;
  font-size: 14.5px;
  line-height: 1.95;
  color: #e2ecf8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.detail-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.detail-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  cursor: zoom-in;
  transition: transform var(--t) var(--ease);
}
.detail-images img:hover { transform: scale(1.02); }

.detail-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0 12px;
  border-bottom: 1px solid var(--stroke);
  margin-bottom: 4px;
}
.detail-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 4px;
  padding: 10px 0;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}
.react-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-2);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--t-fast);
}
.react-btn:hover { color: var(--text); border-color: var(--stroke-strong); background: var(--fill); }
.react-btn.is-on { color: var(--like); border-color: rgba(255, 143, 160, 0.45); background: rgba(255, 143, 160, 0.1); }
.react-btn .icon { width: 15px; height: 15px; }
.react-btn.static { pointer-events: none; opacity: 0.6; }

.comments { margin-top: 16px; }
.comments-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.comments-head h3 { font-size: 12.5px; letter-spacing: 0.08em; color: var(--text-2); }
.comments-head span { font-size: 11px; color: var(--text-3); }
.comment {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(150, 180, 222, 0.1);
}
.comment:last-child { border-bottom: 0; }
.comment-ava {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
}
.comment-body { min-width: 0; }
.comment-top { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.comment-top b { font-size: 11.5px; font-weight: 550; color: #cbd9e9; }
.comment-top time { font-size: 10px; color: var(--text-3); }
.comment-like {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--text-3);
  padding: 3px 7px;
  border-radius: 999px;
  transition: all var(--t-fast);
}
.comment-like:hover { color: var(--like); background: rgba(255, 143, 160, 0.08); }
.comment-like.is-on { color: var(--like); }
.comment-like .icon { width: 12px; height: 12px; }
.comment-text { font-size: 12.5px; line-height: 1.7; color: #cddae9; white-space: pre-wrap; overflow-wrap: anywhere; }

.comment-composer {
  position: sticky;
  bottom: -20px;
  margin: 14px -22px -20px;
  padding: 12px 22px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--stroke);
  background: rgba(10, 16, 27, 0.94);
  backdrop-filter: var(--blur);
}
.quick-reacts { display: flex; gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
.quick-react {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 15px;
  transition: background var(--t-fast), transform var(--t-fast);
}
.quick-react:hover { background: var(--fill-hover); transform: translateY(-1px) scale(1.08); }
.composer-row { display: flex; gap: 8px; align-items: flex-end; }
.composer-row .textarea { min-height: 42px; height: 42px; padding: 10px 13px; resize: none; border-radius: 999px; }
.composer-row .primary-btn { height: 42px; border-radius: 999px; padding: 0 18px; flex: none; }

/* ---------------- prose (about / terms / privacy) ---------------- */
.prose { font-size: 13px; line-height: 1.9; color: var(--text-2); }
.prose h3 {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 20px 0 8px;
}
.prose h3:first-child { margin-top: 0; }
.prose p { margin-bottom: 9px; }
.prose ul { margin: 4px 0 10px; padding-left: 2px; }
.prose li { position: relative; padding-left: 15px; margin-bottom: 5px; }
.prose li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}
.prose strong { color: #e8f2ff; font-weight: 550; }
.prose .contact-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  font-size: 11.5px;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--t-fast);
}
.contact-chip:hover { border-color: var(--stroke-strong); color: var(--text); background: var(--fill); }

/* ---------------- segmented tabs ---------------- */
.segmented {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(6, 10, 18, 0.55);
  border: 1px solid var(--stroke);
}
.segmented button {
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--text-3);
  transition: all var(--t-fast);
}
.segmented button:hover { color: var(--text-2); }
.segmented button.is-active { color: #eaf4ff; background: rgba(80, 130, 190, 0.34); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset; }

/* ---------------- bottle ---------------- */
.bottle-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 8px 0 0;
  text-align: center;
}
.bottle-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 32%, rgba(120, 200, 235, 0.22), rgba(20, 50, 80, 0.1) 62%, transparent 72%);
}
.bottle-visual::before, .bottle-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(120, 200, 235, 0.28);
  animation: ring-out 4.5s var(--ease) infinite;
}
.bottle-visual::after { animation-delay: 2.2s; }
.bottle-visual span { font-size: 38px; animation: float 6s ease-in-out infinite; }
.bottle-title { font-size: 15px; font-weight: 600; }
.bottle-sub { font-size: 11.5px; color: var(--text-3); }
.bottle-card {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: linear-gradient(160deg, rgba(80, 140, 200, 0.12), rgba(12, 18, 30, 0.6));
  text-align: left;
}
.bottle-card p { font-size: 13.5px; line-height: 1.85; color: #dbe8f6; white-space: pre-wrap; overflow-wrap: anywhere; }
.bottle-card .bottle-meta { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 10.5px; color: var(--text-3); }
.bottle-mood { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--fill); }
.bottle-actions { display: flex; gap: 8px; width: 100%; }
.bottle-actions > * { flex: 1; }
.bottle-list { display: flex; flex-direction: column; gap: 8px; }
.bottle-item {
  padding: 12px 14px;
  border-radius: 13px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.025);
}
.bottle-item p { font-size: 12.5px; line-height: 1.7; color: #d5e2f1; white-space: pre-wrap; overflow-wrap: anywhere; }
.bottle-item .bottle-meta { margin-top: 8px; font-size: 10px; color: var(--text-3); display: flex; gap: 10px; }
.reply-item {
  margin: 8px 0 0 12px;
  padding-left: 10px;
  border-left: 1px solid rgba(109, 179, 238, 0.28);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-2);
}
.reply-item time { display: block; font-size: 9.5px; color: var(--text-3); margin-top: 2px; }

/* ---------------- matching room ---------------- */
.radar {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 6px auto 2px;
  border-radius: 50%;
  border: 1px solid rgba(109, 179, 238, 0.2);
  background: radial-gradient(circle, rgba(80, 140, 200, 0.16), transparent 68%);
  overflow: hidden;
}
.radar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, rgba(109, 179, 238, 0.4), transparent 28%);
  animation: spin 2.6s linear infinite;
}
.radar::after {
  content: "";
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  border: 1px solid rgba(150, 200, 240, 0.24);
}
.radar-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9bd7ff;
  box-shadow: 0 0 10px #7cc0f2;
  animation: live-pulse 2s var(--ease) infinite;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0 8px;
  min-height: 180px;
  max-height: 42vh;
  overflow-y: auto;
}
.bubble {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.65;
  background: rgba(255, 255, 255, 0.055);
  color: #dce8f6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  animation: fade-up 0.24s var(--ease) both;
}
.bubble.mine { align-self: flex-end; background: linear-gradient(135deg, rgba(88, 150, 220, 0.5), rgba(56, 106, 180, 0.42)); color: #f2f9ff; }
.bubble.system { align-self: center; background: none; color: var(--text-3); font-size: 11px; text-align: center; }
.chat-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.08em;
}
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.chat-peer { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.chat-peer .dot-ava { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #9bd7ff, #3b6f9e); }

/* ---------------- topic ---------------- */
.topic-hero {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(240, 178, 122, 0.22);
  background: linear-gradient(150deg, rgba(240, 178, 122, 0.12), rgba(20, 26, 40, 0.5));
  margin-bottom: 14px;
}
.topic-hero h3 { font-size: 16px; margin-bottom: 5px; }
.topic-hero p { font-size: 12px; color: var(--text-2); line-height: 1.75; }
.topic-post {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(150, 180, 222, 0.1);
}
.topic-post:last-child { border-bottom: 0; }
.topic-post .comment-ava { width: 26px; height: 26px; }
.topic-post p { font-size: 12.5px; line-height: 1.7; color: #d3e0ef; white-space: pre-wrap; overflow-wrap: anywhere; }
.topic-post .topic-meta { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--text-3); margin-top: 4px; }

/* ---------------- misc ---------------- */
.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: #eaf5ff;
  animation: spin 0.7s linear infinite;
  flex: none;
}
.badge-local {
  position: fixed;
  left: 30px;
  top: 88px;
  z-index: 19;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #ffd9a8;
  background: rgba(240, 178, 122, 0.12);
  border: 1px solid rgba(240, 178, 122, 0.3);
}
.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: grid;
  place-items: center;
  background: rgba(2, 4, 8, 0.92);
  backdrop-filter: blur(8px);
  padding: 4vw;
  animation: fade-in 0.2s var(--ease) both;
  cursor: zoom-out;
}
.image-viewer img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }

/* ---------------- globe decoration ---------------- */
.globe-aura {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(84, 172, 236, 0.2) 0%, rgba(70, 150, 220, 0.12) 36%, rgba(48, 118, 188, 0.04) 55%, transparent 70%);
  filter: blur(16px);
  transition: opacity 0.6s var(--ease);
}
.globe-tip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(9, 15, 25, 0.92);
  border: 1px solid var(--stroke-strong);
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.9);
  font-size: 11px;
  color: var(--text);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.16s var(--ease);
}
.globe-tip.is-on { opacity: 1; }
.globe-tip .tip-emoji { font-size: 13px; line-height: 1; }
.globe-tip .tip-count {
  padding: 0 5px;
  border-radius: 99px;
  font-family: var(--font-num);
  font-size: 10px;
  color: var(--tip, var(--accent));
  background: rgba(255, 255, 255, 0.07);
}

/* ---------------- polls ---------------- */
.poll-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.poll-globe-hint { font-size: 10px; color: var(--text-3); }
.poll-list { display: flex; flex-direction: column; gap: 12px; }
.poll-card {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.025);
}
.poll-top { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.poll-top h4 { font-size: 14px; line-height: 1.5; flex: 1; }
.poll-status {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  font-size: 9.5px;
  color: var(--text-3);
  white-space: nowrap;
}
.poll-status.is-open {
  color: var(--aurora);
  border-color: rgba(111, 227, 201, 0.35);
  background: rgba(111, 227, 201, 0.08);
}
.poll-options { display: flex; flex-direction: column; gap: 6px; }
.poll-option {
  width: 100%;
  padding: 9px 11px;
  border-radius: 11px;
  border: 1px solid var(--stroke);
  background: rgba(6, 10, 18, 0.35);
  text-align: left;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.poll-option:hover:not(:disabled) {
  border-color: rgba(109, 179, 238, 0.45);
  background: rgba(109, 179, 238, 0.07);
}
.poll-option:disabled { cursor: default; }
.poll-option.is-mine {
  border-color: rgba(111, 227, 201, 0.5);
  background: rgba(111, 227, 201, 0.08);
}
.poll-option-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 12.5px;
  color: #dbe7f4;
}
.poll-percent { font-family: var(--font-num); font-size: 11px; color: var(--text-3); }
.poll-bar { display: block; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.poll-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(109, 179, 238, 0.55), rgba(111, 227, 201, 0.85));
  transition: width 0.55s var(--ease);
}
.poll-option.is-mine .poll-bar i { background: linear-gradient(90deg, #6fe3c9, #b4f6e5); }
.poll-mine { display: block; margin-top: 6px; font-size: 9.5px; color: var(--aurora); }
.poll-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  font-size: 10px;
  color: var(--text-3);
}
.rank-block { margin-bottom: 18px; }
.rank-block h4 {
  margin-bottom: 8px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.rank-list { display: flex; flex-direction: column; gap: 6px; }
.rank-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.02);
}
.rank-no {
  width: 20px;
  flex: none;
  text-align: center;
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--text-3);
}
.rank-main { flex: 1; min-width: 0; }
.rank-title {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: #dbe6f3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-bar { display: block; height: 3px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: linear-gradient(90deg, #6db3ee, #6fe3c9); }
.rank-list b { flex: none; font-family: var(--font-num); font-size: 11px; font-weight: 500; color: var(--text-2); }
.poll-summary { margin-top: 8px; text-align: center; font-size: 10.5px; color: var(--text-3); }
.poll-option-inputs { display: flex; flex-direction: column; gap: 6px; }
/* ---------------- city story list ---------------- */
.city-list { display: flex; flex-direction: column; gap: 2px; }
.city-item { display: flex; gap: 10px; width: 100%; padding: 10px 8px; border-radius: 10px; text-align: left; }
.city-item + .city-item { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.city-item:hover { background: rgba(255, 255, 255, 0.045); }
.city-ava { flex: none; width: 26px; font-size: 18px; line-height: 1.2; text-align: center; }
.city-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.city-text {
  font-size: 12.5px;
  line-height: 1.55;
  color: #dfe8f2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.city-meta { font-size: 10px; color: var(--text-3); }
/* ---------------- v1.4 glass cards, animated dice, stat tick ---------------- */
.hot-card {
  border-color: rgba(255, 255, 255, 0.065);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012) 55%, rgba(255, 255, 255, 0.022));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 8px 22px -16px rgba(0, 0, 0, 0.9);
}
.hot-card + .hot-card { margin-top: 7px; }
.hot-card:hover {
  border-color: rgba(140, 190, 240, 0.28);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02));
}
.hot-emoji {
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0, 0, 0, 0.38);
}
.detail-images img { max-height: 240px; }

.tstat b.is-tick { animation: stat-pop 0.55s var(--ease); }
@keyframes stat-pop {
  0% { transform: translateY(0); color: var(--text); }
  40% { transform: translateY(-2px); color: var(--accent); }
  100% { transform: translateY(0); }
}

.dice-btn {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 9px 20px -9px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform-style: preserve-3d;
  animation: dice-float 5.5s ease-in-out infinite;
}
@keyframes dice-float {
  0%, 100% { transform: rotateX(7deg) rotateY(-10deg) translateY(0); }
  50% { transform: rotateX(-5deg) rotateY(12deg) translateY(-1px); }
}
.dice-btn:hover { animation-play-state: paused; transform: rotateX(0) rotateY(0) scale(1.06); }
.dice-btn.is-rolling { animation: dice-roll 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes dice-roll {
  0% { transform: rotateX(0) rotateY(0) scale(1); }
  45% { transform: rotateX(210deg) rotateY(170deg) scale(1.12); }
  100% { transform: rotateX(360deg) rotateY(360deg) scale(1); }
}
/* ================= v1.5 editorial polish ================= */
.hot-panel { width: 386px; }
.panel-head { padding: 16px 16px 10px; }
.hot-list { padding: 0 10px 8px; }
.hot-card {
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 13px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.014) 58%, rgba(255, 255, 255, 0.026));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 28px -22px rgba(0, 0, 0, 0.95);
}
.hot-card + .hot-card { margin-top: 9px; }
.hot-card:hover {
  transform: translateY(-2px);
  border-color: rgba(130, 180, 240, 0.32);
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.022));
  box-shadow: 0 18px 38px -24px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.hot-emoji {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04) 62%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 16px -8px rgba(0, 0, 0, 0.8);
}
.hot-top { display: flex; align-items: center; gap: 7px; }
.hot-nick { font-size: 12px; font-weight: 600; color: #e6eef9; }
.hot-place {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 9.5px;
  color: var(--text-3);
}
.hot-place .icon { width: 10px; height: 10px; }
.hot-time { margin-left: auto; font-size: 9.5px; color: var(--text-3); white-space: nowrap; }
.hot-text {
  margin: 8px 0 9px;
  font-size: 12.5px;
  line-height: 1.72;
  color: #d7e3f1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hot-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 9px;
  border-top: 1px dashed rgba(255, 255, 255, 0.075);
}
.hot-stat { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: var(--text-3); }
.hot-stat .icon { width: 12px; height: 12px; }
.hot-tag {
  margin-left: auto;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border: 1px solid color-mix(in srgb, var(--mood) 45%, transparent);
  background: rgba(255, 255, 255, 0.05);
  background: color-mix(in srgb, var(--mood) 14%, transparent);
  color: var(--mood);
  font-size: 9.5px;
}

/* poll mini */
.poll-mini {
  margin: 6px 12px 10px;
  padding: 12px 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.poll-mini-head { margin-bottom: 7px; }
.poll-mini-row { padding: 6px 4px; border-radius: 9px; gap: 9px; }
.poll-mini-rank {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  font-size: 9px;
}
.poll-mini-row:nth-child(1) .poll-mini-rank { background: linear-gradient(145deg, #f5cf6b, #c9932f); color: #241a05; }
.poll-mini-row:nth-child(2) .poll-mini-rank { background: linear-gradient(145deg, #d7e1ec, #97a5b6); color: #1a2028; }
.poll-mini-row:nth-child(3) .poll-mini-rank { background: linear-gradient(145deg, #e0a273, #a86b3c); color: #241408; }
.poll-mini-row:hover { background: rgba(255, 255, 255, 0.05); }

/* topic card */
.topic-inline {
  margin: 8px 12px 8px;
  padding: 15px 15px 14px;
  border-radius: 16px;
  border: 1px solid rgba(130, 180, 240, 0.24);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(109, 179, 238, 0.22), transparent 58%),
    radial-gradient(120% 120% at 100% 100%, rgba(143, 123, 240, 0.18), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 14px 32px -24px rgba(0, 0, 0, 0.9);
}
.topic-inline .topic-head { font-size: 10px; letter-spacing: 0.14em; color: #9fc3e8; }
.topic-inline h3 { margin: 8px 0 5px; font-size: 15.5px; line-height: 1.45; color: #eef6ff; }
.topic-inline p { font-size: 11.5px; line-height: 1.7; color: #a9bed4; }
.topic-inline .ghost-btn {
  margin-top: 11px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #7cc0f2, #9a86f0);
  color: #07121f;
  font-weight: 600;
  font-size: 11.5px;
}

/* modals */
.modal-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 50px 110px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.modal-head { padding: 17px 20px 13px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.modal-title h2 { font-size: 18px; }
.modal-title p { font-size: 11.5px; }

/* detail */
.detail-head {
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.detail-orb {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04) 62%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 8px 20px -10px rgba(0, 0, 0, 0.85);
}
.detail-content { margin: 16px 2px 6px; font-size: 15px; line-height: 2; color: #e6effa; }
.detail-images { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.detail-images img { aspect-ratio: 4 / 3; max-height: 200px; border-radius: 14px; }
.detail-bar {
  margin-top: 14px;
  padding: 10px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* comments as cards */
.comments { margin-top: 18px; }
.comment {
  padding: 12px 13px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.01));
}
.comment:last-child { margin-bottom: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.065); }
.comment-ava {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}
.comment-text { font-size: 12.5px; line-height: 1.75; }
.comment-composer {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

/* topic modal */
.topic-hero {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(130, 180, 240, 0.24);
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(109, 179, 238, 0.24), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.topic-hero h3 { font-size: 18px; line-height: 1.45; margin-bottom: 6px; }
.topic-hero p { font-size: 12.5px; line-height: 1.8; color: #b6c9dd; }
.topic-post {
  padding: 12px 13px;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}
.topic-post:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.065); }
.topic-post p { font-size: 13px; line-height: 1.75; }

/* polls */
.poll-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 14px 32px -26px rgba(0, 0, 0, 0.9);
}
.poll-top h4 { font-size: 14.5px; line-height: 1.55; color: #eaf3ff; }
.poll-option {
  position: relative;
  padding: 10px 12px 9px 36px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}
.poll-option::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 13px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
}
.poll-option.is-mine::before { border-color: #7be3c6; background: radial-gradient(circle at 50% 50%, #7be3c6 0 45%, transparent 50%); }
.poll-option:hover:not(:disabled) { border-color: rgba(130, 180, 240, 0.3); background: rgba(255, 255, 255, 0.05); }
.poll-option.is-mine { border-color: rgba(123, 227, 198, 0.35); background: rgba(123, 227, 198, 0.06); }
.poll-bar { height: 5px; margin-top: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); }
.poll-bar i { background: linear-gradient(90deg, #6db3ee, #9a86f0); }
.poll-option.is-mine .poll-bar i { background: linear-gradient(90deg, #6fe3c9, #b4f6e5); }
.poll-summary { margin-top: 4px; font-size: 11px; color: var(--text-3); }

/* rank medals */
.rank-list li {
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}
.rank-list li:nth-child(1) .rank-no { background: linear-gradient(145deg, #f5cf6b, #c9932f); color: #241a05; }
.rank-list li:nth-child(2) .rank-no { background: linear-gradient(145deg, #d7e1ec, #97a5b6); color: #1a2028; }
.rank-list li:nth-child(3) .rank-no { background: linear-gradient(145deg, #e0a273, #a86b3c); color: #241408; }
.rank-no {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  font-size: 9.5px;
  color: var(--text-2);
}
.rank-bar { height: 4px; }
.rank-bar i { background: linear-gradient(90deg, #6db3ee, #9a86f0); }
.hot-pin {
  padding: 1px 6px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f5cf6b, #e0a273);
  color: #241a05;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.poll-mini-pin {
  flex: none;
  padding: 0 5px;
  border-radius: 5px;
  background: linear-gradient(135deg, #f5cf6b, #e0a273);
  color: #241a05;
  font-size: 8.5px;
  font-weight: 700;
}
/* 心情筛选 / 友情链接 可滑动隐藏（桌面） */
@media (min-width: 981px) {
  .mood-dock,
  .links-panel {
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  }
  body.hide-mood .mood-dock {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-18px);
    pointer-events: none;
  }
  body.hide-links .links-panel {
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    pointer-events: none;
  }
}
/* mood celebration burst */
.mood-burst { position: fixed; z-index: 95; pointer-events: none; }
.mb-particle {
  position: absolute;
  width: 7px;
  height: 7px;
  margin: -3px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 12px var(--c), 0 0 3px #fff;
  animation: mb-fly 1s cubic-bezier(0.15, 0.75, 0.25, 1) forwards;
}
.mb-particle.is-emoji {
  width: auto;
  height: auto;
  background: none;
  box-shadow: none;
  font-size: 16px;
  line-height: 1;
  animation-duration: 1.1s;
}
@keyframes mb-fly {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0.25); opacity: 0; }
}

/* full image, never cropped */
.detail-images { grid-template-columns: 1fr; }
.detail-images img {
  width: 100%;
  height: auto;
  max-height: 64vh;
  aspect-ratio: auto;
  object-fit: contain;
  background: #070b12;
}

/* publish pickers: single row, swipe horizontally */
.mood-pick.compact {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0 7px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.mood-pick.compact::-webkit-scrollbar { display: none; }
.mood-pick.compact .mood-chip { flex: 0 0 auto; }
.emoji-strip {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 5px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.emoji-strip::-webkit-scrollbar { display: none; }
.emoji-strip .emoji-btn { flex: 0 0 auto; }