/* Antelier styles: museum gallery & mobile-first portrait layout (390x844 zero scroll).
   Reacts cleanly to all 10 shared themes in /css/themes.css. */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(960px 640px at 84% -8%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    radial-gradient(880px 580px at 6% 108%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 58%),
    var(--bg);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

#app {
  height: 100%;
  height: 100dvh;
  position: relative;
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.24s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  color: var(--text);
  background: transparent;
}
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 0.98rem;
  font-weight: 750;
  padding: 13px 16px;
  border-radius: 13px;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 34%, transparent);
  transition: transform 0.12s ease, opacity 0.15s ease;
}
.btn-primary:active { transform: scale(0.97); }

.btn-ghost {
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 13px;
  font-size: 0.9rem;
  font-weight: 650;
  transition: transform 0.12s ease, background 0.15s ease;
}
.btn-ghost:active { transform: scale(0.97); background: rgba(255, 255, 255, 0.08); }

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-size: 1.08rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  transition: transform 0.12s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.icon-btn:active { transform: scale(0.92); }
.icon-btn:disabled { opacity: 0.36; cursor: not-allowed; }
.icon-btn:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--card-border));
}

/* Toast */
.toast {
  position: fixed;
  top: calc(var(--safe-top) + 58px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--text);
  color: var(--bg);
  font-weight: 750;
  font-size: 0.8rem;
  padding: 7px 14px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  z-index: 35;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.toast.show {
  opacity: 0.96;
  transform: translateX(-50%) translateY(0);
}

/* ==================== GALLERY SCREEN ==================== */
#screen-gallery {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(var(--safe-top) + 14px) 16px calc(var(--safe-bottom) + 32px);
}

.gallery-wrap {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gallery-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.back-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
  padding: 6px 2px;
}
.back-link:active, .back-link:hover { color: var(--text); }

.progress-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 18%, var(--card));
  border: 1px solid color-mix(in srgb, var(--accent) 44%, var(--card-border));
  font-variant-numeric: tabular-nums;
}

.brand {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.brand-badge {
  color: var(--text);
  filter: drop-shadow(0 6px 16px color-mix(in srgb, var(--accent) 42%, transparent));
}
.brand h1 {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 850;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 340px;
  line-height: 1.38;
}

.how-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 15px;
  padding: 11px 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.how-card p {
  margin: 0;
  font-size: 0.81rem;
  line-height: 1.44;
  color: var(--muted);
  text-align: center;
}
.how-card strong { color: var(--text); }

/* Campaign / Returning-Winner Banner */
.campaign-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 14%, var(--card));
  border: 1px solid color-mix(in srgb, var(--accent) 44%, var(--card-border));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}
.campaign-banner.is-new {
  background: color-mix(in srgb, var(--gold) 16%, var(--card));
  border-color: color-mix(in srgb, var(--gold) 58%, var(--card-border));
}
.campaign-banner.is-complete {
  background: color-mix(in srgb, var(--good) 14%, var(--card));
  border-color: color-mix(in srgb, var(--good) 48%, var(--card-border));
}
.banner-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.banner-kicker {
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}
.campaign-banner.is-new .banner-kicker { color: var(--gold); }
.campaign-banner.is-complete .banner-kicker { color: var(--good); }
.banner-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}
.banner-sub {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.32;
}
.banner-cta {
  flex: 0 0 auto;
  padding: 10px 13px;
  font-size: 0.82rem;
  border-radius: 12px;
  white-space: nowrap;
}

.wings-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wing-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wing-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px;
}
.wing-head h2 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.wing-head small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.wing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 580px) {
  .wing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.painting-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--card-border);
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.18s ease, box-shadow 0.18s ease;
}
.painting-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 58%, var(--card-border));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.36);
}
.painting-card:active { transform: scale(0.97); }
.painting-card.is-cleared {
  border-color: color-mix(in srgb, var(--good) 46%, var(--card-border));
}

.painting-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 11px;
  padding: 6px;
  background: linear-gradient(155deg, var(--bg-2), var(--bg));
  border: 1px solid color-mix(in srgb, var(--gold) 34%, var(--card-border));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 14px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}
.painting-frame canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 6px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.cleared-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--good);
  color: #06140e;
  font-size: 0.78rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

.level-pill {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f4f7ff;
  font-size: 0.64rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(4px);
}

.new-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--gold);
  color: #141008;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.42);
}

.painting-card.is-new {
  border-color: color-mix(in srgb, var(--gold) 56%, var(--card-border));
}

.painting-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.painting-title {
  font-size: 0.88rem;
  font-weight: 780;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.painting-sub {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.painting-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 2px;
}
.painting-dim {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.swatch-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.swatch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

/* ==================== PLAY SCREEN (ZERO SCROLL ON 390x844) ==================== */
#screen-play {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  padding: calc(var(--safe-top) + 8px) 12px calc(var(--safe-bottom) + 10px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.play-hud {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hud-back {
  padding: 8px 10px;
  border-radius: 11px;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
}
.hud-back:active { transform: scale(0.95); }

.hud-title-block {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 4px;
}
.hud-title {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hud-progress-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hud-progress-track {
  flex: 1 1 0;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  overflow: hidden;
}
.hud-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--good));
  transition: width 0.22s ease;
}
.hud-pct {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 30px;
  text-align: right;
}

.hud-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

/* Central Framed Easel Stage */
.easel-stage {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  container-type: size;
}

