

.duel-history-entry { display: flex; justify-content: flex-end; margin: 6px 0 14px; }
.duel-history-link { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; padding: 4px 10px; border: 1px solid #e4d6b3; border-radius: 16px; background: #fffaf0; color: #65502b; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.duel-history-link img { width: 32px; height: 32px; object-fit: contain; }
.duel-history-link:focus-visible { outline: 2px solid #6653af; outline-offset: 3px; }
.sunday-event-card.sunday-event-with-history { grid-template-columns: auto minmax(0, 1fr) auto; }
.sunday-event-card .sunday-history-button { align-self: start; width: 44px; padding: 4px; border-radius: 13px; }
.duel-history { min-width: 0; }
.duel-history-date { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 700; }
.duel-history-date select { max-width: 100%; padding: 9px 12px; border: 1px solid #d7d2e4; border-radius: 10px; background: white; color: #232552; font: inherit; }
.duel-history .duel-board li span { min-width: 0; overflow-wrap: anywhere; }
.duel-history .duel-board li em { flex-shrink: 0; }
.sunday-game.duel-gallery { position: relative; isolation: isolate; display: flex; width: min(560px, 100%, calc((100dvh - 28px) * 0.666667)); height: auto; aspect-ratio: 2 / 3; padding: 0; overflow: hidden; clip-path: inset(0 round 24px); overscroll-behavior: contain; border: 1px solid #c3a46b; background: #101c32 url('/icons/duel-gallery-room.png') center / contain no-repeat; color: #f5e7cb; }
.duel-gallery-scene { flex: 1; min-width: 0; min-height: 0; padding: 22px; display: flex; flex-direction: column; overflow: hidden; background: transparent; }
.duel-gallery-scene > header { flex-shrink: 0; }
.duel-gallery .duel-history { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.duel-gallery .duel-history-detail { display: block; overflow-y: auto; }
.duel-gallery-year, .duel-gallery-hint { flex-shrink: 0; }
.duel-gallery-heading { display: flex; align-items: center; gap: 9px; min-width: 0; }
.duel-gallery-heading img { object-fit: contain; flex-shrink: 0; }
.duel-gallery header strong { color: #ffe1a5; font-size: clamp(18px, 4.7vw, 25px); text-shadow: 0 2px 6px #07101f; }
.duel-gallery header small { display: block; margin-top: 5px; color: #e9d3aa; font-weight: 500; }
.duel-gallery header > button { flex-shrink: 0; margin-left: 8px; }
.duel-gallery-year { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin: 16px 0 8px; color: #e5d6ba; font-size: 12px; }
.duel-gallery-year select { padding: 9px 14px; border: 1px solid #c7a25c; border-radius: 22px; background: #19233a; color: #ffe5b4; font: inherit; font-size: 14px; }
.duel-gallery-wall { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; touch-action: pan-y; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 4px 5px 30px; scrollbar-width: thin; scrollbar-color: #b59a6880 transparent; }
.duel-award-frame { position: relative; display: block; min-width: 0; width: 48%; max-width: 250px; flex-shrink: 0; container-type: inline-size; padding: 0; border: 0; border-radius: 0; color: #302a29; background: transparent; box-shadow: none; cursor: pointer; text-align: center; font: inherit; }
.duel-award-frame:nth-child(odd) { margin-left: 9%; }
.duel-award-frame + .duel-award-frame { margin-top: 6px; }
.duel-award-frame:nth-child(even) { align-self: flex-end; margin-right: 9%; }
.duel-award-frame:focus-visible, .duel-gallery-back:focus-visible { outline: 3px solid #fff0b5; outline-offset: 4px; }
.duel-award-art { display: block; width: 100%; height: auto; pointer-events: none; }
.duel-award-paper { position: absolute; inset: 38% 18% 14%; display: flex; flex-direction: column; align-items: center; padding: 0; border: 0; background: none; box-shadow: none; }
.duel-award-title { font-size: clamp(18px, 3.8vw, 22px); color: #26324b; line-height: 1.3; }
.duel-award-date { margin: 5px 0 18px; font-size: 13px; line-height: 1.4; }
.duel-award-leaders { display: grid; gap: 15px; width: 100%; max-width: 185px; margin: 0 auto; }
.duel-award-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) 48px; align-items: baseline; gap: 6px; font-size: 14px; line-height: 1.4; }
.duel-award-row b { color: #82622f; font-size: 12px; text-align: left; }
.duel-award-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.duel-award-row em { text-align: right; font-size: 13px; font-style: normal; font-variant-numeric: tabular-nums; }
.duel-gallery-hint { margin: 8px 0 4px; padding: 8px; text-align: center; font-size: 12px; color: #f2dfbc; line-height: 1.7; text-shadow: 0 2px 5px #000; }
.duel-gallery-back { min-height: 44px; margin: 8px 0 18px; padding: 8px 13px; border: 1px solid #b59a68; border-radius: 12px; background: #142137e8; color: #ffe5b4; font: inherit; cursor: pointer; }
.duel-gallery .duel-history > p, .duel-gallery .sunday-game-help { color: #f0dfc2; text-shadow: 0 2px 4px #000; }
.duel-award-empty { cursor: default; }
.duel-award-empty .duel-award-paper { justify-content: center; color: #8d7753; }
.duel-award-empty .duel-award-title { color: #8d7753; font-weight: 500; }
@media (max-width: 540px) {
  .duel-gallery-scene { padding: 18px 12px; }
  .duel-gallery-heading img { width: 44px; height: 44px; }
  .duel-award-frame { width: 48%; max-width: 250px; }
  .duel-award-title { font-size: 18px; }
  .duel-award-date { margin: 4px 0 12px; font-size: 12px; }
  .duel-award-leaders { gap: 12px; }
  .duel-award-row { grid-template-columns: 22px minmax(0,1fr) 40px; gap: 4px; font-size: 12px; }
  .duel-award-row b, .duel-award-row em { font-size: 11px; }
}
@media (max-width: 360px) {
  .duel-award-frame { width: 48%; }
  .duel-award-title { font-size: 16px; }
  .duel-award-date { margin-bottom: 9px; font-size: 11px; }
  .duel-award-leaders { gap: 9px; }
  .duel-award-row { font-size: 11px; }
  .duel-award-row b, .duel-award-row em { font-size: 10px; }
}
/* Keep live text proportional to its small illustrated frame. */
.duel-award-paper { inset: 38% 16% 14%; }
.duel-award-paper .duel-award-title { font-size: clamp(11px, 7cqw, 18px); }
.duel-award-paper .duel-award-date { font-size: clamp(8px, 5cqw, 13px); margin: 2cqw 0 5cqw; }
.duel-award-paper .duel-award-leaders { gap: 4cqw; }
.duel-award-paper .duel-award-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 2cqw; font-size: clamp(8px, 4.5cqw, 12px); }
.duel-award-paper .duel-award-row b, .duel-award-paper .duel-award-row em { font-size: inherit; }
:root {
  color-scheme: only light;
  --ink: #232552;
  --ink-soft: #526673;
  --paper: #f5f1e8;
  --paper-deep: #ebe4d7;
  --white: #fffefb;
  --coral: #ee765f;
  --coral-soft: #f9ddd5;
  --mint: #625b9f;
  --mint-soft: #e8e4f4;
  --yellow: #e9b94c;
  --yellow-soft: #faedc8;
  --line: #ded8ca;
  --shadow: 0 18px 60px rgba(32, 55, 70, 0.09);
}

/* 2026-09-10: warm starlight palette, village comparison, safe dialogs */
.auth-hero-image{display:block;object-fit:cover;object-position:center 45%;background:none}.village-theme-base{filter:brightness(.3) saturate(.35) contrast(.9)}.village-growth-layer{filter:brightness(1.02) saturate(1.05)}
.village-symbol.illustrated{border:2px solid #e2c86e;background-size:cover;background-position:center;box-shadow:0 5px 14px #22204633}.village-choice-art{width:100%;aspect-ratio:3/2;border-radius:11px;background-size:cover;background-position:center;box-shadow:inset 0 0 0 2px #ffffff88}.village-choice-grid button>.village-choice-art{font-size:0}
.village-landmarks{inset:0;min-height:0;pointer-events:none}.village-landmark.integrated{position:absolute;right:auto;bottom:auto;transform:translate(-50%,-50%);pointer-events:auto}.village-landmark.integrated summary{width:34px;height:34px;display:grid;place-items:center;color:#fff1a4;border:2px solid #ffe27a;border-radius:9px;background:#251b4dd4;box-shadow:0 0 0 5px #ffda5b24,0 0 18px #ffd85b}.village-landmark.integrated.new:after{position:absolute;right:-13px;top:-10px;padding:2px 5px;border-radius:999px;color:#392b59;background:#ffe16f;content:"NEW";font-size:7px;font-weight:950}.village-landmark.integrated>div{left:50%;right:auto;bottom:42px;transform:translateX(-50%)}
.village-today-built{position:absolute;z-index:9;right:13px;bottom:38px;padding:6px 9px;display:flex;align-items:center;gap:4px;border-radius:999px;color:#31264f;background:#ffe37d;box-shadow:0 0 18px #ffe37d;font-size:9px;font-weight:950;animation:village-next-lot 1.35s ease-in-out infinite}.village-history-strip{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 2px 8px}.village-history-strip>button{flex:0 0 116px;padding:5px;display:grid;gap:4px;border:1px solid #dcd5c7;border-radius:13px;background:#fffdf8;scroll-snap-align:start;cursor:pointer}.village-history-strip>button.active{border-color:#6b62a6;box-shadow:0 0 0 2px #6b62a626}.village-history-strip .village-scene{width:100%;border-radius:9px}.village-history-strip .village-scene-badges,.village-history-strip .village-facility-path,.village-history-strip .village-landmarks{display:none}.village-history-strip small,.village-current-scene>small{color:#716d82;font-size:9px;font-weight:800;text-align:center}.village-current-scene{display:grid;gap:7px}
.member-tree-grid article{cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}.member-tree-grid article:hover{transform:translateY(-2px);box-shadow:0 14px 28px #302a521f}.friend-village-overlay{position:fixed;z-index:300;inset:0;overflow-y:auto;color:var(--ink);background:linear-gradient(145deg,#f8f2e6,#eee9f7)}.friend-village-overlay>header{position:sticky;z-index:2;top:0;min-height:70px;padding:11px max(18px,calc((100vw - 1100px)/2));display:flex;align-items:center;gap:18px;border-bottom:1px solid #d9d2c6;background:#fffdf7eb;backdrop-filter:blur(15px)}.friend-village-overlay>header button{min-height:44px;padding:0 14px;display:flex;align-items:center;gap:7px;border:1px solid #d9d1c4;border-radius:13px;background:white;cursor:pointer;font-weight:900}.friend-village-overlay>header div{display:grid;gap:2px}.friend-village-overlay>header small{color:#7f7b8c}.friend-village-overlay>main{width:min(1050px,calc(100% - 30px));margin:22px auto 70px;display:grid;grid-template-columns:minmax(320px,.8fr) 1.2fr;align-items:start;gap:22px}.friend-village-overlay .village-scene{width:100%}
.safe-modal-backdrop{position:fixed;z-index:500;inset:0;padding:20px;display:grid;place-items:center;background:#1412269e;backdrop-filter:blur(5px)}.safe-modal{position:relative;width:min(420px,100%);max-height:calc(100dvh - 40px);padding:28px;overflow-y:auto;border:1px solid #d9d0b5;border-radius:22px;background:#fffdf7;box-shadow:0 26px 70px #0a081e47;text-align:center}.safe-modal>svg{color:#665c9e}.safe-modal h2{margin:12px 0 7px}.safe-modal p{color:#686675;line-height:1.65}.safe-modal .primary-button{width:100%;justify-content:center}.safe-modal-close{position:absolute;top:10px;right:10px;width:38px;height:38px;display:grid;place-items:center;border:0;border-radius:50%;background:#f1ece3;cursor:pointer}.exam-policy-notice{margin:13px 0 0;padding:13px 15px;display:flex;align-items:flex-start;gap:8px;border-radius:13px;color:#4e496b;background:#eeebf7;font-size:11px;line-height:1.55}
.stat-help[open]:before{position:fixed;z-index:59;inset:0;background:#1412266b;content:""}.stat-help>div{position:fixed;z-index:60;top:50%;left:50%;right:auto;width:min(360px,calc(100vw - 36px));max-height:calc(100dvh - 60px);overflow-y:auto;transform:translate(-50%,-50%)}.weekly-goal-art{height:145px;object-position:center 33%}.group-welcome-banner img{object-position:center 28%}.stroke-writer{width:min(410px,82vw)}.toast{max-width:min(560px,calc(100vw - 28px));white-space:normal;line-height:1.5;text-align:center}
.family-hub{margin-top:18px;padding:22px;display:grid;gap:15px;border:1px solid #d9d2bd;border-radius:22px;background:linear-gradient(135deg,#fffaf0,#f0edf9);box-shadow:0 12px 32px #322a5a14}.family-heading{display:flex;align-items:center;gap:12px}.family-heading>span{width:46px;height:46px;display:grid;place-items:center;border-radius:15px;color:white;background:#554d8b}.family-heading>div{min-width:0;display:grid;gap:3px}.family-heading small{color:#9a7929;font-size:9px;font-weight:950;letter-spacing:1px}.family-heading h2,.family-heading p{margin:0}.family-heading p{color:#73707e;font-size:11px}.family-invite{margin-left:auto;padding:9px 11px;display:flex;gap:6px;border:1px solid #d6c994;border-radius:12px;background:#fff8d8;cursor:pointer;font-size:10px;font-weight:900}.family-start-tabs,.avatar-picker{display:flex;gap:7px}.family-start-tabs button,.avatar-picker button{padding:8px 12px;border:1px solid #d8d1c4;border-radius:10px;background:white;cursor:pointer}.family-start-tabs button.active,.avatar-picker button.active{color:white;border-color:#5b5292;background:#5b5292}.family-hub input{min-height:44px;padding:0 13px;border:1px solid #d9d2c6;border-radius:12px;background:white}.family-hub>.primary-button{width:fit-content}.family-age-note,.family-pin-note{margin:0;display:flex;gap:6px;color:#716c7a;font-size:10px;line-height:1.55}.child-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.child-grid article{padding:14px;display:grid;grid-template-columns:42px 1fr;gap:8px;border:1px solid #ded7ca;border-radius:16px;background:#ffffffc7}.child-avatar{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;color:#372f62;background:#f7dc77;font-size:10px;font-weight:950}.child-grid article>div{display:grid}.child-grid p{margin:0;font-size:11px}.child-grid article>button{grid-column:1/-1;min-height:36px;border:1px solid #d8d0c1;border-radius:10px;background:white;cursor:pointer;font-size:10px;font-weight:900}.child-create{padding-top:14px;display:grid;gap:9px;border-top:1px solid #ded6c7}.child-create>div:first-child{display:grid;grid-template-columns:1fr 130px;gap:8px}.child-create>.primary-button{width:fit-content}.pair-code{padding:14px;display:flex;align-items:center;gap:12px;border-radius:15px;color:#fff;background:#35305c}.pair-code>div{flex:1;display:grid}.pair-code strong{color:#ffe27d;font-size:26px;letter-spacing:5px}.pair-code p{margin:3px 0 0;color:#ddd9f2;font-size:9px}.family-message{margin:0;color:#51497e;font-weight:800}
@media(max-width:760px){.friend-village-overlay>main{grid-template-columns:1fr}.friend-village-overlay>header{align-items:flex-start;flex-direction:column;gap:7px}.child-grid{grid-template-columns:1fr}.family-heading{align-items:flex-start;flex-wrap:wrap}.family-invite{margin-left:0}.child-create>div:first-child{grid-template-columns:1fr}.weekly-goal-art{height:118px;object-position:center 28%}.group-welcome-banner img{height:190px;object-position:center 24%}.village-history-strip>button{flex-basis:98px}.stroke-writer{width:min(360px,86vw)}}

* { box-sizing: border-box; }

html { background: var(--paper); }

.boot-fallback {
  position: fixed;
  z-index: 9999;
  inset: 0;
  min-height: 100vh;
  padding: 28px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 13px;
  color: #232552;
  background: #f5f6e9;
  text-align: center;
}
.boot-fallback-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px 16px 16px 7px; color: white; background: #232552; font-family: Batang, serif; font-size: 22px; font-weight: 900; }
.boot-fallback strong { font-size: 18px; }
.boot-fallback p { max-width: 310px; margin: 0; color: #60736f; font-size: 14px; line-height: 1.55; }
.boot-fallback a { min-height: 46px; margin-top: 5px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; color: white; background: #232552; font-size: 14px; font-weight: 900; text-decoration: none; }
.app-started .boot-fallback,
body:has(.loading-screen, .auth-page, .app-shell) > .boot-fallback { display: none; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 86% 8%, rgba(80, 70, 142, 0.10), transparent 25%),
    radial-gradient(circle at 14% 84%, rgba(238, 118, 95, 0.08), transparent 26%),
    var(--paper);
  color: var(--ink);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, canvas:focus-visible { outline: 3px solid rgba(84, 122, 186, 0.35); outline-offset: 2px; }

.app-shell { min-height: 100vh; }

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  height: 76px;
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(222, 216, 202, 0.9);
  background: rgba(255, 254, 251, 0.92);
  backdrop-filter: blur(18px);
}

.brand, .profile-chip, .sync-chip {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.brand { display: flex; align-items: center; gap: 12px; padding: 0; text-align: left; }
.brand > span:last-child { display: grid; gap: 2px; }
.brand strong { font-size: 20px; font-weight: 900; letter-spacing: -0.7px; }
.brand small { color: #87949c; font-size: 11px; font-weight: 700; letter-spacing: -0.2px; }

.brand-mark {
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  border-radius: 13px 13px 13px 5px;
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 7px 18px rgba(32, 55, 70, 0.17);
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.sync-chip { display: flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 999px; color: #6d7c84; background: #f3f1ec; font-size: 12px; font-weight: 800; }
.sync-chip.is-synced { color: #28337b; background: var(--mint-soft); }
.profile-menu-wrap { position: relative; }
.profile-chip { display: flex; align-items: center; gap: 9px; padding: 4px 7px 4px 4px; border-radius: 15px; }
.profile-setting-name{padding:0 6px;font-size:13px;font-weight:950;white-space:nowrap}
.profile-chip:hover { background: #f4f1eb; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--white); background: var(--coral); font-weight: 900; }
.profile-copy { min-width: 66px; display: grid; gap: 1px; text-align: left; }
.profile-copy strong { font-size: 13px; }
.profile-copy small { color: #82919a; font-size: 10px; }

.profile-popover {
  position: absolute;
  z-index: 50;
  right: 0;
  top: calc(100% + 12px);
  width: 286px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.profile-popover > p { margin: 4px 7px 8px; color: #8a969d; font-size: 11px; font-weight: 800; }
.profile-popover button { width: 100%; padding: 11px; display: grid; grid-template-columns: 36px 1fr 20px; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 14px; background: transparent; cursor: pointer; text-align: left; }
.profile-popover button > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--paper); font-family: "Noto Serif KR", Batang, serif; font-weight: 900; }
.profile-popover button div { display: grid; gap: 3px; }
.profile-popover button strong { font-size: 13px; }
.profile-popover button small { color: #87949b; font-size: 10px; }
.profile-popover button.active { border-color: #b8bed9; background: #f1f3f8; }
.profile-popover button.active > span { color: white; background: var(--mint); }
.course-profile-card { padding: 12px; display: grid; grid-template-columns: 42px 1fr 20px; align-items: center; gap: 10px; border: 1px solid #b8bed9; border-radius: 15px; background: #f1f3f8; }
.course-profile-card > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: white; background: var(--mint); font-weight: 950; }
.course-profile-card > div { display: grid; gap: 3px; }.course-profile-card strong { font-size: 12px; }.course-profile-card small { color: #718881; font-size: 9px; }.course-profile-card > svg { color: var(--mint); }
.profile-course-progress { height: 6px; margin: 13px 5px 0; overflow: hidden; border-radius: 99px; background: #e5e1d8; }.profile-course-progress span { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--yellow)); }
.profile-course-copy { margin: 7px 6px 2px; display: block; color: #859299; font-size: 9px; text-align: right; }
.profile-popover .admin-entry-button { margin-top: 7px; color: #72570f; background: #fff8df; }.profile-popover .admin-entry-button > span { color: #72570f; background: var(--yellow); }

.desktop-frame { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.side-nav { position: sticky; top: 76px; height: calc(100vh - 76px); padding: 30px 22px 24px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: rgba(255, 254, 251, 0.6); }
.nav-block { margin-bottom: 28px; display: grid; gap: 6px; }
.nav-block > p { margin: 0 13px 6px; color: #9aa3a6; font-size: 10px; font-weight: 900; letter-spacing: 1.1px; text-transform: uppercase; }
.nav-block button { position: relative; width: 100%; padding: 11px 13px; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 12px; background: transparent; color: #667983; cursor: pointer; font-size: 13px; font-weight: 800; text-align: left; }
.nav-block button:hover { background: rgba(255, 255, 255, 0.7); }
.nav-block button.active { color: var(--ink); background: var(--white); box-shadow: 0 5px 18px rgba(32, 55, 70, 0.07); }
.nav-block button.active::before { position: absolute; left: 0; width: 3px; height: 20px; border-radius: 3px; background: var(--coral); content: ""; }
.nav-block button b { margin-left: auto; min-width: 21px; height: 21px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; color: white; background: var(--coral); font-size: 10px; }
.side-goal { margin-top: auto; padding: 16px; border: 1px solid #e6decf; border-radius: 18px; background: #fffaf0; }
.side-goal-title { display: flex; align-items: center; gap: 7px; color: #826a35; font-size: 12px; }
.side-goal p { margin: 13px 0 8px; font-size: 12px; }
.side-goal p b { color: var(--coral); font-size: 20px; }
.tiny-progress { height: 6px; overflow: hidden; border-radius: 9px; background: #eadfca; }
.tiny-progress span { height: 100%; display: block; border-radius: inherit; background: var(--coral); transition: width .3s ease; }
.side-goal > small { margin-top: 9px; display: block; color: #9b8e73; font-size: 9px; line-height: 1.5; }

.main-content { min-width: 0; }
.home-view, .content-view, .study-view { width: min(1120px, calc(100% - 64px)); margin: 0 auto; padding: 42px 0 64px; }

.today-first-card {
  padding: 28px;
  overflow: hidden;
  border: 3px solid #232552;
  border-radius: 28px;
  background: linear-gradient(145deg, #fffdf4, #fff7d9);
  box-shadow: 8px 9px 0 rgba(28, 46, 74, .15);
}
.today-first-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; }
.today-first-date { display: flex; align-items: center; gap: 7px; color: #6e7f7b; font-size: 13px; font-weight: 900; }
.today-first-heading h1 { margin: 9px 0 7px; color: #232552; font-size: clamp(30px, 3.3vw, 43px); line-height: 1.18; letter-spacing: -1.8px; }
.today-first-heading h1 em { color: var(--coral); font-style: normal; }
.today-first-heading p { margin: 0; color: #6f7e7a; font-size: 15px; line-height: 1.55; }
.today-first-progress { min-width: 88px; padding: 12px 14px; display: grid; justify-items: center; border: 2px solid #d5d0be; border-radius: 17px; background: rgba(255,255,255,.78); }
.today-first-progress b { color: var(--coral); font-size: 26px; line-height: 1; }
.today-first-progress small { margin-top: 4px; color: #75837f; font-size: 12px; font-weight: 850; }
.today-first-grid { margin-top: 17px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.today-first-item { position: relative; min-width: 0; padding: 8px; overflow: hidden; border: 2px solid #232552; border-radius: 18px; color: #232552; background: #fffef9; box-shadow: 4px 5px 0 rgba(28, 46, 74,.13); cursor: pointer; font: inherit; text-align: left; transition: transform .18s ease, box-shadow .18s ease; }
.today-first-item:hover { transform: translateY(-2px); box-shadow: 6px 8px 0 rgba(28, 46, 74,.15); }
.today-first-item.studied { border-color: #435685; background: #eff9ef; }
.today-first-art { width: 100%; height: 122px; display: block; overflow: hidden; border: 2px solid #232552; border-radius: 12px; background: #edf2e7; }
.today-first-number { position: absolute; z-index: 4; top: 15px; left: 15px; padding: 4px 7px; border: 2px solid white; border-radius: 999px; color: white; background: #232552; font-size: 11px; font-weight: 950; }
.today-first-done { position: absolute; z-index: 4; top: 15px; right: 15px; width: 25px; height: 25px; display: grid; place-items: center; border: 2px solid white; border-radius: 50%; color: white; background: var(--mint); }
.today-first-copy { min-width: 0; min-height: 74px; padding: 8px 3px 1px; display: flex; align-items: center; gap: 11px; }
.today-first-copy > strong { flex: 0 0 auto; font-family: "Noto Serif KR", Batang, serif; font-size: 50px; line-height: 1; font-weight: 700; }
.today-first-copy > span { min-width: 0; display: grid; gap: 4px; }
.today-first-copy b { overflow: hidden; font-size: 16px; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; }
.today-first-copy b em { color: var(--coral); font-style: normal; }
.today-first-copy small { overflow: hidden; color: #83908d; font-size: 13px; font-weight: 750; white-space: nowrap; text-overflow: ellipsis; }
.today-first-actions { margin-top: 17px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.today-first-start { width: 100%; }
.today-first-previous { min-width: 230px; border: 2px solid #232552; color: #232552; background: rgba(255, 255, 255, .88); }
.today-first-previous > span { margin-left: 4px; color: #74827e; font-size: 10px; }
.today-action-short { display: none; }

.family-welcome-card { min-height: 290px; margin-top: 24px; }
.family-welcome-card .welcome-copy h2 { margin: 14px 0 12px; font-size: clamp(29px, 3.4vw, 43px); line-height: 1.2; letter-spacing: -1.8px; }
.family-welcome-card .welcome-copy h2 em { color: var(--coral); font-style: normal; }

.welcome-card {
  min-height: 330px;
  padding: 46px 52px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  overflow: hidden;
  position: relative;
  border: 1px solid #ded6c6;
  border-radius: 30px;
  background:
    linear-gradient(90deg, rgba(255, 254, 251, 0.98), rgba(255, 251, 243, 0.88)),
    repeating-linear-gradient(0deg, transparent 0 29px, rgba(32, 55, 70, .04) 30px);
  box-shadow: var(--shadow);
}
.welcome-card::before { position: absolute; inset: 0 auto 0 0; width: 7px; background: var(--coral); content: ""; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: #8b979c; font-size: 10px; font-weight: 900; letter-spacing: 1.1px; text-transform: uppercase; }
.eyebrow > span { width: 19px; height: 2px; background: var(--coral); }
.welcome-copy { min-width: 0; }
.welcome-copy h1, .page-heading h1 { margin: 16px 0 14px; font-size: clamp(34px, 4vw, 51px); line-height: 1.2; letter-spacing: -2.3px; }
.welcome-copy h1 em, .page-heading h1 em { color: var(--coral); font-style: normal; }
.welcome-copy > p, .page-heading > p, .page-heading > div > p { margin: 0; color: #6f7e86; font-size: 14px; line-height: 1.7; }
.primary-button, .secondary-button { min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 14px; cursor: pointer; font-size: 13px; font-weight: 900; }
.primary-button { color: white; background: var(--ink); box-shadow: 0 9px 20px rgba(32, 55, 70, .17); }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(32, 55, 70, .22); }
.primary-button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.secondary-button { border: 1px solid var(--line); background: var(--white); }
.welcome-copy .primary-button { margin-top: 26px; }
.primary-button > span { margin-left: 8px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.22); color: #dce4e8; font-size: 10px; }

.welcome-visual { position: relative; height: 260px; display: flex; align-items: flex-end; justify-content: center; }
.welcome-visual::before { position: absolute; left: 50%; bottom: -120px; width: 340px; height: 340px; transform: translateX(-50%); border-radius: 50%; background: #e8efea; content: ""; }
.welcome-hero-image { position: relative; z-index: 2; width: 300px; height: 220px; flex: 0 0 auto; overflow: hidden; border: 5px solid rgba(255,255,255,.72); border-radius: 28px 28px 18px 18px; background: url("/hanja-study-still-life.png") center 52% / cover no-repeat; box-shadow: 0 18px 36px rgba(32,55,70,.18); }
.streak-pill { position: absolute; z-index: 4; top: 14px; right: 1px; padding: 9px 13px; display: flex; align-items: center; gap: 6px; border: 1px solid #efceca; border-radius: 999px; color: #b9513f; background: #fff5f1; font-size: 10px; transform: rotate(2deg); }
.spark { position: absolute; z-index: 3; color: var(--yellow); font-size: 24px; }
.spark-a { left: 10%; top: 30%; }.spark-b { right: 6%; bottom: 20%; color: var(--mint); font-size: 17px; }

.date-browser { margin-top: 22px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,254,251,.88); box-shadow: 0 10px 32px rgba(32,55,70,.06); }
.date-browser-head, .date-browser-head > div, .date-actions { display: flex; align-items: center; justify-content: space-between; gap: 11px; }
.date-browser-head > div:first-child > div { display: grid; gap: 2px; }
.date-browser-head small { color: #8d999e; font-size: 9px; font-weight: 800; }
.date-browser-head strong { font-size: 15px; }
.date-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; color: #28337d; background: var(--mint-soft); }
.date-actions > button, .date-input-button { min-height: 36px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 11px; color: #667982; background: #faf8f3; cursor: pointer; font-size: 10px; font-weight: 900; }
.date-actions > button { color: #b65340; border-color: #efd0c9; background: #fff4f0; }
.date-actions .month-toggle-button { width: 48px; min-width: 48px; padding: 0; gap: 2px; color: #28337d; border-color: #bdc4d9; background: #eff2f8; }
.date-actions .month-toggle-button.open { color: white; border-color: var(--ink); background: var(--ink); }
.date-input-button { position: relative; overflow: hidden; }
.date-input-button input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.week-picker { margin-top: 16px; display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 10px; }
.week-arrow { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 11px; color: #7d8b91; background: #f1eee7; cursor: pointer; }
.week-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.week-days button { min-height: 70px; padding: 8px 4px 6px; display: grid; place-items: center; gap: 2px; border: 1px solid transparent; border-radius: 14px; color: #708188; background: transparent; cursor: pointer; }
.week-days button:hover { background: #f6f3ec; }
.week-days button small { font-size: 9px; }.week-days button strong { font-size: 17px; }.week-days button span { min-height: 11px; color: inherit; font-size: 8px; font-weight: 900; }
.week-days button.date-complete:not(.selected) { color: #232f74; border-color: #a7b2d2; background: #e7ecf5; }
.week-days button.date-partial:not(.selected) { color: #8a6718; border-color: #e9d08d; background: #fff7dc; }
.week-days button.date-missed:not(.selected) { color: #b25343; border-color: #efc6bd; background: #fff0eb; }
.week-days button.today:not(.selected):not(.date-complete):not(.date-partial) { color: #b75240; border-color: #efcfc7; background: #fff5f1; }
.week-days button.selected { color: white; border-color: var(--ink); background: var(--ink); box-shadow: 0 8px 18px rgba(32,55,70,.2); }
.month-calendar { margin-top: 14px; padding: 15px; border: 1px solid #c9cfda; border-radius: 17px; background: #f8fafb; box-shadow: inset 0 1px 0 white; }
.month-calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.month-calendar-toolbar strong { font-size: 15px; }
.month-calendar-toolbar button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #d5d9df; border-radius: 11px; color: #52556b; background: white; cursor: pointer; }
.month-calendar-toolbar button:disabled { opacity: .25; cursor: not-allowed; }
.month-weekdays, .month-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.month-weekdays { margin-top: 10px; }
.month-weekdays span { padding: 4px 0; color: #7c8c89; font-size: 10px; font-weight: 900; text-align: center; }
.month-weekdays span:last-child { color: #ba6a5b; }
.month-days button, .month-day-placeholder { min-width: 0; min-height: 46px; border-radius: 12px; }
.month-days button { position: relative; padding: 5px 2px 9px; display: grid; place-items: center; border: 1px solid transparent; color: #536763; background: white; cursor: pointer; }
.month-days button > span { font-size: 14px; font-weight: 900; }
.month-days button > i { position: absolute; bottom: 6px; width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.month-days button.date-complete { color: #222d6f; border-color: #b7c2da; background: #e8edf6; }
.month-days button.date-complete > i { background: #2c3e91; }
.month-days button.date-partial { color: #816116; border-color: #ead69f; background: #fff8e1; }
.month-days button.date-partial > i { background: #d4a62e; }
.month-days button.date-missed { color: #ad5041; border-color: #efcbc3; background: #fff1ed; }
.month-days button.date-missed > i { background: #df725f; }
.month-days button.today:not(.selected) { box-shadow: inset 0 0 0 2px #ef806c; }
.month-days button.selected { color: white; border-color: var(--ink); background: var(--ink); box-shadow: 0 6px 14px rgba(32,55,70,.18); }
.month-days button.selected > i { background: white; }
.month-days button:disabled { opacity: .28; cursor: not-allowed; }
.month-calendar-legend { margin-top: 12px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 14px; color: #71817e; font-size: 10px; font-weight: 800; }
.month-calendar-legend span { display: inline-flex; align-items: center; gap: 5px; }
.month-calendar-legend i { width: 7px; height: 7px; border-radius: 50%; }
.month-calendar-legend i.complete { background: #2c3e91; }.month-calendar-legend i.partial { background: #d4a62e; }.month-calendar-legend i.missed { background: #df725f; }
.stage-track { margin-top: 16px; padding: 14px 15px; display: grid; grid-template-columns: minmax(190px, auto) minmax(150px, 1fr) auto; align-items: center; gap: 17px; border-radius: 15px; background: #f2f6f3; }
.stage-track-copy { display: grid; grid-template-columns: auto auto; align-items: baseline; justify-content: start; gap: 3px 8px; }.stage-track-copy span { color: #28337d; font-size: 11px; font-weight: 950; }.stage-track-copy strong { font-size: 12px; }.stage-track-copy small { grid-column: 1 / -1; color: #82928f; font-size: 8px; }
.stage-progress { height: 8px; overflow: hidden; border-radius: 99px; background: #dbe1e5; }.stage-progress span { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--yellow)); transition: width .25s ease; }
.stage-track label { display: flex; align-items: center; gap: 7px; color: #77888c; font-size: 9px; font-weight: 900; white-space: nowrap; }.stage-track select { min-height: 34px; padding: 0 27px 0 10px; border: 1px solid #cbd0d9; border-radius: 10px; color: var(--ink); background: var(--white); font-size: 10px; font-weight: 800; cursor: pointer; }

.daily-section { margin-top: 30px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.mini-label { color: var(--coral); font-size: 9px; font-weight: 950; letter-spacing: 1.4px; }
.section-heading h2 { margin: 6px 0 0; font-size: 23px; letter-spacing: -.8px; }
.goal-counter { padding-bottom: 2px; display: flex; align-items: center; gap: 6px; color: #889397; font-size: 11px; font-weight: 800; }
.goal-counter b { color: var(--coral); font-size: 18px; }
.daily-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.daily-hanja-card { position: relative; min-height: 262px; padding: 13px; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,254,251,.86); cursor: pointer; transition: .2s ease; overflow: hidden; }
.daily-hanja-card:hover { transform: translateY(-4px); border-color: #bfc5cf; box-shadow: 0 14px 30px rgba(32,55,70,.09); }
.daily-hanja-card.studied { background: #f1f4f8; border-color: #b8bed9; }
.card-number { position: absolute; z-index: 4; top: 20px; left: 20px; padding: 5px 7px; border-radius: 8px; color: white; background: rgba(32,55,70,.72); backdrop-filter: blur(7px); font-size: 9px; font-weight: 900; }
.done-mark { position: absolute; top: 12px; right: 13px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--mint); }
.daily-card-art { position: relative; width: 100%; height: 128px; display: block; overflow: hidden; border-radius: 15px; background: var(--paper-deep); }
.meaning-visual { position: relative; width: 100%; height: 100%; padding: 17px 20px; display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 18px; overflow: hidden; color: var(--ink); background: linear-gradient(140deg, rgba(255,255,255,.92), rgba(255,255,255,.28)); }
.meaning-visual::before { position: absolute; right: -44px; bottom: -64px; width: 190px; height: 190px; border-radius: 50%; background: currentColor; opacity: .07; content: ""; }
.meaning-picture { position: relative; width: 105px; height: 105px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.8); border-radius: 30px; background: rgba(255,255,255,.6); box-shadow: 0 10px 24px rgba(32,55,70,.08); }.meaning-picture b { position: relative; z-index: 2; font-size: 56px; line-height: 1; filter: drop-shadow(0 6px 8px rgba(32,55,70,.08)); }.meaning-picture i { position: absolute; right: -9px; bottom: -15px; color: currentColor; font-family: Batang, serif; font-size: 55px; font-style: normal; font-weight: 900; opacity: .13; }
.meaning-caption { position: relative; z-index: 2; display: grid; gap: 6px; }.meaning-caption small { color: currentColor; font-size: 9px; font-weight: 950; letter-spacing: 1px; opacity: .68; }.meaning-caption strong { max-width: 210px; font-size: 14px; line-height: 1.55; letter-spacing: -.3px; }
.meaning-visual.tone-sky { color: #276f83; background-color: #dceff3; }.meaning-visual.tone-mint { color: #28337d; background-color: #dce0ee; }.meaning-visual.tone-coral { color: #b6503e; background-color: #f9ddd5; }.meaning-visual.tone-gold { color: #926913; background-color: #faedc8; }.meaning-visual.tone-ink { color: #304f61; background-color: #dfe7eb; }.meaning-visual.tone-lilac { color: #70608f; background-color: #e8e1f0; }
.meaning-visual.compact { padding: 8px; display: grid; grid-template-columns: 1fr; place-items: center; gap: 0; text-align: center; }.meaning-visual.compact .meaning-picture { width: 82px; height: 82px; border-radius: 24px; }.meaning-visual.compact .meaning-picture b { font-size: 46px; }.meaning-visual.compact .meaning-picture i { right: -8px; bottom: -12px; font-size: 42px; }.meaning-visual.compact .meaning-caption { position: absolute; right: 7px; bottom: 7px; left: 7px; padding: 4px 7px; border-radius: 8px; background: rgba(255,255,255,.82); backdrop-filter: blur(6px); }.meaning-visual.compact .meaning-caption small { display: none; }.meaning-visual.compact .meaning-caption strong { overflow: hidden; font-size: 8px; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }

.comic-welcome-visual::before { width: 320px; height: 320px; bottom: -138px; border: 3px solid #232552; background: #fff4c9; box-shadow: 0 0 0 9px rgba(255,255,255,.55); }

.hero-comic-bubble { position: absolute; z-index: 5; top: 18px; left: 17px; padding: 11px 15px; border: 3px solid #232552; border-radius: 20px; color: #232552; background: white; font-size: 13px; font-weight: 950; transform: rotate(-2deg); }
.hero-comic-bubble::after { position: absolute; left: 34px; bottom: -10px; width: 14px; height: 14px; border-right: 3px solid #232552; border-bottom: 3px solid #232552; background: white; content: ""; transform: rotate(45deg); }
.hero-comic-burst { position: absolute; z-index: 5; top: 25px; right: 14px; width: 69px; height: 61px; display: grid; place-items: center; color: white; background: #ef806c; clip-path: polygon(50% 0, 61% 25%, 86% 10%, 78% 38%, 100% 50%, 76% 61%, 89% 90%, 61% 75%, 50% 100%, 38% 75%, 11% 90%, 23% 62%, 0 50%, 24% 38%, 12% 10%, 39% 25%); font-size: 12px; font-weight: 950; transform: rotate(8deg); }

.comic-hanja-card { border: 3px solid #232552; border-radius: 20px; background: #fffdf5; box-shadow: 5px 6px 0 rgba(28, 46, 74,.17); }
.comic-hanja-card:nth-child(4n + 1) { --comic-accent: #ef806c; }
.comic-hanja-card:nth-child(4n + 2) { --comic-accent: #5666a9; }
.comic-hanja-card:nth-child(4n + 3) { --comic-accent: #efc65b; }
.comic-hanja-card:nth-child(4n + 4) { --comic-accent: #8a75b6; }
.comic-hanja-card::after { position: absolute; top: 0; right: 0; width: 54px; height: 54px; border-radius: 0 16px 0 48px; background: var(--comic-accent); opacity: .24; content: ""; pointer-events: none; }
.comic-hanja-card:hover { border-color: #232552; box-shadow: 8px 10px 0 rgba(28, 46, 74,.18); }
.comic-hanja-card.studied { border-color: #435685; background: #eff9ef; }
.comic-hanja-card .daily-card-art { height: 145px; border: 2px solid #232552; border-radius: 13px; }
.comic-hanja-card .card-number { top: 18px; left: 18px; border: 2px solid white; border-radius: 999px; background: #232552; box-shadow: 0 2px 0 rgba(28, 46, 74,.25); }
.comic-hanja-card .daily-card-copy { align-items: flex-start; }
.comic-hanja-card .daily-card-copy > strong { padding-top: 3px; color: #171a2d; text-shadow: 2px 2px 0 #f6d66f; }
.comic-word-chip { width: fit-content; max-width: 100%; padding: 4px 7px; overflow: hidden; border-radius: 7px; color: #232552 !important; background: #fff0bd; font-size: 8px !important; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }

.comic-meaning-visual { isolation: isolate; display: block; padding: 0; background: #dfe1e9; }
.comic-scene-fill { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; background-image: var(--comic-image); background-size: cover; background-position: center; background-repeat: no-repeat; pointer-events: none; }
.comic-meaning-visual .comic-speech { display: none; }
.comic-meaning-visual .comic-speech small { color: currentColor; font-size: 8px; }
.comic-meaning-visual .comic-speech strong { max-width: none; color: #232552; font-size: 11px; line-height: 1.4; }
.comic-meaning-visual.compact .comic-speech { top: auto; right: 7px; bottom: 6px; left: 7px; padding: 5px 8px; border-width: 2px; border-radius: 9px; box-shadow: none; }
.comic-meaning-visual.compact .comic-speech small { display: none; }
.comic-meaning-visual.compact .comic-speech strong { overflow: hidden; font-size: 8px; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }

@media (min-width: 641px) {
  .comic-daily-section { padding: 24px; border: 3px solid #232552; border-radius: 24px; background: linear-gradient(#fffdf4, #fff8df); box-shadow: 7px 8px 0 rgba(28, 46, 74,.15); }
  .comic-daily-section .section-heading { padding: 0 4px 13px; border-bottom: 3px solid #232552; }
  .comic-daily-section .section-heading h2 { font-size: 26px; text-shadow: 2px 2px 0 #f6d66f; }
}
.daily-card-copy { min-height: 96px; padding: 12px 4px 2px; display: flex; align-items: center; gap: 13px; text-align: left; }
.daily-card-copy > strong { flex: 0 0 auto; font-family: "Noto Serif KR", Batang, serif; font-size: 54px; line-height: 1; font-weight: 700; }
.daily-card-copy > span { display: grid; gap: 6px; }
.daily-card-copy b { font-size: 12px; }.daily-card-copy small { color: #9aa2a3; font-size: 9px; }

.dashboard-row { margin-top: 36px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
.week-card, .review-peek, .review-list-card, .chart-card, .mastery-card { padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,254,251,.82); }
.card-heading, .card-heading > div { display: flex; align-items: center; justify-content: space-between; gap: 11px; }
.card-heading h3 { margin: 0 0 3px; font-size: 14px; }.card-heading p { margin: 0; color: #89959a; font-size: 10px; }.card-heading > b { color: var(--coral); font-size: 11px; }
.icon-tile { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; }
.icon-tile.mint { color: #28347e; background: var(--mint-soft); }.icon-tile.coral { color: #bd5845; background: var(--coral-soft); }.icon-tile.yellow { color: #a57818; background: var(--yellow-soft); }.icon-tile.navy { color: white; background: var(--ink); }
.week-bars { height: 104px; margin-top: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.week-bars > div { flex: 1; display: grid; justify-items: center; gap: 8px; }
.week-bars > div > span { width: 28px; min-height: 18px; display: grid; place-items: center; border-radius: 8px 8px 4px 4px; color: white; background: #e5e2da; }
.week-bars > div > span.filled { background: var(--mint); }.week-bars > div.today > span { outline: 3px solid #d6dbed; }
.week-bars small { color: #9ca4a7; font-size: 9px; }.week-bars .today small { color: var(--ink); font-weight: 900; }
.review-stack { margin-top: 15px; display: grid; gap: 6px; }
.review-stack > div { padding: 7px 9px; display: grid; grid-template-columns: 35px 1fr auto; align-items: center; gap: 8px; border-radius: 10px; background: #f8f5ef; }
.review-stack strong { font-family: Batang, serif; font-size: 22px; }.review-stack span { font-size: 10px; font-weight: 700; }.review-stack b { color: var(--mint); font-size: 9px; }
.wide-link { width: 100%; margin-top: 12px; padding: 10px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 0; border-top: 1px solid #ece6da; color: #637580; background: transparent; cursor: pointer; font-size: 10px; font-weight: 900; }

.study-view { min-height: calc(100vh - 76px); }
.study-topline { display: grid; grid-template-columns: 42px 1fr 74px; align-items: center; gap: 16px; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: var(--white); cursor: pointer; }
.study-progress { height: 8px; overflow: hidden; border-radius: 999px; background: #dfdbd1; }
.study-progress span { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--coral), #f0ab5d); transition: width .3s; }
.study-topline > span { color: #77878f; font-size: 10px; font-weight: 800; text-align: right; }
.lesson-layout { margin-top: 24px; display: grid; grid-template-columns: minmax(330px, .85fr) minmax(390px, 1.15fr); gap: 18px; }
.hanja-study-card { min-height: 590px; padding: 22px; display: flex; flex-direction: column; align-items: center; border: 1px solid #d7d0c2; border-radius: 25px; background: var(--white); box-shadow: var(--shadow); }
.study-card-meta { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.study-card-meta span { padding: 6px 10px; border-radius: 999px; color: #8c6d2e; background: var(--yellow-soft); font-size: 9px; font-weight: 900; }.study-card-meta small { color: #98a0a3; font-size: 10px; }
.study-card-art { position: relative; width: 100%; height: 148px; margin-top: 12px; overflow: hidden; border-radius: 17px; background: var(--paper-deep); }
.study-card-art > .meaning-visual { padding: 16px 20px 31px; }
.study-card-art > span:last-child { position: absolute; z-index: 3; right: 14px; bottom: 10px; left: 14px; padding-top: 7px; border-top: 1px solid rgba(32,55,70,.11); color: rgba(32,55,70,.68); font-size: 8px; font-weight: 900; letter-spacing: .2px; }
.hanja-stage { position: relative; width: min(220px, 76%); aspect-ratio: 1; margin: 10px 0 8px; display: grid; place-items: center; }
.ghost-grid { position: absolute; inset: 0; border: 1px solid #e5dfd4; border-radius: 8px; background: linear-gradient(45deg, transparent 49.7%, #eee8dc 50%, transparent 50.3%), linear-gradient(-45deg, transparent 49.7%, #eee8dc 50%, transparent 50.3%); }
.ghost-grid::before, .ghost-grid::after { position: absolute; background: #eee8dc; content: ""; }.ghost-grid::before { top: 50%; left: 0; width: 100%; height: 1px; }.ghost-grid::after { left: 50%; top: 0; width: 1px; height: 100%; }
.hanja-stage strong { z-index: 1; font-family: "Noto Serif KR", Batang, serif; font-size: clamp(118px, 14vw, 178px); line-height: 1; font-weight: 700; }
.hanja-study-card h2 { margin: 0 0 13px; font-size: 21px; line-height: 1.35; }.hanja-study-card h2 b { color: var(--coral); }
.write-toggle { margin-top: auto; padding: 11px 15px; display: flex; align-items: center; gap: 8px; border: 1px solid #ddd5c7; border-radius: 12px; background: #faf7f1; cursor: pointer; font-size: 11px; font-weight: 800; }.write-toggle.active { color: #27327b; border-color: #b9bfd9; background: #edf0f7; }
.lesson-notes { display: flex; flex-direction: column; gap: 10px; }
.note-card { padding: 16px; border: 1px solid var(--line); border-radius: 19px; background: rgba(255,254,251,.82); }
.note-title { display: flex; align-items: center; gap: 10px; }.note-title h3 { margin: 0; font-size: 15px; }.note-title p { margin: 2px 0 0; color: #75868d; font-size: 12px; line-height: 1.45; }
.memory-note > p { margin: 11px 0 0; color: #536872; font-size: 14px; font-weight: 700; line-height: 1.65; }
.stroke-order-card { text-align: center; }.stroke-order-card .note-title { text-align: left; }
.stroke-writer { width: min(245px, 100%); aspect-ratio: 1; margin: 11px auto 9px; display: grid; place-items: center; overflow: hidden; border: 1px solid #e2dbcf; border-radius: 17px; background: linear-gradient(45deg, transparent 49.8%, #eee8dd 50%, transparent 50.2%), linear-gradient(-45deg, transparent 49.8%, #eee8dd 50%, transparent 50.2%), #fffdfa; touch-action: none; }
.stroke-writer svg { display: block; width: 100% !important; height: 100% !important; transform: none !important; }
.stroke-order-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.stroke-order-actions button { min-height: 39px; padding: 0 10px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 11px; color: #6c7e86; background: #f8f5ef; cursor: pointer; font-size: 9px; font-weight: 900; }.stroke-order-actions button.active { color: white; border-color: var(--ink); background: var(--ink); }
.stroke-message { min-height: 15px; margin: 9px 0 0; color: #819096; font-size: 9px; }.stroke-fallback { min-height: 220px; margin-top: 16px; display: grid; place-content: center; gap: 12px; border: 1px dashed #d9cdbd; border-radius: 17px; background: #faf7f1; }.stroke-fallback strong { font-family: Batang, serif; font-size: 96px; }.stroke-fallback p { max-width: 250px; margin: 0 auto; color: #667982; font-size: 11px; line-height: 1.7; }
.word-list { margin-top: 11px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.word-list > div { min-width: 0; min-height: 96px; padding: 7px; display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: center; gap: 9px; border: 2px solid #ded7ca; border-radius: 14px; background: #fffdf7; box-shadow: 2px 3px 0 rgba(28, 46, 74,.08); }
.word-comic-thumb { width: 68px; aspect-ratio: 1; display: block; border: 2px solid #232552; border-radius: 10px; background-image: var(--comic-image); background-size: cover; background-position: center; background-repeat: no-repeat; }
.word-copy { min-width: 0; display: grid; gap: 3px; color: #65777f; }.word-copy strong { overflow: hidden; font-family: Batang, serif; font-size: 22px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }.word-copy b { color: var(--ink); font-size: 14px; line-height: 1.25; }.word-copy small { display: -webkit-box; overflow: hidden; color: #65777f; font-size: 12px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }.word-copy small em { display: inline-block; margin-right: 4px; padding: 1px 4px; border-radius: 5px; color: #28337d; background: #e5e9f3; font-size: 10px; font-style: normal; font-weight: 900; vertical-align: 1px; }
.word-note blockquote { margin: 10px 0 0; padding: 10px 13px; border-left: 3px solid var(--coral); color: #5b6e76; background: #fff8f3; font-size: 13px; line-height: 1.55; }
.lesson-next-action { margin-top: auto; }.lesson-next-action button { width: 100%; }

.writing-card { height: 100%; min-height: 510px; }
.writing-wrap { margin-top: 18px; display: grid; justify-items: center; gap: 10px; }
.writing-grid { position: relative; width: min(330px, 100%); aspect-ratio: 1; border: 1px solid #ded8cc; border-radius: 15px; overflow: hidden; background: linear-gradient(45deg, transparent 49.8%, #ede8df 50%, transparent 50.2%), linear-gradient(-45deg, transparent 49.8%, #ede8df 50%, transparent 50.2%), #fffdfa; touch-action: none; }
.writing-grid::before, .writing-grid::after { position: absolute; z-index: 0; background: #ede8df; content: ""; }.writing-grid::before { left: 50%; width: 1px; height: 100%; }.writing-grid::after { top: 50%; width: 100%; height: 1px; }
.writing-grid > span { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(32,55,70,.1); font-family: Batang, serif; font-size: 210px; }
.writing-grid canvas { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; touch-action: none; }
.writing-mode-wrap { margin-top: 16px; }
.writing-mode-tabs { width: min(330px, 100%); margin: 0 auto; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: 13px; background: #edf1e7; }
.writing-mode-tabs button { min-height: 39px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 10px; color: #7d8d85; background: transparent; cursor: pointer; font-size: 10px; font-weight: 900; }
.writing-mode-tabs button.active { color: #31425f; background: #fffef8; box-shadow: 0 5px 14px rgba(58, 71, 89,.09); }
.auto-fill-wrap { margin-top: 12px; }
.auto-fill-grid { background: linear-gradient(45deg, transparent 49.8%, #e8eee6 50%, transparent 50.2%), linear-gradient(-45deg, transparent 49.8%, #e8eee6 50%, transparent 50.2%), #fffef9; }
.auto-fill-target { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; touch-action: none; }
.auto-fill-target svg { display: block; max-width: 100%; height: auto; touch-action: none; }
.auto-fill-message { width: min(330px, 100%); min-height: 37px; margin: 0; padding: 9px 11px; display: flex; align-items: center; justify-content: center; gap: 7px; border-radius: 11px; color: #425675; background: #e7f4e8; font-size: 9px; font-weight: 800; line-height: 1.5; text-align: center; }
.auto-fill-message svg { flex: 0 0 auto; color: #e2a938; }
.text-button { padding: 7px 10px; display: flex; align-items: center; gap: 7px; border: 0; color: #75858d; background: transparent; cursor: pointer; font-size: 10px; font-weight: 800; }

.quiz-card, .complete-card { width: min(690px, 100%); margin: 42px auto 0; padding: 42px; border: 1px solid var(--line); border-radius: 28px; background: var(--white); box-shadow: var(--shadow); }
.quiz-label { display: inline-flex; align-items: center; gap: 6px; color: #b95544; font-size: 10px; font-weight: 900; letter-spacing: .6px; }
.quiz-card h2 { margin: 18px 0 26px; font-size: 23px; text-align: center; }.quiz-card h2 strong { margin-right: 8px; font-family: Batang, serif; font-size: 58px; vertical-align: middle; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz-options button.quiz-option-hanja { font-size: 26px; }
.quiz-options button { min-height: 62px; padding: 10px 15px; display: grid; grid-template-columns: 32px 1fr 22px; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 15px; background: #faf8f3; cursor: pointer; font-size: 13px; font-weight: 800; text-align: left; }
.quiz-options button > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #ece8df; font-size: 10px; }
.quiz-options button.correct { color: #253078; border-color: #96a2ca; background: #eef1f8; }.quiz-options button.correct > span { color: white; background: var(--mint); }.quiz-options button.wrong { color: #b64e3b; border-color: #ecad9f; background: #fff2ee; }.quiz-options button.wrong > span { color: white; background: var(--coral); }
.answer-note { margin-top: 14px; padding: 14px; display: flex; gap: 11px; border-radius: 15px; }.answer-note.correct { background: var(--mint-soft); }.answer-note.wrong { background: var(--yellow-soft); }.answer-note > div { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: white; background: var(--mint); }.answer-note.wrong > div { color: #846416; background: var(--yellow); }.answer-note p { margin: 0; color: #5d7078; font-size: 10px; line-height: 1.6; }.answer-note strong { display: block; color: var(--ink); font-size: 12px; }
.quiz-next { margin: 20px 0 0 auto; display: flex; }

.complete-card { text-align: center; }
.medal-wrap { position: relative; width: 108px; height: 108px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow-soft); }.medal-wrap span { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; color: #a36f0d; background: var(--yellow); }.medal-wrap i { position: absolute; top: 4px; right: 2px; color: var(--coral); font-size: 24px; font-style: normal; }
.complete-card h2 { margin: 12px 0; font-size: 32px; line-height: 1.3; letter-spacing: -1.2px; }.complete-card > p { margin: 0; color: #72838b; font-size: 12px; }
.result-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 17px; overflow: hidden; }.result-grid > div { padding: 18px 10px; display: grid; gap: 5px; }.result-grid > div + div { border-left: 1px solid var(--line); }.result-grid strong { font-size: 23px; }.result-grid span { color: #8e999d; font-size: 9px; }
.complete-actions { margin-top: 22px; display: flex; justify-content: center; gap: 10px; }
.catch-up-note { width: fit-content; margin: 16px auto 0 !important; padding: 10px 13px; display: flex; align-items: center; gap: 7px; border-radius: 13px; color: #344b7b !important; background: #e5f5ea; font-size: 10px !important; font-weight: 850; line-height: 1.5; text-align: left; }

.content-view { padding-top: 54px; }
.page-heading { max-width: 650px; margin-bottom: 36px; }.page-heading h1 { margin-top: 13px; }
.review-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.review-summary > div { padding: 19px; display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,254,251,.75); }.review-summary p { margin: 0; display: grid; gap: 4px; }.review-summary small { color: #8b979c; font-size: 9px; }.review-summary strong { font-size: 20px; }
.review-list-card { margin-top: 18px; padding: 28px; }
.review-list-card .primary-button { min-height: 42px; }
.review-table { margin-top: 20px; border-top: 1px solid var(--line); }
.review-table > button { width: 100%; padding: 15px 5px; display: grid; grid-template-columns: 58px minmax(120px, 1fr) minmax(100px, 1fr) 42px 20px; align-items: center; gap: 14px; border: 0; border-bottom: 1px solid #ede8de; background: transparent; cursor: pointer; text-align: left; }.review-table > button:hover { background: #fbf8f2; }.review-table > button > strong { font-family: Batang, serif; font-size: 38px; }.review-table > button > span { display: grid; gap: 4px; }.review-table b { font-size: 12px; }.review-table small { color: #8c989d; font-size: 9px; }.review-table > button > i { height: 6px; overflow: hidden; border-radius: 7px; background: #e7e3da; }.review-table > button > i span { height: 100%; display: block; border-radius: inherit; background: var(--mint); }.review-table em { color: var(--mint); font-size: 10px; font-style: normal; font-weight: 900; }

.stats-heading { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.level-badge { padding: 16px 18px; display: flex; align-items: center; gap: 12px; border: 1px solid #dbcfae; border-radius: 18px; background: #fff9e9; }
.level-badge > span { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--yellow); font-size: 18px; font-weight: 950; }.level-badge p { margin: 0; display: grid; gap: 3px; }.level-badge small { color: #9a8a62; font-size: 9px; }.level-badge strong { font-size: 12px; }.level-badge > svg { color: var(--yellow); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }.stats-grid article { padding: 18px; display: grid; grid-template-columns: 40px 1fr; gap: 11px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,254,251,.8); }.stats-grid p { margin: 0; display: grid; gap: 2px; }.stats-grid small { color: #8b979c; font-size: 9px; }.stats-grid strong { font-size: 22px; }.stats-grid strong i { margin-left: 2px; font-size: 10px; font-style: normal; }.stats-grid article > em { grid-column: 2; color: #98a1a3; font-size: 9px; font-style: normal; }
.growth-layout { margin-top: 16px; display: grid; grid-template-columns: 1.35fr .65fr; gap: 16px; }.chart-card, .mastery-card { padding: 26px; }
.large-week-chart { height: 220px; margin-top: 25px; padding: 15px 8px 0; display: flex; align-items: flex-end; gap: 17px; border-bottom: 1px solid #ded8cd; background: repeating-linear-gradient(0deg, transparent 0 49px, rgba(32,55,70,.05) 50px); }.large-week-chart > div { height: 100%; flex: 1; display: grid; grid-template-rows: 1fr 24px; gap: 9px; text-align: center; }.large-week-chart > div > span { height: 100%; display: flex; align-items: flex-end; justify-content: center; }.large-week-chart i { width: 70%; min-height: 8px; border-radius: 8px 8px 2px 2px; background: #b5bbd8; }.large-week-chart .today i { background: var(--coral); }.large-week-chart small { color: #8d989c; font-size: 9px; }
.mastery-ring { --mastery: 0%; width: 142px; height: 142px; margin: 25px auto 17px; padding: 14px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--mint) var(--mastery), #e7e2d8 0); }.mastery-ring > div { width: 100%; height: 100%; display: grid; place-content: center; border-radius: 50%; background: var(--white); text-align: center; }.mastery-ring strong { font-size: 30px; }.mastery-ring span { color: #8b979b; font-size: 9px; }
.mastery-card ul { margin: 0; padding: 0; display: grid; gap: 8px; list-style: none; }.mastery-card li { display: flex; align-items: center; gap: 8px; color: #74848b; font-size: 10px; }.mastery-card li b { margin-left: auto; color: var(--ink); }.dot { width: 8px; height: 8px; border-radius: 50%; }.dot.mastered { background: var(--mint); }.dot.learning { background: var(--yellow); }.dot.new { background: #ddd8ce; }

.collection-entry-card {
  width: 100%;
  min-height: 94px;
  margin-top: 16px;
  padding: 17px 20px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 15px;
  border: 2px solid #7d8ab9;
  border-radius: 21px;
  color: var(--ink);
  background: linear-gradient(135deg, #ecf2f8, #fffaf0);
  box-shadow: 5px 6px 0 rgba(68, 81, 112, .12);
  cursor: pointer;
  text-align: left;
}
.collection-entry-card:hover { transform: translateY(-2px); }
.collection-entry-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; color: white; background: var(--mint); transform: rotate(-3deg); }
.collection-entry-card > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.collection-entry-card small { color: #4c5a81; font-size: 12px; font-weight: 900; }
.collection-entry-card strong { font-size: 18px; letter-spacing: -.55px; }
.collection-entry-card em { color: #71827d; font-size: 13px; font-style: normal; font-weight: 700; }
.collection-entry-card > svg { color: #4f5b81; }

.collection-heading { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: start; gap: 16px; margin-bottom: 24px; }
.collection-heading h1 { margin: 11px 0 9px; font-size: clamp(34px, 4vw, 49px); line-height: 1.16; letter-spacing: -2px; }
.collection-heading h1 em { color: var(--coral); font-style: normal; }
.collection-heading p { margin: 0; color: #6f7e86; font-size: 14px; line-height: 1.65; }
.collection-total { min-width: 126px; padding: 16px; display: grid; justify-items: center; gap: 2px; border: 1px solid #dbcfae; border-radius: 20px; background: #fff9e9; text-align: center; }
.collection-total strong { color: #2d3b71; font-size: 32px; line-height: 1; }
.collection-total span { font-size: 13px; font-weight: 900; }
.collection-total small { color: #998b67; font-size: 11px; font-weight: 750; }
.collection-toolbar { padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 254, 251, .86); }
.collection-search { min-width: 280px; min-height: 48px; padding: 0 13px; display: flex; align-items: center; gap: 9px; border: 1px solid #d8d4cb; border-radius: 14px; color: #6d7f7a; background: white; }
.collection-search:focus-within { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(95, 112, 161, .14); }
.collection-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; font-weight: 750; }
.collection-search input::placeholder { color: #9ca7a3; }
.collection-search > button { width: 31px; height: 31px; display: grid; place-items: center; border: 0; border-radius: 9px; color: #788783; background: #f0eee8; cursor: pointer; }
.collection-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.collection-filters button { min-height: 42px; padding: 0 13px; border: 1px solid #ded9cf; border-radius: 13px; color: #687a76; background: #f8f6f1; cursor: pointer; font-size: 13px; font-weight: 850; }
.collection-filters button b { margin-left: 4px; color: #9aa39f; font-size: 11px; }
.collection-filters button.active { color: #27366d; border-color: #7786b5; background: #e7eef5; }
.collection-filters button.active b { color: #27366d; }
.collection-grid { margin-top: 15px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.collection-card { min-width: 0; padding: 15px; display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: rgba(255, 254, 251, .92); cursor: pointer; text-align: left; }
.collection-card:hover { border-color: #8f9bc4; background: #f2f6fa; transform: translateY(-1px); }
.collection-card > strong { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 15px; color: #182b46; background: #edf2f7; font-family: "Noto Serif KR", Batang, serif; font-size: 42px; line-height: 1; }
.collection-card-copy { min-width: 0; display: grid; gap: 4px; }
.collection-card-copy b { overflow: hidden; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.collection-card-copy small { overflow: hidden; color: #7d8b87; font-size: 12px; font-weight: 750; white-space: nowrap; text-overflow: ellipsis; }
.collection-card-meta { grid-column: 1 / -1; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px dashed #e1ddd4; }
.collection-card-meta small { color: #899590; font-size: 11px; font-weight: 750; }
.collection-card-meta em { padding: 5px 8px; border-radius: 9px; font-size: 10px; font-style: normal; font-weight: 900; white-space: nowrap; }
.collection-card-meta em.learning { color: #896616; background: #fff2c9; }
.collection-card-meta em.mastered { color: #283a71; background: #dfe8f2; }
.collection-more { min-height: 48px; margin: 18px auto 0; }
.collection-more span { margin-left: 5px; color: #88948f; }
.collection-empty { margin-top: 15px; padding: 52px 20px; display: grid; justify-items: center; border: 1px dashed #cfc9bc; border-radius: 22px; background: rgba(255, 254, 251, .76); text-align: center; }
.collection-empty > span { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; color: #394877; background: #e4ecf4; }
.collection-empty h2 { margin: 15px 0 7px; font-size: 21px; }
.collection-empty p { margin: 0; color: #7d8b87; font-size: 14px; line-height: 1.6; }
.collection-empty .primary-button { margin-top: 18px; }

.bottom-nav { display: none; }
.modal-backdrop { position: fixed; z-index: 100; inset: 0; padding: 20px; display: grid; place-items: center; background: rgba(20,36,45,.45); backdrop-filter: blur(5px); }
.sync-modal { position: relative; width: min(430px, 100%); padding: 34px; border-radius: 25px; background: var(--white); box-shadow: 0 30px 80px rgba(20,36,45,.28); }
.modal-close { position: absolute; top: 15px; right: 15px; width: 37px; height: 37px; display: grid; place-items: center; border: 0; border-radius: 11px; background: #f2efe8; cursor: pointer; }
.modal-icon { width: 55px; height: 55px; display: grid; place-items: center; border-radius: 17px; color: white; background: var(--ink); }
.sync-modal h2 { margin: 20px 0 9px; font-size: 24px; line-height: 1.3; letter-spacing: -.8px; }.sync-modal > p { margin: 0 0 22px; color: #72838b; font-size: 12px; line-height: 1.7; }
.reminder-icon { color: var(--ink); background: var(--yellow); }
.reminder-toggle { position: relative; min-height: 63px; padding: 13px 14px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 15px; background: #faf8f3; cursor: pointer; }
.reminder-toggle > span { min-width: 0; flex: 1; display: grid; gap: 4px; }.reminder-toggle strong { font-size: 12px; }.reminder-toggle small { color: #7b8b91; font-size: 9px; line-height: 1.45; }
.reminder-toggle input { position: absolute; opacity: 0; pointer-events: none; }.reminder-toggle i { position: relative; width: 43px; height: 25px; flex: 0 0 auto; border-radius: 999px; background: #cbc7be; transition: background .2s; }.reminder-toggle i::after { position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: white; box-shadow: 0 2px 6px rgba(32,55,70,.22); content: ""; transition: transform .2s; }.reminder-toggle input:checked + i { background: var(--mint); }.reminder-toggle input:checked + i::after { transform: translateX(18px); }
.reminder-time-grid { margin-top: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.reminder-time-grid label { display: grid; gap: 7px; }.reminder-time-grid label span { color: #6f7e86; font-size: 9px; font-weight: 900; }.reminder-time-grid input { width: 100%; min-height: 47px; padding: 0 12px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: white; font-size: 14px; font-weight: 900; }.reminder-time-grid input:disabled { opacity: .45; background: #f1eee8; }
.reminder-note { margin-top: 13px; padding: 11px 12px; display: flex; align-items: center; gap: 8px; border-radius: 12px; color: #80671f; background: var(--yellow-soft); font-size: 9px; line-height: 1.5; }
.sync-modal form label { display: block; margin-bottom: 7px; font-size: 10px; font-weight: 900; }.email-field { height: 48px; padding: 0 13px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 13px; background: #faf8f3; }.email-field svg { color: #9ba2a3; }.email-field input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 12px; }.modal-action { width: 100%; margin-top: 11px; }.form-message { margin-top: 10px; padding: 10px; border-radius: 10px; color: #3e4677; background: var(--mint-soft); font-size: 10px; line-height: 1.5; }
.privacy-note { margin-top: 18px; display: block; color: #9ba3a5; font-size: 9px; text-align: center; }.sync-status { margin: 18px 0 5px; padding: 14px; display: flex; align-items: center; gap: 10px; border-radius: 14px; background: #eef1f7; }.sync-status > span { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--mint); }.sync-status > div { display: grid; gap: 3px; }.sync-status strong { font-size: 11px; }.sync-status small { color: #717890; font-size: 9px; }
.account-delete-link { margin: 12px auto 0; padding: 8px 10px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 0; background: transparent; color: #a84f57; font: inherit; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.account-delete-modal { max-width: 430px; }
.account-delete-icon { color: #b24d55 !important; background: #fff0f1 !important; }
.account-delete-note { margin: 14px 0; padding: 13px 14px; display: grid; gap: 5px; border: 1px solid #eadfe0; border-radius: 14px; background: #fff9f7; text-align: left; }
.account-delete-note strong { color: #5a3034; font-size: 11px; }
.account-delete-note small { color: #75666a; font-size: 9px; line-height: 1.65; }
.account-delete-field { margin-top: 10px; display: grid; gap: 6px; text-align: left; }
.account-delete-field span { color: #50566d; font-size: 10px; font-weight: 700; }
.account-delete-field input { min-height: 44px; width: 100%; box-sizing: border-box; padding: 0 13px; border: 1px solid #d9dce7; border-radius: 12px; background: #fff; color: #24283b; font: inherit; font-size: 12px; }
.account-delete-message { margin: 10px 0 0; color: #ad3f48 !important; font-size: 10px; font-weight: 700; }
.account-delete-confirm { min-height: 44px; width: 100%; margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 13px; background: #a9434c; color: #fff; font: inherit; font-size: 11px; font-weight: 800; }
.account-delete-confirm:disabled { opacity: .45; }
.toast { position: fixed; z-index: 200; left: 50%; bottom: 28px; transform: translateX(-50%); padding: 12px 17px; display: flex; align-items: center; gap: 8px; border-radius: 999px; color: white; background: var(--ink); box-shadow: 0 12px 30px rgba(32,55,70,.25); font-size: 11px; font-weight: 800; }
.loading-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 15px; }.loading-screen p { color: #76878e; font-size: 12px; }.loading-screen .primary-button { margin-top: 5px; }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(440px, 1.05fr) minmax(440px, .95fr); background: var(--white); }
.auth-story { position: relative; min-height: 100vh; padding: 44px clamp(42px, 6vw, 92px); overflow: hidden; color: white; background: radial-gradient(circle at 78% 17%, rgba(84, 122, 186,.38), transparent 28%), radial-gradient(circle at 15% 87%, rgba(238,118,95,.28), transparent 30%), var(--ink); }
.auth-story::after { position: absolute; inset: 0; opacity: .12; background: repeating-linear-gradient(0deg, transparent 0 37px, white 38px); content: ""; }
.auth-brand, .auth-story-copy, .auth-mascot { position: relative; z-index: 2; }
.auth-brand { display: flex; align-items: center; gap: 12px; }.auth-brand .brand-mark { color: var(--ink); background: var(--yellow); }.auth-brand strong { font-size: 20px; letter-spacing: -.6px; }
.auth-story-copy { max-width: 570px; margin-top: clamp(90px, 15vh, 150px); }.auth-story-copy .eyebrow { color: #a9b0cc; }.auth-story-copy .eyebrow > span { background: var(--yellow); }.auth-story-copy h1 { margin: 18px 0 17px; font-size: clamp(43px, 5vw, 68px); line-height: 1.12; letter-spacing: -3.4px; }.auth-story-copy h1 em { color: var(--yellow); font-style: normal; }.auth-story-copy > p { max-width: 490px; margin: 0; color: #c6d3d8; font-size: 15px; line-height: 1.8; }
.auth-story-copy ul { margin: 30px 0 0; padding: 0; display: grid; gap: 12px; list-style: none; }.auth-story-copy li { display: flex; align-items: center; gap: 9px; color: #e8e8ef; font-size: 12px; font-weight: 800; }.auth-story-copy li svg { padding: 3px; border-radius: 50%; color: var(--ink); background: var(--mint); }
.auth-mascot { position: absolute; right: clamp(20px, 4vw, 58px); bottom: 28px; }.auth-mascot::before { position: absolute; inset: -15px; border: 1px solid rgba(255,255,255,.12); border-radius: 34px; background: rgba(255,255,255,.06); content: ""; }.auth-hero-image { position: relative; width: min(520px, 39vw); height: min(315px, 24vw); overflow: hidden; border: 6px solid rgba(255,255,255,.11); border-radius: 28px; background: url("/hanja-study-still-life.png") center 52% / cover no-repeat; box-shadow: 0 24px 55px rgba(0,0,0,.28); }
.auth-panel { padding: 48px clamp(34px, 7vw, 100px); display: grid; place-items: center; background: linear-gradient(140deg, #fffefb, #f6f1e8); }.auth-panel-inner { width: min(470px, 100%); }.auth-step { color: var(--coral); font-size: 10px; font-weight: 950; letter-spacing: 1.2px; }.auth-panel h2 { margin: 10px 0 8px; font-size: 34px; letter-spacing: -1.4px; }.auth-panel-inner > p { margin: 0; color: #77888f; font-size: 12px; line-height: 1.7; }
.auth-tabs { margin-top: 26px; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; border-radius: 14px; background: #ece8df; }.auth-tabs button { min-height: 41px; border: 0; border-radius: 11px; color: #7c898e; background: transparent; cursor: pointer; font-size: 12px; font-weight: 900; }.auth-tabs button.active { color: var(--ink); background: white; box-shadow: 0 5px 14px rgba(32,55,70,.08); }
.auth-form { margin-top: 21px; display: grid; gap: 14px; }.auth-form label { display: grid; gap: 7px; }.auth-form label > span { font-size: 10px; font-weight: 900; }.auth-form label > div { min-height: 49px; padding: 0 13px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 13px; background: white; }.auth-form label > div:focus-within { border-color: #8f9ac8; box-shadow: 0 0 0 3px rgba(84, 122, 186,.12); }.auth-form label svg { flex: 0 0 auto; color: #95a0a3; }.auth-form input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: 12px; }.auth-form label button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 9px; background: #f2efe8; cursor: pointer; }
.auth-message { padding: 11px 13px; border-radius: 11px; font-size: 10px; line-height: 1.6; }.auth-message.success { color: #2e3773; background: var(--mint-soft); }.auth-message.error { color: #ad4c3a; background: var(--coral-soft); }.auth-submit { width: 100%; margin-top: 3px; }.auth-help { margin-top: 15px; display: block; color: #98a1a3; font-size: 9px; text-align: center; }

.account-email { margin: 15px 0; padding: 13px 14px; display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 13px; background: #faf8f3; }.account-email small { color: #929da1; font-size: 9px; }.account-email strong { font-size: 11px; word-break: break-all; }
.admin-nav-block button.active { background: #fff8df; }.admin-nav-block button.active::before { background: var(--yellow); }
.admin-heading { padding: 29px 31px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid #e3c97f; border-radius: 25px; background: radial-gradient(circle at 88% 5%, rgba(233,185,76,.28), transparent 31%), #fffaf0; box-shadow: 0 13px 38px rgba(32,55,70,.06); }
.admin-heading h1 { margin: 7px 0 6px; font-size: 30px; letter-spacing: -1.2px; }.admin-heading p { margin: 0; color: #78878d; font-size: 11px; }.admin-kicker { display: inline-flex; align-items: center; gap: 7px; color: #8b6715; font-size: 9px; font-weight: 950; letter-spacing: 1px; }
.admin-summary-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }.admin-summary-grid article { min-height: 103px; padding: 18px; display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 19px; background: var(--white); }.admin-summary-grid article > div { min-width: 0; display: grid; gap: 5px; }.admin-summary-grid small { color: #87949a; font-size: 9px; }.admin-summary-grid strong { font-size: 24px; }.admin-summary-grid strong i { margin-left: 2px; font-size: 10px; font-style: normal; }
.admin-users-card { margin-top: 16px; padding: 25px; border: 1px solid var(--line); border-radius: 23px; background: var(--white); box-shadow: var(--shadow); }.admin-users-card > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }.admin-users-card h2 { margin: 0 0 5px; font-size: 18px; }.admin-users-card header p { margin: 0; color: #849298; font-size: 9px; }.admin-users-card header > span { padding: 7px 10px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; color: #2e3874; background: var(--mint-soft); font-size: 8px; font-weight: 900; white-space: nowrap; }
.admin-empty { min-height: 180px; display: grid; place-content: center; justify-items: center; gap: 10px; color: #89959a; font-size: 11px; }
.admin-user-list { margin-top: 18px; display: grid; gap: 10px; }.admin-user-list > article { padding: 16px; display: grid; grid-template-columns: minmax(150px, .85fr) minmax(170px, .8fr) minmax(390px, 1.7fr); align-items: center; gap: 18px; border: 1px solid #e5e0d6; border-radius: 17px; background: #fcfaf5; }
.admin-user-main { min-width: 0; display: flex; align-items: center; gap: 11px; }.admin-user-main > span { width: 39px; height: 39px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: white; background: var(--ink); font-weight: 950; }.admin-user-main > div { min-width: 0; display: grid; gap: 4px; }.admin-user-main strong { font-size: 12px; }.admin-user-main small { overflow: hidden; color: #8a969a; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.admin-usage { min-width: 0; }.admin-usage p { margin: 0 0 7px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }.admin-usage p span { color: #7d8c92; font-size: 8px; }.admin-usage p strong { color: var(--coral); font-size: 12px; }.admin-usage > div { height: 7px; overflow: hidden; border-radius: 999px; background: #e6e1d8; }.admin-usage i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--coral), var(--yellow)); }.admin-usage > small { margin-top: 6px; display: block; color: #949da0; font-size: 7px; }
.admin-user-list dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 15px; }.admin-user-list dl > div { min-width: 0; display: grid; gap: 2px; }.admin-user-list dt { color: #929b9e; font-size: 7px; }.admin-user-list dd { margin: 0; overflow: hidden; color: #455b66; font-size: 9px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }.admin-user-list dd svg { vertical-align: -3px; color: var(--mint); }
.admin-groups-card { margin-top: 16px; padding: 25px; border: 1px solid var(--line); border-radius: 23px; background: var(--white); box-shadow: var(--shadow); }
.admin-groups-card > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }.admin-groups-card > header h2 { margin: 0 0 5px; font-size: 18px; }.admin-groups-card > header p { margin: 0; color: #849298; font-size: 9px; }.admin-groups-card > header > span { padding: 7px 10px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; color: #72570f; background: #fff8df; font-size: 8px; font-weight: 900; white-space: nowrap; }
.admin-group-actions { margin-top: 18px; display: grid; grid-template-columns: minmax(220px, 1fr) auto; align-items: end; gap: 10px; }.admin-group-actions.assign { grid-template-columns: 1fr 1fr auto; margin-top: 10px; }.admin-group-actions label { min-width: 0; display: grid; gap: 6px; }.admin-group-actions label > span { color: #718187; font-size: 8px; font-weight: 850; }.admin-group-actions input, .admin-group-actions select { width: 100%; height: 43px; padding: 0 12px; border: 1px solid #d9ddd8; border-radius: 11px; color: var(--ink); background: #fff; font-size: 10px; }.admin-group-actions button { min-height: 43px; }
.admin-group-notice { margin: 12px 0 0; padding: 10px 12px; border-radius: 11px; color: #374c72; background: #e7f5eb; font-size: 9px; font-weight: 850; }
.admin-group-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }.admin-group-grid > article { min-width: 0; padding: 14px; border: 1px solid #e1ded5; border-radius: 16px; background: #fcfaf5; }.admin-group-grid > article > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.admin-group-grid > article > header > div { display: grid; gap: 2px; }.admin-group-grid > article strong { font-size: 11px; }.admin-group-grid > article small { color: #899398; font-size: 8px; }.admin-group-grid button { display: grid; place-items: center; border: 0; color: #9b6a61; background: transparent; cursor: pointer; }.admin-group-grid > article > header > button { width: 30px; height: 30px; border-radius: 9px; background: #fff0eb; }.admin-group-grid > article > div { margin-top: 11px; display: flex; flex-wrap: wrap; gap: 6px; }.admin-group-grid > article > div > p { margin: 0; color: #929b9d; font-size: 8px; }.admin-group-grid > article > div > span { padding: 6px 7px 6px 9px; display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; color: #4b5665; background: #e9f3e8; font-size: 8px; font-weight: 850; }
.review-game-banner { margin-top: 18px; padding: 22px 24px; display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 16px; overflow: hidden; border-radius: 22px; color: white; background: radial-gradient(circle at 90% 0, rgba(233,185,76,.35), transparent 35%), var(--ink); }.review-game-banner > span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; color: var(--ink); background: var(--yellow); }.review-game-banner small { color: #9fa8d0; font-size: 9px; font-weight: 900; }.review-game-banner h2 { margin: 4px 0; font-size: 18px; }.review-game-banner p { margin: 0; color: #bfccd1; font-size: 10px; }.review-game-banner .primary-button { color: var(--ink); background: white; box-shadow: none; }

.game-view { width: min(1120px, calc(100% - 64px)); }.game-heading { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }.game-hero-badge { min-width: 210px; padding: 17px 19px; display: flex; align-items: center; gap: 13px; border: 1px solid #e3c97f; border-radius: 19px; color: #8d6816; background: #fff7dc; }.game-hero-badge > div { display: grid; gap: 2px; }.game-hero-badge small { color: #a28d57; font-size: 9px; }.game-hero-badge strong { color: var(--ink); font-size: 18px; }.game-hero-badge span { font-size: 9px; }
.game-stage-card { padding: 27px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,254,251,.82); }.game-stage-head, .game-stage-head > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.game-stage-head h2 { margin: 0 0 3px; font-size: 17px; }.game-stage-head p { margin: 0; color: #89969b; font-size: 10px; }.game-stage-head label { display: flex; align-items: center; gap: 8px; color: #849196; font-size: 9px; font-weight: 900; }.game-stage-head select { min-height: 36px; padding: 0 30px 0 11px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: white; font-size: 10px; font-weight: 900; }
.stage-game-grid { margin-top: 21px; display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; }.stage-game-grid button { position: relative; min-height: 84px; padding: 9px 5px; display: grid; place-items: center; align-content: center; gap: 3px; border: 1px solid #e4dfd4; border-radius: 14px; color: #7b898f; background: #faf8f3; cursor: pointer; }.stage-game-grid button:hover { transform: translateY(-2px); border-color: #b7bed8; }.stage-game-grid button.selected { color: white; border-color: var(--mint); background: var(--mint); box-shadow: 0 9px 20px rgba(84, 122, 186,.2); }.stage-game-grid button > span { font-size: 20px; font-weight: 950; }.stage-game-grid button strong { font-size: 9px; }.stage-game-grid button small { color: inherit; opacity: .74; font-size: 7px; }.stage-game-grid button svg { position: absolute; top: 7px; right: 7px; color: var(--yellow); }.stage-game-grid button.selected svg { color: #fff1af; }
.game-start-card { margin-top: 16px; padding: 24px 27px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 25px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 12px 36px rgba(32,55,70,.06); }.game-start-copy { display: flex; align-items: center; gap: 15px; }.game-round-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; color: white; background: var(--ink); }.game-start-copy small { color: var(--coral); font-size: 9px; font-weight: 900; }.game-start-copy h2 { margin: 4px 0; font-size: 17px; }.game-start-copy p { margin: 0; color: #8b979b; font-size: 9px; }.game-start-score { padding-right: 25px; display: grid; gap: 3px; border-right: 1px solid var(--line); text-align: right; }.game-start-score small { color: #929c9f; font-size: 8px; }.game-start-score strong { font-size: 25px; }.game-start-score strong span { font-size: 10px; }
.game-play-view { width: min(750px, 100%); margin: 0 auto; }.game-topline { display: grid; grid-template-columns: 105px 1fr 54px; align-items: center; gap: 14px; }.game-topline > button { padding: 8px 10px; display: flex; align-items: center; gap: 6px; border: 0; color: #7a898f; background: transparent; cursor: pointer; font-size: 9px; font-weight: 900; }.game-topline > div { height: 8px; overflow: hidden; border-radius: 999px; background: #dfdbd1; }.game-topline > div span { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--coral), var(--yellow)); transition: width .25s; }.game-topline > strong { color: #7f8c91; font-size: 10px; text-align: right; }
.game-question-card { margin-top: 18px; padding: 38px 42px; border: 1px solid var(--line); border-radius: 27px; background: white; box-shadow: var(--shadow); }.game-type { display: inline-flex; align-items: center; gap: 6px; color: #b95544; font-size: 10px; font-weight: 950; letter-spacing: .5px; }.game-question-card > p { margin: 12px 0 0; color: #65777f; font-size: 13px; font-weight: 800; }.game-prompt { min-height: 160px; margin: 18px 0; padding: 20px; display: grid; place-content: center; justify-items: center; gap: 9px; border-radius: 20px; background: #f6f2e9; }.game-prompt strong { font-family: Batang, "Noto Serif KR", serif; font-size: 86px; line-height: 1; }.game-prompt.hanja strong { font-family: inherit; font-size: 35px; }.game-prompt.word strong { font-size: 52px; }.game-prompt small { color: #88969b; font-size: 10px; }
.game-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.game-options button { min-height: 61px; padding: 10px 14px; display: grid; grid-template-columns: 31px 1fr 20px; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; background: #faf8f3; cursor: pointer; text-align: left; }.game-options button > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: #eae6de; font-size: 9px; }.game-options button b { font-size: 13px; }.game-options button.correct { color: #242f78; border-color: #919dc9; background: #edf0f8; }.game-options button.correct > span { color: white; background: var(--mint); }.game-options button.wrong { color: #b64d3a; border-color: #edaa9b; background: #fff1ed; }.game-options button.wrong > span { color: white; background: var(--coral); }
.game-answer { margin-top: 13px; padding: 13px 15px; display: flex; align-items: center; gap: 10px; border-radius: 14px; }.game-answer.correct { background: var(--mint-soft); }.game-answer.wrong { background: var(--yellow-soft); }.game-answer > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: white; background: var(--mint); }.game-answer.wrong > span { color: #72570f; background: var(--yellow); }.game-answer p { margin: 0; color: #60727a; font-size: 9px; line-height: 1.6; }.game-answer strong { display: block; color: var(--ink); font-size: 11px; }.game-next { margin: 18px 0 0 auto; display: flex; }
.game-result-card { width: min(670px, 100%); margin: 10px auto 0; padding: 42px; border: 1px solid var(--line); border-radius: 28px; background: white; box-shadow: var(--shadow); text-align: center; }.game-result-medal { position: relative; width: 105px; height: 105px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; color: #96690f; background: var(--yellow-soft); }.game-result-medal i { position: absolute; top: 0; right: 2px; color: var(--coral); font-size: 25px; font-style: normal; }.game-result-card h2 { margin: 11px 0 8px; font-size: 27px; }.game-result-card > p { margin: 0; color: #74858c; font-size: 11px; }.game-score { margin: 22px auto; display: flex; align-items: baseline; justify-content: center; gap: 4px; }.game-score strong { color: var(--coral); font-size: 58px; }.game-score span { color: #879499; font-size: 16px; font-weight: 900; }.game-result-stats { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }.game-result-stats > div { padding: 15px; display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 8px; text-align: left; }.game-result-stats > div + div { border-left: 1px solid var(--line); }.game-result-stats svg { color: var(--yellow); }.game-result-stats span { color: #8a979b; font-size: 9px; }.game-result-stats strong { font-size: 13px; }

.review-checkpoint-grid { grid-template-columns: repeat(6, 1fr); }
.review-checkpoint-grid button.passed:not(.selected) { color: #283376; border-color: #9ba5cf; background: #edf1f8; }
.review-checkpoint-grid button.locked { opacity: .55; cursor: not-allowed; }
.review-checkpoint-grid button.locked:hover { transform: none; border-color: #e4dfd4; }
.exam-start-card { grid-template-columns: 1fr auto auto; }
.exam-ready-note { margin: 12px 0 0; padding: 11px 14px; display: flex; align-items: center; gap: 8px; border-radius: 13px; color: #7c671f; background: #fff7da; font-size: 9px; font-weight: 850; }
.exam-day-banner { margin-bottom: 16px; padding: 18px 20px; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 14px; border: 1px solid #e5c96f; border-radius: 19px; background: linear-gradient(115deg, #fff9df, #fffdf6); }
.exam-day-banner > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: #795b0f; background: var(--yellow); }
.exam-day-banner small { color: #a05a49; font-size: 8px; font-weight: 950; }
.exam-day-banner strong { margin-top: 3px; display: block; font-size: 12px; }
.exam-day-banner p { margin: 3px 0 0; color: #7e8d91; font-size: 8px; }
.exam-day-banner.passed { border-color: #9aa4cf; background: linear-gradient(115deg, #edf1f8, #fffdf6); }
.exam-day-banner.passed > span { color: white; background: var(--mint); }
.matching-exam-view { width: min(900px, 100%); margin: 0 auto; }
.matching-exam-card { margin-top: 18px; padding: 31px; border: 1px solid var(--line); border-radius: 27px; background: white; box-shadow: var(--shadow); }
.matching-exam-card h2 { margin: 10px 0 5px; font-size: 23px; }
.matching-exam-card > p { margin: 0; color: #7e8e94; font-size: 10px; }
.matching-answer-pool { margin-top: 18px; padding: 14px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; border-radius: 16px; background: #f4f1e9; }
.matching-answer-pool span { min-width: 0; padding: 8px; display: flex; align-items: center; gap: 6px; border-radius: 10px; background: white; font-size: 8px; font-weight: 850; }
.matching-answer-pool b { width: 20px; height: 20px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 6px; color: #815c0a; background: var(--yellow-soft); font-size: 8px; }
.matching-rows { margin-top: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.matching-rows label { min-width: 0; min-height: 62px; padding: 8px 10px; display: grid; grid-template-columns: 62px 1fr minmax(20px, auto); align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 13px; background: #fcfaf5; }
.matching-rows label > span { display: flex; align-items: center; gap: 6px; }
.matching-rows label small { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; color: #879397; background: #ece8df; font-size: 7px; }
.matching-rows label strong { font-family: Batang, "Noto Serif KR", serif; font-size: 28px; }
.matching-rows select { min-width: 0; width: 100%; height: 38px; padding: 0 9px; border: 1px solid #d8ddd9; border-radius: 9px; color: var(--ink); background: white; font-size: 9px; }
.matching-rows label.correct { border-color: #8f9cca; background: #edf1f8; }
.matching-rows label.wrong { border-color: #ebaa9b; background: #fff2ee; }
.matching-rows em { color: #2d397c; font-size: 8px; font-style: normal; font-weight: 900; }
.matching-rows label.wrong em { color: #ae5444; }
.matching-round-result { margin-top: 17px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.matching-round-result strong { color: #354078; font-size: 12px; }
.matching-check { margin: 17px 0 0 auto; display: flex; }
.exam-result-card { position: relative; overflow: hidden; }
.exam-result-card > *:not(.exam-confetti) { position: relative; z-index: 2; }
.exam-result-card.passed { border-color: #a1abd2; background: radial-gradient(circle at 50% 0, rgba(239,198,91,.18), transparent 35%), white; }
.exam-result-view { width: min(920px, 100%); margin: 0 auto; display: grid; gap: 16px; }
.exam-result-view > .game-result-card { margin-top: 0; }
.exam-review-sheet { padding: 28px; border: 1px solid var(--line); border-radius: 26px; background: var(--white); box-shadow: var(--shadow); }
.exam-review-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.exam-review-heading h2 { margin: 6px 0 4px; font-size: 23px; letter-spacing: -.8px; }
.exam-review-heading p { margin: 0; color: #75868d; font-size: 14px; line-height: 1.55; }
.exam-review-counts { display: flex; gap: 7px; }
.exam-review-counts span { min-height: 38px; padding: 0 11px; display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; font-size: 13px; font-weight: 900; white-space: nowrap; }
.exam-review-counts .correct { color: #273475; background: #e3ebf3; }
.exam-review-counts .wrong { color: #ad4f43; background: #fff0eb; }
.exam-review-list { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.exam-review-item { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-left-width: 5px; border-radius: 17px; background: #fcfaf5; }
.exam-review-item.correct { border-left-color: var(--mint); }
.exam-review-item.wrong { border-color: #efc0b7; border-left-color: var(--coral); background: #fff9f6; }
.exam-review-item > header { min-height: 43px; padding: 8px 11px; display: grid; grid-template-columns: 27px 1fr auto; align-items: center; gap: 8px; border-bottom: 1px solid #e7e2d9; }
.exam-review-item > header > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: #65777f; background: #ece8df; font-size: 12px; font-weight: 900; }
.exam-review-item > header strong { font-size: 13px; }
.exam-review-item > header em { display: inline-flex; align-items: center; gap: 4px; color: #2d3978; font-size: 12px; font-style: normal; font-weight: 900; }
.exam-review-item.wrong > header em { color: #b35345; }
.exam-review-question { min-height: 88px; padding: 12px; display: grid; grid-template-columns: minmax(72px, auto) 1fr; align-items: center; gap: 12px; }
.exam-review-question b { max-width: 180px; overflow-wrap: anywhere; font-family: Batang, "Noto Serif KR", serif; font-size: 44px; line-height: 1.08; }
.exam-review-question.hanja b { font-family: inherit; font-size: 22px; }
.exam-review-question.word b { font-size: 31px; }
.exam-review-question p { margin: 0; color: #65777f; font-size: 13px; line-height: 1.45; }
.exam-review-item dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #e7e2d9; }
.exam-review-item dl > div { min-width: 0; padding: 10px 12px; display: grid; gap: 4px; }
.exam-review-item dl > div + div { border-left: 1px solid #e7e2d9; }
.exam-review-item dt { color: #869298; font-size: 11px; font-weight: 800; }
.exam-review-item dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 14px; font-weight: 900; line-height: 1.4; }
.exam-review-item.wrong .chosen-answer dd { color: #b35345; }
.exam-review-item .correct-answer dd { color: #263276; }
.exam-review-sheet .exam-result-actions { margin-top: 22px; }
.exam-pass-line { position: relative; height: 9px; margin: 0 0 18px; border-radius: 999px; background: #e7e3da; }
.exam-pass-line span { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--coral), var(--yellow), var(--mint)); }
.exam-pass-line i { position: absolute; top: 12px; left: 60%; color: #8a969a; font-size: 7px; font-style: normal; transform: translateX(-50%); }
.exam-confetti { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.exam-confetti i { position: absolute; top: -24px; left: var(--confetti-left); width: 8px; height: 15px; border-radius: 3px; background: var(--confetti-color); animation: exam-confetti-fall 2.6s ease-in var(--confetti-delay) both; }
@keyframes exam-confetti-fall { 0% { opacity: 0; transform: translateY(-20px) rotate(0); } 10% { opacity: 1; } 100% { opacity: 0; transform: translateY(630px) rotate(var(--confetti-turn)); } }

@media (max-width: 980px) {
  .topbar { padding: 0 20px; }
  .desktop-frame { display: block; }
  .side-nav { display: none; }
  .home-view, .content-view, .study-view { width: min(100% - 36px, 860px); padding-top: 28px; padding-bottom: 96px; }
  .welcome-card { padding: 38px; }
  .daily-grid { grid-template-columns: repeat(2, 1fr); }
  .lesson-layout { grid-template-columns: 1fr; }
  .hanja-study-card { min-height: 650px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-summary-grid { grid-template-columns: repeat(2, 1fr); }.admin-user-list > article { grid-template-columns: .8fr 1.2fr; }.admin-user-list dl { grid-column: 1 / -1; }
  .admin-group-grid { grid-template-columns: repeat(2, 1fr); }
  .growth-layout { grid-template-columns: 1fr; }
  .bottom-nav { position: fixed; z-index: 40; left: 50%; bottom: 14px; width: min(520px, calc(100% - 28px)); height: 67px; padding: 7px 10px; display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid rgba(222,216,202,.9); border-radius: 22px; background: rgba(255,254,251,.95); box-shadow: 0 12px 35px rgba(32,55,70,.18); backdrop-filter: blur(16px); transform: translateX(-50%); }
  .auth-page { grid-template-columns: .9fr 1.1fr; }.auth-story { min-height: 100vh; padding: 36px; }.auth-story-copy h1 { font-size: 46px; }.auth-hero-image { width: 340px; height: 206px; }
  .stage-game-grid { grid-template-columns: repeat(6, 1fr); }.review-checkpoint-grid { grid-template-columns: repeat(4, 1fr); }.game-start-card { grid-template-columns: 1fr auto; }.game-start-card > .primary-button { grid-column: 1 / -1; width: 100%; }.review-game-banner { grid-template-columns: 52px 1fr; }.review-game-banner > button { grid-column: 1 / -1; }.matching-answer-pool { grid-template-columns: repeat(2, 1fr); }
  .bottom-nav button { position: relative; display: grid; place-items: center; gap: 2px; border: 0; border-radius: 14px; color: #8c989d; background: transparent; cursor: pointer; font-size: 9px; font-weight: 800; }.bottom-nav button.active { color: var(--coral); background: #fff2ee; }.bottom-nav button b { position: absolute; top: 2px; right: 16%; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--coral); font-size: 8px; }
}

@media (max-width: 640px) {
  .app-shell { height: 100dvh; min-height: 100dvh; padding: 0; display: grid; grid-template-rows: 64px minmax(0, 1fr) calc(76px + env(safe-area-inset-bottom)); overflow: hidden; }
  .topbar { height: 64px; padding: 0 14px; }
  .desktop-frame { min-height: 0; overflow: hidden; }
  .main-content { height: 100%; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px 11px 11px 5px; }
  .brand strong { font-size: 17px; }.brand small, .profile-copy, .sync-chip span { display: none; }
  .sync-chip { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .profile-chip { gap: 4px; padding:8px 10px; }.avatar { width: 36px; height: 36px; }.profile-setting-name{display:block;font-size:12px}
  .profile-popover { right: -4px; width: min(286px, calc(100vw - 28px)); }
  .sync-modal { max-height: calc(100dvh - 32px); padding: 27px 22px; overflow-y: auto; border-radius: 22px; }.sync-modal h2 { margin-top: 16px; font-size: 22px; }.reminder-time-grid { grid-template-columns: 1fr; }
  .admin-heading { padding: 22px; align-items: flex-start; }.admin-heading h1 { font-size: 25px; }.admin-heading p { max-width: 210px; line-height: 1.55; }.admin-heading .secondary-button { min-height: 40px; padding: 0 12px; font-size: 0; }.admin-heading .secondary-button svg { width: 18px; height: 18px; }
  .admin-summary-grid { grid-template-columns: 1fr 1fr; gap: 8px; }.admin-summary-grid article { min-height: 89px; padding: 13px; gap: 9px; }.admin-summary-grid .icon-tile { width: 34px; height: 34px; }.admin-summary-grid strong { font-size: 20px; }
  .admin-users-card { padding: 18px 14px; }.admin-users-card > header { align-items: flex-start; }.admin-users-card header p { max-width: 210px; line-height: 1.5; }.admin-users-card header > span { display: none; }.admin-user-list > article { padding: 14px; grid-template-columns: 1fr; gap: 14px; }.admin-user-list dl { grid-column: auto; grid-template-columns: 1fr 1fr; gap: 9px; }.admin-user-list dd { white-space: normal; line-height: 1.4; }
  .admin-groups-card { padding: 18px 14px; }.admin-groups-card > header { align-items: flex-start; }.admin-groups-card > header p { line-height: 1.5; }.admin-groups-card > header > span { display: none; }.admin-group-actions, .admin-group-actions.assign { grid-template-columns: 1fr; }.admin-group-actions button { width: 100%; }.admin-group-grid { grid-template-columns: 1fr; }
  .home-view, .content-view, .study-view { width: calc(100% - 28px); padding-top: 18px; padding-bottom: 28px; }
  .welcome-card { min-height: 365px; padding: 28px 24px 18px; grid-template-columns: 1fr; align-items: start; border-radius: 24px; }
  .welcome-copy h1, .page-heading h1 { margin: 12px 0 9px; font-size: 32px; }.welcome-copy > p { font-size: 12px; }.welcome-copy .primary-button { margin-top: 18px; }
  .welcome-visual { position: absolute; right: -15px; bottom: -14px; width: 176px; height: 158px; }.welcome-visual::before { width: 220px; height: 220px; bottom: -110px; }.welcome-hero-image { width: 188px; height: 130px; border-width: 3px; border-radius: 18px 18px 12px 12px; }.streak-pill { top: -13px; right: 35px; white-space: nowrap; }.spark-a { left: 5px; }
  .date-browser { margin-top: 16px; padding: 14px; border-radius: 18px; }
  .date-browser-head { align-items: flex-start; gap: 8px; }.date-browser-head > div { gap: 8px; }.date-icon { width: 36px; height: 36px; border-radius: 11px; }.date-actions { gap: 5px; }.date-actions > button, .date-input-button { min-height: 34px; padding: 0 9px; font-size: 9px; }
  .week-picker { margin-top: 12px; grid-template-columns: 30px 1fr 30px; gap: 4px; }.week-arrow { width: 30px; height: 34px; }.week-days { gap: 3px; }.week-days button { min-height: 60px; padding: 6px 2px 4px; border-radius: 11px; }.week-days button strong { font-size: 15px; }.week-days button small, .week-days button span { font-size: 7px; }
  .stage-track { padding: 12px; grid-template-columns: 1fr auto; gap: 10px; }.stage-progress { grid-column: 1 / -1; grid-row: 2; }.stage-track label { grid-column: 2; grid-row: 1; }.stage-track label > span { display: none; }.stage-track select { width: 130px; }
  .daily-section { margin-top: 28px; }.section-heading h2 { font-size: 20px; }
  .daily-grid { gap: 9px; }.daily-hanja-card { min-height: 205px; padding: 9px; border-radius: 18px; }.card-number { top: 15px; left: 15px; }.daily-card-art { height: 94px; border-radius: 12px; }.daily-card-copy { min-height: 82px; padding: 10px 2px 1px; gap: 8px; }.daily-card-copy > strong { font-size: 42px; }.daily-card-copy b { font-size: 10px; }.daily-card-copy small { font-size: 8px; }
  .dashboard-row { grid-template-columns: 1fr; }.week-card, .review-peek { padding: 19px; }
  .study-topline { grid-template-columns: 38px 1fr 58px; gap: 10px; }.icon-button { width: 38px; height: 38px; }.study-topline > span { font-size: 8px; }
  .lesson-layout { margin-top: 18px; gap: 12px; }.hanja-study-card { min-height: 580px; padding: 19px; border-radius: 22px; }.study-card-art { height: 125px; margin-top: 14px; border-radius: 15px; }.hanja-stage { width: 220px; margin: 12px 0 10px; }.hanja-stage strong { font-size: 155px; }.hanja-study-card h2 { font-size: 18px; }.note-card { padding: 17px; border-radius: 18px; }.stroke-writer { width: min(250px, 100%); }.word-list { grid-template-columns: 1fr; }.lesson-next-action .primary-button { padding: 0 14px; font-size: 11px; }
  .writing-card { min-height: 440px; }.writing-grid > span { font-size: 170px; }
  .quiz-card, .complete-card { margin-top: 20px; padding: 24px 18px; border-radius: 22px; }.quiz-card h2 { font-size: 18px; }.quiz-card h2 strong { display: block; margin: 0 0 7px; font-size: 68px; }.quiz-options { grid-template-columns: 1fr; }.answer-note { text-align: left; }.result-grid strong { font-size: 18px; }.complete-actions { display: grid; grid-template-columns: 1fr 1fr; }.complete-actions button { padding: 0 10px; font-size: 10px; }
  .content-view { padding-top: 32px; }.page-heading { margin-bottom: 24px; }.review-summary { grid-template-columns: 1fr; gap: 8px; }.review-summary > div { padding: 14px; }.review-list-card { padding: 18px; }.review-list-card .section-heading { align-items: center; }.review-list-card .section-heading h2 { font-size: 17px; }.review-list-card .primary-button { padding: 0 12px; font-size: 10px; }
  .review-table > button { grid-template-columns: 44px 1fr 28px 16px; gap: 9px; }.review-table > button > i, .review-table em { display: none; }.review-table > button > strong { font-size: 32px; }
  .stats-heading { display: block; }.level-badge { margin-top: 18px; width: fit-content; }.stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }.stats-grid article { padding: 13px; grid-template-columns: 36px 1fr; gap: 8px; }.stats-grid strong { font-size: 18px; }.growth-layout { gap: 9px; }.chart-card, .mastery-card { padding: 18px; }.large-week-chart { height: 180px; gap: 8px; }
  .sync-modal { padding: 28px 21px; }.sync-modal h2 { font-size: 21px; }
  .auth-page { display: block; background: var(--paper); }.auth-story { min-height: auto; padding: 25px 22px 24px; }.auth-story-copy { margin-top: 42px; padding-bottom: 0; }.auth-story-copy h1 { margin: 12px 0 10px; font-size: 35px; letter-spacing: -2px; }.auth-story-copy > p { max-width: 100%; padding-right: 0; font-size: 11px; }.auth-story-copy ul { display: none; }.auth-mascot { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 20px; }.auth-hero-image { width: 100%; height: 150px; border-width: 3px; border-radius: 18px; }.auth-mascot::before { inset: -8px; border-radius: 23px; }.auth-panel { padding: 29px 20px 38px; place-items: start center; }.auth-panel h2 { font-size: 27px; }.auth-tabs { margin-top: 20px; }.auth-form { gap: 11px; }
  .game-view { width: calc(100% - 28px); }.game-heading { display: block; }.game-hero-badge { width: fit-content; min-width: 190px; margin-top: 16px; }.game-stage-card { padding: 18px; }.game-stage-head { align-items: flex-start; }.game-stage-head label { display: none; }.stage-game-grid, .review-checkpoint-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }.stage-game-grid button { min-height: 73px; }.game-start-card { padding: 18px; display: grid; grid-template-columns: 1fr; gap: 15px; }.game-start-score { padding: 0; border: 0; text-align: left; }.game-start-card > .primary-button { grid-column: auto; }.game-round-icon { width: 49px; height: 49px; }.game-question-card { padding: 24px 18px; }.game-topline { grid-template-columns: 86px 1fr 42px; gap: 7px; }.game-prompt { min-height: 140px; }.game-prompt strong { font-size: 74px; }.game-prompt.word strong { font-size: 40px; }.game-options { grid-template-columns: 1fr; }.game-result-card { padding: 28px 18px; }.game-result-card h2 { font-size: 23px; }.game-result-stats > div { padding: 12px; grid-template-columns: 20px 1fr; }.game-result-stats strong { grid-column: 2; }.review-game-banner { padding: 19px; grid-template-columns: 45px 1fr; gap: 12px; }.review-game-banner > span { width: 45px; height: 45px; }.review-game-banner h2 { font-size: 15px; }.review-game-banner p { line-height: 1.5; }.exam-day-banner { padding: 15px; grid-template-columns: 42px 1fr; }.exam-day-banner > span { width: 40px; height: 40px; }.exam-day-banner > button { grid-column: 1 / -1; width: 100%; }.matching-exam-card { padding: 22px 15px; }.matching-exam-card h2 { font-size: 20px; }.matching-answer-pool { grid-template-columns: 1fr; }.matching-rows { grid-template-columns: 1fr; }.matching-rows label { grid-template-columns: 55px 1fr; }.matching-rows em { grid-column: 2; }.matching-round-result { align-items: stretch; flex-direction: column; }.matching-round-result .primary-button, .matching-check { width: 100%; justify-content: center; }.exam-confetti i { animation-duration: 2.1s; }
  .welcome-card { min-height: auto; padding-bottom: 24px; }
  .welcome-copy { position: relative; z-index: 3; max-width: 100%; }.welcome-copy h1 { font-size: 29px; }.welcome-copy .primary-button > span { display: none; }.welcome-visual { position: relative; right: auto; bottom: auto; width: 100%; height: 155px; margin-top: 20px; }.welcome-visual::before { display: none; }.welcome-hero-image { width: 100%; height: 155px; border-radius: 18px 18px 12px 12px; }.streak-pill { display: none; }
  .daily-grid { width: calc(100vw - 14px); margin-right: -14px; padding: 0 14px 7px 0; display: flex; gap: 11px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }.daily-grid::-webkit-scrollbar { display: none; }.daily-hanja-card { width: min(78vw, 300px); min-width: min(78vw, 300px); min-height: 235px; scroll-snap-align: start; }.daily-card-art { height: 118px; }.meaning-visual.compact .meaning-picture { width: 96px; height: 96px; }.meaning-visual.compact .meaning-picture b { font-size: 54px; }.daily-card-copy { min-height: 88px; }.daily-card-copy > strong { font-size: 49px; }
  .hanja-study-card { min-height: auto; padding-bottom: 22px; }.study-card-art { height: 165px; }.study-card-art > .meaning-visual { padding: 14px 16px 34px; grid-template-columns: 94px 1fr; gap: 12px; }.study-card-art .meaning-picture { width: 88px; height: 88px; border-radius: 24px; }.study-card-art .meaning-picture b { font-size: 49px; }.study-card-art .meaning-caption strong { font-size: 12px; }.hanja-stage { width: 190px; }.hanja-stage strong { font-size: 132px; }.word-note .note-title { align-items: flex-start; }.word-note .note-title > div:last-child { min-width: 0; }.word-note .note-title p { line-height: 1.5; }
  .bottom-nav { position: relative; left: auto; bottom: auto; align-self: start; width: calc(100% - 16px); height: 64px; margin: 4px auto 0; padding: 6px; border-radius: 19px; transform: none; }.bottom-nav button { min-width: 0; }.bottom-nav button span { font-size: 8px; }
  .week-days button:disabled { opacity: .28; cursor: not-allowed; }
  .toast { bottom: 92px; max-width: calc(100% - 28px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Cute character garden system */
:root {
  --ink: #232552;
  --ink-soft: #5f746f;
  --paper: #f5f6e9;
  --paper-deep: #e8eddc;
  --white: #fffef8;
  --coral: #ef806c;
  --coral-soft: #fbe1d8;
  --mint: #6588aa;
  --mint-soft: #dfeaf1;
  --yellow: #efc65b;
  --yellow-soft: #fbefc4;
  --line: #dbe1d2;
}

body {
  background:
    radial-gradient(circle at 90% 4%, rgba(132, 170, 198, .18), transparent 26%),
    radial-gradient(circle at 8% 90%, rgba(239, 128, 108, .11), transparent 24%),
    linear-gradient(180deg, #f8faef, var(--paper));
}

.brand-mark { background: linear-gradient(145deg, #4e6a8e, #232552); border-radius: 15px 15px 15px 7px; }
.avatar { background: linear-gradient(145deg, var(--coral), #f5a476); border-radius: 50% 50% 43% 50%; }
.welcome-card { border-color: #dbe4d3; background: linear-gradient(90deg, rgba(255,254,248,.98), rgba(242,249,234,.9)); }
.welcome-card::before { background: linear-gradient(var(--coral), var(--yellow)); }
.welcome-hero-image { background-image: url("/garden-hero.png"); background-position: 67% 51%; }
.auth-hero-image { background-image: url("/garden-hero.png"); background-position: 67% 52%; }
.primary-button { background: linear-gradient(135deg, #313b5b, #485c7c); }
.nav-block button.active::before { background: linear-gradient(var(--coral), var(--yellow)); }

.garden-kicker { width: fit-content; display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; color: #395174; background: #e2f3e6; font-size: 10px; font-weight: 950; letter-spacing: .2px; }
.garden-kicker svg { color: #597fa3; }

.home-garden-card { margin-top: 22px; padding: 26px 30px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(270px, .9fr); align-items: center; gap: 28px; overflow: hidden; border: 1px solid #d9e3d2; border-radius: 26px; background: linear-gradient(135deg, #fffdf4, #edf7e9); box-shadow: 0 13px 38px rgba(56, 71, 91, .07); }
.home-garden-copy h2 { margin: 12px 0 7px; font-size: 25px; letter-spacing: -.9px; line-height: 1.3; }
.home-garden-copy h2 em { color: #df6e5d; font-style: normal; }
.home-garden-copy > p { max-width: 580px; margin: 0; color: #6e8079; font-size: 12px; line-height: 1.65; }
.home-garden-copy .secondary-button { margin-top: 14px; }

.garden-week { position: relative; width: min(420px, 100%); margin-top: 16px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.garden-week > div { display: grid; justify-items: center; gap: 5px; color: #9aa79f; }
.garden-week > div > span { position: relative; width: 35px; height: 35px; display: grid; place-items: center; border: 2px dashed #d3dbcc; border-radius: 50%; background: rgba(255,255,255,.65); }
.garden-week > div > span b { position: absolute; right: -4px; bottom: -4px; min-width: 18px; height: 18px; padding: 0 3px; display: grid; place-items: center; border: 2px solid white; border-radius: 999px; color: white; background: #344b7b; font-size: 7px; line-height: 1; }
.garden-week > div > span i { width: 8px; height: 8px; border-radius: 50%; background: #dbe1d6; }
.garden-week > div.watered { color: #3d5585; font-weight: 900; }
.garden-week > div.watered > span { border-style: solid; border-color: #8ba9c6; color: #344b7b; background: #dce9f1; box-shadow: 0 5px 12px rgba(76, 109, 145, .13); }
.garden-week > div.today > span { outline: 3px solid rgba(239,198,91,.35); }
.garden-week small { font-size: 9px; }
.garden-week > p { grid-column: 1 / -1; margin: 2px 0 0; color: #8e9b94; font-size: 9px; line-height: 1.45; }

.tree-growth-visual { min-width: 0; display: grid; justify-items: center; gap: 8px; }
.tree-growth-visual > .growth-crop, .tree-growth-visual > .species-crop { width: min(310px, 100%); aspect-ratio: 4 / 3; display: block; border-radius: 24px; background-color: #eaf5e3; background-repeat: no-repeat; box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), 0 12px 28px rgba(58, 79, 100, .1); }


.tree-growth-visual > div { display: grid; justify-items: center; gap: 2px; text-align: center; }
.tree-growth-visual > div strong { font-size: 14px; }
.tree-growth-visual > div small { color: #71857b; font-size: 10px; }
.tree-growth-visual.compact > .growth-crop, .tree-growth-visual.compact > .species-crop { width: min(230px, 100%); border-radius: 19px; }
.tree-growth-visual.compact > div strong { font-size: 12px; }
.tree-growth-visual.compact > div small { font-size: 9px; }

.writing-count { width: fit-content; margin: 8px auto 0; padding: 6px 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; color: #8a6d19; background: #fff5cf; font-size: 12px; font-weight: 900; }
.writing-count svg { opacity: .45; }
.writing-count.complete { color: #263375; background: #e2e9f3; }
.writing-count.complete svg { opacity: 1; }
.writing-count-large { display: flex; margin: 10px auto 0; }
.free-writing-message { margin: 8px 0 0; color: #75868d; font-size: 12px; line-height: 1.5; text-align: center; }
.lesson-next-action { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; }
.lesson-next-action > span { display: inline-flex; align-items: center; gap: 6px; color: #966f17; font-size: 12px; font-weight: 900; }
.lesson-next-action > span.ready { color: #283477; }
.lesson-next-action .primary-button { width: auto; min-width: 0; }

.garden-loading { min-height: 360px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #72857c; font-size: 12px; font-weight: 800; }
.garden-loading svg { animation: garden-spin 1.4s linear infinite; }
@keyframes garden-spin { to { transform: rotate(360deg); } }
.garden-view { display: grid; gap: 22px; }
.garden-intro-card { min-height: 320px; display: grid; grid-template-columns: 1fr 1.05fr; overflow: hidden; border: 1px solid #d9e3d1; border-radius: 30px; background: #fffef7; box-shadow: var(--shadow); }
.garden-intro-card > div { position: relative; z-index: 2; padding: 42px; align-self: center; }
.garden-intro-card h1 { margin: 15px 0 12px; font-size: clamp(32px, 4vw, 48px); line-height: 1.18; letter-spacing: -2px; }
.garden-intro-card h1 em { color: var(--coral); font-style: normal; }
.garden-intro-card p { margin: 0; color: #6e8079; font-size: 13px; line-height: 1.7; }
.garden-intro-card img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; object-position: 67% center; }
.garden-start-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(340px, 1.15fr); gap: 18px; }
.garden-setup-card, .solo-tree-card, .tree-choice-section, .members-garden-section, .group-notice-section, .group-management-section { padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,254,248,.9); box-shadow: 0 12px 36px rgba(56, 71, 91,.06); }
.garden-mode-tabs { margin-bottom: 20px; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: 14px; background: #edf1e7; }
.garden-mode-tabs button { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 11px; color: #7c8d85; background: transparent; cursor: pointer; font-size: 11px; font-weight: 900; }
.garden-mode-tabs button.active { color: #31425f; background: white; box-shadow: 0 5px 14px rgba(58, 71, 89,.08); }
.garden-setup-card > label { display: grid; gap: 8px; color: #667970; font-size: 11px; font-weight: 900; }
.garden-setup-card input { width: 100%; height: 50px; padding: 0 15px; border: 1px solid #d7ded0; border-radius: 13px; color: var(--ink); background: white; }
.garden-setup-card .invite-input { text-transform: uppercase; letter-spacing: 5px; font-size: 18px; font-weight: 950; }
.garden-submit { width: 100%; margin-top: 13px; }
.garden-privacy { margin: 14px 0 0; display: flex; align-items: center; justify-content: center; gap: 6px; color: #89968f; font-size: 9px; }
.garden-setup-card { display: grid; place-content: center; justify-items: center; text-align: center; }.garden-setup-card > h2 { margin: 12px 0 7px; font-size: 18px; }.garden-setup-card > p:not(.garden-privacy):not(.garden-message) { max-width: 390px; margin: 0 0 16px; color: #718179; font-size: 10px; line-height: 1.7; }.garden-managed-icon { width: 53px; height: 53px; display: grid; place-items: center; border-radius: 17px; color: #4e6987; background: #e2f2e2; }
.garden-setup-card .garden-mode-tabs, .garden-setup-card > label, .garden-setup-card .garden-submit { width: min(390px, 100%); }
.garden-message { margin: 12px 0 0; padding: 10px 12px; border-radius: 11px; color: #374c72; background: #e7f5eb; font-size: 10px; font-weight: 800; }
.solo-tree-card { display: grid; place-items: center; }
.solo-tree-card .garden-week { margin-bottom: 8px; }

.group-garden-header { padding: 30px 32px; display: flex; align-items: center; justify-content: space-between; gap: 25px; overflow: hidden; border: 1px solid #d5e3d0; border-radius: 28px; background: linear-gradient(125deg, #fefdf4, #e5f3e3); }
.group-garden-header h1 { margin: 10px 0 5px; font-size: 34px; letter-spacing: -1.4px; }
.group-garden-header p { margin: 0; color: #718179; font-size: 11px; }
.group-header-actions { display: flex; align-items: center; gap: 10px; }
.invite-code-card { min-width: 190px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 1px dashed #8db89b; border-radius: 16px; color: #384c6e; background: rgba(255,255,255,.78); cursor: pointer; }
.invite-code-card span { display: grid; gap: 2px; text-align: left; }.invite-code-card small { font-size: 8px; }.invite-code-card strong { font-size: 20px; letter-spacing: 3px; }
.managed-group-badge { padding: 10px 13px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #a8c9ad; border-radius: 999px; color: #41566e; background: rgba(255,255,255,.72); font-size: 9px; font-weight: 900; white-space: nowrap; }
.managed-group-badge.role-owner { color: #7a5310; border-color: #e2c46b; background: #fff8d8; }
.managed-group-badge.role-admin { color: #365f80; border-color: #a8c6dc; background: #edf7ff; }

.group-notice-section, .group-management-section { display: grid; gap: 18px; }
.group-notice-section .mini-label, .group-management-section .mini-label { display: flex; align-items: center; gap: 6px; }
.notice-editor { padding: 14px; display: grid; gap: 10px; border: 1px solid #dce4d7; border-radius: 17px; background: #fbfcf6; }
.notice-editor textarea { width: 100%; min-height: 92px; padding: 13px 14px; resize: vertical; border: 1px solid #d6ded1; border-radius: 13px; color: var(--ink); background: white; font: inherit; font-size: 14px; line-height: 1.6; }
.notice-editor > div { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }.notice-editor > div small { margin-right: auto; color: #87958e; font-size: 11px; }
.text-button { border: 0; color: #667c72; background: transparent; cursor: pointer; font-weight: 800; }
.notice-list { display: grid; gap: 9px; }
.notice-list article { padding: 14px 16px; border: 1px solid #e0e5dc; border-radius: 16px; background: white; }
.notice-list article > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.notice-list article > header div { display: flex; align-items: baseline; gap: 8px; }.notice-list article > header strong { font-size: 13px; }.notice-list article > header small { color: #8b9791; font-size: 10px; }
.notice-list article > header > span { display: flex; gap: 4px; }.notice-list article > header button { width: 31px; height: 31px; display: grid; place-items: center; border: 0; border-radius: 9px; color: #71837a; background: #f1f4ee; cursor: pointer; }
.notice-list article > p { margin: 9px 0 0; color: #4f6259; font-size: 14px; line-height: 1.65; white-space: pre-wrap; }
.notice-empty { margin: 0; padding: 22px; border: 1px dashed #d7dfd2; border-radius: 15px; color: #849088; text-align: center; font-size: 13px; }

.group-role-list { display: grid; gap: 9px; }
.group-role-list > article { padding: 12px 14px; display: grid; grid-template-columns: minmax(170px, 1fr) auto minmax(210px, auto); align-items: center; gap: 12px; border: 1px solid #e0e5dc; border-radius: 16px; background: #fbfcf6; }
.group-role-person { min-width: 0; display: flex; align-items: center; gap: 10px; }.group-role-person > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: #f7e8c9; font-size: 20px; }.group-role-person p { min-width: 0; margin: 0; display: grid; gap: 2px; }.group-role-person strong { overflow: hidden; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }.group-role-person small { color: #8a9790; font-size: 10px; }
.group-role-badge { padding: 7px 9px; display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; color: #657870; background: #edf1eb; font-size: 10px; font-weight: 900; white-space: nowrap; }.group-role-badge.owner { color: #79520d; background: #fff1b8; }.group-role-badge.admin { color: #315f80; background: #e5f3ff; }
.group-role-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }.group-role-actions button { min-height: 34px; padding: 0 10px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid #d6ded3; border-radius: 10px; color: #515d6b; background: white; cursor: pointer; font-size: 10px; font-weight: 850; }.group-role-actions button.owner-transfer { color: #765512; border-color: #e4ca76; background: #fff9df; }.group-role-actions button.danger { color: #a34c45; border-color: #efcbc6; background: #fff5f3; }.group-role-actions button:disabled { opacity: .55; cursor: wait; }
.group-danger-actions, .member-leave-row { display: flex; justify-content: flex-end; gap: 8px; }.danger-button { min-height: 42px; padding: 0 14px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #efc3bc; border-radius: 12px; color: #a44840; background: #fff4f1; cursor: pointer; font-weight: 900; }.member-leave-row { padding: 0 2px; }

.my-tree-section { padding: 28px 32px; display: grid; grid-template-columns: 1fr minmax(280px, 380px); align-items: center; gap: 28px; border: 1px solid #dde3d4; border-radius: 26px; background: rgba(255,254,248,.9); }
.my-tree-copy h2 { margin: 8px 0 5px; font-size: 24px; }.my-tree-copy > p { margin: 0; color: #72837b; font-size: 11px; }
.tree-choice-section .section-heading p, .members-garden-section .section-heading p { margin: 5px 0 0; color: #7b8a83; font-size: 10px; }
.tree-choice-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.tree-choice-grid button { position: relative; min-width: 0; padding: 9px 9px 12px; display: grid; justify-items: center; gap: 3px; overflow: hidden; border: 1px solid #dce2d5; border-radius: 17px; background: #fbfcf5; cursor: pointer; }
.tree-choice-grid button:hover { transform: translateY(-2px); border-color: #9bc2a7; }
.tree-choice-grid button.selected { border: 2px solid #6588aa; background: #eff8ed; box-shadow: 0 8px 20px rgba(70, 104, 137,.12); }
.tree-choice-grid .species-crop { width: 100%; aspect-ratio: 1 / 1; display: block; border-radius: 12px; }
.tree-choice-grid strong { font-size: 11px; }.tree-choice-grid small { color: #89958f; font-size: 8px; }
.tree-choice-grid i { position: absolute; top: 8px; right: 8px; padding: 4px 6px; display: flex; align-items: center; gap: 3px; border-radius: 999px; color: white; background: #5b7c9d; font-size: 7px; font-style: normal; font-weight: 900; }

.member-tree-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.member-tree-grid article { min-width: 0; padding: 15px; border: 1px solid #dce2d5; border-radius: 20px; background: #fbfcf6; }
.member-tree-grid article.is-me { border-color: #93b1c4; background: #f0f8ef; }
.member-tree-grid header { display: flex; align-items: center; gap: 9px; }
.member-tree-grid header > span { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 14px; background: #f6e6c7; font-size: 20px; }
.member-tree-grid header > div { min-width: 0; display: grid; gap: 2px; }.member-tree-grid header strong { overflow: hidden; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }.member-tree-grid header small { color: #829089; font-size: 8px; }
.member-tree-grid .tree-growth-visual { margin-top: 11px; }
.member-progress { margin-top: 12px; display: grid; gap: 5px; }.member-progress > span { height: 6px; overflow: hidden; border-radius: 99px; background: #dde3d8; }.member-progress > span i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #698ead, #efc65b); }.member-progress small { color: #78877f; font-size: 8px; text-align: right; }
.member-tree-grid footer { margin-top: 10px; padding-top: 10px; display: flex; justify-content: space-between; gap: 7px; border-top: 1px solid #e1e6dc; color: #667b70; font-size: 8px; }.member-tree-grid footer span { display: flex; align-items: center; gap: 4px; }
.garden-message.floating { position: fixed; z-index: 60; left: 50%; bottom: 95px; margin: 0; box-shadow: 0 9px 25px rgba(55, 69, 88,.16); transform: translateX(-50%); }

@media (max-width: 980px) {
  .bottom-nav { grid-template-columns: repeat(6, 1fr); }
  .home-garden-card { grid-template-columns: 1fr minmax(230px, .75fr); }
  .garden-start-grid { grid-template-columns: 1fr 1fr; }
  .tree-choice-grid { grid-template-columns: repeat(5, minmax(110px, 1fr)); overflow-x: auto; padding-bottom: 8px; }
  .member-tree-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .welcome-hero-image { background-position: 67% 55%; }
  .home-garden-card { padding: 20px 17px; grid-template-columns: 1fr; gap: 20px; border-radius: 22px; }
  .home-garden-copy h2 { font-size: 21px; }.home-garden-copy > p { font-size: 11px; }
  .garden-week { gap: 4px; }.garden-week > div > span { width: 31px; height: 31px; }
  .tree-growth-visual.compact > .growth-crop, .tree-growth-visual.compact > .species-crop { width: min(250px, 100%); }
  .garden-view { gap: 14px; padding-top: 18px; }
  .garden-intro-card { min-height: 0; grid-template-columns: 1fr; border-radius: 23px; }
  .garden-intro-card > div { padding: 24px 20px; }.garden-intro-card h1 { font-size: 29px; letter-spacing: -1.4px; }.garden-intro-card p { font-size: 11px; }
  .garden-intro-card img { height: 180px; min-height: 180px; object-position: 66% 54%; }
  .garden-start-grid { grid-template-columns: 1fr; gap: 12px; }
  .garden-setup-card, .solo-tree-card, .tree-choice-section, .members-garden-section, .group-notice-section, .group-management-section { padding: 17px; border-radius: 20px; }
  .group-garden-header { padding: 21px 18px; display: grid; gap: 15px; border-radius: 22px; }.group-garden-header h1 { font-size: 27px; }.group-header-actions { align-items: stretch; flex-direction: column; }.group-header-actions .managed-group-badge { width: fit-content; }.invite-code-card { width: 100%; min-width: 0; }
  .notice-editor > div { flex-wrap: wrap; }.notice-editor .primary-button { min-height: 40px; }
  .notice-list article > p { font-size: 13px; }
  .group-role-list > article { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }.group-role-actions { grid-column: 1 / -1; justify-content: flex-start; }.group-role-actions button { flex: 1 1 auto; justify-content: center; }
  .my-tree-section { padding: 20px 17px; grid-template-columns: 1fr; gap: 18px; border-radius: 21px; }.my-tree-copy h2 { font-size: 21px; }
  .tree-choice-grid { grid-template-columns: repeat(5, 122px); margin-right: -17px; padding-right: 17px; }
  .member-tree-grid { grid-template-columns: 1fr; gap: 9px; }
  .member-tree-grid article { display: grid; grid-template-columns: 1fr 120px; align-items: center; gap: 8px 13px; }
  .member-tree-grid .tree-growth-visual { grid-column: 2; grid-row: 1 / span 3; margin: 0; }.member-tree-grid .tree-growth-visual > div { display: none; }
  .member-tree-grid .tree-growth-visual > .growth-crop, .member-tree-grid .tree-growth-visual > .species-crop { width: 120px; border-radius: 14px; }
  .member-tree-grid .member-progress, .member-tree-grid footer { grid-column: 1; margin-top: 0; }
  .member-tree-grid footer { flex-wrap: wrap; justify-content: flex-start; }
  .bottom-nav { grid-template-columns: repeat(6, 1fr); }
  .bottom-nav button span { font-size: 7px; }
}


.comic-auth-scene > .auth-comic-bubble { position: absolute; z-index: 5; top: 18px; left: 22px; padding: 10px 14px; border: 3px solid #232552; border-radius: 18px; color: #232552; background: white; font-size: 12px; font-weight: 950; transform: rotate(-2deg); }

@media (max-width: 640px) {
  .welcome-comic-scene { width: 100%; height: 155px; border-width: 3px; border-radius: 18px 18px 12px 12px; box-shadow: 5px 6px 0 rgba(28, 46, 74,.15); }
  .hero-comic-bubble { top: 10px; left: 10px; padding: 7px 10px; border-width: 2px; font-size: 9px; }
  .hero-comic-bubble::after { bottom: -7px; width: 9px; height: 9px; border-width: 0 2px 2px 0; }
  .hero-comic-burst { top: 11px; right: 8px; width: 50px; height: 46px; font-size: 9px; }
  .comic-hanja-card { min-height: 278px; border-width: 2px; box-shadow: 4px 5px 0 rgba(28, 46, 74,.15); }
  .comic-hanja-card .daily-card-art { height: 145px; }
  .comic-hanja-card .daily-card-copy { min-height: 98px; }
  .comic-meaning-visual:not(.compact) .comic-speech { right: auto; bottom: 9px; left: 9px; width: min(62%, 180px); padding: 7px 9px; }
  .comic-auth-scene { width: 100%; height: 150px; }
  .comic-auth-scene > .auth-comic-bubble { top: 11px; left: 12px; padding: 7px 10px; border-width: 2px; font-size: 9px; }
}

@media (max-width: 640px) {
  .study-view { width: calc(100% - 20px); padding-top: 8px; padding-bottom: 12px; }
  .study-topline { position: sticky; z-index: 20; top: 0; padding: 4px 0 7px; grid-template-columns: 36px 1fr 54px; gap: 8px; background: linear-gradient(var(--paper) 78%, rgba(246,242,233,0)); }
  .study-topline .icon-button { width: 36px; height: 36px; border-radius: 11px; }
  .lesson-layout { margin-top: 7px; gap: 8px; }
  .hanja-study-card { min-height: auto; padding: 12px; border-radius: 18px; }
  .study-card-meta span { padding: 5px 8px; font-size: 8px; }
  .study-card-meta small { font-size: 9px; }
  .study-card-art { height: 118px; margin-top: 8px; border-radius: 13px; }
  .study-card-art > span:last-child { display: none; }
  .study-card-art .comic-speech { display: none; }
  .comic-meaning-visual.compact .comic-speech { display: none; }
  .hanja-stage { width: 128px; margin: 6px 0 5px; }
  .hanja-stage strong { font-size: 91px; }
  .hanja-study-card h2 { margin: 0 0 8px; font-size: 20px; }
  .write-toggle { min-height: 42px; margin-top: 0; padding: 9px 13px; font-size: 12px; }
  .lesson-notes { gap: 8px; }
  .note-card { padding: 12px; border-radius: 15px; }
  .note-title { gap: 8px; }
  .note-title .icon-tile { width: 35px; height: 35px; border-radius: 10px; }
  .note-title h3 { font-size: 14px; }
  .note-title p { font-size: 12px; }
  .memory-note > p { margin-top: 8px; font-size: 13px; line-height: 1.55; }
  .stroke-writer { width: min(190px, 62vw); margin: 8px auto 7px; }
  .stroke-order-actions button { min-height: 36px; font-size: 10px; }
  .stroke-message { margin-top: 6px; }
  .word-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .word-list > div { min-height: 72px; padding: 6px; grid-template-columns: 54px minmax(0, 1fr); gap: 7px; border-radius: 12px; }
  .word-comic-thumb { width: 54px; border-radius: 9px; }
  .word-copy strong { font-size: 19px; }
  .word-copy b { font-size: 14px; }
  .word-copy small { font-size: 12px; line-height: 1.25; }
  .word-note blockquote { margin-top: 8px; padding: 8px 10px; font-size: 12px; line-height: 1.45; }
  .lesson-next-action { position: sticky; z-index: 15; bottom: 2px; padding-top: 3px; background: linear-gradient(rgba(246,242,233,0), var(--paper) 28%); }
  .lesson-next-action .primary-button { min-height: 47px; font-size: 13px; box-shadow: 0 8px 20px rgba(32,55,70,.18); }

  .quiz-card { margin-top: 7px; padding: 13px; border-radius: 18px; }
  .quiz-label { font-size: 9px; }
  .quiz-card h2 { margin: 7px 0 10px; font-size: 16px; line-height: 1.25; }
  .quiz-card h2 strong { display: inline; margin: 0 6px 0 0; font-size: 52px; vertical-align: -8px; }
  .quiz-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .quiz-options button { min-height: 52px; padding: 7px 8px; grid-template-columns: 27px minmax(0, 1fr) 16px; gap: 6px; border-radius: 12px; font-size: 14px; line-height: 1.25; }
  .quiz-options button > span { width: 27px; height: 27px; border-radius: 8px; font-size: 10px; }
  .answer-note { margin-top: 8px; padding: 9px; gap: 8px; border-radius: 12px; text-align: left; }
  .answer-note > div { width: 29px; height: 29px; border-radius: 8px; }
  .answer-note p { display: -webkit-box; overflow: hidden; font-size: 10px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .answer-note strong { font-size: 11px; }
  .quiz-next { position: sticky; z-index: 15; bottom: 2px; width: 100%; min-height: 47px; margin: 9px 0 0; justify-content: center; box-shadow: 0 8px 20px rgba(32,55,70,.18); }
}

/* Phone-first layout: the learning flow is the primary mobile experience. */
@media (max-width: 640px) {
  html, body { width: 100%; max-width: 100%; overflow: hidden; color-scheme: only light !important; }
  body { font-size: 16px; }
  button, input, select, textarea { max-width: 100%; }

  .app-shell {
    height: 100svh;
    min-height: 100svh;
    grid-template-rows: 60px minmax(0, 1fr) calc(70px + env(safe-area-inset-bottom));
  }
  @supports (height: 100dvh) {
    .app-shell { height: 100dvh; min-height: 100dvh; }
  }
  .topbar { height: 60px; padding: 0 10px 0 12px; }
  .brand { gap: 8px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand strong { font-size: 17px; }
  .header-actions { gap: 4px; }
  .sync-chip { width: 36px; height: 36px; }
  .profile-chip { min-width: 46px; min-height: 44px; padding: 4px; }
  .avatar { width: 36px; height: 36px; }
  .profile-popover { top: calc(100% + 8px); right: 0; width: min(300px, calc(100vw - 20px)); max-height: calc(100dvh - 148px); overflow-y: auto; }

  .desktop-frame, .main-content { min-width: 0; width: 100%; }
  .main-content { scroll-padding: 10px 0 18px; }
  .home-view, .content-view, .study-view, .game-view, .garden-view {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 10px 10px 18px;
  }
  .home-view { display: flex; flex-direction: column; }
  .today-first-card { order: 1; }
  .welcome-card { order: 2; }
  .date-browser { order: 4; }
  .daily-section { order: 5; }
  .home-garden-card { order: 6; }
  .dashboard-row { order: 7; }

  .today-first-card { padding: 14px; border-width: 2px; border-radius: 20px; box-shadow: 4px 5px 0 rgba(28, 46, 74, .14); }
  .today-first-heading { align-items: flex-start; gap: 10px; }
  .today-first-date { font-size: 12px; }
  .today-first-heading h1 { margin: 6px 0 5px; font-size: 25px; letter-spacing: -1.1px; }
  .today-first-heading p { font-size: 13px; }
  .today-first-progress { min-width: 70px; padding: 9px 8px; border-radius: 14px; }
  .today-first-progress b { font-size: 22px; }
  .today-first-progress small { font-size: 10px; }
  .today-first-grid { margin-top: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .today-first-item { padding: 6px; border-width: 2px; border-radius: 15px; box-shadow: 3px 4px 0 rgba(28, 46, 74,.12); }
  .today-first-art { height: auto; aspect-ratio: 4 / 3; border-width: 1.5px; border-radius: 10px; }
  .today-first-number { top: 11px; left: 11px; padding: 3px 6px; font-size: 10px; }
  .today-first-done { top: 11px; right: 11px; width: 23px; height: 23px; }
  .today-first-copy { min-height: 70px; padding: 7px 2px 1px; gap: 9px; }
  .today-first-copy > strong { font-size: 48px; }
  .today-first-copy b { font-size: 15px; }
  .today-first-copy small { font-size: 13px; }
  .today-first-actions { margin-top: 12px; grid-template-columns: 1fr; gap: 8px; }
  .today-first-start { min-height: 49px; font-size: 14px; }
  .today-first-previous { width: 100%; min-width: 0; min-height: 46px; font-size: 13px; }

  .welcome-card { padding: 18px 16px 14px; border-radius: 20px; }
  .family-welcome-card { margin-top: 14px; }
  .family-welcome-card .welcome-copy h2 { margin: 8px 0 7px; font-size: 25px; letter-spacing: -1.1px; }
  .welcome-copy h1, .page-heading h1 { margin: 8px 0 7px; font-size: 27px; line-height: 1.22; letter-spacing: -1.2px; }
  .welcome-copy > p { font-size: 14px; line-height: 1.55; }
  .welcome-copy .primary-button { min-height: 48px; margin-top: 12px; }
  .welcome-visual { height: 132px; margin-top: 14px; }
  .welcome-comic-scene, .welcome-hero-image { height: 132px; border-radius: 16px 16px 11px 11px; }
  .hero-comic-bubble { font-size: 11px; }
  .hero-comic-burst { font-size: 10px; }

  .date-browser { margin-top: 10px; padding: 12px; border-radius: 17px; }
  .date-browser-head { align-items: center; }
  .date-browser-head > div:first-child { min-width: 0; }
  .date-browser-head strong { overflow: hidden; font-size: 15px; white-space: nowrap; text-overflow: ellipsis; }
  .date-actions > button, .date-input-button { min-height: 40px; padding: 0 9px; font-size: 12px; }
  .date-actions .month-toggle-button { width: 44px; min-width: 44px; padding: 0; }
  .week-picker { margin-top: 10px; grid-template-columns: 32px minmax(0, 1fr) 32px; }
  .week-arrow { width: 32px; height: 44px; }
  .week-days { gap: 3px; }
  .week-days button { min-width: 0; min-height: 56px; padding: 5px 1px; }
  .week-days button small { font-size: 10px; }
  .week-days button strong { font-size: 16px; }
  .week-days button span { min-height: 12px; font-size: 9px; }
  .month-calendar { margin-top: 10px; padding: 10px 8px 11px; border-radius: 15px; }
  .month-calendar-toolbar strong { font-size: 14px; }
  .month-calendar-toolbar button { width: 34px; height: 34px; }
  .month-weekdays, .month-days { gap: 3px; }
  .month-weekdays { margin-top: 7px; }
  .month-weekdays span { font-size: 10px; }
  .month-days button, .month-day-placeholder { min-height: 40px; border-radius: 10px; }
  .month-days button > span { font-size: 13px; }
  .month-days button > i { bottom: 5px; width: 5px; height: 5px; }
  .month-calendar-legend { margin-top: 9px; gap: 6px 10px; font-size: 9px; }
  .stage-track { margin-top: 10px; padding: 11px; }
  .stage-track-copy span, .stage-track-copy small { font-size: 10px; }
  .stage-track-copy strong { font-size: 15px; }
  .stage-track select { width: 116px; min-height: 40px; font-size: 12px; }

  .daily-section { margin-top: 17px; }
  .section-heading { gap: 8px; }
  .section-heading h2 { font-size: 20px; line-height: 1.3; }
  .mini-label, .goal-counter { font-size: 11px; }
  .daily-grid { width: calc(100vw - 10px); margin-right: -10px; padding: 0 10px 8px 0; gap: 10px; }
  .daily-hanja-card, .comic-hanja-card { width: min(76vw, 284px); min-width: min(76vw, 284px); min-height: 224px; padding: 8px; }
  .comic-hanja-card .daily-card-art { height: 124px; }
  .daily-card-copy { min-height: 79px; padding: 8px 4px 1px; }
  .daily-card-copy > strong { font-size: 47px; }
  .daily-card-copy b { font-size: 14px; }
  .daily-card-copy small { font-size: 11px; line-height: 1.3; }
  .card-number { font-size: 10px; }

  .home-garden-card { margin-top: 18px; padding: 16px; gap: 14px; }
  .home-garden-copy h2 { margin: 9px 0 7px; font-size: 21px; }
  .home-garden-copy > p { font-size: 14px; line-height: 1.55; }
  .dashboard-row { margin-top: 12px; gap: 10px; }
  .week-card, .review-peek { padding: 16px; }

  .study-view { padding-top: 6px; }
  .study-topline { padding: 3px 0 6px; grid-template-columns: 44px minmax(0, 1fr) 62px; }
  .study-topline .icon-button { width: 44px; height: 44px; }
  .study-topline > span { font-size: 11px; }
  .lesson-layout { margin-top: 5px; gap: 8px; }
  .hanja-study-card { padding: 11px; border-radius: 17px; }
  .study-card-meta span, .study-card-meta small { font-size: 11px; }
  .study-card-art { height: 126px; margin-top: 7px; }
  .hanja-stage { width: 132px; margin: 7px 0 5px; }
  .hanja-stage strong { font-size: 94px; line-height: 1; }
  .hanja-study-card h2 { font-size: 21px; }
  .write-toggle { width: 100%; min-height: 46px; justify-content: center; font-size: 14px; }
  .note-card { padding: 12px; }
  .note-title h3 { font-size: 16px; }
  .note-title p, .memory-note > p { font-size: 14px; }
  .stroke-writer { width: min(210px, 64vw); }
  .stroke-order-actions button { min-height: 44px; font-size: 12px; }
  .stroke-message { font-size: 12px; }
  .writing-mode-tabs button { min-height: 44px; font-size: 12px; }
  .auto-fill-message { font-size: 12px; }
  .word-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .word-list > div { min-height: 78px; grid-template-columns: 55px minmax(0, 1fr); }
  .word-copy strong { font-size: 20px; }
  .word-copy b { font-size: 15px; }
  .word-copy small { font-size: 12px; }
  .word-note blockquote { font-size: 14px; }
  .lesson-next-action { bottom: 0; padding-top: 6px; }
  .lesson-next-action .primary-button { min-height: 50px; font-size: 15px; }

  .quiz-card { margin-top: 4px; padding: 14px; }
  .quiz-label { font-size: 12px; }
  .quiz-card h2 { margin: 8px 0 12px; font-size: 18px; }
  .quiz-card h2 strong { font-size: 54px; }
  .quiz-options button { min-height: 56px; font-size: 15px; overflow-wrap: anywhere; }
  .answer-note p { font-size: 13px; }
  .answer-note strong { font-size: 14px; }
  .quiz-next { min-height: 50px; font-size: 15px; }

  .content-view { padding-top: 16px; }
  .page-heading { margin-bottom: 18px; }
  .page-heading p { font-size: 14px; line-height: 1.55; }
  .game-question-card, .matching-exam-card, .game-result-card { margin-top: 8px; padding: 15px; border-radius: 19px; }
  .game-question-card > p, .matching-exam-card > p { font-size: 14px; }
  .game-prompt { min-height: 112px; margin: 12px 0; }
  .game-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .game-options button { min-height: 56px; padding: 8px; font-size: 14px; overflow-wrap: anywhere; }
  .game-next, .matching-check { width: 100%; min-height: 48px; justify-content: center; }
  .review-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .review-summary > div { min-width: 0; padding: 10px 7px; display: grid; justify-items: center; text-align: center; }
  .review-summary small { font-size: 11px; }
  .review-summary strong { font-size: 17px; }
  .exam-result-view { gap: 10px; }
  .exam-review-sheet { padding: 14px 10px 16px; border-radius: 19px; }
  .exam-review-heading { padding: 2px 3px; align-items: flex-start; flex-direction: column; gap: 11px; }
  .exam-review-heading h2 { font-size: 20px; line-height: 1.3; }
  .exam-review-heading p { font-size: 13px; }
  .exam-review-counts { width: 100%; }
  .exam-review-counts span { min-height: 38px; flex: 1; justify-content: center; font-size: 13px; }
  .exam-review-list { margin-top: 13px; grid-template-columns: 1fr; gap: 8px; }
  .exam-review-item > header { min-height: 42px; }
  .exam-review-item > header strong { font-size: 13px; }
  .exam-review-question { min-height: 78px; padding: 10px 11px; grid-template-columns: 72px 1fr; gap: 9px; }
  .exam-review-question b { font-size: 39px; }
  .exam-review-question.hanja b { font-size: 20px; }
  .exam-review-question.word b { font-size: 27px; }
  .exam-review-question p { font-size: 13px; }
  .exam-review-item dl > div { padding: 9px 10px; }
  .exam-review-item dt { font-size: 11px; }
  .exam-review-item dd { font-size: 14px; }
  .exam-review-sheet .exam-result-actions { position: sticky; z-index: 12; bottom: 0; margin: 12px -2px 0; padding: 7px 2px 0; background: linear-gradient(rgba(255,254,248,0), var(--white) 25%); }

  .garden-view { padding-top: 12px; }
  .garden-intro-card > div, .garden-setup-card, .solo-tree-card, .tree-choice-section, .members-garden-section, .group-notice-section, .group-management-section { padding: 15px; }
  .garden-intro-card h1, .group-garden-header h1 { font-size: 25px; }
  .garden-intro-card p, .home-garden-copy p, .my-tree-copy > p, .tree-choice-section .section-heading p, .members-garden-section .section-heading p { font-size: 13px; line-height: 1.55; }
  .tree-choice-grid { grid-template-columns: repeat(5, 112px); }
  .tree-choice-grid strong { font-size: 13px; }
  .tree-choice-grid small { font-size: 11px; }
  .member-tree-grid article { grid-template-columns: minmax(0, 1fr) 104px; padding: 12px; }
  .member-tree-grid .tree-growth-visual > .growth-crop, .member-tree-grid .tree-growth-visual > .species-crop { width: 104px; }
  .member-tree-grid header strong { font-size: 14px; }
  .member-tree-grid header small, .member-progress small, .member-tree-grid footer { font-size: 11px; }

  .modal-backdrop { padding: 0; align-items: end; }
  .sync-modal { width: 100%; max-height: calc(100dvh - 24px); padding: 24px 18px calc(20px + env(safe-area-inset-bottom)); overflow-y: auto; border-radius: 24px 24px 0 0; }
  .sync-modal h2 { font-size: 23px; }
  .sync-modal > p, .reminder-toggle small, .reminder-note { font-size: 13px; }
  .reminder-toggle strong, .reminder-time-grid label span { font-size: 14px; }

  .bottom-nav { width: calc(100% - 12px); height: 64px; margin: 3px auto 0; padding: 5px; border-radius: 18px; }
  .bottom-nav button { min-height: 52px; border-radius: 13px; }
  .bottom-nav button span { font-size: 11px; line-height: 1; }
  .bottom-nav button b { top: 0; right: 7%; }
  .toast { bottom: calc(78px + env(safe-area-inset-bottom)); font-size: 13px; }
}

@media (max-width: 370px) {
  .brand strong { font-size: 16px; }
  .welcome-copy h1 { font-size: 25px; }
  .date-icon { display: none; }
  .date-actions > button { display: none; }
  .date-input-button { min-width: 44px; font-size: 0; }
  .date-input-button svg { margin: auto; }
  .week-picker { grid-template-columns: 28px minmax(0, 1fr) 28px; gap: 2px; }
  .week-arrow { width: 28px; }
  .stage-track select { width: 106px; }
  .word-list { grid-template-columns: 1fr; }
  .game-options { grid-template-columns: 1fr; }
  .bottom-nav button span { font-size: 10px; }
}

/* Dedicated phone presentation: no sideways canvas and no cropped learning art. */
@media (max-width: 767px) {
  html, body { width: 100%; max-width: 100%; overflow-x: clip; }
  .app-shell {
    width: 100%;
    max-width: 100vw;
    height: 100svh;
    min-height: 100svh;
    grid-template-rows: 60px minmax(0, 1fr) calc(70px + env(safe-area-inset-bottom));
    overflow: hidden;
  }
  @supports (height: 100dvh) {
    .app-shell { height: 100dvh; min-height: 100dvh; }
  }
  .topbar { height: 60px; padding: 0 10px 0 12px; }
  .brand small, .profile-copy, .sync-chip span { display: none; }
  .desktop-frame, .main-content { min-width: 0; width: 100%; max-width: 100%; overflow-x: clip; }
  .main-content { height: 100%; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
  .home-view, .content-view, .study-view, .game-view, .garden-view {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-right: 10px;
    padding-left: 10px;
    overflow-x: clip;
  }
  .home-view > *, .content-view > *, .study-view > *, .game-view > *, .garden-view > * { min-width: 0; max-width: 100%; }

  .welcome-comic-scene, .comic-auth-scene {
    height: auto;
    aspect-ratio: 3 / 2;
    background-size: contain;
    background-position: center;
    background-color: #f6eddc;
  }
  .welcome-visual { height: auto; }
  .comic-scene-fill {
    background-size: cover;
    background-position: center;
    background-color: #edf2e7;
  }
  .word-comic-thumb {
    background-size: contain;
    background-position: center;
    background-color: #edf2e7;
  }
  .study-card-art { background: #edf2e7; }
  .garden-intro-card img { object-fit: contain; background: #eef3e8; }


  .daily-grid {
    width: 100%;
    max-width: 100%;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    overflow: visible;
    scroll-snap-type: none;
  }
  .daily-hanja-card, .comic-hanja-card {
    width: auto;
    min-width: 0;
    max-width: 100%;
    min-height: 0;
    scroll-snap-align: none;
  }
  .comic-hanja-card .daily-card-art { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .daily-card-copy { min-width: 0; }
  .daily-card-copy > span { min-width: 0; }
  .daily-card-copy b, .daily-card-copy small { overflow-wrap: anywhere; }

  .tree-choice-grid {
    width: 100%;
    margin: 16px 0 0;
    padding: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }
  .tree-choice-grid button { width: 100%; }
  .word-list, .quiz-options, .game-options, .matching-rows, .review-summary, .stats-grid, .admin-summary-grid { max-width: 100%; }
  .word-list > div, .quiz-options button, .game-options button, .matching-rows label { min-width: 0; }
  .word-copy strong, .word-copy b, .word-copy small, .quiz-options button, .game-options button { overflow-wrap: anywhere; }

  .bottom-nav {
    position: relative;
    left: auto;
    bottom: auto;
    align-self: start;
    width: calc(100% - 12px);
    max-width: 100%;
    height: 64px;
    margin: 3px auto 0;
    transform: none;
  }
}

@media (max-width: 350px) {
  .today-first-heading { display: grid; }
  .today-first-progress { grid-row: 1; grid-column: 2; align-self: start; }
  .today-first-heading > div { grid-row: 1; grid-column: 1 / -1; padding-right: 73px; }
  .today-first-copy > strong { font-size: 43px; }
  .today-first-copy b { font-size: 14px; }
  .today-first-copy small { font-size: 12px; }
}

/* Starlight village growth */
.village-progress { min-width: 0; display: grid; gap: 10px; }
.village-scene {
  --village-sky: #bde8ff;
  --village-ground: #7fbf75;
  --village-accent: #ef7b62;
  position: relative;
  width: min(520px, 100%);
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  padding: 0;
  overflow: hidden;
  border: 3px solid color-mix(in srgb, var(--village-accent) 65%, white);
  border-radius: 28px;
  background: #17264a;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--village-ground) 26%, transparent), inset 0 0 45px rgba(255,255,255,.2);
  transition: filter .35s ease, box-shadow .35s ease;
}
.village-landscape { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.village-growth-layer { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat; animation: village-build-reveal .75s cubic-bezier(.2,.8,.2,1) both; }
.village-atmosphere { position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(11,20,57,.04), rgba(8,21,35,.12)), radial-gradient(circle at 52% 48%, transparent 25%, rgba(5,13,27,.2) 100%); pointer-events: none; }
.village-scene-badges { position: absolute; z-index: 5; top: 12px; left: 12px; right: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.village-scene-badges span { padding: 6px 9px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #fff9da; background: rgba(9,20,38,.58); box-shadow: 0 5px 14px rgba(0,0,0,.14); backdrop-filter: blur(7px); font-size: 10px; font-weight: 900; }
.village-scene.dimmed { filter: brightness(.62) saturate(.72); }
.village-facility-path { position: absolute; z-index: 6; left: 12px; right: 12px; bottom: 11px; padding: 7px 9px; display: grid; grid-template-columns: repeat(30,1fr); gap: 3px; border: 1px solid rgba(255,255,255,.17); border-radius: 999px; background: rgba(6,16,32,.63); backdrop-filter: blur(8px); }
.village-facility-path i { aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.22); }
.village-facility-path i.built { background: #ffe38a; box-shadow: 0 0 7px rgba(255,222,112,.85); }
.village-facility-path i.next { background: #fff; box-shadow: 0 0 0 3px rgba(255,232,146,.35), 0 0 10px white; animation: village-next-lot 1.35s ease-in-out infinite; }
.village-landmarks { position: absolute; z-index: 7; right: 13px; bottom: 34px; min-height: 27px; display: flex; align-items: end; gap: 2px; }
.village-landmarks span { font-size: 23px; filter: drop-shadow(0 4px 3px rgba(15,27,50,.6)); animation: village-landmark-in .6s cubic-bezier(.2,.85,.25,1.2) both; }
.village-festival { position: absolute; z-index: 7; left: 50%; top: 50%; min-width: 170px; padding: 11px 16px; display: flex; align-items: center; justify-content: center; gap: 7px; border-radius: 999px; color: #382c0f; background: rgba(255,243,170,.94); box-shadow: 0 0 0 8px rgba(255,255,255,.2), 0 12px 25px rgba(54,41,16,.22); font-size: 14px; font-weight: 950; transform: translate(-50%, -50%); animation: village-festival-pop .8s cubic-bezier(.2,.85,.25,1.25) both; }
.village-scene.complete { box-shadow: 0 0 0 7px color-mix(in srgb, var(--village-accent) 18%, transparent), 0 18px 38px color-mix(in srgb, var(--village-accent) 38%, transparent), inset 0 0 55px rgba(255,255,255,.32); }
.village-scene.compact { border-width: 2px; border-radius: 20px; }
.village-scene.compact .village-scene-badges { top: 7px; left: 7px; right: 7px; }
.village-scene.compact .village-scene-badges span { padding: 4px 7px; font-size: 8px; }
.village-scene.compact .village-facility-path { left: 7px; right: 7px; bottom: 6px; padding: 4px 6px; gap: 2px; }
.village-scene.compact .village-landmarks { right: 8px; bottom: 21px; min-height: 20px; }
.village-scene.compact .village-landmarks span { font-size: 17px; }
.village-scene.compact .village-festival { min-width: 128px; padding: 7px 9px; font-size: 10px; }
.village-caption { min-width: 0; display: grid; grid-template-columns: 45px minmax(0,1fr) auto; align-items: center; gap: 10px; }
.village-symbol { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; background: #eef4e9; font-size: 24px; }
.village-caption > div { min-width: 0; }
.village-caption strong, .village-caption small { display: block; }
.village-caption strong { color: #333c4b; font-size: 14px; }
.village-caption small { margin-top: 3px; color: #7b8d85; font-size: 10px; }
.village-caption button, .village-collection-grid article > button { min-height: 38px; padding: 0 11px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid #cfdcd2; border-radius: 11px; color: #374a6b; background: white; cursor: pointer; font-size: 11px; font-weight: 900; }
.village-progress.compact .village-caption { grid-template-columns: 34px minmax(0,1fr); gap: 7px; }
.village-progress.compact .village-symbol { width: 34px; height: 34px; border-radius: 10px; font-size: 19px; }
.village-progress.compact .village-caption strong { font-size: 11px; }
.village-progress.compact .village-caption small { font-size: 8px; }

.village-collection-section { padding: 25px; border: 1px solid #d7e1d6; border-radius: 25px; background: linear-gradient(145deg, #fffef8, #edf5e9); box-shadow: 0 12px 34px rgba(50, 69, 83,.07); }
.village-collection-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.village-collection-heading h2 { margin: 6px 0 4px; font-size: 24px; }
.village-collection-heading p { margin: 0; color: #718078; font-size: 11px; line-height: 1.55; }
.village-collection-heading > strong { min-width: 88px; padding: 10px 12px; display: grid; justify-items: center; border: 1px solid #d4ded4; border-radius: 17px; color: #3f516b; background: rgba(255,255,255,.75); }
.village-collection-heading > strong b { font-size: 24px; line-height: 1; }
.village-collection-heading > strong small { margin-top: 4px; font-size: 9px; }
.village-collection-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.village-collection-grid article { position: relative; min-width: 0; padding: 8px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; border: 1px solid #d8dfd6; border-radius: 17px; background: rgba(255,255,255,.72); }
.village-collection-grid article > .village-scene { grid-column: 1 / -1; }
.village-collection-grid article > div:not(.village-scene):not(.special-village-visual) { min-width: 0; padding: 1px 3px 4px; }
.village-collection-grid article strong, .village-collection-grid article small { display: block; }
.village-collection-grid article strong { overflow: hidden; color: #3b434e; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.village-collection-grid article small { margin-top: 3px; color: #829088; font-size: 9px; }
.village-collection-grid article.locked { opacity: .55; filter: grayscale(.55); }
.village-collection-grid article.current { border-color: #7290b7; box-shadow: 0 0 0 3px rgba(95, 132, 176,.12); }
.village-collection-grid article.special { min-height: 132px; background: linear-gradient(145deg, #242f51, #162439); }
.village-collection-grid article.special strong { color: #fff4c4; }
.village-collection-grid article.special small { color: #bdc6d8; }
.special-village-visual { grid-column: 1 / -1; min-height: 74px; display: grid; place-items: center; color: #ffe48e; }
.special-village-visual > span { font-size: 43px; filter: drop-shadow(0 0 12px rgba(255,219,107,.45)); }
.special-village-visual > svg { position: absolute; top: 15px; right: 16px; }

.village-celebration { position: fixed; z-index: 200; inset: 0; overflow: hidden; display: grid; place-items: center; color: white; background: radial-gradient(circle at 50% 44%, rgba(44, 55, 89,.97), rgba(7, 10, 25,.98) 68%); }
.village-celebration::before { content: "✦    ·   ✧       ✦     ·     ✧    ✦"; position: absolute; inset: 8% 3% auto; color: rgba(255,255,255,.62); font-size: 25px; letter-spacing: 15px; text-align: center; animation: celebration-stars 2s ease-in-out infinite alternate; }
.village-celebration-skip { position: absolute; z-index: 10; top: max(18px, env(safe-area-inset-top)); right: 18px; min-height: 42px; padding: 0 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: white; background: rgba(0,0,0,.24); cursor: pointer; font-size: 13px; }
.celebration-characters { position: absolute; z-index: 6; top: 14%; left: 50%; display: flex; gap: 9px; transform: translateX(-50%); }
.celebration-characters span { width: 58px; height: 64px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.62); border-radius: 16px; color: #eafff8; background: rgba(255,255,255,.13); box-shadow: 0 0 19px rgba(151,255,222,.25); font-family: "Noto Serif KR", serif; font-size: 38px; font-weight: 800; animation: celebration-hanja-light 1.15s ease-out both; }
.celebration-characters span:nth-child(2) { animation-delay: .12s; }.celebration-characters span:nth-child(3) { animation-delay: .24s; }.celebration-characters span:nth-child(4) { animation-delay: .36s; }
.celebration-light-path { position: absolute; z-index: 4; inset: 25% 0 40%; pointer-events: none; }
.celebration-light-path i { position: absolute; left: calc(50% - 7px); top: 0; width: 14px; height: 14px; border-radius: 50%; background: #fff2a6; box-shadow: 0 0 14px #fff, 0 0 30px #80f1cf; opacity: 0; animation: celebration-light-fly 2.1s ease-in 1.05s both; }
.celebration-light-path i:nth-child(2) { margin-left: -50px; animation-delay: 1.2s; }.celebration-light-path i:nth-child(3) { margin-left: 50px; animation-delay: 1.35s; }.celebration-light-path i:nth-child(4) { margin-left: -20px; animation-delay: 1.5s; }


.celebration-facility-name { position: absolute; z-index: 2; left: 50%; bottom: 13px; padding: 6px 11px; border-radius: 999px; color: #fff6c8; background: rgba(6,19,33,.78); font-size: 13px; font-weight: 950; opacity: 0; transform: translateX(-50%); white-space: nowrap; animation: celebration-people-in .45s ease-out 3.7s forwards; }
.celebration-people { position: absolute; left: 50%; bottom: 12px; font-size: 28px; opacity: 0; transform: translateX(-50%); white-space: nowrap; animation: celebration-people-in .55s ease-out 3.85s forwards, celebration-clap .45s ease-in-out 4.4s 4 alternate; }
.celebration-fireworks { position: absolute; inset: 12px 0 auto; font-size: 30px; text-align: center; opacity: 0; animation: celebration-fireworks .8s ease-out 4.6s forwards; }
.celebration-message { position: absolute; z-index: 7; left: 50%; bottom: 9%; width: min(530px,88vw); text-align: center; opacity: 0; transform: translate(-50%,12px); animation: celebration-message-in .6s ease-out 5s forwards; }
.celebration-message strong, .celebration-message small { display: block; }
.celebration-message strong { color: #fff1a9; font-size: clamp(22px,5vw,34px); line-height: 1.3; }
.celebration-message small { margin-top: 8px; color: #d8f4e9; font-size: 15px; }

@keyframes village-next-lot { 50% { transform: scale(1.75); background: #fff5c2; } }
@keyframes village-build-reveal { from { opacity: .3; filter: brightness(1.8) saturate(.55); } to { opacity: 1; filter: brightness(1) saturate(1); } }
@keyframes village-landmark-in { from { opacity: 0; transform: translateY(12px) scale(.5); } }
@keyframes village-resident-wave { to { transform: translateY(-3px) rotate(4deg); } }
@keyframes village-festival-pop { from { opacity: 0; transform: translate(-50%,-50%) scale(.3); } }
@keyframes celebration-stars { to { opacity: .45; transform: scale(1.04); } }
@keyframes celebration-hanja-light { from { opacity: 0; transform: translateY(-20px) scale(.72); } 70% { color: #fff1a1; box-shadow: 0 0 35px #82f5d1; } }
@keyframes celebration-light-fly { 0% { opacity: 0; transform: translateY(0) scale(.5); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(44vh) scale(1.4); } }
@keyframes celebration-build { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.15); } 70% { opacity: 1; transform: translate(-50%,-50%) scale(1.2); } 100% { opacity: 1; transform: translate(-50%,-50%) scale(1); } }
@keyframes celebration-people-in { to { opacity: 1; } }
@keyframes celebration-clap { to { transform: translateX(-50%) translateY(-7px) scale(1.06); } }
@keyframes celebration-fireworks { 0% { opacity: 0; transform: scale(.3); } 70% { opacity: 1; transform: scale(1.15); } 100% { opacity: 1; transform: scale(1); } }
@keyframes celebration-message-in { to { opacity: 1; transform: translate(-50%,0); } }
@keyframes celebration-scene-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 767px) {
  .village-scene { border-radius: 22px; }
  .village-caption { grid-template-columns: 40px minmax(0,1fr) auto; }
  .village-symbol { width: 40px; height: 40px; }
  .village-caption strong { font-size: 13px; }
  .village-caption small { font-size: 10px; line-height: 1.35; }
  .village-collection-section { padding: 15px; border-radius: 20px; }
  .village-collection-heading h2 { font-size: 22px; }
  .village-collection-heading p { font-size: 13px; }
  .village-collection-heading > strong { min-width: 72px; padding: 9px; }
  .village-collection-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .village-collection-grid article { padding: 6px; border-radius: 14px; }
  .village-collection-grid .village-scene.compact { min-height: 0; }
  .celebration-characters span { width: 50px; height: 57px; font-size: 34px; }
  .celebration-village { height: 190px; bottom: 25%; }
}

@media (max-width: 350px) {
  .village-collection-grid { grid-template-columns: 1fr; }
  .celebration-characters { gap: 5px; }
  .celebration-characters span { width: 44px; height: 51px; font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .village-facility-path i.next, .village-growth-layer, .village-festival, .village-landmarks span { animation: none; }
  .celebration-characters span, .celebration-light-path i, .celebration-facility, .celebration-facility-name, .celebration-people, .celebration-fireworks, .celebration-message { animation-duration: .01ms; animation-delay: 0s; animation-iteration-count: 1; }
}

/* Starlight constellation progress */
.home-garden-card,
.group-garden-header {
  border-color: #cbd5eb;
  background: linear-gradient(135deg, #fffdf4, #eef0fb);
}
.garden-kicker { color: #4f568e; background: #ecebff; }
.garden-kicker svg { color: #7772c6; }
.constellation-progress { min-width: 0; display: grid; justify-items: center; gap: 9px; }
.constellation-sky {
  position: relative;
  width: min(340px, 100%);
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 25px;
  color: rgba(255,255,255,.22);
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.9) 0 1px, transparent 2px),
    radial-gradient(circle at 81% 73%, rgba(255,255,255,.75) 0 1px, transparent 2px),
    radial-gradient(circle at 67% 12%, rgba(255,255,255,.6) 0 1px, transparent 2px),
    linear-gradient(145deg, #111a3d, #273467 58%, #4a4477);
  box-shadow: inset 0 0 35px rgba(255,255,255,.05), 0 14px 30px rgba(31,39,85,.16);
}
.constellation-sky::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 55% 52%, color-mix(in srgb, var(--constellation-color) 17%, transparent), transparent 48%); pointer-events: none; }
.constellation-sky > .constellation-map { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; padding: 18px 24px 28px; }
.constellation-sky line { stroke: rgba(255,255,255,.16); stroke-width: 1.2; stroke-dasharray: 3 3; transition: stroke .25s ease; }
.constellation-sky .constellation-outline line { stroke: rgba(255,255,255,.62); stroke-width: 1.15; stroke-linecap: round; stroke-dasharray: .1 3.1; }
.constellation-sky .constellation-outline circle { fill: rgba(255,255,255,.9); stroke: rgba(255,255,255,.45); stroke-width: .45; filter: drop-shadow(0 0 2px rgba(255,255,255,.72)); }
.constellation-sky .constellation-progress-lines line { stroke: transparent; stroke-width: 1.75; stroke-dasharray: none; }
.constellation-sky .constellation-milestones circle { fill: rgba(255,255,255,.13); stroke: rgba(255,255,255,.55); stroke-width: .8; }
.constellation-sky line.lit { stroke: var(--constellation-color); stroke-width: 2; stroke-dasharray: none; filter: drop-shadow(0 0 4px var(--constellation-color)); }
.constellation-sky line.next { stroke: color-mix(in srgb, var(--constellation-color) 38%, transparent); stroke-width: 1.6; stroke-dasharray: 4 3; animation: constellation-next-line 1.7s ease-in-out infinite; }
.constellation-sky circle { fill: rgba(255,255,255,.22); stroke: rgba(255,255,255,.25); stroke-width: .7; transition: fill .25s ease, filter .25s ease; }
.constellation-sky circle.lit { fill: var(--constellation-color); stroke: white; filter: drop-shadow(0 0 4px var(--constellation-color)); }
.constellation-sky circle.next { fill: color-mix(in srgb, var(--constellation-color) 42%, transparent); stroke: white; stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: constellation-next-star 1.25s ease-in-out infinite; }
.constellation-sky.complete { animation: constellation-complete-sky .9s ease-out both; }
.constellation-sky.complete .constellation-map { animation: constellation-complete-map .9s ease-out both; }
.constellation-sky > span { position: absolute; z-index: 3; display: grid; place-items: center; transform: translate(-50%, -50%); transition: color .25s ease, filter .25s ease, transform .25s ease; }
.constellation-sky > span.lit { color: var(--constellation-color); filter: drop-shadow(0 0 7px var(--constellation-color)); transform: translate(-50%, -50%) scale(1.08); }
.constellation-sky > b { position: absolute; z-index: 4; left: 14px; bottom: 13px; color: white; font-size: 12px; }
.constellation-sky > small { position: absolute; z-index: 4; right: 14px; bottom: 13px; color: #dce3ff; font-size: 10px; font-weight: 800; }
.constellation-sparkle { position: absolute !important; z-index: 2 !important; inset: auto !important; width: 13px !important; height: 13px !important; color: rgba(255,255,255,.55) !important; }
.constellation-sparkle.sparkle-one { left: 69% !important; top: 72% !important; }
.constellation-sparkle.sparkle-two { left: 35% !important; top: 16% !important; width: 10px !important; height: 10px !important; }
.constellation-progress > div:last-child { display: grid; justify-items: center; gap: 2px; text-align: center; }
.constellation-progress > div:last-child strong { font-size: 14px; }
.constellation-progress > div:last-child small { color: #7180a0; font-size: 10px; }
.constellation-caption { min-height: 48px; }
.constellation-steps { height: 17px; display: flex; align-items: center; justify-content: center; gap: 3px; color: rgba(99,107,150,.28); }
.constellation-steps .lit { color: var(--constellation-color); filter: drop-shadow(0 0 3px var(--constellation-color)); }
.constellation-steps .next { color: color-mix(in srgb, var(--constellation-color) 58%, #8b91ad); animation: constellation-caption-next 1.25s ease-in-out infinite; }
.constellation-progress.compact .constellation-sky { width: min(250px, 100%); border-radius: 20px; }
.constellation-progress.compact > div:last-child strong { font-size: 12px; }
.constellation-progress.compact > div:last-child small { font-size: 9px; }
.constellation-intro-visual { display: grid; place-items: center; padding: 30px !important; background: radial-gradient(circle at center, #eef0ff, #dadcf0); }
.constellation-theme-preview { width: 100%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 13px; color: var(--constellation-color); background: radial-gradient(circle at 50% 45%, #364374, #172044 72%); }
.constellation-mini-map { width: 88%; height: 88%; }
.constellation-mini-map line { stroke: rgba(255,255,255,.15); stroke-width: 1.3; stroke-dasharray: 3 3; }
.constellation-mini-map .constellation-outline line { stroke: rgba(255,255,255,.6); stroke-width: 1; stroke-linecap: round; stroke-dasharray: .1 2.7; }
.constellation-mini-map .constellation-outline circle { fill: rgba(255,255,255,.86); stroke: none; filter: drop-shadow(0 0 1.5px white); }
.constellation-mini-map .constellation-progress-lines line { stroke: transparent; }
.constellation-mini-map .constellation-milestones circle { fill: rgba(255,255,255,.13); stroke: rgba(255,255,255,.45); }
.constellation-mini-map line.lit { stroke: color-mix(in srgb, var(--constellation-color) 72%, white); stroke-width: 2; stroke-dasharray: none; }
.constellation-mini-map line.next { stroke: color-mix(in srgb, var(--constellation-color) 38%, transparent); stroke-width: 1.6; }
.constellation-mini-map circle { fill: rgba(255,255,255,.18); stroke: rgba(255,255,255,.3); stroke-width: .75; }
.constellation-mini-map circle.lit { fill: var(--constellation-color); stroke: white; filter: drop-shadow(0 0 3px var(--constellation-color)); }
.constellation-mini-map circle.next { fill: color-mix(in srgb, var(--constellation-color) 40%, transparent); stroke: white; }
.tree-choice-grid { overflow: visible; }
.tree-choice-grid button:hover { border-color: #8f99d4; }
.tree-choice-grid button.selected { border-color: #7772c6; background: #f1f0ff; box-shadow: 0 8px 20px rgba(84,82,154,.13); }
.tree-choice-grid i { background: #6965b0; }
.garden-week > div.watered { color: #625fa8; }
.garden-week > div.watered > span { border-color: #9e9ad8; color: #625fa8; background: #efefff; box-shadow: 0 5px 12px rgba(93,88,165,.13); }

.constellation-album-section { padding: 25px; border: 1px solid #d9dced; border-radius: 25px; background: linear-gradient(145deg, #fbfbff, #f0f1fb); box-shadow: 0 12px 34px rgba(50,58,103,.07); }
.constellation-album-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.constellation-album-heading h2 { margin: 6px 0 4px; font-size: 24px; }
.constellation-album-heading p { margin: 0; color: #76819a; font-size: 11px; line-height: 1.55; }
.constellation-album-heading > strong { min-width: 88px; padding: 10px 12px; display: grid; justify-items: center; border: 1px solid #d4d8ea; border-radius: 17px; color: #555b94; background: rgba(255,255,255,.75); }
.constellation-album-heading > strong b { font-size: 24px; line-height: 1; }
.constellation-album-heading > strong small { margin-top: 4px; color: #8189a1; font-size: 9px; }
.constellation-album-preview { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.constellation-album-preview article, .constellation-album-all article { min-width: 0; padding: 9px; display: grid; grid-template-columns: 78px minmax(0, 1fr); align-items: center; gap: 10px; border: 1px solid #d9ddec; border-radius: 16px; background: rgba(255,255,255,.72); }
.constellation-album-preview article.completed { border-color: color-mix(in srgb, var(--constellation-color) 62%, #d9ddec); background: color-mix(in srgb, var(--constellation-color) 8%, white); box-shadow: 0 7px 18px color-mix(in srgb, var(--constellation-color) 13%, transparent); }
.constellation-album-preview article.current { border: 2px solid var(--constellation-color); background: white; }
.constellation-album-preview article.current::after { content: "지금 잇는 중"; justify-self: start; grid-column: 2; margin-top: -8px; padding: 3px 6px; border-radius: 999px; color: #333955; background: color-mix(in srgb, var(--constellation-color) 36%, white); font-size: 8px; font-weight: 900; }
.constellation-album-map { position: relative; width: 78px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: 13px; color: var(--constellation-color); background: radial-gradient(circle at 50% 45%, #364374, #151b3c 72%); }
.constellation-album-map .constellation-mini-map { width: 90%; height: 90%; }
.constellation-album-map > svg + svg { position: absolute; right: 7px; bottom: 7px; padding: 3px; border-radius: 50%; color: #c6cbe0; background: rgba(14,20,49,.86); }
.constellation-album-copy { min-width: 0; display: grid; gap: 3px; }
.constellation-album-copy strong { overflow: hidden; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.constellation-album-copy small { color: #818ba1; font-size: 9px; }
.constellation-album-all { margin-top: 13px; }
.constellation-album-all summary { min-height: 43px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #d5d9e8; border-radius: 14px; color: #585f8f; background: rgba(255,255,255,.7); cursor: pointer; list-style: none; font-size: 11px; font-weight: 900; }
.constellation-album-all summary::-webkit-details-marker { display: none; }
.constellation-album-all[open] summary { color: white; border-color: #5e6595; background: #5e6595; }
.constellation-album-all > div { margin-top: 12px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.constellation-album-all article.small { padding: 6px; grid-template-columns: 38px minmax(0, 1fr); gap: 6px; border-radius: 11px; }
.constellation-album-all article.small.completed { border-color: color-mix(in srgb, var(--constellation-color) 58%, #d9ddec); background: color-mix(in srgb, var(--constellation-color) 8%, white); }
.constellation-album-all article.small.current { border: 1.5px solid var(--constellation-color); }
.constellation-album-all article.small .constellation-album-map { width: 38px; border-radius: 8px; }
.constellation-album-all article.small .constellation-album-copy strong { font-size: 8px; }
.constellation-album-all article.small .constellation-album-copy small { font-size: 7px; }

@keyframes constellation-next-line { 50% { stroke-opacity: .25; } }
@keyframes constellation-next-star { 50% { opacity: .38; transform: scale(1.55); } }
@keyframes constellation-caption-next { 50% { opacity: .38; transform: scale(1.18); } }
@keyframes constellation-complete-sky { 0% { box-shadow: inset 0 0 35px rgba(255,255,255,.05), 0 14px 30px rgba(31,39,85,.16); } 55% { box-shadow: inset 0 0 54px color-mix(in srgb, var(--constellation-color) 48%, transparent), 0 0 32px color-mix(in srgb, var(--constellation-color) 42%, transparent); } }
@keyframes constellation-complete-map { 0% { transform: scale(.94); opacity: .72; } 65% { transform: scale(1.04); opacity: 1; } 100% { transform: scale(1); } }

/* Review schedule help and capped daily queue */
.review-page-heading { position: relative; padding-right: 62px; }
.review-help { position: absolute; z-index: 15; top: 0; right: 0; }
.review-help summary { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #d8ddd4; border-radius: 50%; color: #525c6c; background: #fffef8; box-shadow: 0 8px 20px rgba(42, 51, 64,.1); cursor: pointer; list-style: none; }
.review-help summary::-webkit-details-marker { display: none; }
.review-help[open] summary { color: white; background: #3f4d6e; }
.review-help > div { position: absolute; top: 52px; right: 0; width: min(360px, calc(100vw - 38px)); padding: 17px 18px; border: 1px solid #d7ddd3; border-radius: 17px; color: #434b56; background: #fffef9; box-shadow: 0 16px 42px rgba(31, 39, 49,.18); }
.review-help > div strong { font-size: 14px; }
.review-help ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 7px; }
.review-help li { font-size: 11px; line-height: 1.5; }
.review-empty { min-height: 190px; margin-top: 18px; display: grid; place-items: center; align-content: center; gap: 7px; border: 1px dashed #d6ddd2; border-radius: 17px; color: #668078; background: #fbfcf7; text-align: center; }
.review-empty strong { color: #38445f; font-size: 16px; }
.review-empty p, .additional-review p, .review-empty-peek { margin: 0; color: #7d8c85; font-size: 11px; line-height: 1.55; }
.review-empty-peek { padding: 15px 11px; border-radius: 10px; background: #f4f7f1; text-align: center; }
.additional-review { margin-top: 18px; padding: 14px 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-radius: 15px; background: #f0effa; }
.additional-review .secondary-button { flex: 0 0 auto; }

@media (max-width: 640px) {
  .constellation-sky { width: min(310px, 100%); border-radius: 20px; }
  .constellation-intro-visual { padding: 18px !important; }
  .garden-intro-card > .constellation-intro-visual { min-height: 210px; }
  .tree-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-right: 0; padding-right: 0; overflow: visible; }
  .member-tree-grid article { grid-template-columns: minmax(0, 1fr) 112px; }
  .member-tree-grid .constellation-progress { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
  .member-tree-grid .constellation-progress > div:last-child { display: none; }
  .member-tree-grid .constellation-sky { width: 112px; border-radius: 14px; }
  .member-tree-grid .constellation-sky > b, .member-tree-grid .constellation-sky > small, .member-tree-grid .constellation-sparkle { display: none; }
  .constellation-album-section { padding: 17px; border-radius: 20px; }
  .constellation-album-heading h2 { font-size: 21px; }
  .constellation-album-heading p { font-size: 12px; }
  .constellation-album-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .constellation-album-preview article { grid-template-columns: 58px minmax(0, 1fr); padding: 7px; gap: 7px; }
  .constellation-album-map { width: 58px; border-radius: 11px; }
  .constellation-album-copy strong { font-size: 10px; }
  .constellation-album-all > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-page-heading { padding-right: 51px; }
  .review-help summary { width: 40px; height: 40px; }
  .review-help > div { top: 47px; }
  .additional-review { align-items: stretch; flex-direction: column; }
  .additional-review .secondary-button { width: 100%; justify-content: center; }
}

@media (max-width: 380px) {
  .daily-grid { grid-template-columns: 1fr; }
  .comic-hanja-card .daily-card-art { aspect-ratio: 16 / 9; }
  .tree-choice-grid { grid-template-columns: 1fr; }
  .constellation-album-heading { align-items: stretch; flex-direction: column; }
  .constellation-album-heading > strong { align-self: flex-start; }
  .constellation-album-preview { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .constellation-sky circle.next, .constellation-sky line.next, .constellation-steps .next, .constellation-sky.complete, .constellation-sky.complete .constellation-map { animation: none; }
}

/* Clear story labels and one-scene study cards. */
.comic-welcome-visual {
  height: auto;
  align-self: center;
  align-items: center;
  flex-direction: column;
}
.welcome-scene-caption {
  position: relative;
  z-index: 5;
  width: 320px;
  min-height: 66px;
  margin-top: 12px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  border: 2px solid #232552;
  border-radius: 18px;
  color: #232552;
  background: #fffdf4;
  box-shadow: 4px 5px 0 rgba(28, 46, 74, .13);
  text-align: left;
}
.welcome-scene-caption > svg {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 6px;
  border: 1.5px solid rgba(239, 118, 105, .35);
  border-radius: 12px;
  color: var(--coral);
  background: #fff0d8;
  transform: rotate(-7deg);
}
.welcome-scene-caption > span {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  white-space: nowrap;
}
.welcome-scene-caption b,
.welcome-scene-caption small {
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", "NanumSquareRound", "Noto Sans KR", sans-serif;
  line-height: 1.25;
}
.welcome-scene-caption b {
  flex: 0 0 auto;
  color: #232552;
  font-size: 17px;
  font-weight: 950;
  letter-spacing: -.7px;
  text-shadow: 1px 1px 0 #f7dda0;
}
.welcome-scene-caption small {
  min-width: 0;
  color: #5f716d;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: -.45px;
  text-align: right;
}
.welcome-scene-caption small strong {
  color: var(--coral);
  font-size: 16px;
  font-weight: 950;
}

.study-card-scene {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin: 13px 0 9px;
  display: grid;
  grid-template-columns: minmax(0, 62%) minmax(0, 38%);
  overflow: hidden;
  border: 3px solid #232552;
  border-radius: 22px;
  background: #e8eee5;
  box-shadow: 6px 7px 0 rgba(28, 46, 74, .14);
}
.study-card-scene > .meaning-visual {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}
.study-card-scene .comic-scene-fill {
  background-color: #e8eee5;
  background-position: left center;
  background-size: contain;
}
.study-scene-hanja {
  position: relative;
  z-index: 4;
  min-width: 0;
  min-height: 100%;
  padding: 12px 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  border-left: 3px solid #232552;
  background: linear-gradient(135deg, #fffdf4, #eef3f7);
  pointer-events: none;
}
.study-scene-hanja strong {
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 2px solid rgba(28, 46, 74, .72);
  border-radius: 18px;
  color: #12213a;
  background: #ffffff;
  box-shadow: 0 6px 15px rgba(19, 23, 47, .12);
  font-family: "Noto Serif KR", Batang, serif;
  font-size: 62px;
  line-height: 1;
  text-shadow: 1px 2px 0 rgba(246, 214, 111, .55);
}
.study-scene-hanja span {
  padding: 0;
  color: #232552;
  background: transparent;
  box-shadow: none;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.25;
  text-align: center;
}
.study-scene-hanja span b { color: var(--coral); }
.study-scene-caption {
  width: 100%;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #6d7f7a;
  font-size: 10px;
  font-weight: 850;
  text-align: center;
}
.study-scene-caption svg { color: var(--yellow); }
.hanja-study-card { min-height: auto; }
.hanja-study-card .write-toggle { margin-top: auto; }

/* The new lineup has a blank gutter around every tree, so one crop never shows its neighbour. */
.tree-growth-visual > .species-crop,
.tree-choice-grid .species-crop {
  aspect-ratio: .93 / 1;
  background-color: #fffef8;
}

@media (max-width: 767px) {
  .comic-welcome-visual { width: 100%; margin-top: 14px; }
  .welcome-comic-scene { width: 100%; }
  .welcome-scene-caption {
    width: 100%;
    min-height: 70px;
    margin-top: 9px;
    padding: 12px 14px;
    border-width: 2px;
    box-shadow: 3px 4px 0 rgba(28, 46, 74, .12);
  }
  .welcome-scene-caption b { font-size: 18px; }
  .welcome-scene-caption small { font-size: 14px; }
  .welcome-scene-caption small strong { font-size: 17px; }

  .study-card-scene { grid-template-columns: minmax(0, 61%) minmax(0, 39%); margin-top: 8px; border-width: 2px; border-radius: 17px; box-shadow: 4px 5px 0 rgba(28, 46, 74, .13); }
  .study-card-scene .comic-scene-fill { background-position: left center; background-size: contain; }
  .study-scene-hanja { min-height: 100%; padding: 8px 6px; gap: 8px; border-left-width: 2px; }
  .study-scene-hanja strong { width: 68px; height: 68px; border-width: 2px; border-radius: 15px; font-size: 53px; }
  .study-scene-hanja span { font-size: 20px; }
  .study-scene-caption { margin-bottom: 8px; font-size: 11px; }

  .collection-entry-card { min-height: 88px; margin-top: 10px; padding: 14px; grid-template-columns: 46px minmax(0, 1fr) 20px; gap: 11px; border-radius: 18px; box-shadow: 3px 4px 0 rgba(68, 81, 112, .11); }
  .collection-entry-icon { width: 46px; height: 46px; border-radius: 14px; }
  .collection-entry-card small { font-size: 11px; }
  .collection-entry-card strong { font-size: 16px; line-height: 1.35; }
  .collection-entry-card em { font-size: 12px; line-height: 1.4; }
  .collection-heading { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; margin-bottom: 17px; }
  .collection-heading h1 { margin: 8px 0 6px; font-size: 28px; letter-spacing: -1.2px; }
  .collection-heading p { font-size: 13px; line-height: 1.5; }
  .collection-total { min-width: 74px; padding: 11px 8px; border-radius: 15px; }
  .collection-total strong { font-size: 25px; }
  .collection-total span { font-size: 11px; }
  .collection-total small { display: none; }
  .collection-toolbar { padding: 11px; display: grid; gap: 10px; border-radius: 17px; }
  .collection-search { min-width: 0; width: 100%; min-height: 46px; }
  .collection-filters { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .collection-filters button { min-width: 0; min-height: 40px; padding: 0 5px; font-size: 12px; }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .collection-card { padding: 11px; grid-template-columns: 46px minmax(0, 1fr); gap: 8px; border-radius: 15px; }
  .collection-card > strong { width: 46px; height: 50px; border-radius: 12px; font-size: 34px; }
  .collection-card-copy b { font-size: 13px; }
  .collection-card-copy small { font-size: 11px; }
  .collection-card-meta { padding-top: 8px; align-items: flex-start; flex-direction: column; gap: 5px; }
  .collection-card-meta small { font-size: 10px; }
  .collection-card-meta em { width: 100%; padding: 5px 6px; text-align: center; }
  .collection-empty { padding: 40px 16px; }
}

@media (max-width: 767px) {
  .today-first-card {
    padding: 13px;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(92px, 1fr);
    column-gap: 9px;
    row-gap: 10px;
  }
  .today-first-heading {
    min-width: 0;
    grid-column: 1;
    grid-row: 1;
    display: block;
  }
  .today-first-heading > div { padding-right: 0; }
  .today-first-heading h1 { margin: 5px 0 4px; font-size: 23px; line-height: 1.18; letter-spacing: -1px; }
  .today-first-heading p { font-size: 12px; line-height: 1.45; }
  .today-first-progress { display: none; }
  .today-first-actions {
    min-width: 0;
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 7px;
  }
  .today-first-actions .today-first-start,
  .today-first-actions .today-first-previous {
    width: 100%;
    min-width: 0;
    min-height: 55px;
    padding: 6px 5px;
    flex: 1;
    flex-direction: column;
    gap: 3px;
    border-width: 2px;
    border-radius: 13px;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
  }
  .today-first-actions button > svg { width: 16px; height: 16px; }
  .today-first-actions button > span { display: none; }
  .today-first-actions button > .today-action-short { display: inline; margin: 0; color: inherit; font-size: 11px; font-weight: 950; }
  .today-first-actions > button:only-child { max-height: 64px; flex: 0 0 64px; }
  .today-first-grid { grid-column: 1 / -1; grid-row: 2; margin-top: 0; }
  .week-days button { min-height: 49px; padding-top: 6px; padding-bottom: 6px; }
  .week-days button span:empty { display: none; }
}

@media (max-width: 350px) {
  .welcome-scene-caption > span {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    white-space: normal;
  }
  .welcome-scene-caption small { text-align: left; }
  .collection-heading { grid-template-columns: 38px minmax(0, 1fr); }
  .collection-total { grid-column: 2; justify-self: start; display: flex; align-items: baseline; gap: 5px; }
  .collection-grid { grid-template-columns: 1fr; }
  .collection-card-meta { align-items: center; flex-direction: row; }
  .collection-card-meta em { width: auto; }
}

/* Learning card: show the full illustration and keep meaning + examples together. */
.study-card-scene > .meaning-visual {
  padding: 9px;
  background: #e8eee5;
}
.study-card-scene .comic-scene-fill {
  inset: 9px;
  width: auto;
  height: auto;
  border-radius: 14px;
  background-size: contain;
  background-position: center;
}
.meaning-usage-note { display: grid; gap: 12px; padding: 15px; }
.meaning-usage-heading { gap: 9px; }
.meaning-usage-heading h3 { color: #232552; font-size: 16px; }
.meaning-connection {
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  border: 1px solid #eee0b9;
  border-radius: 12px;
  color: #536872;
  background: #fff8e6;
}

/* Consolidated home review, progress help, village choice and group art. */
.home-review-callout-wrap { grid-template-columns: 1fr; }
.home-review-callout-wrap .week-card { display: none; }
.home-review-callout-wrap .review-peek { padding: 20px 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.home-review-callout-wrap .review-peek .review-stack { display: none; }
.home-review-callout-wrap .review-peek .wide-link { min-width: 150px; margin: 0; border-radius: 14px; }
.word-hanja-gloss { color: #566b64 !important; background: #f1f5ee; }

.stage-track { position: relative; overflow: hidden; }
.stage-track > *:not(.stage-explorer-art) { position: relative; z-index: 1; }
.stage-explorer-art { position: absolute; z-index: 0; inset: 0 0 0 auto; width: 38%; height: 100%; object-fit: cover; object-position: center 42%; opacity: .14; mask-image: linear-gradient(90deg, transparent, #000 35%); }

.level-badge p em { display: block; margin-top: 3px; color: #8c7852; font-size: 9px; font-style: normal; }
.profile-chip.reward-decorated { border-color: #d7b755; box-shadow: 0 0 0 3px rgba(238,198,83,.14), 0 8px 22px rgba(72,88,66,.1); }
.profile-chip.reward-decorated::after { content: "✦"; margin-left: 2px; color: #d5a92d; font-size: 14px; }
.profile-chip.reward-legend { border-color: #8d86cf; box-shadow: 0 0 0 3px rgba(112,104,192,.16), 0 0 22px rgba(112,104,192,.18); }
.profile-chip.reward-legend::after { content: "★"; margin-left: 2px; color: #7770c8; font-size: 14px; }

/* 프로필 메뉴 안 칭호 배지 (2026-09-25) */
.profile-level-line { display: flex; align-items: center; gap: 6px; margin: 2px 7px 8px; padding: 8px 11px; border-radius: 12px; color: #8a6a12; background: linear-gradient(135deg,#fff6df,#fdebc0); font-size: 12px; font-weight: 800; }
.profile-level-line svg { flex: none; color: #d5a92d; }

/* 레벨업 축하 화면 (2026-09-25) */
.level-up-celebration { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; padding: 24px; }
.level-up-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 190px; height: 190px; border-radius: 50%; color: #ffe9a5; background: radial-gradient(circle at 50% 42%, #2f3868 0%, #171933 62%, #0e0f22 100%); box-shadow: 0 0 60px rgba(255,214,120,.4), inset 0 0 30px rgba(255,214,120,.12), 0 14px 34px rgba(0,0,0,.4); animation: level-up-pop .6s cubic-bezier(.34,1.56,.64,1) both; }
.level-up-star { width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 0 20px rgba(255,214,120,.85)); animation: level-up-star-glow 2.4s ease-in-out infinite; }
.level-up-badge strong { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
@keyframes level-up-star-glow { 0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 16px rgba(255,214,120,.7)); } 50% { transform: scale(1.08) rotate(4deg); filter: drop-shadow(0 0 26px rgba(255,214,120,1)); } }
.level-up-celebration .celebration-message { position: static; opacity: 1; transform: none; animation: none; width: min(420px, 86vw); }
.level-up-plaque-art { position: relative; width: min(400px, 92vw); margin: 10px auto 2px; animation: level-up-plaque-in .55s cubic-bezier(.34,1.56,.64,1) .1s both; }
.level-up-plaque-art img { display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 28px rgba(0,0,0,.5)); }
.level-up-plaque-text-art { position: absolute; left: 50%; width: 58%; text-align: center; transform: translate(-50%,-50%); font-family: "Noto Serif KR", Batang, serif; font-weight: 800; letter-spacing: 1.5px; line-height: 1.18; font-size: clamp(19px, 7.2vw, 29px); word-break: keep-all; }
.level-up-plaque-art.wood .level-up-plaque-text-art { top: 45%; background: linear-gradient(100deg,#ffe9a5 20%,#fffaea 38%,#ffe9a5 56%,#f4cf82 78%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 8px rgba(255,214,120,.6)); animation: level-up-text-shine 3s linear 1.1s infinite; }
.level-up-plaque-art.silk .level-up-plaque-text-art { top: 44%; background: linear-gradient(100deg,#5c2f0c 20%,#8a4a1a 38%,#5c2f0c 56%,#743a12 78%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; filter: drop-shadow(0 1px 0 rgba(255,224,170,.5)); animation: level-up-text-shine 3s linear 1.1s infinite; }
.level-up-plaque-art.crystal .level-up-plaque-text-art { top: 47%; width: 62%; font-size: clamp(16px, 6vw, 23px); line-height: 1.15; background: linear-gradient(100deg,#4b3a99 20%,#8b7ae6 38%,#4b3a99 56%,#6a56c9 78%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 8px rgba(255,255,255,.7)); animation: level-up-text-shine 3s linear 1.1s infinite; }
@keyframes level-up-plaque-in { 0% { transform: scale(.7) translateY(10px); opacity: 0; } 100% { transform: scale(1) translateY(0); opacity: 1; } }
@keyframes level-up-text-shine { 0% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
.level-up-confirm { margin-top: 2px; }
@keyframes level-up-pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.stat-help { position: relative; margin-left: auto; }
.stat-help summary { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #dfd9c8; border-radius: 50%; color: #728178; background: rgba(255,255,255,.74); cursor: pointer; list-style: none; }
.stat-help summary::-webkit-details-marker { display: none; }
.stat-help[open] summary { color: white; background: #42506e; }
.stat-help > div { position: absolute; z-index: 30; top: 41px; right: 0; width: min(290px, calc(100vw - 42px)); padding: 14px; border: 1px solid #d9ded4; border-radius: 15px; color: #424a57; background: #fffef9; box-shadow: 0 14px 36px rgba(31, 39, 49,.18); }
.stat-help > div strong { font-size: 13px; }.stat-help > div p { margin: 6px 0; font-size: 11px; line-height: 1.55; }.stat-help > div small { color: #8b6f2a; font-size: 10px; }
.stats-grid article { position: relative; }
.stats-grid .starlight-stat .stat-help { position: absolute; top: 12px; right: 12px; }
.learned-progress { grid-column: 1 / -1; height: 6px; overflow: hidden; border-radius: 99px; background: #e0e5dd; }
.learned-progress i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #637ea8, #f0ca63); }
.level-reward-card { position: relative; min-height: 116px; margin-top: 13px; padding: 18px 20px; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 13px; overflow: hidden; border: 1px solid #d8dfd2; border-radius: 20px; background: linear-gradient(120deg, #f6f9f0, #fff6dc); }
.level-reward-card > img { position: absolute; inset: 0 0 0 auto; width: 45%; height: 100%; object-fit: cover; object-position: center 38%; opacity: .14; mask-image: linear-gradient(90deg, transparent, #000 45%); }
.level-reward-card > *:not(img) { position: relative; z-index: 1; }
.level-reward-card > svg { color: #b98522; }.level-reward-card > div { display: grid; gap: 3px; }.level-reward-card small { color: #9a7b36; font-size: 9px; font-weight: 900; letter-spacing: 1px; }.level-reward-card strong { font-size: 16px; }.level-reward-card p { margin: 0; color: #6f7d75; font-size: 11px; }.level-reward-card > span { padding: 8px 10px; border-radius: 999px; color: #7c641f; background: rgba(255,255,255,.72); font-size: 10px; font-weight: 900; }
.weekly-goal-art { width: 100%; height: 104px; margin-bottom: 14px; display: block; border-radius: 15px; object-fit: cover; object-position: center 38%; }

.village-landmarks { align-items: end; }
.village-landmark { position: relative; }

.village-landmark summary::-webkit-details-marker { display: none; }
.village-landmark > div { position: absolute; z-index: 20; right: 0; bottom: 54px; width: 180px; padding: 10px 12px; display: grid; gap: 3px; border: 1px solid rgba(255,255,255,.35); border-radius: 12px; color: white; background: rgba(17, 21, 39,.94); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.village-landmark > div strong { font-size: 12px; }.village-landmark > div small { font-size: 9px; line-height: 1.45; }
.landmark-celebration { grid-template-columns: minmax(260px, 430px) minmax(230px, 390px); gap: 32px; padding: 28px; }
.landmark-celebration-copy { display: grid; justify-items: start; gap: 8px; }.landmark-celebration-copy > span { width: 55px; height: 55px; display: grid; place-items: center; border-radius: 18px; color: #171c2e; background: #f4ce6a; }.landmark-celebration-copy small { margin-top: 8px; color: #f2cf72; font-size: 13px; font-weight: 900; }.landmark-celebration-copy strong { font-size: clamp(25px, 4vw, 42px); line-height: 1.2; }.landmark-celebration-copy p { margin: 0; color: rgba(255,255,255,.74); font-size: 14px; line-height: 1.6; }

.village-choice-panel { margin-top: 20px; padding: 22px; display: grid; grid-template-columns: minmax(190px, .7fr) 1.3fr; align-items: center; gap: 18px; overflow: hidden; border: 1px solid #d9ddca; border-radius: 22px; background: linear-gradient(135deg, rgba(250,250,242,.96), rgba(231,241,225,.96)), url("/hanja-group-explorers.jpg") center/cover; }
.village-choice-panel h3 { margin: 7px 0 5px; font-size: 19px; }.village-choice-panel p { margin: 0; color: #718079; font-size: 11px; line-height: 1.55; }
.village-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.village-choice-grid button { min-width: 0; padding: 13px 10px; display: grid; justify-items: center; gap: 4px; border: 1px solid #d8dfd2; border-radius: 15px; color: #384359; background: rgba(255,255,255,.86); cursor: pointer; }
.village-choice-grid button:hover { transform: translateY(-2px); border-color: #708ca8; }.village-choice-grid button > span { font-size: 25px; }.village-choice-grid strong { font-size: 11px; }.village-choice-grid small { min-height: 28px; color: #809087; font-size: 8px; line-height: 1.4; }.village-choice-grid em { margin-top: 4px; padding: 5px 7px; border-radius: 999px; color: white; background: #495c7c; font-size: 8px; font-style: normal; font-weight: 900; }

.group-art-panel { min-height: 320px; padding: 0 !important; }
.group-art-panel img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; object-position: center 45%; }
.group-garden-header { position: relative; min-height: 230px; padding-left: min(48%, 500px); }
.group-garden-header > img { position: absolute; inset: 0 auto 0 0; width: 46%; height: 100%; object-fit: cover; object-position: center 42%; mask-image: linear-gradient(90deg, #000 68%, transparent); }
.group-garden-header > *:not(img) { position: relative; z-index: 1; }
.group-welcome-banner { min-height: 150px; padding: 18px; display: grid; grid-template-columns: minmax(190px, .55fr) 1fr; align-items: center; gap: 18px; overflow: hidden; border: 1px solid #d8e1d2; border-radius: 22px; background: #fbfcf6; }
.group-welcome-banner img { width: 100%; height: 130px; border-radius: 15px; object-fit: cover; object-position: center 42%; }.group-welcome-banner > div { display: grid; gap: 4px; }.group-welcome-banner small { color: #8b7d45; font-size: 9px; font-weight: 900; letter-spacing: 1px; }.group-welcome-banner strong { font-size: 20px; }.group-welcome-banner p { margin: 0; color: #708078; font-size: 11px; }

@media (max-width: 640px) {
  .home-review-callout-wrap .review-peek { grid-template-columns: 1fr; padding: 17px; }
  .home-review-callout-wrap .review-peek .wide-link { width: 100%; }
  .stage-explorer-art { width: 54%; }
  .stats-grid .starlight-stat .stat-help { top: 8px; right: 8px; }
  .level-reward-card { grid-template-columns: 34px minmax(0, 1fr); padding: 15px; }.level-reward-card > span { grid-column: 2; justify-self: start; }
  .weekly-goal-art { height: 92px; }
  .village-landmark summary { width: 37px; height: 37px; }.village-landmark > div { bottom: 44px; }
  .landmark-celebration { grid-template-columns: 1fr; align-content: center; gap: 20px; text-align: center; }.landmark-celebration-copy { justify-items: center; }.landmark-celebration-building { width: min(260px, 72vw); }
  .village-choice-panel { padding: 17px; grid-template-columns: 1fr; }.village-choice-grid { grid-template-columns: 1fr; }.village-choice-grid button { grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; justify-items: start; text-align: left; }.village-choice-grid button > span { grid-row: 1 / span 3; }.village-choice-grid small { min-height: 0; }.village-choice-grid em { grid-column: 3; grid-row: 1 / span 3; }
  .group-art-panel, .group-art-panel img { min-height: 210px; height: 210px; }
  .group-garden-header { min-height: 340px; padding: 180px 18px 20px; }.group-garden-header > img { width: 100%; height: 190px; mask-image: linear-gradient(180deg, #000 70%, transparent); }.group-header-actions { width: 100%; }
  .group-welcome-banner { grid-template-columns: 1fr; }.group-welcome-banner img { height: 150px; }
}
.meaning-connection svg { margin-top: 2px; color: #aa7b18; }
.meaning-connection p { margin: 0; font-size: 14px; font-weight: 750; line-height: 1.5; }
.meaning-usage-note .word-list { margin-top: 0; grid-template-columns: 1fr; gap: 7px; }
.meaning-usage-note .word-list > div {
  min-height: 0;
  padding: 10px 12px;
  display: block;
  border: 1px solid #e1ddd4;
  border-radius: 11px;
  box-shadow: none;
  background: #fffefa;
}
.meaning-usage-note .word-copy {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 4px;
  align-items: center;
}
.meaning-usage-note .word-copy strong { overflow: visible; white-space: normal; font-size: 21px; }
.meaning-usage-note .word-copy b { font-size: 14px; }
.meaning-usage-note .word-copy small { display: block; grid-column: 1 / -1; overflow: visible; padding: 4px 0 0; border-top: 1px solid #f0ece4; font-size: 13px; line-height: 1.4; }

@media (max-width: 767px) {
  .study-card-scene { grid-template-columns: minmax(0, 64%) minmax(0, 36%); }
  .study-card-scene > .meaning-visual { padding: 7px; }
  .study-card-scene .comic-scene-fill { inset: 7px; border-radius: 11px; }
  .study-scene-hanja { padding-right: 5px; padding-left: 5px; }
  .study-scene-hanja strong { width: 64px; height: 64px; font-size: 50px; }
  .study-scene-hanja span { font-size: 18px; }
  .meaning-usage-note { gap: 9px; }
  .meaning-usage-heading h3 { font-size: 15px; }
  .meaning-connection { padding: 10px; grid-template-columns: 20px minmax(0, 1fr); gap: 7px; }
  .meaning-connection p { font-size: 13px; line-height: 1.55; }
  .meaning-usage-note .word-list { grid-template-columns: 1fr; gap: 6px; }
  .meaning-usage-note .word-list > div { padding: 9px 10px; }
  .meaning-usage-note .word-copy { grid-template-columns: minmax(0, auto) minmax(0, 1fr); column-gap: 8px; row-gap: 3px; }
  .meaning-usage-note .word-copy strong { font-size: 19px; }
  .meaning-usage-note .word-copy b { font-size: 14px; }
  .meaning-usage-note .word-copy small { grid-column: 1 / -1; padding: 4px 0 0; border-top: 1px solid #f0ece4; border-left: 0; font-size: 12px; line-height: 1.35; }
}

/* final responsive overrides */
.village-scene>.village-theme-base{opacity:1;filter:none}
.village-scene>.village-growth-layer{filter:none}
.village-landmarks>.village-landmark.integrated{position:absolute;right:auto;bottom:auto;transform:translate(-50%,-50%)}
.village-landmarks>.village-landmark.integrated>summary{width:34px;height:34px;display:grid;place-items:center;color:#fff1a4;border:2px solid #ffe27a;border-radius:9px;background:#251b4dd4;background-image:none;box-shadow:0 0 0 5px #ffda5b24,0 0 18px #ffd85b}
.stroke-order-card .stroke-writer{width:min(410px,82vw)}
.toast{max-width:min(560px,calc(100vw - 28px));white-space:normal;overflow:visible;text-overflow:clip;line-height:1.5;text-align:center}
.stat-help>div{position:fixed;z-index:60;top:50%;left:50%;right:auto;bottom:auto;width:min(360px,calc(100vw - 36px));max-height:calc(100dvh - 60px);overflow-y:auto;transform:translate(-50%,-50%)}
@media(max-width:760px){.stroke-order-card .stroke-writer{width:min(360px,86vw)}}

/* 2026-09-12 consolidated learning, family, cheers and village interactions */
.browse-mode-badge,.daily-readonly-note{width:fit-content;display:inline-flex;align-items:center;gap:6px;color:#625b9f;background:#eeeafa;border-radius:999px;font-size:11px;font-weight:900}
.browse-only-note{margin:10px 0 0;padding:9px 11px;display:flex;align-items:center;gap:7px;border-radius:12px;color:#5d5680;background:#f0edf8;font-size:12px;font-weight:800}
.browse-mode-badge{padding:7px 10px}.daily-readonly-note{margin:10px 0 0;padding:8px 11px}
.stroke-order-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.stroke-order-actions button:last-child{color:#544b8b;background:#eeeafa}
.meaning-usage-note .word-list{grid-template-columns:1fr}.meaning-usage-note .word-list>div{min-height:auto;padding:14px 15px;grid-template-columns:1fr}.meaning-usage-note .word-copy{gap:7px}.meaning-usage-note .word-copy strong{font-size:25px}.meaning-usage-note .word-copy b{font-size:17px}.meaning-usage-note .word-copy small{padding-top:7px;font-size:14px;line-height:1.55;-webkit-line-clamp:unset}.word-hanja-gloss{color:#5f587d!important;background:#f3f0fa}
.village-swipe-scene{position:relative;cursor:zoom-in;touch-action:pan-y}.village-expand{position:absolute;z-index:15;right:12px;top:48px;width:38px;height:38px;display:grid;place-items:center;border:1px solid #ffffff88;border-radius:12px;color:white;background:#211b43bb;cursor:pointer}.village-swipe-help{color:#716d82;font-size:10px;text-align:center}.village-fullscreen{position:fixed;z-index:700;inset:0;padding:max(70px,env(safe-area-inset-top)) 18px 40px;display:grid;place-content:center;justify-items:center;gap:10px;color:white;background:#111025f2;backdrop-filter:blur(12px)}.village-fullscreen-scene{width:min(1100px,94vw);touch-action:pan-y}.village-fullscreen-scene .village-scene{width:100%;max-height:76vh}.village-fullscreen-close{position:fixed;z-index:2;top:max(18px,env(safe-area-inset-top));right:18px;min-height:42px;padding:0 13px;display:flex;align-items:center;gap:6px;border:1px solid #ffffff55;border-radius:999px;color:white;background:#292348;cursor:pointer}.village-fullscreen p,.village-fullscreen small{margin:0}.village-residents{position:absolute;z-index:8;inset:0;pointer-events:none}.village-residents i{position:absolute;left:var(--resident-left);bottom:24%;width:9px;height:14px;border:2px solid #fff1b0;border-radius:50% 50% 42% 42%;background:#544a8f;box-shadow:0 3px 5px #10102099;animation:village-resident-walk 3.2s ease-in-out var(--resident-delay) infinite alternate}.village-residents i:before{position:absolute;left:1px;top:-7px;width:5px;height:5px;border-radius:50%;background:#f6c99b;content:""}@keyframes village-resident-walk{to{transform:translateX(24px) translateY(-3px)}}
.village-scene>.village-theme-base{opacity:1!important}.village-scene>.village-growth-layer{filter:none;animation:village-build-reveal .75s cubic-bezier(.2,.8,.2,1) both}
.village-collection-heading{flex-wrap:wrap}.village-collection-toggle{min-height:40px;padding:0 12px;display:flex;align-items:center;gap:6px;border:1px solid #d2c9ad;border-radius:12px;color:#51487f;background:#fff9df;cursor:pointer;font-weight:900}.village-collection-toggle svg{transition:transform .2s}.village-collection-toggle[aria-expanded=true] svg{transform:rotate(180deg)}
.notice-editor textarea{min-height:58px}.notice-list article.cheer-owner{border-color:#d8bb54;background:#fff8d9}.notice-list article.cheer-admin{border-color:#8d82c5;background:#f2effb}.notice-list article header strong{display:flex;align-items:center;gap:4px}.notice-list article.cheer-owner header strong{color:#8a6511}.notice-list article.cheer-admin header strong{color:#51458b}.group-name-editor,.family-device-tools{padding:12px;display:flex;align-items:end;flex-wrap:wrap;gap:8px;border:1px solid #ded6c7;border-radius:14px;background:#faf7ef}.group-name-editor input,.family-device-tools input{min-height:40px;padding:0 11px;border:1px solid #d8d0c2;border-radius:10px;background:white}.group-name-editor button,.family-device-tools button{min-height:40px;padding:0 11px;border:1px solid #cfc5aa;border-radius:10px;background:white;cursor:pointer;font-weight:900}.family-device-tools label{display:grid;gap:4px}.family-device-tools label span{font-size:10px;font-weight:900}.child-grid.child-count-3{grid-template-columns:repeat(3,minmax(0,1fr))}.child-grid article.needs-attention{border-color:#e28a72;background:#fff0e9}.child-today{padding:7px;border-radius:9px;background:#f0edf9}.child-today small{display:flex;align-items:center;gap:3px;color:#746d84;font-size:9px}.child-grid article>p{display:flex;align-items:center;gap:4px}.illustrated-member-badge{color:#fff4bd!important;background:radial-gradient(circle at 35% 30%,#8178bd,#332c66 70%)!important;border:2px solid #d9c16c!important;box-shadow:inset 0 0 12px #ffffff33,0 5px 14px #27204638;font-size:10px!important;font-weight:950}
@media(max-width:760px){.stroke-order-actions{grid-template-columns:1fr 1fr}.stroke-order-actions button:last-child{grid-column:auto}.child-grid.child-count-3{grid-template-columns:1fr}.village-fullscreen{padding-left:8px;padding-right:8px}.village-fullscreen-scene{width:98vw}.member-tree-grid article{display:block}.member-tree-grid .village-progress{margin-top:12px}.member-tree-grid .village-scene{width:100%;min-height:190px}.family-device-tools{display:grid;grid-template-columns:1fr auto}.family-device-tools label{min-width:0}}

/* 2026-09-12 detail-completion pass */
.daily-study-help{position:relative;z-index:20;margin:8px 0 10px;width:fit-content}.daily-study-help>summary{width:38px;height:38px;display:grid;place-items:center;border:1px solid #d8ca81;border-radius:50%;color:#6e5aaa;background:#fff9dc;cursor:pointer;list-style:none}.daily-study-help>summary::-webkit-details-marker{display:none}.daily-study-help>div{position:fixed;z-index:62;top:50%;left:50%;width:min(420px,calc(100vw - 30px));padding:20px;border:1px solid #d9c66f;border-radius:18px;color:#3e3a58;background:#fffdf2;box-shadow:0 22px 60px #17142855;transform:translate(-50%,-50%)}.daily-study-help>div strong{font-size:18px}.daily-study-help ul{margin:12px 0 0;padding-left:20px;display:grid;gap:8px;font-size:13px;line-height:1.55}.help-backdrop{position:fixed!important;z-index:58!important;inset:0!important;width:100vw!important;height:100dvh!important;padding:0!important;border:0!important;border-radius:0!important;background:#14122678!important;cursor:pointer!important}.stat-help>summary,.daily-study-help>summary{position:relative;z-index:61}.stat-help>div{z-index:62!important}
.profile-badge-picker{margin:10px 0 14px;padding:14px;display:grid;gap:7px;border:1px solid #d8c979;border-radius:15px;background:linear-gradient(135deg,#fff9d9,#f1edff)}.profile-badge-picker>strong{color:#352d63;font-size:14px}.profile-badge-picker>span{color:#746f82;font-size:11px}.profile-badge-picker>div{display:flex;flex-wrap:wrap;gap:7px}.profile-badge-picker button{min-height:42px;padding:6px 10px;display:flex;align-items:center;gap:6px;border:1px solid #d4ccba;border-radius:12px;color:#4a4560;background:white;cursor:pointer;font-weight:900}.profile-badge-picker button.active{color:white;border-color:#51477f;background:#51477f}.profile-badge-picker i{width:27px;height:27px;display:grid;place-items:center;border-radius:50%;color:#fff1a8;background:radial-gradient(circle at 35% 30%,#8278c1,#332b66);font-size:15px;font-style:normal}
.profile-group-management{margin-top:18px}.group-settings-empty{margin-top:18px;padding:18px;display:flex;align-items:center;gap:12px;border:1px solid #d8d1c4;border-radius:18px;background:#fff}.group-settings-empty>div{display:grid;gap:4px}.group-settings-empty p{margin:0;color:#77717e;font-size:11px}
.family-pin-lock{max-width:560px}.family-pin-lock>input{max-width:250px}.child-grid article>p{margin:0}.child-grid article.needs-attention:before{content:"보호자 확인 필요";grid-column:1/-1;width:fit-content;padding:3px 7px;border-radius:999px;color:#9a321f;background:#ffd8cb;font-size:9px;font-weight:950}
.family-howto{padding:11px 13px;border:1px solid #d7c77c;border-radius:13px;background:#fff9dc}.family-howto summary{color:#3c3565;cursor:pointer;font-size:12px;font-weight:950}.family-howto ol{margin:10px 0 0;padding-left:20px;color:#605b70;font-size:11px;line-height:1.7}
.village-fullscreen{grid-template-rows:auto minmax(0,1fr) auto auto}.village-fullscreen-viewport{width:min(1100px,96vw);height:min(72vh,760px);overflow:auto;display:grid;place-items:center;border-radius:22px;overscroll-behavior:contain}.village-fullscreen-scene{transform-origin:center;transition:transform .18s ease}.village-zoom-tools{position:fixed;z-index:3;top:max(18px,env(safe-area-inset-top));left:18px;display:flex;align-items:center;gap:5px;padding:5px;border:1px solid #ffffff55;border-radius:999px;background:#292348}.village-zoom-tools button{width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:50%;color:white;background:#ffffff16;cursor:pointer}.village-zoom-tools span{min-width:48px;text-align:center;font-size:11px;font-weight:900}.village-landmarks>.village-landmark.integrated>summary{overflow:hidden;background:#332858c9}.landmark-building{width:100%;height:100%;display:block;background-image:var(--landmark-image);background-size:650% auto;background-position:var(--landmark-x) var(--landmark-y);filter:brightness(1.18) saturate(1.15);box-shadow:inset 0 0 0 2px #fff0a8}.village-landmark.integrated.new .landmark-building{animation:village-landmark-glow 1.4s ease-in-out infinite alternate}@keyframes village-landmark-glow{to{filter:brightness(1.55) saturate(1.25)}}
.stat-help[open]:before{display:none}
.solo-tree-card{place-items:stretch}.solo-tree-card .village-progress,.members-garden-section .village-progress{width:100%}.solo-tree-card .village-scene,.members-garden-section .village-scene{width:100%;max-width:none}.group-art-panel img,.group-garden-header>img{object-position:center 32%}.weekly-goal-art{height:auto;max-height:210px;object-fit:contain;object-position:center top;background:#eef3ed}.toast{max-width:min(430px,calc(100vw - 32px));padding:10px 14px;border:1px solid #ffffff35;border-radius:18px;font-size:12px;line-height:1.45;cursor:pointer}
.village-scene.theme-morning-brick{background:linear-gradient(168deg,transparent 0 56%,#c9a979 57% 61%,#78a66d 62%),linear-gradient(var(--village-sky),#f8e4ad)}
.village-scene.theme-cherry-path{background:radial-gradient(circle at 14% 53%,#f7b5cc 0 12%,transparent 13%),radial-gradient(circle at 86% 48%,#ef9fbd 0 13%,transparent 14%),linear-gradient(var(--village-sky) 0 54%,#77a96e 55%)}
.village-scene.theme-blue-roof{background:radial-gradient(ellipse at 50% 66%,#8bd3dd 0 10%,transparent 11%),linear-gradient(var(--village-sky) 0 53%,#71a973 54%)}
.village-scene.theme-harvest{background:repeating-linear-gradient(172deg,transparent 0 58%,#d2ab50 59% 63%,#b58d3f 64% 68%),linear-gradient(var(--village-sky),#eed393)}
.village-scene.theme-lavender{background:repeating-linear-gradient(170deg,transparent 0 58%,#8f75b8 59% 61%,#6d8661 62% 65%),linear-gradient(var(--village-sky),#d9c8ed)}
.village-scene.theme-mountain{background:linear-gradient(145deg,transparent 0 43%,#79917c 44% 59%,#60785f 60%),linear-gradient(var(--village-sky),#e5e0c9)}
.village-scene.theme-rainbow{background:radial-gradient(ellipse at 50% 78%,#94c379 0 38%,transparent 39%),linear-gradient(var(--village-sky),#f5e8bf)}
.village-scene.theme-glass{background:radial-gradient(ellipse at 50% 64%,#a8d9c788 0 18%,transparent 19%),linear-gradient(var(--village-sky) 0 52%,var(--village-ground) 53%)}
@media(max-width:760px){.daily-study-help{margin-left:auto}.daily-study-help>div{padding:17px}.village-fullscreen-viewport{width:98vw;height:68vh}.village-zoom-tools{left:10px}.family-heading .family-invite{margin-right:5px}.group-art-panel img,.group-garden-header>img{object-position:center 27%}.weekly-goal-art{height:auto;max-height:none}.toast{bottom:calc(90px + env(safe-area-inset-bottom));font-size:11px}}

/* 2026-09-12 verified village facilities and compact word examples */
.village-built-facilities{position:absolute;z-index:4;inset:0;pointer-events:none}
.village-built-facilities>i{--facility-size:5.5%;position:absolute;width:var(--facility-size);aspect-ratio:1;transform:translate(-50%,-58%);filter:drop-shadow(0 3px 2px #16223f80);animation:facility-build-in .42s cubic-bezier(.2,.85,.25,1.25) both}
.village-built-facilities>i>span{position:absolute;inset:24% 8% 5%;border:1px solid color-mix(in srgb,var(--village-accent) 55%,#47351d);border-radius:3px 3px 2px 2px;background:color-mix(in srgb,var(--village-accent) 30%,#fff2c0);box-shadow:inset 0 -4px #6e5234}
.village-built-facilities>i>span:before{position:absolute;left:-9%;right:-9%;top:-34%;height:45%;clip-path:polygon(50% 0,100% 100%,0 100%);background:color-mix(in srgb,var(--village-accent) 72%,#723b38);content:""}
.village-built-facilities>i>span:after{position:absolute;left:39%;bottom:0;width:23%;height:48%;border-radius:2px 2px 0 0;background:#513b31;content:""}
.village-built-facilities>i.facility-1>span,.village-built-facilities>i.facility-4>span{inset:33% 17% 4%;border-radius:50% 50% 7px 7px;background:#527a50;box-shadow:inset 0 -6px #345c3c}.village-built-facilities>i.facility-1>span:before,.village-built-facilities>i.facility-4>span:before{left:34%;right:auto;top:71%;width:30%;height:42%;clip-path:none;background:#5a3f28}.village-built-facilities>i.facility-1>span:after,.village-built-facilities>i.facility-4>span:after{display:none}
.village-built-facilities>i.facility-2>span{inset:38% 4% 8%;border-radius:50%;background:radial-gradient(circle at 25% 35%,#ffe585 0 12%,transparent 13%),radial-gradient(circle at 70% 65%,#f69b9b 0 13%,transparent 14%),#73a85f;box-shadow:none}.village-built-facilities>i.facility-2>span:before,.village-built-facilities>i.facility-2>span:after{display:none}
.village-built-facilities>i.facility-3>span{background:#f6dc9d;box-shadow:inset 0 -4px #98704a}.village-built-facilities>i.facility-3>span:before{background:#426c82}
.village-built-facilities>i.facility-5>span{inset:30% 12% 9%;border-radius:50%;background:radial-gradient(ellipse at center,#8cd5df 0 36%,#e9ead2 39% 58%,#6da964 61%);box-shadow:none}.village-built-facilities>i.facility-5>span:before,.village-built-facilities>i.facility-5>span:after{display:none}
.village-built-facilities>i.latest{filter:drop-shadow(0 0 5px #ffe57b) drop-shadow(0 3px 2px #16223f80)}
@keyframes facility-build-in{from{opacity:0;transform:translate(-50%,-35%) scale(.55)}to{opacity:1;transform:translate(-50%,-58%) scale(1)}}
.village-scene>.village-theme-base{filter:saturate(.82) brightness(.9)!important}.village-scene.empty-lot>.village-theme-base{filter:saturate(.7) brightness(.86)!important}

.meaning-usage-note .compact-word-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.meaning-usage-note .compact-word-list>div{min-height:88px;padding:10px 11px;display:grid;grid-template-columns:minmax(92px,.8fr) minmax(0,1.2fr);grid-template-rows:auto auto;align-items:center;column-gap:10px;row-gap:7px;border:1px solid #dfd9cc;border-radius:13px;background:#fffefa}
.compact-word-list .word-heading{min-width:0;display:flex;align-items:baseline;gap:7px;white-space:nowrap}.compact-word-list .word-heading strong{font-family:Batang,"Noto Serif KR",serif;font-size:22px;line-height:1}.compact-word-list .word-heading b{color:var(--ink);font-size:14px;line-height:1}
.compact-word-list .word-meaning{min-width:0;color:#52646c;font-size:12px;font-weight:750;line-height:1.35}
.meaning-usage-note .compact-word-list .word-hanja-gloss{grid-column:1/-1;padding:6px 8px;border:0;border-radius:8px;color:#5f587d!important;background:#f3f0fa;font-size:11px;line-height:1.35}
.notice-list article.cheer-owner{border:2px solid #d8bb54!important;background:linear-gradient(135deg,#fff9dc,#fff2b9)!important;box-shadow:0 5px 16px #b98a2030}.notice-list article.cheer-owner header strong{color:#805c08!important}
@media(max-width:420px){.meaning-usage-note .compact-word-list{grid-template-columns:1fr}.meaning-usage-note .compact-word-list>div{min-height:76px}}

/* 2026-09-13 profile hub, painterly village sprites and revisit tools */
.browse-mode-tools{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px}.browse-mode-tools>button{min-height:38px;padding:0 12px;display:flex;align-items:center;gap:6px;border:1px solid #b8acd9;border-radius:999px;color:#554a88;background:#f1edfb;cursor:pointer;font-size:11px;font-weight:900}
.profile-family-backdrop{z-index:350;padding:18px}.profile-family-modal{position:relative;width:min(880px,100%);max-height:calc(100dvh - 36px);padding:26px;overflow-y:auto;border:1px solid #d7d0b9;border-radius:26px;background:#fffdf7;box-shadow:0 30px 90px #11102566}.profile-family-heading{display:flex;align-items:center;gap:12px;padding-right:44px}.profile-family-heading>span{width:50px;height:50px;display:grid;place-items:center;flex:0 0 auto;border-radius:16px;color:#fff0a4;background:radial-gradient(circle at 35% 30%,#8178bd,#332c66 70%);font-size:25px}.profile-family-heading small{color:#9a7929;font-size:10px;font-weight:950;letter-spacing:1px}.profile-family-heading h2{margin:2px 0;font-size:24px}.profile-family-heading p{margin:0;color:#74717f;font-size:13px}.profile-family-modal>.family-hub{margin-top:16px}.profile-family-modal>.profile-badge-picker{margin:18px 0 0}
.village-built-facilities>i>span,.village-built-facilities>i:before,.village-built-facilities>i:after{display:none!important}.village-built-facilities>i.latest{filter:drop-shadow(0 0 7px #ffe57b) drop-shadow(0 3px 3px #0714268c)}
.village-residents i:before,.village-residents i:after{display:none!important}@keyframes village-resident-walk{to{transform:translateX(18px) translateY(-2px)}}
@media(max-width:760px){.profile-family-backdrop{padding:0;align-items:end}.profile-family-modal{width:100%;max-height:calc(100dvh - 18px);padding:22px 16px calc(20px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0}.profile-family-heading h2{font-size:21px}.profile-family-heading p{font-size:12px}.profile-family-modal .family-hub{padding:16px}.village-residents i{width:8.5%}}

/* 2026-09-13 themed village lots, clear landmarks and persistent rewards */
.village-progress,.village-swipe-scene,.village-fullscreen-scene,.village-collection-grid article{min-width:0;max-width:100%;box-sizing:border-box}.village-swipe-scene{overflow:hidden;border-radius:inherit}.village-scene{width:100%;max-width:100%;box-sizing:border-box;contain:layout paint}.village-scene>.village-theme-base{object-fit:cover;object-position:center;filter:saturate(.82) brightness(.72)!important}.village-scene.empty-lot>.village-theme-base{filter:saturate(.78) brightness(.68)!important}.village-built-facilities{overflow:hidden}
.village-landmarks>.village-landmark.integrated{position:absolute;width:9%;aspect-ratio:1;padding:0;overflow:visible;border:0;background:transparent;transform:translate(-50%,-50%);cursor:pointer}.village-landmark-note{position:absolute;z-index:19;left:50%;bottom:13%;width:min(330px,86%);padding:8px 9px 8px 11px;display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #ffe8a4;border-radius:12px;color:#fff8dc;background:#171b2ee8;box-shadow:0 8px 22px #05071366;transform:translateX(-50%)}.village-landmark-note div{min-width:0}.village-landmark-note strong,.village-landmark-note small{display:block;white-space:normal}.village-landmark-note strong{font-size:12px}.village-landmark-note small{margin-top:2px;font-size:9px;line-height:1.35}.village-landmark-note button{width:28px;height:28px;display:grid;place-items:center;flex:0 0 auto;border:1px solid #ffffff55;border-radius:50%;color:white;background:#ffffff18;cursor:pointer}
.village-built-facilities>i{background-color:transparent!important;background-image:var(--building-atlas);background-size:600% 500%;background-repeat:no-repeat;transform:translate(-50%,-100%);transform-origin:50% 100%;filter:drop-shadow(0 2px 2px #07142680);animation:facility-ground-in .42s cubic-bezier(.2,.85,.25,1.25) both}.village-built-facilities>i.latest{filter:drop-shadow(0 0 8px #ffe57b) drop-shadow(0 2px 2px #07142680)}@keyframes facility-ground-in{from{opacity:0;transform:translate(-50%,-82%) scale(.65)}to{opacity:1;transform:translate(-50%,-100%) scale(1)}}

.village-history-caption{margin:2px auto 3px;padding:8px 12px;display:flex;align-items:center;justify-content:center;gap:8px;width:min(360px,100%);border:1px solid #d7cfb7;border-radius:13px;color:#4e4775;background:#fff9e7}.village-history-caption>svg{color:#b8871f}.village-history-caption span{display:grid;gap:1px;text-align:left}.village-history-caption small{color:#8b7c55;font-size:9px;font-weight:800}.village-history-caption strong{font-size:12px;line-height:1.3}.village-celebration-skip{display:flex;align-items:center;gap:5px}.celebration-facility{border:0;background-color:transparent;background-image:var(--celebration-atlas);background-size:600% 500%;background-position:var(--celebration-sprite-x) var(--celebration-sprite-y);filter:drop-shadow(0 0 12px #ffe589) drop-shadow(0 12px 10px #07142699);box-shadow:none}
@media(max-width:760px){.village-scene{border-width:2px}.village-landmarks>.village-landmark.integrated{width:10%}.village-residents i{width:5.8%}.village-history-caption{width:calc(100% - 8px)}}

/* 2026-09-13 approved painted village scenes */
.village-painted-growth,.village-painted-landmark{position:absolute;z-index:2;inset:0;pointer-events:none}.village-painted-growth>img,.village-painted-landmark>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;filter:brightness(.84) saturate(.92);-webkit-mask-image:radial-gradient(circle at var(--reveal-x) var(--reveal-y),#000 0 var(--reveal-radius,15%),transparent calc(var(--reveal-radius,15%) + 2%));mask-image:radial-gradient(circle at var(--reveal-x) var(--reveal-y),#000 0 var(--reveal-radius,15%),transparent calc(var(--reveal-radius,15%) + 2%));animation:painted-scene-in .4s ease both}.village-painted-growth>img.latest{animation:painted-scene-latest .7s ease both}.village-painted-landmark>img{--reveal-radius:14%;z-index:1}.village-landmarks{inset:0}.village-landmarks>.village-painted-landmark>.village-landmark.integrated{position:absolute;z-index:3;width:8%;aspect-ratio:1;padding:0;border:0;border-radius:50%;background:transparent;transform:translate(-50%,-50%);pointer-events:auto}.landmark-glow{position:absolute;inset:20%;border:1px solid #ffe386;border-radius:50%;box-shadow:0 0 0 4px #ffe38622,0 0 12px #ffe386;opacity:.8}.village-landmark.integrated.new .landmark-glow{animation:village-landmark-glow 1.2s ease-in-out infinite alternate}.village-residents,.village-built-facilities{display:none!important}@keyframes painted-scene-in{from{opacity:0}to{opacity:1}}@keyframes painted-scene-latest{from{opacity:0;filter:brightness(1.35) saturate(.75)}to{opacity:1;filter:brightness(.84) saturate(.92)}}

/* Individual village objects on crisp scenery; no partial bright-image reveal. */
.village-painted-growth,.village-painted-landmark{display:none!important}.village-built-facilities,.village-residents{display:block!important}.village-scene>.village-theme-base{filter:saturate(.98) brightness(.92) contrast(1.03)!important}.village-scene.empty-lot>.village-theme-base{filter:saturate(.95) brightness(.9) contrast(1.03)!important}

/* One growth system for every owner, theme and swipe-history state. */
.village-built-facilities>i:after,.village-landmarks>.village-landmark.grounded:after{display:block!important;position:absolute;z-index:-1;left:12%;right:12%;bottom:-3%;height:12%;border-radius:50%;background:#17210f4d;filter:blur(2px);content:""!important}
.village-landmarks>.village-landmark.grounded{right:auto;bottom:auto;aspect-ratio:1;overflow:visible;border:0;border-radius:0;background:transparent;box-shadow:none;transform:translate(-50%,-100%);transform-origin:50% 100%;pointer-events:auto}
.village-landmarks>.village-landmark.grounded .landmark-building{display:block;width:100%;height:100%;border:0;border-radius:0;background-color:transparent;background-image:var(--landmark-atlas);background-repeat:no-repeat;background-size:600% 500%;background-position:var(--landmark-sprite-x) var(--landmark-sprite-y);box-shadow:none;filter:drop-shadow(0 2px 2px #07142680)}
.village-landmarks>.village-landmark.grounded.new .landmark-building{animation:landmark-ground-in .55s cubic-bezier(.2,.85,.25,1.2) both}
.village-landmarks>.village-landmark.grounded.new:before{position:absolute;z-index:2;right:3%;top:2%;width:7px;height:7px;border-radius:50%;background:#ffe887;box-shadow:0 0 9px #ffe887;content:""}
@keyframes landmark-ground-in{from{opacity:0;transform:translateY(18%) scale(.72)}to{opacity:1;transform:none}}

/* Approved unified village artwork: the landscape and buildings are one scene. */
.village-scene>.village-theme-base.unified-painted-scene{filter:none!important;image-rendering:auto}
.village-scene.original-complete-art>.village-theme-base{filter:none!important;image-rendering:auto}
.village-scene.painted-progression>.village-theme-base{filter:none!important;image-rendering:auto;object-fit:cover;object-position:center}
.village-landmarks.painted-hotspots>.village-landmark.grounded{width:9%;height:auto;opacity:.12}
.village-landmarks.painted-hotspots>.village-landmark.grounded .landmark-building{background-image:none;filter:none}
.village-landmarks.painted-hotspots>.village-landmark.grounded:after{display:none!important}
.village-landmarks.painted-hotspots>.village-landmark.grounded:focus-visible{opacity:.8;outline:3px solid #ffe887;outline-offset:2px}

/* Star tree and starlight friend reward system */
.starpet-progress{padding:16px;border:1px solid #514a78;border-radius:26px;background:linear-gradient(155deg,#15152c,#20213a);color:#f7f2ff;box-shadow:0 18px 44px #08081642;overflow:hidden}
.starpet-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}.starpet-head>div{display:grid;gap:2px}.starpet-head small{color:#d9c8ff;font-size:10px;font-weight:900;letter-spacing:.06em}.starpet-head strong{font-size:19px}.starpet-head>span{padding:7px 10px;border:1px solid #ffffff24;border-radius:999px;color:#ffe68a;background:#ffffff0d;font-size:10px;font-weight:900}
.starpet-scene{position:relative;min-height:330px;overflow:hidden;border:2px solid #7666a9;border-radius:22px;background:radial-gradient(circle at 50% 72%,#51427a 0 8%,transparent 34%),radial-gradient(circle at 18% 22%,#514c8c 0 1px,transparent 2px),radial-gradient(circle at 78% 18%,#fff1ae 0 1px,transparent 2px),linear-gradient(#080b25 0 58%,#151b31 59% 76%,#22233a 77%);background-size:auto,47px 47px,61px 61px,auto}.starpet-scene.compact{min-height:205px}.starpet-scene>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:brightness(.58) saturate(.88)}.starpet-scene-shade{position:absolute;inset:0;background:radial-gradient(circle at 50% 58%,transparent 0 24%,#090b2460 78%)}
.starpet-scene.complete .starpet-sprite{height:86%}.starpet-day-badge{position:absolute;z-index:3;left:13px;top:13px;padding:8px 11px;border:1px solid #ffffff42;border-radius:999px;color:#fff7ce;background:#17162cce;font-size:11px;font-weight:950}
.starpet-story{margin-top:11px;padding:12px;display:flex;align-items:center;gap:10px;border:1px solid #ffffff18;border-radius:15px;background:#ffffff0b}.starpet-story>svg{color:#ffe076}.starpet-story>div{display:grid;gap:3px}.starpet-story small{color:#c9c0e7;font-size:9px}.starpet-story strong{font-size:14px}.starpet-dots{margin-top:10px;display:grid;grid-template-columns:repeat(30,1fr);gap:3px}.starpet-dots i{height:6px;border-radius:99px;background:#ffffff1a}.starpet-dots i.done{background:#ffe27a}.starpet-dots i.next{background:#cdb7ff;box-shadow:0 0 9px #cdb7ff}.starpet-swipe-help{margin:8px 0 0;color:#aaa4c5;font-size:9px;text-align:center}.starpet-progress.compact{padding:10px}.starpet-progress.compact .starpet-head{margin-bottom:8px}.starpet-progress.compact .starpet-head strong{font-size:14px}.starpet-progress.compact .starpet-sprite{height:92%;width:auto}
.starpet-book{border-color:#5b527a;background:linear-gradient(145deg,#19172d,#27243d);color:#f8f4ff}.starpet-book .village-collection-heading h2{color:#fff}.starpet-book .village-collection-heading p{color:#b9b2cc}.starpet-book .village-collection-heading>strong{border-color:#ffffff22;color:#ffe486;background:#ffffff0d}.starpet-book .village-collection-toggle{border-color:#ffffff24;color:#eee6ff;background:#ffffff10}
.star-choice{margin-top:18px;padding:18px;display:grid;grid-template-columns:.9fr 1.1fr;align-items:center;gap:16px;border:1px solid #8170bb;border-radius:20px;background:radial-gradient(circle at 82% 20%,#7051b42b,transparent 38%),#101126}.star-choice small{color:#f4cc72;font-size:10px;font-weight:900}.star-choice h3{margin:5px 0;font-size:17px}.star-choice p{margin:0;color:#b9b2cc;font-size:10px}.star-choice>div:last-child{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.star-choice button{padding:12px 6px;display:grid;justify-items:center;gap:5px;border:1px solid #ffffff22;border-radius:15px;color:white;background:#ffffff0b;cursor:pointer}.star-choice button span{font-size:31px;text-shadow:0 0 18px currentColor}.star-choice button.gold span{color:#ffe176}.star-choice button.violet span{color:#c9a8ff}.star-choice button.mint span{color:#8debd8}.star-choice button strong{font-size:10px}
.pet-collection-grid{margin-top:17px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}.pet-collection-grid article{min-width:0;padding:12px 8px;display:grid;justify-items:center;gap:5px;border:1px solid #ffffff18;border-radius:16px;background:#ffffff09;text-align:center}.pet-orb{width:52px;height:52px;display:grid;place-items:center;border:1px solid #ffffff2b;border-radius:50%;color:#e6dcff;background:radial-gradient(circle,#6d5a9b,#25213f 68%);font-size:28px;box-shadow:inset 0 0 18px #ffffff0d}.pet-collection-grid article.locked .pet-orb{color:#918aa8;background:radial-gradient(circle,#4a465d,#222132 68%)}.pet-collection-grid article.current{border-color:#cdb6ff;box-shadow:0 0 0 2px #a88bff22}.pet-collection-grid article.special .pet-orb{color:#ffe27c;background:radial-gradient(circle,#846a29,#2b241d 68%)}.pet-collection-grid strong{overflow:hidden;max-width:100%;color:#f5efff;font-size:10px;white-space:nowrap;text-overflow:ellipsis}.pet-collection-grid small{min-height:26px;color:#aaa4bd;font-size:8px;line-height:1.4}.starpet-celebration{padding:80px 18px 34px;grid-template-rows:auto minmax(0,1fr) auto;gap:16px}.starpet-celebration>.starpet-scene{width:min(720px,94vw);height:min(54vh,520px);border:0;opacity:0;animation:celebration-scene-in .7s ease-out .15s forwards}.starpet-celebration .celebration-message{position:static}
@media(max-width:760px){.starpet-scene{min-height:250px}.starpet-scene.compact{min-height:180px}.starpet-sprite{height:91%;width:auto}.star-choice{grid-template-columns:1fr}.pet-collection-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.starpet-celebration>.starpet-scene{height:42vh}}

/* Individual star-pet artwork: never crop or sprite-shift these files. */
.starpet-scene{background:radial-gradient(circle at 50% 72%,#51427a 0 8%,transparent 34%),linear-gradient(#080b25,#17152d)}
.starpet-scene>img{object-fit:contain;object-position:center;filter:none}
.starpet-scene.phase-baby>img{transform:scale(.84)}
.starpet-scene.phase-young>img{transform:scale(.91)}
.starpet-scene.phase-adult>img,.starpet-scene.phase-complete>img{transform:scale(1)}
.starpet-scene-shade{pointer-events:none;background:linear-gradient(180deg,#08091b10,transparent 58%,#08091b22)}
.starpet-sprite{display:none!important}
.pet-orb img{width:100%;height:100%;display:block;border-radius:50%;object-fit:cover}

/* Illustrated pet book and day-by-day enlarged journey */
.starpet-swipe{position:relative;width:100%;padding:0;border:0;border-radius:22px;color:inherit;background:transparent;cursor:zoom-in;text-align:inherit;touch-action:pan-y}.starpet-expand-hint{position:absolute;z-index:4;right:12px;bottom:12px;padding:7px 10px;border:1px solid #ffffff2b;border-radius:999px;color:#fff5cf;background:#111127c9;font-size:10px;font-weight:900;backdrop-filter:blur(8px)}
.pet-collection-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.pet-collection-grid article{padding:0;overflow:hidden;border-radius:19px;background:linear-gradient(155deg,#30294d,#17162c)}.pet-card-button{width:100%;padding:9px;display:grid;gap:7px;border:0;color:inherit;background:transparent;cursor:zoom-in;text-align:left}.pet-card-button:disabled{cursor:default}.pet-orb{position:relative;width:100%;height:auto;aspect-ratio:4/3;overflow:hidden;border-radius:14px;background:radial-gradient(circle at 50% 42%,#5f508f,#15142c 73%)}.pet-orb img{border-radius:14px;object-fit:cover}.pet-collection-grid article.current .pet-orb:after,.pet-collection-grid article.complete .pet-orb:after{position:absolute;inset:0;border-radius:inherit;background:linear-gradient(180deg,transparent 65%,#09091ab8);content:""}.pet-collection-grid strong{padding:0 3px;font-size:13px}.pet-collection-grid small{padding:0 3px 4px;min-height:32px;font-size:10px}.pet-collection-grid article.locked{opacity:1;filter:none}.pet-collection-grid article.locked .pet-orb{color:#a9a2c3;background:radial-gradient(circle at 50% 42%,#5a4f7d55,transparent 28%),radial-gradient(circle at 20% 24%,#ffeaa3 0 1px,transparent 2px),radial-gradient(circle at 74% 31%,#d7c4ff 0 1px,transparent 2px),linear-gradient(145deg,#25213f,#101020);background-size:auto,37px 37px,51px 51px,auto}.pet-mist-stars{position:absolute;inset:18% 0 auto;text-align:center;color:#e6d6ff;font-size:17px;letter-spacing:8px;text-shadow:0 0 13px #b99bff}.pet-collection-grid article.locked .pet-orb>svg{position:absolute;left:50%;top:62%;transform:translate(-50%,-50%)}
.pet-journey-backdrop{position:fixed;z-index:1000;inset:0;padding:18px;display:grid;place-items:center;background:#050511dc;backdrop-filter:blur(12px)}.pet-journey-modal{width:min(760px,100%);max-height:calc(100dvh - 36px);padding:16px;overflow:auto;border:1px solid #8b79bd;border-radius:27px;color:#f8f4ff;background:radial-gradient(circle at 80% 0,#5e438940,transparent 34%),#111126;box-shadow:0 28px 90px #000b}.pet-journey-modal header{margin-bottom:12px;display:flex;align-items:center;justify-content:space-between}.pet-journey-modal header>div{display:grid;gap:2px}.pet-journey-modal header small{color:#cdbcf4;font-size:11px;font-weight:850}.pet-journey-modal header strong{font-size:22px}.pet-journey-modal header button{width:44px;height:44px;display:grid;place-items:center;border:1px solid #ffffff26;border-radius:50%;color:white;background:#ffffff0e;cursor:pointer}.pet-journey-stage{position:relative;touch-action:pan-y}.pet-journey-modal .starpet-scene{height:min(55vh,500px);min-height:320px}.pet-journey-caption{padding:16px 4px 10px;display:grid;gap:4px;text-align:center}.pet-journey-caption span{color:#ffe27c;font-size:11px;font-weight:900}.pet-journey-caption strong{font-size:19px}.pet-journey-caption small{color:#aaa4c5;font-size:11px}.pet-journey-modal nav{display:grid;grid-template-columns:auto minmax(70px,1fr) auto;align-items:center;gap:12px}.pet-journey-modal nav button{min-height:42px;padding:0 12px;display:flex;align-items:center;gap:4px;border:1px solid #ffffff22;border-radius:13px;color:#f4eeff;background:#ffffff0d;font-weight:850;cursor:pointer}.pet-journey-modal nav button:disabled{opacity:.3;cursor:default}.pet-journey-progress{height:7px;overflow:hidden;border-radius:99px;background:#ffffff17}.pet-journey-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#ffe27a,#b89cff)}
@media(max-width:760px){.pet-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pet-journey-backdrop{padding:8px}.pet-journey-modal{padding:11px;border-radius:21px}.pet-journey-modal .starpet-scene{height:48vh;min-height:260px}.starpet-expand-hint{font-size:9px}}
.pet-modal-open{overflow:hidden}.starpet-scene.story-sprite{background:#090b25}.starpet-story-frame{position:absolute;inset:0;background-repeat:no-repeat;background-size:500% 200%;image-rendering:auto}.starpet-scene.story-sprite .starpet-scene-shade{background:linear-gradient(180deg,#08091b05,transparent 72%,#08091b20)}
.starpet-scene.individual-story{isolation:isolate;background:#0b1022;box-shadow:inset 0 0 42px #07170fbf}
.starpet-scene.individual-story>img{width:100%;height:100%;object-position:center;transform:none!important}
.starpet-scene.individual-story>.starpet-ambient{z-index:0;object-fit:cover;filter:blur(15px) brightness(.48) saturate(.9);transform:scale(1.09)!important}
.starpet-scene.individual-story>.starpet-focus{z-index:1;object-fit:contain;filter:drop-shadow(0 12px 24px #0009)}
.starpet-scene.garden-window:after{position:absolute;z-index:4;inset:0;left:50%;width:min(72%,460px);transform:translateX(-50%);background:url('/starpet-window-frame.png') center/100% 100% no-repeat;filter:drop-shadow(0 10px 18px #000b);pointer-events:none;content:""}
.starpet-scene.garden-window:not(.pet-journey-modal *)>.starpet-focus,.starpet-scene.garden-window:not(.pet-journey-modal *)>.starpet-ambient{left:50%;width:min(70%,448px);border-radius:48% 48% 2% 2% / 18% 18% 2% 2%;transform:translateX(-50%)!important}
.starpet-scene.garden-window:not(.pet-journey-modal *)>.starpet-ambient{display:none}
.starpet-scene.individual-story .starpet-scene-shade{z-index:2;background:radial-gradient(ellipse at center,transparent 48%,#07110c70 100%)}
.pet-journey-modal .starpet-scene.individual-story{width:min(100%,430px);height:auto;min-height:0;aspect-ratio:16/27;margin-inline:auto}
.pet-journey-modal .starpet-scene.garden-window:after{display:none}
.pet-journey-modal .starpet-scene.garden-window>.starpet-focus,.pet-journey-modal .starpet-scene.garden-window>.starpet-ambient{left:0;width:100%;border-radius:0;transform:none!important}
.pet-stage-arrow{position:absolute;z-index:7;top:50%;width:46px;height:64px;display:grid;place-items:center;transform:translateY(-50%);border:1px solid #ffffff35;color:#fff;background:#1111288f;backdrop-filter:blur(9px);box-shadow:0 7px 18px #0005;cursor:pointer}.pet-stage-arrow.previous{left:5px;border-radius:0 20px 20px 0}.pet-stage-arrow.next{right:5px;border-radius:20px 0 0 20px}.pet-stage-arrow:disabled{opacity:0;pointer-events:none}.pet-stage-arrow svg{width:28px;height:28px}
.pet-orb img.stage-thumb{object-fit:contain;object-position:center;background:radial-gradient(circle at 50% 55%,#35433c,#11152b 72%)}
.collection-chosen-star{width:100%;height:100%;display:grid;place-items:center;font-size:54px;background:radial-gradient(circle,#56447e,#13132e 70%);text-shadow:0 0 17px currentColor}.collection-chosen-star.gold{color:#ffe47a}.collection-chosen-star.violet{color:#d5b9ff}.collection-chosen-star.mint{color:#9ff5dc}
.pet-collection-grid article.locked .pet-orb{background:radial-gradient(circle at 50% 58%,#b69aff22 0 15%,transparent 36%),radial-gradient(circle at 22% 24%,#ffe9a8 0 1px,transparent 2px),radial-gradient(circle at 76% 34%,#d4c4ff 0 2px,transparent 3px),linear-gradient(145deg,#282044,#09091c);background-size:auto,29px 37px,47px 53px,auto;box-shadow:inset 0 0 28px #9d7cff25}.pet-collection-grid article.locked .pet-orb:before{position:absolute;left:50%;top:55%;width:58px;height:42px;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle at 34% 48%,#ffe8a8 0 3px,transparent 4px),radial-gradient(circle at 66% 48%,#ffe8a8 0 3px,transparent 4px),#bda5ff12;filter:blur(.2px);content:""}.pet-collection-grid article.locked .pet-orb>svg{display:none}.pet-collection-grid article.locked .pet-mist-stars{top:13%;text-shadow:0 0 18px #d4bdff}
.pet-collection-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.pet-collection-grid article{position:relative;border:1px solid #8d79bd55;background:linear-gradient(160deg,#171b3e,#0a0c27 72%);box-shadow:inset 0 0 24px #9d81ff0c}.pet-card-button{padding:8px;justify-items:center;text-align:center}.pet-orb{aspect-ratio:1;border-radius:22px;background:radial-gradient(circle at 50% 48%,#4a4b7b,#12152f 72%)}.pet-orb img,.pet-orb img.stage-thumb{border-radius:20px;object-fit:contain;object-position:center}.pet-collection-grid article.current{border-color:#7eead4;box-shadow:0 0 0 1px #7eead477,inset 0 0 23px #3ce5c819}.pet-collection-grid article.complete{border-color:#e8c87588}.pet-growth-ring{position:absolute;inset:4px;border-radius:20px;background:conic-gradient(#72f0d6 var(--growth),transparent 0);opacity:.9;pointer-events:none;mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);padding:3px;mask-composite:exclude}.pet-card-number{position:absolute;left:7px;top:7px;z-index:4;padding:3px 6px;border-radius:99px;color:#fff7cd;background:#0b0d27d9;font-size:9px;font-weight:900}.pet-collection-grid article.locked{border-color:#76629f55;background:linear-gradient(155deg,#171331,#09091c)}.pet-collection-grid article.locked .pet-orb{border-radius:50%;background:radial-gradient(circle at 50% 52%,#ffe8a822 0 4%,#9a7fe72b 24%,transparent 48%),radial-gradient(circle at 25% 25%,#ffe8a8 0 1px,transparent 2px),radial-gradient(circle at 72% 34%,#d4c4ff 0 2px,transparent 3px),linear-gradient(145deg,#282044,#09091c);background-size:auto,23px 29px,37px 43px,auto;box-shadow:inset 0 0 24px #b99aff38,0 0 15px #7b5dcc22}.pet-collection-grid article.locked .pet-orb:after{position:absolute;left:50%;top:53%;transform:translate(-50%,-50%);color:#fff2bd;font-size:25px;font-weight:900;text-shadow:0 0 14px #ffe49b;content:'?'}
@media(max-width:760px){.pet-collection-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.pet-collection-grid strong{font-size:11px}.pet-collection-grid small{font-size:8px;line-height:1.35}.starpet-scene.garden-window:after{width:76%}}

/* Clear naming step when the animal first arrives. */
.pet-name-button{width:max-content;margin-top:4px;padding:5px 9px;border:1px solid #ffe18a66;border-radius:999px;color:#ffe99e;background:#ffe27a12;font-size:10px;font-weight:900;cursor:pointer}
.pet-name-backdrop{position:fixed;z-index:1100;inset:0;padding:18px;display:grid;place-items:center;background:#050511e8;backdrop-filter:blur(12px)}
.pet-name-modal{width:min(430px,100%);padding:30px 22px 22px;display:grid;justify-items:center;gap:10px;border:1px solid #a58be0;border-radius:28px;color:#f9f4ff;background:radial-gradient(circle at 50% 0,#7456b552,transparent 42%),#111126;box-shadow:0 28px 90px #000c;text-align:center}
.pet-name-modal>span{font-size:48px;color:#ffe27a;text-shadow:0 0 24px #ffe27a}.pet-name-modal small{color:#d2c0ff;font-weight:900}.pet-name-modal h2{margin:0;font-size:24px}.pet-name-modal p{margin:0;color:#aaa4c5;font-size:13px}.pet-name-modal input{width:100%;margin-top:8px;padding:14px 16px;border:1px solid #ffffff30;border-radius:15px;outline:0;color:white;background:#ffffff0d;font:inherit;font-size:17px;text-align:center}.pet-name-modal input:focus{border-color:#ffe27a;box-shadow:0 0 0 3px #ffe27a1f}.pet-name-modal>div{width:100%;display:grid;grid-template-columns:.7fr 1.3fr;gap:8px}.pet-name-modal button{min-height:46px;border:1px solid #ffffff24;border-radius:14px;color:#eee8ff;background:#ffffff0d;font-weight:900;cursor:pointer}.pet-name-modal button[type=submit]{border-color:#ffe27a;color:#2b2413;background:#ffe27a}.pet-name-modal button:disabled{opacity:.4;cursor:default}

/* Put help in the heading whitespace, not below the Hanja cards. */
.today-first-heading>div{position:relative}.daily-study-help.daily-study-help-top{position:absolute;top:0;right:-50px;margin:0}.daily-study-help.daily-study-help-top>div{position:fixed}
@media(max-width:760px){.daily-study-help.daily-study-help-top{right:0}.today-first-heading>div{padding-right:44px!important}.starpet-scene.garden-window:not(.pet-journey-modal *)>.starpet-focus{width:74%}}

/* Collection cards: show the full current subject and make locked cards feel precious. */
.pet-collection-grid article.current .pet-orb img,.pet-collection-grid article.complete .pet-orb img{padding:5px;object-fit:contain!important;background:radial-gradient(circle at 50% 55%,#243d43,#0c1027 76%)}
.pet-collection-grid article.locked{border-color:#c79b467d;background:linear-gradient(150deg,#35240f,#0b0c22 66%);box-shadow:inset 0 0 0 2px #f3c96724,inset 0 0 22px #e7af4320,0 6px 18px #05051155}
.pet-collection-grid article.locked .pet-orb{border:1px solid #e9bf5d80;box-shadow:inset 0 0 24px #b99aff38,0 0 0 3px #d6a64118,0 0 18px #d6a64136}
.pet-collection-grid article.locked .pet-card-number{color:#ffe9a5;border:1px solid #e6bd6155;background:#171126e8}

/* === 2026-09-19 UI 수정 === */
.starpet-celebration .celebration-message{transform:translateY(12px);animation-name:celebration-message-in-static}
@keyframes celebration-message-in-static{to{opacity:1;transform:none}}
.starpet-scene.garden-window:after{display:none!important}
.starpet-scene.compact{min-height:300px}
.garden-frame{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);height:min(96%,560px);aspect-ratio:1024/1536;z-index:3}
.garden-frame:after{content:"";position:absolute;inset:0;z-index:4;background:url('/starpet-window-frame.png') center/100% 100% no-repeat;filter:drop-shadow(0 10px 18px #000b);pointer-events:none}
.garden-frame>.starpet-focus{position:absolute;left:18.1%;top:9.8%;width:63.9%;height:84.2%;object-fit:cover;border-radius:50% 50% 3% 3% / 22% 22% 3% 3%;filter:none;transform:none!important}
.pet-journey-modal .garden-frame{left:0;top:0;transform:none;width:100%;height:100%;aspect-ratio:auto}
.pet-journey-modal .garden-frame:after{display:none}
.pet-journey-modal .garden-frame>.starpet-focus{left:0;top:0;width:100%;height:100%;object-fit:contain;border-radius:0}
.study-scene-hanja{container-type:inline-size}
.study-scene-hanja strong{width:min(78cqw,250px);height:auto;aspect-ratio:1/1;border-radius:14%;font-size:min(56cqw,180px)}
.study-scene-hanja span{font-size:min(15cqw,42px)}

/* === 2026-09-19 UI 수정 v2 (별 색·모달 창틀·좌우 배치) === */
.star-tint{position:absolute;z-index:2;width:32%;aspect-ratio:1/1;transform:translate(-50%,-50%);border-radius:50%;pointer-events:none;mix-blend-mode:color;background:radial-gradient(circle,var(--tint) 0 34%,transparent 70%)}
.star-tint.stage-1{left:50.8%;top:33.7%}
.star-tint.stage-2{left:51.1%;top:63.4%}
.star-tint.stage-3{left:50.9%;top:62.9%}
.star-tint.stage-4{left:48.6%;top:33.6%}
.star-tint.gold{display:none}
.star-tint.violet{--tint:#b47cff}
.star-tint.mint{--tint:#3fe0bd}
.pet-journey-modal{display:grid;grid-template-columns:minmax(0,55%) minmax(0,1fr);grid-template-areas:"mh mh" "mstage mcap" "mnav mnav";column-gap:20px}
.pet-journey-modal header{grid-area:mh}
.pet-journey-stage{grid-area:mstage}
.pet-journey-caption{grid-area:mcap;align-self:center;padding:0 6px;text-align:left;gap:9px}
.pet-journey-caption strong{font-size:25px;line-height:1.35}
.pet-journey-caption span{font-size:12px}
.pet-journey-caption small{font-size:12px}
.pet-journey-modal nav{grid-area:mnav}
.pet-journey-modal .starpet-scene{height:min(58vh,470px);min-height:340px}
.pet-journey-modal .garden-frame{left:50%;top:50%;transform:translate(-50%,-50%);width:auto;height:124%;aspect-ratio:1024/1536}
.pet-journey-modal .garden-frame:after{display:block}
.pet-journey-modal .garden-frame>.starpet-focus{left:18.1%;top:9.8%;width:63.9%;height:84.2%;object-fit:cover;border-radius:50% 50% 3% 3% / 22% 22% 3% 3%}
@media (max-width:767px){.pet-journey-modal{display:block}.pet-journey-caption{padding:14px 4px 8px;text-align:center}.pet-journey-caption strong{font-size:19px}}
.village-progress.starpet-progress.compact{display:grid;grid-template-columns:minmax(0,45%) minmax(0,1fr);grid-auto-rows:min-content;column-gap:18px;align-content:center;align-items:start}
.starpet-progress.compact .starpet-swipe{grid-column:1;grid-row:1/6}
.starpet-progress.compact .starpet-head{grid-column:2;margin:8px 0 2px;flex-direction:column;align-items:flex-start;gap:7px}
.starpet-progress.compact .starpet-head strong{font-size:17px}
.starpet-progress.compact .starpet-story{grid-column:2;margin-top:4px}
.starpet-progress.compact .star-choice{grid-column:2;margin-top:10px}
.starpet-progress.compact .starpet-swipe-help{grid-column:2;text-align:left}
@media (max-width:767px){.village-progress.starpet-progress.compact{display:block}}

/* === 2026-09-19 UI 수정 v3 (모달: 사진 원본 폭 보이기) === */
.pet-journey-modal .garden-frame{left:50%;top:50%;transform:translate(-50%,-50%);width:132%;height:auto;aspect-ratio:1024/1536}
.pet-journey-modal .garden-frame>.starpet-focus{left:16.6%;width:66.8%;top:50%;height:auto;aspect-ratio:384/512;transform:translateY(-50%)!important;object-fit:cover;clip-path:inset(1.8% 1.8% 1.8% 1.8% round 12px)}
.pet-journey-modal .star-tint{width:24%}
.pet-journey-modal .star-tint.stage-1{left:50.6%;top:37.7%}
.pet-journey-modal .star-tint.stage-2{left:50.8%;top:57.8%}
.pet-journey-modal .star-tint.stage-3{left:50.5%;top:57.4%}
.pet-journey-modal .star-tint.stage-4{left:49.1%;top:37.7%}
@media (min-width:600px) and (max-width:767px){.pet-journey-modal{display:grid}.pet-journey-caption{padding:0 6px;text-align:left}.pet-journey-caption strong{font-size:25px}}
/* === 2026-09-19 UI 수정 v4 (모달 사진 위아래 복원·얇은 커튼·홈 좌우배치·도감 2열) === */
.pet-journey-modal{grid-template-columns:minmax(0,50%) minmax(0,1fr)}
.pet-journey-modal .starpet-scene{width:100%;height:auto;aspect-ratio:100/126;min-height:0}
.pet-journey-modal .garden-frame{width:140%;height:auto;aspect-ratio:1024/1536}
.pet-journey-modal .garden-frame>.starpet-focus{left:17.5%;width:65%;top:50%;height:auto;aspect-ratio:384/512;transform:translateY(-50%)!important;object-fit:cover;clip-path:inset(1.8% 1.8% 1.8% 1.8% round 12px)}
@media (min-width:600px) and (max-width:767px){.village-progress.starpet-progress.compact{display:grid}}
/* === 2026-09-19 UI 수정 v5 (모달 사진 상하 꽉 채움) === */
.pet-journey-modal .garden-frame>.starpet-focus{left:16.25%;width:67.5%;top:50%;height:auto;aspect-ratio:384/512;transform:translateY(-50%)!important;object-fit:cover;clip-path:inset(1.2% 1.8% 1.2% 1.8% round 12px)}
/* === 2026-09-19 UI 수정 v6 (친구 정원 2열) === */
.member-tree-grid{grid-template-columns:repeat(2,1fr)}
@media (max-width:559px){.member-tree-grid{grid-template-columns:1fr}}

/* === 2026-09-19 UI 수정 v7 (확대화면 창틀 제거, 원본 전체 표시) === */
.pet-journey-modal .starpet-scene{width:100%;height:auto;aspect-ratio:3/4;min-height:0}
.pet-journey-modal .garden-frame{left:0;top:0;transform:none;width:100%;height:100%;aspect-ratio:auto}
.pet-journey-modal .garden-frame:after{display:none}
.pet-journey-modal .garden-frame>.starpet-focus{left:0;top:0;width:100%;height:100%;aspect-ratio:auto;transform:none!important;object-fit:cover;clip-path:inset(1.2% 1.2% 1.2% 1.2% round 14px)}
.pet-journey-modal .individual-story .garden-frame>.starpet-focus{object-fit:contain;clip-path:none}
.pet-journey-modal .star-tint{width:30%}
.pet-journey-modal .star-tint.stage-1{left:50.8%;top:28.4%}
.pet-journey-modal .star-tint.stage-2{left:51.1%;top:63.7%}
.pet-journey-modal .star-tint.stage-3{left:50.7%;top:63.1%}
.pet-journey-modal .star-tint.stage-4{left:48.5%;top:28.3%}
/* === 2026-09-19 UI 수정 v8 (모달 최대 크기·모서리) === */
.pet-journey-modal{grid-template-columns:minmax(0,min(70%,calc((100dvh - 200px)*0.75))) minmax(0,1fr)}
.pet-journey-modal .garden-frame>.starpet-focus{border-radius:14px}

/* === 2026-09-19 UI 수정 v9 (홈 카드 사진 확대·keep-all·친구카드 세로배치) === */
.village-progress.starpet-progress.compact{grid-template-columns:minmax(0,56%) minmax(0,1fr);column-gap:16px}
.starpet-scene.compact{min-height:340px}
.pet-journey-caption,.starpet-story,.starpet-head,.celebration-message{word-break:keep-all}
.member-tree-grid .village-progress.starpet-progress.compact{display:flex;flex-direction:column;gap:8px}
.member-tree-grid .starpet-progress.compact .starpet-swipe{order:-1}
/* === 2026-09-19 UI 수정 v10 (단계그림 제거·물음표 정렬·도감 별 사진) === */
.stage-explorer-art{display:none}
.today-first-date{display:inline-flex}
.daily-study-help.daily-study-help-top{position:static;display:inline-flex;margin:0 0 0 8px;vertical-align:middle}
.daily-study-help.daily-study-help-top>summary{width:28px;height:28px}
.daily-study-help.daily-study-help-top>summary svg{width:15px;height:15px}
.collection-star-photo{position:relative;width:100%;height:100%;border-radius:inherit;overflow:hidden}
.collection-star-photo img{position:absolute;width:175%;height:auto;left:-38%;top:-16%;max-width:none}
.collection-star-photo .star-tint-orb{position:absolute;left:50%;top:50%;width:70%;aspect-ratio:1/1;transform:translate(-50%,-50%);border-radius:50%;mix-blend-mode:color;background:radial-gradient(circle,var(--tint) 0 34%,transparent 70%);pointer-events:none}
.collection-star-photo.gold .star-tint-orb{display:none}
.collection-star-photo.violet{--tint:#b47cff}
.collection-star-photo.mint{--tint:#3fe0bd}

/* === 2026-09-19 UI 수정 v11 (도감: 필터·3열·확대 사진) === */
.collection-filters{margin-top:14px;display:flex;gap:8px;flex-wrap:wrap}
.collection-filters button{padding:8px 20px;border:1.5px solid #d9cda6;border-radius:999px;color:#77704f;background:#fffdf2;font-weight:850;font-size:13px;cursor:pointer}
.collection-filters button.on{border-color:#e0b345;color:#5b480f;background:linear-gradient(150deg,#ffe9a8,#f5d067);box-shadow:0 4px 12px #d9ab3733}
.pet-collection-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.pet-collection-grid.filter-complete article:not(.complete){display:none}
.pet-collection-grid.filter-current article:not(.current){display:none}
.pet-collection-grid.filter-special article:not(.special){display:none}
.pet-collection-grid .pet-orb img:not(.stage-thumb){padding:0;object-fit:cover!important;object-position:50% 16%}
.collection-star-photo.cs-stage-1 img{left:-38.9%;top:-16.3%}
.collection-star-photo.cs-stage-2 img{left:-39.4%;top:-98.6%}
.collection-star-photo.cs-stage-3 img{left:-38.7%;top:-97.2%}
.collection-star-photo.cs-stage-4 img{left:-34.9%;top:-16%}
/* === 2026-09-19 UI 수정 v12 (모바일 로그인 화면 스크롤) === */
@media (max-width:640px){.auth-page{height:100svh;overflow-y:auto;-webkit-overflow-scrolling:touch}}
/* === 2026-09-19 UI 수정 v13 (3일차 빛 애니메이션) === */
.soil-glow{position:absolute;z-index:3;left:51.1%;top:63.4%;width:34%;aspect-ratio:1/1;border-radius:50%;pointer-events:none;mix-blend-mode:screen;background:radial-gradient(circle,#ffeab0d9 0 16%,#ffd97633 46%,transparent 70%);animation:soil-glow-move 2.4s ease-in-out infinite alternate}
@keyframes soil-glow-move{0%{opacity:.45;transform:translate(-58%,-45%) scale(.85)}100%{opacity:1;transform:translate(-42%,-55%) scale(1.15)}}
.pet-journey-modal .soil-glow{left:51.1%;top:63.7%;width:30%}

/* === 2026-09-19 UI 수정 v14 (일별 그림·완료화면 별고르기) === */
.pet-journey-modal .starpet-scene.phase-tree{aspect-ratio:3/5}
.pet-journey-modal:has(.phase-tree){grid-template-columns:minmax(0,min(70%,calc((100dvh - 200px)*0.6))) minmax(0,1fr)}
.star-tint.d-1{left:58.9%;top:27.1%}
.star-tint.d-2{left:53.1%;top:63.8%}
.star-tint.d-3{left:54.6%;top:56.3%}
.pet-journey-modal .star-tint.d-1{left:61.7%;top:20.6%}
.pet-journey-modal .star-tint.d-2{left:54%;top:64.1%}
.pet-journey-modal .star-tint.d-3{left:56%;top:55.2%}
.celebration-star-choice{position:relative;z-index:8;width:min(530px,92vw);margin:12px auto 0}

/* === 2026-09-20 UI 수정 v15 (HD 판다·별색 오버레이) === */
.garden-frame .star-overlay{position:absolute;left:18.1%;top:9.8%;width:63.9%;height:84.2%;object-fit:fill;mix-blend-mode:screen;pointer-events:none;z-index:3;border-radius:50% 50% 3% 3%/22% 22% 3% 3%}
.pet-journey-modal .garden-frame .star-overlay{left:0;top:0;width:100%;height:100%;border-radius:14px}
.pet-journey-modal .starpet-scene.individual-story{aspect-ratio:3/5}
.pet-journey-modal:has(.individual-story){grid-template-columns:minmax(0,min(70%,calc((100dvh - 200px)*0.6))) minmax(0,1fr)}

/* === 2026-09-20 UI 수정 v16 (HD 별 위치 색입히기) === */
.star-tint{width:26%}
.star-tint.d-1{left:44.8%;top:52.9%}
.star-tint.d-2{left:44.5%;top:62.9%}
.star-tint.d-3{left:39.4%;top:55.7%;width:34%}
.star-tint.d-9{left:52.8%;top:51.2%;width:30%}
.star-tint.d-10{left:54%;top:53.6%;width:30%}
.pet-journey-modal .star-tint{width:24%}
.pet-journey-modal .star-tint.d-1{left:43.1%;top:51.2%}
.pet-journey-modal .star-tint.d-2{left:42.7%;top:63.1%}
.pet-journey-modal .star-tint.d-3{left:36%;top:54.5%;width:32%}
.pet-journey-modal .star-tint.d-9{left:53.6%;top:49.2%;width:28%}
.pet-journey-modal .star-tint.d-10{left:55.2%;top:52%;width:28%}

/* === 2026-09-20 UI 수정 v17 (별색 마스크 시스템) === */
.star-mask{position:absolute;left:18.1%;top:9.8%;width:63.9%;height:84.2%;pointer-events:none;z-index:3;background:var(--star-color);mask-image:var(--mask);mask-size:auto 100%;mask-position:center;mask-repeat:no-repeat;mask-mode:luminance;border-radius:50% 50% 3% 3%/22% 22% 3% 3%}
.star-mask-hue{mix-blend-mode:color;opacity:.95}
.star-mask-glow{mix-blend-mode:screen;opacity:.38;filter:blur(1.5px)}
.pet-journey-modal .star-mask{left:0;top:0;width:100%;height:100%;mask-size:100% 100%;border-radius:14px}
/* 별 문양 v1 — 금빛 별 문양 3종 */
.star-choice button img{width:56px;height:56px;object-fit:contain;filter:drop-shadow(0 0 10px #ffd97a55)}
.star-choice button{transition:transform .15s,border-color .15s,box-shadow .15s}
.star-choice button:hover,.star-choice button:active{transform:scale(1.05);border-color:#f4cc72aa;box-shadow:0 0 16px #f4cc7230}
.scene-symbol{position:absolute;left:68.5%;top:12.5%;width:10.5%;aspect-ratio:1/1;z-index:4;pointer-events:none;filter:drop-shadow(0 1px 6px #00000059)}
.scene-symbol img{width:100%;height:100%;object-fit:contain}
.pet-journey-modal .scene-symbol{left:auto;right:3.5%;top:2.5%;width:12%}
.collection-star-photo img.collection-symbol-badge{position:absolute;left:auto;right:5%;top:auto;bottom:5%;width:36%;height:auto;max-width:none;object-fit:contain;filter:drop-shadow(0 0 6px #ffd97a77);z-index:2}

/* 목걸이 문양 v1 — 고른 별을 동물 목걸이 자리에 겹침 */
.pendant-clip{position:absolute;left:18.1%;top:9.8%;width:63.9%;height:84.2%;overflow:hidden;border-radius:50% 50% 3% 3%/22% 22% 3% 3%;z-index:3;pointer-events:none}
.pendant-layer{position:absolute;top:0;height:100%;left:50%;transform:translateX(-50%);aspect-ratio:922/1536}
.pendant-symbol{position:absolute;transform:translate(-50%,-50%);aspect-ratio:1/1;height:auto;object-fit:contain;filter:drop-shadow(0 1px 4px #0006)}
.pet-journey-modal .pendant-clip{left:0;top:0;width:100%;height:100%;border-radius:14px}

/* 목걸이 문양 v2 — 모달은 contain(가로 기준)이라 레이어도 가로 기준으로 */
.pet-journey-modal .pendant-layer{left:0;top:50%;width:100%;height:auto;transform:translateY(-50%)}

/* === 2026-09-21 하루 완료 축하 화면 정리 ===
   - 절대배치를 세로 흐름으로 바꿔 아래 여백 제거
   - 그림을 크게
   - 상단 별 장식 제거, 한자 칩을 그림 위에 겹치지 않게 */
.starpet-celebration{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:10px!important;overflow-y:auto!important;padding:max(66px,calc(env(safe-area-inset-top) + 58px)) 14px max(16px,env(safe-area-inset-bottom))!important}
.starpet-celebration::before{display:none!important}
.starpet-celebration .celebration-characters{position:static!important;top:auto!important;left:auto!important;transform:none!important;gap:7px!important}
.starpet-celebration .celebration-characters span{width:46px!important;height:52px!important;font-size:30px!important;border:1px solid #ffffff30!important;border-radius:13px!important;background:#ffffff0f!important;box-shadow:none!important}
.starpet-celebration>.starpet-scene{position:static!important;width:min(100%,430px)!important;height:auto!important;min-height:0!important;aspect-ratio:1024/1536!important;max-height:64vh!important;margin:0 auto!important}
.starpet-celebration .celebration-message{position:static!important;left:auto!important;bottom:auto!important;width:min(530px,92vw)!important;margin-top:2px!important}
.starpet-celebration .celebration-message strong{font-size:clamp(20px,4.8vw,30px)!important}
.starpet-celebration .celebration-message small{margin-top:5px!important;font-size:14px!important}
.starpet-celebration .celebration-star-choice{position:static!important;left:auto!important;bottom:auto!important;transform:none!important}
.starpet-celebration .celebration-light-path{display:none!important}
@media(max-width:760px){
  .starpet-celebration>.starpet-scene{max-height:60vh!important}
  .starpet-celebration .celebration-characters span{width:42px!important;height:48px!important;font-size:27px!important}
}

/* === 2026-09-21 정원 카드 통일 (내 카드 · 친구 카드 동일 구조) — 모바일 ===
   순서: 제목줄(왼쪽 제목 / 오른쪽 완성 칩) → 그림(크게) → 오늘 이야기 카드(전체 너비) → 안내문(가운데) */
@media (max-width:767px){
  .village-progress.starpet-progress,.member-tree-grid .village-progress.starpet-progress.compact{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;padding:16px!important}
  .starpet-progress>*{align-self:stretch!important;width:100%!important;max-width:none!important}
  .starpet-progress .starpet-head{order:1!important;margin:0!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:10px!important}
  .starpet-progress .starpet-head>div{display:grid!important;gap:2px!important;min-width:0!important;flex:1 1 auto!important;width:auto!important}
  .starpet-progress .starpet-head small{font-size:10px!important;letter-spacing:.06em!important;color:#d9c8ff!important}
  .starpet-progress .starpet-head strong{font-size:19px!important;line-height:1.2!important}
  .starpet-progress .starpet-head>span{flex:none!important;width:auto!important;padding:7px 11px!important;font-size:11px!important;white-space:nowrap!important}
  .starpet-progress .starpet-swipe{order:2!important;margin:0!important}
  /* 그림: 내 카드·친구 카드 모두 같은 크기로 크게 (가로 4 : 세로 5) */
  .starpet-progress .starpet-scene{height:auto!important;min-height:0!important;aspect-ratio:4/5!important;max-height:62vh!important}
  .starpet-progress .starpet-story{order:3!important;margin:0!important;padding:12px!important;display:flex!important;align-items:center!important;gap:10px!important}
  .starpet-progress .starpet-story>svg{flex:none!important;width:18px!important;height:18px!important}
  .starpet-progress .starpet-story>div{display:grid!important;gap:3px!important;min-width:0!important;width:auto!important}
  .starpet-progress .starpet-story small{font-size:10px!important;color:#c9c0e7!important}
  .starpet-progress .starpet-story strong{font-size:15px!important;line-height:1.3!important}
  .starpet-progress .pet-name-button{margin-top:6px!important;width:max-content!important}
  .starpet-progress .star-choice{order:4!important;margin:0!important}
  .starpet-progress .starpet-swipe-help{order:5!important;margin:0!important;font-size:10px!important;color:#9f98bf!important;text-align:center!important}
}

/* === 2026-09-21 특별 친구 소녀형/소년형 선택 === */
.collection-filters.special-style{margin-top:6px}.collection-filters.special-style>span{align-self:center;margin-right:4px;font-size:11px;font-weight:900;color:#b9b2cc}

.collection-filters.special-style>span.special-look-label{margin-left:8px}

/* === 2026-09-21 남색 테마 · 로고 · 도감 필터 정리 === */
:root{--ink:#232552;--ink-soft:#575a84;--mint:#5f5aa8;--shadow:0 18px 60px rgba(35,37,82,.10)}
.brand-mark{background:linear-gradient(145deg,#4a4a8c,#232552)}
.brand .brand-mark{position:relative;overflow:hidden;border-radius:11px;background:#232552 url('/icons/icon-192.png?v=5') center/100% 100% no-repeat}
.brand .brand-mark>*{visibility:hidden}
.starpet-book .collection-filters{gap:6px}
.starpet-book .collection-filters button{min-height:0;padding:6px 12px;border-width:1px;font-size:12px;font-weight:800}
.starpet-book .collection-filters button.on{box-shadow:none}
.collection-filters.special-style>span{font-size:10px}

/* 프로필 그림 배지 */
.badge-img{display:block;width:100%;height:100%;object-fit:contain;border-radius:inherit}
.profile-account-button>span{display:inline-block;width:30px;height:30px;vertical-align:middle;flex:0 0 auto}
.profile-family-heading>span:has(.badge-img),.profile-badge-picker i:has(.badge-img),.group-role-person>span:has(.badge-img),.illustrated-member-badge:has(.badge-img){background:none!important;border:0!important;box-shadow:none!important;padding:0}

/* 내 정원 공개 여부 */
.group-garden-visibility{margin:10px 0;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #d8c979;border-radius:14px;background:linear-gradient(135deg,#fff9d9,#f1edff)}
.group-garden-visibility strong{display:block;color:#352d63;font-size:13px}
.group-garden-visibility small{color:#746f82;font-size:10px}
.group-garden-visibility button{flex:0 0 auto;min-height:38px;padding:7px 13px;display:flex;align-items:center;gap:6px;border:1px solid #d4ccba;border-radius:11px;color:#4a4560;background:white;cursor:pointer;font-weight:900}

/* 상단바와 그 안의 프로필 팝업을 본문 위로 */
.topbar{z-index:90}
.stat-help[open]:before{z-index:95}
.stat-help>div{z-index:96}

/* 친구 정원: 도감을 뺀 뒤 한 단으로 */
.friend-village-overlay>main{grid-template-columns:minmax(0,1fr);width:min(620px,calc(100% - 30px))}

/* === 2026-09-23 친구 정원 크게 보기: 창틀 없이 그림 전체 === */
.friend-village-overlay .starpet-scene{height:auto!important;min-height:0!important;aspect-ratio:3/5!important;max-height:64vh!important}
.friend-village-overlay .garden-frame{left:0;top:0;transform:none;width:100%;height:100%;aspect-ratio:auto}
.friend-village-overlay .garden-frame:after{display:none}
.friend-village-overlay .garden-frame>.starpet-focus{left:0;top:0;width:100%;height:100%;aspect-ratio:auto;transform:none!important;object-fit:contain;clip-path:none;border-radius:14px}
.friend-village-overlay .garden-frame .star-overlay{left:0;top:0;width:100%;height:100%;border-radius:14px}

/* === 2026-09-23 정원 카드: "눌러서 크게 보기"를 글씨 아래로 === */
.starpet-expand-hint-text{margin:0;color:#ffe9a5;font-size:11px;font-weight:800;text-align:center}
.starpet-progress .starpet-expand-hint-text{order:5!important;margin:0!important;font-size:11px!important;color:#ffe9a5!important;text-align:center!important}
.starpet-progress .starpet-swipe-help{order:6!important}
.starpet-progress.compact .starpet-expand-hint-text{grid-column:2}

/* === 2026-09-23 앱 안 사용 설명서 === */
.help-modal{position:relative;width:min(560px,calc(100% - 26px));max-height:86vh;overflow-y:auto;padding:22px 20px 24px;border:1px solid #514a78;border-radius:24px;background:linear-gradient(155deg,#15152c,#20213a);color:#f7f2ff;box-shadow:0 22px 52px #0808164d}
.help-head{display:flex;align-items:center;gap:12px;margin:0 34px 16px 0}
.help-head h2{margin:0;font-size:19px}
.help-head p{margin:3px 0 0;font-size:12px;color:#c9c0e7}
.help-emoji{flex:none;width:38px;height:38px;display:grid;place-items:center;border-radius:13px;background:#ffffff12;font-size:19px;line-height:1}
.help-topic-list{display:grid;gap:8px}
.help-topic{display:flex;align-items:center;gap:11px;width:100%;padding:12px;border:1px solid #ffffff1c;border-radius:15px;background:#ffffff0b;color:inherit;text-align:left;cursor:pointer}
.help-topic:hover{border-color:#ffe18a66;background:#ffffff14}
.help-topic>div{flex:1 1 auto;min-width:0;display:grid;gap:2px}
.help-topic strong{font-size:14px}
.help-topic small{font-size:11px;color:#b6acd6;word-break:keep-all}
.help-topic>svg{flex:none;color:#b6acd6}
.help-back{margin:0 0 12px;padding:6px 11px;border:1px solid #ffffff22;border-radius:999px;background:#ffffff0d;color:#dcd2ff;font-size:12px;cursor:pointer}
.help-steps{margin:0;padding:0 0 0 2px;list-style:none;counter-reset:helpstep;display:grid;gap:10px}
.help-steps li{position:relative;counter-increment:helpstep;padding:11px 12px 11px 42px;border:1px solid #ffffff16;border-radius:14px;background:#ffffff09}
.help-steps li:before{position:absolute;left:12px;top:11px;width:21px;height:21px;display:grid;place-items:center;border-radius:50%;background:#ffe18a;color:#241d10;font-size:11px;font-weight:900;content:counter(helpstep)}
.help-steps strong{display:block;font-size:13px;margin-bottom:3px}
.help-steps p{margin:0;font-size:12px;line-height:1.55;color:#c9c0e7;word-break:keep-all}
.help-note{margin:12px 0 0;padding:10px 12px;border:1px solid #ffe18a3d;border-radius:13px;background:#ffe18a12;color:#ffe9a5;font-size:12px;line-height:1.55;word-break:keep-all}
.help-faq-title{margin:20px 0 9px;font-size:13px;color:#dcd2ff}
.help-faq{display:grid;gap:6px}
.help-faq details{border:1px solid #ffffff16;border-radius:13px;background:#ffffff09;overflow:hidden}
.help-faq summary{padding:11px 12px;font-size:13px;cursor:pointer;list-style:none}
.help-faq summary::-webkit-details-marker{display:none}
.help-faq summary:before{margin-right:7px;color:#ffe18a;font-weight:900;content:"?"}
.help-faq details[open] summary{color:#ffe9a5}
.help-faq p{margin:0;padding:0 12px 12px;font-size:12px;line-height:1.6;color:#c9c0e7;word-break:keep-all}
@media(max-width:760px){.help-modal{padding:18px 15px 20px;max-height:90vh}.help-head h2{font-size:17px}}

/* === 2026-09-23 친구 정원: 사진을 화면 폭에 꽉 차게 === */
.friend-village-overlay>main{width:min(620px,calc(100% - 8px))}
.friend-village-overlay .starpet-progress{padding:9px!important}
.friend-village-overlay .starpet-scene{max-height:none!important}

/* === 2026-09-24 학습 화면 글씨 키우기 === */
/* 그림 아래 설명 (14 -> 17) */
.meaning-connection p{font-size:17px!important;line-height:1.62!important}
/* 카드 제목·부제 */
.note-title h3{font-size:18px!important}
.note-title p{font-size:15px!important;line-height:1.5!important}
/* 실제 활용 예 — 단어·독음·뜻·한자 뜻풀이 */
.compact-word-list .word-heading{white-space:normal!important;flex-wrap:wrap!important;row-gap:2px!important}
.compact-word-list .word-heading strong{font-size:26px!important}
.compact-word-list .word-heading b{font-size:17px!important}
.compact-word-list .word-meaning{font-size:15px!important;line-height:1.45!important}
.meaning-usage-note .compact-word-list .word-hanja-gloss{font-size:13px!important;line-height:1.5!important;padding:7px 9px!important}
.meaning-usage-note .compact-word-list>div{min-height:112px!important;grid-template-columns:minmax(104px,.85fr) minmax(0,1.15fr)!important}
/* 획순 안내 문구 (9 -> 13) */
.stroke-message{font-size:13px!important}
/* 퀴즈 정답 설명 (10 -> 16). 3줄 제한도 풀어 준다 */
.answer-note p{font-size:16px!important;line-height:1.6!important;-webkit-line-clamp:6!important}
.answer-note strong{font-size:17px!important}
.memory-note>p{font-size:16px!important;line-height:1.65!important}
.word-note blockquote{font-size:16px!important;line-height:1.6!important}
.lesson-next-action>span{font-size:14px!important}

/* cheers-compact */
.cheers-section{gap:11px;padding:16px 18px}
.cheers-section .section-heading h2{margin:3px 0 0;font-size:19px}
.cheers-section .section-heading p{margin:3px 0 0;color:#7b8a83;font-size:11px;line-height:1.4}
.cheers-section .notice-editor{padding:10px;gap:7px;border-radius:14px}
.cheers-section .notice-editor textarea{min-height:40px;padding:8px 11px;border-radius:11px;font-size:13px;line-height:1.45}
.cheers-section .notice-editor>div{gap:7px}
.cheers-section .notice-editor>div small{font-size:10px}
.cheers-section .notice-editor .primary-button{min-height:34px;padding:0 13px;font-size:13px}
.cheers-section .notice-list{gap:6px}
.cheers-section .notice-list article{padding:8px 12px;border-radius:12px}
.cheers-section .notice-list article>header strong{font-size:12px}
.cheers-section .notice-list article>header small{font-size:10px;white-space:nowrap}
.cheers-section .notice-list article>header button{width:26px;height:26px;border-radius:8px}
.cheers-section .notice-list article>p{margin:2px 0 0;font-size:13px;line-height:1.45}
@media (max-width:640px){
  .cheers-section{padding:14px}
  .cheers-section .notice-editor .primary-button{min-height:34px}
  .cheers-section .notice-list article>p{font-size:13px}
}

/* today-status */
.today-status-section{gap:11px;padding:16px 18px}
.today-status-section .section-heading h2{margin:3px 0 0;font-size:19px}
.today-status-section .section-heading p{margin:3px 0 0;color:#7b8a83;font-size:11px}
.today-status-list{display:grid;gap:6px}
.today-status-list article{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:8px 12px;border:1px solid #e0e5dc;border-radius:12px;background:white}
.today-status-list article>span.illustrated-member-badge{width:30px;height:30px;padding:0;display:grid;place-items:center;border-radius:50%;overflow:hidden}
.today-status-list article>span.illustrated-member-badge img{width:100%;height:100%;object-fit:contain}
.today-status-list article strong{display:block;font-size:13px}
.today-status-list article small{display:block;color:#8b9791;font-size:10px}
.today-status-count{text-align:right;white-space:nowrap}
.today-status-count b{display:block;font-size:13px}
.today-status-count small{color:#8b9791;font-size:10px}
.today-status-list article.done{border-color:#93c3a2;background:#f2faf4}
.today-status-list article.done .today-status-count b{color:#2f7a48}
.today-status-list article.yet{border-color:#e6b58f;background:#fff7f0}
.today-status-list article.yet .today-status-count b{color:#b5622a}
@media (max-width:640px){
  .today-status-section{padding:14px}
  .today-status-list article{gap:8px;padding:7px 10px}
}

/* family-card-layout */
.today-status-list article>div{min-width:0}
.today-status-list article strong,.today-status-list article>div>small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.child-grid article{grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:7px 10px}
.child-grid article>div:first-child{grid-column:1/-1;display:flex;align-items:baseline;gap:8px}
.child-grid article>div:first-child strong{font-size:16px}
.child-grid article>div:first-child small{color:#8b9791;font-size:11px}
.child-grid article>.child-today{grid-column:1/-1;display:flex;align-items:baseline;gap:8px}
.child-grid article>.child-today b{font-size:15px;white-space:nowrap}
.child-grid article>.child-today small{color:#746d84;font-size:11px}
.child-grid article>p{display:flex;align-items:baseline;gap:4px;min-width:0;font-size:11px;line-height:1.35}
.child-grid article>p>b{font-size:14px}
.child-grid article>button{margin-top:3px}

/* behind-chip */
.today-status-list article>div>small{display:flex;align-items:center;gap:5px;white-space:nowrap;overflow:hidden}
.behind-chip{flex:none;padding:1px 6px;border-radius:999px;color:#9a4b12;background:#ffe2c9;font-size:9px;font-style:normal;font-weight:950}
.today-status-list article.done .behind-chip{color:#8a5a12;background:#fbeccb}

/* behind-on */
.today-status-count small.behind-on{color:#c0491a;font-weight:950}
.today-status-count small{font-size:11px}
.today-status-list article.yet .today-status-count b{color:#b5622a}

/* batch-0928 */
/* 1. 레벨업 현판 */
.level-up-plaque-art{width:min(400px,100%);border:2px solid #7666a9;border-radius:22px;overflow:hidden;box-shadow:0 14px 30px rgba(0,0,0,.45)}
.level-up-plaque-art img{filter:none}
.level-up-plaque-text-art{font-family:"Nanum Myeongjo","Noto Serif KR",Batang,serif;font-weight:800;letter-spacing:2px}
.level-up-plaque-art.wood .level-up-plaque-text-art{filter:drop-shadow(0 -1px 0 rgba(45,16,0,.95)) drop-shadow(0 1px 0 rgba(255,226,160,.35)) drop-shadow(0 0 5px rgba(255,210,120,.22))}
.level-up-plaque-art.silk .level-up-plaque-text-art{filter:drop-shadow(0 1px 0 rgba(255,238,200,.75)) drop-shadow(0 -1px 0 rgba(60,24,0,.4))}
.level-up-plaque-art.crystal .level-up-plaque-text-art{filter:drop-shadow(0 1px 0 rgba(255,255,255,.9)) drop-shadow(0 -1px 0 rgba(40,24,110,.5))}
.level-up-message small{color:#d9cff5;font-size:13px;font-weight:800}
.level-up-message small.level-up-new-title{color:#ffe27c}

/* 3. 보면서 쓰기 */
.stroke-side{display:grid;grid-template-columns:2fr 3fr;gap:10px;margin:12px 0 10px;align-items:start}
.stroke-side-panel{display:grid;gap:6px;justify-items:center;padding:0;border:0;color:inherit;background:none;font:inherit}
.stroke-side-panel.guide{cursor:pointer}
.stroke-side-target{display:grid;place-items:center;width:100%;aspect-ratio:1;overflow:hidden;border:1px solid #e2dbcf;border-radius:15px;background:linear-gradient(45deg,transparent 49.8%,#eee8dd 50%,transparent 50.2%),linear-gradient(-45deg,transparent 49.8%,#eee8dd 50%,transparent 50.2%),#fffdfa}
.stroke-side-panel.guide .stroke-side-target{border-color:#f1c9bd;background-color:#fff8f5}
.stroke-side-panel.write .stroke-side-target{border-color:#c9c3e6;touch-action:none}
.stroke-side-target svg{display:block;width:100%!important;height:100%!important;transform:none!important}
.stroke-side-panel small{color:#8a8f99;font-size:11px;font-weight:800}
.stroke-side-toggle{width:100%;min-height:40px;margin-top:8px;display:flex;align-items:center;justify-content:center;gap:6px;border:1px dashed #b9b0e3;border-radius:11px;color:#4b3f8f;background:#f5f2ff;font-size:12px;font-weight:900;cursor:pointer}

/* 4. 토스트: 한 문장은 한 줄에 */
.toast-text{display:grid;gap:2px;word-break:keep-all}
.toast-line{display:block}
@media(max-width:760px){.toast{max-width:calc(100vw - 20px);padding:10px 14px}}

/* 5. 그룹 머리 칸 · 응원 쓰기 접기 */
.group-title-row{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px}
.group-title-row h1{margin:6px 0 4px}
.group-title-row .managed-group-badge{padding:6px 10px;font-size:10px}
.cheer-toggle{flex:none;align-self:center;display:inline-flex;align-items:center;gap:4px;padding:7px 11px;border:1px solid #d6ded1;border-radius:999px;color:#4f6259;background:#fbfcf6;font-size:11px;font-weight:900;cursor:pointer}
.cheer-toggle svg:last-child{transition:transform .2s}
.cheer-toggle.open{color:#fff;border-color:#4f6259;background:#4f6259}
.cheer-toggle.open svg:last-child{transform:rotate(180deg)}
@media(max-width:760px){
  .group-garden-header{min-height:0;padding:150px 16px 14px;gap:6px}
  .group-garden-header>img{height:160px}
  .group-garden-header h1{font-size:23px}
}

/* toast-width */
.toast{width:max-content}

/* sunday-game */
.sunday-event-card{margin:0 0 14px;padding:14px;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px 12px;border:2px solid #7666a9;border-radius:20px;color:#f7f2ff;background:radial-gradient(circle at 85% 10%,#7a5cc855,transparent 45%),linear-gradient(145deg,#2a2350,#171530)}
.sunday-event-card>span{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;color:#2a2350;background:#ffe27c}
.sunday-event-card small{color:#ffe27c;font-size:11px;font-weight:900}
.sunday-event-card strong{display:block;font-size:17px}
.sunday-event-card p{margin:3px 0 0;color:#cfc6ea;font-size:11px;line-height:1.5}
.sunday-event-card .primary-button{grid-column:1/-1;justify-content:center;color:#2a2350;background:#ffe27c}
.sunday-event-card .primary-button:disabled{opacity:.5}
.sunday-game-backdrop{position:fixed;z-index:1000;inset:0;padding:14px;display:grid;place-items:center;background:#07071acc;backdrop-filter:blur(8px)}
.sunday-game{width:min(520px,100%);max-height:calc(100dvh - 28px);overflow:auto;padding:16px;border:2px solid #7666a9;border-radius:24px;color:#f7f2ff;background:radial-gradient(circle at 80% 0,#5e438955,transparent 40%),#131229;box-shadow:0 28px 80px #000a}
.sunday-game header{margin-bottom:10px;display:flex;align-items:center;justify-content:space-between}
.sunday-game header small{color:#ffe27c;font-size:11px;font-weight:900}
.sunday-game header strong{display:block;font-size:20px}
.sunday-game header button{width:40px;height:40px;display:grid;place-items:center;border:1px solid #ffffff26;border-radius:50%;color:#fff;background:#ffffff10;cursor:pointer}
.sunday-game-status{padding:8px 12px;display:flex;justify-content:space-between;gap:8px;border-radius:12px;color:#e6dcff;background:#ffffff0d;font-size:12px;font-weight:900}
.sunday-game-help{margin:10px 0;color:#b9b2cc;font-size:12px;text-align:center}
.sunday-game-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.sunday-card{min-height:76px;padding:8px 6px;display:grid;place-items:center;border:1px solid #ffffff24;border-radius:14px;color:#f7f2ff;background:linear-gradient(155deg,#30294d,#1c1a36);font:inherit;font-weight:900;text-align:center;word-break:keep-all;cursor:pointer;transition:transform .15s,background .15s,opacity .3s}
.sunday-card.hanja{font-family:"Noto Serif KR",Batang,serif;font-size:34px;line-height:1}
.sunday-card.meaning{font-size:13px;line-height:1.35}
.sunday-card.picked{border-color:#ffe27c;background:#4a3d7a;transform:translateY(-2px);box-shadow:0 0 0 2px #ffe27c55}
.sunday-card.matched{opacity:.16;border-color:#8debd8;cursor:default}
.sunday-card.wrong{border-color:#ff8a7a;background:#5a2a3a;animation:sunday-shake .35s}
@keyframes sunday-shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
.sunday-game-result{padding:10px 4px;display:grid;justify-items:center;gap:8px;text-align:center}
.sunday-game-stars{display:flex;gap:6px;color:#5b5480}
.sunday-game-stars .on{color:#ffe27c;fill:currentColor;filter:drop-shadow(0 0 8px #ffe27c88)}
.sunday-game-result h2{margin:4px 0 0;font-size:21px}
.sunday-game-result p{margin:0;color:#e6dcff;font-size:14px;font-weight:800}
.sunday-game-result small{color:#b9b2cc;font-size:12px}
.sunday-game-result .complete-actions{width:100%;margin-top:6px}

/* sunday-game-2 */
.sunday-game .secondary-button{color:#2a2350;border-color:#e9e2ff;background:#f4efff}

/* sunday-rotation */
.sunday-event-games{grid-column:1/-1;display:grid;gap:8px}
.sunday-event-game{width:100%;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;border:0;border-radius:14px;color:#2a2350;background:#ffe27c;font:inherit;text-align:left;cursor:pointer}
.sunday-event-game span{min-width:0}
.sunday-event-game strong{display:block;font-size:15px;color:#2a2350}
.sunday-event-game small{display:block;margin-top:2px;color:#5b4a86;font-size:11px;font-weight:700}
.sunday-event-game svg{flex:none}
.sunday-event-game:disabled{opacity:.5;cursor:default}
.starfall-question{margin:10px 0 8px;display:grid;justify-items:center;gap:2px;text-align:center}
.starfall-question small{color:#b9b2cc;font-size:11px;font-weight:800}
.starfall-question strong{font-size:24px;color:#ffe27c}
.starfall-field{position:relative;height:360px;overflow:hidden;border:1px solid #ffffff1a;border-radius:18px;background:radial-gradient(circle at 20% 15%,#ffffff22 0 1px,transparent 2px),radial-gradient(circle at 70% 35%,#ffffff1c 0 1px,transparent 2px),radial-gradient(circle at 40% 70%,#ffffff18 0 1px,transparent 2px),linear-gradient(#1a1740,#0d0c22)}
.starfall-star{position:absolute;top:0;width:22%;height:64px;display:grid;place-items:center;border:1px solid #ffe27c88;border-radius:18px;color:#2a2350;background:radial-gradient(circle at 35% 30%,#fff7c9,#ffe27c 60%,#e8b94a);box-shadow:0 0 18px #ffe27c66;font:900 32px/1 "Noto Serif KR",Batang,serif;cursor:pointer;transform:translateY(-80px);animation-name:starfall-drop;animation-timing-function:linear;animation-fill-mode:forwards}
.starfall-star.hit{animation-play-state:paused;background:#8debd8;border-color:#fff;box-shadow:0 0 26px #8debd8}
.starfall-star.miss{animation-play-state:paused}
.starfall-star.wrong{animation-play-state:running;opacity:.35;background:#ff8a7a;box-shadow:none;cursor:default}
@keyframes starfall-drop{from{transform:translateY(-80px)}to{transform:translateY(380px)}}
.starfall-feedback{position:absolute;left:50%;bottom:14px;margin:0;padding:6px 14px;border-radius:999px;transform:translateX(-50%);white-space:nowrap;font-size:14px;font-weight:900}
.starfall-feedback.hit{color:#123;background:#8debd8}
.starfall-feedback.miss{color:#fff;background:#b8506a}

/* group-art */
.page-art-banner{display:block;width:100%;height:auto;aspect-ratio:2/1;margin:0 0 14px;border-radius:20px;object-fit:cover;object-position:center 10%;box-shadow:0 10px 26px #1c2e4a1a}
.exam-pass-art{position:relative;z-index:1;display:block;width:min(100%,420px);aspect-ratio:3/2;margin:0 auto 12px;border-radius:18px;object-fit:cover;box-shadow:0 10px 24px #1c2e4a22}
@media (max-width:600px){.page-art-banner{border-radius:16px}}

/* fixes-0929 */
@media(max-width:760px){
.stroke-order-card .stroke-writer{width:min(340px,74vw)}
}
.review-table>button{padding:9px 4px;gap:12px}
.review-table>button>strong{font-size:30px;line-height:1.1}
.review-table>button>span{gap:3px}
.review-table b{font-size:15px}
.review-table small{font-size:12px}
@media(max-width:640px){.review-table>button{grid-template-columns:40px 1fr 16px;padding:8px 2px;gap:10px}.review-table>button>strong{font-size:28px}}

/* push-log */
.push-log-list{margin-top:4px;border:1px solid #eadfcb;border-radius:14px;background:#fffdf8}
.push-log-list>summary{padding:10px 14px;color:#6b5a2c;font-size:13px;font-weight:800;cursor:pointer;list-style:none}
.push-log-list>summary::-webkit-details-marker{display:none}
.push-log-list>summary::after{content:" ▾"}
.push-log-list[open]>summary::after{content:" ▴"}
.push-log-list ul{margin:0;padding:0 14px 10px;list-style:none;display:grid;gap:6px}
.push-log-list li{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:baseline;font-size:12px;line-height:1.4}
.push-log-list li b{color:#1c2e4a;white-space:nowrap}
.push-log-list li span{color:#6b7280;text-align:right}
.push-log-list li.bad span{color:#c2410c;font-weight:700}

/* study-now */
.study-mid{min-width:0;display:grid;gap:5px}
.study-now{min-width:0;display:flex;align-items:baseline;gap:7px;overflow:hidden;color:var(--ink);font-size:15px;font-weight:900;white-space:nowrap;text-overflow:ellipsis}
.study-now strong{font-family:"Noto Serif KR",Batang,serif;font-size:21px;line-height:1;color:#e0654f}

/* match-tap */
.match-tap-grid{margin-top:14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.match-tap-item{min-height:58px;padding:8px 10px;display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:8px;border:1.5px solid #e6dfd1;border-radius:14px;color:var(--ink);background:#fff;font:inherit;text-align:left;cursor:pointer}
.match-tap-item small{color:#a09a8c;font-size:10px;font-weight:800}
.match-tap-item strong{font-family:"Noto Serif KR",Batang,serif;font-size:28px;line-height:1}
.match-tap-item span{min-width:0;color:#b4ab99;font-size:13px;font-weight:800;text-align:right;word-break:keep-all}
.match-tap-item.filled span{color:#2a2350}
.match-tap-item.picking{border-color:#e0654f;background:#fff4ef;box-shadow:0 0 0 3px #e0654f22}
.match-tap-item.picking span{color:#e0654f}
.match-tap-item.correct{border-color:#3bb39a;background:#effbf7}
.match-tap-item.wrong{border-color:#e0654f;background:#fff1ee}
.match-tap-item.wrong span{color:#c2410c}
.match-tap-now{position:sticky;top:0;z-index:5;margin:14px 0 8px;padding:8px 12px;display:flex;align-items:baseline;gap:8px;border-radius:12px;color:#fff;background:#2a2350}
.match-tap-now strong{font-family:"Noto Serif KR",Batang,serif;font-size:26px;line-height:1;color:#ffe27c}
.match-tap-now span{font-size:14px;font-weight:800}
.match-tap-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.match-tap-options button{min-height:46px;padding:8px;border:1.5px solid #d9d1f0;border-radius:12px;color:#2a2350;background:#f6f3ff;font:inherit;font-size:14px;font-weight:800;cursor:pointer}
.match-tap-options button.used{opacity:.3;text-decoration:line-through}
.match-tap-options button:disabled{cursor:default}

/* collection-orbs */
.pet-collection-grid article .pet-orb.orb-glass{overflow:visible;border:0!important;background:none!important;box-shadow:none!important}
.pet-collection-grid article .pet-orb.orb-glass:before,.pet-collection-grid article .pet-orb.orb-glass:after{display:none}
.pet-orb.orb-glass .orb-art{position:absolute;inset:0;width:100%;height:100%;padding:0!important;border-radius:0!important;object-fit:cover!important;background:none!important;-webkit-mask-image:radial-gradient(circle at 50% 50%,#000 58%,transparent 71%);mask-image:radial-gradient(circle at 50% 50%,#000 58%,transparent 71%)}
.pet-collection-grid article.complete .pet-orb.orb-v2{overflow:visible;border-radius:50%;background:none;box-shadow:none}
.pet-collection-grid article.complete .pet-orb.orb-v2:after{display:none}
.pet-collection-grid article.complete .pet-orb.orb-v2>img:not(.orb-ring){position:absolute;inset:10%;width:80%;height:80%;padding:0!important;border-radius:50%!important;object-fit:cover!important;object-position:50% 22%;background:#141230!important}
.pet-orb .orb-ring{position:absolute;z-index:2;inset:0;width:100%;height:100%;padding:0!important;border-radius:0!important;object-fit:contain!important;background:none!important;pointer-events:none}
.pet-collection-grid article.special strong{color:#ffe27c}

/* journey-finale */
.pet-journey-finale{display:block;width:100%;height:100%;max-height:100%;aspect-ratio:1;object-fit:contain;border-radius:18px;background:#1a1638}

/* grand-finale-celebration */
.grand-finale-celebration{overflow:hidden}
.grand-finale-badge{position:relative;z-index:2;margin-bottom:8px;padding:5px 14px;border-radius:999px;color:#2a2350;background:linear-gradient(90deg,#ffe9a8,#ffd166);font-size:13px;font-weight:900;box-shadow:0 0 18px #ffd16688}
.grand-finale-art{position:relative;z-index:2;display:block;width:min(92vw,440px);max-height:56vh;aspect-ratio:1;object-fit:contain;margin:0 auto;border-radius:24px;animation:grand-finale-in 1.1s cubic-bezier(.2,.9,.3,1.2) both;filter:drop-shadow(0 0 28px #ffd16655)}
@keyframes grand-finale-in{0%{opacity:0;transform:scale(.7) rotate(-4deg)}70%{opacity:1;transform:scale(1.04) rotate(1deg)}100%{transform:scale(1) rotate(0)}}
.grand-finale-celebration .celebration-message small{display:block}
.grand-finale-ok{position:relative;z-index:2;margin-top:12px;color:#2a2350;background:#ffe27c}
.grand-finale-sparkles{position:absolute;inset:0;z-index:1;pointer-events:none}
.grand-finale-sparkles i{position:absolute;top:-6%;width:6px;height:6px;border-radius:50%;background:#ffe9a8;box-shadow:0 0 10px #ffd166;animation:grand-finale-fall linear infinite}
.grand-finale-sparkles i:nth-child(3n){width:4px;height:4px;background:#fff}
@keyframes grand-finale-fall{0%{transform:translateY(0);opacity:0}10%{opacity:1}100%{transform:translateY(110vh);opacity:0}}

/* cheers-more */
.cheers-more{width:100%;margin-top:8px;padding:9px 12px;display:flex;align-items:center;justify-content:center;gap:6px;border:1px dashed #d9cfae;border-radius:12px;color:#6b5a2c;background:#fffdf6;font:inherit;font-size:13px;font-weight:800;cursor:pointer}
.cheers-more svg{transition:transform .2s}
.cheers-more.open svg{transform:rotate(180deg)}

/* calendar-selected-keeps-state */
.week-days button.selected.date-complete,.week-days button.selected.date-partial,.week-days button.selected.date-missed,
.month-days button.selected.date-complete,.month-days button.selected.date-partial,.month-days button.selected.date-missed{border-color:var(--ink);box-shadow:0 0 0 3px var(--ink),0 8px 16px rgba(32,55,70,.22);transform:translateY(-2px)}
.week-days button.selected.date-complete,.month-days button.selected.date-complete{color:#232f74;background:#e7ecf5}
.week-days button.selected.date-partial,.month-days button.selected.date-partial{color:#8a6718;background:#fff3c9}
.week-days button.selected.date-missed,.month-days button.selected.date-missed{color:#b25343;background:#ffe4dc}
.month-days button.selected.date-complete>i{background:#2c3e91}
.month-days button.selected.date-partial>i{background:#d4a62e}
.month-days button.selected.date-missed>i{background:#df725f}

/* level-up-plaque-soft-in */
.level-up-plaque-art{opacity:0;animation:level-up-plaque-soft-in 1.2s ease-out .45s forwards}
@keyframes level-up-plaque-soft-in{0%{opacity:0;transform:scale(.94) translateY(8px);filter:blur(6px) brightness(1.5)}60%{opacity:1;filter:blur(0) brightness(1.15)}100%{opacity:1;transform:none;filter:none}}
@media (prefers-reduced-motion:reduce){.level-up-plaque-art{opacity:1;animation:none}}

/* sunday-games-3 */
.hidden-grid{margin-top:4px;display:grid;gap:6px}
.hidden-cell{aspect-ratio:1;min-width:0;display:grid;place-items:center;border:1px solid #ffffff22;border-radius:12px;color:#f7f2ff;background:linear-gradient(155deg,#30294d,#1c1a36);font:900 30px/1 "Noto Serif KR",Batang,serif;cursor:pointer;transition:transform .15s,background .2s,opacity .3s}
.hidden-grid.size-4 .hidden-cell{font-size:26px}
.hidden-grid.size-5 .hidden-cell{font-size:21px;border-radius:10px}
.hidden-cell:active{transform:scale(.95)}
.hidden-cell.wrong{border-color:#ff8a7a;background:#5a2a3a;opacity:.45;animation:sunday-shake .35s}
.hidden-cell.found{border-color:#fff;color:#123;background:#8debd8;box-shadow:0 0 22px #8debd8;transform:scale(1.08)}
.hidden-cell.dim{opacity:.25}
.flip-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;perspective:900px}
.flip-card{position:relative;height:84px;padding:0;border:0;background:none;font:inherit;cursor:pointer}
.flip-inner{position:absolute;inset:0;transform-style:preserve-3d;transition:transform .45s}
.flip-card.open .flip-inner{transform:rotateY(180deg)}
.flip-back,.flip-front{position:absolute;inset:0;display:grid;place-items:center;padding:6px;border-radius:14px;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.flip-back{color:#2a2350;border:1px solid #ffe27c88;background:radial-gradient(circle at 35% 30%,#fff7c9,#ffe27c 60%,#e8b94a);box-shadow:0 4px 12px #0006}
.flip-front{transform:rotateY(180deg);color:#f7f2ff;border:1px solid #ffffff2a;background:linear-gradient(155deg,#3b3263,#1f1c3c);font-weight:900;text-align:center;word-break:keep-all}
.flip-card.hanja .flip-front{font:900 34px/1 "Noto Serif KR",Batang,serif}
.flip-card.meaning .flip-front{font-size:13px;line-height:1.35}
.flip-card.matched .flip-front{border-color:#8debd8;background:#1d4a48;box-shadow:0 0 14px #8debd855}
.duel-ready h3,.duel-board-title{margin:12px 0 6px;color:#ffe27c;font-size:14px;text-align:left;width:100%}
.duel-board{width:100%;margin:0;padding:0;list-style:none;display:grid;gap:6px}
.duel-board li{padding:8px 12px;display:grid;grid-template-columns:26px 1fr auto;align-items:center;gap:8px;border-radius:12px;background:#ffffff0f;font-size:14px;font-weight:800;text-align:left}
.duel-board li b{width:24px;height:24px;display:grid;place-items:center;border-radius:50%;color:#2a2350;background:#cfc6ea;font-size:12px}
.duel-board li:first-child b{background:#ffe27c}
.duel-board li.me{outline:2px solid #8debd8}
.duel-board li em{color:#cfc6ea;font-size:12px;font-style:normal}
.duel-board li.empty{grid-template-columns:1fr;color:#b9b2cc;font-size:12px;text-align:center}
.duel-start{width:100%;margin-top:12px;justify-content:center;color:#2a2350;background:#ffe27c}
.duel-hanja{margin:14px auto 4px;width:120px;height:120px;display:grid;place-items:center;border-radius:24px;color:#2a2350;background:radial-gradient(circle at 35% 30%,#fff7c9,#ffe27c 60%,#e8b94a);box-shadow:0 0 30px #ffe27c55;font:900 64px/1 "Noto Serif KR",Batang,serif}
.duel-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.duel-options .sunday-card{min-height:64px;font-size:15px}
.sunday-card.matched-now{border-color:#fff;color:#123;background:#8debd8}

/* crystal-plaque-text-b */
.level-up-plaque-art.crystal .level-up-plaque-text-art{font-size:clamp(18px,6.8vw,27px);background:linear-gradient(100deg,#2e1f78 20%,#5a44c4 38%,#2e1f78 56%,#41309e 78%);background-size:220% 100%;-webkit-background-clip:text;background-clip:text;filter:drop-shadow(0 1px 0 rgba(255,255,255,.95)) drop-shadow(0 -1px 0 rgba(30,16,90,.55)) drop-shadow(0 0 6px rgba(255,255,255,.55))}

/* sound-toggle-2 */
.writing-count-row{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.writing-count-row .writing-count{margin:0}
.sound-toggle{min-height:30px;padding:0 12px;display:inline-flex;align-items:center;gap:4px;border:1px solid #d9d2f0;border-radius:999px;color:#544b8b;background:#f4f1fd;font:inherit;font-size:12px;font-weight:900;cursor:pointer;white-space:nowrap}
.sound-toggle.off{color:#8a8f99;border-color:#e2e2e6;background:#f3f3f5}
.sound-setting-button .sound-switch{position:relative;flex:none;width:38px;height:22px;border-radius:999px;background:#d6d9de;transition:background .2s}
.sound-setting-button .sound-switch::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .2s}
.sound-setting-button .sound-switch.on{background:#5b6bd6}
.sound-setting-button .sound-switch.on::after{transform:translateX(16px)}
.sound-setting-button>span:first-child{font-size:16px}
/* 설정 메뉴 '개인·가족·그룹 설정' 칸의 배지 그림이 작은 칸(34px)을 넘어 원래 크기(128px)로 퍼지던 것(예전부터 있던 문제) */
.profile-account-button>span>.badge-img{width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%}
.profile-account-button>span:has(.badge-img){overflow:hidden}

/* sound-volume */
.sound-volume-panel{margin:-4px 0 6px;padding:10px 12px;display:grid;gap:8px;border-radius:14px;background:#f4f1fd}
.sound-volume{display:grid;grid-template-columns:96px 1fr 30px;align-items:center;gap:8px;color:#3d3866;font-size:12px;font-weight:800}
.sound-volume input[type=range]{width:100%;accent-color:#5b6bd6}
.sound-volume b{color:#5b6bd6;font-size:12px;text-align:right}
.sound-volume.disabled{opacity:.45}
.sound-volume.compact{grid-template-columns:90px 26px;gap:4px}
.sound-volume.compact b{font-size:11px}

/* sound-ui-2 */
.writing-count-row{margin-top:12px}
.sound-toggle{width:36px;min-height:32px;padding:0;justify-content:center;font-size:17px;line-height:1}
.vol-ramp{position:relative;display:block;height:22px;min-width:0}
.vol-ramp::before{content:"";position:absolute;left:0;right:0;bottom:3px;height:16px;clip-path:polygon(0 100%,100% 0,100% 100%);background:linear-gradient(to right,#6f7de0 0,#4f5fd0 var(--v),#dcdfee var(--v),#dcdfee 100%);border-radius:2px}
.vol-ramp input[type=range]{position:absolute;inset:0;width:100%;height:100%;margin:0;background:transparent;-webkit-appearance:none;appearance:none;cursor:pointer}
.vol-ramp input[type=range]::-webkit-slider-runnable-track{height:100%;background:transparent}
.vol-ramp input[type=range]::-moz-range-track{height:100%;background:transparent}
.vol-ramp input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:6px;height:22px;border-radius:3px;background:#2d3a8c;box-shadow:0 0 0 2px #fff,0 1px 4px rgba(0,0,0,.3)}
.vol-ramp input[type=range]::-moz-range-thumb{width:6px;height:22px;border:0;border-radius:3px;background:#2d3a8c;box-shadow:0 0 0 2px #fff,0 1px 4px rgba(0,0,0,.3)}
.sound-volume.disabled .vol-ramp::before{filter:grayscale(1)}
.sound-volume.compact{grid-template-columns:96px 24px}

/* window-bg */
.starpet-scene[class*="window-bg-"]{background-size:cover;background-position:center;background-repeat:no-repeat}
.starpet-scene.window-bg-room,.starpet-scene.window-bg-stage{box-shadow:inset 0 0 36px #0007}
.starpet-scene.garden-window.window-bg-blur:not(.pet-journey-modal *)>.starpet-ambient{display:block;left:0;top:0;width:100%;height:100%;border-radius:0;object-fit:cover;filter:blur(18px) brightness(.62) saturate(1.05);transform:scale(1.12)!important}
.window-bg-button{flex:none;padding:7px 11px;border:1px solid #ffffff2e;border-radius:999px;color:#fff;background:#ffffff14;font:inherit;font-size:11px;font-weight:900;white-space:nowrap;cursor:pointer}
.starpet-head>span+.window-bg-button{margin-left:-6px}
.window-bg-backdrop{position:fixed;inset:0;z-index:1200;display:flex;align-items:flex-end;justify-content:center;background:#0a0b1eaa}
.window-bg-sheet{width:min(560px,100%);max-height:82dvh;overflow:auto;padding:16px 16px calc(16px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0;color:#2a2350;background:#fbf9f3;box-shadow:0 -12px 40px #0006}
.window-bg-sheet header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.window-bg-sheet header strong{display:block;font-size:18px}
.window-bg-sheet header small{display:block;margin-top:3px;color:#7a7590;font-size:12px;line-height:1.4}
.window-bg-sheet header button{width:36px;height:36px;display:grid;place-items:center;border:1px solid #e3ddf0;border-radius:50%;color:#544b8b;background:#fff;cursor:pointer}
.window-bg-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.window-bg-option{padding:6px 6px 8px;display:grid;gap:4px;justify-items:center;border:2px solid transparent;border-radius:16px;color:#2a2350;background:#fff;font:inherit;text-align:center;cursor:pointer;box-shadow:0 2px 8px #2a235014}
.window-bg-option.active{border-color:#5b6bd6;box-shadow:0 0 0 3px #5b6bd633}
.window-bg-option.locked{cursor:default;opacity:.75}
.window-bg-option strong{font-size:12px}
.window-bg-option small{min-height:15px;color:#8a85a0;font-size:10px;line-height:1.3;word-break:keep-all}
.window-bg-option.active small{color:#5b6bd6;font-weight:900}
.window-bg-thumb{position:relative;width:100%;aspect-ratio:4/5;display:grid;place-items:center;border-radius:11px;background:#0b1022 center/cover no-repeat;overflow:hidden}
.window-bg-thumb::after{content:"";width:46%;height:72%;border:3px solid #c7965a;border-bottom-width:4px;border-radius:50% 50% 3px 3px/30% 30% 3px 3px;background:linear-gradient(#26305f,#3d5a7a)}
.window-bg-thumb.thumb-blur{background:radial-gradient(circle at 30% 30%,#6b7fb8,#2d3560 60%,#1a1d3d)}
.window-bg-option.locked .window-bg-thumb{background:repeating-linear-gradient(45deg,#ece7f6 0 8px,#f5f2fb 8px 16px)}
.window-bg-option.locked .window-bg-thumb::after{display:none}
.window-bg-thumb i{position:absolute;font-size:26px;font-style:normal}
.window-bg-gift{color:#ffe27c!important;font-weight:900}

/* season-gift */
.window-bg-option.season{background:linear-gradient(160deg,#fff,#fff3f0);box-shadow:0 2px 10px #c0392b22}
.window-bg-option.season small{color:#c0392b;font-weight:900}
.season-gift-backdrop{position:fixed;inset:0;z-index:1300;display:grid;place-items:center;padding:18px;background:#0a0b1ecc}
.season-gift{position:relative;width:min(400px,100%);overflow:hidden;padding:20px 18px 18px;display:grid;justify-items:center;gap:10px;border-radius:24px;color:#2a2350;background:linear-gradient(180deg,#fff8ef,#fff);text-align:center;box-shadow:0 24px 60px #000a;animation:season-gift-in .6s cubic-bezier(.2,.9,.3,1.2) both}
.season-gift small{color:#c0392b;font-size:13px;font-weight:900}
.season-gift h2{margin:0;font-size:22px}
.season-gift p{margin:0;color:#6c6782;font-size:13px;line-height:1.55;word-break:keep-all}
.season-gift-art{width:62%;border-radius:16px;box-shadow:0 8px 20px #0004}
.season-gift-actions{width:100%;display:grid;grid-template-columns:1fr 1.4fr;gap:8px;margin-top:4px}
.season-gift-sparkles{position:absolute;inset:0;pointer-events:none}
.season-gift-sparkles i{position:absolute;top:-10px;width:7px;height:7px;border-radius:50%;background:#f4c542;box-shadow:0 0 8px #f4c542;animation:season-gift-fall 3.2s linear infinite}
.season-gift-sparkles i:nth-child(3n){background:#e74c3c;box-shadow:0 0 8px #e74c3c}
.season-gift-sparkles i:nth-child(4n){background:#2ecc71;box-shadow:0 0 8px #2ecc71}
@keyframes season-gift-in{from{opacity:0;transform:scale(.85) translateY(20px)}to{opacity:1;transform:none}}
@keyframes season-gift-fall{to{transform:translateY(560px) rotate(240deg);opacity:.2}}

/* frame-fix */
.garden-frame:after{background-image:url('/starpet-window-frame-v2.webp?v=1')}
.garden-frame>.starpet-focus{left:15.234%;top:8.529%;width:69.531%;height:85.807%;border-radius:0;-webkit-mask:url('/starpet-window-mask.png?v=1') center/100% 100% no-repeat;mask:url('/starpet-window-mask.png?v=1') center/100% 100% no-repeat}
.garden-frame .star-overlay{left:15.234%;top:8.529%;width:69.531%;height:85.807%;border-radius:0;-webkit-mask:url('/starpet-window-mask.png?v=1') center/100% 100% no-repeat;mask:url('/starpet-window-mask.png?v=1') center/100% 100% no-repeat}
.pet-journey-modal .garden-frame>.starpet-focus,.pet-journey-modal .garden-frame .star-overlay,.friend-village-overlay .garden-frame>.starpet-focus,.friend-village-overlay .garden-frame .star-overlay{-webkit-mask:none;mask:none}
.garden-frame>.window-bg-overlay{position:absolute;z-index:6;left:1%;top:6.5%;width:98%;height:auto;pointer-events:none;filter:drop-shadow(0 4px 6px #0007)}
.pet-journey-modal .garden-frame>.window-bg-overlay,.friend-village-overlay .garden-frame>.window-bg-overlay{display:none}

/* window-bg-v2 */
.starpet-scene.window-bg-layered{overflow:hidden}
.starpet-scene.window-bg-layered .garden-frame:after{display:none}
.garden-frame>.window-scene-layer{position:absolute;left:-67.328%;top:-2.136%;width:234.504%;height:104.171%;max-width:none;z-index:4;pointer-events:none;object-fit:fill}
.pet-journey-modal .window-scene-layer,.friend-village-overlay .window-scene-layer{display:none}
.window-bg-thumb.has-art::after{display:none}
.birthday-backdrop{position:fixed;inset:0;z-index:1300;display:grid;place-items:center;padding:18px;background:#0a0b1ecc}
.birthday-modal{position:relative;width:min(380px,100%);padding:22px 18px 16px;display:grid;gap:10px;border-radius:22px;color:#2a2350;background:#fffaf2;box-shadow:0 24px 60px #000a;text-align:center}
.birthday-modal h2{margin:0;font-size:20px}
.birthday-modal p{margin:0;color:#6c6782;font-size:13px;line-height:1.55;word-break:keep-all}
.birthday-close{position:absolute;top:10px;right:10px;width:34px;height:34px;display:grid;place-items:center;border:1px solid #e3ddf0;border-radius:50%;color:#544b8b;background:#fff;cursor:pointer}
.birthday-later{border:0;background:none;color:#8a85a0;font:inherit;font-size:12px;font-weight:800;text-decoration:underline;cursor:pointer}
.birthday-form{display:grid;gap:10px}
.birthday-fields{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.birthday-fields select,.birthday-fields input{min-width:0;height:42px;padding:0 8px;border:1px solid #ddd5ea;border-radius:11px;color:#2a2350;background:#fff;font:inherit;font-size:14px}
.birthday-gift-options{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.birthday-gift-options button{padding:6px 6px 8px;display:grid;gap:5px;justify-items:center;border:2px solid #f1e6d8;border-radius:16px;color:#2a2350;background:#fff;font:inherit;cursor:pointer}
.birthday-gift-options button:active{border-color:#e0a84c}
.birthday-gift-options strong{font-size:13px}
.season-gift.birthday-gift .secondary-button{width:100%}
.auth-birthday>div{display:grid!important;grid-template-columns:1fr 1fr;gap:6px;padding:0!important;border:0!important;background:none!important}
.auth-birthday select,.auth-birthday input{min-width:0;height:44px;padding:0 8px;border:1px solid #ddd5ea;border-radius:12px;color:#2a2350;background:#fff;font:inherit;font-size:14px}

/* sunday-intro */
.sunday-intro-backdrop{position:fixed;inset:0;z-index:1290;display:grid;place-items:center;padding:18px;background:#0a0b1ecc}
.sunday-intro{position:relative;width:min(380px,100%);max-height:calc(100dvh - 36px);overflow:auto;padding:22px 18px 16px;display:grid;gap:10px;justify-items:center;border-radius:22px;color:#2a2350;background:#fffaf2;box-shadow:0 24px 60px #000a;text-align:center;animation:sunday-intro-in .45s ease-out}
@keyframes sunday-intro-in{from{opacity:0;transform:translateY(14px) scale(.96)}to{opacity:1;transform:none}}
.sunday-intro-icon{width:58px;height:58px;display:grid;place-items:center;border-radius:18px;color:#fff;background:linear-gradient(135deg,#7b6cf0,#e58ad0);box-shadow:0 8px 20px #7b6cf055}
.sunday-intro small{color:#8a6fd8;font-size:12px;font-weight:800}
.sunday-intro h2{margin:0;font-size:21px}
.sunday-intro p{margin:0;color:#5f5a78;font-size:13.5px;line-height:1.55;word-break:keep-all}
.sunday-intro-games{width:100%;margin:2px 0;padding:0;list-style:none;display:grid;gap:7px}
.sunday-intro-games li{display:grid;gap:2px;padding:10px 12px;border:1px solid #ece4f7;border-radius:14px;background:#fff;text-align:left}
.sunday-intro-games strong{font-size:14.5px;color:#2a2350}
.sunday-intro-games small{color:#7a7590;font-weight:600}
.sunday-intro-where b{color:#2a2350}
.sunday-intro-note{color:#c0703a!important;font-weight:700}
.sunday-intro-actions{width:100%;display:grid;grid-template-columns:1fr 1.4fr;gap:8px;margin-top:4px}

/* sunday-games-wps */
.word-slots{display:flex;justify-content:center;gap:8px;margin:14px 0 6px}
.word-slot{width:62px;height:76px;display:grid;grid-template-rows:1fr auto;place-items:center;padding:6px 0 5px;border:2px dashed #c9bfe6;border-radius:16px;background:#fff;color:#2a2350}
.word-slot b{font-size:34px;line-height:1;font-family:inherit}
.word-slot small{font-size:12px;font-weight:800;color:#8a85a0}
.word-slot.given{border-style:solid;border-color:#ece7f6;background:#f6f3fb;color:#6b6585}
.word-slot.filled{border-style:solid;border-color:#7b6cf0;background:#f0edff;animation:word-pop .3s ease-out}
.word-slot.next{border-color:#e58ad0;box-shadow:0 0 0 4px #e58ad022}
.word-slots.done .word-slot{border-color:#39b27a;background:#eaf9f1}
@keyframes word-pop{from{transform:scale(.85)}to{transform:none}}
.word-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:12px}
.word-tiles.six{grid-template-columns:repeat(3,minmax(0,1fr))}
.word-tile{aspect-ratio:1;border:1px solid #e3ddf0;border-radius:16px;background:#fff;color:#2a2350;font:inherit;font-size:32px;font-weight:700;box-shadow:0 3px 0 #e3ddf0;cursor:pointer}
.word-tile:active{transform:translateY(2px);box-shadow:0 1px 0 #e3ddf0}
.word-tile.used{opacity:.25;pointer-events:none}
.word-tile.wrong{animation:tile-shake .4s;border-color:#e26a6a;background:#fff1f1}
@keyframes tile-shake{20%,60%{transform:translateX(-5px)}40%,80%{transform:translateX(5px)}}
.picture-guess-frame{position:relative;width:min(300px,100%);aspect-ratio:1;margin:10px auto 4px;border-radius:20px;overflow:hidden;background:#f1edf8;box-shadow:0 8px 22px #2a235022}
.picture-guess-frame img{width:100%;height:100%;object-fit:cover;display:block}
.picture-guess-answer{position:absolute;left:10px;right:10px;bottom:10px;padding:7px 10px;border-radius:12px;background:#fffffff0;color:#2a2350;font-weight:800;font-size:15px;text-align:center;animation:word-pop .3s ease-out}
.picture-guess-q{margin:8px 0 4px;text-align:center;color:#5f5a78;font-weight:700}
.sunday-choice-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:8px}
.sunday-choice-grid.numbers{grid-template-columns:repeat(2,minmax(0,1fr))}
.sunday-choice{min-height:64px;border:1px solid #e3ddf0;border-radius:16px;background:#fff;color:#2a2350;font:inherit;font-size:30px;font-weight:700;box-shadow:0 3px 0 #e3ddf0;cursor:pointer}
.sunday-choice-grid.numbers .sunday-choice{min-height:52px;font-size:18px}
.sunday-choice.right{border-color:#39b27a;background:#eaf9f1;color:#1f7a50}
.sunday-choice.wrong{border-color:#e26a6a;background:#fff1f1;color:#b03b3b;animation:tile-shake .4s}
.sunday-choice.dim{opacity:.4}
.stroke-quiz-box{width:min(220px,70%);aspect-ratio:1;margin:10px auto 4px;border-radius:20px;border:1px solid #ece4f7;background:#fff linear-gradient(#f1ecf9,#f1ecf9) center/1px 100% no-repeat}
.stroke-quiz-glyph{width:100%;height:100%;display:block}
.stroke-quiz-glyph path{fill:#d9d4e6}
.stroke-quiz-glyph path.done{fill:#4a4366}
.stroke-quiz-glyph path.hl{fill:#e8607a}

/* word-list-compact-a */
.meaning-usage-note .compact-word-list{grid-template-columns:1fr!important;gap:0!important;border:1px solid #e6e0d4;border-radius:16px;background:#fffdf8;overflow:hidden}
.meaning-usage-note .compact-word-list>div{min-height:0!important;padding:10px 14px!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:none!important;grid-template-columns:auto minmax(0,1fr)!important;column-gap:14px!important;row-gap:2px!important}
.meaning-usage-note .compact-word-list>div+div{border-top:1px solid #efeae0!important}
.meaning-usage-note .compact-word-list .word-heading{flex-wrap:nowrap!important;white-space:nowrap!important}
.meaning-usage-note .compact-word-list .word-heading strong{font-size:24px!important}
.meaning-usage-note .compact-word-list .word-heading b{font-size:15px!important}
.meaning-usage-note .compact-word-list .word-meaning{font-size:15px!important}
.meaning-usage-note .compact-word-list .word-hanja-gloss{grid-column:1/-1;padding:0!important;border:0!important;background:none!important;color:#8a83a3!important;font-size:12.5px!important}

/* word-list-compact-a2 */
.meaning-usage-note .compact-word-list .word-heading{flex-direction:row-reverse;justify-content:flex-end}
.meaning-usage-note .compact-word-list .word-heading b{font-size:18px!important;color:#2a2350}
.meaning-usage-note .compact-word-list .word-heading strong{font-size:22px!important}

/* words-nudge */
.meaning-usage-heading{display:flex;align-items:center;flex-wrap:wrap}
.usage-quiz-badge{margin-left:auto;padding:4px 9px;border-radius:999px;background:#fff1d6;color:#a66a00;font-size:12px;font-weight:900;white-space:nowrap}
.lesson-next-action .primary-button.words-first{background:linear-gradient(135deg,#f08a5d,#e8607a);animation:words-first-bob 1.6s ease-in-out infinite}
@keyframes words-first-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}

/* sunday-review-tab */
.bottom-nav button.sunday-game-tab{color:#6b55d9;background:linear-gradient(180deg,#f5f0ff,#fff0f8);box-shadow:inset 0 0 0 2px #b9a8ff}
.bottom-nav button.sunday-game-tab.active{color:#5a43cf}
.bottom-nav button.sunday-game-tab > b.game-badge,.side-nav button.sunday-game-tab > b.game-badge{width:auto!important;min-width:0!important;height:auto!important;padding:2px 6px!important;border-radius:999px!important;color:#fff!important;background:linear-gradient(135deg,#7b6cf0,#e58ad0)!important;font-size:10px!important;line-height:1.3!important;letter-spacing:0;box-shadow:0 2px 6px #7b6cf055}
.bottom-nav button.sunday-game-tab > b.game-badge{top:-7px!important;right:-2px!important;white-space:nowrap;transform:none}
.bottom-nav button.sunday-game-tab.glow{animation:sunday-tab-glow 1.8s ease-in-out infinite}
.bottom-nav button.sunday-game-tab.glow::after{content:"✦";position:absolute;left:6px;top:4px;color:#e58ad0;font-size:11px;animation:sunday-tab-twinkle 1.8s ease-in-out infinite}
@keyframes sunday-tab-glow{0%,100%{box-shadow:inset 0 0 0 2px #b9a8ff,0 0 0 0 #a78bff00}50%{box-shadow:inset 0 0 0 2px #9b84ff,0 0 12px 3px #a78bff66}}
@keyframes sunday-tab-twinkle{0%,100%{opacity:.25;transform:scale(.8)}50%{opacity:1;transform:scale(1.15)}}
.side-nav button.sunday-game-tab{color:#5a43cf;box-shadow:inset 0 0 0 2px #b9a8ff;background:linear-gradient(90deg,#f5f0ff,#fff0f8)}
.side-nav button.sunday-game-tab.glow{animation:sunday-tab-glow 1.8s ease-in-out infinite}
@media (prefers-reduced-motion: reduce){.bottom-nav button.sunday-game-tab.glow,.bottom-nav button.sunday-game-tab.glow::after,.side-nav button.sunday-game-tab.glow{animation:none}}

/* bg-brush-icon */
.window-bg-button{display:inline-flex;align-items:center;gap:3px;padding:4px 11px 4px 6px}
.window-bg-icon{width:26px;height:26px;margin:-4px 0;object-fit:contain;filter:drop-shadow(0 1px 2px #0006)}

/* pet-room-bg */
.window-bg-option.pet-room{background:linear-gradient(160deg,#fff,#f3efff);box-shadow:0 2px 10px #6c5ce722}
.window-bg-option.pet-room small{color:#6c5ce7;font-weight:900}
.season-gift.room-gift small{color:#6c5ce7}

/* window-photo */
.window-photo-button{position:absolute;right:10px;bottom:10px;z-index:8;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:#14142acc;border:1.5px solid #ffffff66;font-size:21px;line-height:1;box-shadow:0 4px 12px #0007;cursor:pointer;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);user-select:none}
.window-photo-button:active{transform:scale(.9)}
.starpet-progress.compact .window-photo-button{width:38px;height:38px;font-size:18px;right:8px;bottom:8px}
.window-photo-toast{position:absolute;left:50%;bottom:62px;z-index:9;transform:translateX(-50%);width:max-content;max-width:86%;padding:8px 14px;border-radius:16px;background:#14142ae6;color:#fff;font-size:13px;font-weight:800;line-height:1.4;text-align:center;word-break:keep-all;pointer-events:none;animation:photo-toast 2.6s ease both}
.window-photo-toast.dup{background:#5a3b2ee8}
.window-photo-flash{position:absolute;inset:0;z-index:10;border-radius:22px;background:#fff;pointer-events:none;animation:photo-flash .55s ease-out forwards}
@keyframes photo-flash{0%{opacity:.95}100%{opacity:0}}
@keyframes photo-toast{0%{opacity:0;transform:translate(-50%,8px)}10%,85%{opacity:1;transform:translate(-50%,0)}100%{opacity:0;transform:translate(-50%,0)}}
.photo-album-button{margin-left:6px}
.photo-album-backdrop{position:fixed;inset:0;z-index:1300;display:flex;align-items:flex-end;justify-content:center;background:#0a0b1ecc}
.photo-album{width:min(560px,100%);max-height:92vh;overflow:auto;padding:16px 16px 28px;border-radius:24px 24px 0 0;color:#2a2350;background:#fbf7ee}
.photo-album header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:4px}
.photo-album header strong{font-size:19px}
.photo-album header small{display:block;margin-top:2px;color:#8a83a3;font-size:12px}
.photo-album header button{flex:none;width:36px;height:36px;display:grid;place-items:center;border:1px solid #e3dccb;border-radius:50%;background:#fff;color:#2a2350}
.photo-album h3{margin:16px 2px 8px;color:#6c5ce7;font-size:14px}
.photo-album-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.photo-thumb{aspect-ratio:3/4;padding:0;overflow:hidden;border:0;border-radius:10px;background:#efe9da;box-shadow:0 3px 10px #2a235022;cursor:pointer}
.photo-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.photo-thumb-loading{display:grid;place-items:center;width:100%;height:100%;min-height:120px;color:#b3aa93;font-size:22px}
.photo-album-empty{padding:30px 10px;color:#8a83a3;font-size:13px;line-height:1.7;text-align:center}
.photo-viewer{position:fixed;inset:0;z-index:1400;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:16px;background:#0a0b1ef2}
.photo-viewer img{max-width:100%;max-height:74vh;border-radius:8px;box-shadow:0 10px 30px #000a}
.photo-viewer p{margin:0;color:#fff;font-size:13px}
.photo-viewer-actions{display:flex;gap:10px;width:min(420px,100%)}
.photo-viewer-actions button{flex:1}

/* photo-button-head */
.starpet-head{gap:6px}
.window-photo-take:disabled{opacity:.45}

/* photo-actions-bottom */
.starpet-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:10px 0 0}
.starpet-progress .starpet-actions{order:5!important;margin:0!important}
.starpet-progress.compact .starpet-actions{grid-column:2}
.starpet-actions .window-bg-button{font-size:12px;padding:5px 13px 5px 7px}
.starpet-actions .photo-album-open{padding:5px 13px;color:#ffe68a}

/* cheer */
.cheer-box{margin:14px auto 0;width:min(430px,100%);padding:14px;display:grid;gap:10px;border-radius:18px;background:#fff7ef;border:1px solid #f3d9bd;color:#5a3b2e;text-align:center}
.cheer-box p{margin:0;font-size:14px;font-weight:800;line-height:1.5;word-break:keep-all}
.cheer-box .cheer-open{justify-self:center;padding:10px 22px}
.cheer-pick{display:grid;gap:8px}
.cheer-pick small{color:#9a7b66;font-size:12px}
.cheer-pick button{padding:11px 12px;border:1px solid #f0cfa8;border-radius:14px;background:#fff;color:#4a3328;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.cheer-pick button:active{background:#ffefd9}
.season-gift-actions.single{grid-template-columns:1fr}
.cheer-gift small{color:#d6336c}
.cheer-list{width:100%;margin:2px 0 0;padding:0;list-style:none;display:grid;gap:8px}
.cheer-list li{display:grid;gap:3px;padding:10px 12px;border-radius:14px;background:#fff1f5;text-align:left}
.cheer-list b{color:#d6336c;font-size:12px}
.cheer-list span{color:#2a2350;font-size:15px;font-weight:800;line-height:1.4;word-break:keep-all}

/* cheer-card */
.cheer-float{position:absolute;left:0;right:0;bottom:12px;z-index:9;display:flex;flex-direction:column;align-items:center;gap:8px;padding:0 10px;pointer-events:none;cursor:default}
.cheer-float>*{pointer-events:auto}
.cheer-float-btn{max-width:100%;padding:9px 16px;border-radius:999px;background:linear-gradient(135deg,#ff6f9f,#ff9a62);color:#fff;font-size:13px;font-weight:900;line-height:1.3;text-align:center;box-shadow:0 6px 16px #0007;cursor:pointer;animation:cheer-bob 1.8s ease-in-out infinite}
.cheer-float.open .cheer-float-btn{background:#14142ad9;animation:none}
.cheer-float-btn.sent{background:#14142ad9;animation:none;cursor:default}
@keyframes cheer-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
.cheer-float-pick{display:grid;gap:6px;width:min(300px,100%);padding:10px;border-radius:16px;background:#fffaf4f5;box-shadow:0 10px 24px #0008}
.cheer-float-pick small{color:#9a7b66;font-size:11px;text-align:center}
.cheer-float-pick span{padding:9px 10px;border:1px solid #f0cfa8;border-radius:12px;background:#fff;color:#4a3328;font-size:13px;font-weight:700;line-height:1.35;text-align:center;cursor:pointer}
.cheer-float-pick span:active{background:#ffefd9}

/* practice-quiz */
.lesson-next-action .practice-quiz-button{flex:1 1 auto}
.lesson-next-action:has(.practice-quiz-button){gap:8px}

/* 20261012a 시험 복습: 휴대폰에선 아래 고정 막대에 같은 버튼이 있어 카드 안 버튼은 숨김 */
@media (max-width: 980px) { .exam-review-wrong-top { display: none; } }

/* Optional exam preparation: scoped cards, safe mobile sizing. */
.exam-prep{max-width:620px;margin:0 auto;padding-bottom:24px}.exam-prep-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.exam-prep-heading h2{font-size:21px}.exam-prep-save-note{font-size:13px;line-height:1.5;color:#786553}.exam-prep progress{width:100%;height:9px;accent-color:#b58949}.exam-prep-card{display:grid;gap:14px;background:#fffaf0;color:#3f3226;border:1px solid #dfcba8;border-radius:22px;padding:18px;margin:16px 0;text-align:center}.exam-prep-image{display:block;width:min(100%,300px);aspect-ratio:1;object-fit:contain;margin:auto;border-radius:16px}.exam-prep-hanja{font-size:64px;line-height:1.2}.exam-prep-actions,.exam-prep-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.exam-prep-card button{justify-content:center;white-space:normal;min-height:44px}.exam-prep-answer{display:grid;gap:12px}.exam-prep-answer p{line-height:1.6;margin:0}.exam-prep-leave{width:100%;justify-content:center}@media(max-width:380px){.exam-prep-actions,.exam-prep-choices{grid-template-columns:1fr}}
.exam-prep-actions,.exam-prep-choices{gap:14px}.exam-prep-actions button,.exam-prep-choices button,.exam-prep-leave{min-height:54px;padding:13px 16px}.exam-prep-resume{gap:18px;padding:24px 20px}.exam-prep-resume p{margin:0;line-height:1.6}.exam-prep-resume-actions{display:grid;gap:18px}.exam-prep-resume-actions button{width:100%;min-height:58px;padding:15px 18px;justify-content:center;font-size:16px}.exam-prep-restart{margin-top:8px;border-color:#c8b89f;color:#756654;background:#fffdf8}.exam-prep-card>.exam-prep-restart{width:100%;min-height:54px}@media(max-width:520px){.exam-prep-actions,.exam-prep-choices{grid-template-columns:1fr}.exam-prep-actions{margin-top:4px}.exam-prep-heading{align-items:flex-start}.exam-prep-heading>button{min-height:48px;padding:11px 16px}}

/* 20261031 tablet star-friend card: use the wide canvas and keep the chosen room in the enlarged view. */
@media (min-width:641px) and (max-width:1180px){
  .home-garden-card,.my-tree-section{grid-template-columns:minmax(0,1fr);align-items:stretch;gap:22px}
  .home-garden-card>.starpet-progress,.my-tree-section>.starpet-progress{width:100%;max-width:none}
  .home-garden-card>.starpet-progress.compact,.my-tree-section>.starpet-progress{
    display:grid;grid-template-columns:minmax(0,60%) minmax(220px,1fr);grid-auto-rows:min-content;column-gap:20px;align-content:center;align-items:start
  }
  .home-garden-card>.starpet-progress .starpet-swipe,.my-tree-section>.starpet-progress .starpet-swipe{grid-column:1;grid-row:1/8}
  .home-garden-card>.starpet-progress .starpet-head,.home-garden-card>.starpet-progress .starpet-story,.home-garden-card>.starpet-progress .star-choice,.home-garden-card>.starpet-progress .starpet-actions,.home-garden-card>.starpet-progress .starpet-swipe-help,
  .my-tree-section>.starpet-progress .starpet-head,.my-tree-section>.starpet-progress .starpet-story,.my-tree-section>.starpet-progress .star-choice,.my-tree-section>.starpet-progress .starpet-actions,.my-tree-section>.starpet-progress .starpet-swipe-help{grid-column:2}
  .home-garden-card>.starpet-progress .starpet-head,.my-tree-section>.starpet-progress .starpet-head{margin:8px 0 2px;flex-direction:column;align-items:flex-start;gap:7px}
  .home-garden-card>.starpet-progress .starpet-scene,.my-tree-section>.starpet-progress .starpet-scene{height:auto;min-height:420px;aspect-ratio:4/5}
  .home-garden-card>.starpet-progress .starpet-story,.my-tree-section>.starpet-progress .starpet-story{margin-top:6px}
  .home-garden-card>.starpet-progress .starpet-actions,.my-tree-section>.starpet-progress .starpet-actions{margin-top:10px!important;justify-content:flex-start}
}
