.native-app-shell {
  min-height: 100vh;
  padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px));
  color: var(--ps-text-primary);
  background: var(--ps-bg-base);
}

.native-app-shell [hidden] {
  display: none !important;
}

.native-app-shell button,
.native-app-shell a {
  -webkit-tap-highlight-color: transparent;
}

.native-app-shell svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
}

.native-shell-topbar {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ps-border);
  background: var(--ps-glass-bg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.native-shell-topbar__inner {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
}

.native-shell-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.native-shell-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ps-text-primary);
  font-size: 1.125rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.native-shell-brand img {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.native-shell-brand strong {
  color: var(--ps-primary);
}

.native-shell-brand em {
  color: var(--ps-gold);
  font-style: normal;
}

.native-shell-qualified {
  flex: 0 0 auto;
  padding: 0.35rem 0.25rem;
  color: transparent;
  background: linear-gradient(90deg, #f97316, #facc15);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 1rem;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
}

.native-shell-qualified.is-qualified {
  background-image: linear-gradient(90deg, #22c55e, #facc15);
}

.native-shell-coins {
  min-height: 2rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  font-size: 0.875rem;
  font-weight: 700;
  transition: background-color 150ms ease, transform 150ms ease;
}

.native-shell-coins:hover {
  background: rgba(245, 158, 11, 0.2);
}

.native-shell-coins:active {
  transform: scale(0.97);
}

.native-shell-coins svg {
  width: 1rem;
  height: 1rem;
}

.native-shell-account-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.native-shell-popover {
  position: relative;
}

.native-shell-icon-button,
.native-shell-close {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  color: var(--ps-text-secondary);
  background: transparent;
  transition: color 150ms ease, background-color 150ms ease;
}

.native-shell-icon-button:hover,
.native-shell-close:hover {
  color: var(--ps-text-primary);
  background: var(--ps-bg-hover);
}

.native-shell-icon-button:focus-visible,
.native-shell-close:focus-visible,
.native-shell-top-item:focus-visible,
.native-shell-bottom-item:focus-visible,
.native-shell-quick-post:focus-visible,
.native-shell-more-menu a:focus-visible,
.native-shell-more-menu button:focus-visible {
  outline: 2px solid var(--ps-primary);
  outline-offset: 2px;
}

.native-shell-notification-badge,
.native-shell-chat-badge {
  position: absolute;
  min-width: 1.125rem;
  height: 1.125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.25rem;
  border: 2px solid var(--ps-bg-surface);
  border-radius: 9999px;
  color: #fff;
  background: var(--ps-error);
  font-size: 0.625rem;
  font-weight: 800;
  line-height: 1;
}

.native-shell-notification-badge {
  top: -0.25rem;
  right: -0.25rem;
}

.native-shell-chat-badge {
  top: -0.45rem;
  right: -0.6rem;
}

.native-shell-avatar {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  color: var(--ps-primary);
  background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
  box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.5), inset -1px -1px 3px rgba(50, 50, 50, 0.3), 0 0 0 2px rgba(40, 40, 40, 0.8);
  font-size: 0.875rem;
  font-weight: 800;
}

.native-shell-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.native-shell-top-navigation {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 0.5rem;
}

.native-shell-top-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 0.75rem;
  color: var(--ps-text-secondary);
  background: transparent;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  transition: color 150ms ease, background-color 150ms ease, transform 100ms ease;
}

.native-shell-top-item:hover {
  color: var(--ps-text-primary);
  background: var(--ps-bg-hover);
}

.native-shell-top-item.is-active,
.native-shell-top-item[aria-expanded="true"] {
  color: var(--ps-primary);
}

.native-shell-top-item.is-active svg {
  filter: drop-shadow(0 0 8px var(--ps-primary-glow));
}

.native-shell-top-item:active {
  transform: scale(0.96);
}

.native-shell-nav-icon {
  position: relative;
  display: inline-flex;
}

.native-shell-notifications,
.native-shell-more-menu {
  position: absolute;
  z-index: 100;
  right: 0;
  top: calc(100% + 0.5rem);
  overflow: hidden;
  border: 1px solid var(--ps-border);
  border-radius: 0.75rem;
  color: var(--ps-text-primary);
  background: var(--ps-bg-surface);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: native-shell-menu-enter 140ms ease-out both;
}

.native-shell-notifications {
  width: 20rem;
  max-width: calc(100vw - 2rem);
}

.native-shell-notifications > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ps-border);
}

