/* Big-O Bouncer play stage — brand tokens only */

.play-page .play-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.play-lead {
  margin-bottom: 1.5rem;
}

.play-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue);
  line-height: 1.2;
}

.play-badge-item {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.18rem 0.5rem;
  border: 1px solid color-mix(in srgb, var(--blue) 28%, var(--border));
  border-radius: 6px;
  background: color-mix(in srgb, var(--blue) 8%, transparent);
  color: inherit;
  white-space: nowrap;
}

.play-badge-sep {
  display: none;
}

.play-lead h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.play-support {
  margin: 0;
  color: var(--slate-dim);
  max-width: 36rem;
}

.play-path {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--blue);
}

.play-path-change {
  margin: 0.45rem 0 0;
  font-size: 0.85rem;
}

.play-path-change a {
  color: var(--slate-dim);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.bobo-path {
  color: var(--blue);
}

.bobo-path-stats,
.bobo-goal,
.bobo-review-hint,
.bobo-unlock-hint,
.bobo-end-path,
.bobo-end-goal,
.bobo-end-wave {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate-dim);
}

.bobo-wave-map {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.45rem;
}

.bobo-wave-chip {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--slate-dim);
  background: rgba(15, 23, 42, 0.55);
}

.bobo-wave-chip--clear {
  border-color: rgba(74, 127, 196, 0.55);
  color: var(--text);
  background: var(--blue-dim);
}

.bobo-wave-chip--next {
  border-color: rgba(74, 127, 196, 0.55);
  color: var(--text);
  background: var(--blue-dim);
  box-shadow: none;
}

.bobo-wave-chip--locked {
  opacity: 0.45;
}

.bobo-path-track {
  height: 0.35rem;
  margin: 0 0 0.55rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.bobo-path-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--blue);
  transition: width 0.25s ease;
}

.bobo-weak-lessons {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.75rem 0 1rem;
}

.bobo-weak-heading {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate-dim);
}

.bobo-weak-link {
  font-size: 0.85rem;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.bobo-change-path {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--slate-dim);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.bobo-stage {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.15rem 1.25rem;
  background: rgba(7, 10, 18, 0.72);
}

.bobo-chrome {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.85rem;
}

.bobo-title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.bobo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate-dim);
}

.bobo-crowd {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  min-height: 1.1rem;
  margin-bottom: 1rem;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.55);
}

.bobo-crowd-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--slate-dim);
  opacity: 0.45;
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

.bobo-crowd--jam .bobo-crowd-dot {
  background: #f87171;
  opacity: 0.95;
  transform: scale(1.08);
}

.bobo-card {
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(74, 127, 196, 0.28);
  background: rgba(74, 127, 196, 0.06);
  transition: opacity 0.2s ease;
}

.bobo-card-label {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-dim);
}

.bobo-stem {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
}

.bobo-doors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

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

.bobo-door {
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  transition: transform 0.15s ease;
}

.bobo-door:hover:not(:disabled) {
  transform: scale(1.03);
}

.bobo-door.is-correct {
  border-color: rgba(34, 197, 94, 0.75);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
}

.bobo-door.is-wrong {
  border-color: rgba(248, 113, 113, 0.7);
}

.bobo-door.is-pop {
  animation: bobo-door-pop 0.35s ease-out 1;
}

.bobo-door.is-shake {
  animation: bobo-door-shake 0.35s ease-out 1;
}

.bobo-streak.is-celebrate {
  animation: bobo-streak-celebrate 0.45s ease-out 1;
  color: var(--text);
}

.bobo-wave-chip--next.is-pulse {
  animation: bobo-chip-pulse 0.4s ease-out 1;
}

.bobo-photo-teaser.is-enter {
  animation: bobo-teaser-enter 0.35s ease-out 1;
}

.bobo-snack-path {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
  color: var(--slate-dim);
}

.bobo-crowd.is-ease .bobo-crowd-dot {
  transition: background 0.25s ease, opacity 0.25s ease, transform 0.2s ease;
}

@keyframes bobo-door-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes bobo-door-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  75% {
    transform: translateX(3px);
  }
}

@keyframes bobo-streak-celebrate {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes bobo-chip-pulse {
  0% {
    transform: scale(1);
    box-shadow: none;
  }
  50% {
    transform: scale(1.06);
    box-shadow: none;
    border-color: rgba(74, 127, 196, 0.65);
  }
  100% {
    transform: scale(1);
    box-shadow: none;
  }
}

@keyframes bobo-teaser-enter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes play-feedback-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes play-end-enter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bobo-door:active:not(:disabled) {
  transform: scale(0.98);
}

.bobo-feedback {
  min-height: 2.75rem;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--slate);
}

