/* 
  100D1000B Board Game Hub Stylesheet
  Premium Modern Design with Bai Jamjuree & Outfit Fonts
  Curated Warm-Yellow, Plum-Grey, and Warm-White Aesthetics
*/

@import url('https://fonts.googleapis.com/css?family=Bai+Jamjuree:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700|Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --yellow: #F4F400;
  --yellow-glow: rgba(244, 244, 0, 0.35);
  --yellow-hover: #e0e000;
  --plum-dark: #4f474e;
  --plum-dark-rgb: 79, 71, 78;
  --plum-light: #6e636c;
  --warm-white: #F0F0E4;
  --charcoal: #212121;
  --text-muted: #5e5e52;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(79, 71, 78, 0.1);
  --card-shadow: 0 8px 32px 0 rgba(79, 71, 78, 0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

body {
  font-family: 'Bai Jamjuree', 'Outfit', sans-serif;
  background-color: var(--warm-white);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 15px;
  font-weight: 400;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--warm-white);
}
::-webkit-scrollbar-thumb {
  background: var(--plum-light);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--plum-dark);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseYellow {
  0% { box-shadow: 0 0 0 0 rgba(244, 244, 0, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(244, 244, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 244, 0, 0); }
}

@keyframes slideIn {
  from { transform: scale(0.95) translateY(30px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes headerShimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes borderGlowPulse {
  0%, 100% {
    opacity: 0.25;
    box-shadow: inset 0 0 10px rgba(244, 244, 0, 0.15);
    border-color: rgba(244, 244, 0, 0.3);
  }
  50% {
    opacity: 0.65;
    box-shadow: inset 0 0 25px rgba(244, 244, 0, 0.45), 0 0 15px rgba(244, 244, 0, 0.2);
    border-color: #fff5a0;
  }
}

/* Header — Sleek Black Edition */
header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: #0a0a0a;
  border-bottom: 2px solid var(--yellow);
  box-shadow:
    0 1px 0  rgba(244, 244, 0, 0.08),
    0 4px 24px rgba(0, 0, 0, 0.55),
    0 8px 40px rgba(0, 0, 0, 0.3);
  /* Yellow edge glow */
  position: sticky;
}

header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--yellow) 20%,
    #fff5a0 50%,
    var(--yellow) 80%,
    transparent 100%
  );
  background-size: 200% auto;
  animation: headerShimmer 4s linear infinite;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  object-fit: cover;
  box-shadow: 0 0 12px rgba(244,244,0,0.5), 0 0 28px rgba(244,244,0,0.18);
  transition: var(--transition);
}

.logo-img:hover {
  box-shadow: 0 0 18px rgba(244,244,0,0.75), 0 0 40px rgba(244,244,0,0.3);
  transform: scale(1.07);
}

.logo-text {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo-text span {
  color: var(--yellow);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ============================================
   PREMIUM MOTION GRAPHIC BUTTON SYSTEM
   Ripple · Shimmer · Bounce · Glow · Lift
   ============================================ */

/* Base Button */
.btn {
  font-family: 'Bai Jamjuree', sans-serif;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  font-size: 14px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.2s ease,
              border-color 0.2s ease,
              color 0.2s ease;
}

/* Ripple Pseudo-element (shared by all buttons) */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%),
    rgba(255, 255, 255, 0.35) 0%,
    transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.btn:active::after {
  opacity: 1;
  transition: opacity 0s;
}

/* Active press — elastic bounce down */
.btn:active {
  transform: scale(0.94) translateY(1px) !important;
  transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ---- Primary (Yellow) Button ---- */
.btn-primary {
  background: linear-gradient(135deg, #f4f400 0%, #e8c800 50%, #f4f400 100%);
  background-size: 200% 200%;
  background-position: 100% 100%;
  color: var(--charcoal);
}

/* Shimmer sweep on hover */
.btn-primary::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}

.btn-primary:hover::before {
  left: 130%;
}

.btn-primary:hover {
  background-position: 0% 0%;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(244, 244, 0, 0.55),
              0 2px 8px rgba(244, 244, 0, 0.3);
}

/* ---- Outline White Button ---- */
.btn-outline-white {
  background-color: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}

.btn-outline-white::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.12) 100%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.btn-outline-white:hover::before {
  opacity: 1;
}

.btn-outline-white:hover {
  border-color: rgba(255, 255, 255, 0.9);
  color: #fff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15),
              0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* ---- Outline Plum Button ---- */
.btn-outline-plum {
  background-color: transparent;
  color: var(--plum-dark);
  border: 1.5px solid var(--plum-dark);
  position: relative;
}

/* Fill slide-in from left on hover */
.btn-outline-plum::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--plum-dark);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: -1;
}

.btn-outline-plum:hover::before {
  transform: scaleX(1);
}

.btn-outline-plum:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 20px rgba(79, 71, 78, 0.3);
}

