/* COVER'D Styles */

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* CSS Variables for Light/Dark Theme */
:root {
  /* Light Theme (Default) - Pale blue primary, orange accent */
  --bg-gradient-start: #87ceeb;
  --bg-gradient-end: #4682b4;
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-bg-secondary: rgba(255, 255, 255, 0.9);
  --text-primary: #2d3748;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --border-color: rgba(70, 130, 180, 0.2);
  --border-hover: rgba(70, 130, 180, 0.4);
  --primary-color: #87ceeb;
  --primary-dark: #4682b4;
  --accent-color: #ff8c42;
  --accent-dark: #ff6b1a;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.15);
  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #f59e0b;

  /* Modal spacing */
  --modal-pad: 12px;
}

.grid-tile.unrevealed {
    background-color: #f0f0f0 !important;
    background-image: none !important;
}

/* Dynamic grid tile sizing */
.game-grid[style*="repeat(3"] .grid-tile {
    width: 100px;
    height: 100px;
}

.game-grid[style*="repeat(4"] .grid-tile {
    width: 75px;
    height: 75px;
}

.game-grid[style*="repeat(5"] .grid-tile {
    width: 60px;
    height: 60px;
}

/* Mobile responsive for different grid sizes */
@media (max-width: 480px) {
    .game-grid[style*="repeat(3"] .grid-tile {
        width: 83px;
        height: 83px;
    }
    
    .game-grid[style*="repeat(4"] .grid-tile {
        width: 62px;
        height: 62px;
    }
    
    .game-grid[style*="repeat(5"] .grid-tile {
        width: 50px;
        height: 50px;
    }
}

[data-theme="dark"] {
  /* Dark Theme */
  --bg-gradient-start: #1a1a2e;
  --bg-gradient-end: #16213e;
  --card-bg: rgba(45, 55, 72, 0.95);
  --card-bg-secondary: rgba(45, 55, 72, 0.9);
  --text-primary: #f7fafc;
  --text-secondary: #e2e8f0;
  --text-muted: #a0aec0;
  --border-color: rgba(135, 206, 235, 0.3);
  --border-hover: rgba(135, 206, 235, 0.5);
  --primary-color: #5bb3d4;
  --primary-dark: #3a8bb8;
  --accent-color: #ff8c42;
  --accent-dark: #ff6b1a;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --shadow-hover: rgba(0, 0, 0, 0.4);
  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
}

/* Dark theme - off-white settings icon */
[data-theme="dark"] .settings-toggle {
    color: #f7fafc; /* Off-white color */
}

[data-theme="dark"] .settings-toggle:hover {
    color: #fff; /* Pure white on hover for contrast */
}

/* Base */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.5;
  transition: all 0.3s ease;
}

/* Layout */
.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.content-wrapper { flex: 1; padding: 20px; }
.container { max-width: 800px; margin: 0 auto; }

/* Header */
.header {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 8px 32px var(--shadow-color);
  border: 1px solid var(--border-color);
}
.header h1 {
  font-size: 3em; color: var(--primary-color); margin-bottom: 10px;
  text-shadow: 2px 2px 4px var(--shadow-color); font-weight: bold;
}
.header p { color: var(--text-muted); font-size: 1.2em; }

/* Settings Toggle Button */
.settings-toggle {
  position: fixed; top: 20px; right: 20px; z-index: 1000;
  background: var(--card-bg); border: 2px solid var(--border-color);
  border-radius: 50%; width: 50px; height: 50px; cursor: pointer;
  transition: all 0.3s ease; display: flex; align-items: center; justify-content: center;
  font-size: 1.8em; box-shadow: 0 4px 12px var(--shadow-color); backdrop-filter: blur(10px);
}
.settings-toggle:hover {
  border-color: var(--border-hover); transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-hover); background: var(--primary-color); color: #fff;
}
.settings-icon { transition: transform 0.3s ease; }
.settings-toggle:hover .settings-icon { transform: rotate(45deg); }

