/* Books in Order */

.bio { max-width: 48rem; margin: 0 auto; }
.bio-controls {
    display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-bottom: 1rem; padding: 1rem 1.25rem;
    background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.bio-control { display: flex; flex-direction: column; gap: .25rem; font-weight: 700; flex: 1 1 12rem; }
.bio-control select {
    font: inherit; font-weight: 500; min-height: var(--tap); padding: 0 .75rem;
    border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
}

.bio-card {
    padding: 1.25rem; background: var(--surface); border: 2px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
}
@media (min-width: 640px) { .bio-card { padding: 1.5rem 2rem; } }

.bio-status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; color: var(--ink-soft); font-size: .95rem; margin-bottom: .75rem; }

.bio-shelf { list-style: none; padding: .75rem; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem; background: var(--accent-soft); border-radius: 12px; min-height: 3.25rem; }
.bio-shelf li {
    padding: .35rem .7rem; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 700; font-size: .95rem;
    border-bottom: 4px solid rgba(0, 0, 0, .2);
}
.bio-shelf .bio-shelf__anchor { background: transparent; color: var(--ink-soft); border: 0; font-weight: 600; }
.bio-shelf .bio-shelf__next { background: var(--surface); color: var(--accent); border: 2px dashed var(--accent); }
.bio-shelf--done li { animation: bio-in .35s ease both; }
@keyframes bio-in { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }

.bio-prompt { font-size: 1.2rem; font-weight: 800; margin-bottom: .6rem; }
.bio-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.bio-tile {
    min-height: var(--tap); padding: 0 1rem; font: inherit; font-weight: 700; color: var(--ink);
    background: var(--surface); border: 2px solid var(--line); border-radius: 10px; cursor: pointer;
}
.bio-tile:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.bio-tile:disabled { opacity: .45; cursor: default; text-decoration: line-through; }
.bio-tile.is-wrong { border-color: #b91c1c; animation: bio-shake .35s ease; }
@keyframes bio-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.bio-message { min-height: 1.6em; margin: .75rem 0 0; font-weight: 600; }

.bio-learn { columns: 2 12rem; column-gap: 2rem; padding-left: 1.75rem; margin: 0 0 1.25rem; }
.bio-learn li { padding: .2rem 0; font-weight: 600; break-inside: avoid; }

.bio-done { text-align: center; }
.bio-done .bio-shelf { justify-content: center; }
.bio-cheer { font-size: 1.25rem; font-weight: 800; color: var(--accent); }
.bio-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
