/* ===== GAME-LIKE PIXEL ART STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

:root {
  --bg-dark: #0a0a0f;
  --bg-darker: #050508;
  --accent-green: #00ff88;
  --accent-red: #ff3366;
  --accent-yellow: #ffd700;
  --text-white: #ffffff;
  --text-muted: #aaaaaa;
  --border-color: rgba(255, 255, 255, 0.2);
  --card-bg: rgba(0, 0, 0, 0.6);
  --glow-green: 0 0 20px rgba(0, 255, 136, 0.5);
  --glow-red: 0 0 20px rgba(255, 51, 102, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'VT323', monospace;
  background: #1a1a1a;
  color: var(--text-white);
  overflow: hidden;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* TV/Monitor Frame - Outer container */
.tv-frame {
  width: 100%;
  max-width: 100vw;
  height: calc(100vh - 50px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
  background: #0a0a0a;
  margin-bottom: 50px;
}

/* TV Screen - Inner content area */
.tv-screen {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  background: var(--bg-dark);
  background-image: url('images/image1.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  border: 8px solid #2a2a2a;
  border-radius: 8px;
  box-shadow: 
    inset 0 0 0 4px #1a1a1a,
    inset 0 0 0 8px #0a0a0a,
    0 0 0 4px #3a3a3a,
    0 0 20px rgba(0, 0, 0, 0.8),
    inset 0 0 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tv-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.85), rgba(5, 5, 8, 0.9));
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 767px) {
  .tv-frame {
    padding: 10px;
  }
  
  .tv-screen {
    border-width: 6px;
    border-radius: 6px;
  }
}

@media (max-width: 479px) {
  .tv-frame {
    padding: 5px;
  }
  
  .tv-screen {
    border-width: 4px;
    border-radius: 4px;
  }
}

@media (min-width: 1024px) {
  .tv-frame {
    padding: 30px;
  }
  
  .tv-screen {
    border-width: 12px;
    border-radius: 12px;
  }
}

/* ===== STARS BACKGROUND ===== */
.stars-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 60% 70%, white, transparent),
    radial-gradient(1px 1px at 50% 50%, white, transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent),
    radial-gradient(2px 2px at 90% 40%, white, transparent),
    radial-gradient(1px 1px at 33% 60%, white, transparent),
    radial-gradient(1px 1px at 15% 80%, white, transparent);
  background-size: 200% 200%;
  animation: stars 20s linear infinite;
  z-index: 0;
  opacity: 0.6;
  pointer-events: none;
}

@keyframes stars {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

/* ===== GAME SCREEN ===== */
.game-screen {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  min-height: 100%;
}

.game-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
}

.game-container {
  text-align: center;
  z-index: 1;
  padding: 20px;
  max-width: 100%;
}

/* ===== LOGO ===== */
.logo-container {
  margin-bottom: 40px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.game-logo {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(24px, 8vw, 48px);
  color: var(--accent-green);
  text-shadow: var(--glow-green);
  margin-bottom: 10px;
  letter-spacing: 4px;
  line-height: 1.4;
}

.game-subtitle {
  font-size: clamp(16px, 4vw, 24px);
  color: var(--text-muted);
  letter-spacing: 2px;
}

/* ===== MENU LIST ===== */
.game-menu {
  margin: 40px 0;
}

.menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.menu-item {
  font-family: 'VT323', monospace;
  font-size: clamp(20px, 5vw, 32px);
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  color: var(--text-white);
  padding: 15px 40px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  min-width: 250px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.menu-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.3), transparent);
  transition: left 0.5s ease;
}

.menu-item:hover::before {
  left: 100%;
}

.menu-item:hover {
  border-color: var(--accent-green);
  box-shadow: var(--glow-green);
  transform: translateX(10px);
  color: var(--accent-green);
}

.menu-item:active {
  transform: translateX(5px) scale(0.98);
}

