:root {
  --red: #e0301e;
  --ink: #1b1b1f;
  --muted: #6b6b76;
  --bg: #fffaf6;
  --card: #ffffff;
  --line: #efe6df;
  --topbar-h: 60px;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 8px); -webkit-text-size-adjust: 100%; }
body { font-family: Pretendard, system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* 상단바 */
.topbar { position: sticky; top: 0; z-index: 20; height: var(--topbar-h); display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; background: rgba(255,250,246,.88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; letter-spacing: -.5px; }
.logo img { width: 26px; height: 26px; }
.logo b { color: var(--red); font-weight: 900; }
.desktop-nav { display: flex; gap: 20px; font-size: 15px; font-weight: 600; margin-left: auto; }
.desktop-nav a:hover { color: var(--red); }

main { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
section { padding: 64px 0; border-bottom: 1px solid var(--line); }
h2 { font-size: 26px; margin-bottom: 24px; letter-spacing: -.5px; }
h2::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--red); margin-right: 10px; vertical-align: middle; }
.hint { color: var(--muted); margin: -12px 0 20px; font-size: 14px; }
.m-only { display: none; }

/* 히어로 */
/* 맨 위 배너: 크레파스 하늘 (화면 양끝까지) */
.banner { position: relative; width: 100%; overflow: hidden; padding: 0 !important; border: 0 !important;
  background: #cfe8f4 url(images/banner-wide.jpg) center / cover no-repeat; }
.banner-inner { max-width: 1280px; margin: 0 auto; height: clamp(220px, 25vw, 420px); padding: 0 24px;
  display: flex; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 72px); }
.banner-text { text-align: center; font-family: "Gaegu", Pretendard, sans-serif; }
.banner.has-photo .banner-text { text-align: left; }
.banner-title { font-size: clamp(40px, 6.4vw, 96px); font-weight: 700; letter-spacing: .06em; line-height: 1; color: #2f6fb8;
  text-shadow: 0 3px 0 #fff, 0 -2px 0 #fff, 3px 0 0 #fff, -3px 0 0 #fff, 0 0 22px rgba(255,255,255,.9); transform: rotate(-2deg); }
.banner-title .y { color: #f2a516; }
.banner-sub { display: inline-block; margin-top: clamp(10px, 1.4vw, 20px); padding: 4px 16px 2px; border-radius: 99px;
  background: rgba(255,255,255,.82); color: #e0301e; font-size: clamp(17px, 1.9vw, 26px); font-weight: 700; letter-spacing: .02em; transform: rotate(1deg); }
.banner-photo { position: relative; height: 78%; aspect-ratio: 1 / 1; margin: 0; flex-shrink: 0; background: #fff; padding: 8px 8px 26px;
  box-shadow: 0 10px 30px rgba(47,111,184,.25); transform: rotate(-3deg); }
.banner-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-photo figcaption { position: absolute; left: 0; right: 0; bottom: 5px; text-align: center; font-size: 11px; color: #6b6b76; }

.hero { padding: 72px 0 72px; text-align: center; word-break: keep-all; }
.hero h1, .hero .sub { text-wrap: balance; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--red); border: 1.5px solid var(--red); border-radius: 99px; padding: 2px 12px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(36px, 7vw, 64px); line-height: 1.2; letter-spacing: -1.5px; font-weight: 900; }
.hero h1 em { font-style: normal; color: var(--red); }
.slogan { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 8px 16px 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 99px; font-size: 17px; font-weight: 600; }
.slogan img { width: 24px; height: 24px; }
.slogan b { color: var(--red); font-weight: 800; }
.hero .sub { margin: 18px auto 0; color: var(--muted); font-size: 18px; max-width: 560px; }
.dday { margin-top: 28px; display: inline-block; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 12px; font-size: 15px; }
.dday strong { color: #ffb4a8; }

/* 공지 */
/* 맨 위 공지 띠 */
.notice-bar { background: #fff1c2; border-top: 2px solid #f4d985; border-bottom: 2px solid #f4d985; }
.notice-bar-inner { width: 100%; height: 40px; padding: 0 24px; display: flex; align-items: center; gap: 12px;
  background: none; border: 0; font: inherit; color: #5c4500; cursor: pointer; text-align: left; }
.notice-tag { flex-shrink: 0; font-size: 12px; font-weight: 800; color: #fff; background: var(--red); padding: 2px 10px; border-radius: 99px; }
.notice-roll { flex: 1; min-width: 0; height: 22px; overflow: hidden; }
.notice-track { display: flex; flex-direction: column; transition: transform .5s ease; }
.notice-item { height: 22px; line-height: 22px; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-more { flex-shrink: 0; font-size: 12px; color: #8a6d1a; }
.notice-more::after { content: " ›"; }
.notice-bar-inner:hover .notice-item { text-decoration: underline; }
.modal.notice-dialog { max-width: 480px; text-align: left; }
.notice-bar-inner:focus { outline: none; }
.notice-bar-inner:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.notice-dialog h3 { text-align: center; margin-bottom: 6px; }
.notice-list { list-style: none; display: grid; gap: 10px; max-height: 60vh; overflow-y: auto; }
.notice-list li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.notice-list time { color: var(--muted); font-size: 12px; }
.notice-list p { color: var(--muted); font-size: 14px; }

/* 프로필 */
.profile { display: flex; gap: 32px; align-items: center; }
.avatar { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; background: #222; box-shadow: 0 8px 24px rgba(0,0,0,.12); flex-shrink: 0; }
.profile dl { display: grid; grid-template-columns: 90px 1fr; gap: 10px 16px; font-size: 16px; }
.profile dt { color: var(--muted); }
.profile dd { font-weight: 600; }

/* 타임라인 */
.timeline { list-style: none; border-left: 2px solid var(--line); margin-left: 8px; }
.timeline li { position: relative; padding: 0 0 22px 28px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2.5px solid var(--red); }
.timeline .year { font-weight: 800; color: var(--red); }

/* 영상 */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px 18px; }
.video-grid figure { min-width: 0; }
.video { position: relative; display: block; width: 100%; aspect-ratio: 16/9; border: 0; padding: 0; border-radius: 14px; overflow: hidden; cursor: pointer; background: #000; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: .2s; }
.video:hover img { opacity: 1; transform: scale(1.03); }
.video .play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(224,48,30,.92); color: #fff; font-size: 18px; padding-left: 3px; box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.video iframe { width: 100%; height: 100%; border: 0; }
.video-grid figcaption { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.video-grid figcaption b { font-weight: 700; line-height: 1.4; }
.video-meta { color: var(--muted); font-size: 13px; }
.video-comment { display: block; margin-top: 4px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-size: 13.5px; line-height: 1.5; color: #3a3a42; quotes: none; }
.video-comment::before { content: "시청자 댓글"; display: block; font-size: 11px; font-weight: 700; color: var(--red); margin-bottom: 2px; }

/* 스케줄 */
.schedule { list-style: none; display: grid; gap: 10px; }
.schedule li { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 20px; }
.schedule time { font-weight: 700; color: var(--red); }
.schedule span { font-size: 13px; color: var(--muted); background: var(--bg); padding: 2px 10px; border-radius: 99px; justify-self: start; }
.schedule li.past { opacity: .45; }

/* 팬 공간 */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; transition: .2s; }
.card:hover { border-color: var(--red); transform: translateY(-2px); }
.card p { color: var(--muted); font-size: 14px; margin-top: 4px; }

footer { text-align: center; color: var(--muted); font-size: 13px; padding: 40px 24px 56px; }
footer p + p { margin-top: 6px; }
.official { margin: 0 auto 32px; max-width: 760px; }
.official-group + .official-group { margin-top: 24px; }
.official-title { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 14px; }
.official-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.official-link { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; text-align: left; transition: .2s; }
.official-link:hover { border-color: var(--red); transform: translateY(-2px); }
.official-link svg { width: 28px; height: 28px; flex-shrink: 0; }
.official-link b { display: block; font-size: 14px; color: var(--ink); }
.official-link small { display: block; font-size: 12px; color: var(--muted); }
.official + p { padding-top: 24px; border-top: 1px solid var(--line); }


/* ---------- 커뮤니티 공통 ---------- */
[hidden] { display: none !important; }
body.no-scroll { overflow: hidden; }
.test-banner { background: #fff4d6; color: #7a5a00; font-size: 13px; text-align: center; padding: 6px 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 15px; font-weight: 700; cursor: pointer; transition: .15s; }
.btn:hover { border-color: var(--ink); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: #c4271a; border-color: #c4271a; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { border-color: transparent; color: var(--ink); }
.btn-block { display: flex; width: 100%; }
.btn-danger-text { color: var(--red); }
.btn svg { width: 20px; height: 20px; }
.btn-kakao { background: #fee500; border-color: #fee500; color: #191919; }
.btn-google { background: #fff; color: #1f1f1f; }
.input { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); outline: none; resize: vertical; }
.input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(224,48,30,.12); }
.form-error { color: var(--red); font-size: 13px; }
.link-btn { background: none; border: 0; color: var(--muted); font-size: 12px; cursor: pointer; padding: 2px 4px; margin-left: auto; }
.link-btn:hover { color: var(--red); }
.empty { color: var(--muted); text-align: center; padding: 28px 12px; list-style: none; }
.soon { background: var(--card); border: 1px dashed var(--line); border-radius: 14px; padding: 20px; color: var(--muted); text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }

/* 로그인 버튼 (상단) */
.auth-slot { margin-left: 20px; }
.auth-chip { font: inherit; font-size: 14px; font-weight: 700; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); cursor: pointer; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-chip.auth-login { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 모달 */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(20,20,24,.45); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .15s; }
.modal { width: 100%; max-width: 380px; background: var(--bg); border-radius: 20px; padding: 28px 22px 16px; display: flex; flex-direction: column; gap: 10px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal h3 { font-size: 20px; }
.modal-logo { width: 48px; height: 48px; margin: 0 auto 4px; }
.modal-desc { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.modal-note { color: var(--muted); font-size: 12px; margin-top: 4px; }
.modal-note a { text-decoration: underline; }
.modal-note.test { color: #7a5a00; }
.login-buttons, .nick-form { display: flex; flex-direction: column; gap: 10px; }
@keyframes fade { from { opacity: 0; } }

/* 한줄응원 */
.cheer-form { margin-bottom: 14px; }
.cheer-input { display: flex; gap: 8px; }
.cheer-input .input { flex: 1; }
.cheer-input .btn { flex-shrink: 0; }
.cheer-meta { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--muted); }
.cheer-meta .count { margin-left: auto; }
.cheer-list, .comments ul { list-style: none; display: grid; gap: 8px; margin-bottom: 12px; }
.cheer-list li, .comments li:not(.empty) { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.cheer-head { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 2px; }
.cheer-head time { color: var(--muted); font-size: 12px; }
.cheer-list p, .comments li p { font-size: 15px; word-break: break-word; }

/* 자유게시판 */
.view-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.view-head h2 { margin-bottom: 0; }
.post-list { list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.post-list li + li { border-top: 1px solid var(--line); }
.post-list a { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; }
.post-list a:hover { background: #fffdfb; }
.post-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-title em { font-style: normal; color: var(--red); font-size: 14px; }
.post-meta { color: var(--muted); font-size: 13px; }
.pager { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pager a { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-size: 14px; }
.pager a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.view { padding: 32px 0 64px; min-height: 70vh; }
.write-form { display: flex; flex-direction: column; gap: 10px; }
.post { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-bottom: 20px; }
.post h1 { font-size: 24px; line-height: 1.35; letter-spacing: -.5px; }
.post .post-meta { margin: 6px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.post-body { font-size: 16px; line-height: 1.75; word-break: break-word; }
.privacy h3 { font-size: 16px; margin: 18px 0 4px; }
.privacy p { color: #3a3a42; font-size: 15px; }
.comments h3 { font-size: 17px; margin-bottom: 10px; }
.comments h3 span { color: var(--red); }
.comment-form { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.footer-link { text-decoration: underline; }

/* 하단 탭바: 모바일에서만 */
.tabbar { display: none; }

/* ---------- 모바일 ---------- */
@media (max-width: 760px) {
  :root { --topbar-h: 54px; }
  .desktop-nav { display: none; }
  .auth-slot { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); margin: 0; }
  .auth-chip { font-size: 13px; padding: 6px 12px; max-width: 110px; }
  .view { padding: 20px 0 calc(var(--tabbar-h) + 40px); }
  .post { padding: 18px; }
  .post h1 { font-size: 20px; }
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal { max-width: none; border-radius: 22px 22px 0 0; padding-bottom: calc(16px + var(--safe-b)); }
  .topbar { justify-content: center; padding: 0 16px; }
  .logo { font-size: 18px; }

  main { padding: 0 18px; }
  section { padding: 40px 0; }
  h2 { font-size: 22px; margin-bottom: 18px; }

  .hero { padding: 40px 0 40px; }
  .banner { background-image: url(images/banner-mobile.jpg); }
  .banner-inner { height: 50vw; min-height: 180px; gap: 14px; padding: 0 18px; }
  .banner.has-photo .banner-photo { height: 72%; padding: 5px 5px 16px; }
  .banner-sub { padding: 3px 12px 1px; }
  .hero .sub { font-size: 16px; }
  .slogan { font-size: 15px; }
  .dday { width: 100%; text-align: center; padding: 14px; font-size: 16px; }

  .notice-bar-inner { height: 38px; padding: 0 14px; gap: 8px; }
  .notice-item { font-size: 13px; }
  .notice-more { display: none; }

  .profile { flex-direction: column; gap: 20px; }
  .avatar { width: 140px; height: 140px; }
  .profile dl { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; grid-template-columns: 72px 1fr; font-size: 15px; }

  /* 영상: 옆으로 넘기는 카드 */
  .m-only { display: inline; }
  .video-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -18px; padding: 0 18px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .video-grid::-webkit-scrollbar { display: none; }
  .video-grid figure { flex: 0 0 84%; scroll-snap-align: center; }
  .video-grid figcaption b { font-size: 15px; }

  .schedule li { grid-template-columns: 1fr; gap: 4px; padding: 16px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { padding: 16px; min-height: 92px; }

  .official-links { flex-direction: column; }
  .official-link { padding: 14px 16px; }
  footer { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 32px); }

  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
    background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; white-space: nowrap; font-weight: 600; color: var(--muted); }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a.active { color: var(--red); }
  .tabbar a.active svg { stroke-width: 2.3; }
}

/* =========================================================
   귀여운 크레파스 테마 (배너와 같은 분위기)
   ========================================================= */
:root {
  --red: #f0634f;          /* 산호색 포인트 */
  --blue: #2f6fb8;         /* 크레파스 파랑 (제목) */
  --sun: #f6b41e;          /* 햇살 노랑 */
  --sky: #e6f3fb;          /* 연한 하늘 */
  --sky-line: #d4e8f6;     /* 하늘색 테두리 */
  --bg: #fffaf0;           /* 크림색 종이 */
  --line: #ecdfcd;
  --hand: "Gaegu", Pretendard, sans-serif;
  --wobbly: 22px 18px 24px 20px / 20px 24px 18px 22px;  /* 손으로 그린 듯한 모서리 */
}
body {
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .45 0 0 0 0 .3 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 상단바 */
.topbar { background: rgba(255,250,240,.9); border-bottom: 2px dashed var(--sky-line); }
.logo { font-family: var(--hand); font-size: 26px; font-weight: 700; letter-spacing: 0; }
.logo img { width: 34px; height: 34px; }
.logo b { color: var(--blue); }
.desktop-nav { font-family: var(--hand); font-size: 21px; font-weight: 700; gap: 24px; }
.desktop-nav a:hover { color: var(--blue); }
.auth-chip { font-family: var(--hand); font-size: 18px; border: 2px solid var(--sky-line); border-radius: 99px; }
.auth-chip.auth-login { background: var(--blue); border-color: var(--blue); box-shadow: 0 3px 0 #1f4f87; }

/* 공지 띠 */
.notice-tag { font-family: var(--hand); font-size: 15px; padding: 0 10px; }
.notice-item { font-family: var(--hand); font-size: 18px; }

/* 섹션 */
section { border-bottom: 2px dashed var(--sky-line); }
h2 { font-family: var(--hand); font-size: 36px; font-weight: 700; color: var(--blue); letter-spacing: 0; display: flex; align-items: center; gap: 8px; }
h2::before { width: 38px; height: 38px; border-radius: 0; margin: 0; background: url(images/doodles/star.png) center / contain no-repeat; flex-shrink: 0; }
#cheer h2::before { background-image: url(images/doodles/heart.png); }
#profile h2::before { background-image: url(images/doodles/star.png); }
#archive h2::before { background-image: url(images/doodles/sun.png); }
#videos h2::before { background-image: url(images/doodles/sparkle.png); }
#board h2::before, .view h2::before { background-image: url(images/doodles/cloud.png); width: 46px; }
.hint { font-size: 15px; }

/* 메인 소개 */
.eyebrow { font-family: var(--hand); font-size: 19px; border: 2px dashed var(--red); background: #fff; padding: 0 14px; }
.hero h1 { font-family: var(--hand); font-weight: 700; font-size: clamp(46px, 8vw, 84px); letter-spacing: 0; line-height: 1.15; color: #2b2b33; }
.hero h1 em { color: var(--red); background: linear-gradient(transparent 64%, #ffe08a 64%, #ffe08a 92%, transparent 92%); padding: 0 4px; }
.slogan { font-family: var(--hand); font-size: 22px; font-weight: 700; border: 2px dashed var(--sky-line); padding: 6px 18px 6px 10px; }
.slogan img { width: 38px; height: 30px; object-fit: contain; }
.slogan b { color: var(--red); }
.dday { display: inline-flex; align-items: center; gap: 8px; background: #fff1c2; color: #5c4500; border: 2px solid #f4d985; border-radius: 99px;
  font-family: var(--hand); font-size: 22px; font-weight: 700; padding: 6px 22px 6px 12px; box-shadow: 0 3px 0 #f4d985; }
.dday::before { content: ""; width: 34px; height: 34px; background: url(images/doodles/sun.png) center / contain no-repeat; }
.dday strong { color: var(--red); }

/* 카드 공통: 하늘색 테두리 + 손그림 모서리 */
.cheer-list li, .comments li:not(.empty), .post-list, .post, .video-comment, .official-link, .notice-list li, .soon {
  background: #fff; border: 2px solid var(--sky-line); border-radius: var(--wobbly); box-shadow: 0 4px 0 var(--sky);
}
.post-list li + li { border-top: 2px dashed var(--sky); }
.post-list a:hover { background: #f7fbfe; }
.post-title { font-size: 16px; }
.cheer-head b { font-family: var(--hand); font-size: 18px; color: var(--blue); }
.cheer-list li:nth-child(3n+1) { transform: rotate(-.4deg); }
.cheer-list li:nth-child(3n+2) { transform: rotate(.3deg); }

/* 입력창, 버튼 */
.input { border: 2px solid var(--sky-line); border-radius: 18px; }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,111,184,.12); }
.btn { border: 2px solid var(--sky-line); border-radius: 18px; font-family: var(--hand); font-size: 20px; }
.btn-primary { background: var(--red); border-color: var(--red); box-shadow: 0 3px 0 #c94a39; }
.btn-primary:hover { background: #e95641; border-color: #e95641; transform: translateY(1px); box-shadow: 0 2px 0 #c94a39; }
.btn-ghost { border-color: transparent; box-shadow: none; }
.btn-kakao, .btn-google { font-family: Pretendard, sans-serif; font-size: 15px; }
.pager a { border: 2px solid var(--sky-line); border-radius: 12px; font-family: var(--hand); font-size: 18px; }
.pager a.on { background: var(--blue); border-color: var(--blue); }

/* 빈 목록: 웃는 구름 */
.empty { font-family: var(--hand); font-size: 20px; }
.empty::before { content: ""; display: block; width: 72px; height: 56px; margin: 0 auto 6px; background: url(images/doodles/cloud.png) center / contain no-repeat; }

/* 프로필 */
.profile dl { font-size: 16px; }
.profile dt { font-family: var(--hand); font-size: 19px; color: var(--blue); }
.avatar { box-shadow: 0 6px 0 var(--sky), 0 10px 24px rgba(47,111,184,.15); }

/* 활동 아카이브: 별 스티커 */
.timeline { border-left: 2px dashed var(--sky-line); }
.timeline li::before { left: -12px; top: 2px; width: 22px; height: 22px; border: 0; border-radius: 0; background: url(images/doodles/star.png) center / contain no-repeat; }
.timeline .year { font-family: var(--hand); font-size: 24px; color: var(--blue); }

/* 영상 */
.video { border-radius: 20px; border: 3px solid #fff; box-shadow: 0 4px 0 var(--sky-line); }
.video .play { background: rgba(240,99,79,.95); }
.video-comment::before { color: var(--blue); font-family: var(--hand); font-size: 15px; content: "시청자 댓글 ♡"; }

/* 모달 */
.modal { background: var(--bg); border: 3px solid var(--sky-line); }
.modal h3 { font-family: var(--hand); font-size: 28px; color: var(--blue); }
.modal-logo { width: 84px; height: 64px; object-fit: contain; }

/* 게시글 */
.post h1 { font-family: var(--hand); font-size: 30px; color: #2b2b33; }
.comments h3 { font-family: var(--hand); font-size: 24px; color: var(--blue); }

/* 바닥글: 하늘색 + 구름 */
footer { position: relative; margin-top: 56px; background: var(--sky); padding-top: 56px; }
footer::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cpath d='M0 24 Q15 0 30 14 Q45 0 60 14 Q75 0 90 14 Q105 0 120 24 Z' fill='%23e6f3fb'/%3E%3C/svg%3E") repeat-x bottom / 120px 24px; }
footer::after { content: ""; position: absolute; right: 6%; top: -48px; width: 96px; height: 74px; background: url(images/doodles/cloud.png) center / contain no-repeat; transform: rotate(6deg); }
.official-title { font-family: var(--hand); font-size: 24px; color: var(--blue); }
.official + p { border-top: 2px dashed var(--sky-line); }

/* 모바일 */
@media (max-width: 760px) {
  .logo { font-size: 23px; }
  .logo img { width: 30px; height: 30px; }
  h2 { font-size: 30px; }
  h2::before { width: 32px; height: 32px; }
  .hero h1 { font-size: clamp(30px, 9vw, 44px); }
  .auth-chip { font-size: 16px; padding: 3px 12px; }
  .dday { width: auto; justify-content: center; font-size: 20px; }
  .slogan { font-size: 19px; }
  .profile dl { border: 2px solid var(--sky-line); border-radius: var(--wobbly); box-shadow: 0 4px 0 var(--sky); }
  .tabbar { border-top: 2px dashed var(--sky-line); background: rgba(255,250,240,.96); }
  .tabbar a { font-family: var(--hand); font-size: 15px; font-weight: 700; }
  footer::after { width: 72px; height: 56px; top: -40px; }
}

/* 프로필 사진 (유튜브 채널 프로필) */
.avatar-wrap { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.avatar { object-position: 55% 30%; }
.avatar-wrap figcaption { font-size: 12px; color: var(--muted); }

/* 닉네임 중복검사 표시 */
.nick-status { min-height: 20px; font-size: 13px; color: var(--muted); text-align: left; padding-left: 4px; }
.nick-status.good { color: #2e8b57; }
.nick-status.good::before { content: "✓ "; }
.nick-status.bad { color: var(--red); }

/* 개발자 건의사항 */
#feedback h2::before { background-image: url(images/doodles/rainbow.png); width: 52px; }
.sug-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.sug-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sug-visibility { display: inline-flex; background: #fff; border: 2px solid var(--sky-line); border-radius: 99px; padding: 3px; }
.sug-visibility label { cursor: pointer; }
.sug-visibility input { position: absolute; opacity: 0; pointer-events: none; }
.sug-visibility span { display: block; padding: 4px 16px; border-radius: 99px; font-family: var(--hand); font-size: 18px; font-weight: 700; color: var(--muted); }
.sug-visibility input:checked + span { background: var(--blue); color: #fff; }
.sug-visibility input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.sug-help { font-size: 12.5px; color: var(--muted); }
.sug-list { list-style: none; display: grid; gap: 10px; }
.sug-list li:not(.empty):not(.empty-lite) { position: relative; background: #fff; border: 2px solid var(--sky-line); border-radius: var(--wobbly); box-shadow: 0 4px 0 var(--sky); padding: 12px 16px 12px; }
.sug-list li.is-private { background: #fbfaf6; border-style: dashed; }
.sug-list li p { font-size: 15px; word-break: break-word; margin: 2px 0 8px; }
.empty-lite { list-style: none; color: var(--muted); text-align: center; padding: 16px; }
.sug-rank { font-family: var(--hand); font-size: 15px; font-weight: 700; color: #fff; background: var(--sun); border-radius: 99px; padding: 0 8px; }
.sug-lock { font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 0 8px; }
.sug-lock::before { content: "🔒 "; }
.like-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 700; color: var(--blue);
  background: var(--sky); border: 2px solid var(--sky-line); border-radius: 99px; padding: 2px 12px; cursor: pointer; transition: .15s; }
.like-btn:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--blue); }
.like-btn.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.like-btn:disabled { cursor: default; opacity: .6; }

/* 회원 전용 안내 */
.members-only { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 16px; color: var(--muted); text-align: center; }
.members-only::before { content: ""; width: 64px; height: 50px; background: url(images/doodles/cloud.png) center / contain no-repeat; }

/* 방문자 통계 (운영자) */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 6px; }
.stats-grid div { background: #fff; border: 2px solid var(--sky-line); border-radius: 16px; padding: 10px 8px; display: flex; flex-direction: column; align-items: center; }
.stats-grid small { font-size: 12px; color: var(--muted); }
.stats-grid b { font-family: var(--hand); font-size: 34px; line-height: 1.1; color: var(--blue); }
.stats-grid em { font-style: normal; font-size: 11px; color: var(--muted); }
.stats-label { font-family: var(--hand); font-size: 18px; color: var(--blue); text-align: left; margin-top: 6px; }
.stats-bars { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 140px; align-items: end; padding: 8px; background: #fff; border: 2px solid var(--sky-line); border-radius: 16px; }
.stats-bars li { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; }
.stats-bars .bar { width: 70%; min-height: 3px; background: var(--sky-line); border-radius: 6px 6px 2px 2px; }
.stats-bars li:last-child .bar { background: var(--red); }
.stats-bars b { font-size: 12px; }
.stats-bars small { font-size: 10px; color: var(--muted); }

/* 요즘 재재: 분류 꼬리표, 추천 시간, 더 보기 */
.video { position: relative; }
.video-tag { position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 253, 246, .92); border: 2px solid var(--sky-line); color: var(--blue); font-family: var(--hand); font-size: 15px; line-height: 1.3; pointer-events: none; }
.video-slot { display: inline-block; margin: -4px 0 14px; padding: 2px 12px; border-radius: 999px; background: #fff; border: 2px dashed var(--sky-line); color: var(--red); font-family: var(--hand); font-size: 17px; }
#video-more { margin-top: 18px; }
