/*!*************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./assets/styles/main/main.css ***!
  \*************************************************************************************************************************/
@import url(https://fonts.googleapis.com/css2?family=Bungee&family=Press+Start+2P&family=Rubik:wght@400;600;800&display=swap);
/*!*****************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./assets/styles/main/main.css (1) ***!
  \*****************************************************************************************************************************/

/* WeeBitGames - Fun, vibrant, and unconventional design */
/* Auth Forms Styling */
.auth-form {
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}
.form-group small {
  display: block;
  margin-top: 0.5rem;
  color: #666;
  font-size: 0.875rem;
}
.error-message {
  color: #d9534f;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}
.success-message {
  color: #5cb85c;
  background: rgba(92, 184, 92, 0.1);
  padding: 0.75rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  border-left: 4px solid #5cb85c;
}
.form-actions {
  margin-top: 2rem;
}
.auth-links {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
}
.auth-links p {
  margin: 0.5rem 0;
}
/* Button Styles */
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #0066cc;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s;
}
.button:hover {
  background: #0052a3;
}
.button.primary {
  background: #0066cc;
  width: 100%;
}
.button.secondary {
  background: #6c757d;
}
.button.small {
  padding: 0.4rem 0.8rem;
  font-size: 0.875rem;
}
.button.danger {
  background: #d9534f;
}
.button.danger:hover {
  background: #c9302c;
}
/* Profile Page Styles */
.profile-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}
.profile-actions {
  display: flex;
  gap: 1rem;
}
.games-section h2 {
  margin-bottom: 1.5rem;
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.game-card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.game-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.game-card img, .game-card .no-image {
  width: 100%;
  height: 180px;
  -o-object-fit: cover;
     object-fit: cover;
}
.game-card .no-image {
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}
.game-card-content {
  padding: 1.5rem;
}
.game-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.game-card p {
  margin-bottom: 1rem;
  color: #666;
}
.game-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
/* Game Form Styles */
.form-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}
.code-editor {
  font-family: monospace;
  background: #1e1e1e;
  color: #d4d4d4;
  line-height: 1.5;
  -moz-tab-size: 2;
    -o-tab-size: 2;
       tab-size: 2;
  white-space: pre;
  overflow-x: auto;
}
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}
.form-actions .button.primary {
  width: auto;
}
.mode-selector {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
  }
.mode-label {
    margin-right: 1rem;
    font-weight: bold;
  }
.mode-toggle {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
  }
.mode-btn {
    padding: 0.6rem 1rem;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s, color 0.2s;
  }
.mode-btn.active {
    background: #0066cc;
    color: white;
  }
.edit-mode {
    display: none;
  }
.edit-mode.active {
    display: block;
  }
.magic-container {
    max-width: 1000px;
    margin: 0 auto;
  }
.game-details-section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
  }
.chat-and-code {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }
.chat-section {
    display: flex;
    flex-direction: column;
    height: 500px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
  }
.chat-header {
    padding: 1rem;
    background: #f9f9f9;
    border-bottom: 1px solid #ddd;
  }
.chat-header h3 {
    margin: 0;
  }
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #fff;
  }
.user-message, .wizard-message {
    display: flex;
    margin-bottom: 1rem;
    animation: fade-in 0.3s ease-in-out;
  }
@keyframes fade-in {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
  }
.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    flex-shrink: 0;
  }
.user-message .message-avatar {
    background: #0066cc;
    color: white;
  }
.wizard-message .message-avatar {
    background: #f0f0f0;
  }
.message-content {
    background: #f0f8ff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    max-width: 85%;
  }
.user-message .message-content {
    background: #e6f2ff;
  }
.message-content p {
    margin: 0 0 0.5rem 0;
  }
.message-content p:last-child {
    margin-bottom: 0;
  }
.chat-input {
    display: flex;
    border-top: 1px solid #ddd;
    padding: 0.75rem;
    background: #f9f9f9;
  }