/* ===== GAME FOOTER ===== */
.game-footer {
  margin-top: 60px;
  font-size: clamp(12px, 3vw, 16px);
  color: var(--text-muted);
  position: relative;
  z-index: 100;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.copyright {
  margin-bottom: 10px;
}

.hint {
  animation: blink 1.5s ease-in-out infinite;
  color: var(--accent-yellow);
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  display: inline-block;
  padding: 5px;
  margin-top: 5px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ===== CONTENT SECTIONS ===== */
.content-wrapper {
  position: relative;
  z-index: 5;
  min-height: 100%;
  padding: 20px;
  overflow-y: auto;
}

.content-wrapper .tv-frame {
  min-height: calc(100vh - 160px);
  padding: 20px;
  overflow-y: auto;
}

.content-wrapper .tv-frame::-webkit-scrollbar {
  width: 8px;
}

.content-wrapper .tv-frame::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.content-wrapper .tv-frame::-webkit-scrollbar-thumb {
  background: var(--accent-green);
  border: 1px solid var(--accent-green);
  box-shadow: var(--glow-green);
}

.content-wrapper .tv-frame::-webkit-scrollbar-thumb:hover {
  background: #00cc6a;
}

.content-wrapper .tv-frame {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-green) rgba(0, 0, 0, 0.3);
}

.content-section {
  display: none;
  padding: 0;
  max-width: 100%;
  margin: 0;
  animation: fadeIn 0.3s ease;
  width: 100%;
  height: 100%;
}

.content-section.active {
  display: block;
}

.content-section.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
}

.back-btn {
  font-family: 'VT323', monospace;
  font-size: clamp(18px, 4vw, 24px);
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-white);
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.back-btn:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
  box-shadow: var(--glow-green);
}

.section-header h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(16px, 4vw, 24px);
  color: var(--accent-green);
  text-shadow: var(--glow-green);
  letter-spacing: 2px;
}

/* ===== GAME CARDS ===== */
.game-card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  padding: 25px;
  margin-bottom: 25px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.game-card h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(14px, 3vw, 18px);
  color: var(--accent-green);
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.game-card p {
  font-size: clamp(16px, 4vw, 20px);
  line-height: 1.6;
  color: var(--text-white);
  margin-bottom: 15px;
}

.notice {
  background: rgba(255, 51, 102, 0.2);
  border: 2px solid var(--accent-red);
  padding: 15px;
  margin-top: 15px;
  color: var(--text-white);
  font-size: clamp(14px, 3vw, 18px);
}

/* ===== BUTTONS ===== */
.game-btn {
  font-family: 'VT323', monospace;
  font-size: clamp(18px, 4vw, 24px);
  background: var(--card-bg);
  border: 2px solid var(--accent-green);
  color: var(--accent-green);
  padding: 15px 30px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  display: inline-block;
  box-shadow: var(--glow-green);
  width: 100%;
  margin-top: 10px;
}

.game-btn:hover {
  background: var(--accent-green);
  color: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.8);
}

.game-btn.secondary {
  border-color: var(--border-color);
  color: var(--text-white);
  box-shadow: none;
}

.game-btn.secondary:hover {
  border-color: var(--accent-yellow);
  color: var(--accent-yellow);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* ===== FORMS ===== */
.game-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.game-form input,
.login-form input,
#admin-password-input {
  font-family: 'VT323', monospace;
  font-size: clamp(18px, 4vw, 22px);
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  color: var(--text-white);
  padding: 15px;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.game-form input::placeholder,
.login-form input::placeholder,
#admin-password-input::placeholder {
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}

.game-form input:focus,
.login-form input:focus,
#admin-password-input:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: var(--glow-green), inset 0 2px 4px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.7);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(16px, 3vw, 20px);
  color: var(--text-white);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.result-card {
  background: var(--card-bg);
  border: 2px solid var(--accent-green);
  padding: 20px;
  margin-top: 20px;
  color: var(--accent-green);
  font-size: clamp(16px, 3vw, 20px);
  box-shadow: var(--glow-green);
}

