/* PURPUR-Fenster, uebernommen. */
.bb-rave-wrap { width:100vw; margin-left:calc(50% - 50vw);
    display:flex; flex-direction:column; align-items:center;
    padding:28px 20px 88px; background:linear-gradient(180deg,#f3e7fa 0%,#ffffff 100%); }
  .bb-rave-wrap--flat { background:transparent; }
  .bb-rave-wrap--flat .bb-rave { margin-top:0; }
  .bb-rave-reveal { display:flex; flex-direction:column; align-items:center; max-width:100%; }
  .bb-rave-reveal.bb-arm { opacity:0; }
  .bb-rave-reveal.bb-in { animation:bbRaveZapScroll 0.5s cubic-bezier(.2,.9,.3,1); }
  .bb-rave { position:relative; margin-top:-44px; z-index:2; width:500px; max-width:100%;
    background:#e9dbfa; border:2px solid #7b5bd6; box-shadow:7px 7px 0 rgba(123,91,214,.28);
    font-family:'VT323',monospace; line-height:1.2; cursor:pointer;
    transform-origin:50% 30%; transition:transform .35s cubic-bezier(.34,1.56,.64,1); }
  .bb-rave.bb-max { transform:scale(1.12); }
  .bb-rave.bb-closing { animation:bbCrtOff .42s ease-in forwards; pointer-events:none; }
  .bb-rave.bb-opening { animation:bbPopIn .5s cubic-bezier(.34,1.56,.64,1); }
  .bb-titlebar { display:flex; align-items:center; justify-content:space-between; gap:12px;
    height:30px; padding:0 6px 0 12px; background:#c9aef2; border-bottom:2px solid #7b5bd6;
    font-size:19px; color:#3c2a6e; }
  .bb-titlebar > span:first-child { flex:1; min-width:0; overflow:hidden;
    text-overflow:ellipsis; white-space:nowrap; }
  .bb-titlebar b { text-shadow:.5px 0 0 #3c2a6e; }
  .bb-btns { display:flex; gap:4px; }
  .bb-btns button { width:19px; height:19px; padding:0; border:2px solid #7b5bd6;
    background:#e9dbfa; color:#3c2a6e; font-family:'VT323',monospace; font-size:15px;
    display:flex; align-items:center; justify-content:center; cursor:pointer; }
  .bb-btns button:hover { background:#dcc8f7; }
  .bb-btns button:active { transform:translate(1px,1px); }
  .bb-btns .bb-x:hover { background:#a855f7; color:#fff; }
  .bb-fold { overflow:hidden; transition:max-height .45s ease, opacity .3s ease; max-height:600px; opacity:1; }
  .bb-rave.bb-min .bb-fold { max-height:0; opacity:0; }
  .bb-body { display:flex; flex-direction:column; align-items:center; gap:10px;
    padding:26px 24px 12px; background:#f2eafc; }
  .bb-count { display:flex; gap:28px; align-items:baseline; text-align:center; }
  .bb-count > div { display:flex; flex-direction:column; gap:4px; min-width:64px; }
  .bb-num { font-family:'Unbounded',sans-serif; font-weight:900; font-size:30px;
    background:linear-gradient(90deg,#6d3bd4,#c56bff);
    -webkit-background-clip:text; background-clip:text; color:transparent; }
  .bb-lbl { font-size:17px; letter-spacing:.12em; color:#8a6fc9; }
  .bb-hint { font-size:16px; color:#8a6fc9; padding-bottom:8px; }
  .bb-details { overflow:hidden; transition:max-height .45s ease, opacity .3s ease; max-height:0; opacity:0; }
  .bb-rave.bb-open .bb-details { max-height:300px; opacity:1; }
  .bb-details > div { display:flex; flex-direction:column; gap:8px; padding:16px 22px 20px;
    border-top:2px solid #7b5bd6; background:#e9dbfa; font-size:18px; color:#3c2a6e; }
  .bb-reopen { display:none; margin:20px auto 0; padding:10px 20px; border:2px solid #7b5bd6;
    background:#e9dbfa; box-shadow:5px 5px 0 rgba(123,91,214,.28); color:#3c2a6e;
    font-family:'VT323',monospace; font-size:19px; cursor:pointer; animation:bbReopenIn .3s ease; }
  .bb-reopen:hover { background:#dcc8f7; }
  @keyframes bbReopenIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }
  @keyframes bbCrtOff {
    0% { transform:scale(1,1); opacity:1; filter:brightness(1); }
    45% { transform:scale(1.04,.12); filter:brightness(2.2); }
    75% { transform:scale(.5,.03); opacity:.9; filter:brightness(3); }
    100% { transform:scale(0,.01); opacity:0; } }
  @keyframes bbPopIn {
    0% { transform:scale(.15,.04); opacity:0; }
    55% { transform:scale(1.05,1.08); opacity:1; }
    80% { transform:scale(.98,.97); }
    100% { transform:scale(1,1); opacity:1; } }
  /* retro CRT power-on / tv-zap (vertical only, no horizontal overflow) */
  @keyframes bbRaveZapScroll {
    0%   { opacity:0; transform:scaleY(.006); filter:brightness(3.6); }
    36%  { opacity:1; transform:scaleY(.02); filter:brightness(3); }
    54%  { transform:scaleY(1.06); filter:brightness(1.7); }
    72%  { transform:scaleY(.97); filter:brightness(1.2); }
    100% { opacity:1; transform:scaleY(1); filter:brightness(1); }
  }
  .bb-rsvp { position:absolute; right:-26px; bottom:-34px; z-index:3; width:200px;
    display:block; text-decoration:none; cursor:pointer; transform:rotate(-3deg);
    border:2px solid #a855f7; background:#f3e6ff; box-shadow:5px 5px 0 rgba(168,85,247,.3);
    font-family:'VT323',monospace; color:#4a1a7a;
    animation:bbRsvpGlitch 2.7s steps(1,end) infinite; }
  .bb-rsvp-bar { display:flex; align-items:center; justify-content:space-between;
    height:22px; padding:0 6px 0 8px; background:#dcb8ff; border-bottom:2px solid #a855f7;
    font-size:15px; color:#3d1270; }
  .bb-rsvp-btns { display:flex; gap:3px; }
  .bb-rsvp-btns span { width:13px; height:13px; border:2px solid #a855f7; background:#f3e6ff;
    font-size:10px; line-height:9px; text-align:center; }
  .bb-rsvp-body { display:block; padding:9px 12px 11px; font-size:19px; line-height:1.15; }
  .bb-rsvp:hover { background:#e9d4ff; box-shadow:6px 6px 0 rgba(168,85,247,.4); animation-duration:0.9s; }
  .bb-rsvp:active { box-shadow:2px 2px 0 rgba(168,85,247,.4); }
  @keyframes bbRsvpGlitch {
    0%, 7%, 100% { transform:rotate(-3deg); opacity:1; filter:none; }
    8% { transform:rotate(-3deg) translate(-2px,1px) skewX(-4deg); opacity:.85;
      filter:drop-shadow(2px 0 0 rgba(0,229,255,.7)) drop-shadow(-2px 0 0 rgba(255,45,146,.7)); }
    9.5% { transform:rotate(-3deg) translate(2px,-1px) skewX(3deg); }
    11% { transform:rotate(-3deg); opacity:1; filter:none; }
    46% { transform:rotate(-3deg); }
    47% { transform:rotate(-3deg) translate(1px,1px) skewX(2deg); opacity:.9; }
    48.5% { transform:rotate(-3deg) translate(-1px,0) skewX(-2deg); filter:drop-shadow(-2px 0 0 rgba(0,229,255,.7)); }
    50% { transform:rotate(-3deg); opacity:1; filter:none; }
    78% { transform:rotate(-3deg); }
    79% { transform:rotate(-3deg) translate(-2px,-1px) skewX(-3deg); opacity:.8; }
    80.5% { transform:rotate(-3deg); opacity:1; }
  }
  @media (max-width: 600px) {
    .bb-rsvp { right:6px; bottom:-30px; width:min(180px, 62vw); }
    .bb-count { gap:14px; }
    .bb-count > div { min-width:52px; }
    .bb-num { font-size:24px; }
    .bb-body { padding:22px 16px 12px; } }
  @media (prefers-reduced-motion: reduce) {
    .bb-rave, .bb-fold, .bb-details, .bb-rsvp, .bb-rave-reveal { transition:none; animation:none !important; }
    .bb-rave-reveal.bb-arm { opacity:1; } }
