/* Games Styles */
.game-selection {
  margin-bottom: 30px;
}

.game-title {
  text-align: center;
  margin-bottom: 30px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  max-width: 1000px;
  margin: 0 auto;
}

.game-card {
  background: var(--border-gradient-onyx);
  padding: 25px 15px;
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.game-icon {
  font-size: 40px;
  color: var(--orange-yellow-crayola);
  margin-bottom: 12px;
  flex-shrink: 0;
}

.game-name {
  color: var(--white-2);
  font-size: var(--fs-5);
  margin-bottom: 8px;
  line-height: 1.2;
}

.game-desc {
  color: var(--light-gray);
  font-size: var(--fs-7);
  line-height: 1.3;
  margin: 0;
}

/* Quiz Game */
.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
  padding: 0 5px;
}

.quiz-title {
  color: var(--orange-yellow-crayola);
}

.quiz-stats {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.quiz-stats span {
  color: var(--white-2);
  font-weight: var(--fw-500);
  font-size: var(--fs-7);
  white-space: nowrap;
}

.question {
  background: var(--border-gradient-onyx);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 25px;
  font-size: var(--fs-4);
  color: var(--white-2);
  position: relative;
  z-index: 1;
}

.question::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.answers {
  display: grid;
  gap: 15px;
  margin-bottom: 30px;
}

.answer-btn {
  background: var(--border-gradient-onyx);
  color: var(--white-2);
  padding: 15px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: var(--fs-6);
  text-align: left;
  position: relative;
  z-index: 1;
}

.answer-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.answer-btn:hover {
  background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
  color: var(--smoky-black);
}

.answer-btn.correct {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: white;
}

.answer-btn.wrong {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  color: white;
}

/* Memory Game */
.memory-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.memory-title {
  color: var(--orange-yellow-crayola);
}

.memory-stats {
  display: flex;
  gap: 20px;
}

.memory-stats span {
  color: var(--white-2);
  font-weight: var(--fw-500);
}

.memory-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 320px;
  margin: 0 auto 25px;
  padding: 10px;
}

