.sr-home[data-community-challenges=true] [data-home-view],
.sr-home[data-community-challenges=true] [data-clubhouse-back] {
  display: none !important;
}
.home-v3-theme .sr-home[data-community-challenges=true] .sr-home-main {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 24px 40px;
}
.community-page {
  color: #eeeade;
  font:
    14px/1.45 "DM Sans Variable",
    Arial,
    sans-serif;
}
.community-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 22px;
}
.community-header h1 {
  font:
    600 30px/1.15 Oswald,
    Arial,
    sans-serif;
  margin: 3px 0;
  color: #f3ead1;
}
.community-eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #cdb67c;
  font-weight: 700;
}
.community-page button,
.community-dialog button,
.community-run-hud button {
  font: inherit;
  cursor: pointer;
  min-height: 44px;
  border: 1px solid #8da48950;
  border-radius: 6px;
  background: #173426;
  color: #ece9d9;
  padding: 9px 13px;
}
.community-page button:disabled,
.community-dialog button:disabled,
.community-run-hud button:disabled {
  opacity: .45;
  cursor: default;
}
.community-back,
.community-create,
.community-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #a6b09e44;
  border-radius: 6px;
  color: #e7e9d9;
  background: #142c21;
  text-decoration: none;
  font-weight: 650;
  font-size: 12px;
  box-sizing: border-box;
}
.community-create,
.community-play {
  background: #e4c989;
  border-color: #e4c989;
  color: #1b2e22;
}
.community-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  border-bottom: 1px solid #9ab09533;
  padding-bottom: 12px;
}
.community-page .community-tabs button {
  border-color: transparent;
  background: transparent;
  color: #9eb0a0;
  font-size: 13px;
}
.community-page .community-tabs button[aria-current=true] {
  color: #f2dfac;
  background: #2b422e;
  border-color: #bda46b80;
}
.community-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
}
.community-toolbar p {
  margin: 0;
  color: #a5b7a6;
  font-size: 12px;
}
.community-page .community-toolbar button {
  font-size: 12px;
  padding: 7px 11px;
}
.community-message {
  color: #decfa9;
  font-size: 12px;
  margin: 10px 0;
}
.community-message p {
  margin: 5px 0;
}
.community-list {
  display: grid;
  gap: 14px;
}
.community-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 180px;
  gap: 18px;
  border: 1px solid #94a98b3b;
  background: #10291e;
  border-radius: 10px;
  padding: 15px;
}
.community-stage-image {
  align-self: center;
}
.community-thumbnail {
  display: block;
  width: 100%;
  height: auto;
  max-height: 145px;
}
.community-stage-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.community-stage-heading h2 {
  margin: 0;
  font:
    600 22px/1.25 Oswald,
    Arial,
    sans-serif;
  color: #f3e9cc;
  overflow-wrap: anywhere;
}
.community-author {
  margin: 5px 0;
  color: #9db7a0;
  font-size: 11px;
}
.community-code {
  font-size: 9px;
  color: #a0b29d;
  white-space: nowrap;
}
.community-description {
  color: #b9c8b8;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 72px;
  overflow: auto;
}
.community-stat-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: #d4d5bb;
  font-size: 11px;
}
.community-voting {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.community-page .community-like {
  padding: 5px 9px;
  min-width: 48px;
  font-size: 16px;
}
.community-like[aria-pressed=true] {
  color: #f4ba99;
}
.community-stars {
  display: flex;
  gap: 0;
}
.community-page .community-stars button {
  border: 0;
  background: transparent;
  padding: 4px 2px;
  min-width: 26px;
  color: #62715c;
  font-size: 21px;
}
.community-stars button[data-active=true] {
  color: #e2c47c;
}
.community-voting > [data-rating] {
  font-size: 10px;
  color: #99ae99;
}
.community-stage-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.community-leaders {
  flex: 1;
}
.community-leaders > strong {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #a9b99e;
}
.community-leaders ol {
  list-style: none;
  margin: 7px 0 10px;
  padding: 0;
}
.community-leaders li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: #c4d0bc;
  padding: 3px 0;
}
.community-leaders li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.community-page .community-remove,
.community-page .community-share {
  font-size: 10px;
  min-height: 32px;
  padding: 4px 8px;
}
.community-page .community-remove {
  color: #cea59a;
  background: transparent;
  border-color: transparent;
}
.community-empty {
  text-align: center;
  padding: 48px 20px;
  background: #10291e;
  border: 1px solid #9aad8f33;
  border-radius: 10px;
}
.community-empty h2 {
  font:
    600 26px Oswald,
    Arial,
    sans-serif;
  color: #e7d4a5;
}
.community-empty p {
  color: #afbfaa;
}
.community-page .community-more {
  display: block;
  margin: 20px auto;
}
.community-more[hidden] {
  display: none !important;
}
.community-dialog {
  width: min(520px, calc(100% - 30px));
  max-height: calc(100dvh - 30px);
  overflow: auto;
  box-sizing: border-box;
  padding: 27px;
  border: 1px solid #a9a471;
  border-radius: 10px;
  background: #10271e;
  color: #eee7d2;
  font:
    14px/1.45 "DM Sans Variable",
    Arial,
    sans-serif;
}
.community-dialog::backdrop {
  background: #030e0ac9;
}
.community-dialog h2 {
  font:
    600 28px Oswald,
    Arial,
    sans-serif;
  margin: 10px 0;
}
.community-dialog p {
  color: #b3c3b0;
  font-size: 12px;
}
.community-dialog label {
  display: grid;
  gap: 6px;
  margin: 15px 0;
  color: #e1d5b2;
  font-size: 12px;
}
.community-dialog input,
.community-dialog textarea {
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  border: 1px solid #889e7a77;
  border-radius: 5px;
  padding: 10px;
  background: #0b1d15;
  color: #f4eddb;
  width: 100%;
  box-sizing: border-box;
}
.community-dialog form {
  position: absolute;
  right: 12px;
  top: 12px;
}
.community-dialog .community-dialog-close {
  min-height: 30px;
  min-width: 30px;
  padding: 0 6px;
  background: transparent;
  border: 0;
  font-size: 24px;
}
.community-dialog [data-community-published] {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.community-publish-note {
  font-size: 10px !important;
}
.community-dialog [data-community-publish-status] {
  color: #e7c786;
}
.community-stage-playing .routine-editor-ui {
  display: none !important;
}
.community-run-hud {
  position: absolute;
  top: max(65px, env(safe-area-inset-top));
  left: 12px;
  z-index: 29;
  width: min(310px, calc(100% - 24px));
  background: #10271fee;
  border: 1px solid #c3b27a80;
  border-radius: 9px;
  padding: 11px;
  box-sizing: border-box;
  color: #eee8d4;
  font:
    12px/1.35 "DM Sans Variable",
    Arial,
    sans-serif;
}
.community-run-hud strong {
  display: block;
  font-size: 15px;
  margin-top: 4px;
}
.community-run-score {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 8px;
}
.community-run-score b {
  font:
    600 29px Oswald,
    Arial,
    sans-serif;
  color: #edcf8b;
}
.community-run-score span {
  color: #a5b8a0;
  font-size: 11px;
}
.community-run-hud p {
  color: #c5d2bb;
  font-size: 11px;
  margin: 5px 0 8px;
}
.community-run-hud > div:last-child {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.community-run-hud button,
.community-run-hud a {
  font-size: 10px;
  min-height: 35px;
  padding: 6px 8px;
}
.community-run-hud a {
  display: inline-flex;
  align-items: center;
  color: #e4d6ae;
  text-decoration: none;
}

.community-stage-playing .routine-editor-active .game-header-controls {
  display: flex !important;
}
.community-page :is(button, a):focus-visible,
.community-dialog :is(button, a, input, textarea):focus-visible {
  outline: 2px solid #edd49b;
  outline-offset: 3px;
}
@media (max-width: 800px) {
  .home-v3-theme .sr-home[data-community-challenges=true] .sr-home-main {
    padding: 14px 12px 25px;
  }
  .community-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-bottom: 14px;
  }
  .community-header > div {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .community-header h1 {
    font-size: 28px;
  }
  .community-header .community-back {
    justify-self: start;
    font-size: 11px;
  }
  .community-header .community-create {
    font-size: 11px;
  }
  .community-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
  }
  .community-page .community-tabs button {
    font-size: 11px;
    padding: 7px 3px;
  }
  .community-card {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }
  .community-stage-side {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px;
    align-items: end;
    gap: 7px 12px;
  }
  .community-leaders {
    grid-row: 1/3;
  }
  .community-stage-heading {
    display: block;
  }
  .community-stage-heading h2 {
    font-size: 20px;
  }
  .community-code {
    display: block;
    margin: 4px 0;
  }
  .community-description {
    font-size: 11px;
  }
  .community-stat-line {
    font-size: 10px;
    gap: 5px 10px;
  }
  .community-stars button {
    min-width: 24px !important;
  }
  .community-voting > [data-rating] {
    width: 100%;
  }
  .community-stage-image {
    align-self: start;
    margin-top: 8px;
  }
  .community-run-hud {
    top: 62px;
    width: 240px;
  }
  .community-run-hud strong {
    font-size: 13px;
  }
}
@media (orientation: landscape) and (max-height: 500px) {
  .community-run-hud {
    top: 57px;
    width: 230px;
    padding: 8px;
  }
  .community-run-score {
    margin-top: 3px;
  }
  .community-run-hud strong {
    font-size: 12px;
  }
  .community-run-hud p {
    font-size: 10px;
  }
  .community-header {
    grid-template-columns: auto 1fr auto;
  }
  .community-header > div {
    grid-column: 2;
    grid-row: 1;
  }
  .community-header h1 {
    font-size: 24px;
  }
}
.community-stage-playing #practice-score {
  display: none !important;
}
.community-nomination {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.community-nomination[hidden] {
  display: none;
}
.community-nomination select {
  font: inherit;
  background: #173426;
  color: #f4e5be;
  border: 1px solid #80926b;
  border-radius: 4px;
  padding: 7px;
  min-height: 38px;
}
@media (max-width: 600px) {
  .home-v3-theme .sr-home[data-page=single-player] .sp-map-editor {
    width: 108px;
    box-sizing: border-box;
    font-size: 10px;
    padding: 8px;
    gap: 5px;
  }
  .sp-map-editor span {
    max-width: 66px;
  }
  .sp-map-editor svg {
    flex: none;
    width: 14px;
  }
}
.home-v3-theme .sr-home[data-community-challenges=true] .community-page .community-header h1 {
  font:
    600 30px/1.15 Oswald,
    Arial,
    sans-serif;
  letter-spacing: 0;
  text-transform: none;
  margin: 3px 0;
  color: #f3ead1;
}
.home-v3-theme .sr-home[data-community-challenges=true] .community-page .community-stage-heading h2 {
  font:
    600 22px/1.25 Oswald,
    Arial,
    sans-serif;
  letter-spacing: 0;
  text-transform: none;
  margin: 0;
  color: #f3e9cc;
}
.home-v3-theme .sr-home[data-community-challenges=true] .community-page .community-thumbnail {
  width: 100%;
  height: auto;
  max-height: 145px;
  display: block;
}
.home-v3-theme .sr-home[data-community-challenges=true] .community-page button {
  border-radius: 6px;
}
.home-v3-theme .sr-home[data-community-challenges=true] .sr-home-main {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 24px 40px;
  box-sizing: border-box;
  overflow-y: auto;
}
@media (max-width: 800px) {
  .home-v3-theme .sr-home[data-community-challenges=true] .community-page .community-header h1 {
    font-size: 28px;
  }
  .home-v3-theme .sr-home[data-community-challenges=true] .community-page .community-stage-heading h2 {
    font-size: 20px;
  }
  .home-v3-theme .sr-home[data-community-challenges=true] .sr-home-main {
    padding: 14px 12px 25px;
  }
}

.community-guide-filter{display:flex;align-items:center;gap:.5rem;margin-left:auto;color:#c3d1c5;font-weight:600;font-size:.8rem}
.community-guide-filter select,.community-dialog [data-community-publish-guide]{box-sizing:border-box;min-height:44px;padding:8px 12px;border:1px solid #80926b;border-radius:6px;background:#173426;color:#f4efdf;font:inherit;color-scheme:dark}
.community-dialog [data-community-publish-guide]{width:100%}
.community-guide-filter select:focus-visible,.community-dialog [data-community-publish-guide]:focus-visible{outline:2px solid #edd49b;outline-offset:3px}
@media(max-width:600px){.community-page .community-toolbar{flex-wrap:wrap}.community-toolbar [data-community-summary]{flex-basis:100%}.community-guide-filter{margin-left:0}}
