/* Shared study cards: the admin preview uses these same rules. */
.vl-section { background: #fffaf0; border: 1px solid #dca356; border-radius: 14px; padding: 20px; margin: 0 0 18px; color: #493420; }
.vl-section h3, .vl-section > summary { font-size: 17px; font-weight: 750; margin: 0 0 12px; color: #875528; }
.vl-section > summary { cursor: pointer; margin-bottom: 0; }
.vl-section[open] > summary { margin-bottom: 16px; }
.vl-block { min-width: 0; border-left: 3px solid #dca356; padding: 10px 16px; margin: 14px 0; overflow-wrap: anywhere; }
.vl-block h4 { font-size: 14px; color: #876140; margin: 0 0 8px; }
.vl-field { margin: 6px 0; white-space: pre-wrap; line-height: 1.65; }
.vl-ko { font-size: 22px; font-weight: 650; line-height: 1.6; }
.vl-block mark { color: #164633; background: #def0cb; padding: 1px 3px; border-radius: 3px; }
.vl-image { display: block; max-width: min(100%,320px); max-height: 240px; object-fit: contain; margin: 10px 0; }
.vl-listen, .vl-related, .vl-practice { font: inherit; padding: 8px 12px; border: 1px solid #d8ac71; border-radius: 8px; background: #fff6e4; color: #4b402b; cursor: pointer; min-height: 40px; white-space: normal; text-align: left; }
.vl-related { color: #24623d; }
.vl-field-label { font-size: 14px; color: #91624c; }
.vl-hint { padding: 12px; margin: 10px 0; background: #fff3cc; border: 1px solid #dab467; border-radius: 8px; color: #493420; overflow-wrap: anywhere; }
.vl-hint p { white-space: pre-wrap; margin: 8px 0; line-height: 1.6; }
.vl-block small { display: block; margin-top: 8px; }
#vff-learning-content { min-width: 0; }
#vff-practice-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
#vff-romanization[hidden], #vff-word-type[hidden], .vff-section[hidden] { display: none !important; }
#vff-reading-support summary { cursor: pointer; }
#vff-reading-support .vff-section-title { margin-bottom: 18px; }
#vff-reading-support #vff-romanization { margin: 12px 0; }
#vff-word-type { display: inline-block; padding: 4px 10px; background: #f1ebd7; border-radius: 6px; margin-top: 8px; }
.vl-pixel-icon { display: inline-block; width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; flex: 0 0 auto; vertical-align: middle; pointer-events: none; }
.vl-listen, #quiz-listen-replay, #submit-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
#quiz-ko-speak .vl-pixel-icon, #vff-word-audio .vl-pixel-icon, #vff-example-speak .vl-pixel-icon { width: 28px; height: 28px; }
#quiz-phase-icon .vl-pixel-icon { width: 36px; height: 36px; }
#quiz-tier-hints { gap: 10px; margin: 14px 0; }
#quiz-tier-hints .quiz-tier-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; max-width: 100%; padding: 8px 12px;
  font: 700 14px/1.4 'Be Vietnam Pro', sans-serif; font-size-adjust: none;
  color: #66411e; background: linear-gradient(#fff9e9, #f7e8be);
  border: 2px solid #b88b4b; border-radius: 8px;
  box-shadow: inset 0 2px #fffdf5, 0 3px 0 #99703e; cursor: pointer;
}
#quiz-tier-hints .quiz-tier-btn[hidden] { display: none; }
#quiz-tier-hints .quiz-tier-btn:hover:not(:disabled) { background: #fff4ce; border-color: #865a29; }
#quiz-tier-hints .quiz-tier-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 2px #fffdf5, 0 1px 0 #99703e; }
#quiz-tier-hints .quiz-tier-btn:disabled { opacity: .6; cursor: wait; }
.vl-hint-button-label { min-width: 0; text-align: left; }
.vl-hint-price { display: inline-flex; align-items: center; gap: 2px; padding: 3px 6px; margin-left: 2px; border-radius: 5px; background: #ead5a3; color: #5f3d17; white-space: nowrap; font-size: 12px; }
.vl-hint-price .vl-pixel-icon { width: 22px; height: 22px; }
#quiz-tier-hints .vl-hint-owned { background: #edf2d9; border-color: #879c5e; box-shadow: inset 0 2px #fafdef, 0 3px 0 #697b48; }
.vl-hint-owned .vl-hint-price { background: #dbe5c3; color: #42572d; }
#quiz-hint-reveal-card {
  padding: 16px; margin: 16px 0; color: #513921; text-align: left;
  background: #fff9e9; border: 2px solid #b88b4b; border-radius: 10px;
  box-shadow: inset 0 2px #fffdf5, 0 3px 0 #d5b67e;
  font: 500 16px/1.6 'Be Vietnam Pro', sans-serif; font-size-adjust: none;
}
.vl-hint-heading { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid #e5d2a8; }
.vl-hint-heading h3 { font: 800 16px/1.4 'Be Vietnam Pro', sans-serif; margin: 0; color: #66411e; }
.vl-hint-free { font: 600 12px/1.5 'Be Vietnam Pro', sans-serif; color: #5b7140; margin-left: auto; }
#quiz-hint-reveal-card .vl-hint { font-size: 18px; text-align: left; border: 0; padding: 4px 0; margin: 10px 0 0; background: transparent; }
#quiz-hint-reveal-card .vl-hint p:empty { display: none; }
.vl-audio-cue { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding-top: 16px; }
.vl-audio-cue p { margin: 0; font-size: 14px; line-height: 1.6; }
.vl-sound-bars { display: flex; align-items: center; justify-content: center; gap: 4px; width: 52px; height: 42px; }
.vl-sound-bars i { display: block; background: #96a969; width: 4px; height: 10px; }
.vl-sound-bars i:nth-child(2n) { height: 22px; }
.vl-sound-bars i:nth-child(3n) { height: 30px; }
.vl-sound-bars i:nth-child(4) { height: 40px; background: #688347; }
#quiz-hint-reveal-card .vl-audio-replay, #quiz-hint-reveal-card [data-hint-replay] {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px;
  padding: 6px 12px; margin: 0; border: 1px solid #ad8a50; border-radius: 6px;
  background: #f5e8c6; color: #60421f; font: 700 14px/1.5 'Be Vietnam Pro', sans-serif; cursor: pointer;
}
#quiz-hint-reveal-card .vl-audio-replay { background: #e5eccf; border: 2px solid #81985b; color: #40572e; box-shadow: 0 2px #9bad7c; white-space: nowrap; }
#quiz-hint-reveal-card button:hover { filter: brightness(1.04); }
.vl-letter-cue { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 4px; }
.vl-letter-tile { display: inline-grid; place-items: center; min-width: 42px; height: 48px; padding: 0 4px; border: 2px solid #c49b60; border-radius: 5px; box-shadow: 0 2px #e0c594; background: #fffdf4; color: #614124; font: 750 28px/1.2 'Noto Sans KR', sans-serif; }
.vl-letter-space { width: 10px; }
.vl-hint-history { border-top: 1px dashed #ccb380; margin-top: 18px; padding-top: 12px; }
.vl-hint-history > p { margin: 0 0 8px; font: 600 12px/1.5 'Be Vietnam Pro', sans-serif; color: #796244; }
.vl-hint-replays { display: flex; flex-wrap: wrap; gap: 8px; }
#quiz-hint-reveal-card [data-hint-replay] { background: #fffaf0; border-color: #d7c197; font-size: 12px; }
#quiz-hint-reveal-card [data-hint-replay] .vl-pixel-icon { width: 24px; height: 24px; }
#quiz-hint-reveal-card [data-hint-replay][aria-pressed="true"] { background: #e8edda; border-color: #8b9e68; color: #40572e; box-shadow: inset 0 -2px #bfcca2; }
#quiz-tier-hints button:focus-visible, #quiz-hint-reveal-card button:focus-visible, .vl-listen:focus-visible { outline: 3px solid #386f91; outline-offset: 3px; }
body.close-view #quiz-tier-hints .quiz-tier-btn { font-size: 16px; }
body.close-view .vl-hint-heading h3 { font-size: 18px; }
body.close-view .vl-audio-cue p { font-size: 16px; }
body.close-view #quiz-ui { scroll-padding-top: 86px; scroll-padding-bottom: 90px; }
@media(max-width:600px) {
  #quiz-tier-hints { justify-content: flex-start; gap: 8px; }
  #quiz-tier-hints .quiz-tier-btn, body.close-view #quiz-tier-hints .quiz-tier-btn { flex: 1 1 145px; font-size: 13px; padding: 8px; }
  #quiz-tier-hints .quiz-tier-btn > .vl-pixel-icon { width: 26px; height: 26px; }
  #quiz-hint-reveal-card { padding: 12px; }
  .vl-hint-free { margin-left: 40px; flex-basis: 100%; margin-top: -6px; }
  .vl-audio-cue { grid-template-columns: auto 1fr; gap: 10px; }
  #quiz-hint-reveal-card .vl-audio-replay { grid-column: 1 / -1; }
  body.close-view #submit-btn, body.close-view #cancel-btn { font-size: 18px; padding: 10px 8px; }
}
@media(max-width:600px) { .vl-section { padding: 15px; } .vl-ko { font-size: 20px; } .vl-block { padding: 8px 11px; } }
