/*
I HOPE NOBODY BUT ME NEEDS TO UPDATE THIS FILE, BECAUSE IT IS SO FUCKING LONG IDFK WHY I DID THIS TO MYSELF
also its not organized by anything...
*/

/* CSS Variables for Theme */
:root {
  --bg-gradient-1: #f4e4bc;
  --bg-gradient-2: #e8d5b7;
  --bg-gradient-3: #dcc6a0;
  --text-primary: #8b4513;
  --text-secondary: #a0522d;
  --text-shadow: #d2b48c;
  --card-bg: #fff;
  --border-color: rgba(139, 69, 19, 0.3);
  --footer-bg: rgba(255, 255, 255, 0.3);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-gradient-1: #2a1810;
    --bg-gradient-2: #1f130e;
    --bg-gradient-3: #140c08;
    --text-primary: #d2b48c;
    --text-secondary: #c4a373;
    --text-shadow: #4a3428;
    --card-bg: #3d2817;
    --border-color: rgba(210, 180, 140, 0.3);
    --footer-bg: rgba(61, 40, 23, 0.6);
  }

  .game-card .feature-card {
    color: var(--text-primary) !important;
  }

  .game-title {
    color: var(--text-secondary) !important;
  }

  .linus-mascot {
    border-color: var(--text-primary) !important;
  }

  .treat {
    border-color: var(--border-color) !important;
  }

  .tagline {
    border-right-color: var(--text-primary) !important;
  }

  .game-image {
    border-color: var(--text-primary) !important;
  }

  .game-card .feature-card {
    border-color: var(--text-primary) !important;
  }
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* load the local font */
@font-face {
  font-family: 'Comic Sans MS';
  src: url('/content/COMIC.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* then use it in your body */
body {
  font-family: 'Comic Sans MS', cursive, sans-serif;
  background: linear-gradient(45deg, var(--bg-gradient-1), var(--bg-gradient-2), var(--bg-gradient-3));
  background-size: 400% 400%;
  animation: gradientShift 10s ease infinite;
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}


/* For game pages with dark background */
body.game-page {
  background-color: #1a1410;
  color: #d4b896;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating treats animation */
.treats {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.treat {
  position: absolute;
  width: 80px;
  height: 80px;
  animation: floatTreat 8s linear infinite;
  opacity: 0.4;
  border-radius: 50%;
  overflow: hidden;
}

.treat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes floatTreat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Container */
.container {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Header Styles */
.header {
  text-align: center;
  margin-bottom: 3rem;
}

.site-title {
  font-size: 3.5rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-shadow: 3px 3px 0px var(--text-shadow), 
               6px 6px 10px var(--border-color);
  animation: wobble 2s ease-in-out infinite;
  font-weight: bold;
}

.header h1 {
  font-size: 48px;
  color: #d4b896;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.header p {
  font-size: 20px;
  color: #a89070;
}

/* Account Button (top right) */
.account-btn-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.account-btn {
    background: linear-gradient(45deg, #daa520, #cd853f);
    color: white;
    border: 3px solid var(--text-primary);
    padding: 12px 20px;
    font-size: 1rem;
    font-family: 'Comic Sans MS', cursive;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3);
}

.account-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(218, 165, 32, 0.4);
}

.account-btn svg {
    width: 24px;
    height: 24px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 450px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.account-card {
    background: var(--card-bg);
    border: 4px solid var(--text-primary);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    color: var(--text-primary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--text-secondary);
}

.account-title {
    text-align: center;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-transform: lowercase;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: 3px solid var(--text-primary);
    color: var(--text-primary);
    padding: 12px;
    font-size: 1.1rem;
    font-family: 'Comic Sans MS', cursive;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: lowercase;
}

.tab-btn:hover {
    background: rgba(139, 69, 19, 0.1);
}

.tab-btn.active {
    background: linear-gradient(45deg, #daa520, #cd853f);
    color: white;
    border-color: #daa520;
}

/* Forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.input-field {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 3px solid var(--text-primary);
    border-radius: 15px;
    font-size: 1rem;
    font-family: 'Comic Sans MS', cursive;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #daa520;
    background: white;
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.2);
}

.auth-btn {
    width: 100%;
    background: linear-gradient(45deg, #daa520, #cd853f);
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.2rem;
    font-family: 'Comic Sans MS', cursive;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    text-transform: lowercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(218, 165, 32, 0.4);
}

.auth-btn.logout-btn {
    background: linear-gradient(45deg, #d9534f, #c9302c);
    margin-top: 20px;
}

.error-msg {
    color: #d9534f;
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: center;
    min-height: 20px;
}

/* Profile */
.profile-info {
    background: rgba(139, 69, 19, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.profile-info p {
    margin: 10px 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.profile-info strong {
    color: var(--text-secondary);
}

/* Avatar Styles */
.profile-avatar {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--text-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.avatar-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    padding: 20px;
    background: rgba(139, 69, 19, 0.05);
    border: 3px dashed var(--border-color);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 180px;
}

.avatar-preview:hover {
    background: rgba(139, 69, 19, 0.1);
    border-color: var(--text-primary);
}

#pfp {
    width: 4rem;
    height: 4rem;
    border: 3px dashed var(--border-color);
    border-radius: 15px;
    display: inline-block;
    overflow: hidden;
    border-radius: 50%; /* make it round like an avatar */
}

#pfp img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* keeps image ratio, fills div */
}

.upload-placeholder {
    text-align: center;
    color: var(--text-primary);
}

.upload-placeholder p {
    margin-top: 10px;
    font-size: 1.1rem;
}

.default-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
    .account-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .account-btn span {
        display: none;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .account-card {
        padding: 30px 20px;
    }
}

@keyframes wobble {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(1deg); }
  50% { transform: rotate(0deg); }
  80% { transform: rotate(-1deg); }
}

/* Replace the existing .tagline styles in your CSS with this: */

.tagline {
    font-size: 1.8rem;
    color: var(--text-secondary);
    border-right: 3px solid var(--text-secondary);
    padding-right: 5px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
}

.tagline.typing {
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    0%, 50% { border-color: var(--text-secondary); }
    51%, 100% { border-color: transparent; }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .tagline {
        font-size: 1.2rem;
        white-space: normal;
        border-right: none;
        animation: none;
    }
    
    .tagline.typing {
        animation: none;
    }
}

.screen {
  text-align: center;
  color: var(--text-primary);
  font-family: inherit;
  padding: 2rem;
}

/* Game Card Styles */
.game-card {
  background: var(--card-bg);
  border: 4px solid var(--text-primary);
  border-radius: 30px;
  padding: 30px;
  max-width: 1040px;
  width: 100%;
  text-align: center;
  box-shadow: 
    0 10px 25px var(--border-color),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
}

/* For Unity game pages */
.gamer-card.unity-game {
  background: linear-gradient(145deg, #3d2f1f, #2d1f0f);
  border: 4px solid #d4b896;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.game-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #daa520, #cd853f, #daa520);
  border-radius: 22px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gamer-card.unity-game {
  width: 100%;
  max-width: 1000px;  /* adjust if needed */
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* maintain aspect ratio for screens */
#app,
#loading,
#error {
  width: 100%;
  height: 0;
  padding-top: 62.5%; /* 960 / 600 = 1.6 → 62.5% */
  position: relative;
}

/* make content fill container */
#app > *, #loading > *, #error > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#launch .green-flag {
  top: 3%;
  left: 3%;
  width: 50px;
  height: 50px;
  background-color: #4cbf56;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  position: relative;       /* same as fullscreen button */
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#launch .green-flag:hover {
  background-color: #59c25a; /* slightly brighter green on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

/* optional: put the svg or icon inside the button centered */
#launch .green-flag svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;      /* fits nicely inside button */
  height: 60%;
}






.game-card:hover::before {
  opacity: 1;
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.game-card:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 
    0 15px 35px var(--border-color),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Featured Card */
.feature-card {
  max-width: 1100px;
  padding: 2.5rem;
  position: relative; /* for absolute badge */
  width: 1100px;
  padding: 2rem;
  border-radius: 20px;
  font-size: 36px;
  color: #d4b896;
  margin-bottom: 20px;
}

/* Image wrapper keeps rounded corners while allowing badge outside */
.feature-card .image-wrapper {
  position: relative;
  border-radius: 25px;
  overflow: hidden; /* only rounds image edges */
}

.feature-card .image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 25px; /* optional extra rounding */
}

/* NEW Badge */
.feature-card .new-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: yellow;
  color: black;
  font-weight: 900;
  font-size: 2rem;
  padding: 10px 20px;
  border-radius: 10px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  transform-origin: center;
  transform: rotate(25deg); /* base rotation */
  animation: pulse 1.3s infinite ease-in-out;
  z-index: 10;
}

/* Pulse animation */
@keyframes pulse {
  0%, 100% { transform: rotate(25deg) scale(1); }
  50% { transform: rotate(25deg) scale(1.7); }
}

/* Games Grid Container */
.games-container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin: 3rem 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

#fanGamesContent {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin: 3rem 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.games-container .game-card {
  width: 350px;
  min-width: 300px;
  flex: 0 1 calc(33.333% - 2rem);
  max-width: 350px;
  padding: 2rem;
  border-radius: 20px;
}

#fanGamesContent .game-card {
  justify-content: center;
  gap: 3rem;
  flex: 0 1 calc(33.333% - 2rem);
  flex-wrap: wrap;
  margin: 3rem 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Game Title */
.game-title {
  text-align: center;
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  text-transform: lowercase;
}

.game-card.unity-game .game-title {
  font-size: 36px;
  color: #d4b896;
  margin-bottom: 20px;
}

/* Game Image */
.game-image {
  width: 280px;
  height: 200px;
  border: 3px solid var(--text-primary);
  border-radius: 15px;
  margin: 0 auto 1.5rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.game-image:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.game-image.placeholder {
  background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Unity Container */
#unity-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#unity-canvas {
  background: #000;
  border: 3px solid #d4b896;
  border-radius: 15px;
  width: 1280px;
  height: 720px;
  display: block;
}

#unity-loading-bar {
  margin-top: 20px;
  width: 300px;
  height: 30px;
  background-color: #2d1f0f;
  border: 2px solid #d4b896;
  border-radius: 15px;
  overflow: hidden;
  display: none;
}

#unity-progress-bar-full {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #d4b896, #f4d8b6);
  transition: width 0.3s ease;
}

#unity-warning {
  margin-top: 15px;
  text-align: center;
}

#unity-warning > div {
  border-radius: 10px;
  margin: 5px 0;
  font-size: 14px;
}

#unity-footer {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

#unity-fullscreen-button {
  width: 50px;
  height: 50px;
  background-color: #c9a869;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#unity-fullscreen-button:hover {
  background-color: #d4b896;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

#unity-fullscreen-button::before {
  content: "⛶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: #2d1f0f;
}

#nicknameInput {
    padding: 12px 15px;
    border: 3px solid var(--text-primary);
    border-radius: 15px;
    font-size: 1rem;
    font-family: 'Comic Sans MS', cursive;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

#nicknameInput:focus {
    outline: none;
    border-color: #daa520;
    background: white;
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.2);
}