.result-card.hidden {
  display: none;
}

/* ===== LOGIN FORM ===== */
.login-form {
  margin-bottom: 30px;
}

.login-form input {
  width: 100%;
  margin-bottom: 15px;
  font-family: 'VT323', monospace;
  font-size: clamp(18px, 4vw, 22px);
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  color: var(--text-white);
  padding: 15px;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.login-form input::placeholder {
  color: var(--text-muted);
}

.login-form input:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: var(--glow-green), inset 0 2px 4px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.7);
}

.hint-text {
  font-size: clamp(14px, 3vw, 18px);
  color: var(--text-muted);
  margin-top: 15px;
  text-align: center;
}

/* ===== MEMBERS AREA ===== */
.members-area {
  animation: fadeIn 0.3s ease;
}

.welcome-message {
  background: var(--card-bg);
  border: 2px solid var(--accent-green);
  padding: 20px;
  margin-bottom: 25px;
  text-align: center;
  box-shadow: var(--glow-green);
}

.welcome-message p {
  font-size: clamp(18px, 4vw, 24px);
  color: var(--accent-green);
  font-family: 'Press Start 2P', monospace;
}

.member-balance {
  margin-top: 15px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid var(--accent-yellow);
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.member-balance.hidden {
  display: none;
}

.balance-label {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(10px, 2vw, 12px);
  color: var(--text-white);
}

.balance-amount {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(16px, 3vw, 20px);
  color: var(--accent-yellow);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

/* ===== MENU GRID ===== */
.menu-section {
  margin: 30px 0;
}

.menu-section h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(14px, 3vw, 18px);
  color: var(--accent-green);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.menu-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: 'VT323', monospace;
  font-size: clamp(16px, 3vw, 20px);
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  color: var(--text-white);
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
  box-shadow: var(--glow-green);
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.menu-card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.menu-card:hover {
  border-color: var(--accent-green);
  box-shadow: var(--glow-green);
  transform: translateX(5px);
}

.menu-card strong {
  font-size: clamp(18px, 4vw, 22px);
  color: var(--accent-green);
  display: block;
  margin-bottom: 10px;
}

.menu-card .muted {
  font-size: clamp(14px, 3vw, 18px);
  color: var(--text-muted);
}

/* ===== EVENTS GRID ===== */
.events-section {
  margin: 30px 0;
}

.events-section h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(14px, 3vw, 18px);
  color: var(--accent-green);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.event-card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.event-card:hover {
  border-color: var(--accent-yellow);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  transform: translateX(5px);
}

.event-card strong {
  font-size: clamp(18px, 4vw, 22px);
  color: var(--accent-yellow);
  display: block;
  margin-bottom: 10px;
}

.event-card .muted {
  font-size: clamp(14px, 3vw, 18px);
  color: var(--text-muted);
}

/* ===== POSTS ===== */
.posts-section {
  margin: 30px 0;
}

.post-card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  padding: 20px;
  margin-bottom: 15px;
  backdrop-filter: blur(10px);
}

.post-card strong {
  font-size: clamp(18px, 4vw, 22px);
  color: var(--accent-green);
  display: block;
  margin-bottom: 10px;
}

.post-card .muted {
  font-size: clamp(14px, 3vw, 18px);
  color: var(--text-muted);
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin: 30px 0;
}

.gallery-item {
  height: 200px;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  padding: 15px;
  text-align: center;
  font-size: clamp(18px, 4vw, 22px);
  color: var(--accent-green);
  font-family: 'Press Start 2P', monospace;
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 30px 0;
}

.feature-card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  padding: 20px;
  backdrop-filter: blur(10px);
}

.feature-card h4 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(12px, 2.5vw, 16px);
  color: var(--accent-green);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: clamp(14px, 3vw, 18px);
  color: var(--text-white);
}

/* ===== TEAM ===== */
.team-section {
  margin: 30px 0;
}

