/* Blossom Hub v1.14 - daily key gate */
#blGate { --p: var(--primary-orange, #ff69b4); --prgb: var(--primary-orange-rgb, 255, 105, 180); position: fixed; inset: 0; z-index: 2147483000; overflow: hidden auto; opacity: 0; transition: opacity .35s ease; font-family: inherit; color: #f4f1f5; }
#blGate.on { opacity: 1; }
#blGate.out { opacity: 0; pointer-events: none; }
body.bl-gated #main-container, body.bl-gated .bl-side, body.bl-gated .bl-page { visibility: hidden !important; }
/* the two halves of the gate; they slide apart when a key is accepted */
.blg-door { position: fixed; top: 0; bottom: 0; width: 50.2%; background: #08060a; transition: transform 1.15s cubic-bezier(.7, 0, .2, 1); }
.blg-door.l { left: 0; background: radial-gradient(900px 700px at 100% 42%, rgba(var(--prgb), .2), transparent 62%), linear-gradient(180deg, #0c080d, #060507); box-shadow: inset -1px 0 0 rgba(var(--prgb), .18); }
.blg-door.r { right: 0; background: radial-gradient(900px 700px at 0% 42%, rgba(var(--prgb), .2), transparent 62%), linear-gradient(180deg, #0c080d, #060507); }
.blg-door::after { content: ""; position: absolute; inset: 0; opacity: .5; background-image: radial-gradient(rgba(var(--prgb), .22) 1px, transparent 1.4px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent); }
.blg-fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#blGate.opening { pointer-events: none; }
#blGate.opening .blg-door.l { transform: translateX(-101%); }
#blGate.opening .blg-door.r { transform: translateX(101%); }
#blGate.opening .blg-wrap { opacity: 0; transform: scale(1.06); }
#blGate.opening .blg-fx { opacity: 0; transition: opacity 1.2s ease .6s; }

.blg-wrap { position: relative; min-height: 100%; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: clamp(24px, 5vw, 72px); align-items: center; max-width: 1080px; margin: 0 auto; padding: 28px 24px; transition: opacity .5s ease, transform .7s ease; }

/* left: the seal */
.blg-hero { text-align: center; display: flex; flex-direction: column; align-items: center; }
.blg-seal { position: relative; width: min(300px, 62vw); aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 6px; }
.blg-seal svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 18px rgba(var(--prgb), .45)); }
.blg-seal circle { fill: none; stroke: var(--p); transform-origin: 150px 150px; }
.blg-seal .r1 { stroke-width: 1.5; stroke-dasharray: 3 11; opacity: .7; animation: blgSpin 40s linear infinite; }
.blg-seal .r2 { stroke-width: 3; stroke-dasharray: 150 34 20 34; stroke-linecap: round; animation: blgSpin 14s linear infinite reverse; }
.blg-seal .r3 { stroke-width: 1; opacity: .35; }
.blg-seal .pet { fill: var(--p); opacity: .55; transform-origin: 150px 150px; animation: blgSpin 60s linear infinite; }
.blg-seal::before { content: ""; position: absolute; inset: 21%; border-radius: 50%; background: radial-gradient(circle at 50% 35%, rgba(var(--prgb), .34), rgba(var(--prgb), .06) 70%); box-shadow: inset 0 0 40px rgba(var(--prgb), .25); }
@keyframes blgSpin { to { transform: rotate(360deg); } }
.blg-logo { position: relative; width: 42%; height: auto; image-rendering: pixelated; filter: drop-shadow(0 8px 20px rgba(var(--prgb), .55)); animation: blgFloat 4s ease-in-out infinite; }
@keyframes blgFloat { 50% { transform: translateY(-6px); } }
.blg-lock { position: absolute; right: 21%; bottom: 20%; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.05rem; color: #1a0d14; background: linear-gradient(135deg, #ffd1e8, var(--p)); box-shadow: 0 6px 20px rgba(var(--prgb), .6), 0 0 0 4px #0a070b; transition: transform .4s cubic-bezier(.2, 1.6, .4, 1), background .3s; }
#blGate.busy .blg-seal .r2 { animation-duration: 1.1s; }
#blGate.busy .blg-seal .r1 { animation-duration: 4s; }
#blGate.busy .blg-lock { animation: blgPulse .7s ease-in-out infinite; }
@keyframes blgPulse { 50% { transform: scale(1.14); } }
#blGate.bad .blg-seal { animation: blgShake .45s; }
#blGate.bad .blg-seal circle, #blGate.bad .blg-seal .pet { stroke: #ff5d73; fill: none; }
#blGate.bad .blg-seal .pet { fill: #ff5d73; }
#blGate.bad .blg-lock { background: linear-gradient(135deg, #ffb3bd, #ff5d73); }
#blGate.won .blg-seal svg { animation: blgWon 1s cubic-bezier(.2, .8, .2, 1) forwards; }
#blGate.won .blg-lock { transform: scale(1.35) rotate(-12deg); background: linear-gradient(135deg, #d6ffe6, #57f287); box-shadow: 0 6px 26px rgba(87, 242, 135, .6), 0 0 0 4px #0a070b; }
#blGate.won .blg-seal .r2 { stroke-dasharray: none; }
@keyframes blgWon { 40% { transform: scale(1.12) rotate(40deg); filter: drop-shadow(0 0 34px rgba(var(--prgb), .95)); } 100% { transform: scale(1.5) rotate(120deg); opacity: 0; } }
.blg-tag { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; color: var(--p); background: rgba(var(--prgb), .1); border: 1px solid rgba(var(--prgb), .35); }
.blg-hero h2, .blg-hero h2::before, .blg-hero h2::after { all: unset; }
.blg-hero h2::before, .blg-hero h2::after { display: none !important; content: none !important; }
.blg-hero h2 { display: block; margin: 12px 0 8px; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.1; font-weight: 900; letter-spacing: -.3px; color: #fff; }
.blg-hero h2 b { background: linear-gradient(90deg, #ffd1e8, var(--p)); -webkit-background-clip: text; background-clip: text; color: transparent; }
#blGate.won .blg-hero h2 b { background: linear-gradient(90deg, #d6ffe6, #57f287); -webkit-background-clip: text; background-clip: text; }
.blg-sub { margin: 0 0 16px; max-width: 400px; font-size: .96rem; color: #b9b2bb; line-height: 1.5; }
.blg-clock { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 14px; text-align: left; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); font-size: .92rem; color: #e9e2ea; }
.blg-clock > i { color: var(--p); font-size: 1.1rem; animation: blgFlip 3s ease-in-out infinite; }
@keyframes blgFlip { 0%, 70% { transform: rotate(0); } 85%, 100% { transform: rotate(180deg); } }
.blg-clock b { color: var(--p); font-variant-numeric: tabular-nums; }
.blg-clock small { display: block; font-size: .76rem; color: #8d858f; }

/* right: the path of three steps */
.blg-card { position: relative; padding: 22px 22px 16px; border-radius: 22px; background: linear-gradient(180deg, rgba(30, 24, 30, .9), rgba(16, 14, 18, .94)); border: 1px solid rgba(var(--prgb), .3);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6), 0 0 60px rgba(var(--prgb), .12), inset 0 1px 0 rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: translateY(16px); opacity: 0; transition: transform .55s cubic-bezier(.2, .9, .25, 1.1) .1s, opacity .45s ease .1s; }
#blGate.on .blg-card { transform: none; opacity: 1; }
.blg-card.shake { animation: blgShake .4s; }
@keyframes blgShake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.blg-step { position: relative; display: flex; gap: 14px; padding-bottom: 18px; opacity: .5; transition: opacity .3s ease; }
.blg-step.on, .blg-step.done { opacity: 1; }
.blg-step::before { content: ""; position: absolute; left: 16px; top: 36px; bottom: 2px; width: 2px; border-radius: 2px; background: rgba(255, 255, 255, .1); }
.blg-step.done::before { background: linear-gradient(180deg, var(--p), rgba(var(--prgb), .35)); }
.blg-step[data-s="3"]::before { display: none; }
.blg-step[data-s="3"] { padding-bottom: 4px; }
.blg-num { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; color: #cfc7d1; background: rgba(255, 255, 255, .06); border: 2px solid rgba(255, 255, 255, .14); transition: all .3s ease; }
.blg-num i { font-style: normal; }
.blg-step.on .blg-num { color: #1a0d14; background: var(--p); border-color: var(--p); box-shadow: 0 0 0 5px rgba(var(--prgb), .18), 0 0 22px rgba(var(--prgb), .55); animation: blgRing 1.8s ease-out infinite; }
@keyframes blgRing { 0% { box-shadow: 0 0 0 0 rgba(var(--prgb), .5), 0 0 22px rgba(var(--prgb), .55); } 100% { box-shadow: 0 0 0 12px rgba(var(--prgb), 0), 0 0 22px rgba(var(--prgb), .55); } }
.blg-step.done .blg-num { color: #0c2416; background: #57f287; border-color: #57f287; }
.blg-step.done .blg-num i { font-size: 0; }
.blg-step.done .blg-num i::before { content: "\2713"; font-size: 1rem; }
.blg-body { flex: 1 1 auto; min-width: 0; padding-top: 5px; }
.blg-body strong { display: block; font-size: 1.02rem; color: #fff; }
.blg-body em { display: block; margin-top: 2px; font-style: normal; font-size: .86rem; color: #a59da7; }
.blg-btn { all: unset; box-sizing: border-box; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 13px 16px; border-radius: 13px; font-weight: 800; font-size: 1rem; cursor: pointer;
  color: #1a0d14; background: linear-gradient(135deg, #ffd1e8, var(--primary-orange, #ff69b4)); box-shadow: 0 10px 26px rgba(var(--primary-orange-rgb, 255, 105, 180), .35); transition: transform .15s ease, filter .15s ease; }
.blg-body .blg-btn { margin-top: 10px; }
.blg-btn:hover { transform: translateY(-1px); filter: brightness(1.07); }
.blg-btn:active { transform: translateY(1px); }
.blg-btn[disabled] { opacity: .55; pointer-events: none; }
.blg-btn.alt { color: #fff; background: rgba(255, 255, 255, .07); border: 1px solid rgba(var(--primary-orange-rgb, 255, 105, 180), .45); box-shadow: none; }
#blgGet::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: blgSheen 3.2s ease-in-out infinite; }
@keyframes blgSheen { 0%, 55% { left: -40%; } 100% { left: 130%; } }
.blg-row { display: flex; gap: 8px; margin-top: 10px; }
.blg-row .blg-btn { width: auto; flex: 0 0 auto; padding: 12px 18px; margin-top: 0; }
.blg-in { all: unset; box-sizing: border-box; flex: 1 1 auto; min-width: 0; width: 100%; padding: 12px 14px; border-radius: 13px; font-size: .88rem; text-align: left; color: #fff; cursor: text;
  background: rgba(0, 0, 0, .45); border: 1px dashed rgba(var(--primary-orange-rgb, 255, 105, 180), .4); font-family: ui-monospace, Menlo, Consolas, monospace; transition: border-color .2s, box-shadow .2s; }
.blg-in:focus { border-style: solid; border-color: var(--primary-orange, #ff69b4); box-shadow: 0 0 0 3px rgba(var(--primary-orange-rgb, 255, 105, 180), .2); }
.blg-in::placeholder { color: #5f5862; }
.blg-msg { min-height: 18px; margin: 8px 0 0; font-size: .86rem; color: #b9b2bb; }
.blg-msg.bad { color: #ff7b8a; } .blg-msg.good { color: #7dffb0; }
.blg-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .07); font-size: .8rem; color: #8d858f; text-align: center; }
.blg-link { all: unset; cursor: pointer; color: #b9b2bb; text-decoration: underline; font-size: .8rem; }
.blg-dev { display: grid; gap: 8px; margin-top: 10px; }
.blg-dev[hidden] { display: none; }
.blg-dev .blg-in { font-family: inherit; border-style: solid; border-color: rgba(255, 255, 255, .14); }
@media (max-width: 860px) {
  .blg-wrap { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 20px 14px 26px; max-width: 520px; align-content: start; }
  .blg-seal { width: min(170px, 44vw); margin-bottom: 2px; }
  .blg-lock { width: 34px; height: 34px; font-size: .8rem; right: 16%; bottom: 15%; }
  .blg-sub { margin-bottom: 12px; font-size: .9rem; }
}
@media (max-width: 480px) { .blg-card { padding: 18px 14px 14px; } .blg-row { flex-direction: column; } .blg-row .blg-btn { width: 100%; } }
@media (max-height: 700px) and (min-width: 861px) { .blg-seal { width: 210px; } }
@media (prefers-reduced-motion: reduce) { .blg-seal *, .blg-logo, .blg-clock > i, #blgGet::after, .blg-step.on .blg-num { animation: none !important; } .blg-door { transition-duration: .01s; } }

/* "key expires in" chip in the sidebar */
.bl-key-chip { box-sizing: border-box; display: flex; align-items: center; gap: 10px; margin: 2px 4px 6px; padding: 7px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(var(--primary-orange-rgb, 255, 105, 180), .22); color: #e9e2ea; cursor: default; }
.bl-key-chip[hidden] { display: none; }
.bl-key-chip > i { color: var(--primary-orange, #ff69b4); font-size: .9rem; }
.bl-key-chip span { display: grid; line-height: 1.15; }
.bl-key-chip small { font-size: .66rem; letter-spacing: .4px; text-transform: uppercase; color: #8d858f; }
.bl-key-chip b { font-size: .92rem; font-variant-numeric: tabular-nums; }
.bl-key-chip.soon { border-color: rgba(254, 231, 92, .6); } .bl-key-chip.soon b, .bl-key-chip.soon > i { color: #fee75c; }
.bl-side .bl-key-chip:not([hidden]) { margin-top: auto; }
.bl-side .bl-key-chip:not([hidden]) ~ .bl-petal-chip:not([hidden]), .bl-side .bl-key-chip:not([hidden]) ~ .bl-nav-account { margin-top: 0 !important; }
@media (max-width: 720px) { .bl-key-chip { display: none; } }
.bl-gate-dev .blgd-note { font-size: .82rem !important; color: #949ba4 !important; margin: 0 !important; }

/* dev panel section */
.bl-gate-dev .text-input { width: 100%; box-sizing: border-box; margin-bottom: 8px; }
.bl-gate-dev .blgd-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.bl-gate-dev label { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; color: #dbdee1; cursor: pointer; }
.bl-gate-dev .blgd-state { font-weight: 700; }
.bl-gate-dev .blgd-state.on { color: #57f287; } .bl-gate-dev .blgd-state.off { color: #949ba4; } .bl-gate-dev .blgd-state.warn { color: #fee75c; }
@media (max-width: 480px) { .blg-card { padding: 24px 18px 18px; } .blg-row { flex-direction: column; } .blg-row .blg-btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .blg-logo, .blg-card.shake { animation: none; } }
/* dev panel now has three sections: let it scroll instead of squashing them */
.bl-dev-box { overflow-y: auto !important; scrollbar-width: thin; }
.bl-dev-box > .bl-dev-head, .bl-dev-box > .bl-dev-sec:not(.bl-dev-users), .bl-dev-box > .bl-dev-msg { flex: 0 0 auto; }
.bl-dev-box > .bl-dev-users { flex: 1 0 auto; min-height: 240px; }
.bl-dev-box > .bl-dev-users .bl-dev-list { max-height: 320px; }
.bl-dev-box > .bl-dev-head { position: sticky; top: 0; z-index: 3; background: #1e1f22; }

/* tutorial */
.blg-help { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; font-size: .9rem; font-weight: 700;
  color: var(--primary-orange, #ff69b4); background: rgba(var(--primary-orange-rgb, 255, 105, 180), .09); border: 1px dashed rgba(var(--primary-orange-rgb, 255, 105, 180), .5); transition: background .15s ease; }
.blg-help:hover { background: rgba(var(--primary-orange-rgb, 255, 105, 180), .18); }
.blg-tut { position: fixed; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 14px; background: rgba(5, 4, 7, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: blgTutIn .25s ease; }
@keyframes blgTutIn { from { opacity: 0; } }
.blg-tut-box { width: min(920px, 100%); max-height: 100%; overflow: auto; border-radius: 18px; background: #151117; border: 1px solid rgba(var(--primary-orange-rgb, 255, 105, 180), .45); box-shadow: 0 30px 90px rgba(0, 0, 0, .7), 0 0 50px rgba(var(--primary-orange-rgb, 255, 105, 180), .18); color: #f4f1f5; text-align: left; }
.blg-tut-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-weight: 800; }
.blg-tut-head i { color: var(--primary-orange, #ff69b4); margin-right: 6px; }
.blg-tut-x { all: unset; cursor: pointer; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: #cfc7d1; }
.blg-tut-x:hover { background: rgba(255, 255, 255, .09); }
.blg-tut-x i { color: inherit; margin: 0; }
.blg-tut-vid { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0e0a0e; cursor: pointer; }
.blg-tut-cap { display: grid; gap: 2px; padding: 12px 16px 4px; }
.blg-tut-cap b { font-size: .72rem; letter-spacing: .6px; text-transform: uppercase; color: var(--primary-orange, #ff69b4); }
.blg-tut-cap strong { font-size: 1.12rem; }
.blg-tut-cap span { font-size: .9rem; color: #b9b2bb; }
.blg-tut-nav { display: flex; align-items: center; gap: 12px; padding: 12px 16px 16px; }
.blg-tut-nav .blg-btn { width: auto; padding: 10px 16px; font-size: .92rem; flex: 0 0 auto; }
.blg-dots { flex: 1 1 auto; display: flex; justify-content: center; gap: 7px; flex-wrap: wrap; }
.blg-dot { all: unset; cursor: pointer; width: 10px; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .16); transition: width .2s ease, background .2s ease; }
.blg-dot.done { background: rgba(var(--primary-orange-rgb, 255, 105, 180), .55); }
.blg-dot.on { width: 26px; background: var(--primary-orange, #ff69b4); }
@media (max-width: 520px) { .blg-tut-nav { gap: 8px; } .blg-tut-nav .blg-btn { padding: 9px 11px; font-size: .84rem; } .blg-dot { width: 7px; height: 7px; } .blg-dot.on { width: 16px; } }

.blg-tut-tools { display: inline-flex; gap: 4px; }
.blg-tut-x.off { opacity: .55; }

/* v1.16 key screen warning + tutorial description */
.blg-warn { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 10px 12px; border-radius: 12px; font-size: .84rem; line-height: 1.4; color: #f5e3b3;
  background: rgba(250, 204, 21, .09); border: 1px solid rgba(250, 204, 21, .45); }
.blg-warn > i { color: #facc15; margin-top: 2px; animation: blgWarn 2.4s ease-in-out infinite; }
.blg-warn b { color: #fde68a; }
@keyframes blgWarn { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22); } }
.blg-help { justify-content: flex-start; gap: 12px; text-align: left; padding: 11px 14px; }
.blg-help > i { font-size: 1.5rem; }
.blg-help span { display: block; }
.blg-help b { display: block; font-weight: 700; }
.blg-help small { display: block; margin-top: 3px; font-size: .78rem; font-weight: 500; color: #cdbfc6; }
@media (prefers-reduced-motion: reduce) { .blg-warn > i { animation: none; } }
