/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

em-emoji-picker {
  --color-border-over: rgba(148, 163, 184, 0.35);
  --color-border: rgba(51, 65, 85, 0.9);
  --font-family: "Comic Relief", system-ui;
  --rgb-accent: 148, 163, 184;

  display: flex;
  justify-content: end;
  width: 100%;
  max-width: none;
  min-width: 20rem;
  max-height: min(18rem, 70vh);
  border-radius: 1rem;
  overflow: auto;
}

input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  font-size: 16px;
}

html,
body {
  background: rgb(30, 41, 59);
}

body.hotwire-native {
  min-height: 100dvh;
  background: rgb(30, 41, 59);
  color: rgb(245, 245, 245);
  padding-top: 0;
  overscroll-behavior-y: contain;
  -webkit-font-smoothing: antialiased;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

body.hotwire-native input,
body.hotwire-native textarea,
body.hotwire-native select,
body.hotwire-native [contenteditable="true"] {
  -webkit-touch-callout: default;
  -webkit-user-select: text;
  user-select: text;
}

body.hotwire-native main {
  background: rgb(30, 41, 59);
}

body.hotwire-native #page-content,
body.hotwire-native #page-content.page-content-leaving,
body.hotwire-native #page-content.page-content-entering {
  opacity: 1;
  transform: none;
  transition: none;
}

#page-content {
  opacity: 1;
  transform: none;
  transition:
    opacity 140ms ease-out,
    transform 140ms ease-out;
}

#page-content.page-content-leaving {
  opacity: 0.62;
  transform: translateY(0.2rem);
}

#page-content.page-content-entering {
  opacity: 0;
  transform: translateY(0.25rem);
}

@media (prefers-reduced-motion: reduce) {
  #page-content {
    transition: none;
    transform: none;
  }
}

body.hotwire-native .native-bottom-cta {
  display: none;
}

.native-bottom-cta-spacer {
  height: calc(env(safe-area-inset-bottom) + 5.25rem);
}

body.hotwire-native .native-bottom-cta-spacer {
  display: none;
}

.native-bottom-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
}

body.web-bottom-nav-enabled main {
  padding-bottom: calc(env(safe-area-inset-bottom) + 5.4rem);
}

body.web-bottom-nav-enabled footer {
  padding-bottom: calc(env(safe-area-inset-bottom) + 5rem);
}

body.web-bottom-nav-enabled .native-bottom-cta,
body.web-bottom-nav-enabled .native-bottom-cta-spacer {
  display: none;
}

.web-bottom-nav {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 80;
  padding: 0.32rem 0.55rem max(env(safe-area-inset-bottom), 0.32rem);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  box-shadow: 0 -18px 40px rgba(2, 6, 23, 0.28);
}

.web-bottom-nav-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.25rem;
  width: min(100%, 32rem);
  margin: 0 auto;
}

.web-bottom-nav-item {
  display: flex;
  min-width: 0;
  min-height: 2.95rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.14rem;
  border-radius: 999px;
  color: rgb(203, 213, 225);
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease, opacity 140ms ease;
}

.web-bottom-nav-item:visited {
  color: rgb(203, 213, 225);
}

.web-bottom-nav-item:hover,
.web-bottom-nav-item-active {
  background: rgba(51, 65, 85, 0.68);
  color: rgb(248, 250, 252);
}

.web-bottom-nav-item-disabled {
  cursor: default;
  opacity: 0.72;
}

.web-bottom-nav-icon {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.08rem;
  line-height: 1;
}

.web-bottom-nav-board-plus,
.submit-mini-board-plus,
.account-submit-board-plus {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.web-bottom-nav-board {
  display: grid;
  width: 1.32rem;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.09rem;
}

.web-bottom-nav-board-tile {
  aspect-ratio: 1;
  border-radius: 0.08rem;
}

.web-bottom-nav-board-tile-green {
  background: rgb(101, 211, 137);
}

.web-bottom-nav-board-tile-yellow {
  background: rgb(241, 203, 73);
}

.web-bottom-nav-board-plus-badge,
.submit-mini-board-plus-badge,
.account-submit-board-plus-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgb(226, 232, 240);
  color: rgb(15, 23, 42);
  font-family: "Comic Relief", system-ui;
  font-weight: 900;
  line-height: 1;
}

.web-bottom-nav-board-plus-badge {
  right: -0.42rem;
  top: -0.34rem;
  width: 0.82rem;
  height: 0.82rem;
  font-size: 0.72rem;
}

.submit-header-action {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  min-width: 0;
  margin-left: auto;
  margin-right: 0.1rem;
}

.submit-header-title {
  max-width: 11rem;
  color: rgb(248, 250, 252);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.08;
  text-align: right;
  white-space: nowrap;
}

.submit-header-board-plus {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.45rem;
  height: 2.3rem;
}

.submit-header-board {
  display: grid;
  width: 2.1rem;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.12rem;
}

.submit-header-board-tile {
  aspect-ratio: 1;
  border-radius: 0.12rem;
}

.submit-header-board-tile-green {
  background: rgb(101, 211, 137);
}

.submit-header-board-tile-yellow {
  background: rgb(241, 203, 73);
}