.memory-card {
  aspect-ratio: 1;
  background: var(--border-gradient-onyx);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.memory-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.memory-card.flipped {
  background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
  color: var(--smoky-black);
}

.memory-card.matched {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: white;
}

/* Snake Game */
.snake-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.snake-title {
  color: var(--orange-yellow-crayola);
}

.snake-stats {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.snake-stats span {
  color: var(--white-2);
  font-weight: var(--fw-500);
  font-size: var(--fs-7);
  white-space: nowrap;
  padding: 4px 8px;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

#snake-canvas {
  border: 2px solid var(--orange-yellow-crayola);
  border-radius: 8px;
  background: var(--eerie-black-1);
  display: block;
  margin: 0 auto 15px;
  max-width: 100%;
  height: auto;
}

.snake-controls, .memory-controls, .puzzle-controls, .color-controls, .typing-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.controls-text {
  color: var(--light-gray);
  text-align: center;
  margin-bottom: 15px;
  font-size: var(--fs-6);
}

/* Game Buttons */
.game-btn {
  background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
  color: var(--smoky-black);
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: var(--fw-600);
  font-size: var(--fs-7);
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.game-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.game-btn:active {
  transform: translateY(0);
}

/* New Games Styles */
.snake-container {
  text-align: center;
  margin-bottom: 20px;
}

.snake-status {
  color: var(--light-gray);
  margin-top: 10px;
  font-size: var(--fs-6);
}

/* Puzzle Game */
.puzzle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.puzzle-title {
  color: var(--orange-yellow-crayola);
}

.puzzle-stats {
  display: flex;
  gap: 20px;
}

.puzzle-stats span {
  color: var(--white-2);
  font-weight: var(--fw-500);
}

.puzzle-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 320px;
  margin: 0 auto 30px;
  padding: 10px;
  background: var(--border-gradient-onyx);
  border-radius: 12px;
}

.puzzle-tile {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
  color: var(--smoky-black);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: var(--fw-600);
  transition: all 0.2s ease;
}

.puzzle-tile.empty {
  background: transparent;
}

/* Color Game */
.color-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.color-title {
  color: var(--orange-yellow-crayola);
}

.color-stats {
  display: flex;
  gap: 20px;
}

.color-stats span {
  color: var(--white-2);
  font-weight: var(--fw-500);
}

.color-display {
  width: 200px;
  height: 200px;
  margin: 0 auto 30px;
  border-radius: 12px;
  border: 3px solid var(--orange-yellow-crayola);
}

.color-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  max-width: 300px;
  margin: 0 auto 30px;
}

.color-option {
  height: 80px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.color-option:hover {
  border-color: var(--orange-yellow-crayola);
  transform: scale(1.05);
}

/* Typing Game */
.typing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.typing-title {
  color: var(--orange-yellow-crayola);
}

.typing-stats {
  display: flex;
  gap: 20px;
}

.typing-stats span {
  color: var(--white-2);
  font-weight: var(--fw-500);
}

.typing-text {
  background: var(--border-gradient-onyx);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: var(--fs-5);
  line-height: 1.6;
  color: var(--white-2);
  min-height: 120px;
  position: relative;
  z-index: 1;
}

.typing-text::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.typing-input {
  width: 100%;
  min-height: 100px;
  background: var(--border-gradient-onyx);
  color: var(--white-2);
  border: 2px solid var(--jet);
  border-radius: 12px;
  padding: 15px;
  font-size: var(--fs-6);
  resize: vertical;
  margin-bottom: 20px;
}

.typing-input:focus {
  border-color: var(--orange-yellow-crayola);
  outline: none;
}

.typing-char {
  position: relative;
}

.typing-char.correct {
  background-color: rgba(76, 175, 80, 0.3);
}

.typing-char.incorrect {
  background-color: rgba(244, 67, 54, 0.3);
}

.typing-char.current {
  background-color: var(--orange-yellow-crayola);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.3; }
}

/* Responsive */
@media (max-width: 768px) {
  .quiz-header, .memory-header, .snake-header, .puzzle-header, .color-header, .typing-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .memory-board {
    max-width: 280px;
    gap: 6px;
  }
  
  .puzzle-board {
    max-width: 260px;
    gap: 8px;
  }
  
  #snake-canvas {
    width: 280px;
    height: 280px;
  }
  
  .color-display {
    width: 140px;
    height: 140px;
  }
  
  .color-options {
    max-width: 220px;
    gap: 10px;
  }
  
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .game-card {
    padding: 20px 12px;
    min-height: 140px;
  }
  
  .game-icon {
    font-size: 32px;
  }
  
  .game-btn {
    padding: 8px 16px;
    font-size: var(--fs-8);
    min-width: 100px;
  }
}

@media (max-width: 480px) {
  .game-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 10px;
  }
  
  .game-card {
    max-width: 300px;
    margin: 0 auto;
  }
  
  #snake-canvas {
    width: 260px;
    height: 260px;
  }
  
  .memory-board {
    max-width: 240px;
  }
  
  .puzzle-board {
    max-width: 240px;
  }
  
  .quiz-stats, .memory-stats, .snake-stats, .puzzle-stats, .color-stats, .typing-stats {
    justify-content: center;
    gap: 10px;
  }
}

/* New Games Styles */

/* Reaction Game */
.reaction-game {
  padding: 20px;
  text-align: center;
}

.reaction-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.reaction-title {
  color: var(--orange-yellow-crayola);
}

.reaction-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.reaction-stats span {
  background: rgba(255, 215, 0, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--orange-yellow-crayola);
  font-weight: 600;
  color: var(--orange-yellow-crayola);
}

.reaction-area {
  width: 300px;
  height: 200px;
  margin: 20px auto;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #ff6b6b;
  border: 3px solid var(--orange-yellow-crayola);
}

