/* Word quiz (owner 10/18). Dark theme, phone first; one screen per question. */
.word-quiz { display: grid; gap: 12px; max-width: 560px; margin: 0 auto; padding: 12px 16px 28px; color: #f4f0e7; }
.word-quiz-top { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; position: relative; padding: 10px 14px; border: 1px solid #343a43; border-radius: 14px; background: #22262d; }
.word-quiz-top span { display: block; color: #c4cad2; font: 600 12px/1.2 system-ui, sans-serif; }
.word-quiz-top strong { font: 800 18px/1.2 system-ui, sans-serif; }
.word-quiz-score { text-align: right; }
.word-quiz-score strong { color: #f0c35c; }
.word-quiz-combo { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; background: #e6b54a; color: #161208; font: 900 14px/1 system-ui, sans-serif; white-space: nowrap; }
.word-quiz-combo.pop { animation: word-quiz-pop .32s ease-out; }
@keyframes word-quiz-pop { 0% { transform: translateX(-50%) scale(.6); } 60% { transform: translateX(-50%) scale(1.25); } 100% { transform: translateX(-50%) scale(1); } }
/* 록대리 10/18: one fixed card height for every question type so the answer buttons never move. */
.word-quiz-card { display: grid; grid-template-rows: auto 1fr; gap: 10px; height: 236px; align-items: center; padding: 14px 16px; border: 1px solid #343a43; border-radius: 16px; background: #1f232a; text-align: center; overflow: hidden; box-sizing: border-box; }
.word-quiz-card p { margin: 0; font: 600 20px/1.4 system-ui, sans-serif; }
.word-quiz-card img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 12px; background: #15181d; }
.word-quiz-kicker { color: #e6b54a; font: 800 12px/1.2 system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.word-quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.word-quiz-options button { min-height: 56px; padding: 8px 10px; border: 1px solid #3a414b; border-radius: 12px; background: #262b33; color: #f4f0e7; font: 700 17px/1.2 Georgia, serif; cursor: pointer; }
.word-quiz-options button:disabled { cursor: default; }
.word-quiz-options .word-quiz-next { grid-column: 1 / -1; min-height: 48px; border-color: #e6af37; background: rgba(230, 175, 55, .16); color: #f3cf74; font: 700 16px/1.2 system-ui, sans-serif; }
.word-quiz-options button.is-correct { border-color: #79c894; background: rgba(121, 200, 148, .22); }
.word-quiz-options button.is-wrong { border-color: #d45757; background: rgba(212, 87, 87, .22); }
.word-quiz-result { text-align: center; }
.word-quiz-final { font: 800 56px/1 Georgia, serif; color: #f0c35c; }
.word-quiz-stats, .word-quiz-note, .word-quiz-perfect { margin: 0; color: #c4cad2; font-size: 14px; }
.word-quiz-missed { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.word-quiz-missed span { width: 100%; color: #c4cad2; font-size: 13px; }
.word-quiz-missed b { padding: 4px 10px; border: 1px solid rgba(230, 181, 74, .45); border-radius: 999px; background: rgba(230, 181, 74, .1); color: #ffe7a7; font: 600 13px/1.2 system-ui, sans-serif; }
.word-quiz-primary { min-height: 50px; padding: 0 20px; border: 0; border-radius: 12px; background: #e6b54a; color: #161208; font: 800 16px/1 system-ui, sans-serif; cursor: pointer; }
.word-quiz-primary:disabled { opacity: .75; cursor: default; }
.word-quiz-boards { display: grid; gap: 12px; text-align: left; }
.word-quiz-boards section { padding: 12px 14px; border: 1px solid #343a43; border-radius: 14px; background: #22262d; }
.word-quiz-boards h3 { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 8px; font: 800 15px/1.2 system-ui, sans-serif; }
.word-quiz-boards small { color: #e6b54a; font: 600 12px/1 system-ui, sans-serif; }
.word-quiz-board { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.word-quiz-board li { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; font-size: 14px; }
.word-quiz-board b { color: #e6b54a; }
.word-quiz-board em { font-style: normal; color: #f0c35c; font-weight: 700; }
.word-quiz-board-empty, .word-quiz-empty { margin: 0; color: #aeb7c2; font-size: 13px; }
.word-quiz-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.word-quiz-links button { min-height: 44px; padding: 0 16px; border: 1px solid rgba(230, 181, 74, .7); border-radius: 999px; background: transparent; color: #f0c35c; font: 700 14px/1 system-ui, sans-serif; cursor: pointer; }
@media (min-width: 981px) {
  .word-quiz-boards { grid-template-columns: 1fr 1fr; }
}

/* v2 (owner 10/18 "plain, too tight"; 록대리's staging): photo backgrounds, reveal, slots, sounds. */
.word-quiz-top { grid-template-columns: 1fr auto auto; }
.word-quiz-mute { width: 40px; height: 40px; border: 1px solid #3a414b; border-radius: 999px; background: #1a1e24; font-size: 18px; cursor: pointer; }
.word-quiz-slots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin: 0; padding: 0; list-style: none; }
.word-quiz-slots li { aspect-ratio: 1; border: 2px solid #2f353e; border-radius: 8px; background: #1a1e24 center / cover no-repeat; transition: border-color .2s ease, transform .2s ease; }
.word-quiz-slots li.is-hit { border-color: #79c894; transform: scale(1.04); }
.word-quiz-slots li.is-chain { border-color: #e6b54a; box-shadow: 0 0 0 1px #e6b54a; }
.word-quiz-slots li.is-miss { background: #2a2e35; border-color: #3a414b; opacity: .55; }
.word-quiz-card { position: relative; isolation: isolate; }
.word-quiz-card > *:not(.word-quiz-bg) { position: relative; z-index: 1; }
.word-quiz-bg { position: absolute; inset: 0; z-index: 0; background: #15181d center / cover no-repeat; filter: blur(10px) brightness(.42); transform: scale(1.08); transition: filter .3s ease, transform .3s ease; }
.word-quiz-card.is-scene .word-quiz-bg { filter: none; transform: none; }
/* 지과장 10/18: definition questions show no photo until the answer is in. */
.word-quiz-card:not(.is-scene):not(.is-revealed) .word-quiz-bg { background-image: none !important; }
.word-quiz-card.is-scene { align-content: start; }
.word-quiz-card.is-scene .word-quiz-kicker { justify-self: center; padding: 4px 10px; border-radius: 999px; background: rgba(10, 12, 16, .72); }
.word-quiz-card p { text-shadow: 0 2px 8px rgba(0, 0, 0, .7); }
.word-quiz-reveal { display: none; }
.word-quiz-card.is-revealed .word-quiz-bg { filter: blur(0) brightness(.62); transform: scale(1); }
.word-quiz-card.is-revealed > .word-quiz-kicker, .word-quiz-card.is-revealed > p { display: none; }
.word-quiz-card.is-revealed .word-quiz-reveal { display: grid; gap: 4px; justify-items: center; align-self: center; grid-row: 1 / -1; animation: word-quiz-flip .32s ease-out; }
.word-quiz-reveal strong { font: 700 34px/1.1 Georgia, serif; color: #ffe7a7; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.word-quiz-reveal span { color: #f4f0e7; font-size: 15px; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.word-quiz-reveal em { font: 900 13px/1 system-ui, sans-serif; font-style: normal; color: #161208; background: #e6b54a; border-radius: 999px; padding: 4px 10px; }
@keyframes word-quiz-flip { 0% { transform: rotateX(90deg); opacity: 0; } 100% { transform: rotateX(0); opacity: 1; } }
/* 록대리 10/18: the old 6px / .25s shake was invisible on a phone. */
.word-quiz-card.is-shake { animation: word-quiz-shake .42s ease-in-out; }
@keyframes word-quiz-shake { 0%, 100% { transform: translateX(0); } 15% { transform: translateX(-14px); } 35% { transform: translateX(12px); } 55% { transform: translateX(-9px); } 75% { transform: translateX(6px); } 90% { transform: translateX(-3px); } }
.word-quiz-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.word-quiz-cards figure { margin: 0; display: grid; gap: 4px; }
.word-quiz-cards figure span { aspect-ratio: 4 / 3; border-radius: 8px; border: 2px solid #79c894; background: #1a1e24 center / cover no-repeat; }
.word-quiz-cards figure.is-miss span { border-color: #3a414b; filter: grayscale(1) brightness(.5); }
/* 록대리 10/18: long words (Acrimonious) were cut off; allow two lines and break inside the word. */
.word-quiz-cards figcaption { font: 700 10px/1.2 system-ui, sans-serif; color: #e6e9ee; text-align: center; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.word-quiz-cards figure.is-miss figcaption { color: #8c939c; text-decoration: line-through; }
