/* =====================================================================
   Bio Link do Igor — página pública
   Mesmo design system do app "Mundo do Igor": Fredoka, céu claro,
   cartões brancos arredondados e botões com profundidade.
   As cores da marca continuam vindo do admin (--bio-*).
   ===================================================================== */

:root {
    --bio-primary: #063F9C;
    --bio-secondary: #021A4A;
    --bio-accent: #FFD22E;
    --bio-card: #FFFFFF;
    --bio-text: #061D4A;
    --bio-button: #0969D8;

    --ds-ink: var(--bio-text);
    --ds-muted: #6b7a99;
    --ds-bg: #f3f6fc;
    --ds-sky: #e9f0ff;
    --ds-line: #e3e9f5;
    --ds-yellow: var(--bio-accent);
    --ds-yellow-deep: #e9a600;
    --ds-yellow-soft: #fff4cf;
    --ds-r-xl: 32px;
    --ds-r-lg: 24px;
    --ds-r-md: 18px;
    --ds-shadow-md: 0 2px 4px rgba(30, 64, 160, .04), 0 8px 20px rgba(30, 64, 160, .06);
    --ds-shadow-lg: 0 4px 10px rgba(30, 64, 160, .06), 0 16px 32px rgba(30, 64, 160, .09);
    --ds-ring: 0 0 0 4px rgba(43, 95, 224, .28);
    --ds-ease: cubic-bezier(.22, 1, .36, 1);
    --ds-spring: cubic-bezier(.34, 1.56, .64, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    margin: 0;
}

.bio-page {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--ds-ink);
    font-family: "Fredoka", "Segoe UI", Arial, sans-serif;
    font-weight: 500;
    background: var(--ds-bg);
    -webkit-tap-highlight-color: transparent;
}

.bio-page h1,
.bio-page h2,
.bio-page p {
    margin: 0;
}

.bio-page a {
    color: inherit;
    text-decoration: none;
}

.bio-page :focus-visible {
    outline: none;
    box-shadow: var(--ds-ring);
}

.no-copy,
.no-copy * {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.no-copy img {
    pointer-events: none;
}

.bio-screen {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(100%, 560px);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.bio-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    justify-items: center;
    margin: 0 -16px;
    padding: 28px 24px 58px;
    border-radius: 0 0 var(--ds-r-xl) var(--ds-r-xl);
    color: #fff;
    text-align: center;
    background:
        radial-gradient(circle at 50% 30%, rgba(90, 170, 255, .55), transparent 55%),
        linear-gradient(170deg, var(--bio-button) 0%, var(--bio-primary) 52%, var(--bio-secondary) 100%);
    box-shadow: none;
}

.bio-hero-sky {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.cloud {
    position: absolute;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
}

.cloud::before,
.cloud::after {
    content: "";
    position: absolute;
    bottom: 10px;
    border-radius: 50%;
    background: inherit;
}

.cloud::before { left: 18%; width: 46px; height: 46px; }
.cloud::after { left: 46%; width: 34px; height: 34px; }

.cloud-a {
    top: 44px;
    left: -30px;
    width: 140px;
    animation: cloud-drift 18s ease-in-out infinite alternate;
}

.cloud-b {
    top: 150px;
    right: -40px;
    width: 120px;
    animation: cloud-drift 22s ease-in-out infinite alternate-reverse;
}

.star {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--bio-accent);
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    animation: twinkle 2.6s ease-in-out infinite;
}

.star-a { top: 26px; left: 18%; }
.star-b { top: 72px; right: 14%; width: 9px; height: 9px; animation-delay: .7s; background: #fff; }
.star-c { top: 210px; left: 9%; width: 8px; height: 8px; animation-delay: 1.3s; }
.star-d { top: 240px; right: 8%; animation-delay: 1.9s; }

.bio-share {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(6px);
    font-size: 1.05rem;
    cursor: pointer;
    transition: transform .2s var(--ds-spring), background .2s ease;
}

.bio-share:hover {
    background: rgba(255, 255, 255, .24);
}

.bio-share:active {
    transform: scale(.92);
}

.bio-hero-logo {
    position: relative;
    width: min(62vw, 230px);
    aspect-ratio: 1;
    margin-bottom: 14px;
}

.bio-hero-logo::before {
    content: "";
    position: absolute;
    inset: 8%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 214, 70, .4), rgba(255, 214, 70, 0));
}

.bio-hero-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border: 9px solid var(--bio-accent);
    border-radius: 50%;
    font-size: 3rem;
    font-weight: 700;
}

.bio-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px !important;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: .01em;
}

.bio-eyebrow strong {
    color: var(--bio-accent);
    font-weight: 700;
}

.bio-title {
    max-width: 22ch;
    font-size: clamp(1.6rem, 7vw, 2.1rem);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -.01em;
    text-wrap: balance;
    text-shadow: none;
}