.bobo-feedback:not([hidden]) {
  animation: play-feedback-in 0.2s ease-out 1;
}

.bobo-feedback[hidden] {
  display: none !important;
}

.bobo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.bobo-end {
  text-align: left;
}

.bobo-end h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.bobo-end:not([hidden]) h2 {
  animation: play-end-enter 0.25s ease-out 1;
}

.bobo-end p {
  margin: 0 0 0.75rem;
  color: var(--slate-dim);
}

.bobo-end[hidden],
.bobo-play[hidden] {
  display: none !important;
}

.bobo-share-card[hidden] {
  display: none !important;
}

.bobo-share-card {
  border-color: rgba(74, 127, 196, 0.45);
}

.bobo-photo-teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0.35rem 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(74, 127, 196, 0.28);
  border-radius: 12px;
  background: rgba(74, 127, 196, 0.06);
}

.bobo-photo-teaser[hidden] {
  display: none !important;
}

.bobo-photo-teaser-line {
  flex: 1 1 12rem;
  margin: 0;
  color: var(--slate-dim, #8b9cb3);
  font-size: 0.92rem;
}

.bobo-photo-sample {
  width: 90px;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(74, 127, 196, 0.4);
  background: #070a12;
  flex: 0 0 auto;
}

.bobo-photo-teaser--end {
  margin-top: 0.5rem;
}

.bobo-share-composer {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom, 0px));
  background: rgba(7, 10, 18, 0.72);
}

.bobo-share-composer-panel {
  width: min(420px, 100%);
  max-height: min(92vh, 840px);
  overflow: auto;
  border: 1px solid var(--border, #1f2a3d);
  border-radius: 14px;
  background: var(--surface, #0f172a);
  padding: 1rem 1rem 1.15rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.bobo-share-composer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.bobo-share-composer-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text, #f8fafc);
}

.bobo-share-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.bobo-share-tab {
  flex: 1;
  border: 1px solid var(--border, #1f2a3d);
  border-radius: 8px;
  background: transparent;
  color: var(--slate-dim, #8b9cb3);
  padding: 0.45rem 0.6rem;
  font: inherit;
  cursor: pointer;
}

.bobo-share-tab.is-active {
  color: var(--text, #f8fafc);
  border-color: rgba(74, 127, 196, 0.55);
  background: rgba(74, 127, 196, 0.12);
}

.bobo-share-field {
  display: block;
  margin: 0.55rem 0 0.25rem;
  color: var(--slate-dim, #8b9cb3);
  font-size: 0.85rem;
}

.bobo-share-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border, #1f2a3d);
  border-radius: 8px;
  background: var(--obsidian, #0b0f19);
  color: var(--text, #f8fafc);
  padding: 0.55rem 0.65rem;
  font: inherit;
}

.bobo-share-challenge,
.bobo-share-chips-note,
.bobo-share-honesty,
.bobo-share-tags-tip,
.bobo-share-copy-status {
  margin: 0.55rem 0;
  color: var(--slate-dim, #8b9cb3);
  font-size: 0.9rem;
}

.bobo-share-photo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.55rem 0;
}

.bobo-share-preview-wrap {
  margin: 0.75rem 0;
  display: flex;
  justify-content: center;
}

.bobo-share-preview {
  width: min(100%, 280px);
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(74, 127, 196, 0.35);
  background: #070a12;
}

.bobo-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.bobo-share-tags-list {
  list-style: none;
  margin: 0.5rem 0 0.85rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.bobo-share-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border, #1f2a3d);
  border-radius: 8px;
}

@media (min-width: 640px) {
  .bobo-share-composer {
    align-items: center;
  }
}

.play-snack-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin: 0.75rem auto 0;
  padding-bottom: 0.25rem;
}

.play-bored-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border: none;
  background: transparent;
  box-shadow: none;
  min-height: auto;
  transition: color 0.15s ease;
}

.play-bored-link:hover {
  color: var(--blue);
  border: none;
  background: transparent;
  box-shadow: none;
}

.play-bored-link:focus-visible {
  color: var(--blue);
  border: none;
  background: transparent;
  box-shadow: none;
  outline: 2px solid rgba(74, 127, 196, 0.7);
  outline-offset: 3px;
  border-radius: 4px;
}

.play-snack-hint {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(203, 213, 225, 0.88);
}

@media (prefers-reduced-motion: reduce) {
  .bobo-crowd-dot,
  .bobo-card,
  .bobo-door,
  .bobo-door:hover:not(:disabled),
  .bobo-door:active:not(:disabled),
  .bobo-path-fill,
  .play-snack-btn {
    transition: none;
    transform: none;
  }

  .bobo-door.is-pop,
  .bobo-door.is-shake,
  .bobo-streak.is-celebrate,
  .bobo-wave-chip--next.is-pulse,
  .bobo-photo-teaser.is-enter,
  .bobo-feedback:not([hidden]),
  .bobo-end:not([hidden]) h2 {
    animation: none;
  }
}

/* Snack review (device-only miss log) */
.snack-review-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.snack-review-filter {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.snack-review-filter.is-active,
.snack-review-filter[aria-pressed="true"] {
  border-color: rgba(74, 127, 196, 0.55);
  background: var(--blue-dim);
}

.snack-review-root {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.snack-review-wave-title {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  font-weight: 600;
}

.snack-review-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.snack-review-item {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.snack-review-stem {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 600;
}

.snack-review-meta {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted, var(--muted));
}

.snack-review-lesson {
  font-size: 0.85rem;
}

/* Play snack mode toggle */
.play-snack-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
}

.play-snack-btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.85rem;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--slate-dim);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.play-snack-btn.is-active,
.play-snack-btn[aria-pressed="true"] {
  border-color: var(--blue);
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 12%, transparent);
}

@media (max-width: 720px) {
  .play-page .play-main {
    padding: 1.25rem 0 3rem;
  }

  .play-badge {
    gap: 0.35rem;
    margin-bottom: 0.8rem;
    font-size: 0.64rem;
  }

  .play-badge-item {
    min-height: 1.7rem;
    padding: 0.25rem 0.6rem;
  }

  .play-snack-toggle {
    width: 100%;
  }

  .play-snack-btn {
    flex: 1 1 calc(50% - 0.25rem);
    text-align: center;
  }
}

/* Systems Desk stage (mirrors Bouncer chrome, separate classes) */
.desk-path {
  color: var(--blue);
}

.desk-path-stats,
.desk-goal,
.desk-review-hint,
.desk-end-path,
.desk-end-goal {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate-dim);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.desk-path-track {
  height: 0.35rem;
  margin: 0 0 0.55rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
  max-width: 100%;
}

.desk-path-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--blue);
  transition: width 0.25s ease;
}

.desk-play,
.desk-end {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.desk-end:not([hidden]) h2 {
  animation: play-end-enter 0.25s ease-out 1;
}

.desk-end[hidden],
.desk-play[hidden] {
  display: none !important;
}

.desk-chrome {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.desk-title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--blue);
}

.desk-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate-dim);
}