.submit-header-board-plus-badge {
  position: absolute;
  right: 0;
  top: 0;
  display: inline-flex;
  width: 0.82rem;
  height: 0.82rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgb(226, 232, 240);
  color: rgb(15, 23, 42);
  font-family: "Comic Relief", system-ui;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.web-bottom-nav-label {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.05;
}

.ingest-submit-cta {
  position: static;
  background: transparent;
  border-top: 0;
  margin-bottom: 0;
}

.ingest-submit-cta-inner {
  max-width: none;
  margin: 0;
  padding: 0;
}

.ingest-screen {
  padding-bottom: calc(env(safe-area-inset-bottom) + 2rem);
}

@media (min-width: 64rem) {
  .ingest-screen {
    padding-bottom: calc(env(safe-area-inset-bottom) + 2.5rem);
  }
}

body.hotwire-native .ingest-submit-cta {
  position: static;
  background: transparent;
  border-top: 0;
}

body.hotwire-native > header {
  position: relative;
  z-index: 40;
  padding-top: calc(env(safe-area-inset-top) + 0.25rem);
  background: rgb(15, 23, 42);
}

body.hotwire-native.ios-native > header {
  padding-top: 2.55rem;
}

body.hotwire-native > header > div {
  max-width: 32rem;
  justify-content: space-between;
  padding: 0.5rem 1.25rem 0.8rem;
}

body.hotwire-native header nav {
  display: none !important;
}

body.hotwire-native .app-brand a {
  align-items: flex-start;
  padding-right: 0;
}

body.hotwire-native main {
  width: 100%;
  max-width: 32rem;
  padding: 0 0.5rem calc(env(safe-area-inset-bottom) + 5.75rem);
}

body.hotwire-native.ios-native main {
  padding-top: 0;
}

body.hotwire-native #flash-messages {
  padding-top: 0;
}

.flash-messages,
#flash-messages {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 4.15rem);
  left: 0;
  right: 0;
  z-index: 90;
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: none;
  padding: 0 0.85rem;
  pointer-events: none;
}

body.hotwire-native #flash-messages {
  top: calc(env(safe-area-inset-top) + 4.8rem);
}

body.hotwire-native.ios-native #flash-messages {
  top: calc(env(safe-area-inset-top) + 5.6rem);
}

.flash-banner {
  pointer-events: auto;
  width: min(100%, 30rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.75rem;
  padding: 0.72rem 0.75rem;
  color: rgb(248, 250, 252);
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.36);
  backdrop-filter: blur(16px);
  animation: flash-slide-in 160ms ease-out;
}

.flash-banner-notice {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(15, 23, 42, 0.92);
}

.flash-banner-alert {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(69, 10, 10, 0.94);
}

.flash-banner-icon {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
}

.flash-banner-notice .flash-banner-icon {
  color: rgb(167, 243, 208);
}

.flash-banner-alert .flash-banner-icon {
  color: rgb(254, 202, 202);
}

.flash-banner-message {
  min-width: 0;
  color: rgb(226, 232, 240);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
}

.flash-banner-close {
  width: 1.8rem;
  min-height: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(226, 232, 240, 0.72);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.flash-banner-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgb(248, 250, 252);
}

.flash-fade {
  opacity: 0;
  transform: translateY(-0.45rem) scale(0.98);
  transition: opacity 250ms ease, transform 250ms ease;
}

@keyframes flash-slide-in {
  from {
    opacity: 0;
    transform: translateY(-0.45rem) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body.hotwire-native footer {
  display: none;
}

body.hotwire-native a,
body.hotwire-native button,
body.hotwire-native input,
body.hotwire-native select,
body.hotwire-native textarea {
  touch-action: manipulation;
}

body.hotwire-native a,
body.hotwire-native a:visited {
  color: inherit;
}

body.hotwire-native button,
body.hotwire-native input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
body.hotwire-native select,
body.hotwire-native textarea {
  min-height: 44px;
  font-size: 16px !important;
}

body.hotwire-native .leaderboard-go-button {
  min-height: auto !important;
  height: auto !important;
  line-height: 1.5 !important;
  padding-top: 0.375rem !important;
  padding-bottom: 0.375rem !important;
  font-size: 16px !important;
}

/* Exempt small inline buttons inside comments (react picker + trash + reaction chips)
   from the 44px touch-target sizing — they're meant to be compact. */
body.hotwire-native #comments_list button,
body.hotwire-native #comments_list form {
  min-height: auto;
  font-size: inherit;
}

/* Make button_to / form_with form wrappers invisible to the parent flex layout
   so the button inside sits as a direct flex item. */
body.hotwire-native #comments_list form.button_to,
body.hotwire-native #comments_list [data-controller~="emoji-picker"] {
  display: contents;
}

body.hotwire-native input[type="checkbox"],
body.hotwire-native input[type="radio"] {
  width: 1.35rem;
  height: 1.35rem;
  min-height: auto;
}