/* ---------------------------------------------------------------------
   Saudação do Igor (sobrepõe o fim do hero)
   --------------------------------------------------------------------- */
.bio-greeting {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin: -34px 4px 0;
    padding: 12px 16px 12px 12px;
    border: 1px solid rgba(227, 233, 245, .9);
    border-radius: var(--ds-r-lg);
    background: #fff;
    box-shadow: var(--ds-shadow-md);
    animation: rise .6s .15s var(--ds-ease) both;
}

.bio-greeting-face {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--ds-sky);
    box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--ds-line);
}

.bio-greeting strong,
.bio-greeting span {
    display: block;
}

.bio-greeting strong {
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.2;
}

.bio-greeting span {
    color: var(--ds-muted);
    font-size: .92rem;
    font-weight: 500;
}

/* ---------------------------------------------------------------------
   Atalhos
   --------------------------------------------------------------------- */
.bio-chips {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    gap: 8px;
    margin: 0 -16px;
    padding: 14px 16px 10px;
    overflow-x: auto;
    scrollbar-width: none;
    background: linear-gradient(180deg, var(--ds-bg) 75%, rgba(243, 246, 252, 0));
}

.bio-chips::-webkit-scrollbar {
    display: none;
}

.bio-chip {
    flex: 1 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--ds-line);
    border-radius: 999px;
    background: #fff;
    color: var(--ds-ink);
    font-size: .98rem;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(30, 64, 160, .06);
    transition: transform .18s var(--ds-spring), box-shadow .18s ease;
}

.bio-chip i {
    color: var(--bio-button);
    font-size: 1.05rem;
}

