/* ============================================================
   Taito Parade Edition — edition-taito-parade.css
   ============================================================ */

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: #fffef5;
  color: #333;
  font-family: 'Nunito', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Full-page curtain ── */
.tp-curtain {
  position: fixed;
  inset: 0;
  background: #fffef5;
  z-index: 9999;
  pointer-events: none;
}

/* ══════════════════════════════════
   PARADE HEADER
══════════════════════════════════ */
.tp-header {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fffef5;
  position: relative;
  overflow: hidden;
}

.header-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.header-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(18px, 4vw, 48px);
  line-height: 1.6;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.title-letter {
  display: inline-block;
}

/* Spaces between words */
.title-space {
  display: inline-block;
  width: 0.6em;
}

.header-subtitle {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: clamp(14px, 2.5vw, 24px);
  color: #444;
  margin-bottom: 24px;
  letter-spacing: 0.1em;
}

.header-stars {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.hstar {
  font-size: 24px;
  display: inline-block;
}

/* Confetti squares (spawned by JS) */
.tp-confetti {
  position: absolute;
  width: 8px;
  height: 8px;
  pointer-events: none;
  z-index: 0;
}

/* ══════════════════════════════════
   MAIN LAYOUT
══════════════════════════════════ */
.tp-main {
  padding: 0 0 48px;
}

/* ══════════════════════════════════
   SECTION DIVIDERS
══════════════════════════════════ */
.section-divider {
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-top: 4px solid #fff;
  border-bottom: 4px solid #fff;
  margin: 40px 0 0;
}

.divider-franchise { background: #00aaff; }
.divider-studio    { background: #22c55e; }
.divider-composer  { background: #ff4da6; }

.divider-text {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(10px, 2vw, 20px);
  color: #fff;
  letter-spacing: 0.05em;
}

/* ══════════════════════════════════
   STAR PLAYER (featured site)
══════════════════════════════════ */
.star-player {
  max-width: 1280px;
  margin: 48px auto 0;
  padding: 0 20px;
}

.featured-card {
  display: flex;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.featured-image-col {
  flex: 0 0 45%;
  min-height: 360px;
  overflow: hidden;
  position: relative;
}

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

.featured-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 360px;
}

.featured-body-col {
  flex: 0 0 55%;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.featured-banner {
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.featured-banner-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: #fff;
  line-height: 1.4;
}

.featured-content {
  padding: 16px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.featured-year-badge {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  border-radius: 999px;
  padding: 3px 12px;
  width: fit-content;
}

.featured-desc {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.featured-pages {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.featured-page-btn {
  display: block;
  padding: 8px 14px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
  border-width: 2px;
  border-style: solid;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
}

/* ══════════════════════════════════
   PANEL GRID
══════════════════════════════════ */
.panel-grid {
  max-width: 1280px;
  margin: 32px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ══════════════════════════════════
   PANEL CARDS
══════════════════════════════════ */
.panel-card {
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-width: 3px;
  border-style: solid;
  position: relative;
  cursor: pointer;
}

.card-banner {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  flex-shrink: 0;
}

.card-banner-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: #fff;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.card-banner-year {
  font-size: 8px;
  color: rgba(255,255,255,0.85);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  flex-shrink: 0;
  margin-left: 6px;
}

.card-image-wrap {
  height: 180px;
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

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

.card-img-placeholder {
  width: 100%;
  height: 100%;
}

.card-body {
  padding-bottom: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-category-pill {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 10px;
  color: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  margin: 10px 12px 6px;
  width: fit-content;
}

.card-page-btn {
  display: block;
  padding: 6px 12px;
  margin: 4px 12px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 12px;
  border-radius: 8px;
  border-width: 2px;
  border-style: solid;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
}

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.tp-footer {
  background: #f0ede4;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
}

.footer-brand {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: #aaa;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-link {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #999;
  text-decoration: none;
}

.footer-link:hover {
  color: #666;
}

.footer-sep {
  color: #ccc;
  font-size: 12px;
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 768px) {
  .featured-card {
    flex-direction: column;
  }
  .featured-image-col {
    flex: none;
    min-height: 220px;
    width: 100%;
  }
  .featured-body-col {
    flex: none;
    width: 100%;
  }
}

/* ══════════════════════════════════
   REDUCED MOTION
══════════════════════════════════ */
.no-motion .panel-card,
.no-motion .featured-card,
.no-motion .section-divider {
  opacity: 1 !important;
  transform: none !important;
}

.no-motion .tp-curtain {
  opacity: 0 !important;
}

.no-motion .header-title .title-letter {
  opacity: 1 !important;
  transform: none !important;
}
