/* student-simple.css : 학생 화면 간소화(2026-11-18)
   선생님 「학생 화면이 볼품없고 이상하다, 안 쓰는 기능은 지우고 간소하지만 정확하게」.
   student.html head의 맨 마지막 link. 이 파일은 모양만 덮어쓴다(구역 나누기는 hub-nav.js, 첫 화면 두 칸은 student-home.js).
   - 위쪽 띠: 이름 + 별·이용권 칩 + 내 설정 + 나가기
   - 구역 메뉴 한 줄(.hn-tabs): 홈 · 게임 · 단원평가 · 별 선물 · 내 공간 · 내 기록
   - 홈 카드: 흰 바탕, 1px 테두리, 모서리 14px, 간격 16px. 강조색은 --brand와 별의 금색만
   [레고브릭 서명] legoschool · schoolemotion20 */

/* ---------- 0. 화면에서 뺀 것(이 묶음을 지우면 다시 보인다) ---------- */
#app .top #jump,                       /* 위쪽 「게임 바로가기 ▾」: 「게임」 구역과 겹침 */
#app .top .review-top-link,            /* 위쪽 「1학기 복습」「과학 타자 게임」: 게임 카드와 겹침 */
#app .top .home-link,                  /* 🏠 처음 화면: 구역 메뉴의 「홈」과 헷갈림(나가기로 돌아간다) */
#todayHome .tb-stars,                  /* 별·이용권 큰 칸 셋: 위쪽 띠 칩과 겹침 */
#gameHub .gp-stats,                    /* 할 수 있는 게임·해 본 게임·오늘 플레이 숫자 칸 */
.star-guide-help.dashboard small,      /* 별 사용설명서 링크 옆 덧말 */
#assessmentShortcut small { display: none !important; }
#todayHome .tb:not(:has(.tb-hot)) { display: none; }   /* 오늘의 보너스가 없으면 칸 자체를 숨긴다 */

