html[data-community-entry=pending] .sr-home {
  visibility: hidden !important;
}
.community-entry-cover {
  display: none;
}
html[data-community-entry=pending] body[data-player-onboarding-complete=true] .community-entry-cover {
  display: grid;
}
.community-entry-error {
  padding: 12px 14px;
  border-left: 3px solid #ffda00;
  background: #171b18;
  color: #f5f5ef;
  font-size: 13px;
}
.app-shell .table-panel .community-run-hud {
  position: absolute;
  z-index: 41;
  top: calc(var(--game-header-top,14px) + var(--game-header-height,44px) + 8px);
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  width: auto;
  max-width: none;
  min-width: 0;
  padding: 6px;
  display: grid;
  grid-template-columns: 44px minmax(100px, 1fr) auto minmax(70px, auto) auto;
  gap: 0 10px;
  border: 1px solid var(--sr-ui-border,#ffffff26);
  border-radius: 0;
  background: linear-gradient(#1b1d1a, #060706);
  color: var(--sr-ui-text,#f5f5ef);
  box-shadow: 0 3px 14px #0005;
  font: 12px/1.35 var(--sr-ui-font,"DM Sans Variable",sans-serif);
  box-sizing: border-box;
}
.app-shell .community-run-hud .community-table-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--sr-ui-border,#ffffff26);
  color: var(--sr-ui-text,#f5f5ef);
  background: #090a0980;
  text-decoration: none;
  box-sizing: border-box;
}
.app-shell .community-run-hud svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.app-shell .community-run-hud .community-run-heading {
  align-self: center;
  min-width: 0;
}
.app-shell .community-run-hud .community-run-heading > span {
  display: block;
  color: var(--sr-ui-muted,#b5b8ae);
  font-size: 10px;
}
.app-shell .community-run-hud .community-run-heading strong {
  display: block;
  margin: 2px 0 0;
  font: 700 13px/1.3 var(--sr-ui-font,sans-serif);
  color: var(--sr-ui-text,#f5f5ef);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-shell .community-run-hud .community-run-score {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0 5px;
  align-items: baseline;
  margin: 0;
  padding: 0 8px;
  min-width: 56px;
}
.app-shell .community-run-hud .community-score-label {
  grid-column: 1/-1;
  font-size: 10px;
  color: var(--sr-ui-muted,#b5b8ae);
}
.app-shell .community-run-hud .community-run-score b {
  font: 700 25px/1 var(--sr-ui-font,sans-serif);
  color: var(--sr-ui-text,#f5f5ef);
}
.app-shell .community-run-hud .community-run-score > [data-community-target] {
  font-size: 11px;
  white-space: nowrap;
  color: var(--sr-ui-muted,#b5b8ae);
}
.app-shell .community-run-hud .community-ball-on {
  align-self: center;
  font-size: 11px;
  color: var(--sr-ui-muted,#b5b8ae);
  white-space: nowrap;
}
.app-shell .community-run-hud .community-ball-on b {
  font-weight: 650;
  color: var(--sr-ui-text,#f5f5ef);
}
.app-shell .community-run-hud .community-nomination {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 10px;
  color: var(--sr-ui-muted,#b5b8ae);
}
.app-shell .community-run-hud .community-nomination[hidden],
.app-shell .community-run-hud [data-community-on-label][hidden] {
  display: none;
}
.app-shell .community-run-hud .community-nomination select {
  max-width: 110px;
  min-height: 38px;
  padding: 6px;
  font: 12px var(--sr-ui-font,sans-serif);
  border: 1px solid var(--sr-ui-border,#ffffff26);
  border-radius: 0;
  background: #111410;
  color: #f5f5ef;
}
.app-shell .community-run-hud .community-run-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
}
.app-shell .community-run-hud button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--sr-ui-border,#ffffff26);
  border-radius: 0;
  background: #090a0980;
  color: var(--sr-ui-text,#f5f5ef);
  font: 650 11px/1.3 var(--sr-ui-font,sans-serif);
  cursor: pointer;
  box-sizing: border-box;
  touch-action: manipulation;
}
.app-shell .table-panel .community-run-hud #practice-rewind-button {
  min-width: 82px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--sr-ui-accent,#ffda00);
  border-radius: 0;
  background: var(--sr-ui-accent,#ffda00);
  color: var(--sr-ui-ink,#14150c);
  font: 700 11px/1.3 var(--sr-ui-font,sans-serif);
  gap: 5px;
}
.app-shell .table-panel .community-run-hud #practice-rewind-button .practice-rewind-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  stroke: none;
}
.app-shell .community-run-hud button:disabled {
  opacity: .4;
  cursor: default;
}
.app-shell .community-run-hud .community-stage-status {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 20px;
  margin: 2px 0 0;
  padding: 0 4px;
  color: var(--sr-ui-muted,#b5b8ae);
  font-size: 10px;
}
.app-shell .community-run-hud [data-community-save-retry] {
  min-height: 30px;
  padding: 3px 9px;
  color: var(--sr-ui-accent,#ffda00);
}
.app-shell .community-run-hud [data-community-save-retry][hidden] {
  display: none !important;
}
.community-run-result {
  width: min(440px, calc(100% - 28px));
  padding: 30px 24px 18px;
  border: 1px solid var(--sr-ui-border,#ffffff26);
  border-top: 3px solid var(--sr-ui-accent,#ffda00);
  border-radius: 0;
  background: #0b0d0b;
  color: #f5f5ef;
  text-align: center;
  font-family: var(--sr-ui-font,"DM Sans Variable",sans-serif);
}
.community-run-result h2 {
  font: 700 25px/1.2 var(--sr-ui-font,sans-serif);
  margin: 12px 0;
  color: #f5f5ef;
}
.community-run-result .community-result-stage {
  margin: 0 34px;
  font-size: 12px;
  color: #b5b8ae;
  overflow-wrap: anywhere;
}
.community-run-result .community-result-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  color: #f5f5ef;
  font-size: 26px;
  border-radius: 0;
}
.community-run-result .community-result-break {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 24px 0 18px;
  color: #b5b8ae;
  font-size: 11px;
}
.community-run-result .community-result-break strong {
  font: 700 56px/1 var(--sr-ui-font,sans-serif);
  color: #f5f5ef;
}
.community-run-result [data-community-result-status] {
  color: #b5b8ae;
  font-size: 12px;
}
.community-run-result .community-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 8px;
}
.community-run-result .community-result-actions button {
  flex: 1;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #ffffff26;
  border-radius: 0;
  background: #1a1d18;
  color: #f5f5ef;
  font: 650 12px var(--sr-ui-font,sans-serif);
  white-space: nowrap;
  margin: 0;
}
.community-run-result .community-result-actions [data-community-result-rewind] {
  background: var(--sr-ui-accent,#ffda00);
  border-color: var(--sr-ui-accent,#ffda00);
  color: #14150c;
}
.community-run-result .community-result-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px;
  color: #c9cbbf;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.community-run-hud :is(button, a, select):focus-visible,
.community-run-result :is(button, a):focus-visible {
  outline: 2px solid var(--sr-ui-accent,#ffda00);
  outline-offset: 3px;
}
@media (max-width: 950px) {
  .app-shell .table-panel .community-run-hud {
    left: max(8px, env(safe-area-inset-left));
    right: max(8px, env(safe-area-inset-right));
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 4px 6px;
  }
  .app-shell .community-run-hud .community-run-score {
    padding: 0 4px;
    min-width: 48px;
  }
  .app-shell .community-run-hud .community-run-score b {
    font-size: 23px;
  }
  .app-shell .community-run-hud .community-run-heading strong {
    font-size: 12px;
  }
  .app-shell .community-run-hud .community-ball-on {
    grid-column: 1/3;
    grid-row: 2;
    justify-self: start;
    max-width: 96px;
    padding-left: 2px;
  }
  .app-shell .community-run-hud .community-run-actions {
    grid-column: 2/4;
    grid-row: 2;
    justify-self: end;
    gap: 4px;
  }
  .app-shell .community-run-hud .community-run-actions > button:not(#practice-rewind-button) {
    width: 44px;
    padding: 0;
  }
  .app-shell .community-run-hud .community-run-actions > button:not(#practice-rewind-button) > span {
    display: none;
  }
  .app-shell .table-panel .community-run-hud #practice-rewind-button {
    min-width: 70px;
    padding: 8px 6px;
    gap: 4px;
  }
  .app-shell .community-run-hud .community-nomination {
    font-size: 0;
    gap: 0;
  }
  .app-shell .community-run-hud .community-nomination select {
    max-width: 96px;
  }
  .app-shell .community-run-hud .community-stage-status {
    grid-row: 3;
    min-height: 18px;
    margin: 0;
  }
}
@media (orientation: landscape) and (max-height: 500px) {
  .app-shell .table-panel .community-run-hud {
    grid-template-columns: 44px minmax(70px, 1fr) auto auto auto;
    gap: 0 6px;
  }
  .app-shell .community-run-hud .community-ball-on,
  .app-shell .community-run-hud .community-run-actions {
    grid-column: auto;
    grid-row: 1;
  }
  .app-shell .community-run-hud .community-stage-status {
    grid-row: 2;
  }
  .app-shell .community-run-hud .community-run-score {
    min-width: 42px;
  }
}
.community-entry-cover {
  position: fixed;
  inset: 0;
  z-index: 4000;
  place-items: center;
  padding: 24px;
  background: #050705;
  color: #f3eedd;
  text-align: center;
  font-family:
    "DM Sans Variable",
    Arial,
    sans-serif;
  touch-action: none;
}
.community-entry-cover .game-loading-content {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 460px;
}
.community-entry-cover img {
  display: block;
  width: 260px;
  max-width: 75vw;
  height: auto;
  margin-bottom: 12px;
}
.community-entry-cover strong {
  font-size: 18px;
}
.community-entry-cover p {
  font-size: 14px;
  margin: 0;
}
.community-entry-cover .game-loading-spinner {
  width: 28px;
  height: 28px;
  box-sizing: border-box;
  border: 3px solid #f3eedd33;
  border-top-color: #ffda00;
  border-radius: 50%;
  animation: community-entry-spin .8s linear infinite;
}
@keyframes community-entry-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .community-entry-cover .game-loading-spinner {
    animation: none;
    border-top-color: #ffda00;
  }
}
body.community-stage-playing .app-shell.immersive .table-panel .portrait-free-view-control {
  top: var(--community-rewind-status-top,206px) !important;
}
body.community-stage-playing .app-shell .game-header-controls {
  margin-left: auto;
}

/* Challenge opening */
.challenge-intro-active .table-panel :is(.spin-dock, .power-dock, .portrait-free-view-control, #aim-hint, #guide-legend, #table-actions, .community-run-actions, .community-ball-on, #camera-button, #free-view-button, #guide-button) {
  visibility: hidden;
  pointer-events: none;
}
