/* Nether Forge — 地狱熔炉控制台 */

:root {
  --primary: #ff6b35;
  --accent: #3ecfcf;
  --danger: #ff4444;
  --bg-main: #0d0d0f;
  --bg-section: #1a1a22;
  --bg-card: #22222e;
  --bg-card-hover: #2a2a38;
  --border: rgba(255, 107, 53, 0.15);
  --border-hover: rgba(255, 107, 53, 0.4);
  --text-primary: #e8e4e0;
  --text-secondary: #9994a1;
  --text-muted: #5e5a66;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
  --container-width: 1120px;
  --font: 'Chakra Petch', 'Noto Sans SC', system-ui, sans-serif;
  --nav-height: 64px;
  --footer-gap: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(255, 107, 53, 0.35) rgba(13, 13, 15, 0.6);
  scrollbar-width: thin;
}

/* Webkit 浏览器（Chrome / Edge / Safari）滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(13, 13, 15, 0.6);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 107, 53, 0.45) 0%, rgba(62, 207, 207, 0.3) 100%);
  border-radius: 4px;
  border: 1px solid rgba(255, 107, 53, 0.12);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 107, 53, 0.7) 0%, rgba(62, 207, 207, 0.5) 100%);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* 抽屉面板内滚动条稍窄 */
.modal-scroll::-webkit-scrollbar {
  width: 6px;
}

.modal-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 107, 53, 0.3);
  border-radius: 3px;
  border: none;
}

.modal-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 107, 53, 0.55);
}

.nether-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-main);
  padding-top: var(--nav-height);
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== App shell ===== */
.app-wrap {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.pages-stack {
  position: relative;
  flex: 1 0 auto;
}

.page {
  animation: pageEnter 0.45s ease both;
}

.page[hidden],
.page[style*='display: none'] {
  display: none !important;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 72vh;
  padding: 48px 0 64px;
  overflow: hidden;
  --hero-text: var(--text-primary);
  --hero-text-sub: var(--text-secondary);
  --hero-text-muted: var(--text-muted);
  --hero-divider: var(--border);
  --hero-addr-bg: rgba(0, 0, 0, 0.4);
  --hero-addr-border: var(--border);
  --hero-btn-bg: var(--primary);
  --hero-btn-color: #0d0d0f;
}

.hero.hero--dark {
  --hero-text: #f0f0f0;
  --hero-text-sub: #b8b4bc;
  --hero-text-muted: #7a7680;
}

.hero.hero--light {
  --hero-text: #111;
  --hero-text-sub: #444;
  --hero-text-muted: #888;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg-main);
  opacity: 1;
  transition: opacity 0.8s ease;
}

.hero-bg.reveal {
  opacity: 1;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.hero-content.hero-grid {
  min-height: 52vh;
}

.hero-info {
  text-align: left;
}

.hero-title {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: 0.04em;
  color: var(--hero-text);
  margin: 0 0 16px;
  text-shadow: 0 0 24px rgba(255, 107, 53, 0.25);
}

.hero-title.no-shimmer {
  animation: none !important;
}

.hero-motd-wrap {
  margin-bottom: 24px;
  min-height: 2.5em;
}

.hero-motd {
  display: inline-block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  color: var(--hero-text-sub);
  font-size: 0.95rem;
}

.hero-address {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--hero-addr-bg);
  border: 1px solid var(--hero-addr-border);
  border-radius: var(--radius);
  max-width: 100%;
}

.address-label {
  font-size: 0.8rem;
  color: var(--hero-text-muted);
  width: 100%;
  margin-bottom: -4px;
}

.address-value {
  flex: 1;
  min-width: 0;
  font-family: 'Chakra Petch', monospace;
  font-size: 1rem;
  color: var(--accent);
  word-break: break-all;
}

.copy-btn {
  border: 1px solid var(--border-hover);
  background: var(--hero-btn-bg);
  color: var(--hero-btn-color);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
}
.copy-btn:hover {
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.45);
  transform: translateY(-1px);
}

/* ===== Dashboard ===== */
.hero-dashboard {
  position: relative;
}