.team-section h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(14px, 3vw, 18px);
  color: var(--accent-green);
  margin-bottom: 20px;
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.team-member {
  text-align: center;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  padding: 20px;
  backdrop-filter: blur(10px);
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--accent-green);
  margin: 0 auto 15px;
  box-shadow: var(--glow-green);
}

.team-member strong {
  font-size: clamp(16px, 3vw, 20px);
  color: var(--accent-green);
  display: block;
  margin-bottom: 5px;
}

.team-member p {
  font-size: clamp(14px, 3vw, 18px);
  color: var(--text-muted);
}

/* ===== CONTACT ===== */
.contact-info {
  font-size: clamp(16px, 3vw, 20px);
  line-height: 1.8;
  margin-bottom: 20px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.faq-item strong {
  font-size: clamp(16px, 3vw, 20px);
  color: var(--accent-green);
  display: block;
  margin-bottom: 10px;
}

.faq-item p {
  font-size: clamp(14px, 3vw, 18px);
  color: var(--text-white);
  line-height: 1.6;
}

/* ===== MODALS ===== */
.game-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}

.game-modal.hidden {
  display: none;
}

.modal-content {
  background: var(--card-bg);
  border: 2px solid var(--accent-green);
  padding: 30px;
  max-width: 90%;
  width: 500px;
  box-shadow: var(--glow-green);
  position: relative;
  backdrop-filter: blur(20px);
  z-index: 2001;
}

.modal-content .game-input {
  width: 100%;
  margin-bottom: 20px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-white);
  font-size: 30px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--accent-red);
}

.modal-content h2,
.modal-content h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(14px, 3vw, 18px);
  color: var(--accent-green);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.modal-content p {
  font-size: clamp(14px, 3vw, 18px);
  color: var(--text-white);
  line-height: 1.6;
  margin-bottom: 10px;
}

.error-message {
  color: var(--accent-red);
  font-size: clamp(14px, 3vw, 18px);
  margin-top: 10px;
  text-align: center;
}

/* ===== FIXED BOTTOM CONTROLS ===== */
/* ===== FIXED BOTTOM CONTROLS (Outside TV Frame) ===== */
.bottom-controls {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  border-top: 2px solid var(--accent-green);
  padding: 6px 12px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 255, 136, 0.2);
  backdrop-filter: blur(10px);
  max-width: 100vw;
  height: 50px;
  min-height: 50px;
}

.control-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  border-radius: 4px;
  min-width: 60px;
  flex: 1;
  max-width: 120px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 255, 136, 0.3);
}

.control-btn:hover,
.control-btn:active {
  border-color: var(--accent-green);
  background: rgba(0, 255, 136, 0.1);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
  transform: translateY(-2px);
}

.control-btn span:first-child {
  font-size: clamp(18px, 4vw, 22px);
  line-height: 1;
}

.control-label {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(7px, 1.5vw, 9px);
  color: var(--accent-green);
  letter-spacing: 0.5px;
  text-shadow: var(--glow-green);
}

/* Install App Button - Pulse Animation */
#install-app-btn.pulse-glow {
  animation: installPulse 2s ease-in-out infinite;
}

#install-app-btn .control-label {
  color: #ff6b35;
  text-shadow: 0 0 10px rgba(255, 107, 53, 0.8);
}

@keyframes installPulse {
  0%, 100% {
    border-color: #ff6b35;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.4);
  }
  50% {
    border-color: #ff9f1c;
    box-shadow: 0 0 20px rgba(255, 159, 28, 0.6), 0 0 30px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
  }
}

/* Biometric Login Button */
.login-divider {
  display: flex;
  align-items: center;
  margin: 15px 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.login-divider span {
  padding: 0 10px;
}

.biometric-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border-color: #667eea !important;
  width: 100%;
}

.biometric-btn:hover {
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
}