.bio-chip--audio i { color: #1674f5; }
.bio-chip--video i { color: #7e35ea; }
.bio-chip--game i { color: #ff7a1a; }
.bio-chip--pdf i { color: #ef4775; }

.bio-chip:hover {
    border-color: #cfdaf3;
}

.bio-chip:active {
    transform: scale(.97);
    box-shadow: none;
}

/* ---------------------------------------------------------------------
   Seções
   --------------------------------------------------------------------- */
.bio-section {
    margin-top: 18px;
}

.bio-section-head {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin: 0 4px 12px;
}

.bio-section-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--bio-button);
    background: var(--ds-sky);
    font-size: 1.25rem;
}

.bio-section--video .bio-section-icon { color: #7e35ea; background: #f1e9ff; }
.bio-section--game .bio-section-icon { color: #ff7a1a; background: #ffedd5; }
.bio-section--pdf .bio-section-icon { color: #ef4775; background: #ffe4ec; }

.bio-section-head h2 {
    font-size: 1.3rem;
    line-height: 1.15;
    font-weight: 700;
}

.bio-section-head p {
    color: var(--ds-muted);
    font-size: .9rem;
    font-weight: 500;
}

.bio-list {
    display: grid;
    gap: 16px;
}

.bio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
}

.bio-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

/* ---------------------------------------------------------------------
   Botões das atividades — grandes, coloridos e "apertáveis"
   --------------------------------------------------------------------- */
.bio-card {
    --card-color: var(--bio-button);
    --card-deep: color-mix(in srgb, var(--card-color) 72%, #000);
    --card-ink: #fff;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: var(--ds-r-lg);
    color: var(--card-ink);
    background: var(--card-color);
    font: inherit;
    text-align: left;
    box-shadow: 0 6px 0 var(--card-deep);
    cursor: pointer;
    touch-action: manipulation;
    transition: transform .16s var(--ds-spring), box-shadow .16s ease, filter .16s ease;
    animation: rise .55s var(--ds-ease) both;
    animation-delay: calc(var(--i, 0) * 40ms + 120ms);
}

.bio-card.is-light {
    --card-ink: #14254a;
    --card-deep: color-mix(in srgb, var(--card-color) 70%, #5a3a00);
}

.bio-card-bubbles {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 92% 18%, rgba(255, 255, 255, .22) 0 34px, transparent 35px),
        radial-gradient(circle at 78% 92%, rgba(255, 255, 255, .14) 0 22px, transparent 23px),
        radial-gradient(circle at 99% 70%, rgba(255, 255, 255, .12) 0 14px, transparent 15px),
        linear-gradient(180deg, rgba(255, 255, 255, .16), transparent 60%);
    pointer-events: none;
}

a.bio-card:hover,
button.bio-card:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 0 var(--card-deep);
}

a.bio-card:active,
button.bio-card:active,
.bio-card.is-pressed {
    transform: translateY(5px) scale(.99);
    box-shadow: 0 1px 0 var(--card-deep);
}

.bio-card--row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    padding: 14px 14px 14px 14px;
}

.bio-card-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    color: var(--card-color);
    background: #fff;
    box-shadow: 0 3px 0 rgba(0, 0, 0, .12);
    font-size: 32px;
    line-height: 1;
}

.bio-card-text {
    display: grid;
    justify-items: start;
    gap: 4px;
    min-width: 0;
}

.bio-card-title {
    font-size: 1.15rem;
    line-height: 1.15;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.bio-card-sub {
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.15;
    opacity: .9;
}

.bio-card-verb,
.bio-card-soon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    padding: 3px 10px 3px 8px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.3;
}

.bio-card-verb {
    background: rgba(255, 255, 255, .24);
}

.bio-card.is-light .bio-card-verb {
    background: rgba(255, 255, 255, .5);
}

.bio-card-action {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--card-color);
    background: #fff;
    box-shadow: 0 3px 0 rgba(0, 0, 0, .12);
    font-size: 1.7rem;
    transition: transform .2s var(--ds-spring);
}

.bio-card-action .bi-play-fill {
    margin-left: 3px;
}

.bio-card:hover .bio-card-action {
    transform: scale(1.1);
}

/* Ainda sem conteúdo: calmo, sem cor forte, não "convida" a tocar */
.bio-card.is-pending {
    --card-ink: #5b6888;
    cursor: default;
    background: #fff;
    border: 2px dashed #d6dfef;
    box-shadow: none;
}

.bio-card.is-pending .bio-card-bubbles {
    display: none;
}

.bio-card.is-pending .bio-card-icon {
    color: color-mix(in srgb, var(--card-color) 60%, #fff);
    background: color-mix(in srgb, var(--card-color) 12%, #fff);
    box-shadow: none;
}

.bio-card-soon {
    color: #8a6300;
    background: var(--ds-yellow-soft);
}

/* Jogos em blocos */
.bio-card--tile {
    display: grid;
    grid-template-rows: auto 1fr;
    justify-items: center;
    gap: 10px;
    min-height: 176px;
    padding: 18px 12px 16px;
    text-align: center;
}

.bio-card--tile .bio-card-text {
    justify-items: center;
}

.bio-card--tile .bio-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    font-size: 36px;
}

.bio-card--tile .bio-card-sub {
    font-size: .8rem;
}

.bio-card--tile .bio-card-action {
    display: none;
}

.bio-grid > .bio-card--tile:last-child:nth-child(odd) {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-rows: none;
    justify-items: start;
    min-height: 0;
    text-align: left;
}

.bio-grid > .bio-card--tile:last-child:nth-child(odd) .bio-card-text {
    justify-items: start;
}

.bio-grid > .bio-card--tile:last-child:nth-child(odd) .bio-card-icon {
    width: 64px;
    height: 64px;
    font-size: 32px;
}

@supports not (color: color-mix(in srgb, red, blue)) {
    .bio-card,
    .bio-card.is-light {
        --card-deep: rgba(0, 0, 0, .22);
    }
}

/* ---------------------------------------------------------------------
   Rodapé
   --------------------------------------------------------------------- */
.social-footer {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 12px;
    margin: 64px -16px 0;
    margin-top: auto;
    padding: 30px 20px calc(22px + env(safe-area-inset-bottom));
    border-radius: var(--ds-r-xl) var(--ds-r-xl) 0 0;
    color: #fff;
    text-align: center;
    background: linear-gradient(170deg, var(--bio-primary), var(--bio-secondary));
}

.bio-section:last-of-type {
    margin-bottom: 96px;
}

.footer-igor {
    position: absolute;
    top: -86px;
    left: 18px;
    width: auto;
    height: 112px;
    animation: igor-hop 3.4s ease-in-out infinite;
}

.social-footer p {
    font-size: 1.02rem;
    font-weight: 600;
}

.social-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.social-list a {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--bio-primary);
    background: #fff;
    font-size: 1.3rem;
    box-shadow: none;
    transition: transform .2s var(--ds-spring);
}

.social-list a:hover {
    transform: translateY(-3px);
}

.secure-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--bio-accent);
    background: rgba(255, 255, 255, .1);
    font-weight: 600;
}

.secure-link i {
    font-size: .85rem;
}

.footer-copy {
    color: rgba(255, 255, 255, .55);
    font-size: .8rem;
}

/* ---------------------------------------------------------------------
   Aviso (compartilhar)
   --------------------------------------------------------------------- */
.bio-toast {
    position: fixed;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom));
    z-index: 60;
    padding: 12px 20px;
    border-radius: 999px;
    color: #fff;
    background: var(--ds-ink);
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(20, 37, 74, .2);
    opacity: 0;
    transform: translate(-50%, 16px);
    pointer-events: none;
    transition: opacity .25s ease, transform .3s var(--ds-spring);
}

.bio-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

