/* 카드 한 장 = 한 화면(H165·H156·H159, 2026-11-14). 화면 코드 src/ui/screens/learn/card-one.js.
   틀: 머리줄(뒤로 · 카드 제목) → 무대 띠 96(친구 64 · 카드 n / N · 등불) → 이야기 → 짐작 칩 48 → 해 보기 → [확인] 뒤 짐작 한 줄 · 핵심 · 조심!.
   글자는 아이 단계 13·15·17·19·24만, 여백 8·12·16·24, 누르는 곳 48 이상. 움직임은 0.4초 한 번(움직임 줄이기면 없음). */

/* 머리줄: 가운데 제목이 넓게(오른쪽 구석 친구는 무대 띠로 옮김) */
.screen.learn[data-card-one] .learn-top { grid-template-columns: 48px minmax(0, 1fr) 48px; }
.c1-top { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.c1-top__title.learn-title { margin: 0; font-size: 19px; line-height: 1.3; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c1-top .ui-dots { justify-content: center; }

/* 무대 띠 */
.c1-band { position: relative; flex: 0 0 auto; height: var(--c1-band-h, 96px); border-radius: var(--r-l, 16px); border: 1px solid var(--line); overflow: hidden; background: var(--sheet); isolation: isolate; }
.c1-band__bg { position: absolute; inset: 0; z-index: -1; background: center 70% / cover no-repeat; filter: brightness(.5) saturate(.8); }
.c1-band[data-theme="math"] .c1-band__bg { background-image: url("../assets/stage/theme-math.webp"); }
.c1-band[data-theme="language"] .c1-band__bg { background-image: url("../assets/stage/theme-language.webp"); }
.c1-band[data-theme="science"] .c1-band__bg { background-image: url("../assets/stage/theme-science.webp"); }
.c1-band[data-theme="world"] .c1-band__bg { background-image: url("../assets/stage/theme-world.webp"); }
.c1-band__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 17, 40, .35), rgba(10, 17, 40, .1) 55%, rgba(10, 17, 40, .55)); }
.c1-band__friend { position: absolute; left: 12px; bottom: 4px; width: var(--c1-friend, 64px); height: var(--c1-friend, 64px); }
.c1-band__friend .rx-pic { display: block; width: 100%; height: 100%; }
.c1-band__count { position: absolute; left: calc(var(--c1-friend, 64px) + 20px); top: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(10, 17, 40, .78); color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.4; }
.c1-band__say { position: absolute; left: calc(var(--c1-friend, 64px) + 24px); right: 12px; top: 50%; transform: translateY(-50%); margin: 0; padding: 8px 12px; border-radius: 16px; border: 1.5px solid var(--lamp); background: rgba(23, 36, 90, .94); color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.4; }
.c1-band__say::before { content: ""; position: absolute; left: -8px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: inherit; border-left: 1.5px solid var(--lamp); border-bottom: 1.5px solid var(--lamp); transform: rotate(45deg); }
.c1-lamps { position: absolute; right: 8px; bottom: 4px; display: flex; align-items: flex-end; gap: 2px; height: 64px; }
.c1-lamp { position: relative; width: 26px; height: 64px; display: block; }
.c1-lamp img { position: absolute; left: 50%; bottom: 0; width: 64px; height: 64px; transform: translateX(-50%); max-width: none; }
.c1-lamp.is-on img { filter: drop-shadow(0 0 6px var(--lamp-glow)) drop-shadow(0 0 2px var(--lamp)); }
.c1-lamp.is-now::after { content: ""; position: absolute; left: 50%; bottom: -3px; width: 14px; height: 3px; margin-left: -7px; border-radius: 2px; background: var(--lamp); }
.c1-lamp.is-lighting img { animation: c1-light .4s ease-out 1; }
@keyframes c1-light { from { opacity: .35; } to { opacity: 1; } }

/* 이야기 · 읽기 카드 표시 */
.c1-story .ui-card__body { display: flex; flex-direction: column; gap: 8px; }
.c1-tag { align-self: flex-start; display: inline-block; margin: 0; padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--mute); font-size: 13px; line-height: 1.5; }
.c1-tag--alone { margin-top: 4px; }