.biometric-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
  .menu-grid,
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .form-actions {
    flex-direction: row;
  }
  
  .contact-links {
    flex-direction: row;
  }
  
  .bottom-controls {
    padding: 8px 15px;
    height: 55px;
    min-height: 55px;
  }
  
  .control-btn {
    min-width: 100px;
    padding: 6px 12px;
    max-width: 180px;
    gap: 3px;
  }
}

@media (min-width: 1024px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .tv-frame {
    padding: 30px;
  }
  
  .tv-screen {
    border-width: 12px;
    border-radius: 12px;
  }
}

/* ===== UTILITY CLASSES ===== */
.hidden {
  display: none !important;
}

.active {
  display: block !important;
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: clamp(12px, 2.5vw, 16px);
}

/* ===== MINI GAMES STYLES ===== */
.game-selection {
  max-width: 95%;
  width: 100%;
  max-width: 600px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.game-select-btn {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 255, 136, 0.3);
}

.game-select-btn:hover,
.game-select-btn:active {
  border-color: var(--accent-green);
  box-shadow: var(--glow-green);
  transform: translateY(-2px);
}

.game-icon {
  font-size: clamp(32px, 8vw, 48px);
  line-height: 1;
}

.game-name {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(10px, 2.5vw, 14px);
  color: var(--accent-green);
  letter-spacing: 1px;
}

.game-desc {
  font-size: clamp(10px, 2vw, 12px);
  color: var(--text-muted);
}

.game-content {
  max-width: 95%;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.game-content::-webkit-scrollbar {
  width: 8px;
}

.game-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

.game-content::-webkit-scrollbar-thumb {
  background: var(--accent-green);
  box-shadow: var(--glow-green);
}

.game-status {
  font-size: clamp(12px, 2.5vw, 16px);
  color: var(--text-muted);
  text-align: center;
  margin-top: 15px;
}

.game-result {
  margin: 20px 0;
  padding: 15px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--accent-green);
  text-align: center;
}

.result-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.strain-name {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(14px, 3vw, 18px);
  color: var(--accent-green);
  margin: 0;
}

.game-result h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(14px, 3vw, 18px);
  color: var(--accent-green);
  margin-bottom: 10px;
}

.prize-text {
  font-size: clamp(16px, 4vw, 22px);
  color: var(--accent-green);
  margin: 10px 0;
}

.prize-text.nothing {
  color: var(--text-muted);
}

.prize-text.drink,
.prize-text.snack {
  color: var(--accent-yellow);
}

.discount-code {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(12px, 2.5vw, 16px);
  color: var(--accent-green);
  background: rgba(0, 255, 136, 0.1);
  padding: 10px;
  margin: 10px 0;
  display: inline-block;
  border: 1px solid var(--accent-green);
  letter-spacing: 2px;
}

.prize-note {
  font-size: clamp(11px, 2vw, 13px);
  color: var(--text-muted);
  margin-top: 10px;
}

/* ===== PRIZE LIST PANEL ===== */
.prize-list-panel {
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--border-color);
  padding: 15px;
  border-radius: 4px;
}

.prize-list-panel h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(10px, 2vw, 12px);
  color: var(--accent-green);
  margin: 0 0 15px 0;
  text-align: center;
}

.prize-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prize-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  font-size: clamp(11px, 2vw, 13px);
  gap: 10px;
}

.prize-chance {
  font-size: clamp(10px, 1.8vw, 12px);
  color: var(--text-muted);
  font-style: italic;
}

.prize-name {
  color: var(--text-white);
}

.prize-reward {
  color: var(--accent-green);
  font-weight: bold;
}

.prize-reward.nothing {
  color: var(--text-muted);
}

.prize-reward.drink,
.prize-reward.snack {
  color: var(--accent-yellow);
}

.prize-reward.discount {
  color: var(--accent-green);
}

@media (min-width: 768px) {
  .roulette-layout,
  .slots-layout {
    flex-direction: row;
  }
  
  .roulette-main,
  .slots-main {
    flex: 2;
  }
  
  .prize-list-panel {
    flex: 1;
    min-width: 200px;
  }
}