/* User Profile Badge in Header */
.user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: var(--radius-lg);
  background-color: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.user-badge:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.user-avatar-small {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--yellow);
}

.user-name-small {
  font-weight: 500;
  font-size: 14px;
}

/* Hero Section */
.hero {
  position: relative;
  height: 400px;
  background-image: url('https://lh3.googleusercontent.com/sitesv/AA5AbUDHLpezMpndyMxOzIkSV1vkBIwZ-NCTFfAmlrb7Wg90sMACbqU78rOfCscVYuQWboP85vW9ROjnqfg_VT-P4Trwa9QYeOeJvBaqzQCsz8Zj3e8RLAh0uzjum-FfSgzrYNGsG_MOfuqoO5X_t5tYs5QNuQ9JycxqbrFeaQCIWjtPVmZLpP98zL90=w16383');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  border-bottom: 8px solid var(--yellow);
  overflow: hidden;
}

/* Subtle dark overlay for readability on busy backgrounds */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(20, 20, 20, 0.4) 0%, rgba(10, 10, 10, 0.65) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 35px 45px;
  margin: 0 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 2px solid transparent;
}

/* Background animated gradient flow */
.hero-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(33, 30, 33, 0.85) 0%, 
    rgba(79, 71, 78, 0.95) 25%, 
    rgba(33, 30, 33, 0.9) 50%, 
    rgba(83, 77, 27, 0.8) 75%, 
    rgba(33, 30, 33, 0.85) 100%
  );
  background-size: 400% 400%;
  z-index: -1;
  animation: gradientMove 12s ease infinite;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Glow overlay that pulses */
.hero-content::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(244, 244, 0, 0.3);
  pointer-events: none;
  z-index: 1;
  animation: borderGlowPulse 4s ease-in-out infinite;
  transition: border-color 0.4s ease;
}

.hero-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(244, 244, 0, 0.2);
}

.hero-content:hover::after {
  border-color: rgba(244, 244, 0, 0.8) !important;
}

@keyframes textPulse {
  0% {
    text-shadow: 0 0 8px rgba(244, 244, 0, 0.35), 0 2px 10px rgba(0,0,0,0.8);
  }
  50% {
    text-shadow: 0 0 22px rgba(244, 244, 0, 0.85), 0 2px 15px rgba(0,0,0,0.9), 0 0 8px rgba(244, 244, 0, 0.4);
  }
  100% {
    text-shadow: 0 0 8px rgba(244, 244, 0, 0.35), 0 2px 10px rgba(0,0,0,0.8);
  }
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--yellow);
  animation: textPulse 3s infinite ease-in-out;
  letter-spacing: 1px;
  transition: transform 0.3s ease;
  font-family: 'Outfit', 'Inter', sans-serif;
}

.hero-title:hover {
  transform: scale(1.04);
}

.hero-desc {
  font-size: 16.5px;
  font-weight: 400;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* Main Layout Grid */
.main-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

/* Filter Controls bar */
.filter-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.5s ease-out;
}

