
:root {
  --bg-dark: #07070a;
  --bg-card: rgba(18, 20, 28, 0.75);
  --bg-card-hover: rgba(28, 32, 45, 0.9);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(244, 63, 94, 0.4);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-sub: #6b7280;
  --accent-f: #f43f5e;
  --accent-blue: #0ea5e9;
  --accent-gold: #f59e0b;
  --accent-green: #10b981;
  --accent-purple: #a855f7;
  --glow-f: rgba(244, 63, 94, 0.25);
  --font-base: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 1280px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-base);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* 앰비언트 글로우 */
.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}
.ambient-top {
  top: -200px;
  left: 20%;
  background: radial-gradient(circle, var(--accent-f), transparent);
}
.ambient-bottom {
  bottom: -200px;
  right: 10%;
  background: radial-gradient(circle, var(--accent-blue), transparent);
}

/* 상단 헤더 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 10, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-card);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}
.badge-f {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #f43f5e, #be123c);
  color: #fff;
  font-weight: 900;
  border-radius: 8px;
  font-size: 18px;
  box-shadow: 0 0 16px var(--glow-f);
}
.wordmark-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.wordmark-sub {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-f);
  background: rgba(244, 63, 94, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.header-nav {
  display: flex;
  gap: 24px;
}
.header-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.header-nav a:hover {
  color: var(--text-main);
}

/* 안심 검열 모드 토글 */
.censor-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  user-select: none;
  transition: all 0.2s;
}
.censor-switch:hover {
  background: rgba(255, 255, 255, 0.08);
}
.censor-switch input {
  display: none;
}
.censor-switch .slider {
  width: 34px;
  height: 18px;
  background: #374151;
  border-radius: 20px;
  position: relative;
  transition: background 0.3s;
}
.censor-switch .slider::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  background: #fff;
  transition: transform 0.3s;
}
.censor-switch input:checked + .slider {
  background: var(--accent-green);
}
.censor-switch input:checked + .slider::before {
  transform: translateX(16px);
}
.switch-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 히어로 섹션 */
.hero-section {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 60px 24px;
}
.hero-bg-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.4) saturate(1.2);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 7, 10, 0.6) 0%, rgba(7, 7, 10, 0.95) 85%, var(--bg-dark) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: var(--accent-f);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}
.dot-live {
  width: 8px;
  height: 8px;
  background: var(--accent-f);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-f);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, #ff4b4b, #fbbf24, #f43f5e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 32px;
}
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* 공통 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent-f), #be123c);
  color: #fff;
  box-shadow: 0 4px 16px var(--glow-f);
}
.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.4);
}
.btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}
.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}
.btn.ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn.ghost:hover {
  color: #fff;
}
.btn.ghost-white {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 12px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn.ghost-white:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  max-width: 800px;
}
.metric-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 16px;
}
.metric-val {
  display: block;
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
}
.metric-label {
  font-size: 12px;
  color: var(--text-sub);
}

/* 알림 바 */
.notice-bar {
  background: rgba(245, 158, 11, 0.1);
  border-top: 1px solid rgba(245, 158, 11, 0.25);
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  padding: 14px 24px;
}
.notice-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.notice-badge {
  background: var(--accent-gold);
  color: #000;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.notice-text {
  font-size: 13px;
  color: #fef3c7;
  line-height: 1.5;
}

/* 공통 섹션 스타일 */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px;
}
.section-header {
  margin-bottom: 40px;
}
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent-f);
  margin-bottom: 8px;
}
.section-header h2 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
}
.section-lead {
  font-size: 16px;
  color: var(--text-muted);
}

/* 세계관 규칙 그리드 */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}
.rule-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 28px 24px;
  position: relative;
  transition: all 0.2s;
}
.rule-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}
.rule-num {
  font-size: 36px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.08);
  position: absolute;
  top: 16px;
  right: 20px;
}
.rule-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}
.rule-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 파벌 카드 */
.factions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.faction-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.2s;
}
.faction-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
}
.faction-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.faction-card h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 4px;
}
.faction-leader {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.faction-tagline {
  font-size: 14px;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 10px;
}
.faction-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.5;
}

