html {
  font-size: 90%;
}

@font-face {
  font-family: 'Resource Han Rounded CN';
  src: url('fonts/Resource-Han-Rounded-CN-Normal.woff2') format('woff2'),
       url('fonts/Resource-Han-Rounded-CN-Normal.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Resource Han Rounded CN';
  src: url('fonts/Resource-Han-Rounded-CN-Bold.woff2') format('woff2'),
       url('fonts/Resource-Han-Rounded-CN-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: 'Resource Han Rounded CN', sans-serif;
  font-weight: normal;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-image: image-set(
    url('img/kananomado_bg.webp') type('image/webp'),
    url('img/kananomado_bg.jpeg') type('image/jpeg')
  );
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left top;
  background-attachment: fixed;
  background-color: #fcf5e2;
  color: #222;
  line-height: 1.6;
}

h1 {
  font-weight: bold;
	font-size: 2em;
	margin: 0;
}

.logo {
  height: 86px;
  width: auto;
}

.language-switcher select {
  padding: 0.4em 0.6em;
  border-radius: 6px;
  border: none;
  font-family: 'Resource Han Rounded CN', sans-serif;
	font-weight: bold;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  font-size: 1em;
}

main {
  position: relative;
  max-width: 864px;
  align-items: center;
  text-align: center;
  margin: auto;
}

.content-box {
    position: relative;
    background-color: #fffcf2;
    padding: 3rem 3rem;
    margin: 3rem auto 1.5rem auto;
    border-radius: 90px;
    max-width: 864px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.content-box h1,
.content-box p {
    padding: 0;
    margin-bottom: 0.7rem;
}

.tokyo-tower {
  position: absolute;
  top: -150px;
  left: 62%;
  transform: translateX(-50%);
  max-height: 150px;
  width: auto;
  z-index: 1;
}

.cta-button, .cta-dlc {
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
}
.cta-button:hover, .cta-dlc:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 32px rgba(242,106,106,0.18);
}

.cta-button {
	display: inline-block;
    margin-top: 1.1rem;
    margin-bottom: 0.2rem;
    padding: 2rem;
    background-color: #383053;
    color: white;
    text-decoration: none;
    border-radius: 90px;
    font-weight: bold;
    transition: background 0.3s ease;
	text-transform: uppercase;
	font-size: 1.5em;
}

.cta-dlc {
  background-color: #f25c05;
  margin-top: 1.1rem;
  margin-bottom: 0.2rem;
}

.footer {
  text-align: center;
  font-size: 0.9em;
  padding: 1.2rem 1rem;
  color: #333;
  opacity: 0.8;
}

.made-with-love {
  height: 29px;
  width: auto;
	margin: 0.5em;
}

@media (max-width: 768px) {
  header {
    flex-direction: column-reverse;
    align-items: center;
    padding: 2rem;
    margin-bottom: 6rem;
    gap: 2rem;
  }

  .language-switcher {
    width: 100%;
    text-align: center;
  }

  .language-switcher select {
    font-size: 1rem;
    padding: 0.6rem 1rem;
  }

  .main {
    padding: 1rem;
  }

  .content-box {
    padding: 1.2rem 1.2rem 1rem 1.2rem;
    margin: 0 1rem 0.7rem 1rem;
    border-radius: 32px;
  }

  .content-box h1, .content-box p {
    padding: 0;
    margin-bottom: 0.7rem;
  }
	
  .tokyo-tower {
    top: -110px;
    left: 70%;
    max-height: 110px;
  }

  h1 {
    font-size: 1.8rem;
  }

  p {
    font-size: 1.1rem;
  }

  .cta-button {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }

  .video-section, .screenshots-section {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
  }
}

/* --- Screenshots Section --- */
.screenshots-section {
  padding: 1.2rem 0 2rem 0;
  margin-top: 0;
}

.screenshots-section h2 {
  font-weight: bold;
  font-size: 1.5em;
  margin-bottom: 1rem;
  color: #383053;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 0.7rem;
}

.screenshot-thumb {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), box-shadow 0.35s cubic-bezier(.4,0,.2,1);
}

.screenshot-thumb:hover {
  transform: scale(1.08) rotate(-1deg);
  box-shadow: 0 12px 36px rgba(56,48,83,0.18);
}

/* --- Screenshot Overlay (Lightbox) --- */
.screenshot-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
}

#overlay-img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.close-overlay {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-overlay:hover {
  color: #F26A6A; /* Use the hover pink */
}

.footer {
  text-align: center;
  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
  }
  .screenshots-section h2 {
    font-size: 1.5em;
  }
}

@media (min-width: 900px) {
  .screenshots-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Video Section --- */
.video-section {
  margin: 1.5rem 0 1.2rem 0;
  text-align: center;
}

.video-section h2 {
  font-weight: bold;
  font-size: 1.5em;
  margin-bottom: 0.8rem;
  color: #383053;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.video-container iframe {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border: none;
  border-radius: 24px;
}

@media (max-width: 900px) {
  .video-container {
    max-width: 100%;
    border-radius: 16px;
  }
  .video-container iframe {
    border-radius: 16px;
  }
}

.content-box p {
  margin-bottom: 0.7rem;
}

.video-section {
  margin: 0.7rem 0 0.7rem 0;
}

.video-section h2 {
  margin-bottom: 0.5rem;
}

.screenshots-section {
  padding: 0 2rem 2rem 2rem;
  margin-top: 0;
}

.screenshots-section h2 {
  margin-bottom: 0.5rem;
}

.screenshots-grid {
  gap: 1rem;
}

.cta-button,
.cta-dlc {
  margin-top: 0.7rem;
  margin-bottom: 0.1rem;
}

.footer {
  padding: 0.7rem 1rem 2rem 1rem;
}

.video-section,
.screenshots-section {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
}

.screenshots-grid {
    gap: 0.5rem;
    padding: 0;
    margin: 0 auto;
}

.cta-button,
.cta-dlc {
    margin-top: 0.7rem;
    margin-bottom: 0.1rem;
    width: 100%;
    box-sizing: border-box;
}

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5rem 0 0 5rem;
  max-width: 864px;
  margin: 0 auto 4rem auto;
  transition: box-shadow 0.3s, background 0.3s;
}