/* ===== ROULETTE GAME ===== */
.roulette-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.roulette-main {
  flex: 1;
}

.roulette-container {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 20px auto;
  max-width: 90%;
}

.roulette-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid var(--accent-green);
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: var(--glow-green);
}

.roulette-segment {
  position: absolute;
  width: 50%;
  height: 50%;
  left: 50%;
  top: 0;
  transform-origin: 0 100%;
  padding: 5px;
  box-sizing: border-box;
  border-right: 1px solid var(--border-color);
  overflow: visible;
}

.roulette-segment .segment-text {
  position: absolute;
  left: 25%;
  top: 5%;
  width: 50%;
  height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(8px, 2vw, 10px);
  color: var(--text-white);
  white-space: nowrap;
  text-align: center;
  transform-origin: center center;
}

.roulette-segment:nth-child(odd) {
  background: rgba(0, 255, 136, 0.1);
}

.roulette-segment:nth-child(even) {
  background: rgba(0, 0, 0, 0.3);
}

.roulette-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  color: var(--accent-green);
  z-index: 10;
  text-shadow: var(--glow-green);
}

/* ===== SLOTS GAME ===== */
.slots-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.slots-main {
  flex: 1;
}

.slots-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.slot-reel {
  width: 80px;
  height: 80px;
  overflow: hidden;
  border: 2px solid var(--accent-green);
  background: var(--card-bg);
  position: relative;
}

.slot-symbol {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.prizes-list {
  margin-top: 20px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  max-height: 150px;
  overflow-y: auto;
}

.prizes-list h4 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(10px, 2vw, 12px);
  color: var(--accent-green);
  margin-bottom: 10px;
}

.prize-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: clamp(12px, 2.5vw, 16px);
}

.no-prizes {
  color: var(--text-muted);
  text-align: center;
  font-size: clamp(12px, 2.5vw, 16px);
}

/* ===== PLANT GAME ===== */
.plant-container {
  margin: 20px 0;
  text-align: center;
}

.plant-sprite {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  background: var(--card-bg);
  border: 2px solid var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  transition: all 0.3s ease;
}

.plant-sprite.stage-0 {
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.3), rgba(101, 67, 33, 0.3));
}

.plant-sprite.stage-1 {
  background: linear-gradient(135deg, rgba(34, 139, 34, 0.3), rgba(0, 100, 0, 0.3));
}

.plant-sprite.stage-2 {
  background: linear-gradient(135deg, rgba(50, 205, 50, 0.3), rgba(34, 139, 34, 0.3));
}

.plant-sprite.stage-3 {
  background: linear-gradient(135deg, rgba(0, 255, 0, 0.3), rgba(50, 205, 50, 0.3));
}

.plant-sprite.completed {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 140, 0, 0.3));
  box-shadow: var(--glow-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.plant-progress {
  margin: 20px auto;
  max-width: 300px;
}

.progress-bar {
  height: 20px;
  background: var(--accent-green);
  border: 2px solid var(--border-color);
  transition: width 0.3s ease;
  box-shadow: var(--glow-green);
}

.progress-text {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(10px, 2vw, 12px);
  color: var(--accent-green);
  margin-top: 10px;
}

/* ===== CARDS GAME ===== */
.cards-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
}

.card-tab {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(9px, 2vw, 11px);
  cursor: pointer;
  transition: all 0.2s ease;
}

.card-tab.active {
  color: var(--accent-green);
  border-bottom-color: var(--accent-green);
}

.card-tab-content {
  min-height: 300px;
}

.revealed-card {
  margin: 20px 0;
}

.card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  padding: 20px;
  margin: 10px 0;
  text-align: center;
  transition: all 0.3s ease;
}

.card.common {
  border-color: var(--text-muted);
}

.card.rare {
  border-color: #4a9eff;
  box-shadow: 0 0 15px rgba(74, 158, 255, 0.5);
}