/* 티어 테이블 */
.tier-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 28px;
}
.sub-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
}
.tier-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tier-row {
  display: grid;
  grid-template-columns: 70px 140px 180px 1fr;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 14px;
}
.tier-badge {
  font-weight: 900;
  font-size: 18px;
}
.tier-badge.tier-S { color: #f59e0b; }
.tier-badge.tier-A { color: #8b5cf6; }
.tier-badge.tier-B { color: #0ea5e9; }
.tier-badge.tier-C { color: #10b981; }
.tier-badge.tier-D { color: #6b7280; }
.tier-badge.tier-E { color: #4b5563; }
.tier-badge.tier-F { color: #f43f5e; }

/* 배경 무대 그리드 */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}
.location-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s;
}
.location-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.15);
}
.location-img-wrap {
  width: 100%;
  aspect-ratio: 1024 / 400;
  overflow: hidden;
  background: #111;
  position: relative;
}
.location-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.location-card:hover .location-img-wrap img {
  transform: scale(1.04);
}
.location-info {
  padding: 16px 20px;
}
.location-code {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-blue);
  letter-spacing: 1px;
}
.location-name {
  font-size: 17px;
  font-weight: 800;
  margin: 2px 0 6px 0;
}
.location-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* 캐릭터 도감 툴바 */
.character-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.filter-tab.active {
  background: var(--accent-f);
  color: #fff;
  border-color: var(--accent-f);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  border-radius: 8px;
  min-width: 280px;
}
.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  width: 100%;
}
.search-box input::placeholder {
  color: var(--text-sub);
}

/* 캐릭터 카드 그리드 */
.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}
.char-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.char-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-f);
  box-shadow: 0 10px 28px rgba(244, 63, 94, 0.18);
}
.char-card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f1117;
  overflow: hidden;
  position: relative;
}
.char-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.char-card:hover .char-card-img-wrap img {
  transform: scale(1.05);
}
.char-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.char-card-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.char-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.char-card-name {
  font-size: 17px;
  font-weight: 800;
}
.char-card-tier {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-f);
}
.char-card-affil {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 12px;
}
.char-card-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.ability-pill {
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
}
.char-click-hint {
  font-size: 11px;
  color: var(--text-sub);
}

/* 배포 섹션 */
.deploy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}
.deploy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 24px;
}
.deploy-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 14px;
}
.deploy-card pre {
  background: #0d0f17;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px;
  font-size: 12px;
  color: #38bdf8;
  overflow-x: auto;
  margin-bottom: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.deploy-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 모달 인스펙터 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-dialog {
  background: #0f1118;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s ease;
}
.modal-backdrop.open .modal-dialog {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover {
  background: var(--accent-f);
}

.modal-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  padding: 32px;
}

/* 모달 좌측 뷰어 */
.modal-viewer {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.viewer-screen {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #05060a;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.viewer-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: filter 0.3s;
}

/* 검열 블러 오버레이 */
.viewer-screen.censored img {
  filter: blur(28px) brightness(0.5);
}
.viewer-censor-overlay {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15, 17, 24, 0.6);
  backdrop-filter: blur(10px);
  z-index: 5;
  text-align: center;
  padding: 20px;
}
.viewer-screen.censored .viewer-censor-overlay {
  display: flex;
}
.censor-icon {
  font-size: 36px;
  margin-bottom: 8px;
}
.censor-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.censor-desc {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 14px;
}
.viewer-tag-badge {
  position: absolute;
  bottom: 12px;
  left: 14px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 6;
}

.asset-category-tabs {
  display: flex;
  gap: 8px;
}
.asset-tab {
  flex: 1;
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.asset-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.asset-tab.active {
  background: var(--accent-f);
  color: #fff;
  border-color: var(--accent-f);
}
.asset-tab.adult-tab {
  background: rgba(244, 63, 94, 0.1);
  color: #fda4af;
  border-color: rgba(244, 63, 94, 0.3);
}
.asset-tab.adult-tab.active {
  background: var(--accent-f);
  color: #fff;
}

.thumbnail-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.thumb-item {
  width: 72px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s;
}
.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-item.active {
  border-color: var(--accent-f);
  box-shadow: 0 0 10px var(--glow-f);
}
.thumb-tag {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 9px;
  background: rgba(0,0,0,0.8);
  padding: 1px 3px;
  border-radius: 2px;
  color: #fff;
  font-weight: 700;
}

.slot-info-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 16px;
}
.slot-path-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 4px;
}
.slot-label {
  color: var(--text-sub);
  font-weight: 700;
}
.slot-path-line code {
  color: #38bdf8;
  font-family: ui-monospace, monospace;
}
.slot-status-badge {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-weight: 700;
}
.slot-status-badge.swap-ready {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}
.slot-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* 모달 우측 프로필 */
.modal-profile {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.profile-meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.profile-id-badge {
  font-size: 13px;
  font-weight: 900;
  color: var(--accent-f);
}
.profile-tier-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(244, 63, 94, 0.2);
  color: #fff;
}
.profile-affil {
  font-size: 13px;
  color: var(--text-sub);
}
.profile-name {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.profile-title {
  font-size: 14px;
  color: var(--text-muted);
}

.profile-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.spec-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.spec-k {
  font-size: 11px;
  color: var(--text-sub);
  font-weight: 600;
}
.spec-v {
  font-size: 14px;
  font-weight: 700;
  color: #e5e7eb;
}
.spec-v.highlight {
  color: #38bdf8;
  font-size: 16px;
}

.profile-section h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-sub);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.profile-section p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.quotes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quote-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 12px;
  border-radius: 8px;
  border-left: 2px solid var(--accent-f);
}
.quote-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-f);
  flex-shrink: 0;
  margin-top: 1px;
}
.quote-item p {
  font-size: 13px;
  color: #e5e7eb;
  margin: 0;
  font-style: italic;
}