body.hotwire-native .native-screen {
  padding-top: 0.25rem !important;
  padding-bottom: 0.5rem !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.hotwire-native .leaderboard-screen .px-3,
body.hotwire-native .comments-section-title,
body.hotwire-native .comments-composer,
body.hotwire-native #comments_empty_state,
body.hotwire-native #comments_list > [id^="comment_"] {
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

body.hotwire-native .native-join-screen {
  margin-top: 0;
}

body.hotwire-native .native-profile-screen,
body.hotwire-native .native-account,
body.hotwire-native .native-join-screen,
body.hotwire-native .native-leagues-screen,
body.hotwire-native .stats-screen,
body.hotwire-native .ingest-screen {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

body.hotwire-native .native-profile-screen,
body.hotwire-native .native-join-screen,
body.hotwire-native .native-leagues-screen,
body.hotwire-native .stats-screen,
body.hotwire-native .ingest-screen {
  padding-top: 0.9rem !important;
}

body.hotwire-native .stats-screen {
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
}

body.hotwire-native .ingest-screen {
  max-width: 27rem;
}

body.hotwire-native .ingest-screen textarea {
  min-height: 16rem;
}

body.hotwire-native .ingest-screen input,
body.hotwire-native .ingest-screen textarea {
  line-height: 1.45;
}

body.hotwire-native .submit-share-input {
  font-size: 16px !important;
}

body.hotwire-native .ingest-screen .submit-share-input {
  min-height: 13.5rem;
}

.submit-share-input {
  min-height: 13.5rem;
  border-color: rgb(71, 85, 105);
  border-radius: 0.45rem;
  background: rgba(15, 23, 42, 0.7);
  padding: 0.8rem 0.9rem;
}

.submit-step-title,
.native-link-profile-heading h2 {
  color: rgb(241, 245, 249);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.ingest-intro {
  padding-top: 0.15rem;
  padding-bottom: 0.1rem;
}

.submit-hero {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  text-align: center;
}

.submit-mini-board {
  display: grid;
  width: 4.8rem;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.28rem;
  margin-bottom: 0.1rem;
}

.submit-mini-tile {
  aspect-ratio: 1;
  border-radius: 0.22rem;
  box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.28);
}

.submit-mini-tile-green {
  background: rgb(101, 211, 137);
}

.submit-mini-tile-yellow {
  background: rgb(241, 203, 73);
}

.submit-mini-board-plus {
  width: 4.5rem;
  height: 4.25rem;
}

.submit-mini-board-plus .submit-mini-board {
  width: 4rem;
  gap: 0.23rem;
  margin-bottom: 0;
}

.submit-mini-board-plus-badge {
  right: 0.05rem;
  top: 0.05rem;
  width: 1.12rem;
  height: 1.12rem;
  font-size: 0.92rem;
}

.ingest-title {
  color: rgb(248, 250, 252);
  font-size: 1.48rem;
  font-weight: 800;
  line-height: 1.08;
  white-space: nowrap;
}

@media (min-width: 24rem) {
  .ingest-title {
    font-size: 1.58rem;
  }
}

.ingest-subtitle,
.ingest-account-line,
.ingest-helper-line {
  color: rgb(148, 163, 184);
  font-size: 0.9rem;
  line-height: 1.55;
}

.ingest-subtitle {
  margin-top: 0.15rem;
}

.account-help-contact {
  margin-top: 0.55rem;
  color: rgb(148, 163, 184);
  font-size: 0.85rem;
  line-height: 1.45;
}

.account-help-contact-link,
.ingest-play-link,
.native-link-profile-recovery-link {
  color: rgb(226, 232, 240);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.ingest-status {
  margin-top: 0.85rem;
  color: rgb(167, 243, 208);
  font-size: 0.9rem;
  line-height: 1.55;
}

.ingest-account-line {
  margin-top: 0;
  color: rgb(100, 116, 139);
}

.submit-source-emoji {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1rem;
  line-height: 1;
}

.submit-source-link {
  color: rgb(167, 243, 208);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.22rem;
}

.submit-source-link:visited {
  color: rgb(167, 243, 208);
}

.submit-source-link:hover {
  color: rgb(209, 250, 229);
}

.submit-steps {
  display: grid;
  gap: 0.28rem;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  color: rgb(148, 163, 184);
  font-size: 1.05rem;
  line-height: 1.5;
  text-align: left;
}

.submit-steps li {
  display: grid;
  grid-template-columns: 1.55rem minmax(0, 1fr);
  gap: 0.42rem;
}

.submit-step-number {
  color: rgb(167, 243, 208);
  font-weight: 800;
  text-align: right;
}

.ingest-play-link:visited {
  color: rgb(226, 232, 240);
}

.ingest-section,
.native-link-profile-form {
  display: grid;
  gap: 0.55rem;
}

.ingest-section.hidden {
  display: none;
}

.submit-profile-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  border: 1px solid rgb(51, 65, 85);
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.35);
  padding: 0.25rem;
}

.join-mode-toggle {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.join-mode-toggle-recognized {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.join-hero-emoji {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 3rem;
  line-height: 1;
}

.join-header-emoji,
.me-header-emoji,
.stats-header-emoji,
.leaderboard-header-emoji,
.settings-header-emoji,
.league-header-emoji,
.recovery-header-emoji {
  margin-left: auto;
  margin-right: 0.1rem;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.8rem;
  line-height: 1;
}

.native-header-action-with-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  margin-right: 0.1rem;
}

.native-header-action-with-back .stats-header-emoji,
.native-header-action-with-back .settings-header-emoji,
.native-header-action-with-back .join-header-emoji,
.native-header-action-with-back .league-header-emoji {
  margin-left: 0;
  margin-right: 0;
}

.native-header-back-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  min-height: 2rem;
  color: rgb(203, 213, 225);
  font-size: 2.15rem;
  line-height: 1;
  text-decoration: none;
}

.submit-profile-option {
  min-height: 2.6rem;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  padding: 0.45rem 0.5rem;
  color: rgb(148, 163, 184);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.submit-profile-option.border-slate-200 {
  border-color: transparent;
  background: rgba(51, 65, 85, 0.5);
  color: rgb(241, 245, 249);
}

.submit-paste-panel {
  padding: 0;
}

.ingest-section-heading,
.native-link-profile-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ingest-section-heading > div {
  min-width: 0;
}

.submit-paste-action {
  flex-shrink: 0;
}

.ingest-required-pill {
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.65);
  padding: 0.18rem 0.55rem;
  color: rgb(148, 163, 184);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.ingest-nickname-input {
  min-height: 48px;
  border-radius: 0.75rem;
}

.ingest-player-display {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgb(226, 232, 240);
  font-size: 1.42rem;
  font-weight: 800;
}

.ingest-player-display-prefix {
  color: rgb(148, 163, 184);
}

.ingest-player-display-name,
.player-code-match span {
  color: rgb(241, 245, 249);
  font-weight: 800;
}

.ingest-player-code-input {
  min-height: 48px;
  border-radius: 0.75rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.ingest-update-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgb(203, 213, 225);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.ingest-update-toggle input {
  width: 1rem;
  height: 1rem;
  min-height: auto;
  accent-color: rgb(101, 211, 137);
}

.submit-paste-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: rgb(148, 163, 184);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  transition: background-color 150ms ease, border-color 150ms ease;
  white-space: nowrap;
}

.submit-paste-button:hover {
  color: rgb(226, 232, 240);
}

.submit-paste-icon {
  font-size: 1rem;
  line-height: 1;
}

body.hotwire-native .submit-paste-button {
  min-height: 42px;
  font-size: 0.9rem;
}

body.hotwire-native .submit-primary-button {
  min-height: 50px;
  font-size: 1rem;
}

.submit-primary-button,
.native-primary-button.submit-primary-button {
  border-radius: 0.28rem;
  background: rgb(91, 174, 141);
  color: rgb(248, 250, 252);
}

.submit-primary-button:hover,
.native-primary-button.submit-primary-button:hover {
  background: rgb(104, 194, 158);
}

.submit-reset-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  background: transparent;
  padding: 0.5rem 1rem;
  color: rgb(148, 163, 184);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.submit-reset-button:hover {
  color: rgb(226, 232, 240);
}

.submit-reset-button.hidden {
  display: none;
}

.ingest-review-panel {
  display: grid;
  gap: 0.75rem;
  border-top: 1px solid rgb(51, 65, 85);
  padding-top: 1rem;
  color: rgb(241, 245, 249);
}

.ingest-review-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgb(148, 163, 184);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ingest-review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem;
}

.ingest-review-facts {
  display: grid;
  gap: 0.4rem;
  color: rgb(203, 213, 225);
  font-size: 0.95rem;
}

.ingest-review-score {
  text-align: right;
}

.ingest-review-score-label {
  color: rgb(148, 163, 184);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ingest-review-score-value {
  color: rgb(248, 250, 252);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
}

.ingest-review-comment-row {
  padding-top: 0.15rem;
}

.ingest-review-comment-input {
  width: 100%;
  min-height: 2.5rem;
  border: 1px solid rgb(51, 65, 85);
  border-radius: 0.5rem;
  background: rgb(15, 23, 42);
  padding: 0.55rem 0.75rem;
  color: rgb(226, 232, 240);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
}

.ingest-review-comment-input::placeholder {
  color: rgb(100, 116, 139);
}

.ingest-review-comment-input:focus {
  border-color: rgb(94, 234, 212);
  box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.16);
}

body.hotwire-native .ingest-screen h2 {
  letter-spacing: 0;
}

body.hotwire-native:not(.ios-native) .native-page-heading {
  display: none;
}

body.hotwire-native:not(.ios-native) .native-page-title {
  display: none;
}

.native-page-heading {
  display: grid;
  grid-template-columns: 2.5rem 1fr 2.5rem;
  align-items: center;
}

.native-page-heading-web-back {
  grid-template-columns: auto 1fr auto;
  column-gap: 0.75rem;
}

.native-back-caret,
.native-heading-spacer {
  width: 2.5rem;
  min-height: 2.5rem;
}

.native-back-caret {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  color: rgb(203, 213, 225);
  font-size: 2.35rem;
  line-height: 1;
  text-decoration: none;
}

body.hotwire-native .native-back-caret {
  min-height: 2.5rem;
}

.native-web-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  color: rgb(203, 213, 225);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
  white-space: nowrap;
}

