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

body {
  font-family: 'Poppins', sans-serif;
  background: #fff;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.title-global {
  font-family: 'Inspiration', cursive !important;
  font-size: 35px !important;
  letter-spacing: 20px;
  color: #f7e847 !important;
  text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.8) !important;
}

/* === Background === */
.video-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  background: linear-gradient(to bottom, #0b75c7, #367157);
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  transform: scale(0.9);
  transform-origin: center center;
  opacity: 0.9;
  pointer-events: none;
}

.left-curtain,
.right-curtain {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  height: 100vh;
}

.left-curtain {
  top: 0;
  left: -120px;
  z-index: 10;
}

.right-curtain {
  top: 0;
  right: -120px;
  z-index: 10;
}

.bottom-grass {
  position: fixed;
  bottom: -180px;
  left: 0;
  width: 100vw;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

.up-curtain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 300px;
  object-fit: cover;
  z-index: 9;
  pointer-events: none;
}

/* === Main Container === */
.main-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.game-center-panel {
  background: #000000e0;
  border-radius: 20px;
  transition: all .3s;
  box-shadow: 0 0 36px 12px #ffe66a33, 0 0 60px 2px #24c6dc33;
  padding: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
}

.game-center-panel:hover {
  box-shadow: 0px 0px 30px 1px rgba(220, 196, 10, 0.3);
}

.game-center-inner {
  background: linear-gradient(135deg, #181818cc 20%, #ffe66a44 100%);
  width: 900px;
  height: 650px;
  border-radius: 20px;
  transition: all .2s;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  gap: 20px;
}

.game-center-inner::after {
  content: "";
  position: absolute; left:0; top:0; right:0; bottom:0;
  background: linear-gradient(120deg, transparent 60%, #ffe66a22 100%);
  pointer-events: none; z-index: 0;
}

.game-center-inner:hover {
  transform: scale(0.98);
}

.hanging-cat-container-global {
  position: absolute;
  top: -155px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
  pointer-events: none;
}

.hanging-cat-global {
  width: 200px;
  height: auto;
}

.game-center-body {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

/* === Game View === */
.game-center-menu {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  justify-content: flex-start;
  width: 340px;
  margin: 0 auto 40px auto;
}

.game-center-card {
  position: relative;
  width: 320px;
  min-height: 160px;
  background: #232323cc;
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(30,60,60,0.24);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.13s cubic-bezier(.32,1.56,.64,1), box-shadow 0.18s;
  display: flex;
  align-items: stretch;
  border: 2.5px solid #fff2;
}

.game-center-card:hover {
  transform: translateY(-6px) scale(1.035);
  box-shadow: 0 16px 44px 0 #00bfae44;
  border-color: #ffe66a77;
}

.game-center-image {
  width: 45%;
  background-size: cover;
  background-position: center;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  margin: 16px 0 16px 16px;
  box-shadow: 0 3px 16px #0004;
  flex-shrink: 0;
}

.game-center-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 24px;
}

.game-center-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 21px;
  color: #ffe66a;
  margin-bottom: 6px;
  text-shadow: 0 2px 10px #234;
}

.game-center-desc {
  font-size: 15px;
  color: #e0e0e0;
  font-family: 'Poppins', sans-serif;
  opacity: 0.88;
  margin-bottom: 2px;
  letter-spacing: 0.5px;
}

.photo-menu-container {
  width: 100%;
  max-width: 950px;
  margin: 48px auto 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menu-header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
  position: relative;  
}

.menu-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 28px;
  color: #ffe66a;
  text-shadow: 0 2px 10px #234;
  letter-spacing: 15px;
  text-align: center;
  flex: none;
  margin: 0 auto;
}

