
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700;900&family=Press+Start+2P&family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=VT323&display=swap');

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

:root {
  --void:         #000000;
  --deep:         #06000f;
  --panel-bg:     #0a0018;
  --gold:         #c8a000;
  --gold-bright:  #ffd700;
  --gold-dim:     #4a3800;
  --blood:        #660000;
  --crimson:      #aa1100;
  --cyan:         #00aacc;
  --text:         #c0b898;
  --text-dim:     #5a5040;
  --text-bright:  #fff8e0;
  --border-dim:   #1e1200;
  --border:       #3a2800;
  --border-gold:  #6a4800;
}

body {
  background-color: #000005;
  background-image:
    radial-gradient(ellipse at 50% 0%,   rgba(40,0,80,0.75)  0%, transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(80,0,20,0.3)   0%, transparent 45%),
    radial-gradient(ellipse at 0%   70%,  rgba(0,0,50,0.3)    0%, transparent 40%);
  color: var(--text);
  font-family: 'Crimson Text', Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.7;
  min-height: 100vh;
}

/* Stars */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at  5% 10%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 18% 25%, rgba(255,255,200,.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 32%  8%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 48% 42%, rgba(255,255,255,.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 65% 18%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 78% 55%, rgba(255,255,255,.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 30%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 12% 68%, rgba(255,255,255,.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 72%, rgba(200,220,255,.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 85%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 72% 90%, rgba(255,255,255,.8) 0%, transparent 100%),
    radial-gradient(2px 2px at 85%  8%, rgba(255,220,180,.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 22% 45%, rgba(255,255,255,.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 95% 65%, rgba(180,200,255,.6) 0%, transparent 100%),
    radial-gradient(1px 1px at  3% 88%, rgba(255,255,255,.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 62% 35%, rgba(255,255,255,.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 15%, rgba(255,255,255,.9) 0%, transparent 100%);
  animation: twinkle 7s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.4; }
  to   { opacity: 1;   }
}

/* ── Site Header ── */
.site-header {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(14,0,4,.98)  0%,
    rgba(8,0,16,.97) 65%,
    rgba(4,0,10,.95) 100%);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 2px 30px rgba(200,160,0,.18), inset 0 0 60px rgba(80,0,0,.25);
  text-align: center;
  padding: 2rem 1rem 0;
  flex-shrink: 0;
  overflow: hidden;
}

.site-header::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 130px;
  background: radial-gradient(ellipse, rgba(200,80,0,.07) 0%, transparent 70%);
  pointer-events: none;
  animation: headerPulse 5s ease-in-out infinite alternate;
}

@keyframes headerPulse {
  from { opacity: .5; }
  to   { opacity: 1;  }
}


.site-title {
  display: inline-block;
  text-decoration: none;
  margin-bottom: .5rem;
}

.title-glow {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.8rem, 5.5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: .08em;
  background: linear-gradient(180deg,
    #fffde0  0%,
    #ffd700 25%,
    #c8a000 65%,
    #7a5800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter:
    drop-shadow(0 0 14px rgba(255,200,0,.65))
    drop-shadow(0 0 40px rgba(255,80,0,.25));
  display: block;
}

.site-tagline {
  font-family: 'Crimson Text', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: .18em;
  opacity: .8;
  margin-bottom: 1.25rem;
}

/* ── Nav ── */
.site-nav {
  display: flex;
  justify-content: center;
  gap: 3px;
  position: relative;
}

.nav-tab {
  font-family: 'Press Start 2P', monospace;
  font-size: .5rem;
  letter-spacing: .08em;
  padding: .65rem 1.5rem;
  background: linear-gradient(180deg, #1e0e00 0%, #110800 50%, #080400 100%);
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  border-bottom: none;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  position: relative;
  top: 1px;
  transition: background .1s, color .1s, border-color .1s;
  line-height: 1;
}

.nav-tab:link,
.nav-tab:visited {
  color: var(--gold);
}

.nav-tab:hover {
  background: linear-gradient(180deg, #2e1800 0%, #1e1000 50%, #0e0800 100%);
  color: var(--gold-bright);
  border-color: var(--gold);
}

.nav-tab.active {
  background: linear-gradient(180deg, #08000f 0%, #04000a 100%);
  color: var(--gold-bright);
  border-color: var(--gold);
  border-bottom: 2px solid #000005;
  z-index: 1;
}

/* ── Page Body ── */
.page-body {
  position: relative;
  z-index: 1;
  flex: 1;
}

/* ── Marquee ── */
.marquee-bar {
  overflow: hidden;
  padding: 5px 0;
  background: rgba(80,60,0,.1);
  border-bottom: 1px solid var(--border);
}

.marquee-track {
  white-space: nowrap;
  display: inline-block;
  animation: marquee 55s linear infinite;
  font-family: 'Press Start 2P', monospace;
  font-size: .4rem;
  color: var(--gold);
  letter-spacing: .12em;
}

@keyframes marquee {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-100%); }
}

/* ── Shared Panel ── */
.panel {
  background: linear-gradient(135deg,
    rgba(12,0,22,.93) 0%,
    rgba(7,0,14,.96) 100%);
  border: 1px solid var(--border);
  position: relative;
}

.panel::after {
  content: '';
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(200,160,0,.07);
  pointer-events: none;
}

.panel-heading {
  font-family: 'Press Start 2P', monospace;
  font-size: .52rem;
  color: var(--gold);
  letter-spacing: .15em;
  text-align: center;
  padding: .85rem 1.5rem;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(200,160,0,.07) 50%,
    transparent 100%);
  border-bottom: 1px solid var(--border);
  text-shadow: 0 0 10px rgba(200,160,0,.45);
}

.panel-body {
  padding: 1.25rem 1.5rem;
}

/* ── Homepage ── */
.home-content {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.home-splash {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.75rem;
  align-items: start;
}

.splash-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.splash-lore .panel-body p {
  margin-bottom: .9rem;
  font-size: 1.05rem;
  line-height: 1.85;
}

.splash-lore .panel-body p:last-child { margin-bottom: 0; }
.splash-lore em   { color: var(--gold); font-style: italic; }
.splash-lore strong { color: var(--text-bright); }

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-size: .95rem;
}

.feature-list li {
  padding: .3rem 0;
  border-bottom: 1px solid var(--border-dim);
}

.feature-list li:last-child { border-bottom: none; }

.home-lower {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.75rem;
  align-items: start;
}

/* ── News ── */
.news-list {
  list-style: none;
  padding: .75rem 1.5rem;
}

.news-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .75rem;
  align-items: baseline;
  padding: .5rem 0;
  border-bottom: 1px solid var(--border-dim);
  font-size: .95rem;
}

.news-item:last-child { border-bottom: none; }

.news-date {
  font-family: 'Press Start 2P', monospace;
  font-size: .38rem;
  color: var(--gold);
  white-space: nowrap;
  line-height: 1.9;
}

.news-text {
  color: var(--text);
  text-decoration: none;
  transition: color .15s;
}
.news-text:hover { color: var(--gold-bright); }

.news-more {
  display: block;
  text-align: center;
  padding: .75rem 1.5rem;
  color: var(--cyan);
  font-family: 'Press Start 2P', monospace;
  font-size: .42rem;
  letter-spacing: .08em;
  text-decoration: none;
  border-top: 1px solid var(--border-dim);
  transition: color .15s;
}
.news-more:hover { color: #fff; }

/* ── System grid ── */
.sys-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .4rem .9rem;
  font-family: 'Press Start 2P', monospace;
  font-size: .4rem;
  letter-spacing: .06em;
  align-items: center;
}

.sys-label { color: var(--gold); }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.blink { animation: blink 1.6s step-end infinite; }
.online { color: #44cc66; }

/* ── Blog List ── */
.content-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.page-heading {
  margin-bottom: 2rem;
  text-align: center;
}

.page-intro {
  margin-top: .75rem;
  color: rgba(192,184,152,.75);
  font-family: 'Crimson Text', serif;
  font-style: italic;
  font-size: 1rem;
}

.page-intro a { color: var(--cyan); text-decoration: none; }
.page-intro a:hover { text-decoration: underline; }

.post-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.post-card {
  background: linear-gradient(135deg,
    rgba(12,0,22,.93) 0%,
    rgba(7,0,14,.96) 100%);
  border: 1px solid var(--border);
  padding: 1.5rem 1.75rem;
  transition: border-color .2s, transform .15s;
  position: relative;
}

.post-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
}

.post-date {
  font-family: 'Press Start 2P', monospace;
  font-size: .38rem;
  letter-spacing: .12em;
  color: var(--gold);
  display: block;
  margin-bottom: .5rem;
}

.post-card-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .6rem;
  line-height: 1.35;
}

.post-card-title a {
  color: var(--text-bright);
  text-decoration: none;
  transition: color .15s;
}
.post-card-title a:hover { color: var(--gold-bright); }

.post-excerpt {
  color: rgba(192,184,152,.65);
  font-size: .95rem;
  margin-bottom: .9rem;
  line-height: 1.65;
}

.read-more {
  font-family: 'Press Start 2P', monospace;
  font-size: .4rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: .06em;
  transition: color .15s;
}
.read-more:hover { color: var(--gold-bright); }

/* ── Single Post ── */
.back-link {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: .4rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: .06em;
  margin-bottom: 1.75rem;
  transition: color .15s;
}
.back-link:hover { color: var(--gold-bright); }

.post-full { }

.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.post-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1.3;
  margin-top: .4rem;
  text-shadow: 0 0 20px rgba(255,200,0,.2);
}

/* ── Post Body (markdown) ── */
.post-body { color: var(--text); }

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4 {
  font-family: 'Cinzel Decorative', serif;
  color: var(--gold-bright);
  margin-top: 2rem;
  margin-bottom: .75rem;
  line-height: 1.3;
}

.post-body h1 { font-size: 1.4rem; }
.post-body h2 { font-size: 1.1rem; border-bottom: 1px solid var(--border); padding-bottom: .35rem; }
.post-body h3 { font-size: .95rem; color: var(--gold); }
.post-body h4 { font-size: .9rem;  color: var(--gold); font-weight: 400; letter-spacing: .05em; }

.post-body p  { margin-bottom: 1rem; }
.post-body strong { color: var(--text-bright); font-weight: 600; }
.post-body em     { font-style: italic; color: rgba(255,248,224,.85); }

.post-body a { color: var(--cyan); text-underline-offset: 3px; }
.post-body a:hover { color: #fff; }

.post-body ul,
.post-body ol {
  margin: .75rem 0 1rem 1.5rem;
}
.post-body li { margin-bottom: .3rem; }

.post-body code {
  font-family: 'Courier New', monospace;
  font-size: .82em;
  background: rgba(200,160,0,.1);
  color: var(--gold-bright);
  padding: .12em .4em;
  border: 1px solid rgba(200,160,0,.18);
}

.post-body pre {
  background: rgba(0,0,0,.5);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
}

.post-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: .85em;
  color: #c8c0b0;
}

.post-body blockquote {
  border-left: 3px solid var(--crimson);
  padding: .5rem 1rem;
  margin: 1rem 0;
  color: rgba(192,184,152,.75);
  font-style: italic;
  background: rgba(100,0,0,.08);
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: .9rem;
}

.post-body th {
  background: rgba(200,160,0,.12);
  color: var(--gold-bright);
  font-family: 'Press Start 2P', monospace;
  font-size: .38rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .5rem .75rem;
  text-align: left;
  border-bottom: 2px solid var(--gold);
}

.post-body td {
  padding: .5rem .75rem;
  border-bottom: 1px solid var(--border-dim);
}

.post-body tr:last-child td { border-bottom: none; }
.post-body tr:hover td { background: rgba(200,160,0,.04); }

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.page-nav-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: .42rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: .06em;
  padding: .55rem 1rem;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #1e0e00 0%, #110800 50%, #080400 100%);
  transition: color .15s, border-color .15s;
  display: inline-block;
  line-height: 1;
}

.page-nav-btn:hover { color: var(--gold-bright); border-color: var(--gold); }
.page-nav-btn.disabled { color: var(--text-dim); cursor: default; opacity: .4; }

.page-nums {
  display: flex;
  gap: .4rem;
}

.page-num {
  font-family: 'Press Start 2P', monospace;
  font-size: .42rem;
  color: var(--gold);
  text-decoration: none;
  padding: .4rem .7rem;
  border: 1px solid var(--border-dim);
  background: rgba(0,0,0,.3);
  transition: color .15s, border-color .15s, background .15s;
  display: inline-block;
  line-height: 1;
}

.page-num:hover { color: var(--gold-bright); border-color: var(--gold); }
.page-num.current { color: var(--void); background: var(--gold); border-color: var(--gold); cursor: default; }

/* ── Team Page ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.team-card {
  text-align: center;
  padding: 2rem 1.5rem;
  transition: border-color .2s;
}

.team-card:hover { border-color: var(--gold-dim); }

.team-avatar {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 3px solid #555;
  background: #888;
  filter: drop-shadow(0 0 10px rgba(0,0,0,.3));
}

.team-role {
  font-family: 'Press Start 2P', monospace;
  font-size: .5rem;
  color: var(--gold);
  letter-spacing: .1em;
  margin-bottom: .75rem;
  line-height: 1.6;
}

.team-name {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.05rem;
  color: var(--text-bright);
  margin-bottom: .2rem;
}

.team-age {
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  color: #fff;
  letter-spacing: .05em;
  margin-bottom: .9rem;
}

.team-desc {
  font-family: 'VT323', monospace;
  font-size: 1.35rem;
  color: rgba(192,184,152,.8);
  line-height: 1.6;
}

.hsep {
  color: var(--gold);
  opacity: .6;
  margin: 0 .3em;
  font-style: normal;
}

/* ── Footer ── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 2px solid var(--gold-dim);
  background: rgba(4,0,10,.98);
  text-align: center;
  padding: 1.5rem 1rem;
}

.footer-rule {
  color: var(--gold-dim);
  font-size: .85rem;
  margin-bottom: .75rem;
  letter-spacing: .2em;
}

.site-footer p {
  font-size: .85rem;
  color: var(--text-dim);
  margin-bottom: .3rem;
}

.footer-small {
  font-style: italic;
  font-size: .75rem !important;
}

/* ── Music Button ── */
.music-btn {
  background: linear-gradient(180deg, #001a00 0%, #000e00 50%, #000500 100%);
  color: #44cc66;
  border-color: #1a4a1a;
  cursor: pointer;
}

.music-btn:hover {
  background: linear-gradient(180deg, #002800 0%, #001800 50%, #000a00 100%);
  color: #88ff88;
  border-color: #44cc66;
}

.music-btn.muted {
  color: var(--text-dim);
  border-color: var(--border-dim);
  background: linear-gradient(180deg, #0a0a0a 0%, #060606 100%);
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .home-splash  { grid-template-columns: 1fr; }
  .home-lower   { grid-template-columns: 1fr; }
  .title-glow   { font-size: 1.6rem; }
  .nav-tab      { font-size: .42rem; padding: .5rem .9rem; }
  .team-grid    { grid-template-columns: 1fr; }
  .pagination   { gap: .5rem; flex-wrap: wrap; }
}