@keyframes logo-float {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes cloud-drift {
    from { transform: translateX(0); }
    to { transform: translateX(40px); }
}

@keyframes twinkle {
    0%, 100% { opacity: .35; transform: scale(.8); }
    50% { opacity: 1; transform: scale(1.15); }
}

@keyframes igor-hop {
    0%, 70%, 100% { transform: translateY(0); }
    80% { transform: translateY(-12px); }
    90% { transform: translateY(0) scale(1.02, .97); }
}

@media (min-width: 600px) {
    .bio-screen {
        padding: 0 20px;
    }

    .bio-hero {
        margin: 20px 0 0;
        padding: 36px 32px 64px;
        border-radius: var(--ds-r-xl);
    }

    .bio-chips {
        margin: 0;
        padding-inline: 0;
    }

    .bio-greeting {
        margin-inline: 24px;
    }

    .social-footer {
        margin-inline: 0;
    }
}
.igor-float {
    --igor-audio-level: 0;
    position: fixed;
    z-index: 32;
    right: 8px;
    bottom: calc(12px + var(--igor-lift, 0px));
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 132px;
    pointer-events: none;
    animation: igor-enter .85s cubic-bezier(.16, .84, .32, 1) both;
}

.igor-float button,
.igor-float-bubble {
    pointer-events: auto;
}

.igor-float-bubble {
    position: relative;
    z-index: 4;
    display: grid;
    justify-items: center;
    gap: 3px;
    width: 100%;
    padding: 11px 12px 13px;
    border: 2px solid #ffe56a;
    border-radius: 22px;
    text-align: center;
    background: linear-gradient(180deg, #fffefb 0%, #fff4c4 100%);
    box-shadow: var(--ds-shadow-lg);
    animation: igor-bubble-in .7s .18s cubic-bezier(.16, .84, .32, 1) both;
}

.igor-float-hello {
    color: #0b63d6;
    font-size: .78rem;
    line-height: 1.1;
    font-weight: 700;
}

.igor-float .igor-status {
    max-width: none;
    color: #062057;
    font-size: .92rem;
    line-height: 1.15;
    font-weight: 700;
    white-space: normal;
}

.igor-float-tail {
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 14px;
    height: 14px;
    background: #fff4c4;
    border-right: 2px solid #ffe56a;
    border-bottom: 2px solid #ffe56a;
    transform: translateX(-50%) rotate(45deg);
}

.igor-float-pointer {
    z-index: 4;
    width: 12px;
    height: 12px;
    margin: 8px 0 0;
    border-right: 3px solid #ffe56a;
    border-bottom: 3px solid #ffe56a;
    animation: igor-pointer 1.05s ease-in-out infinite;
}

.igor-float-stage {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 168px;
    margin-top: -6px;
}

.igor-float-glow {
    position: absolute;
    left: 50%;
    bottom: 18px;
    width: 140px;
    height: 140px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(255, 214, 70, .3), rgba(255, 214, 70, 0));
    pointer-events: none;
}

.igor-spark,
.igor-spark-b,
.igor-spark-c {
    position: absolute;
    z-index: 2;
    width: 8px;
    height: 8px;
    background: #fff6c2;
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    animation: igor-spark 2.4s ease-in-out infinite;
    pointer-events: none;
}

.igor-spark {
    top: 18px;
    right: 18px;
}

.igor-spark-b {
    top: 54px;
    left: 10px;
    animation-delay: .6s;
}

.igor-spark-c {
    top: 96px;
    right: 6px;
    width: 6px;
    height: 6px;
    animation-delay: 1.1s;
}

.igor-float-figure {
    position: relative;
    z-index: 1;
    transform-origin: center bottom;
}

.igor-float[data-state="idle"] .igor-float-figure {
    animation: igor-float 4.2s ease-in-out infinite;
}

.igor-float[data-state="listening"] .igor-float-figure,
.igor-float[data-state="speaking"] .igor-float-figure {
    transform:
        translateY(calc(var(--igor-audio-level) * -16px))
        scale(calc(1 + (var(--igor-audio-level) * .03)), calc(1 + (var(--igor-audio-level) * .045)));
}

.igor-float[data-state="thinking"] .igor-float-figure {
    animation: igor-thinking 1.4s ease-in-out infinite;
}

.igor-float[data-state="error"] .igor-float-figure {
    animation: igor-error .36s ease-in-out 2;
}

.igor-character-button {
    position: relative;
    z-index: 1;
    display: block;
    width: max-content;
    margin: 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    touch-action: manipulation;
}

.igor-character-button:disabled {
    cursor: default;
}

.igor-character-button:focus-visible,
.igor-mic-button:focus-visible,
.igor-stop-button:focus-visible {
    outline: 3px solid rgba(255, 210, 46, .95);
    outline-offset: 4px;
    border-radius: 18px;
}

.igor-float [data-igor-character] {
    display: block;
    width: auto;
    height: 168px;
    max-width: none;
    max-height: none;
    object-fit: contain;
    transform-origin: center bottom;
    pointer-events: none;
}

.igor-touch-ring {
    position: absolute;
    left: 50%;
    bottom: 4%;
    z-index: -1;
    width: 86%;
    height: 72%;
    border: 2px solid rgba(255, 210, 46, 0);
    border-radius: 50%;
    opacity: 0;
    transform: translateX(-50%) scale(.9);
    pointer-events: none;
}

.igor-float[data-state="listening"] .igor-touch-ring,
.igor-float[data-state="speaking"] .igor-touch-ring {
    border-color: rgba(255, 210, 46, .55);
    opacity: .85;
    animation: igor-ring 1.35s ease-out infinite;
}

.igor-float-shadow {
    position: absolute;
    z-index: 0;
    left: 50%;
    bottom: 8px;
    width: 72px;
    height: 12px;
    border-radius: 50%;
    background: rgba(30, 64, 160, .16);
    transform: translateX(-50%);
    animation: igor-shadow 4.2s ease-in-out infinite;
    pointer-events: none;
}

.igor-float[data-state="listening"] .igor-float-shadow,
.igor-float[data-state="speaking"] .igor-float-shadow {
    animation: none;
    opacity: calc(.4 - (var(--igor-audio-level) * .16));
    transform: translateX(-50%) scaleX(calc(1 - (var(--igor-audio-level) * .2)));
}

.igor-float-mic {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    width: max-content;
    margin: -22px auto 0;
}

.igor-mic-button,
.igor-stop-button {
    grid-area: 1 / 1;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #062057;
    background: radial-gradient(circle at 35% 28%, #fff6c4, #ffd22e 46%, #f0b400);
    box-shadow:
        0 0 0 6px rgba(255, 226, 90, .28),
        0 8px 16px rgba(30, 64, 160, .18),
        inset 0 -3px 0 rgba(120, 72, 0, .18);
    cursor: pointer;
}

.igor-stop-button {
    color: #fff;
    background: radial-gradient(circle at 35% 28%, #ff8eab, #ef4775 52%, #d32658);
    box-shadow:
        0 0 0 6px rgba(239, 71, 117, .22),
        0 8px 16px rgba(30, 64, 160, .18),
        inset 0 -3px 0 rgba(0, 0, 0, .16);
}

.igor-stop-button[hidden] {
    display: none !important;
}

.igor-float[data-state="listening"] .igor-mic-button,
.igor-float[data-state="speaking"] .igor-mic-button {
    display: none;
}

.igor-mic-button i,
.igor-stop-button i {
    font-size: 28px;
    line-height: 1;
}

.igor-mic-caption {
    margin-top: 6px;
    padding: 3px 10px 4px;
    border-radius: 999px;
    color: #062057;
    background: #ffe56a;
    font-size: .78rem;
    line-height: 1.1;
    font-weight: 700;
    box-shadow: 0 8px 14px rgba(0, 16, 48, .22);
}

.igor-tap-hand {
    position: absolute;
    z-index: 6;
    top: -4px;
    right: -8px;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    animation: igor-tap 1.15s ease-in-out infinite;
    pointer-events: none;
}

.igor-float:not([data-state="idle"]) .igor-float-hello,
.igor-float:not([data-state="idle"]) .igor-float-pointer,
.igor-float:not([data-state="idle"]) .igor-tap-hand,
.igor-float:not([data-state="idle"]) .igor-mic-caption {
    display: none;
}

.igor-float[data-state="idle"] .igor-mic-button {
    animation: igor-mic-pulse 1.7s ease-in-out infinite;
}

.igor-float[data-state="idle"] .igor-wave i {
    animation: igor-wave-idle 1.6s ease-in-out infinite;
}

.igor-float[data-state="idle"] .igor-wave i:nth-child(2) { animation-delay: .08s; }
.igor-float[data-state="idle"] .igor-wave i:nth-child(3) { animation-delay: .16s; }
.igor-float[data-state="idle"] .igor-wave i:nth-child(4) { animation-delay: .24s; }
.igor-float[data-state="idle"] .igor-wave i:nth-child(5) { animation-delay: .32s; }

.igor-wave {
    display: flex;
    align-items: end;
    gap: 3px;
    height: 14px;
    margin-top: 2px;
}

.igor-wave i {
    width: 4px;
    height: 6px;
    display: block;
    border-radius: 999px;
    background: #0b63d6;
    opacity: .8;
    transform-origin: center bottom;
    transform: scaleY(calc(.45 + (var(--igor-audio-level) * 1.7)));
}

.igor-wave i:nth-child(2),
.igor-wave i:nth-child(4) {
    height: 10px;
}

.igor-wave i:nth-child(3) {
    height: 14px;
}

.igor-float[data-state="thinking"] .igor-wave i {
    animation: igor-wave-thinking .9s ease-in-out infinite;
}

.igor-float[data-state="thinking"] .igor-wave i:nth-child(2) { animation-delay: .08s; }
.igor-float[data-state="thinking"] .igor-wave i:nth-child(3) { animation-delay: .16s; }
.igor-float[data-state="thinking"] .igor-wave i:nth-child(4) { animation-delay: .24s; }
.igor-float[data-state="thinking"] .igor-wave i:nth-child(5) { animation-delay: .32s; }

.igor-float[data-animations="off"] .igor-float,
.igor-float[data-animations="off"] .igor-float-bubble,
.igor-float[data-animations="off"] .igor-float-figure,
.igor-float[data-animations="off"] .igor-float-shadow,
.igor-float[data-animations="off"] .igor-spark,
.igor-float[data-animations="off"] .igor-tap-hand,
.igor-float[data-animations="off"] .igor-float-pointer,
.igor-float[data-animations="off"] .igor-mic-button,
.igor-float[data-animations="off"] .igor-wave i,
.igor-float[data-animations="off"] .igor-touch-ring {
    animation: none !important;
}

body:has(.media-overlay.is-open) .igor-float {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes igor-enter {
    from { opacity: 0; transform: translateY(28px) scale(.94); }
    to { opacity: 1; transform: none; }
}

@keyframes igor-bubble-in {
    from { opacity: 0; transform: translateY(10px) scale(.92); }
    to { opacity: 1; transform: none; }
}

@keyframes igor-float {
    0%, 100% { transform: translateY(0) rotate(-1.4deg); }
    22% { transform: translateY(-12px) rotate(1.2deg); }
    44% { transform: translateY(0) rotate(-.8deg); }
    62% { transform: translateY(-8px) rotate(.7deg); }
    74% { transform: translateY(1px) rotate(0); }
    82% { transform: translateY(-20px) rotate(-2deg) scale(1.02); }
    90% { transform: translateY(3px) rotate(1.1deg) scale(.985, .97); }
}

@keyframes igor-shadow {
    0%, 100% { transform: translateX(-50%) scaleX(1); opacity: .42; }
    22% { transform: translateX(-50%) scaleX(.78); opacity: .24; }
    44% { transform: translateX(-50%) scaleX(1); opacity: .42; }
    62% { transform: translateX(-50%) scaleX(.84); opacity: .28; }
    82% { transform: translateX(-50%) scaleX(.7); opacity: .2; }
    90% { transform: translateX(-50%) scaleX(1.08); opacity: .48; }
}

@keyframes igor-thinking {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(-2.4deg); }
}

@keyframes igor-error {
    0%, 100% { transform: translateX(0); }
    35% { transform: translateX(-5px); }
    70% { transform: translateX(5px); }
}

@keyframes igor-ring {
    0% { transform: translateX(-50%) scale(.82); opacity: .8; }
    100% { transform: translateX(-50%) scale(1.12); opacity: 0; }
}

@keyframes igor-pointer {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(7px) rotate(45deg); }
}

@keyframes igor-tap {
    0%, 100% { transform: translate(10px, -8px) rotate(-20deg); }
    42% { transform: translate(0, 6px) rotate(-6deg) scale(.92); }
    58% { transform: translate(3px, -2px) rotate(-14deg); }
}

@keyframes igor-spark {
    0%, 100% { opacity: .25; transform: scale(.7) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.15) rotate(18deg); }
}

@keyframes igor-wave-thinking {
    0%, 100% { transform: scaleY(.38); }
    50% { transform: scaleY(1); }
}

@keyframes igor-mic-pulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow:
            0 0 0 6px rgba(255, 226, 90, .28),
            0 8px 16px rgba(30, 64, 160, .18),
            inset 0 -3px 0 rgba(120, 72, 0, .18);
    }
    50% {
        transform: translateY(-2px) scale(1.06);
        box-shadow:
            0 0 0 12px rgba(255, 226, 90, 0),
            0 14px 22px rgba(0, 16, 48, .3),
            inset 0 -3px 0 rgba(120, 72, 0, .18);
    }
}