body.hotwire-native .native-web-back-link {
  min-height: 2.5rem;
}

.native-profile-hero {
  padding: 1.25rem 0 0.5rem;
}

.native-profile-hero-empty {
  min-height: min(30vh, 12rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 0 0.85rem;
}

.native-profile-empty-emoji {
  margin-bottom: 0.65rem;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 2.85rem;
  line-height: 1;
}

.native-clue-grid {
  width: 5.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  margin: 0 auto 1.35rem;
}

.native-clue-tile {
  aspect-ratio: 1;
  border-radius: 0.28rem;
  box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.25);
}

.native-clue-tile-green {
  background: rgb(101, 211, 137);
}

.native-clue-tile-yellow {
  background: rgb(239, 204, 83);
}

.native-line-input {
  width: 100%;
  border: 0;
  border-bottom: 2px solid rgba(71, 85, 105, 0.95);
  border-radius: 0;
  background: transparent;
  padding: 0.5rem 0;
  color: rgb(241, 245, 249);
  outline: none;
}

.native-line-input:focus {
  border-bottom-color: rgb(203, 213, 225);
}

.native-line-input::placeholder {
  color: rgb(100, 116, 139);
}

.settings-style-input {
  width: 100%;
  border: 2px solid rgb(71, 85, 105);
  border-radius: 0.375rem;
  background: rgb(15, 23, 42);
  padding: 0.5rem 0.75rem;
  color: rgb(241, 245, 249);
  font-size: 0.875rem;
  outline: none;
}

.settings-style-input:focus {
  border-color: rgb(148, 163, 184);
}

.settings-style-input::placeholder {
  color: rgb(100, 116, 139);
}

.settings-style-input.ingest-player-display,
.settings-style-input.ingest-player-code-input {
  font-size: 1.15rem;
  font-weight: 800;
}

body.hotwire-native .settings-style-input.ingest-player-display,
body.hotwire-native .settings-style-input.ingest-player-code-input {
  font-size: 1.15rem !important;
}

.settings-style-input.ingest-player-code-input.ingest-player-code-input-readonly,
.settings-style-input.ingest-player-code-input[readonly] {
  border-color: rgba(51, 65, 85, 0.55) !important;
  background: rgba(51, 65, 85, 0.36) !important;
  color: rgb(100, 116, 139) !important;
  -webkit-text-fill-color: rgb(100, 116, 139);
  opacity: 1;
  box-shadow: inset 0 0 0 999px rgba(51, 65, 85, 0.12);
  cursor: not-allowed;
}

.settings-style-input.ingest-player-code-input.ingest-player-code-input-readonly:focus,
.settings-style-input.ingest-player-code-input[readonly]:focus {
  border-color: rgba(51, 65, 85, 0.55) !important;
}

