:root {
  --bg: #0a0713;
  --bg-app: #050308;
  --card: #15102a;
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f5f3ff;
  --text-muted: #a89fc9;
  --text-faint: #6f6690;
  --pink: #ff6ec7;
  --purple: #8c6bff;
  --cyan: #37d9ff;
  --gradient: linear-gradient(95deg, var(--pink) 0%, var(--purple) 55%, var(--cyan) 100%);
  --notice-bg: rgba(140, 107, 255, 0.14);
  --notice-border: rgba(140, 107, 255, 0.4);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg-app);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Pretendard', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  -webkit-font-smoothing: antialiased;
}

#app-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  padding-bottom: 48px;
  box-shadow: var(--shadow);
}

/* ---------- 헤더 / 히어로 ---------- */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 720 / 405;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.board-label {
  text-align: center;
  padding: 14px 20px 6px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.updated-at {
  text-align: center;
  font-size: 11px;
  color: var(--text-faint);
  padding-bottom: 8px;
}

/* ---------- 전체공지 ---------- */
.notice-section {
  margin: 8px 16px 20px;
}

.notice-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notice-card {
  background: var(--notice-bg);
  border: 1px solid var(--notice-border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.notice-card .notice-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.notice-card .notice-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  white-space: pre-wrap;
}

/* ---------- 일정 타임라인 ---------- */
.timeline-section {
  margin: 0 16px;
}

.timeline-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.08em;
  margin: 18px 0 10px;
}

.timeline {
  position: relative;
  padding-left: 18px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--pink), var(--purple), var(--cyan));
  opacity: 0.5;
}

.event-item {
  position: relative;
  margin-bottom: 14px;
}

.event-item::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 3px rgba(140, 107, 255, 0.25);
}

.event-item.is-past::before {
  background: var(--text-faint);
  box-shadow: none;
}

.event-item.is-past .event-card {
  opacity: 0.55;
}

.event-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.event-date {
  flex: 0 0 auto;
  width: 52px;
  text-align: center;
}

.event-date .day {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.event-date .month {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 2px;
}

.event-main {
  flex: 1 1 auto;
  min-width: 0;
}

.event-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-meta {
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-action {
  flex: 0 0 auto;
}

.info-btn {
  border: 1px solid var(--notice-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 10px;
  white-space: nowrap;
}

.info-btn:active {
  background: rgba(255, 255, 255, 0.1);
}

.empty-state {
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
  padding: 30px 0;
}

/* ---------- 안내 바텀시트 ---------- */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 40;
}

.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border-top: 1px solid var(--card-border);
  border-radius: 20px 20px 0 0;
  z-index: 41;
  padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
  max-height: 75vh;
  overflow-y: auto;
}

.sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--card-border);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.sheet-kind {
  font-size: 11px;
  color: var(--purple);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.sheet-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 10px;
}

.sheet-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.6;
}

.sheet-body {
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  color: var(--text);
}

.sheet-close {
  margin-top: 18px;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: var(--gradient);
  color: #10081f;
  font-weight: 700;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

.footer-note {
  text-align: center;
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 24px;
  padding: 0 20px;
}
