/* ===========================================================
   break.css — Break Time page
   =========================================================== */
section[id] { scroll-margin-top: 130px; }

.break-hero {
  text-align: center;
  padding: 18px 20px 20px;
  border-radius: var(--radius);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 4px var(--blue-soft), var(--shadow);
  background:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,.8) 0 36px, transparent 37px),
    radial-gradient(circle at 92% 70%, rgba(255,255,255,.7) 0 48px, transparent 49px),
    linear-gradient(160deg, #efe4ff, #dff6ff 60%, #ffe3f1);
}
.break-tv { font-size: 3.4rem; display: inline-block; animation: tv-wiggle 2.6s ease-in-out infinite; }
@keyframes tv-wiggle { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-8deg); } 30% { transform: rotate(8deg); } 45% { transform: rotate(0); } }
.break-hero h1 { margin: 0; }
.break-sub { margin: 4px 0 12px; font-weight: 600; color: var(--purple); }
.break-jumps { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.break-jumps a {
  font-size: 2.4rem; text-decoration: none; color: var(--purple); text-align: center;
  background: rgba(255,255,255,.9); border-radius: 20px; padding: 6px 14px 4px; min-width: 104px;
  box-shadow: 0 5px 0 rgba(61,44,92,.12); transition: transform .15s;
}
.break-jumps a small { display: block; font-size: .85rem; font-weight: 700; }
.break-jumps a:hover { transform: translateY(-4px) rotate(-3deg); }

.break-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 22px 24px;
  margin: 26px 0;
  box-shadow: var(--shadow);
  border-top: 10px solid var(--pink);
}
.break-box:nth-of-type(3) { border-top-color: var(--purple); }
.break-box:nth-of-type(4) { border-top-color: var(--blue); }
.break-box:nth-of-type(5) { border-top-color: var(--yellow); }
.break-box h2 { margin: 0 0 4px; }
.break-note { margin: 0 0 14px; color: var(--purple); font-weight: 600; }

/* ---- TV shelves ---- */
.tv-box { background: linear-gradient(180deg, #fff, #fff6fb); }
.shelf-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.shelf-tab {
  font: inherit; font-weight: 700; cursor: pointer; color: var(--purple);
  border: 3px solid transparent; background: var(--purple-soft); border-radius: 18px;
  padding: 6px 16px 4px; display: flex; flex-direction: column; align-items: center; min-width: 108px;
  transition: transform .15s;
}
.shelf-tab .shelf-icon { font-size: 1.9rem; line-height: 1.1; }
.shelf-tab small { font-size: .72rem; color: var(--ink); opacity: .75; }
.shelf-tab:hover { transform: translateY(-3px); }
.shelf-tab.on { background: var(--yellow); border-color: var(--purple); color: var(--ink); }

.clip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.clip {
  font: inherit; color: var(--ink); text-align: left; cursor: pointer;
  border: none; background: var(--white); border-radius: 18px; padding: 8px 8px 12px;
  box-shadow: 0 0 0 3px var(--pink-soft), 0 6px 0 rgba(61,44,92,.12);
  display: flex; flex-direction: column; gap: 4px;
  animation: clip-in .4s ease-out both; animation-delay: calc(var(--i) * 60ms);
  transition: transform .15s;
}
@keyframes clip-in { from { transform: translateY(12px) scale(.95); opacity: 0; } }
.clip:hover { transform: translateY(-4px) rotate(-1deg); }
.clip-thumb { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--purple-soft); }
.clip-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip-badge {
  position: absolute; right: 8px; bottom: 8px; padding: 3px 10px; border-radius: 999px;
  background: var(--pink); color: #fff; font-weight: 700; font-size: .95rem; box-shadow: 0 2px 0 rgba(0,0,0,.15);
}
.clip.locked .clip-thumb img { filter: blur(2px) saturate(.6) brightness(1.1); }
.clip.locked .clip-thumb::after { content: ""; position: absolute; inset: 0; background: rgba(239, 228, 255, .45); }
.clip.locked .clip-badge { background: var(--yellow); color: var(--ink); z-index: 1; }
.clip-title { font-weight: 700; font-size: 1.05rem; line-height: 1.2; padding: 0 4px; }
.clip-from { font-size: .8rem; color: var(--purple); padding: 0 4px; }

/* ---- pop-up ---- */
.tv-pop { position: fixed; inset: 0; z-index: 200; background: rgba(61, 44, 92, .55); display: grid; place-items: center; padding: 16px; }
.tv-pop-card {
  position: relative; background: var(--white); border-radius: 26px; padding: 20px 22px; width: min(480px, 100%);
  text-align: center; border: 5px solid var(--pink); animation: pop .35s ease-out; max-height: 94vh; overflow: auto;
}
.tv-pop.wide .tv-pop-card { width: min(960px, 100%); border-color: var(--purple); }
.tv-pop-card h3 { margin: 0 34px 10px; color: var(--purple); }
.tv-close { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--pink-soft); font-size: 1rem; cursor: pointer; }
.tv-pop-thumb { width: 100%; border-radius: 14px; aspect-ratio: 16 / 9; object-fit: cover; }
.tv-big { font-size: 1.35rem; font-weight: 700; margin: 10px 0 4px; }
.tv-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; border: 6px solid var(--ink); }
.tv-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tv-small { font-size: .85rem; margin: 8px 0 0; }
.pin-input { font: inherit; font-size: 1.4rem; width: 140px; text-align: center; padding: 6px 10px; border-radius: 14px; border: 3px solid var(--purple); }
.grownup-row { text-align: center; margin: 10px 0 30px; }