.search-filter-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media(min-width: 768px) {
  .search-filter-row {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.search-input-wrapper {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 10px 16px;
  padding-right: 40px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--plum-dark);
  box-shadow: 0 0 8px rgba(79, 71, 78, 0.15);
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--plum-light);
  pointer-events: none;
}

.select-filter {
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.select-filter:focus {
  border-color: var(--plum-dark);
}

.tabs-row {
  display: flex;
  gap: 8px;
  border-bottom: 2.5px solid var(--glass-border);
  padding-bottom: 8px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 16px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  font-family: inherit;
}

.tab-btn:hover {
  color: var(--plum-dark);
}

.tab-btn.active {
  color: var(--plum-dark);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -10.5px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--yellow);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--yellow-glow);
}

/* Page Content Viewports */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media(min-width: 992px) {
  .dashboard-grid {
    grid-template-columns: 2.5fr 1fr;
  }
}

/* Cards Grid for Board Games */
.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media(min-width: 600px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.game-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--glass-border);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--transition);
  animation: fadeIn 0.5s ease-out;
  cursor: pointer;
  min-height: 0;
  position: relative;
  isolation: isolate;
  transform: translateZ(0);
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(79, 71, 78, 0.12);
  border-color: var(--yellow);
}

.game-img-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
  flex-grow: 0;
}

.game-img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.game-card:hover .game-img {
  transform: scale(1.03);
}

.game-badges-container {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 6px;
  z-index: 2;
  flex-wrap: wrap-reverse;
}

.game-badges-container .game-badge,
.game-badges-container .game-mech-badge {
  position: relative;
  bottom: auto;
  right: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.game-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-weight: 700;
  font-size: 11px;
  padding: 5px 11px;
  border-radius: 20px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Game Mechanism Badge on Cover */
.game-mech-badge {
  font-weight: 700;
  font-size: 7.5px;
  padding: 2px 6px;
  border-radius: 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2;
  background-color: rgba(20, 20, 25, 0.75);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-block;
  white-space: nowrap;
}

/* Category-specific badge colors */
.game-badge-strategy {
  background-color: rgba(99, 57, 189, 0.88);
  color: #e2d9ff;
  border: 1px solid rgba(168, 130, 255, 0.7);
}

.game-badge-casual {
  background-color: rgba(16, 148, 104, 0.88);
  color: #c8fff0;
  border: 1px solid rgba(72, 224, 168, 0.7);
}

.game-badge-cooperative {
  background-color: rgba(190, 100, 10, 0.88);
  color: #fff0cc;
  border: 1px solid rgba(255, 185, 60, 0.7);
}

.game-badge-tactical {
  background-color: rgba(185, 28, 48, 0.88);
  color: #ffd6db;
  border: 1px solid rgba(255, 100, 120, 0.7);
}

.game-badge-default {
  background-color: rgba(50, 50, 60, 0.88);
  color: var(--yellow);
  border: 1px solid rgba(244, 244, 0, 0.6);
}


.game-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.game-meta-row {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-family: 'Outfit', sans-serif;
}

.game-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.game-card-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--plum-dark);
}

.game-card-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 500;
}

.game-card-desc {
  font-size: 13.5px;
  color: #555;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.game-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1.5px solid var(--warm-white);
  padding-top: 12px;
  margin-top: auto;
}

.bookmark-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--plum-light);
  font-size: 18px;
  transition: var(--transition);
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bookmark-btn:hover {
  background-color: var(--warm-white);
  color: var(--plum-dark);
}

.bookmark-btn.active {
  color: #ff3b30;
}

/* Sidebar support & QR panel */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.support-panel {
  background: rgba(79, 71, 78, 0.95);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  border-bottom: 4px solid var(--yellow);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.support-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 12px;
}

.support-desc {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 20px;
}