.desk-card {
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.desk-card-label {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-dim);
}

.desk-stem {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
}

.desk-doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

@media (max-width: 520px) {
  .desk-doors {
    grid-template-columns: 1fr;
  }
}

.desk-door {
  font: inherit;
  text-align: left;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: inherit;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.desk-door:hover:not(:disabled) {
  transform: scale(1.03);
}

.desk-door:active:not(:disabled) {
  transform: scale(0.98);
}

.desk-door.is-correct {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.desk-door.is-wrong {
  opacity: 0.72;
}

.desk-door.is-pop {
  animation: bobo-door-pop 0.35s ease-out 1;
}

.desk-door.is-shake {
  animation: bobo-door-shake 0.35s ease-out 1;
}

.desk-streak.is-celebrate {
  animation: bobo-streak-celebrate 0.45s ease-out 1;
}

.desk-feedback {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--slate-dim);
}

.desk-feedback:not([hidden]) {
  animation: play-feedback-in 0.2s ease-out 1;
}

.desk-study-link,
.desk-change-path,
.desk-weak-link,
.desk-review-link {
  color: var(--blue);
  text-underline-offset: 0.15em;
}

.desk-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.desk-again {
  font: inherit;
  align-self: flex-start;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
}

.desk-weak-lessons {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.desk-weak-heading {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate-dim);
}

.desk-reduced-motion .desk-door,
.desk-reduced-motion .desk-door:hover:not(:disabled),
.desk-reduced-motion .desk-door:active:not(:disabled) {
  transition: none;
  transform: none;
}

.desk-reduced-motion .desk-door.is-pop,
.desk-reduced-motion .desk-door.is-shake,
.desk-reduced-motion .desk-streak.is-celebrate,
.desk-reduced-motion .desk-feedback:not([hidden]),
.desk-reduced-motion .desk-end:not([hidden]) h2 {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .desk-door,
  .desk-door:hover:not(:disabled),
  .desk-door:active:not(:disabled) {
    transition: none;
    transform: none;
  }

  .desk-door.is-pop,
  .desk-door.is-shake,
  .desk-streak.is-celebrate,
  .desk-feedback:not([hidden]),
  .desk-end:not([hidden]) h2 {
    animation: none;
  }
}