@keyframes igor-wave-idle {
    0%, 100% { transform: scaleY(.36); opacity: .45; }
    50% { transform: scaleY(.9); opacity: .95; }
}

@media (min-width: 1120px) {
    .igor-float {
        width: 230px;
        right: calc(50vw - 556px);
        bottom: 6vh;
    }

    .igor-float-stage {
        min-height: 320px;
    }

    .igor-float [data-igor-character] {
        height: 320px;
    }

    .igor-float .igor-status {
        font-size: 1.05rem;
    }

    .igor-float-hello {
        font-size: .86rem;
    }

    .igor-mic-button,
    .igor-stop-button {
        width: 72px;
        height: 72px;
    }
}

.igor-float.is-compact[data-state="idle"] .igor-float-bubble,
.igor-float.is-compact[data-state="idle"] .igor-float-pointer {
    display: none;
}

@media (max-width: 599px) {
    .igor-float {
        width: 108px;
        right: 4px;
        bottom: calc(8px + var(--igor-lift, 0px));
    }

    .igor-float-bubble {
        padding: 8px 8px 9px;
        border-radius: 18px;
    }

    .igor-float-hello {
        font-size: .68rem;
    }

    .igor-float .igor-status {
        font-size: .74rem;
    }

    .igor-float-pointer {
        width: 10px;
        height: 10px;
        margin-top: 6px;
    }

    .igor-float-stage {
        min-height: 132px;
    }

    .igor-float [data-igor-character] {
        height: 132px;
    }

    .igor-float-glow {
        bottom: 12px;
        width: 112px;
        height: 112px;
    }

    .igor-mic-button,
    .igor-stop-button {
        width: 52px;
        height: 52px;
    }

    .igor-mic-button i,
    .igor-stop-button i {
        font-size: 24px;
    }

    .igor-tap-hand {
        font-size: 24px;
    }

    .igor-mic-caption {
        font-size: .7rem;
    }
}