/* ---- flip cards ---- */
.flip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.flip {
  font: inherit; color: var(--ink); border: none; background: none; padding: 0; cursor: pointer;
  perspective: 800px; height: 190px;
  animation: clip-in .4s ease-out both; animation-delay: calc(var(--i) * 50ms);
}
.flip-inner { position: relative; display: block; width: 100%; height: 100%; transition: transform .55s cubic-bezier(.3, 1.4, .5, 1); transform-style: preserve-3d; }
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back {
  position: absolute; inset: 0; border-radius: 20px; backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 12px; box-shadow: 0 6px 0 rgba(61,44,92,.12);
}
.flip-front { border: 4px solid var(--white); }
.flip.fact .flip-front { background: linear-gradient(160deg, #ffe3f1, #efe4ff); }
.flip.tip .flip-front { background: linear-gradient(160deg, #fff6c7, #ffe3f1); }
.flip-back { transform: rotateY(180deg); font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.flip.fact .flip-back { background: var(--purple); color: #fff; }
.flip.tip .flip-back { background: var(--pink); color: #fff; }
.flip-icon { font-size: 3.2rem; line-height: 1; transition: transform .2s; }
.flip-icon.small { font-size: 1.8rem; }
.flip:hover .flip-front .flip-icon { transform: scale(1.15) rotate(-6deg); }
.flip-label { font-weight: 700; font-size: 1.15rem; color: var(--purple); }
.flip-front small { font-size: .75rem; opacity: .6; }

/* ---- bubble breathing ---- */
.breathe-stage { height: 300px; display: grid; place-items: center; border-radius: 20px; background: linear-gradient(180deg, #dff6ff, #efe4ff); overflow: hidden; }
.breathe-bubble {
  width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  font-weight: 700; color: var(--purple); font-size: 1.1rem;
  background: radial-gradient(circle at 32% 28%, #fff 0 10%, rgba(255,255,255,.4) 22%, rgba(199,125,255,.35) 60%, rgba(76,201,240,.45));
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.8), 0 0 30px rgba(155,93,229,.35);
  transition: width 4s ease-in-out, height 4s ease-in-out, font-size 4s ease-in-out;
}
.breathe-bubble.grow { width: 260px; height: 260px; font-size: 1.6rem; }
.breathe-bubble.shrink { width: 110px; height: 110px; font-size: 1.05rem; transition-duration: 4.4s; }
.breathe-count { text-align: center; font-weight: 700; color: var(--purple); min-height: 1.5em; margin: 10px 0 0; font-size: 1.2rem; }

@media (prefers-reduced-motion: reduce) {
  .break-tv, .clip, .flip { animation: none; }
}