.reaction-area:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.reaction-message {
  font-size: 18px;
  font-weight: 600;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Math Game */
.math-game {
  padding: 20px;
  text-align: center;
}

.math-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.math-title {
  color: var(--orange-yellow-crayola);
}

.math-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.math-stats span {
  background: rgba(255, 215, 0, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--orange-yellow-crayola);
  font-weight: 600;
  color: var(--orange-yellow-crayola);
}

.math-question {
  font-size: 36px;
  font-weight: bold;
  color: var(--orange-yellow-crayola);
  margin: 30px 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  background: var(--border-gradient-onyx);
  padding: 30px;
  border-radius: 15px;
  position: relative;
  z-index: 1;
}

.math-question::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.math-input {
  width: 200px;
  padding: 15px;
  border: 2px solid var(--orange-yellow-crayola);
  border-radius: 10px;
  background: rgba(255, 215, 0, 0.1);
  color: var(--white-2);
  font-size: 24px;
  text-align: center;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.math-input:focus {
  outline: none;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* Jump Game */
.jump-game {
  padding: 20px;
  text-align: center;
}

.jump-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.jump-title {
  color: var(--orange-yellow-crayola);
}

.jump-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.jump-stats span {
  background: rgba(255, 215, 0, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--orange-yellow-crayola);
  font-weight: 600;
  color: var(--orange-yellow-crayola);
}

.jump-container {
  position: relative;
  display: inline-block;
  margin: 20px 0;
}

#jump-canvas {
  border: 2px solid var(--orange-yellow-crayola);
  border-radius: 10px;
  background: #0f0f23;
  display: block;
  margin: 0 auto;
}

.jump-status {
  margin-top: 10px;
  font-size: 16px;
  color: var(--orange-yellow-crayola);
  font-weight: 600;
}

.jump-controls, .reaction-controls, .math-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Improved Typing Game */
.typing-text {
  background: var(--border-gradient-onyx);
  border: 2px solid var(--orange-yellow-crayola);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  font-family: 'Courier New', monospace;
  font-size: 18px;
  line-height: 1.8;
  min-height: 80px;
  overflow-wrap: break-word;
  position: relative;
  z-index: 1;
}

.typing-text::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.typing-char {
  padding: 2px 1px;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.typing-char.current {
  background: var(--orange-yellow-crayola);
  color: var(--smoky-black);
  animation: blink 1s infinite;
}

.typing-char.correct {
  background: #4ecdc4;
  color: white;
}

.typing-char.incorrect {
  background: #ff6b6b;
  color: white;
}

.typing-input {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--orange-yellow-crayola);
  border-radius: 10px;
  background: rgba(255, 215, 0, 0.1);
  color: var(--white-2);
  font-size: 16px;
  font-family: 'Courier New', monospace;
  margin-bottom: 20px;
}

.typing-input:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Mobile Responsive for New Games */
@media (max-width: 768px) {
  .reaction-area {
    width: 250px;
    height: 150px;
  }
  
  .math-question {
    font-size: 28px;
    padding: 20px;
  }
  
  .math-input {
    width: 150px;
    font-size: 20px;
  }
  
  #jump-canvas {
    width: 300px;
    height: 225px;
  }
  
  .reaction-header, .math-header, .jump-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .reaction-area {
    width: 200px;
    height: 120px;
  }
  
  .reaction-message {
    font-size: 14px;
  }
  
  .math-question {
    font-size: 24px;
    padding: 15px;
  }
  
  .math-input {
    width: 120px;
    font-size: 18px;
  }
  
  #jump-canvas {
    width: 260px;
    height: 195px;
  }
  
  .reaction-stats, .math-stats, .jump-stats {
    gap: 10px;
  }
  
  .reaction-stats span, .math-stats span, .jump-stats span {
    padding: 6px 12px;
    font-size: var(--fs-8);
  }
}
/* QR Code Generator Styles */
.qr-game {
  padding: 20px;
  text-align: center;
}

.qr-header {
  margin-bottom: 30px;
}

.qr-title {
  color: var(--orange-yellow-crayola);
}

