* {
  box-sizing: border-box;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 4px solid rgba(103, 77, 168, 0.30);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 10px;
  z-index: 100;

  width: calc(100% - 28px);
  max-width: var(--observer-max);

  margin: 10px auto 0;
  padding: 13px 18px;

  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;

  border: 1px solid var(--observer-line);
  border-radius: 23px;

  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(22px) saturate(150%);

  box-shadow: var(--observer-shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;

  color: #59418b;
  text-decoration: none;
  font-weight: 950;
  white-space: nowrap;
}

.brand-icon {
  width: 50px;
  height: 42px;

  display: grid;
  place-items: center;

  border-radius: 18px;

  background:
    linear-gradient(145deg, #ffffff, #eee7ff);

  box-shadow:
    0 7px 17px rgba(75, 53, 113, 0.13);

  font-size: 26px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a {
  min-height: 42px;

  display: inline-flex;
  align-items: center;
  gap: 7px;

  padding: 9px 13px;
  border-radius: 999px;

  color: #5f5874;
  text-decoration: none;
  font-weight: 820;
}

.site-nav a:hover,
.site-nav a.current {
  color: #573d88;
  background: rgba(130, 98, 200, 0.12);
}

.sign-in {
  min-height: 43px;

  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;

  padding: 9px 18px;
  border-radius: 999px;

  color: #ffffff;
  text-decoration: none;
  font-weight: 900;

  background:
    linear-gradient(135deg, #795bc2, #ae79e1);

  box-shadow:
    0 11px 24px rgba(109, 74, 175, 0.25);
}

main {
  width: calc(100% - 28px);
  max-width: var(--observer-max);

  margin: 18px auto 0;
}

.community-hero {
  position: relative;
  overflow: hidden;

  min-height: 585px;

  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: center;

  padding: clamp(35px, 5vw, 82px);

  border: 1px solid var(--observer-line);
  border-radius: var(--observer-radius-xl);

  background:
    radial-gradient(
      circle at 14% 13%,
      rgba(255, 255, 255, 0.96),
      transparent 35%
    ),
    radial-gradient(
      circle at 86% 18%,
      rgba(255, 255, 255, 0.90),
      transparent 38%
    ),
    linear-gradient(
      135deg,
      rgba(255, 219, 237, 0.93),
      rgba(231, 222, 255, 0.91) 46%,
      rgba(207, 243, 255, 0.91)
    );

  box-shadow: var(--observer-shadow);
}

.community-hero::before,
.community-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;

  width: 475px;
  height: 225px;
  bottom: -118px;

  border-radius: 50%;
  background: rgba(255, 255, 255, 0.87);
}

.community-hero::before {
  left: -95px;
}

.community-hero::after {
  right: -105px;
}

.hero-copy,
.community-constellation {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;

  color: #7555b6;

  font-size: 0.82rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-weight: 950;
}

.community-hero h1 {
  margin: 0;

  color: #4d3975;

  font-size: clamp(3.5rem, 7vw, 7.6rem);
  line-height: 0.91;
  letter-spacing: -0.07em;
}

.community-hero h1 span {
  display: block;

  margin-top: 16px;

  color: #d94f8a;

  font-size: 0.40em;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero-lead {
  max-width: 760px;

  margin: 25px 0 0;

  color: #5d5870;

  font-size: clamp(1rem, 1.55vw, 1.24rem);
  line-height: 1.72;
  font-weight: 620;
}

.hero-actions {
  margin-top: 29px;

  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.community-constellation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.constellation-card {
  --constellation-color: #8e65bd;
  --constellation-soft: rgba(142, 101, 189, 0.14);

  position: relative;
  overflow: hidden;

  min-height: 190px;

  padding: 24px;

  border: 1px solid var(--observer-line);
  border-radius: 27px;

  background: rgba(255, 255, 255, 0.91);

  box-shadow:
    0 15px 36px rgba(72, 52, 108, 0.12);
}

.constellation-card::after {
  content: "";

  position: absolute;
  width: 145px;
  height: 145px;

  right: -57px;
  bottom: -61px;

  border-radius: 50%;
  background: var(--constellation-soft);
}

.constellation-icon {
  position: relative;
  z-index: 1;

  display: block;
  margin-bottom: 15px;

  font-size: 3rem;
}

.constellation-card h2 {
  position: relative;
  z-index: 1;

  margin: 0;

  color: var(--constellation-color);
  font-size: 1.45rem;
}

.constellation-card p {
  position: relative;
  z-index: 1;

  color: #696378;
  line-height: 1.58;
}

.constellation-card.family {
  --constellation-color: #d94f8a;
  --constellation-soft: rgba(217, 79, 138, 0.14);
}

.constellation-card.minecraft {
  --constellation-color: #63ad37;
  --constellation-soft: rgba(99, 173, 55, 0.14);
}

.constellation-card.learning {
  --constellation-color: #e49a22;
  --constellation-soft: rgba(228, 154, 34, 0.15);
}

.constellation-card.recovery {
  --constellation-color: #258bd0;
  --constellation-soft: rgba(37, 139, 208, 0.14);
}

.section {
  margin-top: 27px;
}

.section-heading {
  max-width: 980px;

  margin: 0 auto 29px;

  text-align: center;
}

.section-heading h2 {
  margin: 0;

  color: #4d3975;

  font-size: clamp(2.3rem, 4.5vw, 4.1rem);
  letter-spacing: -0.052em;
}

.section-heading p {
  color: var(--observer-muted);
  line-height: 1.7;
}

.category-status {
  max-width: 760px;

  margin: 0 auto 19px;
  padding: 14px 18px;

  text-align: center;

  border: 1px solid var(--observer-line);
  border-radius: 999px;

  color: #625a74;
  background: rgba(255, 255, 255, 0.80);
}

.category-grid {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(min(100%, 275px), 1fr)
    );

  gap: 18px;
}

.category-card {
  --category-color: #7257a9;
  --category-soft: rgba(142, 108, 207, 0.12);

  position: relative;
  overflow: hidden;

  min-height: 245px;

  display: flex;
  flex-direction: column;

  padding: 27px;

  border: 1px solid var(--observer-line);
  border-radius: var(--observer-radius-lg);

  background: var(--observer-glass);

  box-shadow:
    0 13px 31px rgba(72, 52, 108, 0.10);
}

.category-card::after {
  content: "";

  position: absolute;
  width: 135px;
  height: 135px;

  right: -53px;
  bottom: -57px;

  border-radius: 50%;
  background: var(--category-soft);
}

.category-icon {
  position: relative;
  z-index: 1;

  display: block;
  margin-bottom: 15px;

  font-size: 2.9rem;
}

.category-card h3 {
  position: relative;
  z-index: 1;

  margin: 0;

  color: var(--category-color);
  font-size: 1.43rem;
}

.category-card p {
  position: relative;
  z-index: 1;

  flex: 1;

  color: #696378;
  line-height: 1.63;
}

.category-open {
  position: relative;
  z-index: 1;

  align-self: flex-start;

  min-height: 42px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  padding: 9px 15px;
  border-radius: 999px;

  color: var(--category-color);
  text-decoration: none;
  font-weight: 900;

  border: 1px solid var(--category-soft);
  background: rgba(255, 255, 255, 0.88);
}

.category-card:nth-child(8n + 1) {
  --category-color: #d94f8a;
  --category-soft: rgba(217, 79, 138, 0.14);
}

.category-card:nth-child(8n + 2) {
  --category-color: #63ad37;
  --category-soft: rgba(99, 173, 55, 0.14);
}

.category-card:nth-child(8n + 3) {
  --category-color: #258bd0;
  --category-soft: rgba(37, 139, 208, 0.14);
}

.category-card:nth-child(8n + 4) {
  --category-color: #7248a7;
  --category-soft: rgba(114, 72, 167, 0.14);
}

.category-card:nth-child(8n + 5) {
  --category-color: #21aebb;
  --category-soft: rgba(33, 174, 187, 0.14);
}

.category-card:nth-child(8n + 6) {
  --category-color: #e49a22;
  --category-soft: rgba(228, 154, 34, 0.15);
}

.category-card:nth-child(8n + 7) {
  --category-color: #e96c20;
  --category-soft: rgba(233, 108, 32, 0.14);
}

.category-card:nth-child(8n + 8) {
  --category-color: #8e65bd;
  --category-soft: rgba(142, 101, 189, 0.14);
}

.community-workspace {
  margin-top: 27px;

  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 21px;
  align-items: stretch;
}

.safety-panel,
.post-panel {
  padding: clamp(27px, 4vw, 42px);

  border: 1px solid var(--observer-line);
  border-radius: 29px;

  background: var(--observer-glass);
  box-shadow: var(--observer-shadow);
}

.safety-panel {
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(255, 255, 255, 0.95),
      transparent 37%
    ),
    linear-gradient(
      145deg,
      rgba(218, 244, 255, 0.91),
      rgba(234, 225, 255, 0.91)
    );
}

.safety-symbol {
  width: 92px;
  height: 92px;

  display: grid;
  place-items: center;

  margin-bottom: 20px;

  border-radius: 31px;

  color: #ffffff;
  background:
    linear-gradient(135deg, #21aebb, #7773cd);

  box-shadow:
    0 14px 30px rgba(70, 100, 173, 0.23);

  font-size: 3.35rem;
}

.safety-panel h2,
.post-panel h2 {
  margin-top: 0;
  color: #4d3975;
}

.safety-panel p,
.safety-panel li,
.post-panel p {
  color: #696378;
  line-height: 1.68;
}

.safety-list {
  padding-left: 21px;
}

.safety-note {
  margin-top: 22px;
  padding: 18px 20px;

  border-left: 5px solid #21aebb;
  border-radius: 0 18px 18px 0;

  color: #4c6c78;
  background: rgba(255, 255, 255, 0.70);

  font-weight: 790;
}

.post-form {
  display: grid;
  gap: 17px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.field legend {
  color: #554275;
  font-weight: 900;
}

.field-help {
  color: #777084;
  font-size: 0.90rem;
  line-height: 1.45;
}

.field input,
.field textarea,
.field select {
  width: 100%;

  border:
    1px solid rgba(102, 76, 158, 0.20);

  border-radius: 17px;

  color: #4d4760;
  background: rgba(255, 255, 255, 0.91);

  box-shadow:
    inset 0 1px 2px rgba(54, 38, 81, 0.04);
}

.field input,
.field select {
  min-height: 51px;
  padding: 10px 14px;
}

.field textarea {
  min-height: 175px;
  resize: vertical;
  padding: 14px;
  line-height: 1.58;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #9273d6;
  outline: 4px solid rgba(146, 115, 214, 0.13);
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;

  width: 1px !important;
  height: 1px !important;

  overflow: hidden !important;
}

.human-check {
  margin: 0;
  padding: 16px 18px;

  border:
    1px solid rgba(102, 76, 158, 0.17);

  border-radius: 18px;

  background: rgba(245, 241, 255, 0.66);
}

.human-check label {
  display: flex;
  align-items: flex-start;
  gap: 12px;

  color: #554275;
  font-weight: 820;
  line-height: 1.45;
}

.human-check input {
  width: 22px;
  height: 22px;

  flex: 0 0 auto;
  margin-top: 1px;

  accent-color: #795bc2;
}

.submit-button {
  min-height: 55px;

  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;

  padding: 12px 20px;

  border: 0;
  border-radius: 999px;

  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      #d94f8a,
      #8e65bd
    );

  box-shadow:
    0 13px 29px rgba(154, 72, 150, 0.24);

  font-weight: 950;
  cursor: pointer;
}

.submit-button:hover {
  transform: translateY(-1px);
}

.moderation-path {
  margin-top: 27px;

  padding: clamp(28px, 4vw, 48px);

  border: 1px solid var(--observer-line);
  border-radius: var(--observer-radius-xl);

  background:
    linear-gradient(
      135deg,
      rgba(255, 229, 239, 0.91),
      rgba(235, 225, 255, 0.91) 52%,
      rgba(211, 242, 255, 0.91)
    );

  box-shadow: var(--observer-shadow);
}

.moderation-path h2 {
  margin-top: 0;

  color: #4d3975;
  text-align: center;

  font-size: clamp(2.2rem, 4vw, 3.8rem);
  letter-spacing: -0.045em;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(90px, 1fr));
  gap: 10px;
  align-items: center;

  margin-top: 26px;
}

.path-step {
  min-height: 137px;

  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;

  padding: 16px 10px;

  text-align: center;

  border: 1px solid rgba(101, 77, 156, 0.15);
  border-radius: 20px;

  background: rgba(255, 255, 255, 0.87);

  box-shadow:
    0 9px 23px rgba(72, 52, 108, 0.08);
}

.path-step strong {
  color: #554176;
}

.path-step span {
  color: #6a6478;
  font-size: 0.90rem;
  line-height: 1.42;
}

.path-icon {
  font-size: 2rem;
}

.path-arrow {
  color: #8f75bd;
  text-align: center;
  font-size: 1.65rem;
  font-weight: 950;
}

.promise {
  margin-top: 27px;

  padding: 32px;

  text-align: center;

  border: 1px solid var(--observer-line);
  border-radius: 27px;

  background: var(--observer-glass);
  box-shadow: var(--observer-shadow);
}

.promise h2 {
  margin-top: 0;
  color: #4d3975;
}

.promise p {
  max-width: 900px;
  margin-inline: auto;

  color: #696378;
  line-height: 1.72;
}

footer {
  width: min(1050px, calc(100% - 28px));

  margin: 24px auto 40px;
  padding: 21px;

  text-align: center;

  border: 1px solid var(--observer-line);
  border-radius: 999px;

  color: #69627c;
  background: rgba(255, 255, 255, 0.82);

  box-shadow:
    0 10px 27px rgba(71, 52, 108, 0.08);
}

footer strong {
  color: #523d7b;
}

@media (max-width: 1150px) {
  .community-hero,
  .community-workspace {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .path-grid {
    grid-template-columns: 1fr;
  }

  .path-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
}

@media (max-width: 680px) {
  .community-constellation,
  .form-row {
    grid-template-columns: 1fr;
  }
}

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

  .brand span:last-child {
    display: none;
  }

  .site-header {
    top: 5px;
    padding: 10px;
  }

  .sign-in {
    padding-inline: 13px;
  }

  .community-hero {
    padding: 26px 17px;
    border-radius: 24px;
  }

  .community-hero h1 {
    font-size: clamp(3rem, 17vw, 5.2rem);
  }

  footer {
    border-radius: 25px;
  }
}