.qr-code-wrapper {
  background: #fff;
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  animation: pulseYellow 3s infinite;
}

.qr-code-img {
  width: 160px;
  height: 160px;
  object-fit: contain;
}

.support-label {
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 600;
}

/* Stats counter */
.stats-panel {
  background: var(--glass-bg);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stats-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--plum-dark);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat-item {
  background: #fff;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  text-align: center;
}

.stat-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--plum-dark);
  font-family: 'Outfit', sans-serif;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* Modals Overlay & Panels */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  background: #fff;
  border-radius: var(--radius-md);
  border: 2px solid var(--plum-dark);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  max-width: 550px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: none;
  flex-direction: column;
}

.modal-overlay.active .modal-panel.active {
  transform: scale(1) translateY(0);
  display: flex;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 2px solid var(--warm-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--plum-dark);
  color: #fff;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 24px;
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--plum-dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--glass-border);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 8px var(--yellow-glow);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.form-switch {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.form-switch span {
  color: var(--plum-dark);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* Avatar Selector */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.avatar-option {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  padding: 2px;
  object-fit: cover;
}

.avatar-option:hover {
  transform: scale(1.1);
  border-color: var(--plum-light);
}

.avatar-option.selected {
  border-color: var(--yellow);
  box-shadow: 0 0 10px var(--yellow-glow);
  transform: scale(1.1);
}

/* Profile Dashboard Tabs & Elements */
.profile-header-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--warm-white);
}

.profile-avatar-large {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--yellow);
}

.profile-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--plum-dark);
}

.profile-date {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
}

/* Game Detail Modal specific */
.game-detail-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.game-detail-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media(min-width: 768px) {
  .game-detail-top {
    grid-template-columns: 1.8fr 3fr;
  }
}

.game-detail-img-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--glass-border);
  box-shadow: var(--card-shadow);
  width: 100%;
  flex-shrink: 0;
  flex-grow: 0;
}

.game-detail-img {
  width: 100%;
  height: auto;
  display: block;
}

.game-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.game-detail-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--plum-dark);
  line-height: 1.3;
}

.game-detail-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: -8px;
}

.game-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.game-spec-item {
  background: var(--warm-white);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.game-spec-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.game-spec-value {
  font-weight: 600;
  color: var(--plum-dark);
}

.game-detail-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #444;
}

.download-box {
  background: var(--yellow-glow);
  border: 1.5px dashed var(--yellow);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.download-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.download-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--plum-dark);
}

.download-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* Comments Section style inside Modal */
.comments-header {
  border-top: 2px solid var(--warm-white);
  padding-top: 20px;
  margin-top: 20px;
  font-size: 18px;
  font-weight: 700;
  color: var(--plum-dark);
  margin-bottom: 12px;
}

.comment-input-wrapper {
  margin-bottom: 24px;
}

.comment-textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--glass-border);
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  resize: vertical;
  transition: var(--transition);
  margin-bottom: 10px;
}

.comment-textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 8px var(--yellow-glow);
}

.comment-input-actions {
  display: flex;
  justify-content: flex-end;
}

/* Comment items list */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--warm-white);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comment-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--yellow);
}

.comment-author-name {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--plum-dark);
}

.comment-date {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
}

.comment-content {
  font-size: 13.5px;
  line-height: 1.5;
  color: #333;
  padding-left: 42px;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 42px;
  margin-top: 4px;
}

.comment-act-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  transition: var(--transition);
}

.comment-act-btn:hover {
  color: var(--plum-dark);
}

.comment-act-btn.liked {
  color: #ff3b30;
}

.comment-replies-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 42px;
  margin-top: 8px;
  border-left: 2px solid var(--glass-border);
}

.reply-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background-color: var(--warm-white);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

/* Reply input form toggler */
.reply-input-box {
  display: none;
  margin-top: 8px;
  padding-left: 42px;
}

.reply-input-box.active {
  display: block;
}