.native-primary-button {
  width: 100%;
  min-height: 48px;
  border-radius: 0.5rem;
  background: rgb(51, 65, 85);
  padding: 0.75rem 1rem;
  color: rgb(248, 250, 252);
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.native-primary-button:hover {
  background: rgb(71, 85, 105);
}

.native-primary-button.submit-primary-button:disabled,
.native-primary-button.submit-primary-button:disabled:hover {
  background: rgb(51, 65, 85);
  color: rgb(148, 163, 184);
  cursor: not-allowed;
  opacity: 0.72;
}

.native-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 0.5rem;
  border: 2px solid rgb(51, 65, 85);
  background: transparent;
  padding: 0.5rem 1rem;
  color: rgb(226, 232, 240);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.native-secondary-button:hover {
  border-color: rgb(71, 85, 105);
  background: rgba(51, 65, 85, 0.45);
  color: rgb(248, 250, 252);
}

.native-compact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 0.375rem;
  border: 1px solid rgb(71, 85, 105);
  padding: 0.375rem 0.75rem;
  color: rgb(226, 232, 240);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.native-compact-button:hover {
  background: rgba(51, 65, 85, 0.55);
  border-color: rgb(100, 116, 139);
}

.league-limit-card {
  display: grid;
  gap: 0.65rem;
  width: 100%;
  border-top: 1px solid rgba(71, 85, 105, 0.9);
  padding-top: 0.9rem;
  color: rgb(203, 213, 225);
  text-align: left;
}

.league-row-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 5.75rem;
  flex: 0 0 5.75rem;
}

.league-row-actions .native-compact-button {
  width: 100%;
}

.league-limit-title {
  color: rgb(241, 245, 249);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
}

.league-limit-copy {
  color: rgb(148, 163, 184);
  font-size: 0.9rem;
  line-height: 1.45;
}

.league-limit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.league-limit-actions .native-compact-button {
  flex: 1 1 8rem;
}

.league-limit-secondary {
  color: rgb(203, 213, 225);
}

.native-inline-link {
  color: rgb(203, 213, 225);
  font-size: 0.875rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

.native-inline-link:hover {
  color: rgb(248, 250, 252);
  text-decoration: underline;
}

.native-danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 0.5rem;
  border: 2px solid rgb(239, 68, 68);
  padding: 0.5rem 1rem;
  color: rgb(252, 165, 165);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.native-danger-button:hover {
  background: rgb(185, 28, 28);
  color: rgb(255, 255, 255);
}

.native-join-form,
.native-link-profile {
  border-top: 1px solid rgba(71, 85, 105, 0.8);
  display: grid;
  gap: 0.65rem;
  padding-top: 1rem;
}

.native-join-form-flush {
  border-top: 0;
  padding-top: 0;
}

.native-link-profile.hidden {
  display: none;
}

.native-link-profile-heading span {
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.65);
  padding: 0.18rem 0.55rem;
  color: rgb(148, 163, 184);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.native-link-profile-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: stretch;
}

.native-link-profile-submit {
  width: auto;
  min-width: 4.6rem;
  padding-inline: 1rem;
}

.player-code-match {
  display: grid;
  gap: 0.55rem;
  border: 1px solid rgba(94, 234, 212, 0.35);
  border-radius: 0.5rem;
  background: rgba(20, 184, 166, 0.08);
  padding: 0.75rem;
  color: rgb(203, 213, 225);
  font-size: 0.9rem;
  line-height: 1.45;
}

.player-code-match.hidden {
  display: none;
}

.player-code-match-form {
  margin: 0;
}

.player-code-match-button {
  min-height: 40px;
  width: 100%;
}

.native-link-profile-recovery {
  color: rgb(148, 163, 184);
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: center;
}

.stats-screen {
  color: rgb(241, 245, 249);
}

.stats-page-heading {
  min-height: 1.25rem;
}

.stats-hero {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  text-align: center;
}

.stats-hero .native-clue-grid {
  width: 4.8rem;
  gap: 0.28rem;
  margin-bottom: 0.1rem;
}

.stats-player-name {
  color: rgb(248, 250, 252);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.08;
}

.stats-history-label {
  margin-top: 0.35rem;
  color: rgb(167, 243, 208);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

.stats-history-since-label {
  margin-top: 0.1rem;
}

.stats-plan-note {
  max-width: 23rem;
  margin: 0.25rem auto 0;
  color: rgb(148, 163, 184);
  font-size: 0.9rem;
  line-height: 1.45;
}

.stats-export-wrap {
  margin-top: 0.75rem;
}

.stats-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.stats-metric-card {
  border: 1px solid rgb(51, 65, 85);
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.35);
  padding: 0.8rem 0.7rem;
  text-align: center;
}

.stats-metric-label {
  color: rgb(148, 163, 184);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
}

.stats-metric-value {
  margin-top: 0.18rem;
  color: rgb(248, 250, 252);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
}

.stats-fact-list {
  display: grid;
  gap: 0.55rem;
  color: rgb(203, 213, 225);
  font-size: 0.92rem;
}

.stats-fact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(71, 85, 105, 0.65);
  padding-top: 0.55rem;
}

.stats-trend-section {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.35rem;
  border-top: 1px solid rgba(100, 116, 139, 0.72);
  padding-top: 1.15rem;
  padding-bottom: 0.55rem;
}

.stats-trend-header {
  display: grid;
  gap: 0.55rem;
}

.stats-trend-title {
  line-height: 1;
}

.stats-trend-range-form {
  display: grid;
  grid-template-columns: minmax(5.6rem, 0.72fr) minmax(8rem, 1fr);
  align-items: end;
  gap: 0.5rem;
  max-width: 18rem;
  margin-top: 0;
}