.native-shell-notifications > header h2 {
  margin: 0;
  color: var(--ps-text-primary);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.25;
  text-transform: none;
}

.native-shell-notifications > header > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.native-shell-mark-read {
  padding: 0.25rem;
  border: 0;
  color: #60a5fa;
  background: transparent;
  font-size: 0.75rem;
}

.native-shell-mark-read:hover {
  color: #93c5fd;
}

.native-shell-close {
  width: 1.75rem;
  height: 1.75rem;
}

.native-shell-close svg {
  width: 1rem;
  height: 1rem;
}

.native-shell-notifications__list {
  max-height: 24rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.native-shell-notifications > footer {
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--ps-border);
  color: var(--ps-text-muted);
  background: var(--ps-bg-elevated);
  font-size: 0.75rem;
  text-align: center;
}

.native-shell-notification-item {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--ps-border);
  color: var(--ps-text-secondary);
  background: var(--ps-bg-surface);
  text-align: left;
  transition: background-color 150ms ease;
}

.native-shell-notification-item:hover {
  background: var(--ps-bg-hover);
}

.native-shell-notification-item.is-unread {
  color: var(--ps-text-primary);
  background: var(--ps-bg-elevated);
}

.native-shell-notification-avatar,
.native-shell-notification-avatar img,
.native-shell-notification-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  border-radius: 50%;
}

.native-shell-notification-avatar {
  display: inline-flex;
  overflow: hidden;
}

.native-shell-notification-avatar img {
  object-fit: cover;
}

.native-shell-notification-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  background: rgba(107, 114, 128, 0.2);
}

