/* ===== 디자인 토큰: 하늘색 톤 ===== */
:root {
  --bg-top: #f1f8fe;
  --bg-bottom: #ddedf9;
  --surface: #ffffff;
  --tile: #f6fafd;
  --tile-line: #e2ecf5;
  --ink: #12263b;
  --ink-2: #3c5368;
  --ink-soft: #7d92a6;
  --line: #d3e2ee;
  --navy: #163252;          /* 레퍼런스의 검정 포인트 → 네이비 */
  --sky: #59b2ec;
  --sky-deep: #2479bd;
  --sky-soft: #e2f1fc;
  --red: #e5484d;
  --holiday: #e0434f;
  --radius-lg: 24px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(36, 121, 189, 0.10), 0 2px 6px rgba(18, 38, 59, 0.05);
  --font: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;

  /* 관리자 페이지에서 쓰는 이름 (호환) */
  --accent: var(--sky);
  --accent-ink: var(--sky-deep);
  --accent-soft: var(--sky-soft);
  --today: var(--sky);

  --c-pink: #ffdbe6;     --c-pink-ink: #c43d6d;
  --c-lavender: #e6e0ff; --c-lavender-ink: #6a54c9;
  --c-mint: #d3f3e6;     --c-mint-ink: #23845f;
  --c-sky: #d6ecfd;      --c-sky-ink: #2479bd;
  --c-butter: #fff2c4;   --c-butter-ink: #9a7200;
  --c-peach: #ffe2d4;    --c-peach-ink: #bd5a2b;
  --c-gray: #e9eef3;     --c-gray-ink: #6d7f91;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 85% -80px, rgba(255, 255, 255, .9), transparent 70%),
    radial-gradient(700px 500px at -10% 40%, rgba(197, 228, 250, .55), transparent 70%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  background-attachment: fixed;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; }
.ico { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -0.125em; }

[data-color="pink"]     { --chip: var(--c-pink);     --chip-ink: var(--c-pink-ink); }
[data-color="lavender"] { --chip: var(--c-lavender); --chip-ink: var(--c-lavender-ink); }
[data-color="mint"]     { --chip: var(--c-mint);     --chip-ink: var(--c-mint-ink); }
[data-color="sky"]      { --chip: var(--c-sky);      --chip-ink: var(--c-sky-ink); }
[data-color="butter"]   { --chip: var(--c-butter);   --chip-ink: var(--c-butter-ink); }
[data-color="peach"]    { --chip: var(--c-peach);    --chip-ink: var(--c-peach-ink); }
[data-color="gray"]     { --chip: var(--c-gray);     --chip-ink: var(--c-gray-ink); }

.empty { color: var(--ink-soft); font-size: 13px; text-align: center; padding: 14px 0; }
.skeleton { background: linear-gradient(90deg, #edf4fa, #fff 50%, #edf4fa); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ===== 상세 시트 ===== */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(18, 38, 59, .38); display: flex; align-items: flex-end; justify-content: center;
  z-index: 50; animation: fade .15s ease-out;
}
.sheet {
  background: var(--surface); width: min(560px, 100%); max-height: 88%; overflow: auto;
  border-radius: 22px 22px 0 0; padding: 12px 20px 22px; animation: up .2s ease-out; position: relative;
}
@media (min-width: 640px) {
  .sheet-backdrop { align-items: center; }
  .sheet { border-radius: 22px; }
}
.sheet-grip { width: 40px; height: 5px; border-radius: 999px; background: var(--line); margin: 0 auto 12px; }
.sheet-close {
  position: absolute; top: 12px; right: 14px; background: var(--tile); color: var(--ink-2);
  width: 32px; height: 32px; border-radius: 50%; font-size: 15px; border: 1px solid var(--tile-line);
}
.sheet-title { font-size: 20px; padding-right: 40px; }
.sheet-sub { color: var(--ink-soft); font-size: 13px; margin: 3px 0 12px; }
.sheet-entry { border-top: 1px solid var(--tile-line); padding: 14px 0; display: flex; flex-direction: column; gap: 9px; }
.sheet-entry:first-of-type { border-top: 0; }
.sheet-entry h3 { font-size: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sheet-time { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--sky-soft); color: var(--sky-deep); }
.sheet-entry.off .sheet-time { background: var(--c-gray); color: var(--c-gray-ink); }
.sheet-img-btn { border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.sheet-img-btn img { width: 100%; max-height: 280px; object-fit: cover; }
.sheet-desc { white-space: pre-wrap; font-size: 14px; margin: 0; color: var(--ink-2); }
.btn-link {
  align-self: flex-start; background: var(--navy); color: #fff; padding: 8px 16px;
  border-radius: 999px; font-size: 13px; font-weight: 700;
}
.btn-link:hover { background: var(--sky-deep); }
.btn-link.steam { display: inline-flex; align-items: center; gap: 7px; background: #171a21; padding-left: 9px; }
.btn-link.steam:hover { background: #2a475e; }
.btn-link .steam-logo { width: 18px; height: 18px; border-radius: 50%; }

.lightbox { position: fixed; inset: 0; background: rgba(10, 20, 32, .86); z-index: 60; display: grid; place-items: center; cursor: zoom-out; padding: 16px; animation: fade .15s; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }

@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(24px); opacity: .5; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