/* 짐작해 봐요 */
.c1-h { margin: 0; font-family: var(--f-head); font-size: 17px; font-weight: 700; line-height: 1.4; }
.c1-guess { display: flex; flex-direction: column; gap: 8px; }
.c1-guess__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; }
.c1-guess__q { margin: 0; }
.c1-dunno { min-height: 48px; padding: 0 8px; border: 0; background: none; color: var(--lamp); font: inherit; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.c1-dunno.is-picked { text-decoration-thickness: 3px; }
.c1-dunno[aria-disabled="true"] { color: var(--off-ink); cursor: default; }
.c1-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.c1-chip { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 48px; padding: 4px 8px; border-radius: 12px; border: 2px solid var(--line-strong); background: var(--surface-2); color: var(--ink); font: inherit; font-size: 17px; font-weight: 700; line-height: 1.3; text-align: center; cursor: pointer; overflow-wrap: anywhere; }
.c1-chip__mark:empty { display: none; }
.c1-chip__mark .ui-icon, .c1-chip__mark svg { width: 18px; height: 18px; }
.c1-chip.is-picked { border-color: var(--lamp); background: color-mix(in srgb, var(--lamp) 16%, var(--surface-2)); }
.c1-chip.is-answer { border-color: var(--c-science); background: color-mix(in srgb, var(--c-science) 14%, var(--surface-2)); }
.c1-chip.is-dim { opacity: .55; }
.c1-chip[aria-disabled="true"] { cursor: default; }

/* 해 보기 */
.c1-try { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--r-l, 16px); border: 1px solid var(--line); background: var(--panel); }
.c1-try__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.c1-try__done { display: inline-flex; align-items: center; gap: 4px; color: var(--c-science); font-size: 15px; font-weight: 700; }
.c1-try__done[hidden] { display: none; }
.c1-try__done svg { width: 16px; height: 16px; }
.c1-try .learn-widget { margin: 0; }
.c1-try.is-done .learn-hint, .c1-try.is-done .learn-replay { display: none; }

/* 확인 뒤 열리는 칸 */
.c1-open { display: flex; flex-direction: column; gap: 12px; }
.c1-open:empty { display: none; }
.c1-guessline { display: flex; align-items: center; gap: 4px; margin: 0; color: var(--mute); font-size: 15px; line-height: 1.45; }
.c1-guessline.is-ok { color: var(--c-science); font-weight: 700; }
.c1-guessline svg { width: 16px; height: 16px; flex: 0 0 auto; }
.c1-open .c1-openbox .ui-card__title { font-size: 15px; margin-bottom: 4px; }
.c1-open .ui-card--raised { border-color: var(--c-science); }
.c1-open .ui-card--raised .ui-card__title { color: var(--c-science); }
.c1-open .c1-caution { border-color: var(--lamp); }
.c1-open .c1-caution .ui-card__title { color: var(--lamp); }
.c1-key.learn-key { font-size: 17px; font-weight: 700; }
.c1-more { margin: 0; padding-left: 12px; border-left: 3px solid var(--line-strong); font-size: 15px; }

/* 섞어 확인 */
.c1-src { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.c1-src__i { display: flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 4px; border-radius: 12px; border: 1px solid var(--line); color: var(--mute); font-size: 15px; text-align: center; }
.c1-src__i.is-now { border-color: var(--lamp); color: var(--lamp); font-weight: 700; }
.c1-mixq { margin: 0; font-size: 19px; font-weight: 700; color: var(--paper-ink); }
.c1-dunnorow { display: flex; justify-content: center; }
.c1-rule { margin: 0; text-align: center; color: var(--mute); font-size: 15px; }
.c1-mixopt[aria-disabled="true"] { cursor: default; }
.c1-retry { gap: 12px; }
.c1-retry .c1-band { width: 100%; }

@media (min-width: 700px) {
  .c1-top__title.learn-title { font-size: 24px; }
  .c1-chip { min-height: 56px; font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .c1-lamp.is-lighting img { animation: none; } }
.c1-try.is-done .tl-reset { display: none; }
@media (min-width: 700px) { .screen.learn .c1-key.learn-key { font-size: 24px; } }
/* 조심! 칸의 상대(그 단원 전투 1의 상대, 56) · 개념 표지 그림 자리(96, 그림이 오면) */
.c1-open .c1-caution { position: relative; }
.c1-open .c1-caution .ui-card__title { padding-right: 64px; }
.c1-caution__rival { position: absolute; right: 12px; top: 8px; width: 56px; height: 56px; pointer-events: none; }
.c1-caution__rival .char-pic { width: 56px; height: 56px; }
.c1-caution .learn-text { padding-right: 56px; }
.c1-concept { float: right; width: 96px; height: 96px; margin: 0 0 8px 8px; object-fit: contain; }