.qr-input-section {
  margin-bottom: 30px;
}

.qr-input {
  width: 100%;
  max-width: 400px;
  padding: 15px;
  border: 2px solid var(--orange-yellow-crayola);
  border-radius: 10px;
  background: rgba(255, 215, 0, 0.1);
  color: var(--white-2);
  font-size: 16px;
  margin-bottom: 15px;
}

.qr-input:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.qr-display {
  margin: 30px 0;
  padding: 20px;
  background: var(--border-gradient-onyx);
  border-radius: 15px;
  position: relative;
  z-index: 1;
}

.qr-display::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.qr-display canvas {
  border: 2px solid var(--orange-yellow-crayola);
  border-radius: 10px;
  margin-bottom: 15px;
}

.qr-info {
  color: var(--white-2);
}

.qr-info p {
  margin: 5px 0;
}

.qr-loading {
  color: var(--orange-yellow-crayola);
  font-size: 18px;
  padding: 40px;
}

.qr-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Price Calculator Styles */
.calculator-game {
  padding: 20px;
}

.calculator-header {
  text-align: center;
  margin-bottom: 30px;
}

.calculator-title {
  color: var(--orange-yellow-crayola);
}

.calculator-form {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.calc-section {
  background: var(--border-gradient-onyx);
  padding: 25px;
  border-radius: 15px;
  position: relative;
  z-index: 1;
}

.calc-section::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.calc-section h4 {
  color: var(--orange-yellow-crayola);
  margin-bottom: 20px;
  text-align: center;
}

.calc-row {
  margin-bottom: 20px;
}

.calc-row label {
  display: block;
  color: var(--white-2);
  margin-bottom: 8px;
  font-weight: 600;
}

.calc-row input,
.calc-row select {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--jet);
  border-radius: 8px;
  background: rgba(255, 215, 0, 0.1);
  color: var(--white-2);
  font-size: 16px;
}

.calc-row input:focus,
.calc-row select:focus {
  outline: none;
  border-color: var(--orange-yellow-crayola);
}

.calc-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-checkboxes label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.calc-checkboxes label:hover {
  background: rgba(255, 215, 0, 0.1);
}

.calc-checkboxes input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.calc-result {
  background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  color: var(--smoky-black);
}

.calc-result h4 {
  margin-bottom: 15px;
  font-size: 18px;
}

.calc-total {
  font-size: 36px;
  font-weight: bold;
  margin: 20px 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.calculator-controls {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .calculator-form {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .calc-result {
    order: -1;
  }
  
  .calc-total {
    font-size: 28px;
  }
  
  .qr-input {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .calc-section,
  .calc-result {
    padding: 15px;
  }
  
  .calc-total {
    font-size: 24px;
  }
  
  .qr-display canvas {
    width: 150px;
    height: 150px;
  }
}
/* Enhanced Price Calculator Styles */
.calculator-game {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.calculator-header {
  text-align: center;
  margin-bottom: 40px;
}

.calculator-title {
  color: var(--orange-yellow-crayola);
  font-size: 28px;
  margin-bottom: 10px;
}

.calculator-subtitle {
  color: var(--light-gray);
  font-size: 16px;
}

.calculator-form {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.calc-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calc-section {
  background: var(--border-gradient-onyx);
  padding: 25px;
  border-radius: 15px;
  position: relative;
  z-index: 1;
}

.calc-section::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.calc-section h4 {
  color: var(--orange-yellow-crayola);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}

.calc-section h4 ion-icon {
  font-size: 20px;
}

.calc-row {
  margin-bottom: 20px;
}

.calc-row label {
  display: block;
  color: var(--white-2);
  margin-bottom: 8px;
  font-weight: 600;
}

.calc-row input,
.calc-row select {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--jet);
  border-radius: 8px;
  background: rgba(255, 215, 0, 0.1);
  color: var(--white-2);
  font-size: 16px;
  transition: all 0.3s ease;
}

.calc-row input:focus,
.calc-row select:focus {
  outline: none;
  border-color: var(--orange-yellow-crayola);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.calc-row input[type="range"] {
  height: 6px;
  background: var(--jet);
  border-radius: 3px;
  appearance: none;
}

.calc-row input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange-yellow-crayola);
  cursor: pointer;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 12px;
  color: var(--light-gray);
}

.calc-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calc-checkboxes label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.calc-checkboxes label:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--orange-yellow-crayola);
}

.calc-checkboxes input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--orange-yellow-crayola);
}

