/* bento-tools.css: the tool pages' own bento tiles, in the homepage bento's look (bento.css). 14 Nov 2026.
   Link in Bio: themes (wide) · live now · stats · brand deals · one link · blocks (wide)
   Overlay Studio: both shapes (wide) · countdown · live link · socials · character · transition with sound (wide) */

/* --- grid placement ----------------------------------------------------------------------------------------------- */
.wb--tool .wb__tile--blocks, .wb--tool .wb__tile--shapes, .wb--tool .wb__tile--trans { grid-column: span 2; }
.wb--tool .wb__tile--trans { grid-column: span 3; }
.wb--tool .wb__tile--blocks { grid-column: span 3; }
.wb--tool .wb__tile--trans, .wb--tool .wb__tile--blocks { min-height: 300px; }
.wb--tool .wb__grid { grid-auto-rows: minmax(300px, auto); }
.wb--tool .wb__tile:not(.wb__tile--trans):not(.wb__tile--blocks) { min-height: 420px; }

/* --- Link in Bio · blocks: chips pop in one after another, an "Add a block" button breathes --------------------- */
.lb-blocks { position: absolute; inset: 0 28px 28px; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 10px; }
.lb-chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px; border-radius: 14px; background: #fff; box-shadow: 0 10px 24px -16px rgba(17, 17, 16, 0.35), inset 0 0 0 1px #F0EBE3; font-size: 14px; font-weight: 600; color: var(--ink); opacity: 0; transform: translateY(10px) scale(0.92); }
.lb-chip svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wb__tile.is-in .lb-chip { animation: lb-pop 0.5s var(--ease-out) forwards; animation-delay: calc(var(--i) * 70ms + 0.2s); }
@keyframes lb-pop { to { opacity: 1; transform: none; } }
.lb-chip.is-hot { box-shadow: 0 0 0 2px var(--accent), 0 14px 28px -14px rgba(255, 77, 31, 0.5); }
.lb-add { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 8px; border-radius: 14px; border: 1.5px dashed rgba(17, 17, 16, 0.25); font-size: 14px; font-weight: 600; color: var(--muted); }
.lb-add b { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 18px; line-height: 1; }

