/* Quest layer for unit practice (grades 1-12) */
.q-hud { margin: 0 0 8px; }
.q-path { list-style: none; display: flex; gap: 6px; padding: 18px 4px 6px; margin: 0; justify-content: center; position: relative; }
.q-path::before { content: ""; position: absolute; left: 8%; right: 8%; top: 36px; height: 4px; background: repeating-linear-gradient(90deg, #d9a066 0 10px, transparent 10px 18px); z-index: 0; }
.q-stop { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 3px solid #e3d7bf; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #8a7a5c; transition: transform .25s; }
.q-stop.is-ok { background: #3f8f6b; border-color: #2f7d55; color: #fff; }
.q-stop.is-miss { background: #f3ead3; }
.q-stop.is-here { transform: scale(1.22); border-color: #f4c15d; box-shadow: 0 0 0 5px rgba(244,193,93,.3); color: #1c2b24; }
.q-stop.is-gold { border-color: #e0a12b; background: linear-gradient(#fff3c4, #ffd76a); color: #6b4a00; }
.q-stop.is-boss { width: 44px; height: 44px; border-color: #e85d4c; background: #ffe1dc; color: #a3271a; font-size: 18px; }
.q-stop img { position: absolute; width: 34px; height: 34px; top: -30px; left: 50%; margin-left: -17px; object-fit: contain; animation: q-bob 1.2s ease-in-out infinite; }
@keyframes q-bob { 50% { transform: translateY(-5px); } }
.q-meta { display: flex; justify-content: center; gap: 10px; align-items: center; min-height: 30px; flex-wrap: wrap; }
.q-score { font-weight: 800; background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 2px 12px; }
.q-flame { font-weight: 800; border-radius: 999px; padding: 2px 12px; background: linear-gradient(90deg, #ffb347, #ff6a3d); color: #fff; animation: q-flick .5s ease-in-out infinite alternate; }
.q-flame-4, .q-flame-5 { box-shadow: 0 0 14px rgba(255,106,61,.7); }
@keyframes q-flick { to { transform: scale(1.06) rotate(-1deg); } }
.q-tagrow { text-align: center; min-height: 0; margin: 0 0 6px; }
.q-tag { display: inline-block; font-weight: 800; border-radius: 999px; padding: 4px 14px; animation: q-in .5s cubic-bezier(.3,1.6,.5,1); }
.q-tag-gold { background: linear-gradient(90deg, #ffe58a, #f4c15d); color: #5a3d00; }
.q-tag-boss { background: #e85d4c; color: #fff; }
.play-main.is-gold { box-shadow: 0 0 0 4px #f4c15d inset; border-radius: 22px; }
.play-main.is-boss { box-shadow: 0 0 0 4px #e85d4c inset; border-radius: 22px; }
.q-in { animation: q-in .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes q-in { from { transform: scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
.q-choice { animation: q-in .4s cubic-bezier(.3,1.6,.5,1) both; transition: transform .1s; }
.q-choice:active { transform: scale(.94); }
.choice.is-right { background: #3f8f6b !important; color: #fff !important; border-color: #2f7d55 !important; }
.choice.is-wrong { opacity: .45; text-decoration: line-through; }
.choice.is-answer { outline: 4px solid #3f8f6b; }
.q-pop { animation: q-pop .45s cubic-bezier(.3,1.8,.5,1); }
@keyframes q-pop { 40% { transform: scale(1.12); } }
.q-shake { animation: q-shake .45s; }
@keyframes q-shake { 20% { transform: translateX(-9px); } 40% { transform: translateX(9px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
.q-float { position: absolute; z-index: 60; pointer-events: none; font-weight: 900; font-size: 26px; color: #e0a12b; text-shadow: 0 2px 0 #fff; transform: translateX(-50%); animation: q-float 1s ease-out forwards; }
@keyframes q-float { to { transform: translate(-50%, -70px); opacity: 0; } }
.q-chest { position: relative; width: 110px; height: 90px; margin: 4px auto 0; }
.q-box { position: absolute; left: 5px; right: 5px; bottom: 0; height: 52px; background: #a86a32; border: 4px solid #5a3a1c; border-radius: 8px; }
.q-box::after { content: ""; position: absolute; left: 50%; top: 8px; width: 16px; height: 18px; margin-left: -8px; background: #f4c15d; border-radius: 4px; border: 2px solid #5a3a1c; }
.q-lid { position: absolute; left: 0; right: 0; top: 10px; height: 34px; background: #c98b3c; border: 4px solid #5a3a1c; border-radius: 18px 18px 6px 6px; transform-origin: 10% 100%; z-index: 2; }
.q-chest.is-open .q-lid { animation: q-lid .8s .3s cubic-bezier(.3,1.6,.5,1) forwards; }
@keyframes q-lid { to { transform: rotate(-38deg) translate(-6px, -10px); } }
.q-glow { position: absolute; left: 50%; top: 30px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #ffe58a; opacity: 0; }
.q-chest.is-open .q-glow { animation: q-glow 1.2s .5s ease-out forwards; }
@keyframes q-glow { to { opacity: .9; transform: scale(9); background: radial-gradient(#fff6c4, transparent 70%); } }
.q-stars { font-size: 2.6rem; color: #e0a12b; letter-spacing: 6px; margin: 4px 0; text-align: center; }
.q-off { color: #d8ccb2; }
.q-level { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-weight: 800; margin: 10px 0; }
.q-bar { height: 14px; border-radius: 999px; background: #eee3cb; overflow: hidden; }
.q-bar span { display: block; height: 100%; background: linear-gradient(90deg, #3f8f6b, #7cc576); border-radius: 999px; transition: width 1s; }
.q-card { display: flex; gap: 12px; align-items: center; border: 3px solid #f4c15d; border-radius: 18px; padding: 10px 14px; background: #fffbea; margin: 10px 0; }
.q-card img { width: 70px; height: 70px; object-fit: contain; }
.q-card p { margin: 0; }
.q-card.is-new { animation: q-in .6s cubic-bezier(.3,1.6,.5,1); }
.q-daily { font-weight: 800; color: #1f5c45; }
html[data-band="g68"] .q-stop img, html[data-band="g912"] .q-stop img { display: none; }
html[data-band="g912"] .q-stop { border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { .q-flame, .q-stop img, .q-choice, .q-tag { animation: none !important; } }
.arcade-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 70; }
.q-card, .q-card p, .q-card strong { color: #1c2b24; } .q-card .fine { color: #4b5e55; }
#choices.acorn-field, #choices.big-choices, #choices.berry-row, #choices.cone-row { display: flex; flex-wrap: wrap; justify-content: center; }
#choices.choice-row:not(.acorn-field):not(.big-choices):not(.berry-row):not(.cone-row) { grid-template-columns: 1fr 1fr; }
.game-card-quest { background: linear-gradient(135deg, #fff3c4, #ffffff); border: 3px solid #e0a12b; }
.game-card-quest h3::before { content: "⚑ "; }
