@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: #000;
  color: #fff;
  min-height: 100%;
}

header {
  position: fixed;
  top: 40px;
  left: 40px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 220px;
  mix-blend-mode: screen;
}

.logo img {
  width: 100%;
  filter: grayscale(100%) contrast(2);
}

nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

nav a {
  font-family: 'VT323', monospace;
  font-size: 25px;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.7;
  padding-bottom: 4px;
}

nav a:hover,
nav a.active { opacity: 1; }

.archive-grid {
  columns: 4;
  column-gap: 8px;
  padding: 20px 40px 40px;
  margin-left: 280px;
}

.archive-item {
  break-inside: avoid;
  margin-bottom: 8px;
  overflow: hidden;
  cursor: pointer;
}

.archive-item img {
  width: 100%;
  display: block;
  filter: grayscale(30%) contrast(1.1) brightness(0.85);
  transition: filter 0.3s, transform 0.3s;
}

.archive-item:hover img {
  filter: grayscale(0%) contrast(1.1) brightness(1);
  transform: scale(1.02);
}

.about-section {
  display: none;
  font-family: 'VT323', monospace;
  font-size: 24px;
  letter-spacing: 0.1em;
  line-height: 1.8;
  text-align: center;
  margin-top: 200px;
  margin-left: 200px;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active { display: flex; }

.modal-img {
  max-width: 70%;
  max-height: 80vh;
  object-fit: contain;
}

.modal-close {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
}

.modal-close:hover { opacity: 1; }

.modal-arrow {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5vw;
  cursor: pointer;
  opacity: 0.7;
  padding: 20px;
  flex-shrink: 0;
}

.modal-arrow:hover { opacity: 1; }

.hamburger { display: none; }

.shop-section {
  display: none;
  width: 100%;
  padding: 40px 40px 40px 320px;
  flex-direction: column;
  align-items: center;
}

.shop-section.active { display: flex; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.shop-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  filter: grayscale(30%) contrast(1.1) brightness(0.9);
  transition: filter 0.3s, transform 0.3s;
}

.shop-card:hover img {
  filter: grayscale(0%) contrast(1.1) brightness(1);
  transform: scale(1.02);
}

.shop-card-title {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shop-card-price {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: #fff;
  opacity: 0.7;
}

.shop-empty {
  font-family: 'VT323', monospace;
  font-size: 32px;
  color: #fff;
  letter-spacing: 0.15em;
  text-align: center;
  margin-top: 100px;
  grid-column: 1 / -1;
  width: 100%;
}

.shop-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.shop-modal.active { display: flex; }

.shop-modal-inner {
  display: flex;
  gap: 30px;
  max-width: 800px;
  width: 80%;
}

.shop-modal-img {
  width: 45%;
  object-fit: cover;
  aspect-ratio: 1/1;
}

.shop-modal-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.shop-modal-title {
  font-family: 'VT323', monospace;
  font-size: 32px;
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shop-modal-price {
  font-family: 'VT323', monospace;
  font-size: 24px;
  color: #fff;
  opacity: 0.7;
}

.shop-modal-desc {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: #fff;
  opacity: 0.6;
  line-height: 1.6;
}

.shop-modal-select {
  background: #000;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 10px;
  font-family: 'VT323', monospace;
  font-size: 18px;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.shop-modal-btn {
  display: inline-block;
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 8px 20px;
  text-align: center;
  transition: opacity 0.2s;
}

.shop-modal-btn:hover { opacity: 0.6; }

@media (max-width: 768px) {

  header {
    position: relative;
    top: auto;
    left: auto;
    flex-direction: row;
    justify-content: center;
    padding: 16px;
  }

  .logo { width: 60px; }

  nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 200;
  }

  nav.open { display: flex; }

  nav a { font-size: 8vw; }

  .hamburger {
    display: flex;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 300;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
  }

  .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
  }

  .archive-grid {
    columns: 2;
    padding: 20px 16px;
    margin-left: 0;
  }

  .about-section {
    font-size: 5vw;
    padding: 0 16px;
    text-align: center;
    margin-left: 0;
  }

  .shop-section {
    margin-left: 0;
    padding: 20px 16px;
    align-items: center;
  }

  .shop-grid {
    justify-content: center;
  }

}