/* --- Overlay Studio · both shapes ---------------------------------------------------------------------------------- */
.ob-shapes { position: absolute; inset: 8px 28px 28px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.ob-wide, .ob-tall { position: relative; display: block; overflow: hidden; background: #1C1B19; box-shadow: 0 30px 60px -30px rgba(60, 20, 120, 0.55); }
.ob-wide { width: 68%; aspect-ratio: 16 / 9; border-radius: 14px; }
.ob-tall { height: 100%; max-height: 300px; aspect-ratio: 9 / 16; border-radius: 18px; border: 5px solid #111110; }
.ob-wide video, .ob-tall video { display: block; width: 100%; height: 100%; object-fit: cover; }
.ob-shapes em { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); color: #fff; font: 600 11px var(--sans); }

/* --- countdown ----------------------------------------------------------------------------------------------------- */
.ob-count { position: absolute; left: 28px; right: 28px; top: 50%; transform: translateY(-55%); display: grid; justify-items: center; gap: 12px; padding: 24px; border-radius: 18px; background: linear-gradient(160deg, #2A0F3C, #5B1D4B 60%, #A8324A); color: #fff; box-shadow: 0 30px 60px -30px rgba(91, 29, 75, 0.6); }
.ob-count__k { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.ob-count > b { font-size: 56px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; font-weight: 700; }
.ob-count__bar { width: 100%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.ob-count__bar i { display: block; height: 100%; width: var(--p, 100%); border-radius: inherit; background: #FFB547; transition: width 1s linear; }
.ob-count__pick { display: flex; align-items: center; gap: 6px; }
.ob-count__pick i { min-width: 28px; height: 24px; padding: 0 6px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.12); font: 600 12px var(--sans); }
.ob-count__pick i.is-on { background: #fff; color: #5B1D4B; }
.ob-count__pick em { font: 500 12px var(--sans); color: rgba(255, 255, 255, 0.7); }

/* --- live link: a browser-source card, the URL types in, "Updated on stream" pulses after a publish --------------- */
.ob-src { position: absolute; left: 24px; right: 24px; top: 50%; transform: translateY(-55%); display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 30px 60px -36px rgba(17, 17, 16, 0.45), inset 0 0 0 1px #F0EBE3; }
.ob-src__h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.ob-src__h i { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, #6FD3FF, #2A7BF4); }
.ob-src__f { display: grid; gap: 4px; padding: 8px 10px; border-radius: 10px; background: #F7F4EF; box-shadow: inset 0 0 0 1px #ECE7DF; }
.ob-src__f span { font-size: 11px; color: #8A857C; } .ob-src__f b { font: 600 13px var(--sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-src__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ob-src__ok { justify-self: start; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: #E6F6EC; color: #1E8A4C; font-size: 12px; font-weight: 600; opacity: 0; transform: translateY(4px); transition: opacity 0.35s, transform 0.35s var(--ease-out); }
.ob-src__ok i { width: 8px; height: 8px; border-radius: 999px; background: #2BBF6A; box-shadow: 0 0 0 4px rgba(43, 191, 106, 0.2); }
.ob-src__ok.is-on { opacity: 1; transform: none; }

/* --- socials: the overlay's social bar, pills slide in; it flips between real and template colours ---------------- */
.ob-soc { position: absolute; left: 24px; right: 24px; top: 50%; transform: translateY(-55%); display: grid; justify-items: center; gap: 10px; padding: 24px 16px; border-radius: 18px; background: linear-gradient(180deg, #2A0F3C, #3E1650); box-shadow: 0 30px 60px -30px rgba(42, 15, 60, 0.6); }
.ob-soc__pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 13px; font-weight: 600; opacity: 0; transform: translateX(-16px); transition: background 0.5s; }
.wb__tile.is-in .ob-soc__pill { animation: ob-in 0.5s var(--ease-out) forwards; animation-delay: calc(var(--i) * 0.12s + 0.2s); }
@keyframes ob-in { to { opacity: 1; transform: none; } }
.ob-soc__pill i { width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; background: var(--bg); color: var(--fg); transition: background 0.5s, color 0.5s; }
.ob-soc__pill svg { width: 13px; height: 13px; fill: currentColor; }
.ob-soc.is-tpl .ob-soc__pill i { background: #FF8A6B; color: #2A0F3C; }
.ob-soc__mode { display: flex; gap: 4px; margin-top: 6px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
.ob-soc__mode i { padding: 4px 10px; border-radius: 999px; font: 600 11px var(--sans); color: rgba(255, 255, 255, 0.7); transition: background 0.3s, color 0.3s; }
.ob-soc__mode i.is-on { background: #fff; color: #2A0F3C; }

/* --- character: a frame that swaps pictures ------------------------------------------------------------------------ */
.ob-char { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 16px; }
.ob-char__frame { position: relative; width: 168px; height: 168px; border-radius: 28px; background: linear-gradient(135deg, #FFD3C2, #FFB547); box-shadow: 0 30px 60px -30px rgba(255, 120, 60, 0.55), 0 0 0 6px #fff; overflow: hidden; }
.ob-char__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 0.5s, transform 0.7s var(--ease-out); }
.ob-char__frame img.is-on { opacity: 1; transform: none; }
.ob-char__btn { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; background: #fff; box-shadow: 0 10px 24px -16px rgba(17, 17, 16, 0.4), inset 0 0 0 1px #ECE7DF; font-size: 13px; font-weight: 600; transition: transform 0.2s; }
.ob-char__btn.is-tap { transform: scale(0.94); }

/* --- transition with sound: a stinger wipes BRB into In-game while an equaliser plays ------------------------------ */
.ob-trans { position: absolute; inset: 0 28px 24px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; gap: 16px; align-items: center; }
.ob-trans__scene { position: relative; grid-row: 1; grid-column: 1 / -1; height: 120px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #2A0F3C, #A8324A); color: #fff; font: 700 28px var(--sans); letter-spacing: -0.02em; }
.ob-trans__scene--b { background: linear-gradient(135deg, #10203A, #2A7BF4); clip-path: inset(0 100% 0 0); }
.wb__tile.is-in .ob-trans__scene--b { animation: ob-wipe 4s var(--ease-out) infinite; }
@keyframes ob-wipe { 0%, 30% { clip-path: inset(0 100% 0 0); } 55%, 85% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 100%); } }
.ob-trans__wipe { grid-row: 1; grid-column: 1 / -1; position: relative; z-index: 2; height: 120px; pointer-events: none; overflow: hidden; border-radius: 14px; }
.ob-trans__wipe i { position: absolute; top: -10%; bottom: -10%; width: 22%; left: -30%; background: #FF8A6B; transform: skewX(-18deg); }
.ob-trans__wipe i:nth-child(2) { background: #FFB547; width: 14%; } .ob-trans__wipe i:nth-child(3) { background: #fff; width: 8%; }
.wb__tile.is-in .ob-trans__wipe i { animation: ob-sweep 4s var(--ease-out) infinite; }
.wb__tile.is-in .ob-trans__wipe i:nth-child(2) { animation-delay: 0.06s; } .wb__tile.is-in .ob-trans__wipe i:nth-child(3) { animation-delay: 0.12s; }
@keyframes ob-sweep { 0%, 28% { left: -30%; } 58%, 100% { left: 130%; } }
.ob-eq { grid-row: 2; grid-column: 1; display: flex; align-items: flex-end; gap: 4px; height: 36px; }
.ob-eq i { flex: 1; height: 30%; border-radius: 3px; background: var(--accent); opacity: 0.8; }
.wb__tile.is-in .ob-eq i { animation: ob-eq 0.9s ease-in-out infinite alternate; animation-delay: var(--d); }
@keyframes ob-eq { to { height: 100%; } }
.ob-trans__snd { grid-row: 2; grid-column: 2; justify-self: end; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 6px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px #ECE7DF; font-size: 13px; font-weight: 600; }
.ob-trans__snd b { width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 12px; }

/* --- sizes --------------------------------------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .wb--tool .wb__grid { grid-template-columns: 1fr 1fr; }
  .wb--tool .wb__tile--shapes, .wb--tool .wb__tile--trans, .wb--tool .wb__tile--blocks, .wb--tool .wb__tile--page { grid-column: span 2; order: 0; }
  .wb--tool .wb__tile--link { grid-column: auto; order: 0; }
  .wb--tool .wb__tile { order: 0; }
}
@media (max-width: 700px) {
  .wb--tool .wb__grid { grid-template-columns: 1fr; }
  .wb--tool .wb__tile--shapes, .wb--tool .wb__tile--trans, .wb--tool .wb__tile--blocks, .wb--tool .wb__tile--page { grid-column: auto; }
  .wb--tool .wb__tile:not(.wb__tile--trans):not(.wb__tile--blocks) { min-height: 380px; }
  .ob-shapes { inset: 8px 16px 20px; } .ob-tall { max-height: 220px; }
  .lb-blocks { inset: 0 16px 20px; gap: 8px; } .lb-chip, .lb-add { height: 38px; font-size: 13px; }
  .ob-trans__scene, .ob-trans__wipe { height: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .lb-chip, .ob-soc__pill { opacity: 1; transform: none; animation: none !important; }
  .ob-trans__scene--b, .ob-trans__wipe i, .ob-eq i { animation: none !important; }
}

/* all 34 blocks (owner, 14 Nov 2026: "could you show all the blocks which we have"): smaller chips, the tile grows to fit;
   they pop in a little faster so the whole set lands in about 2.5 s */
.wb--tool .wb__tile--blocks .wb__art { position: static; padding: 16px 28px 32px; }
.lb-blocks { position: relative; inset: auto; gap: 8px; }
.lb-chip, .lb-add { height: 38px; padding: 0 14px 0 10px; border-radius: 12px; font-size: 13px; gap: 7px; }
.lb-chip svg { width: 16px; height: 16px; }
.lb-add b { width: 24px; height: 24px; border-radius: 8px; font-size: 16px; }
.wb__tile.is-in .lb-chip { animation-delay: calc(var(--i) * 40ms + 0.15s); }
@media (max-width: 700px) { .wb--tool .wb__tile--blocks .wb__art { padding: 12px 16px 24px; } .lb-chip, .lb-add { height: 34px; font-size: 12px; padding: 0 10px 0 8px; } }

/* transition sound: play / mute + volume (owner, 14 Nov 2026: "add sound button to hear and mute, with vol adjustment").
   The sounds are the studio's own (tools/sfx.js, made in code, no samples); off until the visitor turns it on */
.ob-snd { grid-row: 2; grid-column: 2; justify-self: end; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px 0 4px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px #ECE7DF; }
.ob-snd__btn { width: 32px; height: 32px; border: 0; border-radius: 999px; display: grid; place-items: center; background: #F4F0EA; color: var(--ink); cursor: pointer; transition: background 0.2s, color 0.2s; }
.ob-snd__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ob-snd__btn .ob-snd__on { display: none; }
.ob-snd__btn[aria-pressed="true"] { background: var(--accent); color: #fff; }
.ob-snd__btn[aria-pressed="true"] .ob-snd__on { display: block; } .ob-snd__btn[aria-pressed="true"] .ob-snd__off { display: none; }
.ob-snd__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ob-snd__name { font-size: 13px; font-weight: 600; white-space: nowrap; }
.ob-snd__vol { width: 96px; height: 4px; accent-color: var(--accent); cursor: pointer; }
.ob-snd__vol:disabled { opacity: 0.4; cursor: default; }
.ob-trans__snd { display: none; }
@media (max-width: 700px) { .ob-snd__vol { width: 72px; } .ob-trans { grid-template-columns: 1fr; } .ob-snd { grid-row: 3; grid-column: 1; justify-self: start; } .ob-eq { grid-column: 1; } }

/* phones: the transition tile has room for its sound control */
@media (max-width: 700px) { .wb--tool .wb__tile--trans { min-height: 380px; } .ob-trans { inset: 0 16px 20px; gap: 12px; } }