.dashboard-panel {
  background: linear-gradient(145deg, rgba(34, 34, 46, 0.95), rgba(26, 26, 34, 0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.dashboard-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dashboard-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--hero-text-sub);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #666;
  box-shadow: 0 0 8px currentColor;
}

.gauge-lava-wrap {
  position: relative;
  height: 140px;
  border-radius: var(--radius-sm);
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 2px,
    transparent 2px,
    transparent 12px
  );
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 16px;
}

.gauge-lava-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 35%;
  background: linear-gradient(180deg, rgba(255, 107, 53, 0.15) 0%, rgba(255, 68, 34, 0.85) 100%);
  border-top: 2px solid var(--primary);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: height 1s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 24px rgba(255, 107, 53, 0.35);
}

.gauge-lava-meta {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat-cell {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 107, 53, 0.12);
}

.stat-cell-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.stat-cell-value {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
}

/* ===== Sections ===== */
.section {
  padding: 48px 0;
}

.section--forge {
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-section) 100%);
}

.section--page {
  padding-top: 48px;
  min-height: 50vh;
}

.section-title,
.page-title {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 0 28px;
  color: var(--text-primary);
  letter-spacing: 0.06em;
}

.forge-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0 0 12px;
}

.forge-players {
  margin-bottom: 32px;
}

.forge-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.player-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-primary);
}

.forge-chart {
  margin-top: 8px;
}

/* ===== Category bar ===== */
.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.cat-btn {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.cat-btn:hover,
.cat-btn.active {
  border-color: var(--primary);
  color: var(--text-primary);
  box-shadow: 0 0 0 1px rgba(255, 107, 53, 0.25);
}

/* ===== Gallery grid ===== */
.nether-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}
.gallery-item:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 24px rgba(255, 107, 53, 0.2);
  transform: translateY(-2px);
}
.gallery-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.gallery-item-title {
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ===== Timeline（动态列表，由 JS 注入 .timeline-wrap） ===== */
.timeline {
  position: relative;
}

.timeline-wrap {
  position: relative;
  padding-left: 28px;
}

.timeline-wrap::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: 0.55;
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
  padding-left: 4px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-node {
  position: absolute;
  left: -22px;
  top: 14px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
  border: 2px solid var(--bg-main);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.timeline-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.timeline-card .news-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.timeline-card .news-summary {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.timeline-card .news-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pin-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 68, 68, 0.2);
  color: var(--danger);
  font-size: 0.75rem;
  margin-right: 6px;
}

.post-cat-tag {
  color: var(--accent);
}

.news-cover img {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.empty-text {
  color: var(--text-muted);
  text-align: center;
  padding: 40px 24px;
}

.load-more-wrap {
  text-align: center;
  margin-top: 28px;
}

.btn-forge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hover);
  background: linear-gradient(180deg, rgba(255, 107, 53, 0.2), rgba(255, 107, 53, 0.08));
  color: var(--text-primary);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
}
.btn-forge:hover {
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.35);
}
.btn-forge--ghost {
  background: transparent;
  border-color: var(--border);
}

/* ===== Community / forms ===== */
.community-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.community-tab {
  flex: 1;
  max-width: 200px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.community-tab.active {
  border-color: var(--primary);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 53, 0.35);
}

.forge-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.forge-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.forge-form input,
.forge-form select,
.forge-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
}
.forge-form textarea {
  resize: vertical;
  min-height: 100px;
}

.wl-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.wl-check-row input {
  flex: 1;
  min-width: 160px;
}

/* ===== Chat window ===== */
.chat-window {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  min-height: 200px;
}

.chat-stream {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--primary);
  font-size: 0.9rem;
  line-height: 1.45;
}

.chat-name {
  font-weight: 600;
  color: var(--accent);
  font-family: 'Chakra Petch', sans-serif;
}

.chat-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chat-text {
  color: var(--text-primary);
  flex: 1 1 100%;
}

.chat-reply {
  margin-top: 4px;
  padding-left: 10px;
  border-left: 2px solid rgba(62, 207, 207, 0.5);
  font-size: 0.85rem;
  color: var(--accent);
}

