:root {
  --paper: #f2eee5;
  --paper-deep: #ece5d8;
  --cream: #f8f1e4;
  --white: #fffdf8;
  --ink: #1e2a26;
  --ink-soft: #52605a;
  --muted: #7a857f;
  --muted-light: #98a19b;
  --forest: #173a32;
  --forest-deep: #102c26;
  --coral: #ef7252;
  --coral-dark: #bf4f35;
  --mustard: #e8ba5c;
  --line: rgba(30, 42, 38, 0.13);
  --line-soft: rgba(30, 42, 38, 0.09);
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Songti SC", "STSong", "SimSun", serif;
  --font-body: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  --radius-lg: 26px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 3% -6%, rgba(232, 186, 92, 0.27), transparent 34rem),
    radial-gradient(circle at 95% 4%, rgba(239, 114, 82, 0.11), transparent 30rem),
    linear-gradient(180deg, #f5f0e7 0%, var(--paper) 54%, #eee8dc 100%);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.32;
  background-image: radial-gradient(rgba(30, 42, 38, 0.2) 0.55px, transparent 0.55px);
  background-size: 4px 4px;
  mix-blend-mode: multiply;
}

body > * {
  position: relative;
  z-index: 1;
}

::selection {
  color: var(--ink);
  background: rgba(232, 186, 92, 0.75);
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

svg {
  display: block;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 16px;
  padding: 10px 14px;
  color: var(--cream);
  background: var(--forest);
  border-radius: 8px;
  font-size: 0.8rem;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 64px), 1240px);
  margin: 0 auto;
  padding: 26px 0 22px;
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: none;
  width: 38px;
  height: 38px;
  color: #f1e6d2;
  background: var(--forest);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  place-items: center;
}