.calc-result-panel {
  position: sticky;
  top: 20px;
}

.calc-summary {
  background: var(--border-gradient-onyx);
  padding: 25px;
  border-radius: 15px;
  position: relative;
  z-index: 1;
}

.calc-summary::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.calc-summary h4 {
  color: var(--orange-yellow-crayola);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-breakdown {
  margin-bottom: 20px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--jet);
  color: var(--white-2);
}

.breakdown-item.multiplier {
  color: var(--orange-yellow-crayola);
  font-weight: 600;
}

.calc-discount {
  margin: 15px 0;
}

.discount-badge {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: white;
  padding: 10px 15px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.calc-total-section {
  border-top: 2px solid var(--orange-yellow-crayola);
  padding-top: 15px;
  margin-bottom: 20px;
}

.calc-subtotal,
.calc-total,
.calc-monthly {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  color: var(--white-2);
}

.calc-total {
  font-size: 24px;
  color: var(--orange-yellow-crayola);
  font-weight: bold;
}

.calc-monthly {
  font-size: 14px;
  color: var(--light-gray);
}

.calc-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-actions .game-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
}

.calc-actions .game-btn.primary {
  background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
  color: var(--smoky-black);
}

.calc-actions .game-btn.secondary {
  background: var(--jet);
  color: var(--white-2);
  border: 1px solid var(--orange-yellow-crayola);
}

.calc-actions .game-btn.secondary:hover {
  background: var(--orange-yellow-crayola);
  color: var(--smoky-black);
}

.calculator-controls {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.calculator-controls .game-btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Mobile Responsive for Enhanced Calculator */
@media (max-width: 768px) {
  .calculator-form {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .calc-result-panel {
    order: -1;
    position: static;
  }
  
  .calc-total {
    font-size: 20px;
  }
  
  .calculator-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .calc-section,
  .calc-summary {
    padding: 15px;
  }
  
  .calc-total {
    font-size: 18px;
  }
  
  .calc-actions {
    gap: 8px;
  }
  
  .calc-actions .game-btn {
    padding: 10px;
    font-size: 14px;
  }
}
/* Text Contrast Fixes */
.calc-row label {
  color: #e5e5e5 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.calc-row input,
.calc-row select {
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.3) !important;
  border: 2px solid rgba(255, 215, 0, 0.5) !important;
}

.calc-row input::placeholder {
  color: #cccccc !important;
}

.calc-checkboxes label {
  color: #e5e5e5 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.breakdown-item {
  color: #ffffff !important;
}

.breakdown-item.multiplier {
  color: #ffd700 !important;
}

.calc-subtotal,
.calc-monthly {
  color: #e5e5e5 !important;
}

.calc-total {
  color: #ffd700 !important;
}

.qr-info {
  color: #ffffff !important;
}

.qr-info p {
  color: #e5e5e5 !important;
}

.qr-loading {
  color: #ffd700 !important;
}

.calculator-subtitle {
  color: #cccccc !important;
}

.range-labels {
  color: #cccccc !important;
}

/* Game text fixes */
.game-desc {
  color: #cccccc !important;
}

.game-name {
  color: #ffffff !important;
}

.quiz-stats span,
.memory-stats span,
.snake-stats span,
.puzzle-stats span,
.color-stats span,
.typing-stats span,
.reaction-stats span,
.math-stats span {
  color: #ffffff !important;
}

.question {
  color: #ffffff !important;
}

.answer-btn {
  color: #ffffff !important;
}

.controls-text {
  color: #cccccc !important;
}

.snake-status {
  color: #cccccc !important;
}

.reaction-message {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.math-question {
  color: #ffd700 !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.math-input {
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.3) !important;
}

.typing-char.current {
  color: #000000 !important;
}

.typing-char.correct {
  color: #ffffff !important;
}

.typing-char.incorrect {
  color: #ffffff !important;
}

.typing-input {
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.3) !important;
}

.qr-input {
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.3) !important;
}

