/* Blossom Hub v1.11 - glass level, extra backgrounds, extra cursors, settings fixes */
:root { --bl-blur: 4px; --bl-panel-a: .46; --bl-card-a: .62; --bl-side-a: .78; }

/* ---- glass level (Settings > Background > Menu transparency) ---- */
#main-container > section { -webkit-backdrop-filter: blur(var(--bl-blur)) !important; backdrop-filter: blur(var(--bl-blur)) !important; }
#all-lessons { background: rgba(16, 16, 18, calc(var(--bl-panel-a) * .8)) !important; }
#settings-section .setting-item, #account-section .setting-item, #account-section .modal-content, .bl-home-search, .bl-tile, .bl-online-pill {
  background: rgba(17, 17, 20, var(--bl-panel-a)) !important; -webkit-backdrop-filter: blur(var(--bl-blur)) saturate(1.15) !important; backdrop-filter: blur(var(--bl-blur)) saturate(1.15) !important; }
.lesson-card { background: rgba(15, 15, 18, var(--bl-card-a)) !important; }
.bl-side { background: rgba(13, 13, 13, var(--bl-side-a)) !important; -webkit-backdrop-filter: blur(calc(var(--bl-blur) + 2px)); backdrop-filter: blur(calc(var(--bl-blur) + 2px)); }
body[data-glass="0"] #main-container > section, body[data-glass="0"] .bl-side, body[data-glass="0"] .setting-item { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

.bl-glass { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.bl-glass-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; color: #f1f1f1; }
.bl-glass-head b { min-width: 34px; text-align: center; padding: 3px 10px; border-radius: 999px; background: var(--primary-orange); color: #14060d; font-weight: 800; font-variant-numeric: tabular-nums; }
.bl-glass p { margin: 4px 0 10px; font-size: .88rem; opacity: .75; }
.bl-glass-row { display: flex; align-items: center; gap: 12px; font-size: .8rem; color: #a9a9b4; }
.bl-glass-row input { flex: 1; height: 28px; accent-color: var(--primary-orange); cursor: pointer; }

/* ---- settings layout fix: Sweep Sound takes the old "Disable Ads" slot ---- */
#settings-section .setting-item.bl-hidden-setting { display: none !important; }
#settings-section .background-options { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* ---- extra backgrounds ---- */
#blBgX { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: none; }
body.bl-bgx #blBgX { display: block; }
body.bl-bgx #matrix-bg, body.bl-bgx #starfield-layer, body.bl-bgx #paths-layer, body.bl-bgx #blEmbers { display: none !important; }

/* ---- extra cursors ---- */
body[data-cursor-style="arrow"] #bl-cursor, body[data-cursor-style="petal"] #bl-cursor, body[data-cursor-style="heart"] #bl-cursor, body[data-cursor-style="star"] #bl-cursor, body[data-cursor-style="diamond"] #bl-cursor, body[data-cursor-style="shuriken"] #bl-cursor {
  width: 26px; height: 26px; border: 0 !important; border-radius: 0; background: none !important; box-shadow: none !important; filter: drop-shadow(0 0 1px rgba(0, 0, 0, .95)) drop-shadow(0 0 6px rgba(var(--primary-orange-rgb), .75)); }
body[data-cursor-style="arrow"] #bl-cursor::before, body[data-cursor-style="petal"] #bl-cursor::before, body[data-cursor-style="heart"] #bl-cursor::before, body[data-cursor-style="star"] #bl-cursor::before, body[data-cursor-style="diamond"] #bl-cursor::before, body[data-cursor-style="shuriken"] #bl-cursor::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, #fff 0%, var(--primary-orange) 55%); transition: transform .15s; }
body[data-cursor-style="arrow"] #bl-cursor::before { clip-path: polygon(0 0, 0 78%, 22% 60%, 38% 96%, 52% 90%, 37% 55%, 66% 55%); transform: translate(50%, 50%); }
body[data-cursor-style="arrow"] #bl-cursor.hover::before { transform: translate(50%, 50%) scale(1.15); transform-origin: 0 0; }
body[data-cursor-style="petal"] #bl-cursor::before { border-radius: 85% 0 85% 0; transform: rotate(8deg) scale(.82); background: linear-gradient(135deg, #fff 0%, #ffc1dc 30%, var(--primary-orange) 80%); }
body[data-cursor-style="petal"] #bl-cursor.hover::before { transform: rotate(50deg) scale(1); }
body[data-cursor-style="heart"] #bl-cursor::before { clip-path: polygon(50% 96%, 6% 50%, 0 30%, 6% 12%, 22% 3%, 38% 6%, 50% 20%, 62% 6%, 78% 3%, 94% 12%, 100% 30%, 94% 50%); }
body[data-cursor-style="star"] #bl-cursor::before { clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 60%, 80% 98%, 50% 76%, 20% 98%, 30% 60%, 0 38%, 38% 35%); }
body[data-cursor-style="diamond"] #bl-cursor::before { clip-path: polygon(50% 0, 88% 50%, 50% 100%, 12% 50%); }
body[data-cursor-style="shuriken"] #bl-cursor::before { clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); background: linear-gradient(135deg, #fff, #9aa3b5 60%, var(--primary-orange)); animation: blShur 1.4s linear infinite; }
body[data-cursor-style="shuriken"] #bl-cursor.hover::before { animation-duration: .35s; }
@keyframes blShur { to { transform: rotate(360deg); } }
body[data-cursor-style="heart"] #bl-cursor.hover::before, body[data-cursor-style="star"] #bl-cursor.hover::before, body[data-cursor-style="diamond"] #bl-cursor.hover::before { transform: scale(1.25); }
body[data-cursor-style="glow"] #bl-cursor { width: 34px; height: 34px; border: 0 !important; background: radial-gradient(circle, #fff 0 9%, rgba(var(--primary-orange-rgb), .9) 16%, rgba(var(--primary-orange-rgb), .28) 42%, transparent 70%) !important; box-shadow: none !important; }
body[data-cursor-style="glow"] #bl-cursor.hover { width: 46px; height: 46px; }
@media (prefers-reduced-motion: reduce) { body[data-cursor-style="shuriken"] #bl-cursor::before { animation: none; } }

/* page wrappers without a panel look must not blur (it left a visible seam); their cards blur on their own */
#main-container > #home-section, #main-container > #settings-section, #main-container > #account-section { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
/* two-column settings layout: Cursor and Sweep Sound sit side by side */
@media (min-width: 769px) and (max-width: 1100px) {
  #settings-section .modal-body .setting-cursor { grid-column: 1 / 2 !important; }
  #settings-section .modal-body .setting-sweep-sound { grid-column: 2 / 3 !important; }
}
/* performance mode: full-width row, sits below the two-column block */
#settings-section .modal-body .setting-perf { grid-column: 1 / -1 !important; grid-row: 5; min-height: 150px; }
@media (max-width: 768px) {
  #settings-section .modal-body .setting-perf { grid-row: auto !important; }
}
