/* 111.one Exact Font Faces (Latin + Display + Thai + CJK Picker) */
@font-face {
  font-family: "one font";
  src: url("/fonts/latin/one-font-reg-s0.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+20-21, U+24, U+27, U+2A, U+2D, U+3C, U+3F, U+41, U+46, U+4C, U+50, U+54, U+56-57, U+59, U+5D, U+60-61, U+65, U+6F, U+72, U+79, U+7B, U+7E, U+C0-C6, U+DD, U+E0-E5, U+E8-EB, U+F0, U+F2-F8, U+FD-105, U+2010-2011, U+2013-2014, U+2018-201A, U+201C-201E, U+2044, U+2190-2193;
}
@font-face {
  font-family: "one font";
  src: url("/fonts/latin/one-font-reg-s1.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+22, U+25, U+28, U+2B, U+30, U+32, U+34, U+36, U+38, U+3A, U+3D, U+40, U+42-45, U+47-49, U+4B, U+4D, U+5B, U+5E, U+62-64, U+66-69, U+6B, U+6D, U+7C, U+A0-AF, U+C7-D0, U+2020-2022, U+2026, U+202F;
}
@font-face {
  font-family: "one font";
  src: url("/fonts/latin/one-font-reg-s2.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+23, U+26, U+29, U+2C, U+2E-2F, U+31, U+33, U+35, U+37, U+39, U+3B, U+3E, U+4A, U+4E-4F, U+51-53, U+55, U+58, U+5A, U+5C, U+5F, U+6A, U+6C, U+6E, U+70-71, U+73-78, U+7A, U+7D, U+B0-BF;
}
@font-face {
  font-family: "one font";
  src: url("/fonts/latin/one-font-bold-s0.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+20-21, U+24, U+27, U+2A, U+2D, U+3C, U+3F, U+41, U+46, U+4C, U+50, U+54, U+56-57, U+59, U+5D, U+60-61, U+65, U+6F, U+72, U+79, U+7B, U+7E, U+2010-2014, U+2018-201E;
}
@font-face {
  font-family: "one font";
  src: url("/fonts/latin/one-font-bold-s1.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+22, U+25, U+28, U+2B, U+30, U+32, U+34, U+36, U+38, U+3A, U+3D, U+40, U+42-45, U+47-49, U+4B, U+4D, U+5B, U+5E, U+62-64, U+66-69, U+6B, U+6D, U+7C, U+2020-2026;
}
@font-face {
  font-family: "one font";
  src: url("/fonts/latin/one-font-bold-s2.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+23, U+26, U+29, U+2C, U+2E-2F, U+31, U+33, U+35, U+37, U+39, U+3B, U+3E, U+4A, U+4E-4F, U+51-53, U+55, U+58, U+5A, U+5C, U+5F, U+6A, U+6C, U+6E, U+70-71, U+73-78, U+7A, U+7D;
}
@font-face {
  font-family: "one font Display";
  src: url("/fonts/latin/one-font-disp-s0.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+20-21, U+24, U+27, U+2A, U+2D, U+3C, U+3F, U+41, U+46, U+4C, U+50, U+54, U+56-57, U+59, U+5D, U+60-61, U+65, U+6F, U+72, U+79, U+7B, U+7E;
}
@font-face {
  font-family: "one font Display";
  src: url("/fonts/latin/one-font-disp-s1.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+22, U+25, U+28, U+2B, U+30, U+32, U+34, U+36, U+38, U+3A, U+3D, U+40, U+42-45, U+47-49, U+4B, U+4D, U+5B, U+5E, U+62-64, U+66-69, U+6B, U+6D, U+7C;
}
@font-face {
  font-family: "one font Display";
  src: url("/fonts/latin/one-font-disp-s2.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+23, U+26, U+29, U+2C, U+2E-2F, U+31, U+33, U+35, U+37, U+39, U+3B, U+3E, U+4A, U+4E-4F, U+51-53, U+55, U+58, U+5A, U+5C, U+5F, U+6A, U+6C, U+6E, U+70-71, U+73-78, U+7A, U+7D;
}
@font-face {
  font-family: "one font Thai";
  src: url("/fonts/111-one-display-thai-rounded-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  ascent-override: 107%;
  descent-override: 28%;
  line-gap-override: 0%;
  unicode-range: U+0E00-0E7F, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "one font Thai";
  src: url("/fonts/111-one-display-thai-rounded.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  ascent-override: 107%;
  descent-override: 28%;
  line-gap-override: 0%;
  unicode-range: U+0E00-0E7F, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "one font CJK name";
  src: url("/fonts/cjk/one-cjk-name-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  ascent-override: 107%;
  descent-override: 28%;
  line-gap-override: 0%;
  unicode-range: U+4E2D, U+4F53, U+6587, U+65E5, U+672C, U+7B80, U+7E41, U+8A9E, U+9AD4;
}

:root {
  color-scheme: dark;
  --ink: #eef2f9;
  --body: #b8c3d3;
  --muted: #8290a4;
  --brand-blue: #9bcaff;
  --accent: #82b8ff;
  --jade-red: #e54842;
  --paper: #0a0c10;
  --surface: #131722;
  --surface-elevated: #171c28;
  --surface-hover: #1c2231;
  --line: rgb(255 255 255 / .08);
  --panel-radius: 20px;
  --panel-border: rgb(255 255 255 / .10);
  --panel-border-top: rgb(255 255 255 / .15);
  --on-accent: #0c1c32;
  --sans: "PingFang SC", "Noto Sans SC", "Noto Sans Thai", -apple-system, BlinkMacSystemFont, sans-serif;
  --site-font: "one font", "one font Thai", "one font CJK", "one font CJK name", var(--sans);
  --heading-font: "one font Display", var(--site-font);
  font-family: var(--site-font);
  font-size: 100%;
  color: var(--ink);
  background-color: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-width: 280px;
  min-height: 100svh;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 76% 34% at 50% -6%, rgb(229 72 66 / .065) 0%, transparent 58%),
    radial-gradient(ellipse 68% 30% at 50% 0%, rgb(118 164 238 / .06) 0%, transparent 72%),
    linear-gradient(180deg, #0d1017 0%, #090b10 48%, #080a0e 100%);
  background-repeat: no-repeat;
  background-size: 100% 100svh, 100% 100svh, 100% 100%;
}

#main { flex: 1 0 auto; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap { width: min(1140px, calc(100% - 48px)); margin-inline: auto; }
.hero-column { max-inline-size: 46rem; margin-inline: auto; }
.page-column { max-inline-size: 46rem; margin-inline: auto; }

.site-panel {
  border: 1px solid var(--panel-border);
  border-top-color: var(--panel-border-top);
  border-radius: var(--panel-radius);
  background: linear-gradient(172deg, #161b26 0%, #11151e 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .07),
    0 1px 2px rgb(0 0 0 / .44),
    0 14px 36px -10px rgb(0 0 0 / .52);
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgb(10 12 16 / .82);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  min-height: 64px;
  align-items: center;
  gap: 1rem;
}
.brand-link { display: inline-flex; align-items: center; padding: .2rem 0; }
.brand-link img { height: 36px; width: auto; }

.header-navigation {
  display: flex;
  justify-content: center;
  gap: .3rem;
  color: var(--body);
}
.header-navigation a {
  padding: .48rem .88rem;
  border-radius: 999px;
  font-size: .92rem;
  transition: background-color .15s ease, color .15s ease;
}
.header-navigation a:hover {
  color: var(--ink);
  background: rgb(255 255 255 / .065);
}
.header-navigation a[aria-current="page"] {
  color: var(--ink);
  background: rgb(138 180 248 / .13);
  box-shadow: inset 0 0 0 1px rgb(138 180 248 / .18);
}

.site-tools {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.lang-switcher {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgb(255 255 255 / .045);
  border: 1px solid var(--line);
}
.lang-pill {
  padding: .28rem .58rem;
  border-radius: 999px;
  font-size: .8rem;
  color: var(--muted);
  transition: all .15s ease;
}
.lang-pill:hover { color: var(--ink); }
.lang-pill.is-active {
  color: var(--ink);
  background: rgb(255 255 255 / .11);
  font-weight: 600;
}

.nav-passport {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: rgb(255 255 255 / .04);
  color: var(--ink);
  font-size: .88rem;
  cursor: pointer;
  list-style: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.nav-passport::-webkit-details-marker { display: none; }
.nav-passport:hover {
  background: rgb(255 255 255 / .08);
  border-color: rgb(255 255 255 / .18);
}
.passport-menu { position: relative; }
.passport-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + .5rem);
  min-width: 164px;
  padding: .45rem;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  z-index: 40;
}
.passport-menu-panel a,
.passport-menu-panel button {
  text-align: left;
  padding: .52rem .75rem;
  border-radius: 9px;
  border: 0;
  background: transparent;
  color: var(--body);
  font-size: .88rem;
  cursor: pointer;
}
.passport-menu-panel a:hover,
.passport-menu-panel button:hover {
  color: var(--ink);
  background: rgb(255 255 255 / .07);
}

/* Hero AI Search */
.hero-wrap { padding-block: 3.1rem 1.4rem; }
.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.75rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--muted);
  font-size: .79rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jade-red);
  box-shadow: 0 0 10px rgb(229 72 66 / .65);
}
.hero-logo-stage {
  margin-block: 1rem .85rem;
}
.hero-logo-img {
  width: min(370px, 76vw);
  height: auto;
}
.hero-subtitle {
  max-width: 38rem;
  color: var(--body);
  font-size: .98rem;
  line-height: 1.68;
}

.ask-composer {
  padding: 1rem 1.15rem .9rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ask-composer:focus-within {
  border-color: rgb(155 202 255 / .38);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .09),
    0 0 0 3px rgb(130 184 255 / .10),
    0 18px 42px -12px rgb(0 0 0 / .6);
}
#ask-input {
  width: 100%;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.62;
  min-height: 3.4rem;
}
#ask-input::placeholder { color: var(--muted); }

.ask-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding-top: .75rem;
  margin-top: .45rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.ask-controls {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  min-width: 0;
}
.model-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .65rem;
  border-radius: 999px;
  background: rgb(255 255 255 / .045);
  border: 1px solid var(--line);
  font-size: .81rem;
  color: var(--body);
}
.model-prefix { color: var(--muted); }
#ask-model {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: .81rem;
  outline: none;
  cursor: pointer;
  max-width: 11.5rem;
}
#ask-model option { background: #131722; color: var(--ink); }
.auto-post-note {
  color: var(--muted);
  font-size: .8rem;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  min-height: 42px;
  padding: .55rem 1.15rem;
  border: 1px solid rgb(214 234 255 / .32);
  border-radius: 999px;
  background: linear-gradient(180deg, #b4d5fe 0%, #98c2f8 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .46),
    inset 0 -1px 0 rgb(14 42 84 / .16),
    0 2px 6px rgb(0 0 0 / .34);
  color: var(--on-accent);
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease, filter .15s ease;
}
.primary-button:hover:not(:disabled) { filter: brightness(1.06); }
.primary-button:disabled { opacity: .55; cursor: wait; }
.full-width { width: 100%; }

.secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .42rem .82rem;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: rgb(255 255 255 / .05);
  color: var(--ink);
  font-size: .84rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease;
}
.secondary-btn:hover {
  background: rgb(255 255 255 / .1);
  border-color: rgb(255 255 255 / .2);
}

.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .9rem;
}
.prompt-chip {
  text-align: left;
  padding: .44rem .82rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgb(19 23 34 / .75);
  color: var(--body);
  font-size: .82rem;
  cursor: pointer;
  transition: all .15s ease;
}
.prompt-chip:hover {
  color: var(--ink);
  border-color: rgb(155 202 255 / .28);
  background: var(--surface-hover);
}

/* Live Streaming Stage */
.live-stage {
  margin-top: 1.25rem;
  padding: 1.2rem 1.35rem;
  border-color: rgb(155 202 255 / .28);
}
.live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .8rem;
  flex-wrap: wrap;
}
.live-status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .84rem;
  color: var(--brand-blue);
  font-weight: 600;
}
.live-status.is-done { color: #5ad49a; }
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.25s ease-in-out infinite;
}
.live-status.is-done .pulse-dot { animation: none; }
@keyframes pulse {
  0%, 100% { opacity: .35; transform: scale(.88); }
  50% { opacity: 1; transform: scale(1.12); }
}
.live-actions { display: flex; gap: .45rem; }

/* Feed Section & Q&A Cards */
.feed-section { padding-block: 1.4rem 4.2rem; }
.community-top { padding-top: 2.2rem; }
.community-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}
.section-h1 {
  margin-top: .35rem;
  font-family: var(--heading-font);
  font-size: 1.65rem;
}
.note-composer-drawer summary { list-style: none; }
.note-composer-drawer summary::-webkit-details-marker { display: none; }
.note-form {
  margin-top: .75rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  width: min(440px, 90vw);
}
.note-form input, .note-form textarea,
.reply-composer textarea, .profile-form input, .profile-form textarea {
  width: 100%;
  padding: .65rem .8rem;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: rgb(9 11 16 / .65);
  color: var(--ink);
  outline: none;
}
.note-actions, .reply-bar { display: flex; justify-content: flex-end; }

.feed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  margin-bottom: .9rem;
  flex-wrap: wrap;
}
.feed-tabs { display: flex; gap: .4rem; }
.feed-tab {
  padding: .46rem .95rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 600;
  transition: all .15s ease;
}
.feed-tab:hover { color: var(--ink); }
.feed-tab.is-active {
  color: var(--ink);
  background: rgb(255 255 255 / .08);
}
.feed-search input {
  padding: .46rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: rgb(19 23 34 / .8);
  color: var(--ink);
  font-size: .86rem;
  min-width: 220px;
  outline: none;
}
.feed-search input:focus { border-color: rgb(155 202 255 / .38); }

.tags-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
  margin-bottom: 1.15rem;
}
.filter-tag, .tag-chip {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  padding: .3rem .72rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgb(255 255 255 / .03);
  color: var(--body);
  font-size: .8rem;
  transition: all .15s ease;
}
.filter-tag:hover, .tag-chip:hover, .filter-tag.is-active {
  color: var(--ink);
  border-color: rgb(155 202 255 / .28);
  background: rgb(138 180 248 / .12);
}
.filter-tag small { color: var(--muted); }

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.qa-card {
  padding: 1.25rem 1.4rem 1.05rem;
  transition: border-color .18s ease;
}
.qa-card:hover { border-color: rgb(255 255 255 / .16); }
.qa-card.is-fresh {
  animation: cardSlideIn .38s cubic-bezier(.2, .8, .2, 1);
  border-color: rgb(155 202 255 / .35);
}
@keyframes cardSlideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.qa-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .85rem;
  flex-wrap: wrap;
}
.author-chip {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.avatar-dot {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--avatar-bg, #5b8def);
  color: #fff;
  font-family: var(--heading-font);
  font-size: .88rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .3);
  flex: none;
}
.avatar-dot--sm { width: 24px; height: 24px; font-size: .74rem; }
.avatar-dot--lg { width: 58px; height: 58px; font-size: 1.45rem; }

