.qd-extras{margin:1rem 0;border:2px solid #1e1b4b;border-radius:14px;padding:.8rem;background:#fffdf7;min-width:0;box-shadow:0 4px 0 rgba(30,27,75,.18)}
.qd-extras[hidden],.qd-extras [hidden]{display:none!important}
#qd-x-share[hidden]{display:none}
.qd-extras h2{font-size:1.1rem;margin:0 0 .3rem;color:#1e1b4b}
.qd-extras h3{font-size:.95rem;margin:.9rem 0 .2rem;color:#1e1b4b}
.qd-extras h3 span{font-family:'JetBrains Mono',monospace;font-size:.78rem;color:#9a3412;margin-left:.3rem}
.qd-x-line{font-size:.85rem;line-height:1.4;color:#334155;margin:.2rem 0 .5rem;overflow-wrap:anywhere}
.qd-x-small,.qd-x-note{font-size:.75rem;line-height:1.4;color:#475569;margin:.3rem 0;overflow-wrap:anywhere}
.qd-x-note:empty{display:none}
.qd-x-row{display:flex;flex-wrap:wrap;gap:8px}
.qd-extras .btn{min-height:44px;min-width:44px;max-width:100%;white-space:normal}
.qd-x-book{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:.5rem}
.qd-x-tile{display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px 2px;border-radius:10px;border:2px solid #cbd5e1;background:#fff;min-width:0}
.qd-x-tile canvas{width:100%;max-width:56px;height:auto;aspect-ratio:1;display:block}
.qd-x-tile.locked{background:#f1f5f9;border-style:dashed}
.qd-x-q{display:flex;align-items:center;justify-content:center;width:100%;max-width:56px;aspect-ratio:1;font-weight:800;font-size:1.4rem;color:#94a3b8}
.qd-x-cap{font-size:.62rem;line-height:1.2;font-family:'JetBrains Mono',monospace;color:#475569;text-align:center;overflow-wrap:anywhere}
.qd-x-tile.bronze{border-color:#b45309}
.qd-x-tile.silver{border-color:#64748b;box-shadow:0 0 0 2px #cbd5e1}
.qd-x-tile.gold{border-color:#f59e0b;background:#fffbeb;box-shadow:0 0 0 2px #fde68a}
.qd-result .qd-x-msg{color:#9a3412;font-weight:700}
@media (max-width:360px){.qd-x-book{grid-template-columns:repeat(3,1fr)}}
html:is(.pip-immersive,.pip-native) .pip-stage > .qd-extras{display:none}