/* ===== Whitelist ===== */
.check-result {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.9rem;
}
.status-pending {
  border-color: rgba(255, 193, 7, 0.4);
  background: rgba(255, 193, 7, 0.08);
}
.status-approved {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}
.status-rejected {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
}
.status-notfound {
  border-color: var(--border);
}

/* ===== Footer（始终置底） ===== */
.page-footer {
  flex-shrink: 0;
  text-align: center;
  padding: 32px 20px 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg-main);
}

.footer-brand {
  margin: 0 0 8px;
  color: var(--text-secondary);
  font-weight: 600;
}

.footer-line {
  margin: 0 0 12px;
}

.footer-social {
  margin-bottom: 8px;
}

.footer-social a,
.footer-links a {
  color: var(--text-secondary);
  margin: 0 8px;
}
.footer-social a:hover,
.footer-links a:hover {
  color: var(--primary);
}

.footer-col-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.footer-col-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}
.footer-col-link {
  color: var(--text-secondary);
}

/* ===== 顶部导航（黑曜石 + 熔岩底边） ===== */
.nether-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-height: var(--nav-height);
  overflow: visible;
  background: linear-gradient(180deg, rgba(22, 22, 30, 0.97) 0%, rgba(13, 13, 15, 0.98) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45), inset 0 -1px 0 rgba(255, 107, 53, 0.12);
  transition: box-shadow 0.35s ease, border-color 0.35s ease, min-height 0.25s ease;
}

.nether-nav.scrolled {
  min-height: 56px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), inset 0 -1px 0 rgba(255, 107, 53, 0.2);
}

.nether-nav__glow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 107, 53, 0.15) 20%,
    var(--primary) 50%,
    rgba(62, 207, 207, 0.35) 80%,
    transparent 100%
  );
  opacity: 0.85;
  pointer-events: none;
}

.nether-nav.reveal {
  opacity: 1;
}

.nether-nav.navbar--dark {
  /* 占位：与主题深浅联动 */
}

.nether-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--nav-height);
  padding-top: 4px;
  padding-bottom: 4px;
}

.nether-nav__brand {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
  text-shadow: 0 0 20px rgba(255, 107, 53, 0.25);
  transition: color 0.2s;
}
.nether-nav__brand:hover {
  color: var(--primary);
}

.nether-nav__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-links.nether-nav__links {
  /* 规范：含 .nav-links 供主题契约 */
}

.nether-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.nether-nav__link:hover {
  color: var(--text-primary);
  border-color: rgba(255, 107, 53, 0.22);
  background: rgba(255, 107, 53, 0.06);
}

.nether-nav__link.active {
  color: var(--text-primary);
  border-color: rgba(255, 107, 53, 0.45);
  background: linear-gradient(180deg, rgba(255, 107, 53, 0.18) 0%, rgba(255, 107, 53, 0.05) 100%);
  box-shadow: 0 0 0 1px rgba(255, 107, 53, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nether-nav__icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  flex-shrink: 0;
  opacity: 0.9;
}

.nether-nav__link.active .nether-nav__icon {
  color: var(--accent);
}

/* 汉堡按钮（移动端由 responsive 显示） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.nav-toggle:hover {
  border-color: rgba(255, 107, 53, 0.35);
  background: rgba(255, 107, 53, 0.08);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s;
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ===== Modal / drawer ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: stretch;
  justify-content: flex-end;
}

.modal.drawer {
  pointer-events: none;
}

.modal.drawer.modal--visible {
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.modal--visible .modal-overlay {
  opacity: 1;
}

.drawer-panel {
  position: relative;
  width: min(520px, 100vw);
  max-width: 100%;
  height: 100%;
  margin: 0;
  background: linear-gradient(180deg, #1a1a22, #0d0d0f);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.modal--visible .drawer-panel {
  transform: translateX(0);
}

.modal--closing .drawer-panel {
  transform: translateX(100%);
}

.modal-content {
  border-radius: 0;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.modal-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 56px 24px 32px;
}

.modal-scroll h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  color: var(--text-primary);
}

.post-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.post-body {
  color: var(--text-secondary);
  line-height: 1.75;
}
.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

/* ===== Fade up ===== */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-content.ready .fade-up {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Page enter (fallback) ===== */
@keyframes pageEnter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
