/* Shared visual contract. Game math, cards and saved state live outside CSS. */
:root {
  --bg: #100e12;
  --panel: #1a171e;
  --panel-high: #242029;
  --line: #3a303a;
  --text: #fcf7f8;
  --muted: #c2b4bd;
  --brand: #ff2d2d;
  --accent: #ff858f;
  --action: #c51e35;
  --positive: #95dcc0;
  --negative: #ff9ba8;
  --radius: 14px;
  --motion-fast: 150ms;
  --motion-reveal: 240ms;
  font-size: 16px;
}
body {
  background:
    radial-gradient(ellipse at 85% 0%, #54152229, transparent 42rem), var(--bg);
}
button,
.button,
input:not([type="hidden"]),
select {
  min-height: 44px;
}
.button,
button,
a {
  -webkit-tap-highlight-color: transparent;
}
.button {
  border-radius: 10px;
  font-weight: 650;
  transition:
    background-color var(--motion-fast),
    border-color var(--motion-fast);
}
.button.primary {
  background: var(--action);
  color: #fff;
  border-color: var(--action);
}
.button.primary:hover:not(:disabled) {
  background: #a7192e;
  border-color: #ff6474;
}
button:disabled {
  cursor: default;
}
button[aria-busy="true"] {
  cursor: progress;
}
input,
select,
textarea {
  border-radius: 9px;
  color: var(--text);
  accent-color: var(--brand);
}
input[type="range"] {
  touch-action: pan-y;
}
input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #ff9fa8;
  outline-offset: 3px;
}
input[aria-invalid="true"] {
  border-color: var(--negative);
}
.small,
.points-wallet small {
  font-size: 0.875rem;
}
.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}
.muted {
  color: var(--muted);
}
.panel {
  border-color: var(--line);
  box-shadow: 0 8px 28px #00000018;
}
.section-title h2 {
  margin-bottom: 0;
}
.number,
output,
.stat-value,
.clock {
  font-variant-numeric: tabular-nums;
}
.site-header {
  background: #151118f5;
  border-bottom: 1px solid #492631;
}
.site-header .section-nav {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.site-header [aria-current="page"] {
  background: #ff394014;
  color: #ff9ba8;
  border-bottom-color: var(--brand);
}
.brand-sub {
  letter-spacing: 0.13em;
}
.hero {
  padding-top: 38px;
  padding-bottom: 30px;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
}
.podium-card.place-1 {
  border-color: #b83a4d;
  background: linear-gradient(160deg, #421c29, #201720);
}
.podium-name {
  overflow-wrap: anywhere;
}
.public-table th,
.bet-history th {
  color: #cfbec7;
}
.public-table td,
.bet-history td {
  border-bottom-color: #332a34;
}
.play-invite {
  margin-top: 28px;
}
.invite-meta small {
  font-size: 0.8rem;
}
.invite-progress-label strong {
  color: var(--text);
}
progress {
  accent-color: var(--brand);
}
.game-switcher {
  display: none;
}
.gaming-heading {
  gap: 24px;
  margin-bottom: 20px;
}
.gaming-heading h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}
.points-wallet {
  padding: 16px 20px;
  min-width: 285px;
  background: linear-gradient(135deg, #381b29, #211920);
  border-color: #803047;
  gap: 4px;
}
.points-wallet > strong {
  font-size: 1.9rem;
  line-height: 1.2;
}
.wallet-detail {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 0.8rem;
}
.wallet-detail b {
  color: var(--text);
  font-weight: 600;
  padding-left: 5px;
}
.points-wallet #pointsReset {
  font-size: 0.75rem;
}
.gaming-identity {
  gap: 8px 16px;
  margin: 14px 0;
  font-size: 0.875rem;
}
.points-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 10px 0;
  font-size: 0.8rem;
}
.round-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.round-state:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--positive);
}
[data-play-state="submitting"] .round-state:before,
[data-play-state="recovery"] .round-state:before {
  background: var(--warning);
}
[data-play-state="error"] .round-state:before {
  background: var(--negative);
}
#pokerResume,
#blackjackResume {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.game-card {
  padding: 16px;
  border-radius: var(--radius);
  background: #1a171e;
}
.game-card h2 {
  font-size: 1.2rem;
  margin: 12px 0;
}
.game-card .game-art {
  height: 146px;
  margin: 0;
  background-color: #23121b;
}
.game-card:hover {
  border-color: #d8495f;
  background: #221a23;
  color: var(--text);
}
.game-card .button {
  margin-top: 0;
}
.game-stat-cards article {
  padding: 14px;
}
.game-stat-cards small {
  font-size: 0.8rem;
}
[data-tone="positive"] b,
b[data-tone="positive"],
[data-tone="positive"] td:nth-child(4) {
  color: var(--positive);
}
[data-tone="negative"] b,
b[data-tone="negative"],
[data-tone="negative"] td:nth-child(4) {
  color: var(--negative);
}
[data-tone="neutral"] b,
b[data-tone="neutral"] {
  color: var(--muted);
}
.game-layout {
  border-radius: 18px;
  background: #17131a;
}
.bet-controls {
  background: #221c26;
}
.bet-controls label,
.bet-controls legend {
  color: #eee0e7;
}
.game-board {
  min-width: 0;
}
.game-result {
  min-height: 54px;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}