.chat-input textarea {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.75rem;
    resize: none;
    height: 60px;
    font-family: inherit;
  }
.chat-send-btn {
    padding: 0 1rem;
    margin-left: 0.75rem;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
  }
.chat-send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
  }
.code-preview {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
  }
.code-preview h3 {
    margin: 0;
    padding: 1rem;
    background: #f9f9f9;
    border-bottom: 1px solid #ddd;
  }
#magic-code-preview {
    margin: 0;
    height: 438px;
    overflow-y: auto;
    padding: 1rem;
    font-size: 0.9rem;
  }
/* Code editor section with tabs */
.code-editor-section {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 500px;
  }
.code-tabs {
    display: flex;
    background: #f9f9f9;
    border-bottom: 1px solid #ddd;
  }
.code-tab {
    padding: 1rem;
    background: none;
    border: none;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    color: #555;
  }
.code-tab.active {
    color: #0066cc;
  }
.code-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #0066cc;
  }
.code-panel {
    display: none;
    flex: 1;
    height: 100%;
  }
.code-panel.active {
    display: block;
  }
.code-editor {
    width: 100%;
    height: 100%;
    border: none;
    padding: 1rem;
    font-family: monospace;
    font-size: 14px;
    resize: none;
    box-sizing: border-box;
    background: #fff;
    color: #333;
    line-height: 1.6;
  }
@media (max-width: 900px) {
    .chat-and-code {
      grid-template-columns: 1fr;
    }

    .chat-section, .code-editor-section {
      height: 400px;
    }

    #magic-code-preview {
      height: 338px;
    }
  }