.card.legendary {
  border-color: var(--accent-yellow);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.card.ultra {
  border-color: var(--accent-red);
  box-shadow: 0 0 25px rgba(255, 51, 102, 0.7);
  animation: ultraGlow 2s infinite;
}

@keyframes ultraGlow {
  0%, 100% { box-shadow: 0 0 25px rgba(255, 51, 102, 0.7); }
  50% { box-shadow: 0 0 35px rgba(255, 51, 102, 1); }
}

.card.new {
  animation: cardReveal 0.5s ease;
}

@keyframes cardReveal {
  0% { transform: scale(0) rotate(180deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.card-rarity {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(8px, 1.5vw, 10px);
  color: var(--accent-green);
  letter-spacing: 1px;
}

.card.rare .card-rarity {
  color: #4a9eff;
}

.card.legendary .card-rarity {
  color: var(--accent-yellow);
}

.card.ultra .card-rarity {
  color: var(--accent-red);
}

.card-new {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(8px, 1.5vw, 10px);
  color: var(--accent-yellow);
  background: rgba(255, 215, 0, 0.2);
  padding: 4px 8px;
  border: 1px solid var(--accent-yellow);
}

.card-levelup {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(8px, 1.5vw, 10px);
  color: var(--accent-green);
  background: rgba(0, 255, 136, 0.2);
  padding: 4px 8px;
  border: 1px solid var(--accent-green);
  margin-left: 5px;
}

.card-level-badge {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(8px, 1.5vw, 10px);
  color: var(--accent-green);
  background: rgba(0, 255, 136, 0.2);
  padding: 2px 6px;
  border: 1px solid var(--accent-green);
}

.card-count {
  font-size: clamp(10px, 2vw, 12px);
  color: var(--text-muted);
  margin-top: 5px;
}

.card-count-small {
  font-size: clamp(9px, 1.5vw, 11px);
  color: var(--text-muted);
  margin-top: 3px;
}

.card-body h3,
.card-body h4 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(12px, 3vw, 18px);
  color: var(--text-white);
  margin: 10px 0;
}

.card-type {
  font-size: clamp(10px, 2vw, 12px);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.card-message {
  font-size: clamp(12px, 2.5vw, 16px);
  color: var(--accent-green);
  margin-top: 15px;
}

.cards-collection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 10px;
  overflow: hidden;
  max-height: calc(90vh - 200px);
  box-sizing: border-box;
}

.cards-collection-grid .card {
  aspect-ratio: 2/3;
  min-height: 0;
  padding: 10px;
  font-size: clamp(10px, 2vw, 12px);
}

.cards-collection-grid .card h4 {
  font-size: clamp(10px, 2vw, 12px);
  margin: 5px 0;
  word-break: break-word;
  line-height: 1.2;
}

.cards-collection-grid .card-type {
  font-size: clamp(8px, 1.5vw, 10px);
}

.cards-collection-grid .card-header {
  margin-bottom: 8px;
  font-size: clamp(8px, 1.5vw, 10px);
}

.no-cards {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 20px;
  font-size: clamp(14px, 3vw, 18px);
}

.game-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== MOBILE OPTIMIZATION ===== */
@media (max-width: 428px) {
  /* iPhone 14 Pro Max and similar */
  .roulette-container {
    width: 240px;
    height: 240px;
  }
  
  .slot-reel {
    width: 70px;
    height: 70px;
  }
  
  .slot-symbol {
    width: 70px;
    height: 70px;
    font-size: 35px;
  }
  
  .plant-sprite {
    width: 100px;
    height: 100px;
    font-size: 50px;
  }
  
  .games-grid {
    gap: 10px;
  }
  
  .game-select-btn {
    padding: 15px;
  }
}

@media (max-width: 390px) {
  .roulette-container {
    width: 220px;
    height: 220px;
  }
  
  .slot-reel {
    width: 60px;
    height: 60px;
  }
  
  .slot-symbol {
    width: 60px;
    height: 60px;
    font-size: 30px;
  }
}