/* 푸터 */
.site-footer {
  border-top: 1px solid var(--border-card);
  padding: 60px 24px;
  background: #050508;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--text-sub);
}
.footer-copy {
  font-size: 12px;
  color: var(--text-sub);
}

/* 반응형 모바일 대응 */
@media (max-width: 900px) {
  .modal-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .header-nav {
    display: none;
  }
  .tier-row {
    grid-template-columns: 50px 100px 1fr;
  }
  .tier-row span:nth-child(2) {
    display: none;
  }
}


/* 학교 설명 박스 */
.school-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 32px;
}
.school-header-box {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 24px;
  margin-bottom: 24px;
}
.school-code {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-blue);
  letter-spacing: 1.5px;
}
.school-badge-box h3 {
  font-size: 24px;
  font-weight: 900;
  margin: 4px 0 10px 0;
}
.school-summary {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}
.sub-heading {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

/* 반 설명 그리드 */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.class-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 24px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.class-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
}
.class-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.class-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.class-share {
  font-size: 12px;
  color: var(--text-sub);
}
.class-name {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}
.class-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 길드 설명 그리드 */
.guilds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}
.guild-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 24px;
  transition: all 0.2s;
}
.guild-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
}
.guild-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.guild-card h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 4px;
}
.guild-leader {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.guild-tagline {
  font-size: 14px;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 10px;
}
.guild-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.5;
}


/* 학사 일정 스타일 */
.schedule-tab-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.sched-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.sched-tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.sched-tab-btn.active {
  background: var(--accent-f);
  color: #fff;
  border-color: var(--accent-f);
  box-shadow: 0 4px 14px var(--glow-f);
}

.schedule-view-container {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 32px;
}
.term-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 20px;
  margin-bottom: 24px;
}
.term-header h3 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 4px;
}
.term-theme {
  font-size: 14px;
  color: var(--text-muted);
}
.term-theme b {
  color: #38bdf8;
}

