/* 개인용 귀여운 테마 (리락쿠마 · 치이카와 · 하치와레 · 우사기). 공식 이미지를 쓰므로 공개 배포 금지. */
:root {
  --paper: #fdf3e1;
  --paper-2: #fbe9cf;
  --card: #fffdf6;
  --ink: #5a4036;
  --ink-2: #7a5e50;
  --muted: #a98a6d;
  --line: #5a4036;
  --mikan: #c98a4b;
  --mikan-deep: #a96a2c;
  --mikan-soft: #ffe9b8;
  --doyo: #e0698a;
  --doyo-soft: #ffe1e8;
  --cheol: #4f86b8;
  --cheol-soft: #d9ecf8;
  --night: #ffe6ee;
  --night-2: #fffdf6;
  --on-night: #5a4036;
  --btn: #ff9db4;
  --btn-hover: #ff86a3;
  --free-ink: #8a5a14;
  --warn-ink: #b13a5c;
  --shadow: #ecd2b4;
  --font-body: "Jua", "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-display: "Jua", "Pretendard Variable", sans-serif;
}
html, body { overflow-x: clip; }
body {
  background: var(--paper) radial-gradient(#f1dcb8 1.6px, transparent 1.8px) 0 0 / 20px 20px;
  color: var(--ink);
  font-size: 17px;
  word-break: keep-all;
}
:focus-visible { outline: 3px solid var(--doyo); }

/* ----- cover ----- */
.cover { border-bottom: 4px solid var(--ink); }
.cover::after { background: linear-gradient(180deg, rgba(90,64,54,0.02) 20%, rgba(90,64,54,0.78) 92%); }
.cover h1 { font-weight: 400; font-size: 46px; text-shadow: 3px 3px 0 var(--ink), 0 0 14px rgba(0,0,0,.35); color: #fff; letter-spacing: 0; }
.cover { color: #fff; }
.cover p { color: #fff; opacity: 1; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.cover-in { padding-bottom: 128px; }
.fact { background: rgba(255,250,240,.92); color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 2px 0 var(--ink); }
.fact.dday { background: var(--btn); color: var(--ink); font-weight: 400; }
.cover-chars { position: absolute; left: 0; right: 0; bottom: 4px; display: flex; align-items: flex-end; justify-content: center; gap: 2px; z-index: 2; pointer-events: none; padding: 0 8px; }
.cover-chars img { object-fit: contain; filter: drop-shadow(0 3px 0 rgba(90,64,54,.35)); animation: bob 3.4s ease-in-out infinite; }
.cover-chars .c-rila { width: 118px; height: 118px; }
.cover-chars .c-chii { width: 86px; height: 86px; animation-delay: -.7s; }
.cover-chars .c-hachi { width: 86px; height: 86px; animation-delay: -1.4s; }
.cover-chars .c-usagi { width: 82px; height: 92px; animation-delay: -2.1s; }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -5px; } }

.btn { background: var(--btn); color: var(--ink); font-weight: 400; font-size: 17px; border: 2.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.btn.ghost { background: #fff; color: var(--ink); border: 2.5px solid var(--ink); }
.btn.ghost:hover { background: var(--paper-2); }

/* ----- tabs ----- */
.tabs { background: var(--paper); border-bottom: 3px solid var(--ink); }
.tab { border: 2px solid transparent; color: var(--ink-2); font-size: 16px; }
.tab:hover { background: var(--paper-2); }
.tab.on { background: var(--btn); color: var(--ink); border-color: var(--ink); box-shadow: 0 2px 0 var(--ink); }

/* ----- section heads with mascots ----- */
.sec-head { position: relative; padding-right: 76px; min-height: 64px; }
.sec-head h2 { font-weight: 400; font-size: 31px; color: var(--ink); text-shadow: 2px 2px 0 #fff, 3px 3px 0 var(--shadow); }
.sec-head::after { content: ""; position: absolute; right: -2px; top: -6px; width: 72px; height: 72px; background: center / contain no-repeat; filter: drop-shadow(0 2px 0 rgba(90,64,54,.25)); animation: bob 3.4s ease-in-out infinite; }
#prep .sec-head::after { background-image: url(img/chars/korilakkuma.png); }
#d1 .sec-head::after { background-image: url(img/chars/chiikawa.webp); }
#d2 .sec-head::after { background-image: url(img/chars/hachiware.webp); }
#d3 .sec-head::after { background-image: url(img/chars/usagi.webp); }
#explore .sec-head::after { background-image: url(img/chars/rilakkuma.png); }
#talk .sec-head::after { background-image: url(img/chars/chiikawa.webp); }
#map .sec-head::after { background-image: url(img/chars/usagi.webp); }
.day-num { font-family: var(--font-display); color: var(--mikan-deep); }

.day-photo { border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--shadow); }
.timeline::before { background: none; border-left: 2.5px dashed var(--ink); width: 0; }
.stop .time { color: var(--ink-2); font-size: 15px; }
.stop .dot { background: var(--btn); border: 2.5px solid var(--ink); width: 14px; height: 14px; left: 44px; top: 18px; }
.stop.minor .dot { background: #fff; border-color: var(--ink); width: 11px; height: 11px; left: 45.5px; }

/* ----- cards, panels ----- */
.card, .panel, .story { background: var(--card); border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--shadow); }
.card { border-radius: 18px; }
.card:hover { border-color: var(--ink); background: #fff; }
.card:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }
.card h3 { font-weight: 400; font-size: 19px; }
.card .thumb { border: 2px solid var(--ink); }
.card .more { color: var(--doyo); font-weight: 400; }
.panel { border-radius: 18px; position: relative; }
.panel h3 { font-weight: 400; font-size: 21px; }
.panel.has-char { padding-right: 96px; }
.panel .p-char { position: absolute; right: 8px; bottom: 8px; width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 2px 0 rgba(90,64,54,.25)); }
.wx div { background: var(--paper); border: 2px dashed var(--muted); }
.wx strong { font-weight: 400; color: var(--mikan-deep); }
.progress { border: 2px solid var(--ink); height: 12px; background: #fff; }
.progress i { background: var(--btn); }
.checks li { border-top: 2px dashed var(--shadow); }
.checks input { accent-color: var(--doyo); }

.tag { border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font-size: 13px; }
.tag.free { background: var(--mikan-soft); color: var(--free-ink); }
.tag.warn { background: var(--doyo-soft); color: var(--warn-ink); }
.tag.opt { background: var(--cheol-soft); color: #2f5f8f; }
.chip { border: 2px solid var(--ink); background: #fff; color: var(--ink); font-size: 15px; box-shadow: 0 2px 0 var(--ink); }
.chip[aria-pressed="true"] { background: var(--btn); color: var(--ink); border-color: var(--ink); }
.badge-new { color: var(--doyo); font-weight: 400; }

/* ----- comment bubbles with mascot avatars ----- */
.bubble { border: 2px solid var(--ink); border-radius: 18px; font-size: 15px; line-height: 1.4; padding: 7px 12px 7px 10px; }
.bubble::before { content: ""; float: left; width: 32px; height: 32px; margin: -2px 8px 0 -2px; background: center / contain no-repeat; }
.bubble.doyo::before { background-image: url(img/chars/chiikawa.webp); }
.bubble.cheol::before { background-image: url(img/chars/rilakkuma_face.png); }
.bubble.doyo { background: var(--doyo-soft); border-bottom-left-radius: 5px; }
.bubble.cheol { background: var(--cheol-soft); border-bottom-right-radius: 5px; }
.bubble b { font-weight: 400; }
.bubble.new { box-shadow: 0 0 0 3px var(--btn); }

/* ----- talk (was dark) ----- */
.night { background: var(--night); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); color: var(--ink); }
.night .sec-head p { color: var(--ink-2); opacity: 1; }
.thread { background: #fff; border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--shadow); border-radius: 18px; }
.thread .about { color: var(--ink-2); opacity: 1; }

/* ----- map ----- */
.mapbox, .sh-map { border: 3px solid var(--ink); border-radius: 18px; box-shadow: 3px 3px 0 var(--shadow); }

/* ----- footer ----- */
footer { color: var(--muted); font-size: 13px; text-align: center; }
.foot-chars { display: flex; justify-content: center; align-items: flex-end; gap: 4px; margin: 4px 0 14px; }
.foot-chars img { width: 64px; height: 64px; object-fit: contain; animation: bob 3.4s ease-in-out infinite; }
.foot-chars img:nth-child(2) { animation-delay: -.8s; } .foot-chars img:nth-child(3) { animation-delay: -1.6s; } .foot-chars img:nth-child(4) { animation-delay: -2.4s; }

/* ----- bottom sheet ----- */
.scrim { background: rgba(90,64,54,.5); }
.sheet { background: var(--paper); border-top: 3px solid var(--ink); border-radius: 26px 26px 0 0; }
.sheet .grab { background: var(--paper); border-radius: 26px 26px 0 0; }
.sheet .grab span { background: var(--ink); opacity: .55; }
.sheet .close { background: #fff; border: 2px solid var(--ink); box-shadow: 0 2px 0 var(--ink); }
.sh-body h2 { font-weight: 400; font-size: 29px; text-shadow: 2px 2px 0 #fff, 3px 3px 0 var(--shadow); }
.story h4 { color: var(--doyo); font-weight: 400; font-size: 16px; }
.sh-h { font-weight: 400; font-size: 18px; color: var(--mikan-deep); }
.sh-photo { border-bottom: 3px solid var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .cover-chars img, .sec-head::after, .foot-chars img { animation: none; }
}