/* Ensure all game headers are visible */
.quiz-title,
.memory-title,
.snake-title,
.puzzle-title,
.color-title,
.typing-title,
.reaction-title,
.math-title,
.qr-title,
.calculator-title {
  color: #ffd700 !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Button text fixes */
.game-btn {
  color: #000000 !important;
  text-shadow: none !important;
}

.game-btn.secondary {
  color: #ffffff !important;
}

.game-btn.secondary:hover {
  color: #000000 !important;
}
/* Remove monthly payment styles */
.calc-monthly {
  display: none !important;
}
/* Services Page Calculator Styles */
.price-calculator-section {
  margin-top: 50px;
  padding: 30px 0;
  border-top: 2px solid var(--orange-yellow-crayola);
}

.calculator-section-title {
  color: var(--orange-yellow-crayola) !important;
  text-align: center;
  margin-bottom: 10px;
}

.calculator-section-desc {
  color: var(--light-gray) !important;
  text-align: center;
  margin-bottom: 40px;
  font-size: 16px;
}

/* Initialize services calculator on page load */
.price-calculator-section .calc-total {
  color: var(--orange-yellow-crayola) !important;
}

.price-calculator-section .calc-subtotal {
  color: var(--white-2) !important;
}

/* URL Shortener Styles */
.url-game {
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.url-header {
  text-align: center;
  margin-bottom: 30px;
}

.url-title {
  color: var(--orange-yellow-crayola) !important;
  font-size: 24px;
  margin-bottom: 10px;
}

.url-subtitle {
  color: var(--light-gray) !important;
  font-size: 16px;
}

.url-input-section {
  margin-bottom: 20px;
}

.url-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 15px;
}

.url-input {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--jet);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  color: #ffffff !important;
  font-size: 16px;
  transition: all 0.3s ease;
}