/* Stats Toggle Button */
.stats-toggle {
  position: fixed; top: 90px; right: 20px; z-index: 1000;
  background: var(--card-bg); border: 2px solid var(--border-color);
  border-radius: 50%; width: 50px; height: 50px; cursor: pointer;
  transition: all 0.3s ease; display: flex; align-items: center; justify-content: center;
  font-size: 1.8em; box-shadow: 0 4px 12px var(--shadow-color); backdrop-filter: blur(10px);
}
.stats-toggle:hover {
  border-color: var(--border-hover); transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-hover); background: var(--accent-color); color: #fff;
}
.stats-icon { transition: transform 0.3s ease; }
.stats-toggle:hover .stats-icon { transform: scale(1.1); }

.calendar-toggle {
    position: fixed;
    top: 160px;
    right: 20px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.calendar-icon {
    font-size: 20px;
}

/* Calendar Modal Styles */
.calendar-container {
    max-width: 400px;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.calendar-nav {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.calendar-nav:hover {
    background: var(--primary-dark);
}

.calendar-nav:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
}

.calendar-month-year {
    font-size: 18px;
    font-weight: bold;
}

#calendar-container .calendar-grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 2px !important;
    margin-bottom: 20px !important;
}

.calendar-day-header {
    text-align: center;
    font-weight: bold;
    padding: 8px;
    background: var(--card-bg-secondary);
    font-size: 14px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.calendar-day:hover {
    transform: scale(1.05);
}

.calendar-day.other-month {
    color: var(--text-muted);
    cursor: default;
}

.calendar-day.other-month:hover {
    transform: none;
}

.calendar-day.future {
    background: #f0f0f0;
    color: var(--text-muted);
    cursor: not-allowed;
}

.calendar-day.future:hover {
    transform: none;
}

.calendar-day.available {
    background: var(--primary-color);
    color: white;
}

.calendar-day.available:hover {
    background: var(--primary-dark);
}

.calendar-day.completed {
    background: var(--success-color);
    color: white;
}

.calendar-day.completed:hover {
    background: #0ea46e;
}

.calendar-day.today {
    border-color: var(--accent-color);
    border-width: 3px;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.legend-color.completed {
    background: var(--success-color);
}

.legend-color.available {
    background: var(--primary-color);
}

.legend-color.future {
    background: #f0f0f0;
    border: 1px solid var(--border-color);
}

.play-again-btn {
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.play-again-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.share-btn:hover, .play-again-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}


/* Navigation */
.nav-bar {
  background: var(--card-bg-secondary); backdrop-filter: blur(10px);
  border-radius: 15px; padding: 15px 20px; margin-bottom: 20px;
  display: flex; justify-content: center; gap: 15px; flex-wrap: wrap;
  box-shadow: 0 4px 16px var(--shadow-color); border: 1px solid var(--border-color);
}
.nav-btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #fff; border: none; border-radius: 12px; padding: 12px 20px; font-weight: bold;
  cursor: pointer; transition: all 0.3s ease; font-size: 1em;
  box-shadow: 0 4px 16px rgba(135, 206, 235, 0.3);
}
.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(135, 206, 235, 0.4);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}
.nav-btn.secondary { background: var(--accent-color); box-shadow: 0 4px 16px rgba(255, 140, 66, 0.3); }
.nav-btn.secondary:hover { background: var(--accent-dark); box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4); }

.share-btn {
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}


.result-actions a, .result-actions button {
    text-align: center;
}

/* Game Area */
.game-area {
  background: var(--card-bg); backdrop-filter: blur(10px);
  border-radius: 20px; padding: 30px; box-shadow: 0 8px 32px var(--shadow-color);
  border: 1px solid var(--border-color); text-align: center;
}
.placeholder-content { padding: 60px 20px; color: var(--text-muted); }
.placeholder-content h2 { color: var(--text-secondary); margin-bottom: 15px; font-size: 1.5em; }