.home-btn {
  min-width: 120px;
  padding: 0 32px;
  font-size: 19px;
  border-radius: 100px;
  background: linear-gradient(135deg, #f7e847 0%, #b3e2ff 100%);
  color: #1a1a1a;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 22px #f7e84738;
  margin-left: 8px;
  margin-right: 4px;
  position: absolute;
  z-index: 1;
  overflow: hidden;
  transition: all .18s cubic-bezier(.23, 1, 0.32, 1);
}

.home-btn:hover {
  background: linear-gradient(135deg, #ffe66a 0%, #24c6dc 100%);
  color: #1f387e;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 32px #00ff7544;
}


.photo-stack-list {
  display: flex;
  gap: 180px;
  flex-wrap: wrap;
  justify-content: center;
  width: 900px;
  margin: 0 auto;
}

.stack {
  width: 240px;
  max-width: 450px;
  transition: 0.25s ease;
  &:hover {
    transform: rotate(5deg);
    .card:before {
      transform: translatey(-2%) rotate(-4deg);
    }
    .card:after {
      transform: translatey(2%) rotate(4deg);
    }
  }
}

/* Main Cards */
.card {
  width: 100%;  
  aspect-ratio: 3 / 2;
  border: 4px solid;
  background-color: #fff;
  position: relative;
  transition: 0.15s ease;
  cursor: pointer;
  padding: 5% 5% 15% 5%;
}

.card:before, .card:after {
    content: "";
    display: block;
    position: absolute;
    height: 100%;
    width: 100%;
    border: 4px solid;
    background-color: #fff;
    transform-origin: center center;
    z-index: -1;
    transition: 0.15s ease;
    top: 0;
    left: 0;
}
.game-center-inner:hover .card:before {
  transform: translatey(-2%) rotate(-6deg);
}
.game-center-inner:hover .card:after {
  transform: translatey(2%) rotate(6deg);
}

.image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 4px solid;
  background-color: #eee;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.game-name-under {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.2em;
  color: #34343d;
  text-align: center;
  margin: 8px 0 6px 0;
  line-height: 1.15;
  z-index: 2;
  position: relative;
  background: none;
}
.game-name-under span {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.97em;
  color: #5a5a5a;
  margin-top: 3px;
  letter-spacing: 0.5px;
  z-index: 2;
  position: relative;
}

.pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 14px 36px;
  margin-top: 36px;
  border-radius: 30px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 36px 0 rgba(60,70,100,0.09);
  position: relative;
}

/* Page Button */
.page-btn, .arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 20px;
  width: 56px; height: 56px;
  border-radius: 100px;
  border: none;
  margin: 0 3px;
  background: linear-gradient(135deg, #f7e847 0%, #b3e2ff 100%);
  color: #1a1a1a;
  cursor: pointer;
  box-shadow: 0 4px 22px #f7e84738;
  transition: all .18s cubic-bezier(.23, 1, 0.32, 1);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.page-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #24c6dc 0%, #ffe66a 100%);
  box-shadow: 0 0 0 8px #ffe66a36, 0 0 24px #f7e84755;
  animation: ring-glow 1.7s infinite linear;
  font-size: 22px;
}

@keyframes ring-glow {
  0% { box-shadow: 0 0 0 8px #ffe66a36, 0 0 0 0 #ffe66a11; }
  70% { box-shadow: 0 0 0 18px #ffe66a12, 0 0 0 0 #ffe66a07; }
  100% { box-shadow: 0 0 0 8px #ffe66a36, 0 0 0 0 #ffe66a11; }
}

.page-btn:hover, .arrow-btn:hover {
  background: linear-gradient(135deg, #ffe66a 0%, #24c6dc 100%);
  color: #1f387e;
  transform: scale(1.12);
  box-shadow: 0 8px 32px #00ff7544;
}

.arrow-btn svg {
  width: 28px; height: 28px;
  fill: #1f387e;
  pointer-events: none;
  transition: fill .13s;
}

.arrow-btn:disabled {
  background: transparent;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .13s;
}

@media (max-width: 700px) {
  .pagination-bar { gap: 10px; padding: 10px 6px; margin-top: 22px; }
  .page-btn, .arrow-btn { width: 38px; height: 38px; font-size: 15px; }
}

.footer-waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 180px;
  width: 100%;
  height: 200px;
  z-index: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
  animation: wave-glow 3s ease-in-out infinite alternate;
}

.footer-waves img {
  width: 2000px;
  height: 180px;
  max-width: unset;
  object-fit: contain;
  opacity: 0.92;
  filter: drop-shadow(0 0 20px #ffe66a99);
  pointer-events: none;
  user-select: none;
}

@keyframes wave-glow {
  0% { opacity: 0.6; filter: blur(0) drop-shadow(0 0 14px #efefef); }
  60% { opacity: 1; filter: blur(0.5px) drop-shadow(0 0 24px #ffe66a); }
  100% { opacity: 0.7; filter: blur(1px) drop-shadow(0 0 6px #fffbe0); }
}