.game-result.is-win {
  color: var(--positive);
  border-color: #31634c;
  background: #21433433;
}
#betProof {
  display: block;
  min-height: 24px;
  font-size: 0.8rem;
}
.gaming-bet-status {
  min-height: 24px;
  margin-bottom: 8px;
}
.risk-options label span {
  min-height: 44px;
}
.bet-history {
  margin-bottom: 24px;
}
.bet-history td {
  padding-top: 12px;
  padding-bottom: 12px;
}
.bet-history button {
  min-width: 68px;
}
.history-toggle {
  margin-top: 14px;
}
.holdem-controls {
  border-radius: 12px;
  padding: 12px;
  background: #221821;
  border: 1px solid #613046;
}
.holdem-moves {
  gap: 8px;
}
.holdem-raise-input input {
  min-width: 0;
}
.holdem-seat-label small,
.holdem-street {
  color: #d8c4cf;
}
.holdem-card-slot {
  border-color: #71505e;
}
.health-panel {
  padding: 24px;
  margin-bottom: 20px;
}
.health-panel > .section-title {
  margin-bottom: 18px;
}
.health-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.health-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  background: #211a24;
  border-radius: 10px;
  padding: 15px;
}
.health-card > strong {
  font-size: 0.95rem;
}
.health-card p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  flex: 1;
}
.health-card small {
  font-size: 0.75rem;
}
.health-card[data-state="good"] > strong {
  color: var(--positive);
}
.health-card[data-state="warning"] > strong {
  color: var(--warning);
}
.health-card[data-state="error"] > strong {
  color: var(--negative);
}
.health-measurements {
  margin-top: 18px;
}
.health-measurements summary {
  cursor: pointer;
  padding: 10px 0;
  min-height: 44px;
}
.health-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 0;
}
.health-metrics div {
  display: grid;
  gap: 4px;
}
.health-metrics span {
  color: var(--muted);
  font-size: 0.8rem;
}
.health-metrics strong {
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}
.recovery-reminder {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  gap: 20px;
  margin-bottom: 24px;
  border-color: #685434;
}
.recovery-reminder p {
  margin: 4px 0;
  font-size: 0.9rem;
}
.recovery-reminder small {
  color: var(--muted);
}
.recovery-reminder .button {
  flex-shrink: 0;
}
.recovery-review th,
.recovery-review td {
  text-align: left;
}
.history-weeks a {
  border-radius: 12px;
  min-height: 92px;
}
.history-weeks [aria-current="page"] {
  border-color: #c9495d;
  background: #391b28;
}
.history-meta {
  font-size: 0.85rem;
}
.boss-stage {
  transition: background-color 600ms;
}
.boss-stage[data-health-phase="stirring"] {
  background: radial-gradient(ellipse, #ca223717, transparent 70%);
}
.boss-stage[data-health-phase="fierce"] {
  background: radial-gradient(ellipse, #d625392c, transparent 72%);
}
.boss-stage[data-health-phase="critical"] {
  background: radial-gradient(ellipse, #e73a363c, transparent 75%);
}
.boss-stage[data-health-phase="critical"] .rune-ring {
  border-color: #f56c64;
}
.boss-stage[data-health-phase="defeated"] .boss-sprite {
  filter: grayscale(0.65);
  opacity: 0.75;
}
.badge-grid {
  gap: 10px;
}
.badge-grid li {
  border-radius: 10px;
  padding: 12px;
}
.badge-grid li.earned {
  border-color: #6c5364;
  background: #34232f;
}
.badge-grid small {
  font-size: 0.8rem;
}
.footer {
  padding-top: 24px;
  padding-bottom: 24px;
}
@media (max-width: 1050px) {
  .health-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .header-inner {
    gap: 14px;
  }
}
@media (max-width: 680px) {
  .shell {
    padding-left: 16px;
    padding-right: 16px;
  }
  .header-inner {
    gap: 4px;
    padding-top: 7px;
    padding-bottom: 4px;
  }
  .site-header .brand img {
    width: 27px;
    height: 27px;
  }
  .site-header .brand {
    min-height: 30px;
    font-size: 0.9rem;
  }
  .brand-sub {
    display: none;
  }
  .site-header nav {
    gap: 2px 4px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .site-header nav a,
  .site-header nav .button {
    min-height: 44px;
    padding: 5px 6px;
    font-size: 0.77rem;
    line-height: 1.2;
  }
  .hero {
    padding-top: 24px;
    padding-bottom: 20px;
    gap: 20px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero .lead {
    font-size: 1rem;
    margin-bottom: 16px;
  }
  .play-invite {
    padding: 18px;
    margin-top: 22px;
  }
  .gaming-page {
    padding-top: 18px;
    padding-bottom: 24px;
  }
  .gaming-heading {
    display: block;
    margin-bottom: 12px;
  }
  .gaming-heading .eyebrow {
    margin-bottom: 4px;
  }
  .gaming-heading h1 {
    font-size: 1.75rem;
    margin: 0 0 12px;
  }
  .points-wallet {
    min-width: 0;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 8px;
  }
  .points-wallet > .eyebrow {
    font-size: 0.64rem;
    margin: 0;
  }
  .points-wallet > strong {
    grid-column: 1;
    grid-row: 2;
    font-size: 1.55rem;
  }
  .wallet-detail {
    grid-column: 2;
    grid-row: 1/3;
    display: grid;
    align-content: center;
    gap: 3px;
    text-align: right;
    font-size: 0.75rem;
  }
  .points-wallet #pointsReset {
    grid-column: 1/-1;
    font-size: 0.7rem;
  }
  .js .gaming-page .game-nav {
    display: none;
  }
  .js .game-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
  }
  .game-switcher select {
    flex: 1;
    min-width: 0;
  }
  .game-switcher > label {
    margin: 0;
  }
  .game-switcher a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .gaming-identity {
    font-size: 0.8rem;
    gap: 4px 10px;
    margin: 8px 0 12px;
  }
  .gaming-identity > span {
    flex-basis: 100%;
  }
  .points-note {
    font-size: 0.75rem;
  }
  .game-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .game-card {
    display: block;
    padding: 10px;
    min-width: 0;
  }
  .game-card .game-art {
    width: 100%;
    height: 110px;
    margin: 0;
  }
  .game-card h2 {
    font-size: 0.98rem;
    min-height: 1.6em;
    margin: 10px 0;
    gap: 4px;
  }
  .game-card .button {
    padding: 8px;
    font-size: 0.8rem;
  }
  .game-card .dice-art {
    font-size: 70px;
    gap: 0;
  }
  .game-card .dice-art span:last-child {
    font-size: 55px;
  }
  .game-card .blackjack-art span {
    font-size: 20px;
    padding: 12px 7px;
  }
  .game-card .mini-keno {
    padding: 9px;
    gap: 4px;
  }
  .game-card .plinko-art {
    padding: 16px 5px;
    font-size: 27px;
  }
  .game-stat-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .game-stat-cards article {
    padding: 10px;
  }
  .game-layout {
    overflow: visible;
  }
  .game-board {
    padding: 12px;
  }
  .bet-controls {
    padding: 16px;
    border-radius: 0 0 17px 17px;
  }
  .keno-board {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
  }
  .keno-board button {
    min-height: 44px;
  }
  .holdem-table {
    padding: 12px 8px;
  }
  .holdem-controls {
    position: sticky;
    bottom: 8px;
    z-index: 5;
    box-shadow: 0 4px 16px #0008;
  }
  .holdem-moves {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .holdem-moves .button {
    font-size: 0.8rem;
    padding: 8px 5px;
  }
  .holdem-raise .button {
    font-size: 0.8rem;
  }
  .blackjack-actions {
    position: sticky;
    bottom: 8px;
    z-index: 5;
    background: #221821;
    padding: 8px;
    border-radius: 10px;
  }
  .bet-history,
  .game-season {
    padding: 16px;
  }
  .bet-history th,
  .bet-history td {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 0.78rem;
  }
  .bet-history table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }
  .bet-history th,
  .bet-history td {
    padding: 10px 4px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .bet-history th {
    font-size: 0.64rem;
    letter-spacing: 0.02em;
  }
  .bet-history button {
    min-width: 0;
    width: 100%;
    font-size: 0.78rem;
  }
  .bet-history .section-title h2 {
    font-size: 1.25rem;
  }
  .health-panel {
    padding: 16px;
  }
  .health-panel > .section-title {
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
  }
  .health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .health-card {
    padding: 12px;
  }
  .health-card:last-child {
    grid-column: 1/-1;
  }
  .health-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .recovery-reminder {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  .history-picker-row select {
    min-width: 0;
  }
  .site-header:has(.section-nav) .header-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px 4px;
  }
  .site-header:has(.section-nav) .header-inner > .brand {
    grid-column: 1/3;
    grid-row: 1;
  }
  .site-header:has(.section-nav) nav {
    display: contents;
  }
  .site-header:has(.section-nav) nav > .button {
    grid-column: 3;
    grid-row: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Community clarity: primary tasks first; optional details stay in native disclosures. */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
#communityBoss {
  margin-top: 0;
  margin-bottom: 28px;
  border-color: #a33e50;
  background: linear-gradient(115deg, #391722, #211720 70%);
}
#communityBoss .invite-copy {
  max-width: 820px;
}
#communityBoss h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
#communityBoss .invite-kind {
  display: inline;
}
#invitePercent {
  font-size: 1rem;
}
#inviteProgress,
#inviteChecked {
  font-size: 0.8rem;
}
.invite-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
}
.invite-activity {
  margin-top: 8px;
}
.invite-activity summary {
  padding: 7px 0;
  min-height: 32px;
  color: var(--muted);
  font-size: 0.8rem;
}
.invite-activity p {
  margin: 4px 0 0;
}
#leaderboard,
#communityBoss,
.admin-diagnostics,
.gaming-tools,
#profileRecovery {
  scroll-margin-top: 160px;
}
.source-status {
  min-height: 42px;
  font-variant-numeric: tabular-nums;
}
#playerNameResult,
#gamingGrantMessage,
#hitResult {
  min-height: 1.4em;
}
.player-identity {
  align-items: center;
  gap: 12px;
}
.player-identity .text-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.admin-heading {
  margin-bottom: 18px;
}
.admin-main .button {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}
.admin-heading h1 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}
.admin-attention {
  margin: 18px 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #1b1920;
}
.attention-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.attention-heading > strong {
  font-size: 0.9rem;
  color: var(--positive);
}
.admin-attention[data-state="warning"] {
  border-color: #806645;
  background: #30251c66;
}
.admin-attention[data-state="warning"] .attention-heading > strong {
  color: var(--warning);
}
#adminIssueList {
  padding-left: 18px;
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
#adminIssueList li + li {
  margin-top: 5px;
}
.admin-attention #networkError {
  margin: 10px 0 0;
  border: 0;
  padding: 0;
  background: transparent;
}
.overview-stats {
  margin-bottom: 16px;
}
.overview-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.overview-stats .stat .stat-value {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  margin: 4px 0;
  overflow-wrap: anywhere;
}
.overview-stats .stat p {
  margin: 0;
  font-size: 0.85rem;
}
.overview-stats .stat a {
  margin-top: auto;
  padding-top: 8px;
  min-height: 44px;
}
.overview-stats .stat small {
  font-size: 0.8rem;
  font-weight: 400;
}
#overviewBossHP {
  width: 100%;
  height: 10px;
  appearance: none;
  border: 0;
  border-radius: 9px;
  overflow: hidden;
  background: #100e12;
}
#overviewBossHP::-webkit-progress-bar {
  background: #100e12;
}
#overviewBossHP::-webkit-progress-value {
  background: #ed3649;
}
#overviewBossHP::-moz-progress-bar {
  background: #ed3649;
}
.admin-quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}
.recovery-reminder {
  padding: 14px 18px;
}
.recovery-reminder strong {
  font-size: 0.9rem;
}
.recovery-reminder p {
  font-size: 0.8rem;
}
.admin-diagnostics {
  margin: 24px 0;
}
.admin-diagnostics > summary,
.gaming-tools > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 18px 20px;
  gap: 16px;
  min-height: 56px;
}
.admin-diagnostics > summary small,
.gaming-tools > summary small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
  margin-top: 4px;
}
.diagnostics-content {
  padding: 0 20px 20px;
}
.diagnostics-content .health-panel {
  padding: 18px;
}
.diagnostics-content .connection-summary {
  min-height: 60px;
}
.gaming-tools {
  margin: 14px 0;
}
.gaming-tools > .details-content {
  padding: 0 20px 20px;
}
.ranking-toolbar,
.ranking-toolbar > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.ranking-toolbar {
  margin-bottom: 16px;
}
.ranking-toolbar p {
  margin: 0;
}
.gaming-admin-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.gaming-admin-cards > section {
  padding: 18px;
}
.ranking-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ranking-card-heading h3 {
  margin: 0;
}
.gaming-leaders {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.gaming-admin-cards .gaming-leaders li {
  padding: 0;
}
.player-breakdown > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  min-height: 54px;
  padding: 9px 0;
  list-style: none;
}
.player-breakdown > summary::-webkit-details-marker {
  display: none;
}
.leader-name {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.leader-name > small {
  font-size: 0.75rem;
  min-width: 12px;
  text-align: center;
}
.leader-name > strong {
  font-size: 0.87rem;
  overflow-wrap: anywhere;
}
.player-breakdown summary b {
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.player-breakdown summary b > small {
  display: inline;
  font-size: 0.7rem;
}
.player-breakdown summary b:after {
  content: "⌄";
  display: inline-block;
  color: var(--muted);
  margin-left: 7px;
}
.player-breakdown[open] summary b:after {
  content: "⌃";
}
.gaming-admin-cards [data-tone="positive"] b {
  color: var(--positive);
}
.gaming-admin-cards [data-tone="negative"] b {
  color: var(--negative);
}
.player-record {
  display: grid;
  gap: 5px;
  padding: 4px 8px 14px 22px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.player-record small {
  margin: 0;
  font-size: 0.77rem;
  line-height: 1.5;
}
.boss-settings-grid {
  align-items: start;
}
.boss-setting > .eyebrow {
  margin: 0 0 6px;
}
.boss-setting > h3 {
  margin: 0 0 16px;
}
.boss-setting h4 {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-bottom: 12px;
}
.boss-setting .stack + .stack {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 22px;
}
.boss-setting .stack > .button {
  justify-self: start;
  width: fit-content;
}
.boss-home-preview .play-invite {
  grid-template-columns: 48px minmax(0, 1fr);
  padding: 12px;
  margin: 12px 0;
}
.boss-home-preview .play-invite > img {
  width: 48px;
  height: 48px;
}
.boss-home-preview .play-invite > .button {
  grid-column: 1/-1;
}
.boss-home-preview .invite-progress-label strong {
  font-size: 0.9rem;
}
.boss-home-preview summary {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.boss-reset-zone {
  border: 1px solid #82404d;
  border-radius: 12px;
  padding: 16px;
  margin-top: 24px;
}
.boss-reset-zone > summary {
  color: var(--negative);
}
[data-boss-root][data-mode="admin"] .boss-admin-leaders {
  margin-top: 24px;
}
@media (max-width: 900px) {
  .overview-stats {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  #communityBoss {
    padding: 16px;
    margin-top: 0;
    margin-bottom: 24px;
  }
  #communityBoss h2 {
    font-size: 1rem;
  }
  #invitePercent {
    font-size: 0.9rem;
  }
  #communityBoss .invite-kind {
    display: block;
    margin-top: 4px;
  }
  .invite-meta {
    display: block;
  }
  .invite-meta small {
    display: block;
    margin-top: 4px;
  }
  .admin-attention {
    padding: 12px;
  }
  .attention-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4px;
  }
  .admin-quick-actions .button {
    flex-grow: 1;
  }
  .gaming-admin-cards {
    grid-template-columns: 1fr;
  }
  .gaming-admin-cards > section {
    padding: 14px;
  }
  .gaming-tools > summary,
  .admin-diagnostics > summary {
    padding: 16px;
  }
  .diagnostics-content {
    padding: 0 12px 12px;
  }
  .diagnostics-content .health-panel {
    padding: 12px;
  }
  .diagnostics-content .health-grid {
    grid-template-columns: 1fr;
  }
  .player-breakdown summary b {
    font-size: 0.8rem;
  }
  .boss-setting {
    padding: 16px;
  }
  .boss-setting .stack > .button {
    width: 100%;
  }
}