/* ---------- 1. 위쪽 띠 ---------- */
#app .top { gap: 8px; padding: 8px 18px; }
#app .top h1#who { font-size: 18px; font-weight: 800; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tw { display: flex; gap: 6px; }
.tw:empty { display: none; }
.tw-chip { position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: #475569; white-space: nowrap; }
.tw-chip b { font-size: 16px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.tw-chip.tw-star { border-color: #f5d36b; background: #fffbea; color: #7c5a00; }
.tw-chip.tw-star b { color: #7c5a00; }
.tw-chip:hover, .tw-chip:focus-visible { border-color: var(--brand); outline: none; }
.hub-more-list a { display: block; padding: 9px 12px; border-radius: 8px; font-weight: 600; color: var(--ink, #1e1b4b); text-decoration: none; white-space: nowrap; }
.hub-more-list a:hover, .hub-more-list a:focus-visible { background: #eef2ff; outline: none; }

/* ---------- 2. 구역 메뉴 한 줄 ---------- */
.hn-tabs { position: sticky; top: var(--hn-top, 0px); z-index: 4; display: flex; gap: 4px; padding: 0 18px; background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.hn-tabs::-webkit-scrollbar { display: none; }
.hn-tabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 11px 16px 9px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: none; font-size: 16px; font-weight: 700; color: #475569; white-space: nowrap; }
.hn-tabs button:hover, .hn-tabs button:focus-visible { color: var(--brand); background: var(--brand2); outline: none; }
.hn-tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }
body.hn-student #app .wrap { padding-top: 16px; }
/* 예전 주소로 와서 구역 안 자리로 내려갈 때 띠에 가리지 않게 */
#missionStamps, #streakBoard, #battleBoard, #starComparison, #sumrow, #identityPlaytime { scroll-margin-top: 120px; }

/* ---------- 3. 게임 허브(남색 바탕은 그대로, 머리만 한 줄로) ---------- */
body.hn-student #gameHub.gh { margin: 0 0 16px; padding: 14px 16px 12px; border-radius: 14px; box-shadow: none; }
#gameHub:has(> .gm.is-slim) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; }
#gameHub:has(> .gm.is-slim) > * { grid-column: 1 / -1; }
#gameHub:has(> .gm.is-slim) > .gp-head { grid-column: 1; margin-bottom: 10px; }
#gameHub:has(> .gm.is-slim) > .gm.is-slim { grid-column: 2; margin: 0 0 10px; padding: 0; border: 0; background: none; box-shadow: none; min-height: 0; }
#gameHub .gp-head { align-items: baseline; margin-bottom: 10px; }
#gameHub .gp-head > div:first-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; }
#gameHub .gp-title { font-size: 20px; margin: 0; }
#gameHub .gp-lead { margin: 0; font-size: 14px; }

/* ---------- 4. 홈 카드 통일 ---------- */
body.hn-student .qq-card,
body.hn-student .an-card,
body.hn-student .an-card.is-done,
body.hn-student .tb-hot,
body.hn-student .mh-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: none; }
body.hn-student .qq-card, body.hn-student .an-card, body.hn-student #todayHome .tb { margin: 0 0 16px; }
body.hn-student .qq-card { color: var(--ink); padding: 14px 16px; }
body.hn-student .tb-hot { padding: 14px 16px; }
body.hn-student .tb-hot-head b { font-size: 18px; color: var(--ink); }
body.hn-student .tb-hot-head small { color: var(--mute); }
body.hn-student .tb-hot-i { border: 1px solid var(--line); border-radius: 10px; }
body.hn-student .tb-hot-i.ready { border-color: #f5b301; background: #fffbea; }
body.hn-student .an-card { padding: 16px; gap: 16px; }
body.hn-student .an-card h2 { font-size: 18px; }
body.hn-student .qq-head > b, body.hn-student .mh-card h2 { font-size: 18px; font-weight: 800; color: var(--ink); }

/* 오늘의 퀘스트: 받을 수 있는 칸은 금색 바탕, 받기 단추는 --brand */
body.hn-student .qq-list li { border: 1px solid var(--line); border-radius: 10px; }
body.hn-student .qq-list li.ready { border: 1px solid #f5b301; background: #fffbea; animation: none; }
body.hn-student .qq-claim { background: var(--brand) !important; border-color: var(--brand) !important; }
body.hn-student .qq-todo, body.hn-student .qq-week { color: var(--mute); }
body.hn-student .qq-tickets { background: #fffbea; color: #7c5a00; border: 1px solid #f5d36b; }
body.hn-student .qq-battle { border-top: 1px solid var(--line); }
/* 단원평가 다음 도전: 오른쪽 칸을 낮게(잠긴 별 | 통과 선물 나란히, 그 아래 단추 둘) */
body.hn-student .an-card { grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); align-items: center; }
body.hn-student .an-lock small, body.hn-student .an-gift small, body.hn-student .an-lock b, body.hn-student .an-gift b { white-space: nowrap; }
body.hn-student .an-kicker { color: var(--brand); }
body.hn-student .an-side { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
body.hn-student .an-lock, body.hn-student .an-gift { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; gap: 8px; }
body.hn-student .an-lock { background: #fffbea; border-color: #f5d36b; }
body.hn-student .an-lock b { color: #7c5a00; }
body.hn-student .an-lock > span, body.hn-student .an-gift > span { font-size: 20px; }
body.hn-student .an-go { grid-column: 1 / -1; min-height: 46px; padding: 10px 14px; border: 0; border-radius: 10px; background: var(--brand); box-shadow: none; font-size: 17px; }
body.hn-student .an-card.is-done .an-go { background: var(--brand); }
body.hn-student .an-all { grid-column: 1 / -1; min-height: 38px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); }
body.hn-student .an-units { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
body.hn-student .an-units li { justify-content: space-between; white-space: nowrap; min-width: 0; }
@media (max-width: 900px) { body.hn-student .an-card { grid-template-columns: 1fr; } }
/* 별 선물 구역 맨 위 별 사용설명서 링크: 빈 카드 없이 오른쪽에 작게 */
body.hn-student .star-guide-help.dashboard { background: none; border: 0; box-shadow: none; padding: 0; margin: 0 0 10px; display: flex; justify-content: flex-end; }

/* 내 공간 | 내 기록 두 칸 */
.mh-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 0 0 16px; align-items: stretch; }
.mh-two .mh-card { padding: 14px 16px; gap: 12px; }
.mh-two .mh-pic { height: 210px; max-height: none; aspect-ratio: auto; border-color: var(--line); border-radius: 10px; }
.mh-two .mh-rec .mh-games { gap: 10px; }
.mh-two .mh-g { grid-template-columns: 10px 72px minmax(0, 1fr) auto; font-size: 15px; }
.mh-two .mh-g .v { font-size: 13px; }
.mh-two .mh-lv { background: var(--brand); }
.mh-streak { font-size: 14px; font-weight: 800; color: #7c5a00; background: #fffbea; border: 1px solid #f5d36b; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.mh-two .mh-act .btn { font-weight: 700; padding: 8px 14px; border-radius: 10px; }
.mh-two .mh-act .btn.pri { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (max-width: 800px) { .mh-two { grid-template-columns: 1fr; } .mh-two .mh-pic { height: auto; aspect-ratio: 16 / 9; } }

/* ---------- 5. 연속 학습 알림: 오른쪽 아래에 작게(streak.js가 4초 뒤 닫는다) ---------- */
body.hn-student .stk-toast:not(.stk-inline) { left: auto; right: 12px; top: auto; bottom: 12px; width: auto; max-width: calc(100vw - 24px); padding: 8px 10px 8px 12px; gap: 8px; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(30, 41, 59, .18); transform: translateY(16px); }
body.hn-student .stk-toast:not(.stk-inline).in { transform: none; }
body.hn-student .stk-toast:not(.stk-inline).out { transform: translateY(12px); }
body.hn-student .stk-toast:not(.stk-inline) .stk-toast-ic { font-size: 22px; white-space: nowrap; }
body.hn-student .stk-toast:not(.stk-inline) .stk-toast-txt b { font-size: 15px; white-space: nowrap; }
body.hn-student .stk-toast:not(.stk-inline) .stk-toast-txt small { display: none; }   /* 「오늘도 한 판 하면…」 안내문은 뺀다 */
body.hn-student .stk-toast:not(.stk-inline) .stk-got { margin-top: 2px; padding: 0; background: none; color: #7c5a00; font-size: 13px; white-space: nowrap; }
body.hn-student .stk-toast:not(.stk-inline) .stk-x { color: var(--mute); align-self: center; padding: 4px 6px; }
@media (max-width: 500px) { body.hn-student .stk-toast:not(.stk-inline) .stk-got, body.hn-student .stk-toast:not(.stk-inline) .stk-toast-txt b { white-space: normal; } }

/* ---------- 6. 글 줄바꿈(외톨이 줄·잘린 글 막기) ---------- */
body.hn-student #app .wrap p, body.hn-student #app .wrap li, body.hn-student #app .wrap small { text-wrap: pretty; }
body.hn-student #app .wrap h2, body.hn-student #app .wrap h3, body.hn-student #app .wrap button, body.hn-student .gh-card-body, body.hn-student .tb-txt b, body.hn-student .qq-txt { text-wrap: balance; word-break: keep-all; }

/* ---------- 7. 좁은 화면 ---------- */
@media (max-width: 1100px) {
  .hn-tabs button { padding: 10px 12px 8px; font-size: 15px; }
}
@media (max-width: 700px) {
  #app .top { padding: 6px 10px; gap: 5px; }
  #app .top h1#who { font-size: 15px; flex: 1 1 100%; }
  #app .top .sp { display: none; }
  .tw { gap: 5px; }
  .tw-chip { padding: 4px 8px; font-size: 12px; gap: 3px; }
  .tw-chip b { font-size: 14px; }
  #app .top .hub-more > summary, #app .top #out { padding: 5px 9px; font-size: 13px; }
  #app .top #out { margin-left: auto; }
  .hn-tabs { padding: 0 6px; }
  .hn-tabs button { padding: 9px 9px 7px; font-size: 14px; gap: 4px; }
  #gameHub:has(> .gm.is-slim) { grid-template-columns: 1fr; }
  #gameHub:has(> .gm.is-slim) > .gm.is-slim { grid-column: 1; justify-self: start; }
  #gameHub:has(> .gm.is-slim) > .gp-head { margin-bottom: 6px; }
}
@media (max-width: 500px) { body.hn-student .an-side { grid-template-columns: 1fr; } }

/* ---------- 8. 내 기록 안의 묶음 줄(요약 · 게임별 기록 · 친구와 견주기 · 연속 학습·도장 · 반 대항) ---------- */
.hn-subtabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.hn-subtabs button { padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 700; color: #475569; white-space: nowrap; }
.hn-subtabs button:hover, .hn-subtabs button:focus-visible { border-color: var(--brand); color: var(--brand); outline: none; }
.hn-subtabs button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
/* 나의 위치 칸의 작은 글이 낱말 하나만 다음 줄로 넘어가지 않게(status.js가 그림) */
#sum .go small, #cmp .vnote, #viz .vnote { text-wrap: balance; word-break: keep-all; }
/* 위쪽 띠 「의견 보내기」: 떠 있던 단추 대신 늘 같은 자리에(2026-11-19). 좁은 화면에서는 그림만 */
#bugOpenTop { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; color: #334155; white-space: nowrap; }
#bugOpenTop:hover, #bugOpenTop:focus-visible { border-color: var(--brand); color: var(--brand); outline: none; }
@media (max-width: 760px) { #bugOpenTop .tw-bug-t { display: none; } #bugOpenTop { padding: 6px 9px; } }