#unity-build-title {
  font-size: 18px;
  color: #d4b896;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Button Styles */
.button,
.play-btn {
  background: linear-gradient(45deg, #daa520, #cd853f);
  background-size: 200% 200%;
  background-position: left center;
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  font-family: 'Comic Sans MS', cursive;
  font-weight: bold;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3);
  text-decoration: none;
  display: inline-block;
  transition: transform 0.15s ease, 
              box-shadow 0.15s ease,
              background-position 0.5s ease;
  text-transform: uppercase;
}

.button {
  background-color: #c9a869;
  color: #2d1f0f;
  padding: 12px 30px;
  font-size: 18px;
}

.button:hover,
.play-btn:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(218, 165, 32, 0.4);
}

.button.unity-button:hover {
  background-color: #d4b896;
}

.button:active,
.play-btn:active {
  animation: press 0.2s ease forwards;
  transform: translateY(0);
}

@keyframes press {
  0% { 
    transform: translateY(-2px) scale(1);
    box-shadow: 0 6px 20px rgba(218,165,32,0.4);
  }
  50% { 
    transform: translateY(3px) scale(0.95);
    box-shadow: 0 2px 8px rgba(218,165,32,0.4);
  }
  100% { 
    transform: translateY(0) scale(1);
    box-shadow: 0 4px 15px rgba(218,165,32,0.3);
  }
}