.author-meta { display: flex; align-items: baseline; gap: .42rem; flex-wrap: wrap; }
.author-name { font-size: .92rem; color: var(--ink); }
.author-handle { font-size: .82rem; color: var(--muted); }

.qa-head-right {
  display: flex;
  align-items: center;
  gap: .55rem;
}
.ai-pill {
  padding: .2rem .58rem;
  border-radius: 999px;
  background: rgb(130 184 255 / .11);
  border: 1px solid rgb(130 184 255 / .2);
  color: var(--brand-blue);
  font-size: .75rem;
  font-weight: 600;
}
.post-time { color: var(--muted); font-size: .8rem; }

.qa-question {
  display: flex;
  align-items: flex-start;
  gap: .58rem;
  font-family: var(--heading-font);
  font-size: 1.14rem;
  line-height: 1.48;
  color: var(--ink);
  margin-bottom: .75rem;
}
.qa-question a { display: flex; align-items: flex-start; gap: .58rem; }
.qa-question a:hover { color: var(--brand-blue); }
.q-mark {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  margin-top: .12rem;
  border-radius: 6px;
  background: rgb(229 72 66 / .18);
  border: 1px solid rgb(229 72 66 / .36);
  color: #ff8b86;
  font-size: .78rem;
  font-weight: 700;
  flex: none;
}