.stats-trend-control {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.stats-trend-control-label {
  color: rgb(148, 163, 184);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.stats-screen select.stats-trend-select {
  width: 100%;
  height: 2rem !important;
  min-height: 2rem !important;
  border: 1px solid rgba(71, 85, 105, 0.92);
  border-radius: 0.38rem;
  background-color: rgba(51, 65, 85, 0.82);
  color: rgb(226, 232, 240);
  font-size: 0.76rem !important;
  font-weight: 800;
  line-height: 1 !important;
  padding: 0.26rem 1.35rem 0.26rem 0.5rem !important;
}

.stats-trend-chart {
  width: 100%;
  height: auto;
  min-height: 9rem;
  overflow: visible;
  border: 1px solid rgba(71, 85, 105, 0.8);
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.35);
}

.stats-trend-grid-line {
  stroke: rgba(100, 116, 139, 0.36);
  stroke-width: 1;
}

.stats-trend-line {
  fill: none;
  stroke: rgb(167, 243, 208);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.stats-trend-point {
  fill: rgb(250, 204, 21);
  stroke: rgb(15, 23, 42);
  stroke-width: 1.5;
}

.stats-trend-point-label {
  fill: rgb(226, 232, 240);
  font-size: 6.5px;
  font-weight: 900;
  paint-order: stroke;
  stroke: rgba(15, 23, 42, 0.92);
  stroke-linejoin: round;
  stroke-width: 3px;
  text-anchor: middle;
}

.stats-trend-axis-label,
.stats-trend-date-label {
  fill: rgb(148, 163, 184);
  font-size: 6.2px;
  font-weight: 800;
}

.stats-trend-date-label {
  text-anchor: middle;
}

.stats-trend-date-label-end {
  text-anchor: end;
}

.stats-trend-date-label-center {
  text-anchor: middle;
}

.stats-trend-axis-title {
  letter-spacing: 0;
}

.stats-trend-empty {
  border: 1px solid rgba(71, 85, 105, 0.8);
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.35);
  padding: 1rem;
  color: rgb(148, 163, 184);
  font-size: 0.9rem;
  text-align: center;
}

.stats-highlight-row {
  border-top: 1px solid rgba(71, 85, 105, 0.8);
  padding-top: 0.75rem;
  color: rgb(203, 213, 225);
}

.stats-highlight-label {
  color: rgb(148, 163, 184);
  font-size: 0.88rem;
  font-weight: 800;
}

.stats-highlight-main {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.25rem;
  font-size: 1rem;
}

.stats-scorecards-section {
  display: grid;
  gap: 0.75rem;
  border-top: 1px solid rgba(71, 85, 105, 0.8);
  padding-top: 1rem;
}

.stats-scorecards-list {
  display: grid;
  gap: 0.5rem;
}

.stats-scorecard {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  border: 1px solid rgba(71, 85, 105, 0.8);
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.35);
  padding: 0.65rem;
}

.stats-scorecard-main {
  min-width: 0;
}

.stats-scorecard-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.75rem;
}

.stats-scorecard-date {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  color: rgb(241, 245, 249);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}

.stats-scorecard-difficulty {
  color: rgb(148, 163, 184);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stats-scorecard-score-wrap {
  display: grid;
  justify-items: end;
  gap: 0.22rem;
}

.stats-scorecard-score {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.25rem;
  min-width: 4.2rem;
  margin-top: 0;
  color: rgb(248, 250, 252);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  text-align: right;
}

.stats-scorecard-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin-top: 0.4rem;
  color: rgb(148, 163, 184);
  font-size: 0.78rem;
  font-weight: 700;
}

.stats-scorecard-board {
  display: grid;
  width: 3rem;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.13rem;
}

.stats-scorecard-tile {
  aspect-ratio: 1;
  border-radius: 0.14rem;
  box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.28);
}

.stats-scorecard-tile-green {
  background: rgb(101, 211, 137);
}

.stats-scorecard-tile-yellow {
  background: rgb(241, 203, 73);
}

.stats-scorecard-tile-hint-yellow {
  background: rgb(250, 204, 21);
  border-radius: 999px;
}

.stats-scorecard-tile-hint-orange {
  background: rgb(251, 146, 60);
  border-radius: 999px;
}

.stats-scorecard-tile-blank {
  background: rgb(71, 85, 105);
}

body.hotwire-native .native-legal-links {
  display: grid;
  padding-top: 0.25rem;
}

body.hotwire-native .native-legal-links a {
  min-height: 44px;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(51, 65, 85, 0.8);
  color: rgb(148, 163, 184);
  font-size: 0.9rem;
}

body.hotwire-native .pagy.series-nav a,
body.hotwire-native .pagy.series-nav [aria-disabled="true"],
body.hotwire-native .pagy.series-nav [aria-current="page"] {
  min-width: 44px;
  min-height: 44px;
}

.leaderboard-pager .pagy.series-nav a,
.leaderboard-pager .pagy.series-nav [aria-disabled="true"],
.leaderboard-pager .pagy.series-nav [aria-current="page"] {
  width: 1.9rem;
  height: 1.9rem;
  min-width: 1.9rem;
  min-height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0.45rem;
  line-height: 1;
}

body.hotwire-native .leaderboard-pager .pagy.series-nav a,
body.hotwire-native .leaderboard-pager .pagy.series-nav [aria-disabled="true"],
body.hotwire-native .leaderboard-pager .pagy.series-nav [aria-current="page"] {
  width: 1.9rem;
  height: 1.9rem;
  min-width: 1.9rem;
  min-height: 1.9rem;
  font-size: 0.875rem;
}

.leaderboard-pager .pagy.series-nav {
  gap: 0.25rem;
}