/* Linus Mascot */
.linus-mascot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--text-primary);
  overflow: hidden;
  animation: bounce 2s ease-in-out infinite;
  z-index: 100;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.linus-mascot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

/* Back Link */
.back-link {
  text-align: center;
  margin-top: 20px;
}

.back-link a {
  color: #c9a869;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s ease;
}

.back-link a:hover {
  color: #d4b896;
  text-decoration: underline;
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 4rem;
  padding: 2rem;
  background: var(--footer-bg);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.footer-text {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-link {
  font-size: 1.8rem;
  text-decoration: none;
  padding: 0.8rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: var(--text-primary);
}

.social-link:hover {
  transform: scale(1.1) rotate(5deg);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px var(--border-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  #unity-canvas {
    width: 100%;
    height: auto;
    aspect-ratio: 960 / 600;
  }

  .game-card .feature-card {
    padding: 20px;
  }

  .header h1,
  .site-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .site-title,
  .header h1 {
    font-size: 2.5rem;
  }
  
  .tagline {
    font-size: 1.8rem;
    white-space: normal;
    border-right: none;
    animation: none;
  }
  
  .games-container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  .games-container .game-card .feature-card {
    width: 90%;
    max-width: 350px;
  }

  .game-title {
    font-size: 24px;
  }

  .button,
  .play-btn {
    padding: 10px 20px;
    font-size: 16px;
  }
}

        .upload-container {
            max-width: 600px;
            margin: 40px auto;
            padding: 30px;
            background: var(--card-bg);
            border: 4px solid var(--text-primary);
            border-radius: 30px;
            box-shadow: 
                0 10px 25px var(--border-color),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        .upload-title {
            text-align: center;
            color: var(--text-primary);
            font-size: 2rem;
            margin-bottom: 30px;
            font-weight: bold;
            text-transform: lowercase;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
        }

        .upload-form {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .form-label {
            color: var(--text-primary);
            font-weight: bold;
            font-size: 1.1rem;
        }

        .form-input {
            padding: 15px;
            border: 3px solid var(--text-primary);
            border-radius: 15px;
            font-size: 1rem;
            font-family: 'Comic Sans MS', cursive;
            background: rgba(255, 255, 255, 0.5);
            transition: all 0.3s ease;
        }

        .form-input:focus {
            outline: none;
            border-color: #daa520;
            background: white;
            box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.2);
        }

        textarea.form-input {
            min-height: 120px;
            resize: vertical;
            font-family: 'Comic Sans MS', cursive;
        }

        .file-upload-area {
            border: 3px dashed var(--border-color);
            border-radius: 15px;
            padding: 40px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background: rgba(139, 69, 19, 0.05);
        }

        .file-upload-area:hover {
            background: rgba(139, 69, 19, 0.1);
            border-color: var(--text-primary);
        }

        .file-upload-area.dragging {
            border-color: var(--text-primary);
            background: rgba(139, 69, 19, 0.15);
        }

        .file-upload-icon {
            font-size: 3rem;
            margin-bottom: 10px;
        }

        .file-upload-text {
            color: var(--text-primary);
            font-size: 1.1rem;
        }

        .file-selected {
            color: #228B22;
            font-weight: bold;
            margin-top: 10px;
        }

        .upload-btn {
            width: 100%;
            background: linear-gradient(45deg, #daa520, #cd853f);
            background-size: 200% 200%;
            background-position: left center;
            color: white;
            border: none;
            padding: 15px;
            font-size: 1.2rem;
            font-family: 'Comic Sans MS', cursive;
            font-weight: bold;
            border-radius: 20px;
            cursor: pointer;
            text-transform: lowercase;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3);
        }

        .upload-btn:hover {
            background-position: right center;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(218, 165, 32, 0.4);
        }

        .upload-btn:active {
            animation: press 0.2s ease forwards;
            transform: translateY(0);
        }

        @keyframes press {
            0% { 
                transform: translateY(-2px) scale(1);
                box-shadow: 0 6px 20px rgba(218,165,32,0.4);
            }
            50% { 
                transform: translateY(3px) scale(0.95);
                box-shadow: 0 2px 8px rgba(218,165,32,0.4);
            }
            100% { 
                transform: translateY(0) scale(1);
                box-shadow: 0 4px 15px rgba(218,165,32,0.3);
            }
        }

        .upload-btn:disabled {
            background: #666;
            cursor: not-allowed;
            transform: none;
        }

        .back-link {
            display: block;
            text-align: center;
            color: var(--text-primary);
            text-decoration: none;
            margin-top: 20px;
            font-size: 1rem;
            transition: color 0.3s ease;
        }

        .back-link:hover {
            color: var(--text-secondary);
            text-decoration: underline;
        }

        .error-msg {
            color: #d9534f;
            background: rgba(217, 83, 79, 0.1);
            border: 2px solid #d9534f;
            padding: 12px;
            border-radius: 15px;
            text-align: center;
            display: none;
            font-weight: bold;
        }

        .success-msg {
            color: #228B22;
            background: rgba(34, 139, 34, 0.1);
            border: 2px solid #228B22;
            padding: 12px;
            border-radius: 15px;
            text-align: center;
            display: none;
            font-weight: bold;
        }

        @media (max-width: 768px) {
            .upload-container {
                margin: 20px;
                padding: 20px;
            }

            .upload-title {
                font-size: 1.5rem;
            }

            .file-upload-area {
                padding: 30px 20px;
            }
        }

        /* Games Navigation */
.games-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.games-tab-btn {
    background: transparent;
    border: 3px solid var(--text-primary);
    color: var(--text-primary);
    padding: 15px 40px;
    font-size: 1.2rem;
    font-family: 'Comic Sans MS', cursive;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: lowercase;
}

.games-tab-btn:hover {
    background: rgba(139, 69, 19, 0.1);
    transform: translateY(-2px);
}

.games-tab-btn.active {
    background: linear-gradient(45deg, #daa520, #cd853f);
    color: white;
    border-color: #daa520;
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3);
}

@media (max-width: 768px) {
    .games-nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .games-tab-btn {
        width: 90%;
        padding: 12px 30px;
        font-size: 1rem;
    }
}