/* 타임라인 그리드 */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.timeline-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.2s;
}
.timeline-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.04);
}
.timeline-date-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}
.timeline-item.type-major .timeline-date-badge { background: #f43f5e; color: #fff; }
.timeline-item.type-rank .timeline-date-badge { background: #8b5cf6; color: #fff; }
.timeline-item.type-battle .timeline-date-badge { background: #ef4444; color: #fff; }
.timeline-item.type-gate .timeline-date-badge { background: #0ea5e9; color: #fff; }
.timeline-item.type-festival .timeline-date-badge { background: #f59e0b; color: #000; }
.timeline-item.type-exam .timeline-date-badge { background: #10b981; color: #fff; }

.timeline-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}
.timeline-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 주간 시간표 그리드 */
.weekly-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.weekly-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
}
.weekly-day {
  font-size: 12px;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 6px;
}
.weekly-sub {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}
.weekly-focus {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 인물 국면별 해금 그리드 */
.gating-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gating-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px 24px;
}
.gating-stage {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-f);
  margin-bottom: 4px;
}
.gating-cast {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
}
.gating-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}


/* 정돈된 핵심 타임라인 스타일 */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.timeline-row {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
  transition: all 0.2s;
}
.timeline-row:hover {
  transform: translateX(4px);
  border-color: rgba(255, 255, 255, 0.2);
}
.timeline-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.timeline-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
}
.timeline-row.type-major .timeline-badge { background: #f43f5e22; color: #f43f5e; border: 1px solid #f43f5e55; }
.timeline-row.type-routine .timeline-badge { background: #0ea5e922; color: #38bdf8; border: 1px solid #0ea5e955; }
.timeline-row.type-exam .timeline-badge { background: #8b5cf622; color: #a78bfa; border: 1px solid #8b5cf655; }
.timeline-row.type-scout .timeline-badge { background: #f59e0b22; color: #fbbf24; border: 1px solid #f59e0b55; }
.timeline-row.type-vacation .timeline-badge { background: #10b98122; color: #34d399; border: 1px solid #10b98155; }

.timeline-date {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}
.timeline-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.timeline-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.campus-rules-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 24px 28px;
}
.campus-rules-box h4 {
  font-size: 16px;
  font-weight: 800;
  color: #e5e7eb;
  margin-bottom: 14px;
}
.campus-rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.campus-rules-list li {
  font-size: 13px;
  color: var(--text-sub);
  position: relative;
  padding-left: 18px;
  line-height: 1.6;
}
.campus-rules-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-f);
}

@media (max-width: 768px) {
  .timeline-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}


/* 비주얼 버티컬 타임라인 스타일 */
.visual-timeline {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 0 40px 0;
}
.timeline-track-line {
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 28px;
  width: 4px;
  background: linear-gradient(
    180deg,
    #f43f5e 0%,
    #0ea5e9 25%,
    #8b5cf6 50%,
    #f59e0b 75%,
    #10b981 100%
  );
  border-radius: 4px;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.4);
  z-index: 1;
}

.timeline-nodes-wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  z-index: 2;
}

.v-timeline-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  align-items: flex-start;
  position: relative;
}

/* 타임라인 노드 마커 */
.v-timeline-node {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0f1118;
  border: 3px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  transition: all 0.3s;
}
.v-timeline-item:hover .v-timeline-node {
  transform: scale(1.1);
}

.v-timeline-item.theme-red .v-timeline-node {
  border-color: #f43f5e;
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.4);
}
.v-timeline-item.theme-blue .v-timeline-node {
  border-color: #0ea5e9;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}
.v-timeline-item.theme-purple .v-timeline-node {
  border-color: #8b5cf6;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}
.v-timeline-item.theme-gold .v-timeline-node {
  border-color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}
.v-timeline-item.theme-emerald .v-timeline-node {
  border-color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

/* 타임라인 카드 */
.v-timeline-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 24px 28px;
  transition: all 0.25s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.v-timeline-item:hover .v-timeline-card {
  transform: translateX(8px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.v-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.v-step {
  font-size: 11px;
  font-weight: 900;
  color: var(--text-sub);
  letter-spacing: 1px;
}
.v-date-pill {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.v-badge {
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  margin-left: auto;
}
.theme-red .v-badge { background: rgba(244, 63, 94, 0.15); color: #f43f5e; border: 1px solid rgba(244, 63, 94, 0.3); }
.theme-blue .v-badge { background: rgba(14, 165, 233, 0.15); color: #38bdf8; border: 1px solid rgba(14, 165, 233, 0.3); }
.theme-purple .v-badge { background: rgba(139, 92, 246, 0.15); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }
.theme-gold .v-badge { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.theme-emerald .v-badge { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }

.v-title {
  font-size: 19px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.v-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .timeline-track-line {
    left: 20px;
  }
  .v-timeline-item {
    grid-template-columns: 44px 1fr;
    gap: 14px;
  }
  .v-timeline-node {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
  .v-timeline-card {
    padding: 18px 20px;
  }
}