:root {
  --primary-color: #ff5678;
  --secondary-color: #5d4af7;
  --accent-color: #00e9a3;
  --dark-color: #1a1b3a;
  --light-color: #f0f4ff;
  --gradient-bg: linear-gradient(135deg, #5d4af7, #ff5678);
  --card-shadow: 0 8px 20px rgba(93, 74, 247, 0.2), 0 4px 8px rgba(255, 86, 120, 0.2);
  --button-shadow: 0 5px 0 rgba(0, 0, 0, 0.2);
  --glow-effect: 0 0 10px rgba(0, 233, 163, 0.4), 0 0 20px rgba(0, 233, 163, 0.2);

  /* Dark mode colors */
  --dark-primary-color: #ff7090;
  --dark-secondary-color: #7a6cff;
  --dark-accent-color: #00ffb3;
  --dark-bg-color: #121225;
  --dark-surface-color: #1f1f3d;
  --dark-text-color: #e0e4ff;
  --dark-card-shadow: 0 8px 20px rgba(122, 108, 255, 0.3), 0 4px 8px rgba(255, 112, 144, 0.3);
  --dark-button-shadow: 0 5px 0 rgba(0, 0, 0, 0.4);
  --dark-glow-effect: 0 0 10px rgba(0, 255, 179, 0.6), 0 0 20px rgba(0, 255, 179, 0.4);
}
/* Dark mode styles */
.dark-mode {
  --primary-color: var(--dark-primary-color);
  --secondary-color: var(--dark-secondary-color);
  --accent-color: var(--dark-accent-color);
  --dark-color: var(--dark-text-color);
  --light-color: var(--dark-bg-color);
  --card-shadow: var(--dark-card-shadow);
  --button-shadow: var(--dark-button-shadow);
  --glow-effect: var(--dark-glow-effect);
  --gradient-bg: linear-gradient(135deg, var(--dark-secondary-color), var(--dark-primary-color));
}
.dark-mode body {
  background-color: var(--dark-bg-color);
  color: var(--dark-text-color);
}
.dark-mode .game-card,
.dark-mode .feature-card,
.dark-mode form,
.dark-mode input,
.dark-mode textarea,
.dark-mode select {
  background-color: var(--dark-surface-color);
  border-color: var(--dark-secondary-color);
}
.dark-mode header,
.dark-mode footer {
  background-color: var(--dark-surface-color);
}
/* Additional dark mode styles for better contrast and visibility */
.dark-mode a {
  color: var(--dark-accent-color);
}
.dark-mode .site-nav a,
.dark-mode .footer-links a {
  color: var(--dark-text-color);
}
.dark-mode .site-nav a:hover,
.dark-mode .footer-links a:hover {
  color: var(--dark-accent-color);
}
.dark-mode .site-nav a.create-button {
  background: var(--dark-primary-color);
  color: var(--dark-bg-color);
}
.dark-mode .game-card {
  box-shadow: var(--dark-card-shadow);
}
.dark-mode .game-card::before {
  opacity: 0.2;
}
.dark-mode .actions a,
.dark-mode .auth-actions a,
.dark-mode .button {
  background: var(--dark-secondary-color);
  color: var(--dark-text-color);
  box-shadow: var(--dark-button-shadow);
}
.dark-mode .actions a:nth-child(2n),
.dark-mode .auth-actions a:nth-child(2n),
.dark-mode .button.secondary {
  background: var(--dark-primary-color);
}
.dark-mode .actions a:hover,
.dark-mode .auth-actions a:hover,
.dark-mode .button:hover {
  box-shadow: var(--dark-glow-effect), var(--dark-button-shadow);
  background: var(--dark-accent-color);
  color: var(--dark-bg-color);
}
/* Dark mode toggle button */
.dark-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 15px;
  border: none;
  border-radius: 50%;
  background: var(--gradient-bg);
  color: var(--light-color);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--button-shadow);
}
.dark-mode-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.2);
}
.dark-mode-toggle:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
}
.dark-mode-toggle .sun-icon,
.dark-mode-toggle .moon-icon {
  position: absolute;
  width: 20px;
  height: 20px;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.dark-mode-toggle .sun-icon {
  opacity: 1;
  transform: translateY(0) rotate(0);
}
.dark-mode-toggle .moon-icon {
  opacity: 0;
  transform: translateY(20px) rotate(90deg);
}
/* Change icons when in dark mode */
.dark-mode .dark-mode-toggle .sun-icon {
  opacity: 0;
  transform: translateY(-20px) rotate(-90deg);
}
.dark-mode .dark-mode-toggle .moon-icon {
  opacity: 1;
  transform: translateY(0) rotate(0);
}
/* Cursor trailer effect */
.cursor-trailer {
  position: fixed;
  width: 40px;
  height: 40px;
  background: rgba(0, 233, 163, 0.2);
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: difference;
  z-index: 9999;
  transition: transform 0.1s ease;
  transform: translate(-50%, -50%) scale(0);
}
.cursor-trailer.active {
  transform: translate(-50%, -50%) scale(1.2);
  transition: transform 0.1s ease, background-color 0.3s ease, width 0.3s ease, height 0.3s ease;
  background: rgba(255, 86, 120, 0.3);
}
/* Sparks effect */
.spark {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.4px);
  box-shadow: 0 0 6px currentColor;
  will-change: transform, opacity;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  z-index: 9998;
}
/* Special sparks that leave trails */
.spark:nth-child(3n+1)::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: inherit;
  filter: blur(3px);
  opacity: 0.7;
  transform: translate(-50%, -50%);
  z-index: -1;
}
/* Mini sparkles that follow the magic wand cursor */
.mini-sparkle {
  position: fixed;
  width: 5px;
  height: 5px;
  background-color: var(--accent-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: sparkle-fade ease-out forwards;
  will-change: transform, opacity;
  mix-blend-mode: screen;
}
@keyframes sparkle-fade {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x, 0)), calc(-50% + var(--y, -20px))) scale(0.5) rotate(var(--rotation, 45deg));
  }
}
/* Spark container */
.spark-container {
  pointer-events: none;
  z-index: 9998;
}
/* Global styles */
body {
  font-family: 'Rubik', system-ui, sans-serif;
  margin: 0;
  padding: 0;
  color: var(--dark-color);
  background-color: var(--light-color);
  background-image:
    radial-gradient(circle at 15% 15%, rgba(255, 86, 120, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 85% 85%, rgba(93, 74, 247, 0.1) 0%, transparent 50%);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}
/* Floating decorative elements */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 550px;
  background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27800%27 height=%27800%27 viewBox=%270 0 800 800%27%3E%3Cg fill=%27none%27 stroke=%27%235d4af7%27 stroke-width=%271%27%3E%3Cpath d=%27M769 229L1037 260.9M927 880L731 737 520 660 309 538 40 599 295 764 126.5 879.5 40 599-197 493 102 382-31 229 126.5 79.5-69-63%27/%3E%3Cpath d=%27M-31 229L237 261 390 382 603 493 308.5 537.5 101.5 381.5M370 905L295 764%27/%3E%3Cpath d=%27M520 660L578 842 731 737 840 599 603 493 520 660 295 764 309 538 390 382 539 269 769 229 577.5 41.5 370 105 295 -36 126.5 79.5 237 261 102 382 40 599 -69 737 127 880%27/%3E%3Cpath d=%27M520-140L578.5 42.5 731-63M603 493L539 269 237 261 370 105M902 382L539 269M390 382L102 382%27/%3E%3Cpath d=%27M-222 42L126.5 79.5 370 105 539 269 577.5 41.5 927 80 769 229 902 382 603 493 731 737M295-36L577.5 41.5M578 842L295 764M40-201L127 80M102 382L-261 269%27/%3E%3C/g%3E%3Cg fill=%27%2300e9a3%27%3E%3Ccircle cx=%27769%27 cy=%27229%27 r=%275%27/%3E%3Ccircle cx=%27539%27 cy=%27269%27 r=%275%27/%3E%3Ccircle cx=%27603%27 cy=%27493%27 r=%275%27/%3E%3Ccircle cx=%27731%27 cy=%27737%27 r=%275%27/%3E%3Ccircle cx=%27520%27 cy=%27660%27 r=%275%27/%3E%3Ccircle cx=%27309%27 cy=%27538%27 r=%275%27/%3E%3Ccircle cx=%27295%27 cy=%27764%27 r=%275%27/%3E%3Ccircle cx=%2740%27 cy=%27599%27 r=%275%27/%3E%3Ccircle cx=%27102%27 cy=%27382%27 r=%275%27/%3E%3Ccircle cx=%27127%27 cy=%2780%27 r=%275%27/%3E%3Ccircle cx=%27370%27 cy=%27105%27 r=%275%27/%3E%3Ccircle cx=%27578%27 cy=%2742%27 r=%275%27/%3E%3Ccircle cx=%27237%27 cy=%27261%27 r=%275%27/%3E%3Ccircle cx=%27390%27 cy=%27382%27 r=%275%27/%3E%3C/g%3E%3C/svg%3E") no-repeat center top;
  background-size: 100% auto;
  opacity: 0.05;
  pointer-events: none;
  z-index: -1;
}
/* Floating animation for various elements */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}
.hero-section, .browse-hero, .featured-section h2, .browse-cta {
  position: relative;
}
.hero-section::before, .browse-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: 5%;
  width: 80px;
  height: 80px;
  background: var(--gradient-bg);
  border-radius: 24px;
  transform: rotate(15deg);
  opacity: 0.5;
  animation: float 6s ease-in-out infinite;
  z-index: -1;
}
.hero-section::after, .browse-hero::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 10%;
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 7s ease-in-out infinite reverse;
  z-index: -1;
}
.featured-section h2::before {
  content: '🎮';
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  animation: float 4s ease-in-out infinite;
}
/* Header and navigation */
header {
  background: var(--gradient-bg);
  padding: 1rem 0;
  margin-bottom: 2rem;
  border-radius: 0 0 1.5rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 10;
}
.header-content {
  max-width: 1200px;
    margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-logo {
  font-family: 'Bungee', cursive;
  font-size: 2.5rem;
  color: white;
  text-shadow: 3px 3px 0 var(--dark-color);
  margin: 0;
  transform: rotate(-2deg);
  display: inline-block;
  text-decoration: none;
}
.site-logo:hover {
  animation: wiggle 0.5s ease;
}
/* Animated gradient text for WeeBit part of logo */
.gradient-text {
  background: linear-gradient(
    to right,
    #ff7a90,
    #ff3366,
    #00ffc3,
    #00e9a3,
    #ff7a90
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  animation: gradient-pan 8s linear infinite;
  display: inline-block;
  text-shadow: none;
  font-weight: 800;
}
@keyframes gradient-pan {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}
.logo-suffix {
  color: white;
  text-shadow: 3px 3px 0 var(--dark-color);
  display: inline-block;
}
.site-nav {
  display: flex;
  gap: 1rem;
}
.site-nav a {
  color: white;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  font-weight: 600;
  box-shadow: var(--button-shadow);
  transform: translateY(0);
}
.site-nav a:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.2);
}
.site-nav a:active {
  transform: translateY(0);
  box-shadow: var(--button-shadow);
}
/* Create button highlight */
.site-nav a.create-button {
  background-color: var(--accent-color);
  color: var(--dark-color);
  font-weight: 700;
  border: 2px solid var(--accent-color);
  box-shadow: 0 5px 15px rgba(0, 233, 163, 0.4);
}
.site-nav a.create-button:hover {
  background-color: white;
  color: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-3px) scale(1.05);
}
/* Container */
.container {
  max-width: 100%;
  padding: 0 2vw; /* Reduced side padding significantly */
  margin: 0 auto;
}
/* Page titles */
h1, h2, h3 {
  font-family: 'Bungee', cursive;
  color: var(--dark-color);
  line-height: 1.2;
  margin-top: 0;
}
h1 {
  font-size: 3rem;
  background: var(--gradient-bg);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.5);
}
h1::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80px;
  height: 8px;
  background: var(--accent-color);
  border-radius: 4px;
}
h2 {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  position: relative;
}
h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
/* Game cards */
.games-list, .games-grid {
  margin: 2rem 0;
  position: relative;
  }
