/* HoriHoriPixel — CRT Amber Theme */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

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

:root {
  --bg: #1a0f05;
  --bg-light: #2a1a0a;
  --amber: #ffb84d;
  --amber-bright: #ffd700;
  --amber-dim: #ff8c42;
  --amber-dark: #8a5a2f;
  --text: #ffb84d;
  --text-dim: #e8a35a;
  --text-muted: #b8702f;
  --text-faint: #8a5a2f;
  --border: #ffb84d;
  --shadow: #8a5a2f;
}

html, body {
  min-height: 100%;
  font-family: 'VT323', monospace;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* CRT scanlines overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.2) 0, rgba(0,0,0,0.2) 1px, transparent 2px, transparent 4px),
    radial-gradient(ellipse at center, rgba(255,184,77,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 200;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
  z-index: 199;
}

/* Subtle flicker */
@keyframes flicker { 0%,100% { opacity: 1; } 50% { opacity: 0.97; } }
main, nav { animation: flicker 0.15s infinite; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 40px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(26,15,5,0.92);
  backdrop-filter: blur(4px);
  border-bottom: 2px double var(--amber-dim);
  box-shadow: 0 0 20px rgba(255,140,66,0.3);
}
.logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(255,184,77,0.7);
  text-decoration: none;
}
.logo::before { content: '>> '; color: var(--amber-dim); }
nav ul {
  display: flex; gap: 26px; list-style: none;
  font-family: 'Press Start 2P', monospace;
}
nav a {
  color: var(--amber-dim);
  text-decoration: none;
  font-size: 9px;
  letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(255,140,66,0.5);
  transition: 0.15s;
}
nav a:hover { color: var(--amber-bright); text-shadow: 0 0 10px rgba(255,215,0,0.8); }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 120px 60px 60px;
  max-width: 1400px; margin: 0 auto;
  position: relative; z-index: 1;
}

.boot-lines {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
  letter-spacing: 1px;
  line-height: 1.6;
  opacity: 0.85;
}
.boot-lines .ok { color: var(--amber-bright); }

h1.hero-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(24px, 5.5vw, 64px);
  color: var(--amber);
  letter-spacing: 3px;
  line-height: 1.3;
  margin-bottom: 28px;
  text-shadow: 0 0 20px rgba(255,184,77,0.6), 0 0 40px rgba(255,140,66,0.3);
}
h1.hero-title .line2 {
  color: var(--amber-bright);
  text-shadow: 0 0 20px rgba(255,215,0,0.6), 0 0 40px rgba(255,184,77,0.3);
  display: block; margin-top: 14px;
}
.cursor {
  display: inline-block;
  width: 0.6em; height: 1em;
  background: var(--amber);
  margin-left: 6px;
  vertical-align: middle;
  animation: blink 0.9s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.subtitle {
  font-family: 'VT323', monospace;
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--text-dim);
  max-width: 650px;
  margin-bottom: 44px;
  line-height: 1.5;
  letter-spacing: 0.5px;
}
.subtitle .dim { color: var(--text-faint); }

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }
.btn-primary, .btn-secondary {
  font-family: 'Press Start 2P', monospace;
  padding: 16px 30px;
  font-size: 11px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: 0.15s;
  text-decoration: none;
  text-transform: uppercase;
  display: inline-block;
}
.btn-primary {
  background: var(--amber);
  color: var(--bg);
  border: 2px solid var(--amber);
  box-shadow: 0 0 20px rgba(255,184,77,0.6), 5px 5px 0 var(--amber-dim);
}
.btn-primary:hover {
  transform: translate(2px,2px);
  box-shadow: 0 0 25px rgba(255,215,0,0.8), 3px 3px 0 var(--amber-dim);
  background: var(--amber-bright);
  border-color: var(--amber-bright);
}
.btn-secondary {
  background: transparent;
  color: var(--amber);
  border: 2px solid var(--amber);
  box-shadow: 5px 5px 0 var(--amber-dim);
}
.btn-secondary:hover {
  transform: translate(2px,2px);
  box-shadow: 3px 3px 0 var(--amber-dim);
  background: rgba(255,184,77,0.08);
}

/* STATS */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; width: 100%; max-width: 820px;
  font-family: 'Press Start 2P', monospace;
}
.stat {
  padding: 22px 10px; text-align: center;
  background: rgba(255,184,77,0.05);
  border: 2px solid var(--amber);
  box-shadow: 4px 4px 0 var(--amber-dark);
  transition: 0.15s;
}
.stat:hover {
  transform: translate(2px,2px);
  box-shadow: 2px 2px 0 var(--amber-dark);
  background: rgba(255,215,0,0.08);
  border-color: var(--amber-bright);
}
.stat-num {
  font-size: 20px; color: var(--amber-bright);
  text-shadow: 0 0 10px rgba(255,215,0,0.5);
}
.stat-label { font-size: 7px; color: var(--amber-dim); letter-spacing: 1.5px; margin-top: 12px; }