.leaderboard-screen {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: -1.25rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

@media (min-width: 64rem) {
  .leaderboard-screen {
    padding-left: 0;
    padding-right: 0;
  }
}

.leaderboard-header-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

@media (max-width: 63.999rem) {
  body.web-bottom-nav-enabled > header > div {
    padding-top: 0.65rem;
    padding-bottom: 0.2rem;
  }

  body.web-bottom-nav-enabled .leaderboard-screen {
    gap: 0.65rem;
    margin-top: -1.5rem;
  }

  body.web-bottom-nav-enabled .leaderboard-header-stack {
    gap: 0.35rem;
  }
}

body.hotwire-native .leaderboard-screen {
  gap: 0.65rem;
  margin-top: -1.75rem;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

body.hotwire-native.ios-native .leaderboard-screen {
  margin-top: 0;
  padding-top: 0 !important;
}

body.hotwire-native.android-native .leaderboard-screen {
  margin-top: 0;
  padding-top: 0.85rem !important;
}

body.hotwire-native .leaderboard-header-stack {
  gap: 0.85rem;
}

.leaderboard-gate-locked {
  min-height: 0;
  overflow: hidden;
}

body.hotwire-native .leaderboard-gate-locked {
  min-height: 0;
}

.leaderboard-gate-locked [data-leaderboard-gate-target="content"] {
  inset: 0;
  max-height: 100%;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  visibility: hidden;
}

.leaderboard-gate-overlay {
  overscroll-behavior: contain;
}

.leaderboard-gate-action {
  min-height: 44px;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.leaderboard-date-label {
  margin: 0;
  line-height: 1.25;
}

.leaderboard-filter-wrap {
  margin-top: 0;
}

.leaderboard-filter-control {
  min-height: 2.25rem;
}

body.hotwire-native .leaderboard-filter-control {
  height: 2.25rem;
}

.leaderboard-go-button {
  width: 3.75rem;
  height: 2.25rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.25rem;
  line-height: 1;
}

.leaderboard-filter-form {
  display: grid;
  grid-template-columns: auto minmax(8.75rem, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
}

.leaderboard-calendar-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2.25rem;
}

.leaderboard-calendar-input {
  position: absolute;
  inset: 0;
  width: 2rem;
  height: 2.25rem;
  opacity: 0.01;
  color: transparent;
}

.leaderboard-calendar-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2.25rem;
  cursor: pointer;
  user-select: none;
  line-height: 1;
}

body.hotwire-native .leaderboard-calendar-input,
body.hotwire-native .leaderboard-calendar-label {
  min-height: 2.25rem;
}

.native-league-header {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  width: 100%;
  max-width: 30rem;
}

.native-league-header-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.15rem 0.6rem;
  line-height: 1.15;
}

.native-league-header-caret {
  display: inline-flex;
  align-items: center;
  color: rgb(241, 245, 249);
  font-size: 0.95em;
  line-height: 1;
}

.native-league-header-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  outline: none;
  opacity: 0.01;
  appearance: none;
  -webkit-appearance: none;
}

body.hotwire-native .native-league-header-select {
  min-height: 100%;
}

body.hotwire-native .native-league-header {
  margin: 0 auto;
  max-width: 30rem;
  justify-content: center;
}

body.hotwire-native .native-league-header-title {
  justify-content: center;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
  text-align: center;
}

body.hotwire-native .native-league-header-title span:first-child {
  min-width: auto;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.native-league-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  color: rgb(203, 213, 225);
}

.native-league-actions form {
  display: inline-flex;
}

.native-league-action {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  border-radius: 0.35rem;
  padding: 0.2rem 0.35rem;
  color: rgb(203, 213, 225);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.native-league-action:hover {
  background: rgba(15, 23, 42, 0.45);
}

body.hotwire-native .native-league-actions {
  gap: 0.7rem;
  margin-top: 0;
  margin-bottom: 0;
}

body.hotwire-native .native-league-actions form {
  min-height: auto;
}

body.hotwire-native .native-league-action {
  justify-content: center;
  min-width: 2.2rem;
  min-height: 1rem;
  padding: 0;
  border-radius: 999px;
  color: rgb(203, 213, 225);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  background: transparent;
}

body.hotwire-native .native-league-action:hover {
  background: transparent;
}

.clipboard-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.4rem);
  z-index: 80;
  transform: translateX(-50%);
  width: max-content;
  max-width: 11rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  padding: 0.25rem 0.55rem;
  color: rgb(241, 245, 249);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.35);
  pointer-events: none;
}

.clipboard-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border-left: 0.28rem solid transparent;
  border-right: 0.28rem solid transparent;
  border-top: 0.28rem solid rgba(15, 23, 42, 0.96);
}

button[data-controller~="clipboard"],
[data-controller~="clipboard"] button {
  position: relative;
}

body.hotwire-native .leaderboard-board-toggle {
  min-height: auto;
  font-size: 12px !important;
}

@media (min-width: 64rem) {
  body.hotwire-native .leaderboard-board-toggle {
    font-size: 14px !important;
  }
}

.comments-composer {
  width: 100%;
  min-width: 0;
}

.comments-section {
  padding-top: 1.25rem;
}

.comments-section-title {
  color: rgb(248 250 252);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.15;
}

body.hotwire-native .comments-section {
  padding-top: 1.75rem;
}

body.hotwire-native .comments-section-title {
  font-size: 1.25rem;
}

.comments-composer-input {
  height: 2.25rem;
  min-height: 2.25rem;
  max-height: 6.75rem;
  box-sizing: border-box;
  display: block;
  padding: 0.45rem 0.5rem;
  resize: none;
  overflow-x: hidden;
  overflow-y: hidden;
  white-space: pre-wrap;
  word-break: break-word;
}

.comments-composer-submit {
  width: 2.25rem;
  height: 2.25rem;
  min-height: 2.25rem;
}

body.hotwire-native .comments-composer-input,
body.hotwire-native .comments-composer-submit {
  min-height: 2.25rem;
}

.comment-body,
.comments-composer-input {
  font-size: 0.75rem;
  line-height: 1.2rem;
}

body.hotwire-native .comment-body,
body.hotwire-native .comments-composer-input {
  font-size: 0.75rem;
  line-height: 1.35;
}

.comment-header {
  line-height: 1.4;
}

body.hotwire-native .comment-header {
  font-size: 0.875rem;
}