/* Blank/Empty collection helper class */
.empty-helper {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--glass-border);
  color: var(--text-muted);
  font-size: 14px;
}

/* Footer Section — Sleek Black Edition */
footer {
  background: #0a0a0a;
  color: #fff;
  border-top: 2px solid var(--yellow);
  padding: 48px 24px 24px;
  position: relative;
  overflow: hidden;
}

/* Animated shimmer on top border */
footer::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--yellow) 20%,
    #fff5a0 50%,
    var(--yellow) 80%,
    transparent 100%
  );
  background-size: 200% auto;
  animation: headerShimmer 4s linear infinite;
}

/* Subtle dot-grid texture */
footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(244,244,0,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  border-bottom: 1px solid rgba(244,244,0,0.12);
  padding-bottom: 32px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

@media(min-width: 768px) {
  .footer-content {
    grid-template-columns: 2fr 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}

.footer-logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  object-fit: cover;
  box-shadow: 0 0 14px rgba(244,244,0,0.5), 0 0 32px rgba(244,244,0,0.18);
  transition: var(--transition);
}

.footer-logo-img:hover {
  box-shadow: 0 0 22px rgba(244,244,0,0.75), 0 0 48px rgba(244,244,0,0.28);
  transform: scale(1.08);
}

.footer-brand-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.5px;
  text-shadow: 0 0 18px rgba(244,244,0,0.35);
}

.footer-brand-desc {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  max-width: 450px;
  line-height: 1.7;
}