.game-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  border-radius: 15px;
  background: white;
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  border: 3px solid transparent;
  z-index: 1;
}
.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--gradient-bg);
  z-index: -1;
  }
.game-card:hover {
  transform: translateY(-10px) rotate(1deg);
  box-shadow: 0 15px 30px rgba(93, 74, 247, 0.3), 0 8px 15px rgba(255, 86, 120, 0.3);
  border-color: var(--accent-color);
}
.game-card h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-weight: 800;
}
.game-card a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.game-card a:hover {
  color: var(--primary-color);
  text-decoration: none;
}
.game-card a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  background: var(--accent-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
  z-index: -1;
}
.game-card a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
/* Actions sections */
.actions, .auth-actions {
  margin: 2.5rem 0;
  padding: 2rem;
  border-radius: 15px;
  background: white;
  box-shadow: var(--card-shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.actions::before, .auth-actions::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(45deg,
    rgba(93, 74, 247, 0.1),
    rgba(255, 86, 120, 0.1),
    rgba(0, 233, 163, 0.1),
    rgba(93, 74, 247, 0.1)
  );
  animation: gradient-shift 10s linear infinite;
  z-index: 0;
}
.actions a, .auth-actions a, .button {
    display: inline-block;
  margin: 0.5rem;
  padding: 0.8rem 1.6rem;
  background: var(--primary-color);
    color: white;
    text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  box-shadow: var(--button-shadow);
  border: none;
  cursor: pointer;
  font-family: 'Rubik', system-ui, sans-serif;
  font-size: 1rem;
}
.actions a:nth-child(2n), .auth-actions a:nth-child(2n), .button.secondary {
  background: var(--secondary-color);
}
.actions a:hover, .auth-actions a:hover, .button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.2);
}
.actions a:active, .auth-actions a:active, .button:active {
  transform: translateY(0);
  box-shadow: var(--button-shadow);
}
/* Footer */
.footer {
  text-align: center;
  padding: 3rem 0 2rem;
    margin-top: 4rem;
  background: var(--dark-color);
  color: white;
  border-radius: 1.5rem 1.5rem 0 0;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--gradient-bg);
}
.footer p {
  margin-bottom: 1.5rem;
  opacity: 0.8;
  }