/* SECTIONS */
main { position: relative; z-index: 1; }

section.content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 60px;
}

h2.section-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(22px, 3.5vw, 36px);
  color: var(--amber);
  letter-spacing: 3px;
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(255,184,77,0.5);
}
h2.section-title::before { content: '>> '; color: var(--amber-dim); }

.section-sub {
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 700px;
  line-height: 1.5;
}

/* PACKS BENTO GRID */
.packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.pack-card {
  background: rgba(255,184,77,0.04);
  border: 2px solid var(--amber);
  box-shadow: 6px 6px 0 var(--amber-dark);
  padding: 28px;
  transition: 0.2s;
  text-decoration: none;
  color: var(--text);
  display: block;
  position: relative;
  overflow: hidden;
}
.pack-card:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--amber-dark);
  background: rgba(255,215,0,0.08);
  border-color: var(--amber-bright);
}
.pack-num {
  font-family: 'Press Start 2P', monospace;
  font-size: 36px;
  color: var(--amber-bright);
  text-shadow: 0 0 15px rgba(255,215,0,0.5);
  margin-bottom: 8px;
}
.pack-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 1.5px;
  margin-bottom: 18px;
  line-height: 1.5;
}
.pack-stats {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 18px;
}
.pack-stats span { color: var(--amber-bright); }
.pack-price {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: var(--amber-bright);
  margin-bottom: 16px;
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--amber);
  background: rgba(255,215,0,0.08);
}
.pack-cta {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--amber-dim);
  letter-spacing: 1.5px;
  display: block;
  margin-top: 8px;
}
.pack-cta::after { content: ' >>'; }

/* PRICING */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.pricing-card {
  background: rgba(255,184,77,0.04);
  border: 2px solid var(--amber);
  box-shadow: 6px 6px 0 var(--amber-dark);
  padding: 36px 28px;
  transition: 0.2s;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--amber-bright);
  box-shadow: 6px 6px 0 var(--amber);
  background: rgba(255,215,0,0.06);
  transform: scale(1.02);
}
.pricing-card.featured::before {
  content: 'BEST VALUE';
  position: absolute;
  top: -14px; left: 24px;
  background: var(--amber-bright); color: var(--bg);
  padding: 5px 12px;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
}
.price-tier {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--amber-dim);
  margin-bottom: 12px;
}
.price-value {
  font-family: 'Press Start 2P', monospace;
  font-size: 34px;
  color: var(--amber-bright);
  text-shadow: 0 0 15px rgba(255,215,0,0.5);
  margin-bottom: 20px;
}
.price-value small {
  font-size: 14px;
  color: var(--text-muted);
  display: block;
  margin-top: 4px;
  letter-spacing: 1px;
}
.price-features {
  list-style: none;
  font-family: 'VT323', monospace;
  font-size: 19px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 28px;
}
.price-features li::before { content: '> '; color: var(--amber); }

.pack-selector-label {
  display: block;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--amber-dim);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.pack-selector {
  display: block;
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: rgba(0,0,0,0.35);
  color: var(--amber);
  border: 2px solid var(--amber-dark);
  font-family: 'VT323', monospace;
  font-size: 18px;
  letter-spacing: 1px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--amber) 50%), linear-gradient(-45deg, transparent 50%, var(--amber) 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 10px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
  transition: 0.15s;
}
.pack-selector:hover, .pack-selector:focus {
  border-color: var(--amber);
  color: var(--amber-bright);
}
.pack-selector option {
  background: var(--bg);
  color: var(--amber);
  font-family: 'VT323', monospace;
}

/* GALLERY */
.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
  padding: 18px;
  background: rgba(255,184,77,0.04);
  border: 2px solid var(--amber);
  box-shadow: 4px 4px 0 var(--amber-dark);
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.filter-group .label {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--amber-dim);
  letter-spacing: 1.5px;
  margin-right: 8px;
}
.chip {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  padding: 8px 12px;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--amber-dark);
  cursor: pointer;
  transition: 0.15s;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.chip:hover { color: var(--amber); border-color: var(--amber); }
.chip.active {
  background: var(--amber);
  color: var(--bg);
  border-color: var(--amber);
  box-shadow: 0 0 12px rgba(255,184,77,0.4);
}

.search-box {
  flex: 1;
  min-width: 200px;
  margin-left: auto;
}
.search-box input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--amber-dark);
  color: var(--amber);
  font-family: 'VT323', monospace;
  font-size: 18px;
  outline: none;
  letter-spacing: 1px;
}
.search-box input:focus { border-color: var(--amber-bright); }
.search-box input::placeholder { color: var(--text-faint); }