.qa-answer {
  color: var(--body);
  font-size: .97rem;
  line-height: 1.82;
}
.qa-answer strong {
  color: var(--ink);
  font-weight: 680;
}
.qa-subhead {
  margin: .9rem 0 .35rem;
  color: var(--ink);
  font-family: var(--heading-font);
  font-size: .98rem;
  font-weight: 700;
}
.qa-answer p + p,
.qa-answer p + .qa-list,
.qa-answer .qa-list + p { margin-top: .7rem; }
.qa-list {
  margin: .45rem 0;
  padding-left: 1.25rem;
}
.qa-list li + li { margin-top: .35rem; }

.text-toggle {
  margin-top: .5rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-blue);
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
}
.text-toggle:hover { text-decoration: underline; }

.qa-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .85rem;
}

.qa-card-foot {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .95rem;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
}
.foot-action {
  display: inline-flex;
  align-items: center;
  gap: .36rem;
  padding: .34rem .7rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .83rem;
  cursor: pointer;
  transition: all .15s ease;
}
.foot-action:hover {
  color: var(--ink);
  background: rgb(255 255 255 / .06);
}
.like-btn.is-liked {
  color: #ff6b6b;
  background: rgb(229 72 66 / .12);
}
.like-btn.is-liked svg { fill: currentColor; }