.footer-links {
    display: flex;
    justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  }
.footer-links a {
  color: var(--accent-color);
    text-decoration: none;
  position: relative;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}
.footer-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--accent-color);
  transition: width 0.3s ease;
  }
.footer-links a:hover {
  color: white;
}
.footer-links a:hover::before {
  width: 80%;
}
/* Game frame */
.game-frame-container {
  position: relative;
  width: 100%;
  padding-bottom: 62.5%; /* 16:10 aspect ratio */
  margin: 2rem 0;
  background: var(--dark-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  border: 5px solid var(--accent-color);
}
.game-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.fullscreen-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent-color);
  color: var(--dark-color);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}
.fullscreen-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--glow-effect);
}
.fullscreen-toggle svg {
  fill: var(--dark-color);
  width: 24px;
  height: 24px;
}
.fullscreen-mode {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  padding: 0;
  margin: 0;
  border-radius: 0;
  z-index: 1000;
}
/* Browse page */
.browse-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.browse-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: var(--card-shadow);
}
.browse-select {
  padding: 0.8rem 1.5rem;
  border: 3px solid var(--accent-color);
  border-radius: 50px;
  background-color: white;
  color: var(--dark-color);
  font-family: 'Rubik', system-ui, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2716%27 height=%2716%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%231a1b3a%27 stroke-width=%273%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M6 9l6 6 6-6%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}
