:root {
  color-scheme: light;
  --ink: #282a2d;
  --muted: #626476;
  --line: #dedfe9;
  --paper: #faf9f8;
  --purple: #717681;
  --deep: #3c3f45;
  --soft: #f6f6f4;
  --lime: #d8f995;
  --radius: 18px;
  --shadow: 0 5px 26px #2f323708;
  font:
    16px/1.55 "Inter",
    "Microsoft YaHei UI",
    "Microsoft YaHei",
    "PingFang SC",
    system-ui,
    sans-serif;
}
.calendar-links, .event-filters, .event-filters .actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.calendar-links { margin:0 0 20px; }
.event-filters { align-items:end; margin:18px 0 24px; padding:16px; border:1px solid var(--line); border-radius:var(--radius); background:#fff; }
.event-filters .field { flex:1 1 115px; min-width:0; margin:0; }
.event-filters select,.event-filters input { width:100%; min-width:0; }
.event-classification { display:grid; gap:12px; }
.location-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(140px,100%),1fr)); align-items:start; gap:12px; }
.location-fields [hidden], .create-editor [hidden] { display:none !important; }
.location-fields :disabled { color:var(--muted); background-color:var(--paper); }
.location-area { border:0; padding:0; margin:0; min-width:0; }
.event-topic-options:empty { display:none; }
.create-editor { max-width:1080px; margin:0 auto; }
.create-editor > .tabs { margin-bottom:18px; }
.composer-columns { display:grid; grid-template-columns:minmax(210px,0.72fr) minmax(0,1.7fr); gap:24px; align-items:start; }
.compose-cover { display:grid; gap:14px; align-content:start; }
.compose-cover input[type=file] { max-width:100%; }
.cover-preview { overflow:hidden; border-radius:12px; background:var(--paper); }
.cover-preview > img, .cover-preview > .poster { display:block; width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; }
.cover-preview .poster svg { width:100%; height:100%; }
.cover-preview > .poster:has(svg) { aspect-ratio:270/112; }
.card-cover-image { display:block; width:100%; height:142px; object-fit:cover; }
.compose-main { min-width:0; display:grid; gap:20px; }
.compose-title input { font-size:clamp(1.5rem,2.1vw,2rem); font-weight:700; }
.compose-title .field > span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.compose-section, .compose-options { display:grid; gap:12px; border-top:1px solid var(--line); padding-top:18px; }
.compose-section h2 { display:flex; align-items:center; gap:8px; margin:0; font-size:1.08rem; }
.compose-section h2 svg { color:var(--purple); }
.ticket-setting { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.ticket-setting > span { font-weight:620; }
.ticket-fields { padding:12px; border:1px solid var(--line); border-radius:10px; }
.registration-approval { padding:4px 0 10px; border-bottom:1px solid var(--line); }
.compose-extra > .form-grid, .compose-options > .form-grid { margin-top:12px; }
.compose-options, .compose-extra { display:block; }
.create-editor .form-end { display:grid; grid-template-columns:minmax(210px,0.72fr) minmax(0,1.7fr); gap:24px; }
.create-editor .form-end .btn { grid-column:2; }
.compose-location { border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.compose-location > summary { display:flex; align-items:center; gap:10px; padding:12px 14px; list-style:none; }
.compose-location > summary::after { content:"⌄"; margin-left:auto; }
.compose-location[open] > summary::after { transform:rotate(180deg); }
.compose-location > summary small, .venue-lookup button small { display:block; font-size:.83rem; font-weight:400; color:var(--muted); }
.location-body { display:grid; gap:12px; padding:0 14px 14px; }
.venue-lookup [data-venue-results]:not(:empty) { border:1px solid var(--line); border-radius:9px; margin-top:4px; padding:8px; color:var(--muted); font-size:.9rem; }
.venue-lookup button { display:block; text-align:left; width:100%; padding:7px; background:white; color:var(--ink); border:0; border-radius:5px; cursor:pointer; }
.venue-lookup button:hover, .venue-lookup button:focus-visible { background:var(--paper); }
.attendance-modes { display:flex; width:fit-content; max-width:100%; gap:2px; padding:3px; margin:0; border:0; border-radius:10px; background:var(--paper); }
.attendance-modes label { position:relative; cursor:pointer; }
.attendance-modes input { position:absolute; opacity:0; width:1px; height:1px; }
.attendance-modes span { display:block; padding:6px 13px; border-radius:7px; color:var(--muted); font-weight:600; }
.attendance-modes input:checked + span { background:white; color:var(--purple); box-shadow:0 1px 4px #393c4125; }
.attendance-modes input:focus-visible + span { outline:2px solid var(--purple); }
@media(max-width:760px) {
  .composer-columns { grid-template-columns:minmax(0,1fr); gap:12px; }
  .compose-cover { grid-template-columns:90px minmax(0,1fr); align-items:center; gap:8px 14px; }
  .compose-cover .cover-preview { grid-row:span 2; }
  .compose-cover .full { grid-column:2; }
  .compose-cover .cover-preview > * { aspect-ratio:1; }
  .create-editor .form-end { display:block; }
  .create-editor .form-end .btn { width:100%; }
}
@media(max-width:540px) {
  .location-fields { grid-template-columns:minmax(0,1fr); }
}
.event-topic-options fieldset { display:flex; flex-wrap:wrap; gap:8px 16px; border:0; margin:0 0 12px; padding:0; }
.event-topic-options legend { font-weight:600; margin-bottom:6px; }
@media(max-width:540px){.event-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}.event-filters .actions{grid-column:1/-1;}}
.layout.single { grid-template-columns:minmax(0,1fr); }
.circle-directory-tools, .circle-headline, .circle-card footer, .circle-pages {
  display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
}
.circle-directory-tools { margin:0 0 22px; }
.circle-directory-tools .tabs { margin:0; }
.circle-directory-tools .search { max-width:100%; }
.circle-card-cover { display:block; height:112px; overflow:hidden; background:var(--paper); }
.circle-card-cover .poster { width:100%; height:100%; object-fit:cover; }
.circle-card .circle-headline h2, .circle-board .circle-headline h2 { margin:0; }
.circle-card-description { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.circle-card small, .circle-thread small, .circle-byline { color:var(--muted); }
.circle-byline { margin:-6px 0 18px; }
.circle-filters, .circle-tag-choices, .circle-thread-title, .circle-thread-tags {
  display:flex; gap:10px; align-items:center; flex-wrap:wrap;
}
.circle-board { container-type:inline-size; }
.circle-filters { padding:6px 0 12px; }
.circle-thread-head, .circle-thread { display:grid; grid-template-columns:minmax(0,1fr) minmax(94px,.42fr) 2rem 2.5rem minmax(94px,.42fr); align-items:center; gap:10px; }
.circle-thread { border-bottom:1px solid var(--line); padding:13px 0; }
.circle-thread-head { margin-top:10px; padding:8px 0; border-block:1px solid var(--line); color:var(--muted); font-size:.8rem; }
.thread-author, .thread-last, .thread-count { min-width:0; font-size:.85rem; overflow-wrap:anywhere; }
.thread-author small, .thread-last small { display:block; }
.thread-mobile-label { display:none; }
.circle-thread:last-child { border-bottom:0; }
.circle-thread-title { gap:6px; font-weight:700; overflow-wrap:anywhere; }
.circle-thread-tags { gap:8px; font-size:.82rem; }
.circle-thread-tags:not(:empty) { margin:4px 0; }
.thread-editor-field { display:grid; gap:6px; }
#dialog:has(form[data-form="circle-post"]) { width:min(740px,95vw); max-height:92dvh; }
#dialog form[data-form="circle-post"] { min-width:0; }
.thread-body :is(img,video) { display:block; max-width:100%; max-height:70vh; margin:.7em 0; border-radius:8px; }
.thread-body video { width:100%; background:#18191c; }
@container (max-width:565px) {
  .circle-thread-head { display:none; }
  .circle-thread { grid-template-columns:minmax(0,1fr) auto auto; align-items:baseline; gap:4px 12px; }
  .thread-topic, .thread-last { grid-column:1 / -1; }
  .thread-author small, .thread-last small, .thread-mobile-label { display:inline; }
  .thread-author small, .thread-last small { margin-left:5px; }
  .thread-last, .thread-count { color:var(--muted); }
}
.circle-pages { margin-top:14px; }
.circle-tag-choices { margin:0; border:0; padding:0; }
.circle-tag-choices legend { margin-bottom:5px; }
@media (max-width:600px) {
  #dialog:has(form[data-form="circle-post"]) { width:100%; max-width:100%; height:100dvh; max-height:100dvh; margin:0; border-radius:0; }
  .circle-directory-tools .search { width:100%; }
  .circle-thread { gap:8px; }
  .circle-byline { margin-top:0; }
}
.consents { display:grid; gap:8px; margin:4px 0 2px; font-size:.92rem; }
.consents a { color:var(--purple); text-decoration:underline; }
.terms { max-width:760px; line-height:1.75; }
.terms h2 { font-size:1.05rem; margin:18px 0 6px; }
.terms h2:first-child { margin-top:0; }
.terms ul { margin:0; padding-left:1.2em; }
.welcome-note { margin:0 0 16px; }
.side-hint { margin:4px 2px 18px; color:var(--muted); font-size:.92rem; }
/* Prices in RMB and USD side by side; the payer picks one. */
.price-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 13px; border:0; margin:0; padding:0; min-width:0; }
.price-pair > legend { grid-column:1/-1; padding:0; margin-bottom:5px; font-size:.91rem; font-weight:620; }
.price-pair[hidden] { display:none; }
.currency-choice { display:grid; gap:8px; border:0; margin:0; padding:0; }
.currency-choice > legend { padding:0; margin-bottom:6px; font-size:.91rem; font-weight:620; }
.currency-choice small { color:var(--muted); }
.currency-option { display:flex; align-items:center; gap:10px; padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:#fff; cursor:pointer; font-weight:600; }
.currency-option:has(input:checked) { border-color:var(--purple); background:var(--soft); }
.currency-option input { accent-color:var(--purple); width:17px; height:17px; margin:0; }
.amount-line { margin:4px 0; }
@media (max-width:520px) { .price-pair { grid-template-columns:1fr; } }
.visually-hidden { position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.tab-tools { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:14px 0 4px; }
.filter-fold { margin:14px 0 0; }
.filter-fold > summary { display:inline-flex; align-items:center; min-height:36px; padding:0 14px; border:1px solid var(--line); border-radius:999px; background:#fff; color:#43474e; font-weight:600; font-size:.9rem; cursor:pointer; list-style:none; }
.filter-fold > summary::-webkit-details-marker { display:none; }
.filter-fold[open] > summary { color:var(--purple); border-color:#e0dfd9; }
.filter-fold .event-filters { margin-top:10px; }
@media(min-width:721px){ .filter-fold[open] > summary { display:none; } .filter-fold[open] .event-filters { margin-top:0; } }
.desktop-nav a, #mobile a { position:relative; }
.nav-dot { min-width:17px; height:17px; padding:0 5px; border-radius:999px; background:#e5484d; color:#fff; font-size:.68rem; font-weight:700; line-height:17px; text-align:center; }
#mobile .nav-dot { position:absolute; top:1px; left:calc(50% + 6px); }
.desktop-nav .nav-dot { margin-left:2px; }
/* Community discovery */
body:has(.discovery), body:has(.note-detail) { background: white; }
.discover-head {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 440px) 1fr;
  align-items: center;
  gap: 18px;
  margin: 9px 0 25px;
}
.discover-head h1 { font-size: clamp(1.65rem, 3vw, 2.25rem); }
.discovery .note-write { justify-self: end; border-radius: 24px; padding-inline: 21px; }
.note-search {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px 7px 16px; background: #f7f7f5; border-radius: 28px;
  color: var(--muted);
}
.note-search input {
  flex: 1; width: 0; min-width: 0; border: none;
  background: transparent; color: var(--ink); font-size: .94rem;
}
.note-search:focus-within { outline: 2px solid #9fa3ac; }
.note-search input:focus { outline: none; }
.note-search button {
  padding: 5px 12px; background: white; border: 1px solid var(--line); border-radius: 18px;
  color: var(--ink); font-size: .85rem;
}
.discover-filters { display: flex; gap: 18px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.note-channels, .note-sort, .note-labels, .note-results { display: flex; align-items: center; gap: 8px; }
.note-channels { overflow-x: auto; scrollbar-width: none; padding: 3px; }
.note-channels a { flex: none; padding: 8px 16px; border-radius: 22px; color: var(--muted); font-weight: 600; }
.note-channels a[aria-current] { background: var(--deep); color: white; }
.note-channels a:not([aria-current]):hover, .note-sort a:hover { background: var(--soft); }
.note-sort { flex: none; gap: 1px; border-radius: 20px; padding: 3px; background: #f7f7f5; }
.note-sort a { padding: 4px 12px; color: var(--muted); font-size: .82rem; border-radius: 18px; }
.note-sort a[aria-current] { color: var(--ink); background: white; box-shadow: 0 1px 4px #20212418; }
.note-results { flex-wrap: wrap; margin: -4px 0 18px; font-size: .88rem; overflow-wrap: anywhere; }
.note-grid {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: start;
  gap: 22px; min-width: 0;
}
.note-grid.masonry { grid-auto-rows: 1px; row-gap: 0; }
.note-card { min-width: 0; overflow-wrap: anywhere; }
.note-open { display: block; border-radius: 15px; }
.note-photo, .note-excerpt { overflow: hidden; border-radius: 15px; background: #f4f3f1; }
.note-photo img { display: block; width: 100%; height: auto; min-height: 100px; max-height: 460px; object-fit: cover; }
.note-photo img[src="/note-covers/coffee.webp"] { aspect-ratio: 4/5; }
.note-photo img[src="/note-covers/badminton.webp"] { aspect-ratio: 1.06; object-position: center 66%; }
.note-open:hover .note-photo img { filter: brightness(.96); }
.note-excerpt {
  min-height: 150px; padding: clamp(16px,2.3vw,32px); display: flex; align-items: center;
  color: #34363b; background: #f0efed;
}
.note-excerpt p {
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
  font: 600 clamp(1rem,1.55vw,1.48rem)/1.65 "STSong", "SimSun", "Songti SC", serif; color: inherit;
}
.note-excerpt.tone-1 { background: #f6ebd9; color: #533b28; }
.note-excerpt.tone-2 { background: #e5efdf; color: #324430; }
.note-excerpt.tone-3 { background: #e3edf2; color: #2e4351; }
.note-open h2 { margin: 10px 3px 0; font-size: 1.03rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.note-labels { margin: 8px 3px 4px; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: .77rem; }
.note-board, .note-topic { overflow-wrap: anywhere; }
.note-board { background: #f6f6f4; color: var(--deep); border-radius: 7px; padding: 2px 7px; }
.note-topic { color: var(--purple); }
.note-card footer, .note-detail-body > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.note-card footer { padding: 0 3px; }
.note-author, .note-like { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8rem; min-height: 30px; }
.note-author { min-width: 0; }
.note-author span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.note-like { flex: none; background: transparent; border: 0; padding: 4px; }
.note-like[aria-pressed=true] { color: #963c66; }
.note-like[aria-pressed=true] svg { fill: currentColor; }
.note-reason { margin-left: 3px; font-size: .72rem; color: var(--muted); }
.discovery .more-notes { display: flex; margin: 20px auto; }
.note-recruit-fields { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.note-recruit-fields legend { color: var(--muted); font-size: .9rem; }
.note-detail { max-width: 720px; margin: 0 auto; }
.note-detail.with-photo { max-width: 1040px; display: grid; grid-template-columns: 1.04fr 1fr; align-items: start; gap: clamp(20px,4vw,52px); }
.note-detail-photo { margin: 0; }
.note-detail-photo img { display: block; width: 100%; max-height: 75vh; object-fit: contain; background: #f6f6f4; border-radius: 18px; }
.note-detail-body { min-width: 0; }
.note-detail-body h1 { font-size: clamp(1.45rem,2.3vw,2.1rem); margin: 16px 0 12px; }
.note-detail-body .prose { font-size: 1rem; line-height: 1.85; }
.note-detail-body .note-labels { margin: 14px 0; }
.note-detail-body .actions { margin: 14px 0; }
.note-comments { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.note-comments h2 { margin-bottom: 12px; }
@media (max-width: 1000px) {
  .note-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
}
@media (max-width: 720px) {
  .discover-head { grid-template-columns: 1fr auto; gap: 12px; margin: 0 0 12px; }
  .discover-head .note-search { grid-column: 1/-1; grid-row: 2; }
  .discovery .note-write { grid-column: 2; grid-row: 1; padding: 7px 14px; min-height: 36px; }
  .discover-filters { gap: 6px; margin-bottom: 12px; }
  .note-channels { flex: 1; min-width: 0; gap: 3px; margin: 0 -3px; }
  .note-channels a { font-size: .88rem; padding: 7px 12px; }
  .note-sort a { padding: 5px 8px; }
  .note-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .note-photo, .note-excerpt { border-radius: 11px; }
  .note-photo img { max-height: 310px; }
  .note-excerpt { min-height: 128px; }
  .note-open h2 { font-size: .94rem; margin-top: 7px; }
  .note-labels { gap: 4px; margin: 6px 0 2px; }
  .note-detail.with-photo { display: block; }
  .note-detail-photo { margin-bottom: 16px; }
  .note-detail-photo img { max-height: 55vh; }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #a4a8b0;
  outline-offset: 3px;
}
.skip {
  position: fixed;
  z-index: 30;
  top: -80px;
  left: 16px;
  background: white;
  padding: 10px 20px;
  border-radius: 8px;
}
.skip:focus {
  top: 12px;
}
.ic {
  vertical-align: middle;
  flex: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.055em;
  line-height: 1.2;
}
h2 {
  font-size: 1.25rem;
  letter-spacing: -0.035em;
  line-height: 1.4;
}
h3 {
  font-size: 1.08rem;
  line-height: 1.45;
}
p {
  overflow-wrap: anywhere;
}
small,
.muted,
.meta,
.heading p,
.section-title > span {
  color: var(--muted);
}
small {
  font-size: 0.83rem;
}
.loading,
.empty {
  padding: 22px;
  color: var(--muted);
}
.empty {
  background: #faf9f8;
  border: 1px dashed var(--line);
  border-radius: 12px;
  margin: 12px 0;
}
.btn,
.quiet,
.textlink,
.login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  line-height: 1.25;
}
.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.91rem;
  font-weight: 650;
  min-height: 40px;
  background: #fff;
  color: var(--ink);
}
.btn:hover,
.tabs a:hover,
.item:hover,
.friendline:hover,
.admin-nav a:hover {
  filter: brightness(0.975);
}
.btn.primary,
.register-link {
  background: var(--purple);
  color: white;
}
.btn.lime {
  background: var(--lime);
  color: #293521;
}
.btn.outline,
.account-link {
  border: 1px solid var(--line);
  background: #fff;
}
.btn.soft {
  background: var(--soft);
  color: var(--purple);
}
.btn.quiet,
.quiet {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 9px;
}
.textlink {
  color: var(--purple);
  font-weight: 650;
  font-size: 0.91rem;
}
.btn + .textlink,
.panel > .textlink {
  margin: 10px 4px;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.actions:empty {
  display: none;
}
.tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 3px 10px;
  border-radius: 20px;
  background: #f0f1f5;
  color: #525568;
  font-size: 0.79rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.tag.violet,
.eyeline .tag {
  background: var(--soft);
  color: var(--purple);
}
.tag.overlay-tag {
  position: absolute;
  top: 11px;
  right: 11px;
  background: #ffffffed;
  color: #373a40;
  box-shadow: 0 1px 6px #0001;
}
.avatar {
  border-radius: 50%;
  flex: none;
  vertical-align: middle;
}
.avatar-photo {
  object-fit: cover;
}
.letter {
  width: var(--size);
  height: var(--size);
  font-size: calc(var(--size)*0.4);
  display: inline-grid;
  place-items: center;
  color: #454950;
  font-weight: 750;
}
.byline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 2px 6px 2px 0;
  font-size: 0.9rem;
}
#header {
  height: 72px;
  background: #fffffff5;
  border-bottom: 1px solid var(--line);
  position: sticky;
  z-index: 5;
  top: 0;
  backdrop-filter: blur(14px);
}
.bar,
#main {
  width: min(1176px, calc(100% - 64px));
  margin: auto;
}
.bar {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 38px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.brand img {
  width: 38px;
  height: 38px;
}
.brand strong {
  font-size: 1.42rem;
  letter-spacing: -0.08em;
}
.brand-wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  white-space: nowrap;
}
.brand-wordmark strong {
  letter-spacing: 0.035em;
  line-height: 1.08;
}
.brand-tagline {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
}
.desktop-nav,
.bar-right,
#mobile {
  display: flex;
  align-items: center;
  gap: 6px;
}
.desktop-nav {
  height: 100%;
}
.desktop-nav a,
#mobile a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 12px;
  padding: 9px 13px;
  color: #626771;
  font-weight: 580;
  font-size: 0.93rem;
}
.desktop-nav .active,
#mobile .active {
  color: var(--purple);
  background: var(--soft);
}
.bar-right {
  margin-left: auto;
  gap: 15px;
  white-space: nowrap;
}
.login-link {
  color: var(--muted);
  font-size: 0.9rem;
}
.register-link {
  min-height: 36px;
  padding: 8px 15px;
}
.account-link {
  max-width: 130px;
  overflow: hidden;
}
.bar-right .account-link {
  min-height: 36px;
}
.skip + header + #main {
  min-height: 70vh;
}
#main {
  padding: 30px 0 64px;
  min-width: 0;
}
#main:focus {
  outline: 0;
}
#mobile {
  display: none;
}
.heading,
.section-title,
.profile-head,
.identity,
.item,
.row,
.modal-head,
.card footer,
.admin-record header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.heading {
  margin-bottom: 24px;
}
.heading p {
  margin-top: 7px;
  font-size: 0.96rem;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 7px 10px;
  max-width: 100%;
}
.search .ic {
  color: #737984;
}
.search input {
  width: clamp(100px, 15vw, 220px);
  border: 0;
  min-width: 0;
  padding: 2px;
  background: transparent;
  font-size: 0.9rem;
}
.search button {
  background: transparent;
  border: 0;
  font-size: 0.82rem;
  color: var(--purple);
  padding: 3px;
}
.hero {
  isolation: isolate;
  overflow: hidden;
  min-height: 270px;
  position: relative;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at 77% 55%, #6e737e 0%, #464a51 36%, #2d2f34 76%);
  color: white;
  border-radius: 24px;
  padding: 30px 42px;
  margin-bottom: 27px;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(90deg, #edece809 1px, transparent 1px),
    linear-gradient(#edece809 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, transparent, #000 45%);
}
.hero-copy {
  width: 49%;
  z-index: 1;
}
.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #e1f8b9;
  background: #c6ef8f13;
  border: 1px solid #ccf89748;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.8rem;
}
.hero h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: -0.055em;
  line-height: 1.2;
  margin: 14px 0 9px;
}
.hero p {
  color: #e9e8e4;
  margin-bottom: 19px;
  font-size: 0.98rem;
}
.hero > img {
  position: absolute;
  right: 0;
  top: -11%;
  width: 56%;
  height: 123%;
  object-fit: contain;
  pointer-events: none;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 2.55fr) minmax(235px, 0.95fr);
  gap: 24px;
  align-items: start;
}
.layout > * {
  min-width: 0;
}
.panel,
.card,
.admin-nav,
.stat,
.profile-head,
.play-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}
.panel {
  padding: 20px;
  margin-bottom: 17px;
}
.panel > h2 {
  margin-bottom: 13px;
}
.panel > p {
  margin: 9px 0 14px;
}
.friendline {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f3f3f1;
}
.friendline span:not(.avatar) {
  display: grid;
  min-width: 0;
}
.friendline small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100%;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.tabs a {
  padding: 9px 15px;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}
.tabs .selected {
  border-color: var(--purple);
  color: var(--purple);
}
.section-title {
  margin: 14px 0;
}
.section-title > span {
  font-size: 0.85rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.card {
  overflow: hidden;
  min-width: 0;
}
.card h3 {
  margin: 8px 0 10px;
}
.cover {
  display: block;
  position: relative;
  background: #f3f3f1;
}
.poster {
  height: 137px;
  position: relative;
  overflow: hidden;
}
.poster svg {
  width: 100%;
  height: 100%;
  display: block;
}
.p-ces {
  background: linear-gradient(120deg, #484c53, #848a95);
  color: white;
}
.p-ces .print {
  position: absolute;
  top: 12px;
  left: 15px;
  font: 9px monospace;
  letter-spacing: 1px;
}
.p-ces b {
  position: absolute;
  top: 34px;
  left: 15px;
  font:
    italic 26px/1.1 Georgia,
    serif;
}
.p-ces img {
  position: absolute;
  width: 80%;
  height: 120%;
  right: -4%;
  top: -10%;
  object-fit: contain;
}
.card-body {
  padding: 15px 17px;
}
.card .meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  margin: 4px 0;
}
.card footer {
  border-top: 1px solid #f2f1ee;
  padding-top: 10px;
  margin-top: 12px;
  font-size: 0.86rem;
}
.card footer span {
  color: var(--muted);
}
.list {
  display: grid;
  gap: 0;
}
.item {
  border-bottom: 1px solid #f0efec;
  padding: 13px 1px;
  min-width: 0;
}
.item:last-child {
  border-bottom: 0;
}
.item:hover {
  color: var(--purple);
}
.row-text {
  display: grid;
  min-width: 0;
  overflow-wrap: anywhere;
}
.row-text small {
  margin-top: 4px;
}
.item .tag {
  flex: none;
}
.textlink:hover {
  text-decoration: underline;
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background: #fbfafa;
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0;
}
.facts > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.facts b {
  overflow-wrap: anywhere;
}
.note,
.source {
  background: #f6f6f5;
  border-radius: 10px;
  color: #575c65;
  font-size: 0.9rem;
  padding: 10px 12px;
}
.detail-cover {
  height: 147px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 20px;
}
.detail-cover .poster {
  height: 100%;
}
.quest-cover {
  background: linear-gradient(115deg, #2f3237, #5e636d);
  text-align: center;
}
.quest-cover > img {
  height: 125%;
  margin-top: -10px;
}
.detail-cover + .heading {
  align-items: start;
}
.detail-cover + .heading p {
  max-width: 780px;
}
.play-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 25px;
  background: linear-gradient(135deg, #f3f3f1, #fff);
}
.play-panel img {
  width: 100%;
  align-self: center;
}
.play-panel > div {
  align-self: center;
}
.play-panel p {
  margin: 13px 0;
}
.profile-head,
.identity {
  justify-content: flex-start;
}
.profile-head {
  padding: 22px;
  margin-bottom: 20px;
}
.profile-head > .actions {
  margin-left: auto;
}
.profile-head p {
  margin: 6px 0;
}
.reading,
.formpage {
  max-width: 830px;
  margin: 0 auto;
}
.reading h1 {
  font-size: 1.85rem;
  margin: 12px 0;
}
.prose,
.moment > p,
.reply > p,
.bubble > p,
.record > p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.reading .prose {
  margin: 22px 0;
  line-height: 1.85;
}
.reply,
.moment,
.record,
.admin-record {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.reply:last-child,
.moment:last-child,
.record:last-child,
.admin-record:last-child {
  border-bottom: 0;
}
.reply > p,
.moment > p,
.record > p {
  margin: 7px 0;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.upload {
  display: block;
  max-width: 100%;
  max-height: 360px;
  border-radius: 12px;
  object-fit: contain;
  margin: 10px 0;
}
audio {
  max-width: 100%;
}
.form {
  display: grid;
  gap: 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.field {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.field > span {
  font-size: 0.91rem;
  font-weight: 620;
}
.field input,
.field textarea,
.field select,
.copy {
  width: 100%;
  border: 1px solid #d1d3d7;
  border-radius: 9px;
  background: white;
  color: var(--ink);
  padding: 10px 12px;
  min-width: 0;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%235c566f' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 30px;
}
.field textarea {
  resize: vertical;
}
.field input[type="file"] {
  font-size: 0.83rem;
}
.full {
  grid-column: 1/-1;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
}
.check input {
  accent-color: var(--purple);
  width: 17px;
  height: 17px;
}
.form-error {
  color: #9d3137;
  font-size: 0.9rem;
}
.form-error:empty {
  display: none;
}
.form-end {
  margin-top: 3px;
}
.form summary,
summary {
  cursor: pointer;
  color: var(--purple);
  font-weight: 600;
}
.game-config {
  padding: 14px;
  background: #fbfafa;
  border-radius: 12px;
}
.game-config .check {
  margin: 12px 0;
}
.account-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  max-width: 860px;
  margin: 32px auto;
  border: 1px solid var(--line);
  border-radius: 23px;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow);
}
.account-art {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(ellipse at 70% 30%, #767c87, #34363b 80%);
  color: white;
  min-height: 420px;
}
.account-art img {
  width: 100%;
}
.account-art h2 {
  font-size: 1.8rem;
}
.account-art p {
  color: #e7e6e1;
  margin: 5px 0;
}
.auth-panel {
  border: 0;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
  padding: 32px;
}
.auth-panel h1 {
  font-size: 1.7rem;
}
.auth-panel > p {
  color: var(--muted);
}
.code {
  font: 600 1.1rem/1.7 monospace;
  word-break: break-all;
  background: var(--soft);
  padding: 12px;
  border-radius: 8px;
}
.amount {
  font-size: 2rem;
  letter-spacing: -0.04em;
}
.identity {
  gap: 14px;
}
.chat-log {
  max-height: 52vh;
  min-height: 200px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 5px 3px 16px;
}
.chat-history { align-self: center; }
#voice-panel {
  position: fixed;
  inset: auto 16px max(76px, env(safe-area-inset-bottom)) auto;
  margin: 0;
  width: min(340px, calc(100vw - 32px));
  padding: 18px 20px;
  z-index: 100;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 32px #2c2e3329;
}
#voice-panel:modal { inset: 0; margin: auto; }
#voice-panel h2 { margin: 5px 0 12px; overflow-wrap: anywhere; }
#voice-status, #voice-clock { color: var(--muted); margin: 0 0 8px; }
#voice-clock { font-variant-numeric: tabular-nums; }
#voice-panel .voice-end { color: #9d2143; background: #fceaf0; }
#voice-panel.with-video { width: min(480px, calc(100vw - 32px)); max-height: min(80dvh, calc(100dvh - 90px)); }
#call-pictures {
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  height: min(32dvh, 270px);
  background: #232529;
  border-radius: 12px;
}
#call-pictures video { width: 100%; height: 100%; object-fit: contain; }
#call-local-video { transform: scaleX(-1); }
#call-pictures.in-call #call-local-video {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 27%;
  height: 30%;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid #ffffff85;
  background: #2a2c31;
}
#call-video-status { position: absolute; inset: 43% 8px auto; text-align: center; color: #fff; margin: 0; }
#call-preview-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  border-radius: 5px;
  padding: 3px 7px;
  color: white;
  background: #18191bbf;
  font-size: .8rem;
}
#call-media-error { color: #9d2143; }
.bubble .voice-record { font-weight: 600; color: var(--purple); }
.bubble {
  max-width: 85%;
  align-self: flex-start;
  background: #f6f5f3;
  border-radius: 12px 12px 12px 2px;
  padding: 10px 13px;
  min-width: 0;
}
.bubble.own {
  align-self: flex-end;
  background: #f4f3f1;
  border-radius: 12px 12px 2px 12px;
}
.bubble p {
  margin: 4px 0;
}
.chat-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px 16px;
}
.chat-tools details { max-width: 100%; }
.chat-tools summary { cursor: pointer; color: var(--purple); padding: 5px 0; }
.emoji-choices, .sticker-choices { display: flex; flex-wrap: wrap; gap: 4px; }
.emoji-choices button, .sticker-choices button {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 5px;
  min-width: 40px;
  min-height: 40px;
}
.emoji-choices button { font-size: 1.35rem; }
.sticker-choices button { display: grid; justify-items: center; gap: 3px; font-size: .78rem; }
.emoji-choices button:hover, .sticker-choices button:hover { background: var(--soft); }
.sticker-choices img, .chat-sticker { display: block; object-fit: contain; }
.bubble audio { max-width: 100%; }
.source {
  display: block;
  margin: 4px 0;
  background: white;
}
.msg-report {
  font-size: 0.74rem;
  padding: 2px 4px;
  min-height: auto;
  background: transparent;
  color: var(--muted);
}
.friend-search { margin: 16px 0 22px; }
.friend-search-head, .friend-count, .friend-pages, .friend-name {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.friend-search-head { justify-content: space-between; margin-bottom: 16px; }
.friend-search-head h2, .friend-search-head .check, .friend-search-fields .field { margin: 0; }
.friend-search-fields {
  display: grid; grid-template-columns: minmax(170px, 2fr) repeat(2, minmax(95px, 1fr)) auto;
  align-items: end; gap: 12px;
}
.friend-search-fields input, .friend-search-fields select { width: 100%; min-width: 0; }
.friend-count, .friend-info small, .friend-info p, .friend-pages { color: var(--muted); font-size: .88rem; }
.friend-result { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 14px; padding: 18px; }
.friend-result > .textlink { align-self: center; white-space: nowrap; font-size: .88rem; }
.friend-info { min-width: 0; overflow-wrap: anywhere; }
.friend-name { gap: 6px; }
.friend-name h3 { margin: 0; }
.friend-info small { display: block; margin-top: 3px; }
.friend-info p { margin: 8px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.friend-pages { justify-content: center; margin: 20px 0; }
@media (max-width: 680px) {
  .friend-search-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .friend-search-fields > :first-child, .friend-search-fields > button { grid-column: 1 / -1; }
  .friend-results { grid-template-columns: 1fr; }
  .friend-result { gap: 10px; padding: 14px; }
}
.admin-layout {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.admin-nav {
  display: grid;
  gap: 3px;
  padding: 10px;
  position: sticky;
  top: 90px;
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #555961;
}
.admin-nav a.active {
  background: var(--soft);
  color: var(--purple);
  font-weight: 650;
}
.admin-content {
  min-width: 0;
}
.admin-content > h2 {
  margin: 0 0 13px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 17px;
}
.stat {
  display: grid;
  padding: 15px;
}
.stat strong {
  font-size: 1.65rem;
  color: var(--deep);
}
.stat span {
  font-size: 0.9rem;
  color: var(--muted);
}
.admin-record header {
  justify-content: flex-start;
  flex-wrap: wrap;
}
.admin-record p {
  font-size: 0.91rem;
  color: var(--muted);
  margin: 6px 0;
}
.admin-record .actions {
  margin-top: 7px;
}
.admin-record .btn {
  min-height: 33px;
  padding: 6px 10px;
  font-size: 0.84rem;
}
.admin-content .panel h2 {
  font-size: 1.08rem;
}
dialog {
  width: min(490px, calc(100% - 28px));
  max-height: 86vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 19px;
  padding: 22px;
  color: var(--ink);
  box-shadow: 0 22px 85px #25272a38;
}
dialog::backdrop {
  background: #23252966;
  backdrop-filter: blur(3px);
}
.modal-head {
  margin-bottom: 15px;
}
dialog .copy {
  margin: 12px 0;
}
#toast {
  position: fixed;
  z-index: 30;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 12px);
  background: #313439;
  color: white;
  opacity: 0;
  pointer-events: none;
  border-radius: 12px;
  padding: 10px 18px;
  max-width: 90%;
  transition: 0.18s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 920px) {
  .bar,
  #main {
    width: calc(100% - 38px);
  }
  .bar {
    gap: 15px;
  }
  .desktop-nav a {
    padding: 8px 9px;
  }
  .layout {
    grid-template-columns: minmax(0, 2fr) minmax(200px, 0.9fr);
    gap: 16px;
  }
  .panel {
    padding: 16px;
  }
  .bar-right {
    gap: 8px;
  }
  .hero {
    padding: 26px;
    min-height: 245px;
  }
  .grid {
    gap: 12px;
  }
  .card-body {
    padding: 12px;
  }
  .admin-layout {
    grid-template-columns: 165px minmax(0, 1fr);
    gap: 13px;
  }
}
@media (min-width: 721px) and (max-width: 1024px) {
  .home-bar {
    gap: 8px;
  }
  .home-bar .desktop-nav {
    gap: 2px;
  }
  .home-bar .desktop-nav a {
    gap: 4px;
    padding-inline: 4px;
    white-space: nowrap;
  }
  .home-bar .bar-right {
    min-width: 0;
  }
  .home-bar .account-link {
    display: block;
    padding-inline: 8px;
    text-overflow: ellipsis;
  }
}
@media (max-width: 720px) {
  #header {
    height: 58px;
  }
  .bar,
  #main {
    width: calc(100% - 30px);
  }
  .brand img {
    width: 31px;
    height: 31px;
  }
  .brand strong {
    font-size: 1.22rem;
  }
  .desktop-nav {
    display: none;
  }
  #main {
    padding: 21px 0 100px;
  }
  .heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 17px;
  }
  .heading > .search {
    width: 100%;
  }
  .search input {
    flex: 1;
    width: 100%;
  }
  .heading p {
    font-size: 0.88rem;
  }
  .hero {
    min-height: 223px;
    padding: 20px;
    margin-bottom: 18px;
    border-radius: 17px;
  }
  .hero-copy {
    width: 58%;
  }
  .hero p {
    font-size: 0.86rem;
    margin-bottom: 12px;
  }
  .hero h2 {
    font-size: 1.68rem;
  }
  .hero > img {
    width: 54%;
    right: -4%;
    top: 0;
    height: 100%;
  }
  .feature-tag {
    font-size: 0.73rem;
    padding: 3px 9px;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .layout > aside {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 12px;
  }
  .layout > aside > .panel {
    margin: 0;
  }
  .tabs {
    gap: 2px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .tabs a {
    padding: 9px 11px;
    white-space: nowrap;
  }
  .grid {
    gap: 11px;
  }
  .poster {
    height: 108px;
  }
  .card-body {
    padding: 11px;
  }
  .card h3 {
    font-size: 0.99rem;
  }
  .bar-right .btn {
    min-height: 33px;
  }
  .actions .btn {
    max-width: 100%;
  }
  .panel {
    padding: 15px;
  }
  .profile-head {
    flex-wrap: wrap;
  }
  .profile-head > .actions {
    margin-left: 0;
  }
  .profile-head > div {
    max-width: 100%;
  }
  .account-layout {
    display: block;
    margin: 10px auto;
  }
  .account-art {
    display: none;
  }
  .auth-panel {
    padding: 24px;
  }
  .play-panel {
    grid-template-columns: 1fr;
  }
  .play-panel img {
    max-height: 170px;
  }
  .admin-layout {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .admin-nav {
    display: flex;
    overflow-x: auto;
    position: static;
    padding: 5px;
    max-width: 100%;
    border-radius: 12px;
  }
  .admin-nav a {
    white-space: nowrap;
    padding: 8px;
  }
  .admin-nav .ic {
    display: none;
  }
  .stat-grid {
    gap: 7px;
  }
  .stat {
    padding: 11px;
  }
  .form-grid {
    gap: 10px;
  }
  #mobile {
    position: fixed;
    z-index: 8;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #fffffff7;
    border-top: 1px solid var(--line);
    padding: 5px 4px max(5px, env(safe-area-inset-bottom));
    backdrop-filter: blur(12px);
  }
  #mobile a {
    flex: 1;
    flex-direction: column;
    gap: 1px;
    font-size: 0.75rem;
    padding: 5px 2px;
    max-width: 70px;
  }
  #toast {
    bottom: 72px;
  }
  .chat-log {
    max-height: 44vh;
  }
}
@media (max-width: 395px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    width: 69%;
  }
  .hero > img {
    width: 48%;
    right: -8%;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .tabs a {
    padding: 8px;
  }
  .facts {
    gap: 8px;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bar-right {
    gap: 6px;
  }
  .layout > aside {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* App hand-off and QR code */
.handoff {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 18px;
  align-items: center;
}
.handoff > div:only-child {
  grid-column: 1 / -1;
}
.qr {
  width: 168px;
  height: 168px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}
/* AR treasure hunt */
.ar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.ar-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.ar-card p {
  margin: 6px 0;
}
.ar-card small {
  color: var(--muted);
}
.ar-art,
.ar-mystery {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--soft);
}
.ar-mystery {
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--purple);
  border: 2px dashed #e0dfd9;
}
.ar-card.unknown b {
  color: var(--muted);
}
.find-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.find-strip figure {
  margin: 0;
  text-align: center;
}
.find-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: var(--soft);
}
.find-strip figcaption b,
.find-strip figcaption small {
  display: block;
  font-size: 0.82rem;
}
.find-strip figcaption small {
  color: var(--muted);
}
/* Safety */
.safety-alert {
  border: 1px solid #f0c27a;
  background: #fff7e8;
  color: #5b3d08;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.safety-alert p {
  margin: 6px 0;
}
.note p {
  margin: 4px 0;
}
@media (max-width: 720px) {
  .handoff {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .ar-grid {
    grid-template-columns: 1fr;
  }
}
.discovery-place, .compose-place, .taxonomy-row, .reply > header { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.discovery-place { margin:14px 0 8px; }
.discovery-place .field { display:flex; flex-direction:row; align-items:center; gap:6px; margin:0; }
.discovery-place select { min-height:36px; width:auto; max-width:190px; }
.note-channels:empty { display:none; }
.compose-place { margin-bottom:12px; }
.compose-place small, .compose-place .confirm-city { flex-basis:100%; }
.compose-tags select[multiple] { min-height:54px; }
.note-talk { display:inline-flex; align-items:center; gap:4px; color:var(--muted); font-size:12px; white-space:nowrap; }
.note-video-thumb { position:relative; background:#242329; }
.note-video-thumb video { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; }
.note-video-thumb span { position:absolute; bottom:7px; left:7px; background:#282a2ecc; color:white; border-radius:6px; padding:2px 6px; font-size:12px; }
.note-detail-photo video { display:block; width:100%; max-height:70vh; }
.note-comments { scroll-margin-top:74px; }
.note-comments .reply { border-bottom:1px solid var(--line); padding:12px 0; }
.note-comments .reply-child { margin-left:20px; padding-left:12px; border-left:2px solid var(--line); }
.reply header small { color:var(--muted); }
.reply .actions { margin:0; gap:5px; }
.reply [aria-pressed="true"] { color:#a33562; }
.reply .actions .btn { min-height:30px; padding:4px 8px; }
.taxonomy-tree, .taxonomy-tree ul { list-style:none; padding-left:18px; }
.taxonomy-tree ul { border-left:1px solid var(--line); }
.taxonomy-row { min-height:36px; }
.taxonomy-row span { margin-right:auto; }
@media (max-width:600px) {
  .discovery-place { gap:6px; }
  .discovery-place .field select { max-width:134px; }
  .note-card footer { flex-wrap:wrap; row-gap:2px; }
  .note-card .note-author { flex:1 1 50%; }
}
.support-switch { display: flex; gap: 4px; margin: 0 16px; border-bottom: 1px solid var(--line); }
.support-switch button { padding: 9px 12px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); }
.support-switch [aria-pressed="true"] { border-color: var(--purple); color: var(--deep); font-weight: 650; }
#support-content { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.support-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 16px; overflow-wrap: anywhere; }
.support-scroll h3 { margin: 12px 0 6px; }
.support-welcome, .support-message { width: fit-content; max-width: 90%; background: #f5f4f2; border-radius: 13px 13px 13px 3px; padding: 9px 12px; margin: 0 0 10px; }
.support-message.mine { margin-left: auto; background: #e9f0dc; border-radius: 13px 13px 3px 13px; }
.support-message small { font-size: 11px; color: var(--muted); }
.support-message p { margin: 2px 0 0; white-space: pre-wrap; }
.support-tools { padding: 9px 14px 14px; border-top: 1px solid var(--line); }
.support-actions, .support-shortcuts, .support-send { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.support-shortcuts { margin-bottom: 8px; }
.support-shortcuts .btn { min-height: 30px; font-size: 12px; padding: 4px 8px; background: #f6f6f5; }
.support-send { flex-wrap: nowrap; }
.support-send input { min-width: 0; flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.support-send .btn { flex-shrink: 0; }
.support-feedback, .support-status { margin: 0; padding: 3px 15px 9px; font-size: 13px; }
.support-feedback { color: #863849; }
.support-status { color: var(--muted); }
/* 星宠 admin: the 12 时辰 an NPC appears */
.hour-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(132px,1fr)); gap:8px 14px; border:0; margin:12px 0; padding:0; }
.hour-grid legend { font-size:0.91rem; font-weight:600; margin-bottom:8px; padding:0; }

.ad-placement { min-width: 0; overflow-wrap: anywhere; }
.ad-placement[hidden] { display: none; }
.ad-placement:not([data-ad-slot$=".feed"]) { margin-block: 16px; }
.ad-card {
  display: flex; align-items: center; gap: 16px; padding: 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fbfbfb; color: var(--ink); text-decoration: none;
}
a.ad-card:hover { border-color: var(--purple); }
.ad-image {
  display: block; flex: none; width: clamp(70px, 22%, 180px); aspect-ratio: 3 / 2;
  object-fit: cover; border-radius: 10px;
}
.ad-copy { display: grid; min-width: 0; gap: 4px; }
.ad-label { justify-self: start; color: var(--muted); padding: 0 5px; border: 1px solid #a5a9b1; border-radius: 4px; font-size: .72rem; }
.ad-copy strong { font-size: 1rem; color: var(--deep); }
.ad-description { color: var(--muted); font-size: .88rem; }
.grid > .ad-placement .ad-card, .note-grid > .ad-placement .ad-card {
  flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden;
}
.grid > .ad-placement .ad-image, .note-grid > .ad-placement .ad-image {
  width: 100%; aspect-ratio: 16 / 9; border-radius: 0;
}
.grid > .ad-placement .ad-copy, .note-grid > .ad-placement .ad-copy { padding: 14px; }

.ad-targeting { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.ad-targeting legend { padding-inline: 4px; font-weight: 650; }
.ad-target-modes { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ad-target-modes label, .ad-target-results label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.ad-targeting input[type="radio"], .ad-targeting input[type="checkbox"] { flex: none; width: 17px; height: 17px; margin: 0; }
.ad-targeting [data-target-picker] { margin-top: 12px; }
.ad-target-search { display: flex; align-items: end; gap: 8px; }
.ad-target-search .field { flex: 1; min-width: 0; }
.ad-target-results { max-height: 15rem; overflow-y: auto; }
.ad-target-results label, .ad-selected-targets > div { padding: 6px 2px; border-bottom: 1px solid var(--line); }
.ad-targeting strong, .ad-targeting small { display: block; overflow-wrap: anywhere; }
.ad-targeting small { color: var(--muted); font-size: .8rem; }
.ad-targeting [data-target-count] { margin: 10px 0 3px; font-weight: 600; }
.ad-targeting [data-target-status]:empty { display: none; }
.ad-targeting [hidden] { display: none; }
.ad-selected-targets > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Design pass (2026-12): lighter page titles, 广场 tab bar with search, event booking card,
   empty states that offer the next step, and a one-line note footer on phones. */
h1 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.heading-actions { margin-top: 0; }
.tab-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tab-bar > .tabs { border-bottom: 0; margin-bottom: -1px; }
.tab-bar > .search { margin-bottom: 8px; }
.tab-bar .search input { width: clamp(120px, 16vw, 220px); }
.empty-cta { display: grid; justify-items: center; gap: 12px; padding: 28px 22px; text-align: center; }
.empty-cta p { max-width: 46ch; }
.booking-card { padding: 22px; }
.event-layout > .booking-card { margin-bottom: 0; }
.booking-price { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.booking-price strong { font-size: 1.55rem; letter-spacing: -0.02em; line-height: 1.2; color: var(--deep); }
.booking-facts { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 13px; }
.booking-facts li { display: flex; align-items: flex-start; gap: 11px; }
.booking-facts .ic { flex: none; margin-top: 2px; color: var(--purple); }
.booking-facts span { display: grid; min-width: 0; }
.booking-facts b { font-weight: 620; overflow-wrap: anywhere; }
.booking-facts small { color: var(--muted); font-size: 0.82rem; }
.booking-meter { height: 6px; margin: 16px 0 2px; border-radius: 99px; background: #f2f2f0; overflow: hidden; }
.booking-meter span { display: block; height: 100%; border-radius: inherit; background: var(--purple); }
.booking-card .note { margin-top: 14px; }
.booking-actions { margin-top: 16px; }
.booking-actions > .btn.primary { flex: 1 1 auto; min-height: 46px; font-size: 1rem; }
.booking-actions > .tag { padding: 8px 14px; font-size: 0.9rem; }
.booking-terms { margin-top: 12px; color: var(--muted); font-size: 0.82rem; }
.booking-share { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 10px; border-top: 1px solid #f2f1ee; }
.booking-share .btn.quiet { color: var(--purple); padding-inline: 2px; }
@media (min-width: 721px) {
  .event-layout { grid-template-rows: auto 1fr; }
  .event-layout > .booking-card { grid-column: 2; grid-row: 1; }
  .event-layout > .event-main { grid-column: 1; grid-row: 1 / span 2; }
  .event-layout > aside { grid-column: 2; grid-row: 2; }
}
@media (max-width: 720px) {
  .tab-bar { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .tab-bar > .search { margin-bottom: 0; }
  .tab-bar .search input { width: 100%; }
  .heading-actions .btn { min-height: 36px; padding: 8px 13px; }
  /* The bottom bar's「我的」already leads to the account; keep the phone header to the brand. */
  .bar-right .account-link { display: none; }
  .booking-card { padding: 18px; }
}
@media (max-width: 600px) {
  .note-card footer { flex-wrap: nowrap; gap: 2px; }
  .note-card .note-author { flex: 1 1 auto; }
  .note-talk-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* Phones: event cards become compact rows (thumbnail + text) so a screen shows several events, not two. */
@media (max-width: 600px) {
  .grid:has(> .car-card) { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .car-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
  .car-card > .cover { min-height: 100%; overflow: hidden; }
  .car-card > .cover > .card-cover-image, .car-card > .cover > .poster { position: absolute; inset: 0; width: 100%; height: 100%; }
  .car-card .overlay-tag { top: 6px; left: 6px; right: auto; padding: 1px 7px; font-size: 0.7rem; }
  .car-card .card-body { padding: 10px 12px; }
  .car-card .eyeline .tag:nth-child(n + 2) { display: none; }
  .car-card h3 { margin: 4px 0 3px; font-size: 0.96rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .car-card .meta { display: block; margin: 2px 0; font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .car-card .meta .ic { vertical-align: -3px; margin-right: 4px; }
  .car-card footer { margin-top: 6px; padding-top: 6px; font-size: 0.8rem; }
}
