/* Activity-only framing; the game components and the header's own
   `.site-bar*` rules come from style.css. */

.activity-body {
  background: var(--bg);
  min-height: 100vh;
}

/* style.css bleeds `.site-bar` out to the page's padding edges with
   negative margins that assume the site's body padding. The Activity
   has none, so the bar sits flush on its own. */
.activity-bar {
  margin: 0;
}

/* Discord opens the frame narrow enough to cross the site's phone
   breakpoint, where `.site-bar-nav` hides in favour of a Home button
   the Activity has no use for. Keep the one mode visible instead. */
@media (max-width: 30rem) {
  .activity-bar .site-bar-nav {
    display: flex;
  }
}

.activity {
  max-width: 60rem;
  margin: 0 auto;
  padding: var(--sp-4);
}

.activity-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  min-height: 60vh;
  text-align: center;
}

.activity-gate[hidden],
.activity-game[hidden] {
  display: none;
}

.activity-gate-line {
  font: 700 var(--step-1) / 1.3 var(--font-display);
}

.activity-gate-detail {
  max-width: 28rem;
  color: var(--muted);
}

.activity-issue {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--muted);
  margin-bottom: var(--sp-3);
}

.activity-invite[hidden] {
  display: none;
}

/* On the site the account control is a zero-width anchor and the visible
   trigger sits in the overflow menu. The Activity puts the trigger back
   in the control, so it needs real width. */
.activity-bar .site-bar-actions > .account-control {
  width: auto;
  margin-left: 0;
}

/* style.css hides `.account-sheet > summary` because on the site the
   real trigger lives in the overflow menu. The Activity has no overflow
   menu, so the disclosure itself is the control. */
.activity-bar .account-sheet > summary {
  position: static;
  width: auto;
  height: 2.75rem;
  margin: 0;
  padding: 0 var(--sp-2);
  overflow: visible;
  clip: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--muted);
  font: 600 var(--step--1) / 1 var(--font-ui);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.activity-bar .account-sheet > summary::-webkit-details-marker {
  display: none;
}

.activity-bar .account-sheet > summary::after {
  content: "\25BE";
  font-size: 0.7em;
}

.activity-bar .account-sheet[open] > summary {
  color: var(--ink);
}

/* No page-dimming scrim: this is a plain dropdown off one control.
   activity-main.js handles outside-click and Escape to close. */
.activity-bar .account-sheet[open]::before {
  display: none;
}

/* The link panel now hangs off the header's Account disclosure rather
   than sitting under the board. */
.activity-account-dialog {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.activity-account-identity {
  font-size: var(--step--1);
  color: var(--muted);
}

.activity-account-dialog .account-form {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