.comment-delete-button {
  width: 1.75rem;
  height: 1.75rem;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: rgb(203 213 225);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.78;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.comment-delete-button.hidden {
  display: none;
}

.comment-delete-button:hover {
  background: rgb(30 41 59 / 0.75);
  opacity: 1;
}

.comment-reaction-button {
  min-height: auto;
  padding: 0.125rem 0.25rem;
  font-size: 0.8125rem;
  line-height: 1.25;
}

body.hotwire-native .comment-delete-button,
body.hotwire-native .comment-reaction-button {
  min-height: auto;
  font-size: 16px !important;
}

.native-account-hero {
  display: block;
  padding: 0.85rem 0 0;
}

.native-subscription-flash {
  width: 100%;
  border: 1px solid rgba(52, 211, 153, 0.38);
  border-radius: 0.7rem;
  background: rgba(6, 78, 59, 0.36);
  color: rgb(209, 250, 229);
  padding: 0.78rem 0.85rem;
  font-size: 0.92rem;
  line-height: 1.25rem;
  font-weight: 700;
  text-align: center;
}

.native-subscription-flash-warning {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(120, 53, 15, 0.34);
  color: rgb(254, 243, 199);
  text-align: left;
}

.native-account-avatar {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.8);
  font-size: 1.75rem;
}

.native-action-list {
  border-top: 1px solid rgba(71, 85, 105, 0.8);
}

.native-action-row {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(71, 85, 105, 0.8);
  min-height: 62px;
}

.native-action-row-static {
  color: inherit;
}

.native-plan-row-content {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
}

.native-plan-row-header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.native-plan-current-value {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  color: rgb(203, 213, 225);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: right;
  white-space: nowrap;
}

.native-plan-current-label {
  color: rgb(100, 116, 139);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1rem;
  text-transform: uppercase;
}

.native-action-icon {
  width: 3rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  color: rgb(203, 213, 225);
  font-size: 1.45rem;
  font-weight: 700;
}

.native-action-icon-primary {
  color: rgb(101, 211, 137);
}

.account-submit-board {
  display: grid;
  width: 1.75rem;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.12rem;
}

.account-submit-board-tile {
  aspect-ratio: 1;
  border-radius: 0.09rem;
}

.account-submit-board-tile-green {
  background: rgb(101, 211, 137);
}

.account-submit-board-tile-yellow {
  background: rgb(241, 203, 73);
}

.account-submit-board-plus-badge {
  right: -0.45rem;
  top: -0.45rem;
  width: 1rem;
  height: 1rem;
  font-size: 0.82rem;
}

.native-action-title,
.native-action-subtitle {
  display: block;
}

.native-action-title {
  color: rgb(241, 245, 249);
  font-weight: 700;
}

.native-action-subtitle {
  margin-top: 0.1rem;
  color: rgb(148, 163, 184);
  font-size: 0.86rem;
  line-height: 1.25rem;
}

.native-plan-status {
  display: grid;
  gap: 0.14rem;
  margin-top: 0.25rem;
  max-width: 100%;
}

.native-plan-status-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.85rem;
  color: rgb(148, 163, 184);
  font-size: 0.82rem;
  line-height: 1.12rem;
}

.native-plan-status-label {
  flex: 0 0 auto;
  color: rgb(100, 116, 139);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.native-plan-status-value {
  min-width: 0;
  color: rgb(203, 213, 225);
  font-weight: 700;
  text-align: right;
}

.native-plan-status-date {
  color: rgb(148, 163, 184);
  font-weight: 600;
}

.native-plan-tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 0.32rem;
  vertical-align: middle;
}

.native-plan-tooltip {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.native-plan-info-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.24);
  color: rgb(186, 230, 253);
  border: 1px solid rgba(125, 211, 252, 0.55);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.native-plan-tooltip-bubble {
  position: absolute;
  z-index: 20;
  right: 0;
  top: 1.45rem;
  width: min(17rem, 72vw);
  padding: 0.68rem 0.75rem;
  border-radius: 0.7rem;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(125, 211, 252, 0.32);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  color: rgb(226, 232, 240);
  font-size: 0.76rem;
  line-height: 1.12rem;
  font-weight: 600;
  text-align: left;
  white-space: normal;
  opacity: 0;
  transform: translateY(-0.15rem);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.native-plan-tooltip-wrap.native-plan-tooltip-open .native-plan-tooltip-bubble {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: hover) {
  .native-plan-tooltip-wrap:hover .native-plan-tooltip-bubble {
    opacity: 1;
    transform: translateY(0);
  }
}

.native-account .native-legal-links {
  display: grid;
  gap: 0.3rem;
  margin-left: 0;
  padding-top: 0.35rem;
  border-top: 0;
}

.native-account .native-legal-links a {
  min-height: 32px;
  display: flex;
  align-items: center;
  padding-left: 0;
  color: rgba(148, 163, 184, 0.72);
  font-size: 0.78rem;
}

.native-account .native-legal-links-empty {
  justify-items: center;
  text-align: center;
}

.native-account .native-legal-links-empty a {
  justify-content: center;
}

body.hotwire-native .native-account {
  padding-top: 0.2rem !important;
  padding-bottom: 0.35rem !important;
  row-gap: 0.35rem !important;
}

body.hotwire-native .native-account > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.4rem !important;
}

body.hotwire-native .native-account-hero {
  padding-top: 0.35rem;
}

body.hotwire-native .native-account .native-action-row {
  min-height: 54px;
  padding-top: 0.58rem;
  padding-bottom: 0.58rem;
}

body.hotwire-native .native-account .native-legal-links {
  gap: 0.1rem;
  padding-top: 0.1rem;
}

body.hotwire-native .native-account .native-legal-links a {
  min-height: 26px;
}

body.hotwire-native .native-account .native-legal-links a {
  border-top: 0;
}

body.hotwire-native .native-account-empty {
  display: flex;
  min-height: calc(100dvh - 9.5rem);
  flex-direction: column;
  justify-content: center;
}

body.hotwire-native .native-account-empty .native-profile-hero-empty {
  min-height: auto;
}

body.hotwire-native .native-account-empty .native-action-list {
  width: 100%;
}

body.hotwire-native .native-account-empty .native-legal-links {
  margin-top: 0.85rem !important;
}