/* Footer */
.footer {
  background: var(--card-bg-secondary); backdrop-filter: blur(10px);
  border-radius: 15px; max-width: 800px; margin: 20px auto 0; padding: 20px; text-align: center;
  box-shadow: 0 8px 32px var(--shadow-color); color: var(--text-muted);
  font-size: 0.9em; line-height: 1.6; border: 1px solid var(--border-color);
}
.footer .version { font-weight: bold; color: var(--primary-color); margin-bottom: 10px; font-size: 1em; }
.footer .disclaimer { margin-bottom: 15px; color: var(--text-secondary); }
.footer .disclaimer strong { color: var(--text-primary); }
.footer .support { margin-bottom: 10px; color: var(--text-secondary); }
.footer .copyright { margin-top: 10px; color: var(--text-muted); font-size: 0.8em; }
.footer a { color: var(--accent-color); text-decoration: none; font-weight: bold; transition: color 0.3s ease; }
.footer a:hover { color: var(--accent-dark); text-decoration: underline; }

/* ---------------- Modal (final, fixed) ---------------- */
.modal {
  position: fixed; inset: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none; justify-content: center; align-items: center;
  z-index: 1002; padding: var(--modal-pad); backdrop-filter: blur(5px);
}
.modal.show { display: flex; }

.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  width: 100%; max-width: 600px;
  /* Key behaviour: never exceed viewport; header/footer fixed; body scrolls */
  display: flex; flex-direction: column; overflow: hidden;
  max-height: calc(100vh - (var(--modal-pad) * 2));
  box-shadow: 0 20px 60px var(--shadow-hover);
  animation: modalSlideIn 0.3s ease-out;
}
@supports (height: 100dvh) {
  .modal-content { max-height: calc(100dvh - (var(--modal-pad) * 2)); }
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(-30px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px; border-bottom: 1px solid var(--border-color);
  background: var(--card-bg-secondary); border-radius: 15px 15px 0 0;
  flex-shrink: 0;
}
.modal-title { margin: 0; font-size: 1.5em; color: var(--text-primary); font-weight: bold; }

.close-btn {
  background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-muted);
  padding: 4px; border-radius: 4px; transition: all 0.3s ease; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
}
.close-btn:hover { color: var(--text-secondary); background: var(--border-color); }

.modal-body {
  flex: 1 1 auto; overflow-y: auto; padding: 30px; line-height: 1.6;
  min-height: 0; -webkit-overflow-scrolling: touch;
}
.modal-body h3 { color: var(--accent-color); font-size: 1.3em; margin: 25px 0 15px; }
.modal-body h3:first-child { margin-top: 0; }
.modal-body p, .modal-body ul { color: var(--text-secondary); margin-bottom: 15px; }
.modal-body ul { padding-left: 25px; }
.modal-body li { margin-bottom: 8px; }

.modal-footer {
  padding: 20px; border-top: 1px solid var(--border-color);
  background: var(--card-bg-secondary); text-align: center;
  border-radius: 0 0 15px 15px; flex-shrink: 0;
}

/* Buttons */
.btn {
  padding: 12px 24px; border: none; border-radius: 8px; font-weight: bold;
  cursor: pointer; transition: all 0.3s ease; font-size: 1em; margin: 0 5px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #fff; box-shadow: 0 4px 16px rgba(135, 206, 235, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(135, 206, 235, 0.4); }
.btn-secondary { background: var(--accent-color); color: #fff; box-shadow: 0 4px 16px rgba(255, 140, 66, 0.3); }
.btn-secondary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4); }
.btn-cancel { background: #a0aec0; color: #fff; }
.btn-cancel:hover { background: #718096; transform: translateY(-1px); }

/* Settings specific */
.settings-section { margin-bottom: 32px; }
.settings-section:last-child { margin-bottom: 0; }
.settings-section-title {
  font-size: 1.3em; font-weight: bold; color: var(--accent-color);
  margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--accent-color);
}
.settings-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px; background: rgba(135, 206, 235, 0.05);
  border: 1px solid var(--border-color); border-radius: 12px; margin-bottom: 16px;
  transition: all 0.3s ease;
}
.settings-item:hover { border-color: var(--border-hover); box-shadow: 0 2px 8px var(--shadow-color); }
.settings-item-info { flex: 1; margin-right: 20px; }
.settings-label { font-size: 1.1em; font-weight: bold; color: var(--text-primary); margin-bottom: 6px; display: block; }
.settings-description { font-size: 0.9em; color: var(--text-muted); margin: 0; line-height: 1.4; }
.settings-control { flex-shrink: 0; }
.settings-select {
  background: var(--card-bg); border: 2px solid var(--border-color); border-radius: 8px;
  padding: 10px 16px; font-size: 1em; color: var(--text-primary); cursor: pointer;
  transition: all 0.3s ease; min-width: 180px;
}
.settings-select:hover { border-color: var(--border-hover); }
.settings-select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.2); }