.url-input:focus {
  outline: none;
  border-color: var(--orange-yellow-crayola);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.url-input::placeholder {
  color: #cccccc !important;
}

.url-status {
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-weight: 600;
  text-align: center;
}

.url-status.loading {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700 !important;
  border: 1px solid #ffd700;
}

.url-status.success {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50 !important;
  border: 1px solid #4caf50;
}

.url-status.error {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336 !important;
  border: 1px solid #f44336;
}

.url-result {
  margin-bottom: 20px;
}

.url-box {
  margin-bottom: 15px;
  padding: 15px;
  border-radius: 10px;
  border: 2px solid;
}

.url-box.original-url {
  border-color: #f44336;
  background: rgba(244, 67, 54, 0.1);
}

.url-box.short-url {
  border-color: #4caf50;
  background: rgba(76, 175, 80, 0.1);
}

.url-box label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.url-display {
  word-break: break-all;
  padding: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}

.url-stats {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-box {
  background: #ffd700;
  color: #000000 !important;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  min-width: 120px;
  flex: 1;
}

.stat-value {
  font-size: 20px;
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 12px;
  text-transform: uppercase;
}

.url-controls {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* Mobile Responsive for URL Shortener */
@media (max-width: 768px) {
  .url-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .url-stats {
    flex-direction: column;
  }
  
  .stat-box {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .url-game {
    padding: 15px;
  }
  
  .url-title {
    font-size: 20px;
  }
  
  .url-input {
    padding: 12px;
    font-size: 14px;
  }
  
  .url-box {
    padding: 12px;
  }
  
  .stat-value {
    font-size: 18px;
  }
}

/* Expense Calculator Styles */
.expense-game {
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.expense-header {
  text-align: center;
  margin-bottom: 30px;
}

.expense-title {
  color: #ffd700 !important;
  font-size: 28px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.expense-subtitle {
  color: #cccccc !important;
  font-size: 16px;
}

.expense-dashboard {
  margin-bottom: 30px;
}

.expense-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--border-gradient-onyx);
  padding: 20px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  z-index: 1;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.stat-icon {
  font-size: 32px;
  color: #ffd700;
  flex-shrink: 0;
}

.stat-info {
  flex: 1;
}

.stat-label {
  display: block;
  color: #cccccc !important;
  font-size: 14px;
  margin-bottom: 5px;
}

.stat-value {
  display: block;
  color: #ffffff !important;
  font-size: 24px;
  font-weight: bold;
}

.expense-form-card {
  background: var(--border-gradient-onyx);
  padding: 25px;
  border-radius: 15px;
  position: relative;
  z-index: 1;
}

.expense-form-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.form-title {
  color: #ffd700 !important;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group label {
  color: #e5e5e5 !important;
  margin-bottom: 8px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.input-group input,
.input-group select {
  padding: 12px;
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: #ffffff !important;
  font-size: 16px;
  transition: all 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.input-group input::placeholder {
  color: #cccccc !important;
}

.add-btn {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: #ffffff !important;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  margin-top: 24px;
}

.add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.expense-list-container {
  margin-bottom: 30px;
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.list-header h4 {
  color: #ffd700 !important;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.list-actions {
  display: flex;
  gap: 10px;
}

.action-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.action-btn.clear {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336 !important;
  border: 1px solid #f44336;
}

.action-btn.clear:hover {
  background: #f44336;
  color: #ffffff !important;
}

.action-btn.export {
  background: rgba(33, 150, 243, 0.2);
  color: #2196f3 !important;
  border: 1px solid #2196f3;
}

.action-btn.export:hover {
  background: #2196f3;
  color: #ffffff !important;
}

.expense-list {
  background: var(--border-gradient-onyx);
  border-radius: 15px;
  padding: 20px;
  position: relative;
  z-index: 1;
  max-height: 400px;
  overflow-y: auto;
}

.expense-list::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #cccccc !important;
}

.empty-state ion-icon {
  font-size: 48px;
  color: #666;
  margin-bottom: 15px;
}

.empty-state p {
  font-size: 18px;
  margin-bottom: 8px;
  color: #cccccc !important;
}

.empty-state span {
  font-size: 14px;
  color: #999 !important;
}

.expense-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  transition: all 0.3s ease;
}

.expense-item:last-child {
  border-bottom: none;
}

.expense-item:hover {
  background: rgba(255, 215, 0, 0.05);
  border-radius: 8px;
}

.expense-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.expense-details {
  flex: 1;
}

.expense-description {
  color: #ffffff !important;
  font-weight: 600;
  margin-bottom: 4px;
}

.expense-meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
}

.expense-meta .category {
  color: #ffd700 !important;
  font-weight: 600;
}

.expense-meta .date {
  color: #cccccc !important;
}

.expense-amount {
  color: #4caf50 !important;
  font-weight: bold;
  font-size: 16px;
  flex-shrink: 0;
}

.delete-btn {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336 !important;
  border: 1px solid #f44336;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.delete-btn:hover {
  background: #f44336;
  color: #ffffff !important;
  transform: scale(1.1);
}

.expense-controls {
  display: flex;
  justify-content: center;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Mobile Responsive for Expense Calculator */
@media (max-width: 768px) {
  .expense-stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .list-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .list-actions {
    justify-content: center;
  }
  
  .expense-item {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .expense-meta {
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .expense-game {
    padding: 15px;
  }
  
  .expense-title {
    font-size: 24px;
  }
  
  .stat-card {
    padding: 15px;
  }
  
  .stat-value {
    font-size: 20px;
  }
  
  .expense-form-card {
    padding: 20px;
  }
  
  .expense-list {
    padding: 15px;
  }
  
  .expense-item {
    padding: 12px;
  }
}