:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #070707;
  color: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 77, 22, 0.13), transparent 25rem),
    #070707;
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  width: min(100% - 32px, 620px);
  margin: 0 auto;
  padding: 38px 0 56px;
}

.hero {
  text-align: center;
}

.brand {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 18px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin: 14px 0 8px;
  font-size: clamp(1.9rem, 6vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.lead {
  width: min(100%, 440px);
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.93rem;
  font-weight: 560;
  line-height: 1.5;
}

.wall-card {
  margin-top: 26px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(12, 12, 12, 0.92);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.36);
}

.wall-heading,
.form-footer,
.message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

h2 {
  margin-bottom: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.quiet-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 750;
}

.identity {
  margin: 14px 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
}

.identity strong {
  color: #ff8a63;
}

.wall-form label {
  display: block;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.74rem;
  font-weight: 750;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 86px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  outline: none;
  background: rgba(0, 0, 0, 0.42);
  color: white;
  font-size: 0.9rem;
  line-height: 1.5;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea:focus {
  border-color: rgba(255, 92, 38, 0.74);
  box-shadow: 0 0 0 4px rgba(255, 75, 22, 0.1);
}

textarea:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.form-footer {
  margin-top: 12px;
}

#character-count {
  color: rgba(255, 255, 255, 0.37);
  font-size: 0.75rem;
  font-weight: 800;
}

#send-button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #ff4b16, #ff7847);
  color: white;
  font-size: 0.77rem;
  font-weight: 850;
  box-shadow: 0 10px 22px rgba(255, 75, 22, 0.16);
}

#send-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.7);
  opacity: 0.5;
}

.form-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: #ff9977;
  font-size: 0.82rem;
  font-weight: 760;
}

.form-status.success {
  color: #7ee2ad;
}

.wall-divider {
  height: 1px;
  margin: 18px 0;
  background: rgba(255, 255, 255, 0.08);
}

.messages {
  display: grid;
  gap: 9px;
}

.message {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.028);
}

.message-author {
  color: #ff8a63;
  font-size: 0.8rem;
  font-weight: 900;
}

.message-time {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.7rem;
  font-weight: 750;
}

.message-body,
.admin-reply p {
  margin: 10px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.73);
  font-size: 0.84rem;
  font-weight: 560;
  line-height: 1.55;
}

.admin-reply {
  margin-top: 10px;
  padding: 10px 11px;
  border-left: 3px solid #ff5b24;
  border-radius: 7px 14px 14px 7px;
  background: rgba(255, 75, 22, 0.08);
}

.admin-reply strong {
  color: #ff9b78;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-reply p {
  margin-top: 6px;
}

.empty-state {
  margin: 0;
  padding: 18px 8px;
  color: rgba(255, 255, 255, 0.37);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 650;
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 20px, 620px);
    padding: 26px 0 38px;
  }

  .wall-card {
    margin-top: 22px;
    padding: 16px;
    border-radius: 17px;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  #send-button {
    width: 100%;
  }
}