.browse-select:hover {
  border-color: var(--primary-color);
  box-shadow: var(--glow-effect);
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.no-games-message {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: var(--card-shadow);
}
.browse-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 3rem 0;
  padding: 1rem;
  background: white;
  border-radius: 50px;
  box-shadow: var(--card-shadow);
  display: inline-flex;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.browse-pagination span {
  font-weight: 600;
  color: var(--dark-color);
}
.pagination-btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: var(--secondary-color);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: var(--button-shadow);
}
.pagination-btn:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.2);
}
/* Game description */
.game-description {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  margin: 2rem 0;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}
.game-description::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--accent-color);
}
.game-description h2 {
  margin-top: 0;
  position: relative;
  padding-left: 1rem;
}
/* Forms */
form {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--card-shadow);
  margin: 2rem 0;
}
.form-group {
  margin-bottom: 1.5rem;
}
label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark-color);
}
input, textarea, select {
  width: 100%;
  padding: 1rem;
  border: 3px solid #e0e5ff;
  border-radius: 10px;
  font-family: 'Rubik', system-ui, sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8faff;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(93, 74, 247, 0.2);
}
.form-submit {
  margin-top: 2rem;
}
/* Animations */
@keyframes wiggle {
  0% { transform: rotate(-2deg); }
  25% { transform: rotate(3deg); }
  50% { transform: rotate(-3deg); }
  75% { transform: rotate(2deg); }
  100% { transform: rotate(-2deg); }
}
@keyframes gradient-shift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(100%, 100%); }
}
/* Responsive adjustments */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .site-logo {
    margin-bottom: 1rem;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  h1 {
    font-size: 2.5rem;
    text-align: center;
  }

  h1::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .browse-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .games-grid {
    grid-template-columns: 1fr;
  }

  .actions a, .auth-actions a, .button {
    display: block;
    margin: 1rem 0;
  }
}
/* Hero buttons */
.hero-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 50px;
  margin: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: var(--button-shadow);
}
.hero-button.primary {
  background-color: var(--primary-color);
  color: white;
  border: 3px solid var(--primary-color);
}
.hero-button.secondary {
  background-color: transparent;
  color: white;
  border: 3px solid rgba(255, 255, 255, 0.3);
}
/* Create a Game CTA button styling */
.hero-button.create-cta {
  background-color: var(--accent-color);
  color: var(--dark-color);
  border: 3px solid var(--accent-color);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 5px 15px rgba(0, 233, 163, 0.4);
  position: relative;
  overflow: hidden;
  font-size: 1.3rem;
  padding: 1.2rem 3rem;
}
.hero-button.create-cta:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 233, 163, 0.6);
}
.hero-button.create-cta:active {
  transform: translateY(0);
  }