.media-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: none;
    place-items: end center;
    padding: 18px 16px 24px;
}

.media-overlay.is-open {
    display: grid;
}

.media-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(1, 12, 38, .62);
    backdrop-filter: blur(8px);
}

.media-player-card {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    padding: 16px 16px 14px;
    border-radius: 22px;
    color: var(--bio-text);
    background: var(--bio-card);
    box-shadow: 0 24px 48px rgba(0, 10, 36, .38);
}

.media-overlay.is-video .media-player-card {
    width: min(100%, 720px);
    padding: 14px 14px 12px;
}

.media-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--bio-button);
    box-shadow: 0 8px 16px rgba(4, 28, 88, .28);
    cursor: pointer;
}

.media-overlay.is-video .media-close {
    top: 22px;
    right: 22px;
}

.media-video-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin: 0 0 12px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 40%, rgba(32, 92, 196, .35), transparent 42%),
        #021433;
}

.media-video-shell video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #021433;
}

.media-video-hit {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: rgba(2, 16, 48, .18);
    cursor: pointer;
    transition: background .2s ease;
}

.media-overlay.is-playing .media-video-hit {
    background: transparent;
}

.media-video-play-badge {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--bio-button);
    box-shadow: 0 12px 28px rgba(4, 28, 88, .38);
    transform: scale(1);
    opacity: 1;
    transition: opacity .2s ease, transform .2s ease;
}