.native-shell-notification-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.native-shell-notification-icon--friend { color: #4ade80; background: rgba(34, 197, 94, 0.2); }
.native-shell-notification-icon--message,
.native-shell-notification-icon--chat { color: #60a5fa; background: rgba(59, 130, 246, 0.2); }
.native-shell-notification-icon--game { color: #facc15; background: rgba(234, 179, 8, 0.2); }
.native-shell-notification-icon--event { color: #c084fc; background: rgba(168, 85, 247, 0.2); }
.native-shell-notification-icon--payment { color: #34d399; background: rgba(16, 185, 129, 0.2); }

.native-shell-notification-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.native-shell-notification-copy strong,
.native-shell-notification-copy span,
.native-shell-notification-copy time {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.native-shell-notification-copy strong {
  color: inherit;
  font-size: 0.875rem;
  font-weight: 500;
}

.native-shell-notification-copy span,
.native-shell-notification-copy time {
  color: var(--ps-text-muted);
  font-size: 0.75rem;
}

.native-shell-unread-dot {
  width: 0.5rem;
  height: 0.5rem;
  flex: 0 0 0.5rem;
  margin-top: 0.5rem;
  border-radius: 50%;
  background: #3b82f6;
}

.native-shell-notification-arrow {
  width: 1rem !important;
  height: 1rem !important;
  align-self: center;
  color: var(--ps-text-muted);
}

.native-shell-panel-state {
  min-height: 8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  color: var(--ps-text-muted);
  font-size: 0.875rem;
  text-align: center;
}

.native-shell-panel-state > svg {
  width: 3rem;
  height: 3rem;
  opacity: 0.5;
}

.native-shell-panel-state--error > svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--ps-error);
  opacity: 1;
}

.native-shell-spinner {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-block;
  border: 2px solid var(--ps-border-light);
  border-top-color: var(--ps-primary);
  border-radius: 50%;
  animation: native-shell-spin 650ms linear infinite;
}

.native-shell-spinner--small {
  width: 1rem;
  height: 1rem;
}

.native-shell-more-root {
  min-width: 0;
}

.native-shell-more-menu {
  width: auto;
  min-width: 12.5rem;
  max-height: min(35rem, calc(100vh - 8rem));
  overflow-y: auto;
  padding: 0.25rem 0;
}

.native-shell-more-menu > a,
.native-shell-more-menu > button,
.native-shell-ai-submenu a {
  width: 100%;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 0;
  color: var(--ps-text-primary);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  transition: background-color 150ms ease;
}

.native-shell-more-menu > a:hover,
.native-shell-more-menu > button:hover,
.native-shell-ai-submenu a:hover {
  background: var(--ps-bg-hover);
}

.native-shell-more-menu svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--ps-text-secondary);
}

.native-shell-menu-label {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.native-shell-menu-label > svg {
  color: var(--ps-gold);
}

.native-shell-menu-chevron {
  transition: transform 150ms ease;
}

[data-action="toggle-ai-tools"][aria-expanded="true"] .native-shell-menu-chevron {
  transform: rotate(90deg);
}

.native-shell-menu-divider {
  height: 1px;
  margin: 0.25rem 0;
  background: var(--ps-border);
}

.native-shell-ai-submenu {
  margin: 0 0.5rem 0.25rem 1.25rem;
  padding-left: 0.5rem;
  border-left: 2px solid var(--ps-border);
}

.native-shell-ai-submenu a {
  min-height: 2.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
}

.native-shell-ai-submenu .native-shell-tracer-link,
.native-shell-ai-submenu .native-shell-tracer-link svg {
  color: #facc15;
}

.native-shell-more-menu .native-shell-logout,
.native-shell-more-menu .native-shell-logout svg {
  color: var(--ps-error);
}

.native-main {
  min-height: calc(100vh - 7.25rem);
}

.native-app-shell .dark-main-content {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding-top: var(--native-shell-topbar-height, 7.625rem);
  padding-bottom: 0;
}

.native-shell-bottom-nav {
  position: fixed;
  z-index: 50;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 0;
  background: var(--ps-bg-surface);
}

.native-shell-bottom-nav__inner {
  width: 100%;
  max-width: 40rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 0 auto;
  padding: 0.5rem 1rem;
}

.native-shell-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  color: var(--ps-text-secondary);
  font-size: 0.65rem;
  font-weight: 500;
  line-height: 1;
  transition: color 150ms ease, transform 100ms ease;
}

.native-shell-bottom-item:hover {
  color: var(--ps-text-primary);
}

.native-shell-bottom-item.is-active {
  color: var(--ps-primary);
}

.native-shell-bottom-item:active {
  transform: scale(0.95);
}

.native-shell-bottom-item svg {
  width: 1.5rem;
  height: 1.5rem;
}

.native-shell-quick-post {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border: 0;
  color: #fff;
  background: transparent;
  transition: transform 150ms ease;
}

.native-shell-quick-post > span {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #00bfff 0%, #0080ff 50%, #00bfff 100%);
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.6), 0 0 30px rgba(0, 191, 255, 0.4), 0 0 45px rgba(0, 191, 255, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.3);
  animation: native-shell-quick-post-pulse 2s ease-in-out infinite;
  transition: transform 150ms ease;
}

.native-shell-quick-post:hover > span {
  transform: scale(1.1);
}

.native-shell-quick-post:active > span {
  transform: scale(0.95);
}

.native-shell-quick-post svg {
  width: 1.75rem;
  height: 1.75rem;
  stroke-width: 2.5;
}

.native-trend-chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.native-chart__reference {
  stroke: var(--ps-primary);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  opacity: 0.8;
}

.native-chart__line {
  fill: none;
  stroke: var(--ps-primary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.native-chart__point {
  fill: var(--ps-primary);
  stroke: var(--ps-bg-surface);
  stroke-width: 2;
}

.native-chart__label {
  fill: var(--ps-text-muted);
  font-size: 12px;
}

.native-empty-chart {
  margin-bottom: 1rem;
  color: var(--ps-text-muted);
  font-size: 4rem;
  line-height: 1;
}

@keyframes native-shell-menu-enter {
  from { opacity: 0; transform: translateY(-0.25rem) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes native-shell-spin {
  to { transform: rotate(360deg); }
}

@keyframes native-shell-quick-post-pulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.6), 0 0 30px rgba(0, 191, 255, 0.4), 0 0 45px rgba(0, 191, 255, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.8), 0 0 40px rgba(0, 191, 255, 0.5), 0 0 60px rgba(0, 191, 255, 0.3), inset 0 0 15px rgba(255, 255, 255, 0.4);
  }
}

@media (min-width: 768px) {
  .native-app-shell {
    padding-bottom: 1rem;
  }

  .native-app-shell .dark-main-content {
    padding-top: calc(var(--native-shell-topbar-height, 7.625rem) + 1rem);
  }

  .native-shell-bottom-nav {
    display: none;
  }
}

@media (max-width: 520px) {
  .native-shell-topbar {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .native-shell-brand-row {
    gap: 0.35rem;
  }

  .native-shell-brand {
    gap: 0.35rem;
    font-size: 0.875rem;
  }

  .native-shell-brand img {
    width: 1.75rem;
    height: 1.75rem;
  }

  .native-shell-qualified {
    font-size: 0.75rem;
  }

  .native-shell-coins {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
  }

  .native-shell-account-actions {
    gap: 0.25rem;
  }

  .native-shell-icon-button,
  .native-shell-avatar {
    width: 2rem;
    height: 2rem;
  }

  .native-shell-notifications {
    position: fixed;
    top: 4rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    max-width: none;
  }

}

@media (max-width: 370px) {
  .native-shell-brand span,
  .native-shell-coins span {
    display: none;
  }

  .native-shell-coins {
    width: 2rem;
    height: 2rem;
    justify-content: center;
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .native-shell-notifications,
  .native-shell-more-menu,
  .native-shell-spinner,
  .native-shell-quick-post > span {
    animation: none;
  }
}

/* Global shell extras: news ticker, RonRo assistant and game invitations. */
ps-golf-news-ticker,
ps-ronro-help,
ps-game-invite-manager,
ps-game-invite-popup {
  font: inherit;
}

.native-shell-quick-post-host .am-shot-backdrop {
  z-index: 150;
}

.native-news-ticker {
  position: fixed;
  z-index: 49;
  right: 0;
  bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  left: 0;
  height: 2.25rem;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-top: 2px solid var(--ps-primary);
  border-bottom: 2px solid var(--ps-primary);
  background: linear-gradient(90deg, var(--ps-bg-base), var(--ps-bg-elevated), var(--ps-bg-base));
  box-shadow: 0 -0.5rem 1.5rem rgba(0, 0, 0, 0.18);
}

.native-news-ticker--compact { height: 1.75rem; font-size: 0.75rem; }
.native-news-ticker--normal { height: 2.25rem; font-size: 0.875rem; }
.native-news-ticker--large { height: 2.75rem; font-size: 1rem; }

.native-news-ticker__viewport {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.native-news-ticker__content {
  display: inline-block;
  padding-left: 100%;
  color: var(--ps-primary);
  font-family: "Roboto Mono", "Courier New", monospace;
  font-weight: 700;
  letter-spacing: 0.03125rem;
  line-height: 1;
  text-shadow: 0 0 0.5rem rgba(34, 197, 94, 0.3);
  white-space: nowrap;
  will-change: transform;
  animation: native-news-scroll var(--ticker-duration, 40s) linear infinite;
}

.native-news-ticker__content:hover { animation-play-state: paused; }

.native-news-ticker__menu-button {
  width: 3.5rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-left: 2px solid var(--ps-primary);
  color: var(--ps-primary);
  background: color-mix(in srgb, var(--ps-primary) 10%, transparent);
}

.native-news-ticker__menu-button:hover {
  background: color-mix(in srgb, var(--ps-primary) 20%, transparent);
}

.native-news-ticker__menu-button svg,
.native-news-settings svg { width: 1.1rem; height: 1.1rem; }

.native-news-settings {
  position: fixed;
  z-index: 90;
  right: 0.75rem;
  bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
  width: min(14rem, calc(100vw - 1.5rem));
  overflow: hidden;
  border: 1px solid var(--ps-border);
  border-radius: 0.75rem;
  color: var(--ps-text-primary);
  background: var(--ps-bg-surface);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.45);
  animation: native-shell-menu-enter 150ms ease-out;
}

.native-news-settings > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem;
  border-bottom: 1px solid var(--ps-border);
}

.native-news-settings > header span { display: flex; flex-direction: column; gap: 0.15rem; }
.native-news-settings > header strong { font-size: 0.875rem; }
.native-news-settings > header small { color: var(--ps-text-muted); font-size: 0.7rem; }
.native-news-settings > header button {
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.4rem;
  color: var(--ps-text-muted);
  background: transparent;
}
.native-news-settings > header button:hover { color: var(--ps-text-primary); background: var(--ps-bg-hover); }
.native-news-settings__body { display: grid; gap: 0.2rem; padding: 0.5rem; }

.native-news-settings__row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.7rem;
  border: 0;
  border-radius: 0.55rem;
  color: var(--ps-text-primary);
  background: transparent;
  font-size: 0.82rem;
  text-align: left;
}

.native-news-settings__row:hover { background: var(--ps-bg-hover); }
.native-news-settings__row:first-child svg { color: var(--ps-primary); }
.native-news-settings__row.is-loading svg { animation: native-shell-spin 800ms linear infinite; }

.native-news-settings__options {
  margin: 0.15rem 0;
  padding: 0.55rem 0.7rem 0.65rem;
  border: 0;
  border-top: 1px solid var(--ps-border);
}

.native-news-settings__options legend {
  float: left;
  width: 100%;
  margin-bottom: 0.45rem;
  color: var(--ps-text-muted);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.native-news-settings__options > div { clear: both; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.25rem; }
.native-news-settings__options button {
  padding: 0.38rem 0.15rem;
  border: 0;
  border-radius: 0.4rem;
  color: var(--ps-text-secondary);
  background: var(--ps-bg-elevated);
  font-size: 0.68rem;
  font-weight: 700;
}
.native-news-settings__options button.is-active { color: #fff; background: var(--ps-primary); }

@keyframes native-news-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.native-app-shell:has(.native-news-ticker) {
  padding-bottom: calc(8.5rem + env(safe-area-inset-bottom, 0px));
}

.native-app-shell:has(.native-news-ticker) .native-shell-more-menu {
  bottom: calc(7.75rem + env(safe-area-inset-bottom, 0px));
}

.native-ronro {
  position: fixed;
  z-index: 100;
  right: 1rem;
  bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
  max-width: calc(100vw - 2rem);
  color: var(--ps-text-primary);
}

.native-ronro-button {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0.35rem;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 0 1rem rgba(16, 185, 129, 0.5), 0 0.75rem 1.5rem rgba(0, 0, 0, 0.3);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.native-ronro-button:hover { transform: scale(1.06); box-shadow: 0 0 1.4rem rgba(16, 185, 129, 0.65), 0 0.75rem 1.5rem rgba(0, 0, 0, 0.3); }
.native-ronro-button > span { width: 100%; height: 100%; display: block; overflow: hidden; border-radius: 50%; background: #047857; }
.native-ronro-button img { width: 100%; height: 100%; object-fit: cover; }
.native-ronro-button > i {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  width: 1.3rem;
  height: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ps-gold);
}
.native-ronro-button > i svg { width: 0.8rem; height: 0.8rem; }
.native-ronro-button > b {
  position: absolute;
  top: -0.25rem;
  left: -0.25rem;
  min-width: 1.1rem;
  height: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.2rem;
  border-radius: 999px;
  color: #fff;
  background: #10b981;
  font-size: 0.6rem;
}

.native-ronro-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: 12.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.8rem;
  border: 1px solid var(--ps-border);
  border-radius: 0.8rem;
  background: var(--ps-bg-surface);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.35);
  animation: native-ronro-bounce 2s ease-in-out infinite;
}
.native-ronro-tooltip strong { font-size: 0.8rem; }
.native-ronro-tooltip span { color: var(--ps-text-muted); font-size: 0.7rem; }

.native-ronro-card {
  width: min(21.25rem, calc(100vw - 2rem));
  overflow: hidden;
  border: 1px solid var(--ps-border);
  border-radius: 1rem;
  background: var(--ps-bg-surface);
  box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.5);
  animation: native-ronro-enter 180ms ease-out;
}
.native-ronro-intro { width: min(17.5rem, calc(100vw - 2rem)); }

.native-ronro-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  color: #fff;
  background: linear-gradient(90deg, #059669, #10b981);
}
.native-ronro-avatar { width: 2.35rem; height: 2.35rem; flex: 0 0 auto; overflow: hidden; border: 2px solid rgba(255,255,255,.35); border-radius: 50%; background: #047857; }
.native-ronro-avatar img { width: 100%; height: 100%; object-fit: cover; }
.native-ronro-header > span:nth-child(2) { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.native-ronro-header strong { font-size: 0.88rem; }
.native-ronro-header small { color: #d1fae5; font-size: 0.68rem; }
.native-ronro-header__actions { display: flex; align-items: center; gap: 0.2rem; }
.native-ronro-header__actions button { width: 1.9rem; height: 1.9rem; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 0.5rem; color: rgba(255,255,255,.75); background: transparent; }
.native-ronro-header__actions button:hover { color: #fff; background: rgba(255,255,255,.12); }
.native-ronro-header__actions svg { width: 1rem; height: 1rem; }

.native-ronro-intro__body { padding: 1rem; background: linear-gradient(135deg, var(--ps-bg-surface), var(--ps-bg-elevated)); }
.native-ronro-intro__body p { margin: 0 0 0.7rem; color: var(--ps-text-secondary); font-size: 0.82rem; }
.native-ronro-intro__body ul { display: grid; gap: 0.4rem; margin: 0 0 1rem; padding: 0; color: var(--ps-text-muted); font-size: 0.72rem; list-style: none; }
.native-ronro-intro__body li::before { margin-right: 0.5rem; color: #10b981; content: '•'; }
.native-ronro-primary { width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.65rem; border: 0; border-radius: 0.7rem; color: #fff; background: #059669; font-weight: 700; }
.native-ronro-primary:hover { background: #047857; }
.native-ronro-primary svg { width: 1rem; height: 1rem; }
.native-ronro-dismiss { width: 100%; margin-top: 0.4rem; padding: 0.4rem; border: 0; color: var(--ps-text-muted); background: transparent; font-size: 0.68rem; }
.native-ronro-dismiss:hover { color: var(--ps-text-secondary); }

.native-ronro-messages {
  height: 17.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow-y: auto;
  padding: 0.8rem;
  background: var(--ps-bg-elevated);
}
.native-ronro-state,
.native-ronro-welcome { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.45rem; color: var(--ps-text-muted); text-align: center; font-size: 0.72rem; }
.native-ronro-welcome img { width: 4rem; height: 4rem; margin-bottom: 0.25rem; object-fit: cover; border-radius: 50%; background: #047857; }
.native-ronro-welcome strong { color: var(--ps-text-primary); font-size: 0.82rem; }
.native-ronro-message { display: flex; }
.native-ronro-message p { max-width: 85%; margin: 0; padding: 0.55rem 0.7rem; border-radius: 1rem; font-size: 0.78rem; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.native-ronro-message.is-ronro { justify-content: flex-start; }
.native-ronro-message.is-ronro p { border-bottom-left-radius: 0.25rem; color: var(--ps-text-primary); background: var(--ps-bg-surface); }
.native-ronro-message.is-user { justify-content: flex-end; }
.native-ronro-message.is-user p { border-bottom-right-radius: 0.25rem; color: #fff; background: #059669; }
.native-ronro-message.is-pending { opacity: 0.65; }
.native-ronro-typing { align-self: flex-start; display: flex; gap: 0.2rem; padding: 0.55rem 0.75rem; border-radius: 1rem; background: var(--ps-bg-surface); }
.native-ronro-typing i { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: #10b981; animation: native-ronro-dot 900ms ease-in-out infinite; }
.native-ronro-typing i:nth-child(2) { animation-delay: 150ms; }
.native-ronro-typing i:nth-child(3) { animation-delay: 300ms; }
.native-ronro-form { display: flex; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid var(--ps-border); }
.native-ronro-form input { min-width: 0; flex: 1; padding: 0.55rem 0.7rem; border: 1px solid var(--ps-border); border-radius: 0.7rem; outline: 0; color: var(--ps-text-primary); background: var(--ps-bg-elevated); font: inherit; font-size: 0.78rem; }
.native-ronro-form input:focus { border-color: #10b981; box-shadow: 0 0 0 2px rgba(16,185,129,.2); }
.native-ronro-form button { width: 2.5rem; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 0.7rem; color: #fff; background: #059669; }
.native-ronro-form button:disabled { opacity: 0.45; }
.native-ronro-form svg { width: 1rem; height: 1rem; }

@keyframes native-ronro-enter { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: scale(1); } }
@keyframes native-ronro-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.25rem); } }
@keyframes native-ronro-dot { 0%, 100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(-.2rem); opacity: 1; } }

.native-game-invite-overlay,
.native-game-profile-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.85);
}

.native-game-invite {
  position: relative;
  width: min(22.5rem, 100%);
  overflow: hidden;
  border: 2px solid #22c55e;
  border-radius: 1.5rem;
  color: #fff;
  background: #1a1a1a;
  box-shadow: 0 0 1.25rem rgba(34, 197, 94, 0.6), 0 0 2.5rem rgba(34, 197, 94, 0.4), 0 1.5rem 3rem rgba(0,0,0,.55);
  animation: native-game-border-glow 2.5s ease-in-out infinite alternate;
}
.native-game-invite__close { position: absolute; z-index: 2; top: 0.65rem; right: 0.65rem; width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; color: #9ca3af; background: rgba(0,0,0,.3); }
.native-game-invite__close:hover { color: #fff; background: #333; }
.native-game-invite__close svg { width: 1rem; height: 1rem; }
.native-game-invite__header { padding: 1.25rem 2.5rem 1rem; border-bottom: 1px solid #2a2a2a; background: linear-gradient(#1f1f1f, #1a1a1a); text-align: center; }
.native-game-invite__brand { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-bottom: 0.8rem; font-size: 1.4rem; font-weight: 900; letter-spacing: .03em; }
.native-game-invite__brand img { width: 2.75rem; height: 2.75rem; object-fit: contain; filter: drop-shadow(0 0 .5rem rgba(212,165,52,.4)); }
.native-game-invite__brand strong { color: #22c55e; }
.native-game-invite__brand strong span { color: #d4a534; }
.native-game-invite__header p { margin: 0 0 .5rem; color: #22c55e; font-size: .78rem; font-weight: 800; letter-spacing: .25rem; text-shadow: 0 0 .75rem rgba(34,197,94,.8); }
.native-game-invite__header h2 { margin: 0; font-size: 1.2rem; line-height: 1.25; }
.native-game-invite__body { padding: 1.25rem; }
.native-game-invite__summary { display: flex; flex-direction: column; align-items: center; gap: .65rem; margin-bottom: 1.15rem; }
.native-game-invite__summary strong { padding: .45rem 1.1rem; border: 1px solid rgba(34,197,94,.3); border-radius: 999px; color: #22c55e; background: rgba(34,197,94,.1); font-size: .75rem; letter-spacing: .1rem; }
.native-game-invite__summary span { color: #fbbf24; font-size: 1.15rem; font-weight: 800; text-shadow: 0 0 .75rem rgba(251,191,36,.35); }
.native-game-invite__players { padding: 1rem; border: 1px solid #2a2a2a; border-radius: 1rem; background: #0f0f0f; }
.native-game-invite__bubbles { display: flex; align-items: flex-start; justify-content: center; gap: .75rem; flex-wrap: wrap; }
.native-game-player { width: 3.25rem; display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: 0; border: 0; color: #9ca3af; background: transparent; font: inherit; }
.native-game-player > span { position: relative; width: 2.75rem; height: 2.75rem; display: flex; align-items: center; justify-content: center; overflow: visible; border: 2px solid #333; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #2563eb, #1d4ed8); font-size: .75rem; font-weight: 800; transition: transform 150ms ease; }
.native-game-player:not(:disabled):hover > span { transform: scale(1.1); }
.native-game-player.is-you > span { border-color: #22c55e; background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 0 .75rem rgba(34,197,94,.5); }
.native-game-player.is-pending > span { border-color: #555; background: linear-gradient(135deg, #4b5563, #374151); opacity: .72; }
.native-game-player img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.native-game-player i { position: absolute; right: -.2rem; bottom: -.15rem; width: 1rem; height: 1rem; display: flex; align-items: center; justify-content: center; border: 2px solid #1a1a1a; border-radius: 50%; color: #111; background: #22c55e; font-size: .55rem; font-style: normal; }
.native-game-player.is-pending i { color: #d1d5db; background: #4b5563; }
.native-game-player small { max-width: 100%; overflow: hidden; font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.native-game-invite__more { width: 2.75rem; height: 2.75rem; border: 2px dashed #444; border-radius: 50%; color: #9ca3af; background: #1a1a1a; font-size: .7rem; font-weight: 700; }
.native-game-invite__more:hover { border-color: #22c55e; color: #22c55e; background: rgba(34,197,94,.1); }
.native-game-invite__all { max-height: 13rem; overflow-y: auto; margin-top: 1rem; padding-top: .75rem; border-top: 1px solid #2a2a2a; }
.native-game-invite__all > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .35rem; color: #6b7280; font-size: .65rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.native-game-invite__all > header button { display: flex; border: 0; color: #9ca3af; background: transparent; transform: rotate(180deg); }
.native-game-invite__all > header svg { width: .9rem; height: .9rem; }
.native-game-invite__all > button { width: 100%; display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; gap: .6rem; padding: .45rem; border: 0; border-radius: .5rem; color: #d1d5db; background: transparent; text-align: left; }
.native-game-invite__all > button:not(:disabled):hover { background: #1a1a1a; }
.native-game-invite__all > button strong { font-size: .75rem; }
.native-game-invite__all > button small { padding: .15rem .4rem; border-radius: 999px; color: #6b7280; background: rgba(107,114,128,.12); font-size: .6rem; }
.native-game-invite__all > button small.is-confirmed { color: #4ade80; background: rgba(34,197,94,.12); }
.native-game-invite__mini-avatar { width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 50%; color: #fff; background: #374151; font-size: .7rem; font-weight: 800; }
.native-game-invite__mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.native-game-invite__footer { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; padding: 0 1.25rem; }
.native-game-invite__footer button { min-height: 3.1rem; display: inline-flex; align-items: center; justify-content: center; border-radius: .65rem; font-weight: 800; line-height: 1.2; text-align: center; }
.native-game-invite__footer button:disabled { opacity: .55; }
.native-game-invite__dismiss { border: 2px solid #444; color: #9ca3af; background: transparent; }
.native-game-invite__dismiss:hover { border-color: #666; color: #e5e7eb; }
.native-game-invite__join { border: 0; color: #fff; background: linear-gradient(90deg, #22c55e, #16a34a); box-shadow: 0 .25rem 1rem rgba(34,197,94,.4); }
.native-game-invite__join:hover { background: linear-gradient(90deg, #4ade80, #22c55e); }
.native-game-invite__note { display: block; padding: .85rem 1rem 1.1rem; color: #4b5563; font-size: .65rem; text-align: center; }

.native-game-profile-overlay { z-index: 1100; padding: 1rem; background: rgba(0,0,0,.72); }
.native-game-profile { position: relative; width: min(18.75rem, 100%); padding: 1.5rem; border: 2px solid #22c55e; border-radius: 1rem; background: #1a1a1a; box-shadow: 0 0 2rem rgba(34,197,94,.4), 0 1.25rem 2.5rem rgba(0,0,0,.5); text-align: center; }
.native-game-profile > button { position: absolute; top: .75rem; right: .75rem; width: 1.75rem; height: 1.75rem; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; color: #9ca3af; background: #333; }
.native-game-profile > button svg { width: .9rem; height: .9rem; }
.native-game-profile__avatar { position: relative; width: 5rem; height: 5rem; display: flex; align-items: center; justify-content: center; margin: 0 auto .75rem; border: 3px solid #22c55e; border-radius: 50%; color: #fff; background: linear-gradient(135deg,#22c55e,#16a34a); font-size: 1.5rem; font-weight: 800; box-shadow: 0 0 1.25rem rgba(34,197,94,.4); }
.native-game-profile__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.native-game-profile__avatar i { position: absolute; right: .15rem; bottom: .15rem; width: 1rem; height: 1rem; border: 2px solid #1a1a1a; border-radius: 50%; background: #22c55e; }
.native-game-profile h3 { margin: 0; font-size: 1.2rem; }
.native-game-profile > p { margin: .2rem 0 0; color: #4ade80; font-size: .8rem; }
.native-game-profile__stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 1.25rem 0 1rem; padding: 1rem 0; border-top: 1px solid #2a2a2a; border-bottom: 1px solid #2a2a2a; }
.native-game-profile__stats span { display: flex; flex-direction: column; gap: .2rem; }
.native-game-profile__stats strong { font-size: 1rem; }
.native-game-profile__stats small { color: #6b7280; font-size: .58rem; text-transform: uppercase; }
.native-game-profile__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.native-game-profile__actions button { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.5rem; border: 1px solid #333; border-radius: .6rem; color: #e5e7eb; background: transparent; font-weight: 700; }
.native-game-profile__actions button:first-child { border: 0; color: #fff; background: linear-gradient(90deg,#22c55e,#16a34a); }
.native-game-profile__actions svg { width: .9rem; height: .9rem; }
.native-game-profile__buddy { display: block; margin-top: .8rem; color: #4ade80; font-size: .72rem; }

@keyframes native-game-border-glow {
  from { box-shadow: 0 0 1rem rgba(34,197,94,.5), 0 0 2rem rgba(34,197,94,.3), 0 1.5rem 3rem rgba(0,0,0,.55); }
  to { box-shadow: 0 0 1.4rem rgba(34,197,94,.75), 0 0 3rem rgba(34,197,94,.45), 0 1.5rem 3rem rgba(0,0,0,.55); }
}

@media (min-width: 768px) {
  .native-news-ticker { display: none; }
  .native-news-settings { right: 1.5rem; bottom: 1.5rem; }
  .native-app-shell:has(.native-news-ticker) { padding-bottom: 1rem; }
  .native-app-shell:has(.native-news-ticker) .native-shell-more-menu { bottom: auto; }
  .native-ronro { right: 1.5rem; bottom: 1.5rem; }
}

@media (max-height: 700px) {
  .native-game-invite-overlay { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .native-news-ticker__content,
  .native-ronro-tooltip,
  .native-ronro-card,
  .native-ronro-typing i,
  .native-game-invite { animation: none; }
}
