/* Bible Trivia (the 10 daily questions) and Stats on the home page (Ethan 2026-11-23, from the approved mockup).
   Everything starts with d10- so nothing clashes with the site. The sound panel and switch styles are copied from quiz.css
   (the home page doesn't load quiz.css). */

/* Three tabs: Scriptle | Bible Trivia | Stats */
.gm-tabs.three { grid-template-columns: repeat(3, 1fr); width: min(420px, 100%); }
.gm-tabs.three::before { width: calc((100% - 8px) / 3); }
.gm-tabs.three[data-on="quiz"]::before { transform: translateX(100%); }
.gm-tabs.three[data-on="stats"]::before { transform: translateX(200%); }
.gm-tabs.three button { font-size: .92rem; padding: 10px 4px; }
.d10 { max-width: 560px; margin: 0 auto; }
.d10[hidden] { display: none; }
.d10-card { background: #fff; border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 24px; padding: 18px; text-align: center; }
.d10-lbl { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.d10-card h3 { font-size: 1.45rem; margin: 6px 0 4px; color: var(--ink); }
.d10-s { margin: 0 0 14px; color: var(--muted); }
.d10-full { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.d10-mini { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 14px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.d10-wk { display: flex; gap: 4px; } .d10-wk i { width: 12px; height: 12px; border-radius: 50%; background: #E9E2D3; } .d10-wk i.ok { background: var(--green); }
.d10-play { width: 100%; }
.d10-prog { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: 4px 0 14px; }
.d10-prog i { height: 8px; border-radius: 4px; background: #EEE8DC; } .d10-prog i.ok { background: var(--green); } .d10-prog i.no { background: var(--red); } .d10-prog i.now { background: var(--gold); }
.d10-top { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 700; color: var(--muted); }
.d10-q { font-size: 1.2rem; font-weight: 700; line-height: 1.35; color: var(--ink); margin: 6px 0 14px; text-align: left; }
.d10-opts { display: grid; gap: 8px; }
.d10-opt { padding: 13px 14px; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 14px; background: #fff; font-family: inherit; font-size: 1rem; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; }
.d10-opt.right { background: var(--green-bg); border-color: var(--green); color: var(--green-deep); }
.d10-opt.wrong { background: var(--red-bg); border-color: var(--red); color: var(--red-deep); }
.d10-opt:disabled { cursor: default; }
.d10-fbk { display: block; margin-top: 12px; padding: 12px 14px; border-radius: 14px; text-align: left; font-size: .92rem; line-height: 1.45; }
.d10-fbk.ok { background: var(--green-bg); color: var(--green-deep); } .d10-fbk.no { background: var(--red-bg); color: var(--red-deep); }
.d10-fbk b { display: block; margin-bottom: 2px; } .d10-fbk small { display: block; margin-top: 4px; opacity: .8; font-weight: 700; }
.d10-go { width: 100%; margin-top: 12px; }
.d10-plus { display: inline-block; margin-left: 6px; color: var(--green); font-weight: 700; animation: d10-up .7s ease both; }
@keyframes d10-up { 0% { transform: translateY(6px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-10px); opacity: 0; } }
.d10-score { font-size: 3.2rem; font-weight: 700; line-height: 1; color: var(--green-deep); margin: 8px 0 4px; }
.d10-sq { font-size: 1.3rem; letter-spacing: 2px; margin: 6px 0 4px; }
.d10-missed { display: grid; gap: 6px; text-align: left; }
.d10-missed details { border: 2px solid var(--line); border-radius: 12px; padding: 8px 12px; background: #fff; }
.d10-missed summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--ink); }
.d10-missed p { margin: 6px 0 0; font-size: .88rem; color: var(--muted); }
.d10-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.d10-btns .btn { width: 100%; padding-left: 8px; padding-right: 8px; font-size: .95rem; }
.d10-btns .btn.d10-light { background: #fff; color: var(--ink); border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line-dark); }
.d10-cd { margin-top: 10px; font-size: .9rem; color: var(--muted); } .d10-cd b { color: var(--ink); }
.d10-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.d10-two div { padding: 14px 8px; border-radius: 16px; background: linear-gradient(180deg, #FFF6E2, #FFF0D2); border: 2px solid var(--gold-light); }
.d10-two b { display: block; font-size: 1.6rem; color: var(--ink); } .d10-two span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.d10-links { display: grid; gap: 8px; margin-top: 14px; text-align: left; }
.d10-links a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; font-weight: 700; color: var(--ink); text-decoration: none; }
.d10-links a span { margin-left: auto; color: var(--muted); }
/* Stats tab (round 3) */
.d10-st { text-align: left; }
.d10-rank { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(180deg, #EEF4FA, #E2ECF5); border: 2px solid #C9DAEA; }
.d10-medal { font-size: 2.6rem; line-height: 1; }
.d10-rank-t small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.d10-rank-t b { display: block; font-size: 1.5rem; line-height: 1.15; color: var(--ink); }
.d10-rank-t span { font-size: .88rem; color: var(--muted); }
.d10-next { margin-top: 10px; }
.d10-next-t { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin-bottom: 5px; }
.d10-next-t b { color: var(--ink); }
.d10-track { height: 10px; border-radius: 6px; background: #EEE8DC; overflow: hidden; } .d10-track i { display: block; height: 100%; border-radius: 6px; background: var(--gold); }
.d10-st .d10-two div { text-align: center; }
.d10-st .d10-two span { display: block; line-height: 1.3; }
.d10-st .d10-two small { display: block; margin-top: 4px; font-size: .75rem; font-weight: 700; color: #9C7424; }
.d10-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.d10-tiles div { padding: 10px 6px; border: 2px solid var(--line); border-radius: 14px; background: #fff; text-align: center; }
.d10-tiles b { display: block; font-size: 1.3rem; color: var(--ink); }
.d10-tiles span { display: block; font-size: .7rem; font-weight: 600; line-height: 1.25; color: var(--muted); }
.d10-bests { display: grid; gap: 6px; }
.d10-bests div { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font-size: .9rem; color: var(--ink); }
.d10-bests b { color: var(--green-deep); }
.d10-lb { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.d10-lb li { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 10px; background: #fff; border: 2px solid var(--line); font-size: .9rem; color: var(--ink); }
.d10-lb .d10-pos { width: 24px; text-align: center; font-weight: 700; color: var(--muted); }
.d10-lb .d10-nm { flex: 1; font-weight: 600; }
.d10-lb li.d10-gap { justify-content: center; border: 0; background: none; padding: 0; color: var(--muted); }
.d10-lb li.d10-me { background: var(--green-bg); border-color: var(--green); }
.d10-lb li.d10-me .d10-nm, .d10-lb li.d10-me .d10-pos { color: var(--green-deep); }
.d10-lbcap { margin: 6px 0 0; font-size: .82rem; color: var(--muted); }
.d10-st .d10-full { margin-top: 8px; }
.d10-more { display: flex; flex-wrap: wrap; gap: 6px; }
.d10-more a { padding: 8px 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font-size: .85rem; font-weight: 700; color: var(--ink); text-decoration: none; }
/* How to play demo (round 7) */
.d10-intro { text-align: left; }
.d10-demo { width: 196px; padding: 16px 10px 10px; }
.d10-dtop { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.d10-dprog { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.d10-dprog i { height: 6px; border-radius: 3px; background: #EEE8DC; transition: background .3s; } .d10-dprog i.ok { background: var(--green); } .d10-dprog i.no { background: var(--red); }
.d10-dsc { display: inline-flex; align-items: center; font-size: .85rem; color: var(--green-deep); }
.d10-dsc .d10-ck { width: 15px; height: 15px; margin-right: 4px; } .d10-dsc .d10-ck::after { width: 6px; height: 3px; border-width: 0 0 2px 2px; }
.d10-dsc.bump { animation: d10-bump .4s cubic-bezier(.3,1.6,.5,1); }
@keyframes d10-bump { 50% { transform: scale(1.35); } }
.d10-dq { min-height: 2.5em; font-size: .8rem; font-weight: 700; line-height: 1.25; color: var(--ink); margin-bottom: 6px; }
.d10-dq.in { animation: d10-fade .35s ease; }
@keyframes d10-fade { from { opacity: 0; transform: translateY(4px); } }
.d10-dopts { display: grid; gap: 4px; }
.d10-dopts i { display: block; padding: 5px 8px; border: 2px solid var(--line); border-radius: 8px; background: #fff; font-style: normal; font-size: .74rem; font-weight: 600; color: var(--ink); transition: background .25s, border-color .25s; }
.d10-dopts i.right { background: var(--green-bg); border-color: var(--green); color: var(--green-deep); }
.d10-dopts i.wrong { background: var(--red-bg); border-color: var(--red); color: var(--red-deep); }
.d10-finger { position: absolute; left: 70%; top: 100%; font-size: 1.3rem; opacity: 0; transition: left .5s ease, top .5s ease, opacity .3s; pointer-events: none; }
.d10-finger.on { opacity: 1; animation: d10-tap .5s ease .35s; }
@keyframes d10-tap { 50% { transform: scale(.8); } }
.d10-lg { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; font-size: .95rem; font-weight: 700; color: #fff; }
.d10-lg.ok { background: var(--green); box-shadow: inset 0 -3px 0 var(--green-deep); }
.d10-lg.no { background: var(--red); box-shadow: inset 0 -3px 0 var(--red-deep); }
.d10-lg.h { background: #FFF8E6; border: 2px solid var(--gold-light); }
/* Leaderboard panel (round 6): its own trophy panel, top 3 in soft gold, silver, bronze */
.d10-lbwrap { padding: 12px; border-radius: 20px; background: linear-gradient(180deg, #1E3A5F 0, #1E3A5F 64px, #F4EFE4 64px); border: 2px solid #1E3A5F; }
.d10-lbhead { display: flex; align-items: center; gap: 10px; height: 44px; margin: -2px 2px 12px; color: #fff; }
.d10-trophy { font-size: 1.7rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.d10-lbhead b { display: block; font-size: 1.05rem; }
.d10-lbhead > div > span { display: block; font-size: .75rem; opacity: .85; }
.d10-lbhead .d10-ck { width: 14px; height: 14px; margin-right: 2px; } .d10-lbhead .d10-ck::after { width: 6px; height: 3px; border-width: 0 0 2px 2px; }
.d10-lb li.d10-g1 { background: linear-gradient(90deg, #FFF3CF, #FFFBEF); border-color: #E3C27A; }
.d10-lb li.d10-g2 { background: linear-gradient(90deg, #ECEFF3, #F9FAFB); border-color: #C3CAD3; }
.d10-lb li.d10-g3 { background: linear-gradient(90deg, #F8E4D3, #FDF5EE); border-color: #D9AE88; }
.d10-lb li.d10-g1 .d10-nm { font-weight: 700; }
.d10-lbwrap .d10-lbcap { margin-left: 4px; }
.d10-lbwrap .d10-full { margin: 6px 0 2px 4px; }
/* Same green check on the score and every leaderboard row (round 5) */
.d10-ck { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; border-radius: 50%; background: var(--green); box-shadow: inset 0 -2px 0 var(--green-deep); }
.d10-ck::after { content: ""; width: 8px; height: 4px; margin-top: -2px; border: solid #fff; border-width: 0 0 2.4px 2.4px; transform: rotate(-45deg); }
.wd-sec .d10-ck { width: 15px; height: 15px; margin: 0 -2px 0 0; } .wd-sec .d10-ck::after { width: 6px; height: 3px; border-width: 0 0 2px 2px; }
.d10-lb b { display: inline-flex; align-items: center; color: var(--green-deep); font-variant-numeric: tabular-nums; }
.d10-place { position: relative; display: inline-block; margin-top: 8px; padding: 4px 12px; border-radius: 999px; background: #fff; border: 2px solid #A9D8B5; font-size: .82rem; font-weight: 700; color: var(--green-deep); text-decoration: none; }
/* The score hero (round 4) */
.d10-hero { position: relative; padding: 20px 16px 16px; border-radius: 22px; text-align: center; background: radial-gradient(120% 90% at 50% 0%, #F0FAF2 0%, #E3F4E6 60%, #D6EEDB 100%); border: 2px solid #A9D8B5; border-bottom-width: 5px; overflow: hidden; }
.d10-hero::before { content: ""; position: absolute; inset: -40% -20% auto; height: 120%; background: radial-gradient(closest-side, rgba(255,255,255,.75), transparent); pointer-events: none; }
.d10-check { position: relative; width: 64px; height: 64px; margin: 0 auto 6px; border-radius: 50%; background: var(--green); box-shadow: inset 0 -4px 0 var(--green-deep), 0 6px 18px rgba(47,143,78,.35); display: grid; place-items: center; animation: d10-pop .7s cubic-bezier(.3,1.6,.5,1) both; }
.d10-check::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid rgba(47,143,78,.35); animation: d10-ring 2.4s ease-out 1s infinite; }
.d10-check svg { width: 38px; height: 38px; fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: d10-draw .5s ease .35s forwards; }
@keyframes d10-pop { 0% { transform: scale(.3); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes d10-draw { to { stroke-dashoffset: 0; } }
@keyframes d10-ring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.d10-hero-num { position: relative; font-size: 3.6rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--green-deep); font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 rgba(255,255,255,.8); }
.d10-hero-lbl { position: relative; margin-top: 4px; font-size: .9rem; font-weight: 700; color: var(--green-deep); }
.d10-today { position: absolute; top: 12px; right: 12px; padding: 3px 9px; border-radius: 999px; background: var(--green); color: #fff; font-size: .75rem; font-weight: 700; box-shadow: inset 0 -2px 0 var(--green-deep); animation: d10-pop .6s cubic-bezier(.3,1.6,.5,1) 1.3s both; }
.d10-tier { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; margin-top: 14px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.75); text-align: left; }
.d10-tier-b { font-size: .85rem; font-weight: 700; color: var(--ink); }
.d10-tier-bar { height: 10px; border-radius: 6px; background: #E6E0D2; overflow: hidden; } .d10-tier-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--gold), #E3C88E); }
.d10-tier-n { grid-column: 2; font-size: .78rem; color: var(--muted); } .d10-tier-n b { color: var(--ink); }
.d10-tiles { grid-template-columns: repeat(6, 1fr); }
.d10-tiles div { grid-column: span 2; } .d10-tiles div.d10-w2 { grid-column: span 3; }
.d10-tiles i { display: block; font-style: normal; font-size: 1.1rem; margin-bottom: 2px; }
@media (prefers-reduced-motion: reduce) { .d10-check, .d10-check svg, .d10-today { animation: none; stroke-dashoffset: 0; } .d10-check::after { display: none; } }
/* Compact playing screen (round 2) */
.d10-pl { padding: 14px 14px 16px; text-align: left; }
.d10-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.d10-bar .d10-prog { flex: 1; margin: 0; }
.d10-n { font-size: .8rem; font-weight: 700; color: var(--muted); }
.d10-pills { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.d10-diff { padding: 4px 10px; border-radius: 8px; font-size: .78rem; font-weight: 700; background: var(--green-bg); color: var(--green-deep); }
.d10-diff.d2 { background: #FFF3D6; color: #8A6A1F; } .d10-diff.d3 { background: var(--red-bg); color: var(--red-deep); }
.d10-ref { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 2px solid var(--line); border-radius: 8px; background: #fff; font-family: inherit; font-size: .74rem; font-weight: 700; letter-spacing: .06em; color: var(--ink); cursor: pointer; }
.d10-ref.on { border-color: var(--gold-light); background: #FFF8E6; }
.d10-ref:disabled { cursor: default; letter-spacing: .02em; }
.d10-eye { width: 16px; height: 10px; border: 2px solid currentColor; border-radius: 50% / 60%; position: relative; opacity: .7; }
.d10-eye::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: currentColor; }
.d10-eye.off::before { content: ""; position: absolute; left: -3px; right: -3px; top: 50%; height: 2px; background: currentColor; transform: rotate(-30deg); }
.d10-ok { margin-left: auto; font-size: .85rem; font-weight: 700; color: var(--muted); }
.d10-pl .d10-q { margin: 4px 0 10px; font-size: 1.15rem; }
.d10-hint { margin-bottom: 10px; padding: 6px 12px; border: 2px solid var(--gold-light); border-bottom-width: 3px; border-radius: 10px; background: #fff; font-family: inherit; font-weight: 700; font-size: .85rem; color: var(--ink); cursor: pointer; }
.d10-hintbox { margin-bottom: 10px; padding: 8px 12px; border-radius: 10px; background: #FFF8E6; border: 2px solid var(--gold-light); font-size: .9rem; color: var(--ink); }
.d10-pl .d10-opts { gap: 6px; }
.d10-pl .d10-opt { padding: 10px 12px; font-size: .95rem; display: flex; justify-content: space-between; }
.d10-why { margin: 10px 0 0; font-size: .9rem; line-height: 1.45; color: var(--muted); }
.d10-why b.ok { color: var(--green-deep); } .d10-why b.no { color: var(--red-deep); }
.d10-pl .d10-go { margin-top: 10px; }
.d10-snd { flex: none; }

/* Sound panel + switches (from quiz.css) */
.qz-sw { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.qz-sw + .qz-sw { border-top: 2px solid var(--line); }
.qz-sw span { display: flex; flex-direction: column; }
.qz-sw strong { font-size: .98rem; color: var(--ink); }
.qz-sw small { font-size: .8rem; color: var(--muted); line-height: 1.35; }
.qz-sw input { position: absolute; opacity: 0; pointer-events: none; }
.qz-sw i { position: relative; flex: none; width: 52px; height: 30px; border-radius: 999px; background: #D9D2C3; transition: background .2s; }
.qz-sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.15); transition: transform .25s cubic-bezier(.3,1.4,.5,1); }
.qz-sw input:checked + i { background: var(--green); }
.qz-sw input:checked + i::after { transform: translateX(22px); }
.qz-sw input:focus-visible + i { outline: 3px solid var(--gold); outline-offset: 2px; }
.snd-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.snd-btn svg { width: 18px; height: 18px; }
.snd-btn:hover { border-color: var(--line-dark); color: var(--ink); }
.snd-btn[aria-pressed="false"] { color: #B9AFA0; }
.snd-abs { position: absolute; right: 10px; top: 10px; z-index: 2; }
.lt-topr, .ak-topr { display: inline-flex; align-items: center; gap: 8px; }
.qz-vol { display: flex; align-items: center; gap: 10px; padding: 2px 0 12px; color: var(--muted); }
.qz-vol span { font-size: .85rem; font-weight: 700; color: var(--muted); margin-right: 2px; }
.qz-vol svg { flex: none; width: 18px; height: 18px; }
.qz-vol input { flex: 1; min-width: 0; height: 28px; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.qz-vol input::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--green) var(--v, 80%), var(--line) var(--v, 80%)); }
.qz-vol input::-moz-range-track { height: 8px; border-radius: 999px; background: var(--line); }
.qz-vol input::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--green); }
.qz-vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%; background: #fff; border: 2px solid var(--green); box-shadow: 0 2px 4px rgba(0,0,0,.18); }
.qz-vol input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--green); box-shadow: 0 2px 4px rgba(0,0,0,.18); }
.qz-vol input:disabled { opacity: .45; cursor: default; }
/* The tab bar sits in the page now (not pinned to the bottom). As a flex item its old z-index 40 still counted and slid it over the sticky header (z 20) on scroll. Keep it under the header. */
.qz-nav { z-index: 1; }

/* Sound panel (sound.js, Ethan 2026-11-11): the speaker button opens one small card with Music and Sound effects,
   each with its own switch and volume. Fixed so it works on the full screen games too. */
.qz-sndbtn { width: 40px; height: 40px; border-radius: 12px; margin-left: auto; }
.qz-sndbtn svg { width: 22px; height: 22px; }
.qz-sndbtn + .qz-setbtn { margin-left: 0; }
.snd-btn[aria-expanded="true"] { color: var(--blue); border-color: var(--blue); }
.snd-panel { position: fixed; z-index: 200; width: min(320px, calc(100vw - 32px)); box-sizing: border-box; background: #fff; border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 18px; padding: 8px 16px 4px; box-shadow: 0 14px 34px rgba(20, 42, 70, .18); animation: sndIn .18s ease-out; text-align: left; }
.snd-panel-h { display: flex; align-items: center; justify-content: space-between; padding: 2px 0 2px; }
.snd-panel-h strong { font-size: 1.05rem; color: var(--ink); }
.snd-panel-x { width: 36px; height: 36px; margin-right: -8px; border: 0; background: none; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; border-radius: 10px; }
.snd-panel-x:hover { color: var(--ink); }
.snd-panel .qz-sw + .qz-vol + .qz-sw { border-top: 2px solid var(--line); }
@keyframes sndIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .snd-panel { animation: none; } }
@media (max-width: 440px) {
  .qz-level { gap: 10px; }
  .qz-level .qz-sndbtn, .qz-level .qz-setbtn { width: 36px; height: 36px; }
  .qz-level .qz-sndbtn + .qz-setbtn { margin-left: -4px; }
}

/* Floating music notes around the speaker button while music plays (Ethan 2026-11-11). Subtle, gold, never in the way. */
.snd-btn { position: relative; overflow: visible; }
.snd-btn.mus-on::before, .snd-btn.mus-on::after { position: absolute; pointer-events: none; font-size: 12px; line-height: 1; color: var(--gold); opacity: 0; }
.snd-btn.mus-on::before { content: "\266A"; top: -4px; right: -5px; animation: musNoteR 3s ease-in-out infinite; }
.snd-btn.mus-on::after { content: "\266B"; top: -2px; left: -6px; animation: musNoteL 3s ease-in-out 1.5s infinite; }
@keyframes musNoteR { 0% { opacity: 0; transform: translate(0, 6px) scale(.7) rotate(0); } 25% { opacity: .8; } 100% { opacity: 0; transform: translate(6px, -14px) scale(1) rotate(14deg); } }
@keyframes musNoteL { 0% { opacity: 0; transform: translate(0, 6px) scale(.7) rotate(0); } 25% { opacity: .7; } 100% { opacity: 0; transform: translate(-6px, -14px) scale(1) rotate(-14deg); } }
@media (prefers-reduced-motion: reduce) { .snd-btn.mus-on::before, .snd-btn.mus-on::after { animation: none; opacity: .7; transform: none; } }
.snd-note { margin: 0 0 10px; padding: 8px 10px; border-radius: 10px; background: #FBF6EA; color: var(--muted); font-size: .8rem; line-height: 1.4; }
/* More obvious (Ethan 2026-11-11): same size, full color, a deeper gold, quicker and farther float, gold ring on the button */
.snd-btn.mus-on { border-color: var(--gold); color: #9C7424; }
.snd-btn.mus-on::before, .snd-btn.mus-on::after { color: #B8862E; text-shadow: 0 0 6px rgba(201, 164, 92, .55); }
.snd-btn.mus-on::before { animation-duration: 2.2s; }
.snd-btn.mus-on::after { animation-duration: 2.2s; animation-delay: 1.1s; }
@keyframes musNoteR { 0% { opacity: 0; transform: translate(0, 6px) scale(.7) rotate(0); } 15% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(8px, -20px) scale(1) rotate(14deg); } }
@keyframes musNoteL { 0% { opacity: 0; transform: translate(0, 6px) scale(.7) rotate(0); } 15% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-8px, -20px) scale(1) rotate(-14deg); } }
@media (prefers-reduced-motion: reduce) { .snd-btn.mus-on::before, .snd-btn.mus-on::after { opacity: 1; } }

/* Question types beyond 4 choices */
.d10-q.d10-emo { font-size: 2rem; letter-spacing: 4px; text-align: center; }
.d10-clues { margin: 0 0 10px; padding-left: 22px; display: grid; gap: 4px; font-size: .95rem; color: var(--ink); }
.d10-clues li { padding: 6px 10px; border-radius: 10px; background: var(--cream); animation: d10-fade .35s ease; }
.d10-slots { display: grid; gap: 6px; margin-bottom: 10px; }
.d10-slot { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 2px dashed var(--line-dark); border-radius: 12px; background: var(--paper); font-family: inherit; font-size: .92rem; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; }
.d10-slot b { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--line); font-size: .8rem; color: var(--muted); }
.d10-slot.full { border-style: solid; border-color: var(--blue); background: #fff; }
.d10-slot.full b { background: var(--blue); color: #fff; }
.d10-slot.right { border-style: solid; border-color: var(--green); background: var(--green-bg); color: var(--green-deep); cursor: default; }
.d10-slot.right b { background: var(--green); color: #fff; }
.d10-slot:disabled { cursor: default; }
.d10-pool { display: grid; gap: 6px; }
.d10-ordnote { margin: 4px 0 0; font-size: .85rem; color: var(--muted); }
.d10-ok { display: inline-flex; align-items: center; }
.d10-ok .d10-ck { width: 16px; height: 16px; margin-right: 4px; } .d10-ok .d10-ck::after { width: 6px; height: 3px; border-width: 0 0 2px 2px; }
.d10-full { display: block; width: fit-content; margin: 14px auto 0; }
.d10-st .d10-full, .d10-lbwrap .d10-full { margin-left: 4px; }
.d10-place[hidden] { display: none; }

.d10-sq { white-space: nowrap; font-size: 1.05rem; letter-spacing: 1px; }
.d10-ordhelp { margin: -4px 0 10px; font-size: .85rem; color: var(--muted); }
.d10 { scroll-margin-top: 96px; }
.gm-title + .gm-tabs.three { margin-top: 18px; }

/* Smooth play (2026-11-23): only opacity and transform animate, so it stays light on phones */
.d10-bar .d10-ok { margin-left: 2px; }
.d10-ok.bump .d10-okn { display: inline-block; animation: d10-bump .4s cubic-bezier(.3,1.6,.5,1); }
.d10-ok { position: relative; }
.d10-ok .d10-plus { position: absolute; right: -18px; top: -6px; }
.d10-prog i { transition: background-color .35s ease; }
.d10-opt, .d10-slot, .d10-hint, .d10-ref { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.d10-opt { transition: background-color .25s ease, border-color .25s ease, color .25s ease, opacity .3s ease, transform .15s ease; }
.d10-opt:active:not(:disabled), .d10-slot:active:not(:disabled), .d10-hint:active:not(:disabled) { transform: scale(.97); }
.d10-opt.right { animation: d10-good .45s cubic-bezier(.3,1.5,.5,1); }
.d10-opt.wrong { animation: d10-shake .38s ease; }
.d10-opt.dim { opacity: .5; }
.d10-opt > span { display: inline-block; animation: d10-mark .35s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes d10-good { 45% { transform: scale(1.03); } }
@keyframes d10-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@keyframes d10-mark { from { transform: scale(0); opacity: 0; } }
.d10-after { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .34s cubic-bezier(.2,.8,.2,1); }
.d10-after > div { min-height: 0; overflow: hidden; opacity: 0; transform: translateY(8px); transition: opacity .3s ease .08s, transform .3s ease .08s; }
.d10-after.open { grid-template-rows: 1fr; }
.d10-after.open > div { opacity: 1; transform: none; }
.d10-after .d10-why { margin-top: 12px; }
.d10-body.out { opacity: 0; transform: translateX(-14px); transition: opacity .16s ease-in, transform .16s ease-in; }
.d10-body.in { animation: d10-glide .32s cubic-bezier(.2,.8,.2,1); }
@keyframes d10-glide { from { opacity: 0; transform: translateX(18px); } }
.d10-pl.d10-easing { transition: height .3s cubic-bezier(.2,.8,.2,1); }
.d10-card.d10-fadein { animation: d10-rise .38s cubic-bezier(.2,.8,.2,1); }
@keyframes d10-rise { from { opacity: 0; transform: translateY(10px); } }
.d10-hint { transition: opacity .2s ease, transform .2s ease; }
.d10-hint.gone { opacity: 0; transform: scale(.92); pointer-events: none; }
.d10-hintbox { animation: d10-fade .3s ease; }
.d10-ref { transition: background-color .2s ease, border-color .2s ease; }
.d10-slot { transition: background-color .25s ease, border-color .25s ease, transform .15s ease; }
.d10-slot.pop { animation: d10-good .32s cubic-bezier(.3,1.5,.5,1); }
.d10-slot.right { animation: d10-fade .35s ease; }
@media (prefers-reduced-motion: reduce) {
  .d10-opt, .d10-slot, .d10-after, .d10-after > div, .d10-body, .d10-card, .d10-hintbox, .d10-ok .d10-okn, .d10-opt > span { animation: none !important; transition: none !important; }
}