/* Footer Links Column */
.footer-links-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-links-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 10px;
  opacity: 0.85;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-link {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 13px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-link::before {
  content: '›';
  color: var(--yellow);
  font-size: 16px;
  line-height: 1;
  opacity: 0;
  transform: translateX(-4px);
  transition: var(--transition);
}

.footer-link:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-link:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Credits bar */
.footer-credits {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  font-family: 'Outfit', sans-serif;
  position: relative;
  z-index: 1;
  letter-spacing: 0.3px;
}

.footer-credits span {
  color: var(--yellow);
  opacity: 0.7;
}

/* --- Membership Tier Ranks Style additions --- */
.badge-tier {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.comment-badge-tier {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 9.5px;
  font-weight: 700;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  margin-left: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  vertical-align: middle;
}

.profile-tier-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(79, 71, 78, 0.04);
  backdrop-filter: blur(4px);
}

.tier-progress-container {
  width: 100%;
  background-color: rgba(79, 71, 78, 0.1);
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
  position: relative;
  margin-top: 8px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tier-progress-bar {
  height: 100%;
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* --- Profile Avatar Upload Styling --- */
.profile-avatar-container {
  position: relative;
  cursor: pointer;
  border-radius: 50%;
  overflow: hidden;
  width: 72px;
  height: 72px;
  border: 3px solid var(--yellow);
  transition: var(--transition);
}

.profile-avatar-container:hover {
  transform: scale(1.03);
}

.profile-avatar-container:hover .avatar-upload-overlay {
  transform: translateY(0);
}

.avatar-upload-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  text-align: center;
  font-size: 10px;
  padding: 3px 0;
  font-weight: 700;
  transition: var(--transition);
  transform: translateY(100%);
  user-select: none;
}

/* --- Gmail OTP Verification & Toast Notification Styles --- */
.otp-input {
  width: 45px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--glass-border);
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  color: var(--plum-dark);
  text-align: center;
  outline: none;
  background-color: #fcfcfd;
  transition: all 0.2s ease;
}

.otp-input:focus {
  border-color: var(--plum-dark);
  box-shadow: 0 0 0 3px rgba(107, 36, 73, 0.15);
  background-color: #fff;
  transform: translateY(-2px);
}

.otp-input.error {
  border-color: #fa5252;
  background-color: #fff5f5;
  color: #fa5252;
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.otp-resend-wrapper {
  margin-top: 15px;
  text-align: center;
}

.btn-link {
  background: none;
  border: none;
  color: var(--plum-dark);
  font-family: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 13px;
  transition: var(--transition);
}

.btn-link:hover {
  color: var(--plum-light);
}

/* Gmail Push Notification Toast */
.gmail-toast {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-left: 5px solid #ea4335; /* Gmail Red */
  border-top: 1px solid rgba(234, 67, 53, 0.1);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  padding: 16px 20px;
  width: 100%;
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gmail-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.gmail-toast-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #ea4335;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gmail-toast-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--plum-dark);
  margin: 0;
}

.gmail-toast-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.gmail-toast-otp {
  display: inline-block;
  background-color: #fff0f0;
  color: #ea4335;
  font-family: monospace;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(234, 67, 53, 0.3);
  letter-spacing: 1px;
  margin-top: 2px;
}

.gmail-toast-footer {
  font-size: 11px;
  color: #868e96;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  border-top: 1px dashed rgba(0, 0, 0, 0.05);
  padding-top: 6px;
}

.gmail-toast-copy-btn {
  background-color: #ea4335;
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.gmail-toast-copy-btn:hover {
  background-color: #d33225;
}


/* ============================================
   iOS / TOUCH FIXES (all screen sizes)
   ============================================ */

/* Prevent iOS from zooming into inputs on focus */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important; /* iOS won't zoom if ≥16px */
  }
}

/* Remove iOS default select / input styling */
select,
input[type="text"],
input[type="email"],
input[type="password"] {
  -webkit-appearance: none;
  appearance: none;
}

/* Ensure all clickable elements have comfortable tap targets */
.btn,
.tab-btn,
.bookmark-btn,
.modal-close,
.comment-act-btn {
  min-height: 36px;
  min-width: 36px;
}

/* Disable double-tap zoom on buttons */
.btn,
.tab-btn,
.bookmark-btn {
  touch-action: manipulation;
}

/* ============================================
   MOBILE RESPONSIVE OVERRIDES
   Breakpoints: ≤768px tablet, ≤480px phone
   ============================================ */

/* ---- Tablet (≤768px) ---- */
@media (max-width: 768px) {

  /* Header — compact nav */
  .nav-container {
    padding: 10px 16px;
    gap: 8px;
  }

  .logo-text {
    font-size: 17px;
  }

  .logo-img {
    width: 36px;
    height: 36px;
  }

  .nav-controls {
    gap: 8px;
  }

  .nav-controls .btn {
    font-size: 12px;
    padding: 6px 12px;
  }

  .user-name-small {
    display: none;
  }

  /* Hero — smaller height */
  .hero {
    height: 300px;
  }

  .hero-content {
    padding: 24px 20px;
    margin: 0 16px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-desc {
    font-size: 14px;
  }

  /* Main wrapper tighter padding */
  .main-wrapper {
    padding: 24px 16px;
  }

  /* Dashboard — single column */
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  /* Tabs wrap */
  .tabs-row {
    flex-wrap: wrap;
    gap: 4px;
  }

  .tab-btn {
    font-size: 13px;
    padding: 6px 12px;
  }

  /* Modal — full width with side margins */
  .modal-overlay {
    padding: 12px;
  }

  .modal-panel {
    max-width: 100%;
    max-height: 95vh;
  }

  .modal-header {
    padding: 16px 20px;
  }

  .modal-title {
    font-size: 17px;
  }

  .modal-body {
    padding: 16px 20px;
  }

  /* Form row — stack 2 columns */
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Footer content */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  footer {
    padding: 32px 16px 20px;
  }
}

/* ---- Phone (≤480px) ---- */
@media (max-width: 480px) {

  /* Header — tightest */
  .nav-container {
    padding: 8px 12px;
  }

  .logo-text {
    font-size: 15px;
    letter-spacing: 0;
  }

  .logo-img {
    width: 32px;
    height: 32px;
  }

  .nav-controls .btn {
    font-size: 11px;
    padding: 5px 10px;
  }

  #nav-login-btn {
    font-size: 11px;
    padding: 5px 8px;
  }

  /* Hero — phone */
  .hero {
    height: 240px;
  }

  .hero-content {
    padding: 18px 14px;
    margin: 0 10px;
    border-radius: var(--radius-md);
  }

  .hero-title {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .hero-desc {
    font-size: 13px;
    line-height: 1.6;
  }

  /* Main wrapper */
  .main-wrapper {
    padding: 16px 12px;
  }

  /* Filter card */
  .filter-card {
    padding: 14px 12px;
    gap: 12px;
  }

  .search-input,
  .select-filter {
    font-size: 13px;
    padding: 9px 12px;
  }

  /* Tabs — stack vertically */
  .tabs-row {
    flex-direction: column;
    gap: 4px;
  }

  .tab-btn {
    font-size: 13px;
    padding: 8px 12px;
    text-align: left;
  }

  .tab-btn.active::after {
    bottom: -2px;
    height: 2px;
  }

  /* Game cards — single column on phones */
  .games-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .game-card-title {
    font-size: 17px;
  }

  .game-card-desc {
    font-size: 13px;
  }

  /* Stats — compact */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .stat-number {
    font-size: 20px;
  }

  .stat-label {
    font-size: 10px;
  }

  /* Sidebar panels */
  .support-panel,
  .request-panel,
  .stats-panel,
  .sponsors-panel {
    border-radius: var(--radius-sm);
  }

  /* Game detail modal */
  .game-detail-title {
    font-size: 19px;
  }

  .game-spec-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .download-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .download-box .btn {
    width: 100%;
    justify-content: center;
  }

  /* Modal panels — slide up from bottom */
  .modal-overlay {
    padding: 8px;
    align-items: flex-end;
  }

  .modal-panel {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    max-height: 92vh;
  }

  .modal-header {
    padding: 14px 16px;
  }

  .modal-title {
    font-size: 16px;
  }

  .modal-body {
    padding: 14px 16px;
  }

  /* Avatar grid */
  .avatar-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  /* OTP inputs */
  .otp-input {
    width: 38px;
    height: 42px;
    font-size: 18px;
  }

  /* Profile header */
  .profile-header-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Comment section */
  .comment-content,
  .comment-actions {
    padding-left: 0;
  }

  .comment-replies-list {
    padding-left: 12px;
  }

  /* Footer */
  footer {
    padding: 24px 12px 16px;
  }

  .footer-brand-title {
    font-size: 17px;
  }

  .footer-brand-desc {
    font-size: 12px;
  }

  .footer-logo-img {
    width: 38px;
    height: 38px;
  }

  /* Game mechanism badges */
  .game-badges-container {
    bottom: 8px;
    left: 8px;
    right: 8px;
    gap: 4px;
  }

  .game-mech-badge {
    font-size: 7px;
    padding: 2px 5px;
  }

  .game-badge {
    font-size: 10px;
    padding: 4px 8px;
  }

  /* Pagination */
  #pagination-container {
    gap: 8px !important;
    flex-wrap: wrap;
  }

  /* Gmail toast */
  .gmail-toast {
    padding: 12px 14px;
  }

  .gmail-toast-title {
    font-size: 13px;
  }

  .gmail-toast-body {
    font-size: 12px;
  }
}

/* ---- Very small phones (≤360px) ---- */
@media (max-width: 360px) {
  .hero-title {
    font-size: 24px;
  }

  .hero-content {
    padding: 14px 10px;
    margin: 0 6px;
  }

  .logo-text {
    font-size: 13px;
  }

  .nav-controls .btn {
    font-size: 10px;
    padding: 4px 8px;
  }

  .game-card-title {
    font-size: 15px;
  }

  .otp-input {
    width: 32px;
    height: 36px;
    font-size: 16px;
  }
}
