* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: radial-gradient(circle at top, #151515 0%, #090909 55%, #000000 100%);
  color: #f5f5f5;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.pattern {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px;
  transform: rotate(-12deg) scale(1.2);
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.pattern span {
  font-size: 2rem;
  font-weight: 600;
  white-space: nowrap;
  color: white;
  text-transform: lowercase;
}

.hero {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 50px 20px 20px;
}

.hero h1 {
  margin: 0;
  font-size: 3.4rem;
  text-transform: lowercase;
  letter-spacing: 4px;
  text-shadow:
    0 0 10px rgba(129, 140, 248, 0.20),
    0 0 20px rgba(168, 85, 247, 0.12);
}

.hero p {
  margin-top: 12px;
  color: #bdbdbd;
  font-size: 1rem;
}

.tabs {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 10px 20px 30px;
}

.tab {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #f3f3f3;
  padding: 12px 24px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: 0.25s ease;
  -webkit-backdrop-filter: blur(6px);
}

.tab:hover {
  transform: translateY(-1px);
  border-color: rgba(140, 120, 255, 0.45);
  box-shadow: 0 0 20px rgba(120, 100, 255, 0.10);
}

.tab.active {
  border-color: rgba(140, 120, 255, 0.50);
  box-shadow:
    0 0 18px rgba(120, 100, 255, 0.14),
    0 0 30px rgba(80, 140, 255, 0.08);
}

.content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 60px;
}

.tab-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.category-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.category-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.category-title {
  margin: 0;
  font-size: 1.35rem;
  color: #f0f0f0;
}

.view-all-btn {
  border: none;
  background: transparent;
  color: #9da8ff;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0;
  transition: 0.2s ease;
}

.view-all-btn:hover {
  color: #c4caff;
  text-shadow: 0 0 12px rgba(140, 120, 255, 0.22);
}

.row-shell {
  position: relative;
}

.game-row-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.arrow-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #f3f3f3;
  cursor: pointer;
  font-size: 1.15rem;
  transition: 0.25s ease;
  -webkit-backdrop-filter: blur(6px);
}

.arrow-btn:hover {
  border-color: rgba(140, 120, 255, 0.45);
  box-shadow: 0 0 18px rgba(120, 100, 255, 0.10);
  transform: scale(1.04);
}

.arrow-btn.hidden {
  visibility: hidden;
  pointer-events: none;
}

.game-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex: 1;
  padding-bottom: 4px;
}

.game-row::-webkit-scrollbar {
  display: none;
}

.game-card {
  min-width: 290px;
  max-width: 290px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 16px;
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.single-grid .game-row-wrap {
  display: block;
}

.single-grid .arrow-btn {
  display: none;
}

.single-grid .game-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 290px));
  gap: 18px;
  justify-content: start;
  overflow: visible;
}

.single-grid .game-card {
  width: 290px;
  min-width: 290px;
  max-width: 290px;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(140, 120, 255, 0.28);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(120, 100, 255, 0.08);
}

.game-card.played {
  opacity: 0.58;
}

.game-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  background: rgba(255, 255, 255, 0.04);
}

.game-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.game-note {
  color: #b9b9b9;
  font-size: 0.93rem;
  line-height: 1.5;
  margin: 0;
  min-height: 42px;
}

.card-buttons {
  display: flex;
  justify-content: flex-start;
  margin-top: auto;
}

.card-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #f5f5f5;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.92rem;
  transition: 0.25s ease;
}

.card-btn:hover {
  transform: scale(1.04);
  border-color: rgba(140, 120, 255, 0.45);
  box-shadow:
    0 0 15px rgba(120, 100, 255, 0.14),
    0 0 28px rgba(80, 140, 255, 0.08);
}

.loading-card,
.empty-card {
  min-width: 290px;
  max-width: 290px;
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #9f9f9f;
}

.single-view .category-section {
  display: none;
}

.single-view .category-section.active-single {
  display: flex;
}

.empty-tab {
  color: #9f9f9f;
  font-size: 1rem;
  text-align: center;
  padding: 40px 0;
}

@media (max-width: 780px) {
  .hero h1 {
    font-size: 2.7rem;
  }

  .content {
    width: min(100%, calc(100% - 20px));
  }

  .game-card,
  .loading-card,
  .empty-card {
    min-width: 250px;
    max-width: 250px;
  }

  .arrow-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }
}

.category-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f5f5f5;
  padding: 10px 14px;
  border-radius: 999px;
  outline: none;
  min-width: 220px;
  font-size: 0.92rem;
}

.search-input::placeholder {
  color: #9a9a9a;
}

.tool-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #f5f5f5;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.92rem;
  transition: 0.25s ease;
}

.tool-btn:hover {
  transform: scale(1.04);
  border-color: rgba(140, 120, 255, 0.45);
  box-shadow:
    0 0 15px rgba(120, 100, 255, 0.14),
    0 0 28px rgba(80, 140, 255, 0.08);
}

.random-message {
  color: #9da8ff;
  font-size: 0.95rem;
  margin-top: -4px;
}

.random-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 999;
  animation: fadeOverlay 0.2s ease;
}

.random-modal-card {
  width: 290px;              /* EXACT same as your grid card */
  min-width: 290px;
  max-width: 290px;

  background: rgba(12, 12, 12, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  padding: 16px;             /* match your normal card padding */

  display: flex;
  flex-direction: column;
  gap: 12px;

  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(120, 100, 255, 0.12);

  animation: popIn 0.2s ease;
}

.random-modal-label {
  font-size: 0.85rem;
  color: #9da8ff;
  opacity: 0.8;
  margin-bottom: 6px;
}

.random-message {
  color: #9da8ff;
  font-size: 0.95rem;
  margin-top: 8px;
}

@keyframes fadeOverlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Kiss animation styles */

#lara-title {
  cursor: pointer;
}

.kiss-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(4px);
  z-index: 1200;
  pointer-events: none;
  overflow: hidden;
  animation: kissOverlayFade 1.8s ease forwards;
}

.scattered-kiss {
  position: absolute;
  transform-origin: center;
}

.big-kiss {
  line-height: 1;
  opacity: 0;
  transform: scale(0.7) rotate(var(--kiss-rotate, 0deg));
  filter:
    hue-rotate(260deg)
    saturate(1.6)
    brightness(1.1)
    drop-shadow(0 0 25px rgba(140, 120, 255, 0.35));
  animation: bigKissPop 1.8s ease forwards;
  user-select: none;
}

@keyframes bigKissPop {
  0% {
    opacity: 0;
    transform: scale(0.7) rotate(var(--kiss-rotate, 0deg));
  }

  20% {
    opacity: 1;
    transform: scale(1.08) rotate(calc(var(--kiss-rotate, 0deg) * 1.05));
  }

  55% {
    opacity: 1;
    transform: scale(1) rotate(var(--kiss-rotate, 0deg));
  }

  100% {
    opacity: 0;
    transform: scale(1.12) translateY(-12px) rotate(calc(var(--kiss-rotate, 0deg) + 4deg));
  }
}

@keyframes kissOverlayFade {
  0% {
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

/* About page styles */
.about-wrap {
  display: flex;
  justify-content: center;
  padding-top: 20px;
}

.about-card {
  width: min(700px, 100%);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 30px 28px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(120, 100, 255, 0.08);
  text-align: center;
}

.about-title {
  font-size: 1.5rem;
  margin: 0 0 18px;
  color: #f5f5f5;
}

.about-text {
  color: #d0d0d0;
  line-height: 1.9;
  font-size: 1rem;
  white-space: pre-line;
}