:root {
  --community-ink: #20251d;
  --community-muted: #65705e;
  --community-line: rgba(35, 46, 30, .14);
  --community-paper: rgba(255, 254, 247, .94);
  --community-green: #4d6b39;
  --community-green-dark: #344c25;
  --community-gold: #d9a72f;
  --community-red: #a54835;
}

.community-login-shell {
  position: relative;
  isolation: isolate;
  padding: clamp(28px, 5vw, 64px) clamp(0px, 4vw, 64px) clamp(40px, 6vw, 72px);
}
.community-page .countryball-silhouette-bg { display: none; }
.community-login-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  width: min(calc(100% - 48px), 1280px);
  min-height: 560px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(100deg, rgba(9,17,19,.97) 0%, rgba(20,31,39,.9) 48%, rgba(70,43,24,.72) 100%),
    url("assets/table.webp") center 48% / cover no-repeat;
  box-shadow: 0 22px 48px rgba(0,0,0,.28);
}
.community-login-stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 5;
  height: 5px;
  background: linear-gradient(90deg, #ef4444, #fbbf24, #10b981, #3b82f6, #f9fafb);
}
.community-login-story {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  padding: clamp(42px, 5vw, 68px);
  overflow: hidden;
  background: linear-gradient(90deg, rgba(8,13,19,.55), rgba(8,13,19,.08));
}
.community-login-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 560px);
}
.community-login-story h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(3.6rem, 6vw, 5.6rem);
  line-height: .92;
  letter-spacing: -.035em;
  text-shadow: 0 5px 24px rgba(0,0,0,.34);
}
.community-login-lede {
  max-width: 48ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.55;
}
.community-login-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}
.community-login-features li {
  padding: 0 17px;
  border-left: 1px solid rgba(255,255,255,.15);
}
.community-login-features li:first-child { padding-left: 0; border-left: 0; }
.community-login-features strong,
.community-login-features span { display: block; }
.community-login-features strong { color: var(--text); font-size: .83rem; }
.community-login-features span { margin-top: 5px; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.community-login-art {
  position: absolute;
  z-index: 1;
  right: -76px;
  bottom: -115px;
  width: min(50%, 470px);
  aspect-ratio: 1;
  opacity: .48;
  filter: saturate(.9);
}
.community-login-art::before {
  content: "";
  position: absolute;
  inset: 17%;
  border-radius: 50%;
  background: rgba(29,78,137,.35);
  filter: blur(30px);
}
.community-login-art img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 34px rgba(0,0,0,.45));
}
.community-art-orbit {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(251,191,36,.2);
  border-radius: 50%;
  transform: rotate(-18deg);
}
.community-art-orbit--one { inset: 3%; }
.community-art-orbit--two { inset: 12% -4%; transform: rotate(24deg); }
.community-login-access {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  min-height: 470px;
  margin: 34px 34px 34px 0;
  padding: 38px;
  color: var(--text);
  border: 1px solid rgba(251,191,36,.2);
  border-radius: 10px;
  background: rgba(8,12,22,.9);
  box-shadow: 0 18px 42px rgba(0,0,0,.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.community-access-mark {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 10px;
  color: #101721;
  background: var(--gold);
  box-shadow: 0 0 0 1px rgba(251,191,36,.35), 0 8px 22px rgba(251,191,36,.22);
}
.community-access-mark svg { width: 25px; height: 25px; }
.community-access-label {
  color: var(--gold);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.community-login-access h2 {
  margin: 10px 0 0;
  color: var(--text);
  font-size: clamp(2.1rem, 3.2vw, 2.5rem);
  line-height: 1;
  letter-spacing: -.03em;
}
.community-login-access > p:not(.community-login-status):not(.community-login-legal) {
  margin: 14px 0 26px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.6;
}
.community-google-button {
  display: flex;
  min-height: 44px;
  justify-content: flex-start;
  align-items: center;
  opacity: 1;
  transition: opacity .18s ease;
}
.community-google-button > div { max-width: 100% !important; }
.community-google-button iframe { max-width: 100% !important; }
.community-google-button.is-busy {
  opacity: .45;
  pointer-events: none;
}
.community-login-loading,
.community-login-unavailable {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}
.community-login-status {
  min-height: 1.4em;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
  text-align: left;
}
.community-login-status.is-error { color: #fca5a5; }
.community-login-status.is-success { color: #86efac; }
.community-login-status.is-checking { color: #fde68a; }
.community-login-status.is-muted { color: var(--muted); }
.community-login-note {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 22px 0 0;
  padding: 15px 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}
.community-login-note span {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(251,191,36,.1);
}
.community-login-note p { margin: 0; color: #aeb5c1; font-size: .75rem; line-height: 1.45; }
.community-login-legal {
  margin: 18px 0 0;
  color: #747e8e;
  font-size: .68rem;
  line-height: 1.5;
}
.community-login-legal a { color: #b8bfca; }
.community-login-legal a:hover { color: var(--gold); }

.community-page { min-height: 100vh; }
.community-page [hidden] { display: none !important; }
.community-frame { max-width: 1120px; }
.community-hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin: 22px 0 18px;
  padding: 38px 42px;
  overflow: hidden;
  color: #fffdf2;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 20%, rgba(229,187,76,.26), transparent 28%),
    linear-gradient(135deg, #26351e, #516b3e 58%, #293b20);
  box-shadow: 0 18px 45px rgba(25,34,20,.2);
}
.community-hero::after {
  content: "●";
  position: absolute;
  right: 8%;
  top: -104px;
  font-size: 320px;
  line-height: 1;
  color: rgba(255,255,255,.035);
}
.community-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #f3cf6a;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .73rem;
}
.community-hero h1 { margin: 0; color: inherit; font-size: clamp(2.1rem, 5vw, 4rem); line-height: .98; }
.community-hero p { max-width: 660px; margin: 14px 0 0; color: rgba(255,255,255,.8); font-size: 1.04rem; }
.community-account { position: relative; z-index: 1; flex: 0 0 auto; text-align: right; }
.community-account-name { display: block; margin-bottom: 8px; font-weight: 800; }
.community-account-actions { display: flex; gap: 8px; }
.community-secondary-button,
.community-primary-button,
.community-text-button {
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.community-primary-button {
  padding: 11px 18px;
  color: #fff;
  background: var(--community-green);
  box-shadow: 0 5px 14px rgba(48,70,34,.18);
}
.community-primary-button:hover { background: var(--community-green-dark); transform: translateY(-1px); }
.community-secondary-button { padding: 9px 15px; color: var(--community-green-dark); background: #f4f1df; }
.community-text-button { padding: 5px 0; color: var(--community-green); background: transparent; }
.community-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 24px 2px 14px; }
.community-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #c6d0be; }
.community-breadcrumbs > * + *::before { content: "/"; margin-right: 8px; color: #a5aa9d; }
.community-breadcrumbs a { color: #e3bd4f; font-weight: 800; text-decoration: none; }
.community-notice {
  margin: 12px 0;
  padding: 12px 15px;
  border-radius: 12px;
  color: #5a3a15;
  background: #fff1c7;
  border: 1px solid #edd68e;
}
.community-loading, .community-empty { padding: 70px 20px; text-align: center; color: var(--community-muted); }
.community-panel {
  overflow: hidden;
  border: 1px solid var(--community-line);
  border-radius: 18px;
  background: var(--community-paper);
  box-shadow: 0 12px 28px rgba(37,46,30,.08);
}
.community-panel + .community-panel { margin-top: 18px; }
.community-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--community-line);
}
.community-panel-heading h2 { margin: 0; font-size: 1.2rem; color: var(--community-ink); }
.community-panel-heading > span { color: var(--community-muted); font-size: .86rem; }
.community-category, .community-thread-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 20px 22px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--community-line);
  transition: background .15s ease;
}
.community-category:last-child, .community-thread-row:last-child { border-bottom: 0; }
.community-category:hover, .community-thread-row:hover { background: rgba(80,111,57,.055); }
.community-category-title, .community-thread-title { color: var(--community-ink); font-size: 1.04rem; font-weight: 900; }
.community-category p { margin: 5px 0 0; color: var(--community-muted); }
.community-counts { min-width: 120px; text-align: right; color: var(--community-muted); font-size: .84rem; }
.community-counts strong { display: block; color: var(--community-ink); font-size: 1.05rem; }
.community-thread-meta { margin-top: 6px; color: var(--community-muted); font-size: .85rem; }
.community-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #566249;
  background: #e7eadf;
  font-size: .72rem;
  font-weight: 800;
}
.community-thread-header { padding: 25px 25px 20px; border-bottom: 1px solid var(--community-line); }
.community-thread-header h1 { margin: 0 0 8px; color: var(--community-ink); font-size: clamp(1.65rem,4vw,2.45rem); }
.community-post { display: grid; grid-template-columns: 155px minmax(0,1fr); border-bottom: 1px solid var(--community-line); }
.community-post:last-child { border-bottom: 0; }
.community-post-author { padding: 22px; background: rgba(77,107,57,.045); }
.community-post-author strong { display: block; overflow-wrap: anywhere; }
.community-role { color: var(--community-green); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.community-post-body { padding: 22px 26px; min-width: 0; }
.community-post-body p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.62; }
.community-post-time { display: block; margin-top: 16px; color: var(--community-muted); font-size: .78rem; }
.community-reply { padding: 22px; }
.community-reply textarea { width: 100%; box-sizing: border-box; margin-bottom: 10px; }
.community-poll { margin: 20px 24px 0; padding: 20px; border: 1px solid #ded5ac; border-radius: 16px; background: #fffbed; }
.community-poll h2 { margin: 0 0 15px; font-size: 1.1rem; }
.community-poll-option { position: relative; display: block; overflow: hidden; margin: 8px 0; border: 1px solid #ded8c2; border-radius: 11px; background: #fff; }
.community-poll-option-fill { position: absolute; inset: 0 auto 0 0; background: rgba(93,127,67,.16); }
.community-poll-option button { position: relative; display: flex; width: 100%; justify-content: space-between; gap: 12px; padding: 11px 13px; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.community-poll-option.is-selected { border-color: var(--community-green); }
.community-poll-total { margin: 10px 0 0; color: var(--community-muted); font-size: .8rem; }
.community-dialog {
  width: min(92vw, 480px);
  max-height: 90vh;
  padding: 26px;
  overflow: auto;
  border: 0;
  border-radius: 20px;
  color: var(--community-ink);
  background: #fffef8;
  box-shadow: 0 25px 80px rgba(0,0,0,.35);
}
.community-compose-dialog { width: min(92vw, 680px); }
.community-dialog::backdrop { background: rgba(19,25,16,.72); backdrop-filter: blur(4px); }
.community-dialog-close { position: absolute; right: 13px; top: 10px; border: 0; color: #6b7165; background: transparent; font-size: 1.7rem; cursor: pointer; }
.community-auth-tabs { display: flex; gap: 4px; margin: 0 34px 22px 0; padding: 4px; border-radius: 999px; background: #eef0e8; }
.community-auth-tabs button { flex: 1; padding: 8px; border: 0; border-radius: 999px; color: #606758; background: transparent; font-weight: 800; cursor: pointer; }
.community-auth-tabs button.is-active { color: #fff; background: var(--community-green); }
.community-form { display: grid; gap: 14px; }
.community-form[hidden] { display: none; }
.community-form h2 { margin: 0; }
.community-form-intro { margin: -5px 0 2px; color: var(--community-muted); }
.community-form label { display: grid; gap: 6px; font-weight: 800; font-size: .88rem; }
.community-form input, .community-form textarea, .community-form select, .community-reply textarea {
  padding: 11px 12px;
  border: 1px solid #cfd4c9;
  border-radius: 10px;
  color: var(--community-ink);
  background: #fff;
  font: inherit;
}
.community-form input:focus, .community-form textarea:focus, .community-form select:focus, .community-reply textarea:focus {
  outline: 3px solid rgba(77,107,57,.15);
  border-color: var(--community-green);
}
.community-field-help { margin: -6px 0 0; color: var(--community-muted); font-size: .78rem; }
.community-form-error { min-height: 1.2em; margin: 0; color: var(--community-red); font-weight: 700; }
.community-poll-builder { padding: 12px; border: 1px solid var(--community-line); border-radius: 12px; }
.community-poll-builder summary { font-weight: 900; cursor: pointer; }
.community-poll-builder[open] summary { margin-bottom: 12px; }
#pollOptions { display: grid; gap: 10px; margin: 10px 0; }
.community-mini-footer { display: flex; justify-content: center; gap: 22px; padding: 35px 20px; color: #687060; font-size: .85rem; }
.community-mini-footer a { color: inherit; }

.card-reviews {
  margin-top: 28px;
  padding: 26px;
  border: 1px solid var(--community-line);
  border-radius: 20px;
  color: var(--community-ink);
  background: var(--community-paper);
  box-shadow: 0 12px 28px rgba(37,46,30,.08);
}
.card-reviews-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.card-reviews h2 { margin: 0; font-size: 1.5rem; }
.card-reviews-summary { color: var(--community-muted); text-align: right; }
.card-reviews-summary strong { display: block; color: var(--community-gold); font-size: 1.35rem; }
.card-review-compose { margin: 20px 0; padding: 17px; border-radius: 14px; background: #f3f2e9; }
.card-review-compose textarea { width: 100%; box-sizing: border-box; margin: 10px 0; padding: 11px; border: 1px solid #cfd4c9; border-radius: 10px; font: inherit; }
.card-review-stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 3px; }
.card-review-stars input { position: absolute; opacity: 0; pointer-events: none; }
.card-review-stars label { color: #c5c5ba; font-size: 1.8rem; cursor: pointer; }
.card-review-stars input:checked ~ label, .card-review-stars label:hover, .card-review-stars label:hover ~ label { color: var(--community-gold); }
.card-review { padding: 16px 0; border-top: 1px solid var(--community-line); }
.card-review:first-child { border-top: 0; }
.card-review-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.card-review-rating { color: var(--community-gold); letter-spacing: 1px; }
.card-review p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 720px) {
  .community-mini-footer { flex-wrap: wrap; padding-top: 25px; }
  .community-hero { align-items: start; flex-direction: column; padding: 29px 23px; }
  .community-account { text-align: left; }
  .community-toolbar { align-items: stretch; flex-direction: column; }
  .community-toolbar .community-primary-button { align-self: start; }
  .community-category, .community-thread-row { grid-template-columns: 1fr; gap: 8px; }
  .community-counts { text-align: left; }
  .community-counts strong { display: inline; margin-right: 4px; }
  .community-post { grid-template-columns: 1fr; }
  .community-post-author { padding-bottom: 12px; }
  .card-reviews { padding: 20px 17px; }
}

@media (min-width: 900px) {
  .community-page .countryball-silhouette-bg { display: block; }
}
@media (max-width: 900px) {
  .community-login-stage {
    grid-template-columns: minmax(0, 1fr) 350px;
    width: min(calc(100% - 32px), 1280px);
  }
  .community-login-story { padding: 42px 32px; }
  .community-login-story h1 { font-size: clamp(2.6rem, 5vw, 3.4rem); }
  .community-login-lede { font-size: 1rem; }
  .community-login-features { grid-template-columns: 1fr; gap: 12px; }
  .community-login-features li,
  .community-login-features li:first-child { padding-left: 13px; border-left: 1px solid rgba(255,255,255,.15); }
  .community-login-features span { display: none; }
  .community-login-access { margin-right: 20px; padding: 30px; }
}
@media (max-width: 680px) {
  .community-login-shell { padding: 18px 0 32px; }
  .community-login-stage {
    grid-template-columns: 1fr;
    width: calc(100% - 28px);
    min-height: 0;
  }
  .community-login-story { min-height: 320px; padding: 34px 28px; align-items: flex-start; }
  .community-login-story h1 { font-size: clamp(2.75rem, 11.5vw, 3.4rem); line-height: .95; }
  .community-login-lede { max-width: 33ch; font-size: .92rem; }
  .community-login-features { display: none; }
  .community-login-art { right: -45px; bottom: -80px; width: 68%; opacity: .5; }
  .community-login-access {
    min-height: 0;
    margin: 0 14px 18px;
    padding: 30px 28px;
  }
  .community-login-access h2 { font-size: 2.1rem; }
  .community-google-button { justify-content: center; }
  .community-login-status { text-align: center; }
}