.gallery-stats {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 24px;
  letter-spacing: 1px;
}
.gallery-stats span { color: var(--amber-bright); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.gallery.view-bg {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.gallery-item {
  background: rgba(255,184,77,0.04);
  border: 1px solid var(--amber-dark);
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.gallery.view-bg .gallery-item { aspect-ratio: 2 / 1; }
.gallery-item:hover {
  border-color: var(--amber-bright);
  background: rgba(255,215,0,0.08);
  transform: scale(1.03);
  z-index: 2;
  box-shadow: 0 0 20px rgba(255,184,77,0.4);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.gallery-item .name-tag {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 4px 8px;
  font-family: 'VT323', monospace;
  font-size: 13px;
  color: var(--amber-bright);
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  text-align: center;
  opacity: 0;
  transition: 0.2s;
  pointer-events: none;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gallery-item:hover .name-tag { opacity: 1; }

.load-more {
  display: block;
  margin: 48px auto 0;
  padding: 16px 40px;
  background: transparent;
  color: var(--amber);
  border: 2px solid var(--amber);
  box-shadow: 5px 5px 0 var(--amber-dim);
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: 0.15s;
}
.load-more:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--amber-dim);
  background: rgba(255,184,77,0.08);
}
.load-more:disabled { opacity: 0.4; cursor: default; }

/* MODAL */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}
.modal-backdrop.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--bg);
  border: 2px solid var(--amber);
  box-shadow: 0 0 40px rgba(255,184,77,0.5), 10px 10px 0 var(--amber-dim);
  padding: 40px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  position: relative;
  perspective: 1000px;
}
.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  background: transparent;
  color: var(--amber);
  border: 1px solid var(--amber);
  width: 32px; height: 32px;
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  cursor: pointer;
  transition: 0.15s;
}
.modal-close:hover { background: var(--amber); color: var(--bg); }

.modal-sprite-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
  min-height: 300px;
  background:
    linear-gradient(45deg, rgba(255,184,77,0.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,184,77,0.04) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,184,77,0.04) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,184,77,0.04) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  border: 1px solid var(--amber-dark);
  padding: 24px;
  transform-style: preserve-3d;
}
.modal-sprite {
  max-width: 100%;
  max-height: 60vh;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  transition: transform 0.1s ease-out;
  filter: drop-shadow(0 0 30px rgba(255,184,77,0.3));
}
.modal-sprite.holo::after {
  /* holographic effect via overlay done in JS */
}

.modal-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.info-tile {
  padding: 12px;
  background: rgba(255,184,77,0.05);
  border: 1px solid var(--amber-dark);
}
.info-tile .label {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--amber-dim);
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}
.info-tile .value {
  font-family: 'VT323', monospace;
  font-size: 20px;
  color: var(--amber-bright);
  letter-spacing: 1px;
}

.modal-buy {
  display: block;
  width: 100%;
  text-align: center;
  padding: 16px;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--bg);
  background: var(--amber-bright);
  border: 2px solid var(--amber-bright);
  box-shadow: 5px 5px 0 var(--amber-dim);
  text-decoration: none;
  letter-spacing: 2px;
  transition: 0.15s;
  text-transform: uppercase;
}
.modal-buy:hover { transform: translate(2px,2px); box-shadow: 3px 3px 0 var(--amber-dim); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: rgba(255,184,77,0.04);
  border: 1px solid var(--amber-dark);
  overflow: hidden;
}
.faq-q {
  padding: 18px 24px;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 1.5px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.15s;
}
.faq-q:hover { color: var(--amber-bright); background: rgba(255,215,0,0.05); }
.faq-q::after { content: '+'; font-size: 16px; color: var(--amber-dim); }
.faq-item.open .faq-q::after { content: '-'; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-family: 'VT323', monospace;
  font-size: 19px;
  color: var(--text-dim);
  line-height: 1.6;
}
.faq-item.open .faq-a { max-height: 500px; }
.faq-a > div { padding: 8px 24px 20px; }

/* FOOTER */
footer {
  border-top: 2px double var(--amber-dim);
  padding: 40px 60px;
  text-align: center;
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: var(--text-muted);
  letter-spacing: 1px;
}
footer a { color: var(--amber); text-decoration: none; }
footer a:hover { color: var(--amber-bright); }

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { padding: 14px 16px; }
  nav ul { display: none; }
  .logo { font-size: 9px; }
  .hero { padding: 100px 20px 40px; }
  section.content { padding: 60px 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
  .gallery.view-bg { grid-template-columns: 1fr; }
  footer { padding: 30px 20px; }
}

/* Loading */
.loading {
  text-align: center;
  padding: 40px;
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: var(--amber-dim);
}
.loading::after { content: '...'; animation: dots 1.5s steps(4, end) infinite; }
@keyframes dots { 0%, 20% { content: ''; } 40% { content: '.'; } 60% { content: '..'; } 80%, 100% { content: '...'; } }