.brand-mark svg {
  width: 30px;
  height: 30px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.brand-divider {
  margin: 0 1px;
  color: rgba(30, 42, 38, 0.27);
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.brand-en {
  padding-top: 2px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.19em;
}

.server-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  color: var(--ink-soft);
  background: rgba(255, 253, 247, 0.55);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #3d9b72;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(61, 155, 114, 0.12);
  animation: status-pulse 2.4s ease-in-out infinite;
}

.server-pill.is-offline {
  color: var(--coral-dark);
  border-color: rgba(191, 79, 53, 0.25);
}

.server-pill.is-offline .status-dot {
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(239, 114, 82, 0.12);
  animation: none;
}

main {
  width: min(calc(100% - 64px), 1240px);
  margin: 0 auto;
}

.noscript {
  margin: 24px 0 -14px;
  padding: 12px 16px;
  color: #7a3728;
  background: rgba(239, 114, 82, 0.12);
  border: 1px solid rgba(191, 79, 53, 0.25);
  border-radius: 10px;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  line-height: 1.7;
}

.intro {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(54px, 8vw, 94px) 0 clamp(44px, 5vw, 62px);
}

.intro-main {
  max-width: 980px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  line-height: 1.7;
}

.eyebrow span {
  padding-right: 14px;
  color: var(--coral-dark);
  border-right: 1px solid var(--line);
  white-space: nowrap;
}

h1 {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-size: clamp(3.3rem, 7.45vw, 6.8rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.title-accent {
  position: relative;
  display: inline-block;
  color: var(--forest);
  font-style: normal;
  isolation: isolate;
}

.title-accent::after {
  position: absolute;
  z-index: -1;
  right: 0.01em;
  bottom: 0.015em;
  left: 0.02em;
  height: 0.105em;
  content: "";
  background: linear-gradient(90deg, rgba(239, 114, 82, 0.72), rgba(232, 186, 92, 0.52));
  border-radius: 999px;
  transform: rotate(-1.1deg);
}

.intro-copy {
  max-width: 480px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
  letter-spacing: 0.015em;
  line-height: 1.92;
}

.intro-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.stat strong {
  color: var(--forest);
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
}

.stat:last-child strong {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.stat span {
  color: var(--muted);
  font-size: 0.73rem;
  letter-spacing: 0.02em;
}

.stat-rule {
  width: 1px;
  height: 32px;
  background: var(--line);
}

.intro-stamp {
  position: relative;
  display: grid;
  flex: none;
  width: 152px;
  height: 152px;
  margin-bottom: 30px;
  color: rgba(30, 42, 38, 0.48);
  border: 1px solid rgba(30, 42, 38, 0.25);
  border-radius: 50%;
  transform: rotate(9deg);
  place-items: center;
}

.intro-stamp::before {
  position: absolute;
  inset: 8px;
  content: "";
  border: 1px dashed rgba(30, 42, 38, 0.21);
  border-radius: 50%;
}

.stamp-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stamp-label {
  color: rgba(22, 58, 50, 0.72);
  font-family: var(--font-display);
  font-size: 1.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-indent: 0.16em;
}

.stamp-sub {
  color: rgba(30, 42, 38, 0.4);
  font-family: var(--font-mono);
  font-size: 0.53rem;
  letter-spacing: 0.16em;
  line-height: 1.65;
  text-align: center;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: start;
  gap: clamp(22px, 3.2vw, 40px);
  padding-bottom: 88px;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

.section-kicker::before {
  margin-right: 7px;
  color: var(--coral);
  content: "•";
}

.composer .section-kicker::before {
  color: var(--mustard);
}

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.composer {
  position: sticky;
  top: 24px;
  padding: clamp(26px, 3.4vw, 40px);
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 104% -6%, rgba(232, 186, 92, 0.16), transparent 18rem),
    linear-gradient(155deg, #1a4036 0%, #14342c 52%, var(--forest-deep) 100%);
  border-radius: var(--radius-lg);
  box-shadow:
    0 26px 70px rgba(15, 38, 32, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.composer::before {
  position: absolute;
  top: -112px;
  right: -82px;
  width: 262px;
  height: 262px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(255, 255, 255, 0.017),
    0 0 0 64px rgba(255, 255, 255, 0.012);
}

.composer::after {
  position: absolute;
  bottom: -140px;
  left: -92px;
  width: 260px;
  height: 260px;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle, rgba(232, 186, 92, 0.13), transparent 68%);
}

.composer > * {
  position: relative;
  z-index: 1;
}

.composer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 23px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.composer .section-kicker {
  color: rgba(244, 234, 215, 0.43);
}

.composer h2 {
  color: var(--cream);
}

.composer-glyph {
  display: inline-block;
  color: var(--mustard);
  font-size: 1.45rem;
  line-height: 1;
  transform: rotate(-10deg);
}

.field + .field {
  margin-top: 24px;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.field-label-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(248, 241, 228, 0.84);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.045em;
}

.required-badge {
  padding: 3px 5px;
  color: var(--mustard);
  border: 1px solid rgba(232, 186, 92, 0.25);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 14px 15px;
  color: #fbf3e5;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
  font-size: 0.92rem;
  letter-spacing: 0.012em;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.field textarea {
  min-height: 158px;
  max-height: 320px;
  line-height: 1.75;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(248, 241, 228, 0.31);
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(255, 255, 255, 0.23);
}

.field input:focus,
.field textarea:focus {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(232, 186, 92, 0.8);
  box-shadow: 0 0 0 3px rgba(232, 186, 92, 0.12);
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: rgba(255, 154, 129, 0.88);
  box-shadow: 0 0 0 3px rgba(239, 114, 82, 0.1);
}

.field-hint,
.field-error {
  margin: 8px 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  line-height: 1.65;
}

.field-hint {
  color: rgba(244, 234, 215, 0.38);
}

.field-error {
  color: #ffb09c;
}

.field-error:empty {
  display: none;
}

.char-count {
  color: rgba(244, 234, 215, 0.36);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

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

.char-count.is-over-limit {
  color: #ffb09c;
}

.composer-foot {
  margin-top: 27px;
  padding-top: 21px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0 0 16px;
  color: rgba(244, 234, 215, 0.45);
  font-size: 0.69rem;
  letter-spacing: 0.012em;
  line-height: 1.65;
}

.privacy-note svg {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  color: rgba(244, 234, 215, 0.54);
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 15px 18px;
  color: #172c26;
  background: var(--coral);
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(239, 114, 82, 0.16);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.submit-btn:hover:not(:disabled) {
  background: #f58666;
  box-shadow: 0 12px 28px rgba(239, 114, 82, 0.22);
  transform: translateY(-1px);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.submit-btn:disabled {
  cursor: wait;
  opacity: 0.68;
}

.btn-icon {
  display: grid;
  flex: none;
  width: 22px;
  height: 22px;
  place-items: center;
}

.btn-icon svg {
  width: 19px;
  height: 19px;
}

.submit-btn.is-loading .btn-icon svg {
  display: none;
}

.submit-btn.is-loading .btn-icon::after {
  width: 15px;
  height: 15px;
  content: "";
  border: 1.8px solid rgba(23, 44, 38, 0.26);
  border-top-color: #172c26;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.board {
  padding: clamp(22px, 3vw, 34px);
  background: rgba(255, 252, 245, 0.67);
  border: 1px solid rgba(30, 42, 38, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 70px rgba(44, 37, 25, 0.065);
  backdrop-filter: blur(12px);
}

.board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.board .section-kicker {
  color: var(--coral-dark);
}

.board h2 {
  color: var(--ink);
}

.refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 1px;
  padding: 8px 12px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.refresh-btn svg {
  width: 13px;
  height: 13px;
}

.refresh-btn:hover:not(:disabled) {
  color: var(--ink);
  background: rgba(255, 253, 247, 0.82);
  border-color: rgba(30, 42, 38, 0.28);
}

.refresh-btn:disabled {
  cursor: wait;
  opacity: 0.55;
}

.refresh-btn.is-loading svg {
  animation: spin 0.9s linear infinite;
}

.board-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 23px 0 19px;
}

.board-rule span {
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}

.board-rule p {
  margin: 0;
  color: var(--muted-light);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message-card {
  position: relative;
  padding: 20px 22px 20px 24px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(30, 42, 38, 0.1);
  border-radius: 4px 16px 16px 16px;
  box-shadow: 0 5px 18px rgba(40, 34, 24, 0.035);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.message-card::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 3px;
  content: "";
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.message-card:hover {
  border-color: rgba(30, 42, 38, 0.17);
  box-shadow: 0 10px 28px rgba(40, 34, 24, 0.075);
  transform: translateY(-2px);
}

.message-card.is-fresh {
  animation: note-in 0.55s cubic-bezier(0.22, 0.8, 0.24, 1) both;
}

.tone-0 {
  --accent: #e87656;
  --avatar-bg: #f9e0d6;
  --avatar-ink: #a33c22;
}

.tone-1 {
  --accent: #d5a53d;
  --avatar-bg: #f5e8c6;
  --avatar-ink: #7b5a16;
}

.tone-2 {
  --accent: #5d9280;
  --avatar-bg: #dcebe3;
  --avatar-ink: #2d6553;
}

.tone-3 {
  --accent: #7391ad;
  --avatar-bg: #e1e8ef;
  --avatar-ink: #3d5e7d;
}

.message-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  display: grid;
  flex: none;
  width: 38px;
  height: 38px;
  color: var(--avatar-ink);
  background: var(--avatar-bg);
  border-radius: 50% 50% 50% 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  user-select: none;
  place-items: center;
}

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

.message-name {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.87rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.message-time {
  color: var(--muted-light);
  font-family: var(--font-mono);
  font-size: 0.59rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-decoration: none;
}

.message-index {
  margin-left: auto;
  color: rgba(30, 42, 38, 0.25);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.11em;
}

.message-content {
  margin: 14px 0 0 50px;
  overflow-wrap: anywhere;
  color: #3c4943;
  font-size: 0.92rem;
  letter-spacing: 0.012em;
  line-height: 1.82;
  white-space: pre-wrap;
}

.message-skeleton {
  padding: 20px 22px;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.68);
  border: 1px solid rgba(30, 42, 38, 0.08);
  border-radius: 4px 16px 16px 16px;
}

.skeleton-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 19px;
}

.skeleton-avatar {
  flex: none;
  width: 38px;
  height: 38px;
  background: #eae2d5;
  border-radius: 50% 50% 50% 10px;
}

.skeleton-line {
  display: block;
  width: 100%;
  height: 8px;
  margin-top: 11px;
  background: linear-gradient(90deg, #eae2d5 25%, #f5efe5 37%, #eae2d5 63%);
  background-size: 400% 100%;
  border-radius: 999px;
  animation: shimmer 1.65s ease infinite;
}

.skeleton-name {
  width: 92px;
  height: 9px;
  margin-top: 0;
}

.skeleton-name--wide {
  width: 122px;
}

.skeleton-line--short {
  width: 61%;
}

.empty-state {
  padding: 28px 16px 14px;
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 66px;
  height: 66px;
  margin: 0 auto 17px;
  color: var(--coral);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(30, 42, 38, 0.13);
  border-radius: 50%;
  place-items: center;
}

.empty-icon svg {
  width: 34px;
  height: 34px;
}

.empty-state h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.empty-state p {
  max-width: 260px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  line-height: 1.8;
}

.load-error {
  padding: 26px 22px;
  text-align: center;
  background: rgba(255, 250, 242, 0.8);
  border: 1px dashed rgba(191, 79, 53, 0.34);
  border-radius: 4px 16px 16px 16px;
}

.load-error strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.load-error p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.75;
}

.board-end {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.board-end span {
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}

.board-end p {
  margin: 0;
  color: var(--muted-light);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.03em;
  line-height: 1.5;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  width: min(calc(100% - 64px), 1240px);
  margin: 0 auto;
  padding: 22px 0 32px;
  color: var(--muted-light);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  line-height: 1.7;
}

.site-footer p {
  margin: 0;
}

.site-footer span {
  margin: 0 5px;
  color: var(--coral);
}

.toast {
  position: fixed;
  z-index: 50;
  bottom: 26px;
  left: 50%;
  max-width: calc(100vw - 32px);
  padding: 11px 18px;
  color: var(--cream);
  background: var(--ink);
  border-radius: 999px;
  box-shadow: 0 12px 38px rgba(30, 42, 38, 0.24);
  font-size: 0.76rem;
  letter-spacing: 0.015em;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

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

.toast.is-error {
  background: #8d3929;
}

@keyframes status-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(61, 155, 114, 0.12);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(61, 155, 114, 0.04);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@keyframes note-in {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1120px) {
  .intro-stamp {
    width: 132px;
    height: 132px;
    margin-bottom: 18px;
  }

  .stamp-label {
    font-size: 1.48rem;
  }

  .intro-stats {
    gap: 18px;
  }

  .stat {
    gap: 8px;
  }
}

@media (max-width: 960px) {
  .intro-stamp {
    display: none;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-bottom: 64px;
  }

  .composer {
    position: static;
  }

  .intro {
    padding-top: 54px;
  }

  h1 {
    font-size: clamp(3.1rem, 9vw, 5.5rem);
  }
}

@media (max-width: 700px) {
  .site-header,
  main,
  .site-footer {
    width: calc(100% - 36px);
  }

  .site-header {
    padding: 19px 0 17px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 33px;
    height: 33px;
  }

  .brand-mark svg {
    width: 26px;
    height: 26px;
  }

  .brand-name {
    font-size: 1.28rem;
  }

  .brand-en,
  .brand-divider {
    display: none;
  }

  .server-pill {
    gap: 7px;
    padding: 7px 11px;
    font-size: 0.6rem;
  }

  .intro {
    padding: 46px 0 38px;
  }

  .eyebrow {
    display: block;
    font-size: 0.55rem;
    letter-spacing: 0.11em;
    line-height: 1.9;
  }

  .eyebrow span {
    margin-right: 10px;
    padding-right: 10px;
  }

  h1 {
    margin-top: 17px;
    font-size: clamp(2.55rem, 12.5vw, 4.4rem);
    letter-spacing: -0.065em;
  }

  .intro-copy {
    margin-top: 22px;
    font-size: 0.88rem;
    line-height: 1.85;
  }

  .intro-stats {
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-top: 27px;
    padding-top: 20px;
    border-top: 1px solid var(--line-soft);
  }

  .stat {
    gap: 7px;
  }

  .stat strong {
    font-size: 1.65rem;
  }

  .stat:last-child strong {
    font-size: 1rem;
  }

  .stat span {
    font-size: 0.67rem;
  }

  .stat-rule {
    height: 24px;
  }

  .composer,
  .board {
    border-radius: 22px;
  }

  .composer {
    padding: 24px 20px;
  }

  .composer-head {
    margin-bottom: 24px;
    padding-bottom: 19px;
  }

  h2 {
    font-size: 1.65rem;
  }

  .field input,
  .field textarea {
    font-size: 16px;
  }

  .field textarea {
    min-height: 146px;
  }

  .board {
    padding: 21px 18px;
  }

  .refresh-btn span {
    display: none;
  }

  .refresh-btn {
    width: 33px;
    height: 33px;
    padding: 0;
    justify-content: center;
  }

  .board-rule {
    margin: 20px 0 16px;
  }

  .message-card {
    padding: 17px 17px 18px 20px;
  }

  .message-top {
    gap: 10px;
  }

  .avatar {
    width: 34px;
    height: 34px;
    font-size: 0.92rem;
  }

  .message-content {
    margin: 12px 0 0;
    font-size: 0.9rem;
    line-height: 1.78;
  }

  .message-index {
    display: none;
  }

  .message-skeleton {
    padding: 17px 19px;
  }

  .board-end p {
    font-size: 0.53rem;
  }

  .site-footer {
    flex-direction: column;
    gap: 4px;
    padding-bottom: 24px;
    font-size: 0.55rem;
  }

  .toast {
    bottom: 18px;
    font-size: 0.73rem;
  }
}

@media (max-width: 390px) {
  .server-pill {
    padding: 7px 9px;
  }

  .intro-stats {
    display: block;
  }

  .stat + .stat {
    margin-top: 11px;
  }

  .stat-rule {
    display: none;
  }

  .composer {
    padding: 22px 17px;
  }

  .board {
    padding: 20px 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
