.biophonie-heading h1 { margin-block: .4rem; }
.biophonie-heading p { margin-block: 0 1.25rem; }
html[data-dive-theme="dark"] .biophonie-heading > :is(h1, p) {
    color: var(--dive-theme-text, #e0efef);
}
.bio-game {
    display: grid;
    gap: .85rem;
    max-width: 65rem;
    margin-inline: auto;
}
.bio-console {
    position: sticky;
    top: .4rem;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .5rem 1rem;
    padding: .6rem;
    border-radius: .85rem;
    background: #214e5d;
    color: #f2fcfd;
    box-shadow: 0 .35rem .85rem #132f3a40;
}
.bio-meter {
    display: grid;
    grid-template-columns: repeat(2, minmax(4.25rem, 1fr));
    gap: .5rem;
    text-align: center;
}
.bio-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
}
.bio-controls #bio-round { margin: 0; }
.bio-controls .button { margin: 0; border: 1px solid #83b8be; }
.bio-controls #bio-next:not(:disabled) {
    background: #d6ebdf;
    color: #123943;
}
#bio-feedback {
    grid-column: 1 / -1;
    margin: 0;
    padding: .45rem .65rem;
    border-radius: .45rem;
    color: #113743;
    background: #e5f4eb;
    font-weight: 700;
}
.bio-answers {
    padding: clamp(.7rem, 2.5vw, 1.6rem);
    border-radius: 1.25rem;
}
.bio-meter p {
    margin: 0;
    padding: .55rem;
    border-radius: .6rem;
    background: #10333f;
}
.bio-meter strong {
    display: block;
    font-size: clamp(1.45rem, 4vw, 2.1rem);
    line-height: 1.12;
    font-variant-numeric: tabular-nums;
}
.bio-urgent { color: #ffcea7; }
.bio-vinyl {
    position: relative;
    flex: 0 0 2.65rem;
    width: 2.65rem;
    aspect-ratio: 1;
    margin: 0;
    border: .24rem solid #12262d;
    border-radius: 50%;
    background: repeating-radial-gradient(circle, #203437 0 3px, #15262b 4px 6px);
    box-shadow: 0 .45rem 1rem #091d25;
}
.bio-vinyl::after {
    content: "";
    position: absolute;
    inset: 33%;
    border-radius: 50%;
    background: radial-gradient(circle, #16333c 0 8%, transparent 9%),
        conic-gradient(#90d6d0, #cae4aa 30%, #3f9297 75%, #90d6d0);
}
.bio-playing .bio-vinyl { animation: bio-spin 3s linear infinite; }
@keyframes bio-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) {
    .bio-playing .bio-vinyl { animation: none; }
}
.bio-answers {
    color: var(--dive-theme-text, #173d49);
    background: var(--dive-theme-panel, #fbf9ef);
    border: 1px solid #87b2b478;
}
.bio-answers h2 { margin: 0 0 .75rem; font-size: clamp(1.2rem, 2.3vw, 1.65rem); }
.bio-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.bio-options > button[type="button"] {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    padding: 0;
    border: 2px solid #80a8ad;
    border-radius: .7rem;
    color: #123944;
    background: #eef7f5;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.bio-options button:disabled { cursor: default; opacity: 1; }
.bio-options button:not(:disabled):is(:hover,:focus-visible) { outline: 3px solid #328b86; outline-offset: 1px; }
.bio-options > button.bio-correct[type="button"] { border-color: #276b43; background: #d4efdc; }
.bio-options > button.bio-incorrect[type="button"] { border-color: #9c472d; background: #f9ddd1; }
.bio-options img {
    display: block;
    width: 100%;
    height: clamp(5rem, 22vw, 12rem);
    min-width: 0;
    object-fit: contain;
    background: #e6efeb;
}
.bio-options span { align-self: center; padding: .45rem; overflow-wrap: anywhere; }
.bio-credit { font-size: .85rem; }
.bio-credit:empty, #bio-feedback:empty { display: none; }
@media (max-width: 45rem) {
    .bio-console { grid-template-columns: minmax(0, 1fr); }
    .bio-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bio-controls .button { width: 100%; }
    .bio-controls #bio-round { margin: 0; text-align: center; }
    .bio-controls .bio-vinyl { justify-self: center; width: 1.45rem; }
    .bio-controls #bio-play { grid-column: 1; }
    .bio-controls #bio-next { grid-column: 2; }
}