/* Responsive */
@media (max-width: 768px) {
  .content-wrapper { padding: 10px; }
  .header { padding: 20px; }
  .header h1 { font-size: 2em; }
  .nav-bar { flex-direction: row; gap: 8px; flex-wrap: wrap; }
  .game-area { padding: 20px; }

.nav-btn { 
    flex: 1; 
    text-align: center; 
    min-width: 0; 
    font-size: 0.75em;  /* Smaller font */
    white-space: nowrap; /* Prevent text wrapping */
    padding: 10px 8px;   /* Reduce horizontal padding */
  }

  /* Modal on mobile: aligned near top, still capped to viewport */
  body.modal-open { overflow: hidden; }
  .modal { padding: 10px; align-items: flex-start; padding-top: 60px; }
  .modal-content { width: calc(100vw - 20px); max-width: none; }
  .modal-body { padding: 20px; }

  .settings-item { flex-direction: column; align-items: flex-start; text-align: left; gap: 16px; }
  .settings-item-info { margin-right: 0; width: 100%; }
  .settings-control, .settings-select { width: 100%; min-width: auto; }

  .footer { margin: 0; border-radius: 0; padding: 15px; }
}

@media (max-width: 480px) {
  .modal { padding: 8px; padding-top: 30px; }
  .modal-content { width: calc(100vw - 16px); }
  .modal-body { padding: 16px; }
  .modal-title { font-size: 1.2em; }

  .settings-item { padding: 16px; gap: 12px; }
  .footer { padding: 12px; font-size: 0.8em; }
  .footer .version { font-size: 0.9em; }
}

/* Game Interface Styles */
.game-header {
    margin-bottom: 20px;
    text-align: center;
}

.game-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.info-item .label {
    font-size: 0.9em;
    color: var(--text-muted);
}

.info-item span:last-child {
    font-weight: bold;
    font-size: 1.2em;
    color: var(--primary-color);
}

.game-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto 20px;
}

.album-placeholder {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.9);
    z-index: 10;
}

.album-image {
    width: 300px;
    height: 300px;
    border-radius: 10px;
    margin: 0 auto;
    display: block;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px var(--shadow-color);
}

.grid-tile {
    width: 100px;
    height: 100px;
    background: #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: var(--text-muted);
}

.grid-tile:hover {
    background: #e0e0e0;
    transform: scale(1.05);
}

.grid-tile.revealed {
    cursor: default;
}

.grid-tile.revealed:hover {
    transform: none;
}

.game-controls {
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.input-section {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    position: relative;
}

#guessInput {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    background: var(--card-bg);
    color: var(--text-primary);
}

#guessInput:focus {
    outline: none;
    border-color: var(--primary-color);
}

#submitBtn {
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

#submitBtn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.suggestions {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-height: 150px;
    overflow-y: auto;
    box-shadow: 0 4px 16px var(--shadow-color);
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 70px;
    margin-bottom: 5px;
    z-index: 1000;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.suggestions::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 4px;
}

.suggestions::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.suggestions::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Scrollbar styling for suggestions */
.suggestions::-webkit-scrollbar {
    width: 8px;
}

.suggestions::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 4px;
}

.suggestions::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.suggestions::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.suggestion {
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
    text-align: left;
    font-size: 0.9em;
    line-height: 1.3;
}