#easel {
  display: block;
  width: min(100cqw, 100cqh);
  height: min(100cqw, 100cqh);
  aspect-ratio: 1 / 1;
  touch-action: none;
}

/* Single-File Perimeter Trail Capacity Panel */
.trail-panel {
  flex: 0 0 auto;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 15px;
  padding: 8px 11px 9px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.trail-panel.warn {
  border-color: color-mix(in srgb, var(--gold) 60%, var(--card-border));
}
.trail-panel.danger {
  border-color: color-mix(in srgb, var(--bad) 66%, var(--card-border));
  box-shadow: 0 0 18px color-mix(in srgb, var(--bad) 18%, transparent);
}

.trail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.trail-label {
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.trail-panel.warn .trail-label { color: var(--gold); }
.trail-panel.danger .trail-label { color: var(--bad); }

.trail-hint {
  font-size: 0.68rem;
  font-weight: 650;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.trail-meter {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  padding: 1px;
}
.trail-segments {
  width: 100%;
  height: 100%;
  display: flex;
  gap: 1.5px;
  border-radius: 999px;
  overflow: hidden;
}
.trail-seg {
  height: 100%;
  border-radius: 3px;
  transition: width 0.14s ease;
}

.trail-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 18px;
}
.trail-empty-note {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--muted);
  opacity: 0.85;
}
.trail-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px 2px 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.67rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.trail-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* 4 Squad Queue Columns */
.queues-panel {
  flex: 0 0 auto;
}

.queues-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}

.queue-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.squad-front {
  position: relative;
  width: 100%;
  height: 82px;
  border-radius: 15px;
  padding: 7px 6px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: var(--sp-bg, var(--card));
  border: 2px solid var(--sp-border, var(--card-border));
  color: var(--sp-ink, var(--text));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 6px 16px rgba(0, 0, 0, 0.34);
  transition: transform 0.12s ease, box-shadow 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
}
.squad-front:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 10px 22px rgba(0, 0, 0, 0.42);
}
.squad-front:active:not(:disabled) {
  transform: scale(0.95);
}
.squad-front.is-ready {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 0 0 1px color-mix(in srgb, var(--good) 52%, transparent),
    0 7px 18px rgba(0, 0, 0, 0.38);
}
.squad-front.is-blocked {
  opacity: 0.42;
  filter: saturate(0.55);
  box-shadow: none;
}
.squad-front.is-blocked:hover {
  transform: none;
}

.squad-ready-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 8px var(--good);
}

.squad-ant-svg {
  width: 30px;
  height: 24px;
  display: block;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}

.squad-count {
  font-size: 1.24rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.squad-sub-tag {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.86;
}

.queue-empty-front {
  width: 100%;
  height: 82px;
  border-radius: 15px;
  border: 1.5px dashed color-mix(in srgb, var(--muted) 25%, transparent);
  background: rgba(0, 0, 0, 0.14);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.55;
}

/* Next-up peek cards */
.queue-peek-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 54px;
}

.squad-peek {
  height: 24px;
  border-radius: 8px;
  padding: 0 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  background: var(--sp-bg, var(--card));
  border: 1px solid var(--sp-border, var(--card-border));
  color: var(--sp-ink, var(--text));
  opacity: 0.76;
  font-size: 0.74rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.squad-peek.peek-2 {
  opacity: 0.5;
  transform: scale(0.96);
}

.queue-more {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 750;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

/* ==================== OVERLAYS (VICTORY / GAME OVER) ==================== */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(4, 7, 15, 0);
  transition: background 0.22s ease;
}
.overlay.open {
  background: rgba(4, 7, 15, 0.64);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.sheet {
  width: 100%;
  max-width: 480px;
  max-height: 90%;
  background: var(--bg-2);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 12px 18px calc(var(--safe-bottom) + 18px);
  border-top: 1px solid var(--card-border);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow-y: auto;
}
.overlay.open .sheet {
  transform: translateY(0);
}
.sheet::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 3px;
  background: var(--muted);
  opacity: 0.45;
  margin: 2px auto 12px;
}

.victory-frame {
  width: 112px;
  height: 112px;
  padding: 7px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--bg), var(--bg-2));
  border: 2px solid color-mix(in srgb, var(--gold) 66%, var(--card-border));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  margin-bottom: 10px;
}
.victory-frame canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 6px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.gameover-icon {
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--bad);
}

.grand-crown {
  font-size: 2.9rem;
  line-height: 1;
  margin-bottom: 6px;
  filter: drop-shadow(0 6px 18px color-mix(in srgb, var(--gold) 55%, transparent));
}

.result-eyebrow {
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--good);
  margin-bottom: 2px;
}
.result-eyebrow.bad {
  color: var(--bad);
}
.result-eyebrow.gold {
  color: var(--gold);
}

.grand-future-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--gold) 10%, var(--card));
  border: 1px solid color-mix(in srgb, var(--gold) 32%, var(--card-border));
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.sheet h2 {
  margin: 2px 0 0;
  font-size: 1.55rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}
.result-sub {
  margin: 5px 0 14px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.42;
  max-width: 340px;
}

.result-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.r-stat {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 13px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.r-val {
  font-size: 1.18rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
.r-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sheet-actions {
  width: 100%;
  display: flex;
  gap: 8px;
}
.sheet-actions .btn-ghost,
.sheet-actions .btn-primary {
  flex: 1 1 0;
}

.sheet-hub {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 650;
}
.sheet-hub:active, .sheet-hub:hover {
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