.empty-feed {
  padding: 2.6rem 1.5rem;
  text-align: center;
  color: var(--muted);
}

/* Detail & Profile Pages */
.detail-section { padding-block: 2rem 4.2rem; }
.backlink {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--brand-blue);
  font-size: .9rem;
}
.replies-section { margin-top: 2rem; }
.replies-title {
  font-size: 1.05rem;
  margin-bottom: .9rem;
}
.reply-composer {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin-bottom: 1.15rem;
}
.replies-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.reply-item { padding: 1rem 1.2rem; }
.reply-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .55rem;
}
.reply-body { color: var(--body); font-size: .94rem; line-height: 1.72; }
.empty-replies { color: var(--muted); font-size: .9rem; padding: .8rem 0; }

.profile-card { padding: 1.5rem; margin-bottom: 1.25rem; }
.profile-top { display: flex; align-items: center; gap: 1.15rem; }
.profile-info h1 { font-size: 1.4rem; }
.profile-bio { margin-top: .45rem; color: var(--body); font-size: .92rem; }
.profile-stats {
  display: flex;
  gap: .5rem;
  margin-top: .6rem;
  color: var(--muted);
  font-size: .86rem;
}
.profile-stats strong { color: var(--ink); }
.profile-editor { margin-top: 1rem; }
.profile-editor summary { list-style: none; display: inline-flex; }
.profile-editor summary::-webkit-details-marker { display: none; }
.profile-form {
  margin-top: .9rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.profile-form label { display: flex; flex-direction: column; gap: .32rem; font-size: .84rem; color: var(--muted); }

/* Game-Style Character Handle Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgb(4 6 10 / .74);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 1rem;
}
.modal-card {
  width: min(440px, 100%);
  padding: 1.5rem 1.55rem 1.35rem;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .65rem;
}
.modal-head h2 { font-size: 1.22rem; }
.icon-close {
  border: 0;
  background: rgb(255 255 255 / .06);
  color: var(--muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
}
.icon-close:hover { color: var(--ink); background: rgb(255 255 255 / .12); }
.modal-desc {
  color: var(--body);
  font-size: .9rem;
  line-height: 1.6;
  margin-bottom: 1.1rem;
}
.field-label {
  display: block;
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: .42rem;
}
.handle-input-row {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .4rem .35rem .8rem;
  border-radius: 14px;
  border: 1px solid var(--panel-border);
  background: rgb(8 10 15 / .8);
}
.handle-input-row:focus-within {
  border-color: rgb(155 202 255 / .45);
}
.at-prefix {
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 1.02rem;
}
.handle-input-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--heading-font);
  font-size: 1.05rem;
  letter-spacing: .01em;
}
.standalone-input, .optional-pw input {
  width: 100%;
  margin-top: .65rem;
  padding: .68rem .85rem;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: rgb(8 10 15 / .8);
  color: var(--ink);
  outline: none;
}
.field-hint {
  min-height: 1.25rem;
  margin: .38rem 0 .5rem;
  font-size: .79rem;
  color: var(--muted);
}
.field-hint.is-ok { color: #5ad49a; }
.field-hint.is-bad { color: #ff7b76; }

.optional-pw {
  margin-bottom: 1rem;
  font-size: .83rem;
  color: var(--muted);
}
.optional-pw summary { cursor: pointer; user-select: none; }
.form-error {
  margin-bottom: .75rem;
  color: #ff7b76;
  font-size: .84rem;
}
.modal-switch-row {
  margin-top: .85rem;
  text-align: center;
}
.link-btn {
  border: 0;
  background: none;
  color: var(--brand-blue);
  font-size: .84rem;
  cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  background: rgb(9 11 16 / .86);
  padding-block: 1.15rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: .82rem;
  flex-wrap: wrap;
}
.footer-langs { display: flex; gap: .45rem; }
.footer-langs a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .wrap { width: calc(100% - 28px); }
  .topbar-inner {
    grid-template-columns: auto auto;
    grid-template-areas:
      "brand tools"
      "nav nav";
    padding-block: .45rem;
    gap: .4rem;
  }
  .brand-link { grid-area: brand; }
  .site-tools { grid-area: tools; justify-self: end; }
  .header-navigation {
    grid-area: nav;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: .2rem;
  }
  .auto-post-note { display: none; }
  .hero-wrap { padding-block: 2rem 1rem; }
  .qa-card { padding: 1.05rem 1.05rem .9rem; }
}