/* Homepage Styles - Optimized for space efficiency */
/* Special home container without padding */
.home-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0; /* No padding for maximum space utilization */
}
/* Spotlight Row (large carousel) */
.game-row.spotlight-row {
  margin-bottom: 0.5rem; /* Reduced margin */
}
.large-carousel {
  display: flex;
  gap: 1rem; /* Reduced gap between spotlight items */
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  padding-bottom: 0.5rem; /* Space for scrollbar */
}
.game-card-large {
  flex: 0 0 calc(33.333% - 0.75rem); /* Show exactly 3 items when space allows */
  min-width: 280px; /* Minimum width on smaller screens */
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
  box-shadow: var(--card-shadow, 0 4px 12px rgba(0, 0, 0, 0.1));
}
.game-card-large:hover {
  transform: translateY(-5px);
}
.game-card-large img {
  width: 100%;
  aspect-ratio: 16/9;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 1rem;
  color: white;
}
.card-overlay h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}
.play-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-color, #ff5678);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  width: -moz-fit-content;
  width: fit-content;
}
/* Standard Game Rows */
.game-row {
  margin-bottom: 0.5rem; /* Reduced margin between rows from 1.5rem to 0.5rem */
}
.row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem; /* Reduced margin */
}
.row-header h2 {
  margin: 0;
  font-size: 1.5rem;
}
.view-more {
  font-weight: 600;
  text-decoration: none;
  color: var(--primary-color, #5d4af7);
}
/* Two-row game carousels with grid layout */
.game-carousel:not(.large-carousel) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); /* Increased card size to original */
  grid-template-rows: repeat(2, auto); /* Two rows */
  grid-auto-flow: column; /* Fill columns first, then rows */
  gap: 0.5rem; /* Further reduced spacing between cards */
  overflow-x: auto;
  overflow-y: hidden; /* Prevent vertical scrolling */
  scroll-behavior: smooth;
  scrollbar-width: thin;
  padding-bottom: 0.5rem; /* Space for scrollbar */

  /* Use fixed height based on aspect ratio to ensure exactly 2 rows */
  height: calc((240px * 9/16 * 2) + 0.5rem); /* Adjusted height based on new card size */
  width: 100%; /* Ensure it spans the full width */
}
/* Fix to prevent artifacts on right side */
.game-carousel:not(.large-carousel)::after {
  content: "";
  flex: 0 0 1px; /* Tiny flex item */
  height: 1px; /* Minimal height */
  visibility: hidden; /* Make it invisible */
}
/* Game cards styling */
.game-card-small {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
  width: 100%; /* Ensure cards take full column width */
  min-width: 240px; /* Increased minimum width to match original */
  max-width: 100%; /* Prevent overflow */
}
.game-card-small:hover {
  transform: scale(1.05); /* Revert to original scale transform */
  z-index: 5;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25); /* Original shadow on hover */
}
.game-card-small img {
  width: 100%;
  aspect-ratio: 16/9;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  transition: all 0.5s ease; /* Original transition */
}
.game-card-small:hover img {
  transform: scale(1.1); /* Original hover effect on image */
}
/* Card overlay - restore hover behavior */
.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  opacity: 0; /* Hide overlay initially */
  transition: opacity 0.3s ease;
}
.game-card-large:hover .card-overlay,
.game-card-small:hover .card-overlay {
  opacity: 1; /* Show overlay on hover */
}
.card-overlay h3 {
  margin: 0;
  font-size: 1.4rem;
  color: white; /* Original text color */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.game-card-small .card-overlay h3 {
  font-size: 1.1rem;
}
/* Restore original play button styling */
.play-button {
  display: inline-flex;
  align-items: center;
  background: var(--accent-color);
  color: var(--dark-color);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  margin-top: 0.8rem;
  font-weight: 700;
  transition: all 0.3s ease;
}
.play-button:hover {
  background: white;
  transform: scale(1.05);
}
.play-icon {
  margin-right: 0.5rem;
}
/* Placeholder styling */
.placeholder {
  background: linear-gradient(to right, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
  animation: shimmer 1.5s infinite;
  background-size: 200% 100%;
}
@keyframes shimmer {
  0% { background-position: -100% 0; }
  100% { background-position: 100% 0; }
}
.game-card-large.placeholder .placeholder-content {
  height: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #666;
}
.game-card-small.placeholder .placeholder-content {
  height: 100%;
  aspect-ratio: 16/9;
}
/* CTA Section */
.home-cta {
  margin: 1rem 0; /* Increased margin from 0.5rem to 1rem */
  padding: 3rem 2rem;
  background: var(--gradient-bg);
  color: white;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--card-shadow);
}
.cta-content {
  max-width: 800px;
  margin: 0 auto;
}
.cta-content h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.cta-button {
  display: inline-block;
  background: var(--accent-color);
  color: var(--dark-color);
  font-size: 1.2rem;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--button-shadow);
}
.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background: white;
}
/* Action Links */
.actions {
  margin: 1rem 0; /* Increased margin from 0.5rem to 1rem */
  padding: 2rem;
  border-radius: 15px;
  background: white;
  box-shadow: var(--card-shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.actions::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(45deg,
    rgba(93, 74, 247, 0.1),
    rgba(255, 86, 120, 0.1),
    rgba(0, 233, 163, 0.1),
    rgba(93, 74, 247, 0.1)
  );
  animation: gradient-shift 10s linear infinite;
  z-index: 0;
}
.actions a {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.8rem 1.6rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  box-shadow: var(--button-shadow);
}
.actions a:nth-child(2n) {
  background: var(--secondary-color);
}
.actions a:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.2);
}
/* Feature Cards */
.home-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1rem 0; /* Increased margin from 0.5rem to 1rem */
}
.feature-card {
  padding: 1.5rem; /* Reduced padding */
  border-radius: 12px;
  background: white;
  box-shadow: var(--card-shadow, 0 4px 12px rgba(0, 0, 0, 0.1));
  text-align: center;
  transition: all 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(93, 74, 247, 0.2), 0 6px 10px rgba(255, 86, 120, 0.2);
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem; /* Reduced margin */
}
.feature-card h3 {
  margin-bottom: 0.75rem; /* Reduced margin */
}
.feature-card p {
  color: var(--dark-color, #333);
  opacity: 0.8;
  margin: 0;
}
/* Custom scrollbar styling */
.game-carousel::-webkit-scrollbar {
  height: 6px;
}
.game-carousel::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.game-carousel::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}
.game-carousel::-webkit-scrollbar-thumb:hover {
  background: #555;
}
/* Responsive adjustments */
@media (max-width: 768px) {
  .game-card-large {
    flex: 0 0 85%;
    min-width: 250px;
  }

  .game-carousel:not(.large-carousel) {
    grid-template-rows: auto; /* Single row on small screens */
    grid-auto-flow: row; /* Stack vertically on small screens */
    height: auto; /* Allow natural height */
    max-height: none;
    overflow-y: visible;
  }

  .home-features {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}
/* Badge styling */
.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.25rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 2;
  text-transform: uppercase;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.badge.new {
  background-color: var(--primary-color);
  color: white;
}