.media-video-play-badge i {
    font-size: 34px;
    line-height: 1;
}

.media-video-play-badge .bi-play-fill {
    margin-left: 3px;
}

.media-overlay.is-playing .media-video-play-badge {
    opacity: 0;
    transform: scale(.82);
    pointer-events: none;
}

.media-fs {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: rgba(6, 29, 74, .55);
    cursor: pointer;
}

.media-video-shell:fullscreen,
.media-video-shell:-webkit-full-screen {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
    background: #000;
}

.media-overlay.is-audio .media-fs {
    display: none;
}

.media-audio-shell {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-height: 88px;
    margin: 4px 8px 10px;
}

.media-audio-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    background: var(--bio-button);
}

.media-audio-icon i {
    font-size: 34px;
    line-height: 1;
}

.media-bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 42px;
}

.media-bars span {
    width: 7px;
    height: 12px;
    border-radius: 99px;
    background: var(--bio-accent);
    opacity: .55;
    transform-origin: center bottom;
}

.media-overlay.is-playing .media-bars span {
    animation: media-bar 1s ease-in-out infinite;
}

.media-bars span:nth-child(2) { height: 22px; }
.media-bars span:nth-child(3) { height: 34px; }
.media-bars span:nth-child(4) { height: 18px; }
.media-bars span:nth-child(5) { height: 40px; }
.media-bars span:nth-child(6) { height: 16px; }
.media-bars span:nth-child(7) { height: 28px; }

@keyframes media-bar {
    0%, 100% { transform: scaleY(.45); }
    50% { transform: scaleY(1); }
}

.media-copy {
    display: grid;
    gap: 2px;
    margin: 0 6px 12px;
}

.media-overlay.is-video .media-copy {
    margin: 2px 6px 12px;
}

.media-copy strong,
.media-copy span {
    display: block;
    font-family: inherit;
}

.media-copy strong {
    font-size: 1.05rem;
    font-weight: 700;
}

.media-copy span {
    min-height: 1.1em;
    font-size: .92rem;
    font-weight: 600;
}