.suggestion:hover {
    background: var(--primary-color);
    color: white;
}

.suggestion:last-child {
    border-bottom: none;
}

.result-section {
    text-align: center;
    padding: 20px;
    background: var(--card-bg-secondary);
    border-radius: 15px;
    margin-top: 20px;
}

.result-title {
     font-size: 1.5em; /* Reduced from 2em */
    margin-bottom: 15px;
    /* Add responsive sizing */
}

/* Add responsive breakpoint for smaller screens */
@media (max-width: 480px) {
    .result-title {
        font-size: 1.3em; /* Even smaller on mobile */
    }
}

.result-details {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.6;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.result-actions a,
.result-actions button {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    height: 48px;
    min-width: 140px;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 24px;
    text-align: center;
    border: none;
    cursor: pointer;
}

.result-actions a {
    background: var(--accent-color);
    color: white;
}

.result-actions button {
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
}

.result-actions a:hover,
.result-actions button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Game Mobile Styles */
@media (max-width: 480px) {
    .game-info {
        gap: 15px;
    }
    
.welcome-logo {
        width: 150px;
        height: 150px;
            }

    .game-grid,
    .album-image {
        width: 250px;
        height: 250px;
    }
    
    .album-placeholder {
        width: 250px;
        height: 250px;
    }
    
    .grid-tile {
        width: 83px;
        height: 83px;
    }
    
    .input-section {
        flex-direction: column;
    }
    
    .result-actions {
        flex-direction: row;
        align-items: center;
    }
}

.game-grid[style*="repeat(10"] .grid-tile {
    width: 30px;
    height: 30px;
}

/* Mobile responsive for 10x10 grid */
@media (max-width: 480px) {
    .game-grid[style*="repeat(10"] .grid-tile {
        width: 25px;
        height: 25px;
    }
}

/* Ensure footer stays at bottom but visible */
.footer {
    flex-shrink: 0;
    margin-top: auto;
}

.welcome-logo {
    width: 200px;
    height: 200px;
    border: none
    margin-bottom: 20px;
    background: transparent;
    mix-blend-mode: multiply;
    
}

@media (max-width: 768px) {
  /* Keep icons on right but move them higher to avoid content overlap */
  .settings-toggle { 
    width: 45px; height: 45px; font-size: 1.6em; 
    top: 10px; right: 15px;
    z-index: 1000; /* Match calendar - appear beneath modals */
  }
  .stats-toggle { 
    width: 45px; height: 45px; font-size: 1.6em; 
    top: 65px; right: 15px;
    z-index: 1000; /* Match calendar - appear beneath modals */
  }
  .calendar-toggle {
    width: 45px; height: 45px; font-size: 1.6em;
    top: 120px; right: 15px;
    z-index: 1000; /* Keep existing value */
  }
}

@media (max-width: 480px) {
  /* Smaller and closer together on mobile */
  .settings-toggle { 
    width: 40px; height: 40px; font-size: 1.4em;
    top: 8px; right: 12px;
    z-index: 1000;
  }
  .stats-toggle { 
    width: 40px; height: 40px; font-size: 1.4em;
    top: 56px; right: 12px;
    z-index: 1000;
  }
  .calendar-toggle {
    width: 40px; height: 40px; font-size: 1.4em;
    top: 104px; right: 12px;
    z-index: 1000;
  }
}

/* Simple mobile fix for suggestions */
@media (max-width: 768px) {
    .suggestions {
        max-height: 40vh;
        font-size: 0.85em;
    }
    
    .suggestion {
        padding: 8px 10px;
        min-height: 36px;
        font-size: 0.85em;
    }
}

/* Dark theme tweaks for game elements */
[data-theme="dark"] .album-placeholder {
    background: rgba(45, 55, 72, 0.9);
}

/* Dark theme tweaks */
[data-theme="dark"] .settings-item { background: rgba(135, 206, 235, 0.1); }
[data-theme="dark"] .placeholder-content { color: var(--text-secondary); }
