/* brain-break.html: the picker, plus the full-screen break a class reads from across the room. */

.bb-hero { padding: 104px 0 40px; background: var(--bg-alt); }
.bb-hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin: 0 0 12px; }
.bb-hero .subtitle { font-size: 1.15rem; color: var(--text-light); margin: 0 0 28px; max-width: 640px; }

.bb-picker { display: grid; gap: 20px; }
.bb-row h2 { font-size: 1.25rem; margin: 0 0 10px; }
.bb-row p { margin: 0 0 12px; color: var(--text-light); }
.bb-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bb-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 112px; border-radius: var(--radius-lg); color: #fff; text-decoration: none;
  font-weight: 800; box-shadow: var(--shadow-lg); transition: transform 0.15s ease;
}
.bb-tile:hover, .bb-tile:focus-visible { transform: translateY(-3px); }
.bb-tile .bb-min { font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1; }
.bb-tile .bb-unit { font-size: 1rem; opacity: 0.95; }
.bb-energize { background: linear-gradient(160deg, #f97316 0%, #db2777 100%); }
.bb-calm { background: linear-gradient(160deg, #0f766e 0%, #1e3a8a 100%); }

.bb-ready { text-align: center; padding: 32px 0; }
.bb-ready h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 20px; }
.bb-ready .btn { margin: 6px; }

.bb-notes { padding: 40px 0 24px; }
.bb-notes .container { max-width: 760px; }
.bb-notes h2 { font-size: 1.4rem; margin: 28px 0 10px; }
.bb-notes p, .bb-notes li { color: var(--text-light); line-height: 1.6; }

/* ---------- the break itself ---------- */
.bb-screen {
  transition: background 1.2s ease;
  position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column;
  color: #fff; font-family: 'Nunito', system-ui, sans-serif; user-select: none;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}
.bb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bb-clock {
  font-size: clamp(2.6rem, 8vw, 5.5rem); font-weight: 900; line-height: 1;
  font-variant-numeric: tabular-nums; text-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}
.bb-buttons { display: flex; gap: 8px; margin-left: auto; }
.bb-btn {
  min-width: 52px; height: 52px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(15, 23, 42, 0.28); color: #fff; font: inherit; font-size: 1.35rem; font-weight: 800;
  cursor: pointer; padding: 0 12px;
}
.bb-btn:focus-visible { outline: 3px solid #fde68a; outline-offset: 2px; }
.bb-stage {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; text-align: center; cursor: pointer; min-height: 0;
}
/* Hoppo acting out the move, as big as the screen allows. */
.bb-figure { position: relative; flex: 1 1 0; min-height: 180px; max-height: calc(100vw - 8px); width: 100%; }
.bb-rig { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bb-word {
  margin: 0; font-size: clamp(3rem, 11vw, 8rem); font-weight: 900; line-height: 1.02;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.3); overflow-wrap: anywhere;
}
.bb-sub { margin: 0; font-size: clamp(1.3rem, 4vw, 2.4rem); font-weight: 800; opacity: 0.95; }
.bb-hoppo { width: clamp(120px, 26vmin, 240px); height: auto; }

/* Freeze dance: a big FREEZE! stamp and an icy frame round the whole screen. */
.bb-freeze-cue {
  position: absolute; left: 50%; top: 2%; transform: translateX(-50%) rotate(-4deg);
  font-size: clamp(2rem, 7vmin, 4.5rem); font-weight: 900; letter-spacing: 0.02em; line-height: 1;
  padding: 0.12em 0.45em; border-radius: 999px; pointer-events: none; white-space: nowrap;
  color: #fff; background: #db2777; border: 4px solid #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.bb-freeze-cue[data-state='freeze'] {
  font-size: clamp(3rem, 12vmin, 7.5rem); color: #0c4a6e; background: #e0f2fe; border-color: #0ea5e9;
}
.bb-freeze-cue.bb-pop { animation: bbPop 0.35s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes bbPop { from { transform: translateX(-50%) rotate(-4deg) scale(0.4); } to { transform: translateX(-50%) rotate(-4deg) scale(1); } }
.bb-screen.bb-frozen { box-shadow: inset 0 0 0 14px #7dd3fc, inset 0 0 140px rgba(186, 230, 253, 0.85); }
@media (prefers-reduced-motion: reduce) { .bb-freeze-cue.bb-pop { animation: none; } }

.bb-track { height: 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.bb-bar { height: 100%; width: 0; background: #fff; border-radius: inherit; }
.bb-hint { margin: 10px 0 0; text-align: center; font-weight: 700; opacity: 0.85; font-size: clamp(0.95rem, 2.4vw, 1.2rem); }
.bb-paused .bb-stage { opacity: 0.45; }

.bb-done { display: flex; flex-direction: column; align-items: center; gap: 14px; cursor: default; }
.bb-cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 12px; }
.bb-cta {
  min-height: 60px; padding: 0 28px; border-radius: 999px; border: none; cursor: pointer;
  background: #fff; color: #0f172a; font: inherit; font-size: clamp(1.1rem, 3vw, 1.4rem); font-weight: 900;
}
.bb-cta-secondary { background: rgba(15, 23, 42, 0.3); color: #fff; border: 2px solid rgba(255, 255, 255, 0.7); }

@media (max-width: 520px) {
  .bb-hero { padding: 88px 0 28px; }
  .bb-hero h1 { font-size: 1.75rem; }
  .bb-hero .subtitle { font-size: 1rem; margin-bottom: 20px; }
  .bb-row p { font-size: 0.95rem; }
  .bb-tiles { gap: 8px; }
  .bb-tile { min-height: 92px; }
  .bb-btn { min-width: 44px; height: 44px; font-size: 1.1rem; padding: 0 8px; }
  .bb-buttons { gap: 6px; }
}