.media-controls {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.media-play {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--bio-button);
    box-shadow: 0 8px 16px rgba(9, 105, 216, .28);
    cursor: pointer;
}

.media-play i {
    font-size: 26px;
    line-height: 1;
}

.media-progress-wrap {
    min-width: 0;
}

.media-progress {
    --media-progress: 0%;
    width: 100%;
    height: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 99px;
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(to right, var(--bio-accent) var(--media-progress), #1c1c1c var(--media-progress));
    cursor: pointer;
}

.media-progress::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 99px;
    background: transparent;
}

.media-progress::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    margin-top: -4px;
    border: 0;
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    background: var(--bio-accent);
    box-shadow: 0 0 0 3px rgba(255, 210, 46, .22);
    cursor: pointer;
}

.media-progress::-moz-range-track {
    height: 8px;
    border-radius: 99px;
    background: #1c1c1c;
}

.media-progress::-moz-range-progress {
    height: 8px;
    border-radius: 99px;
    background: var(--bio-accent);
}

.media-progress::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 50%;
    background: var(--bio-accent);
    cursor: pointer;
}

.media-time {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    color: rgba(6, 29, 74, .62);
    font-size: .78rem;
    font-weight: 600;
}

.media-protect-note {
    margin: 12px 0 0;
    color: rgba(6, 29, 74, .48);
    font-size: .74rem;
    font-weight: 600;
    text-align: center;
}

.media-player-card audio {
    display: none;
}

@media (min-width: 720px) {
    .media-overlay {
        place-items: center;
    }
}

body.media-open {
    overflow: hidden;
}


/* ---------------------------------------------------------------------
   Player no visual do Mundo do Igor
   --------------------------------------------------------------------- */
.media-overlay-backdrop {
    background: rgba(20, 37, 74, .55);
}

.media-player-card {
    padding: 20px 18px 16px;
    border-radius: var(--ds-r-xl);
    color: var(--ds-ink);
    background: #fff;
    box-shadow: var(--ds-shadow-lg);
    animation: rise .35s var(--ds-ease) both;
}

.media-close {
    width: 42px;
    height: 42px;
    color: var(--ds-ink);
    background: var(--ds-sky);
    box-shadow: none;
}

.media-audio-shell {
    grid-template-columns: auto 64px minmax(0, 1fr);
    gap: 14px;
    min-height: 120px;
    margin: 0 0 12px;
    padding: 10px 16px 0;
    border-radius: var(--ds-r-lg);
    background: linear-gradient(180deg, var(--ds-sky), #fff);
}

.media-audio-shell[hidden] {
    display: none;
}

.media-audio-igor {
    align-self: end;
    width: auto;
    height: 112px;
}

.media-audio-icon {
    width: 64px;
    height: 64px;
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .14);
}

.media-bars span {
    background: var(--bio-button);
}

.media-copy strong {
    font-size: 1.2rem;
}

.media-play {
    background: var(--bio-accent);
    color: var(--ds-ink);
    box-shadow: 0 4px 0 var(--ds-yellow-deep);
}

.media-play:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 var(--ds-yellow-deep);
}

.media-progress {
    height: 10px;
    background: linear-gradient(to right, var(--bio-button) var(--media-progress), var(--ds-line) var(--media-progress));
}

.media-progress::-webkit-slider-runnable-track {
    height: 10px;
}

.media-progress::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    margin-top: -5px;
    border: 3px solid #fff;
    background: var(--bio-button);
    box-shadow: 0 2px 6px rgba(20, 37, 74, .25);
}

.media-progress::-moz-range-track {
    background: var(--ds-line);
}

.media-progress::-moz-range-progress {
    background: var(--bio-button);
}

.media-progress::-moz-range-thumb {
    background: var(--bio-button);
}

.media-time,
.media-protect-note {
    color: var(--ds-muted);
}

.media-protect-note i {
    margin-right: 3px;
}

/* ---------------------------------------------------------------------
   Igor flutuante: mais enxuto no celular para não cobrir os cartões
   --------------------------------------------------------------------- */
.igor-float-hello {
    color: var(--bio-button);
}

.igor-float .igor-status {
    color: var(--ds-ink);
    font-weight: 600;
}

@media (max-width: 599px) {
    .igor-float.is-compact .igor-float-stage {
        min-height: 92px;
    }

    .igor-float.is-compact [data-igor-character] {
        height: 92px;
    }

    .igor-float.is-compact .igor-float-glow {
        width: 80px;
        height: 80px;
    }

    .igor-float.is-compact .igor-mic-caption,
    .igor-float.is-compact .igor-tap-hand {
        display: none;
    }

    .igor-float.is-compact .igor-mic-button,
    .igor-float.is-compact .igor-stop-button {
        width: 46px;
        height: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
