* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cal Sans', 'Noto Sans', sans-serif;
    background: #0a0a0a;
    color: #fff700;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 20% 20%, #4da51d 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, #33adff 0%, transparent 50%);
    background-size: 100% 100%;
    background-attachment: fixed;
    margin: 0;
      padding: 0;
      background-image: url('textures/fondoi.jpg'); /* Reemplaza con tu ruta */
      background-size: cover;       /* Ajusta sin deformar */
      background-repeat: no-repeat; /* No se repite */
      background-position: center;  /* Centrada */
      background-attachment: fixed; /* Fija al hacer scroll */

}

body.light-theme {
    background: #f5f5f5;
    color: #333;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(51, 241, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(51, 197, 255, 0.1) 0%, transparent 50%);
}

body.light-theme .setup-panel,
body.light-theme .games-list,
body.light-theme .simulation-results {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
}

body.light-theme .game-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
}

body.light-theme .player-setup input,
body.light-theme .game-creator input,
body.light-theme .option-group select {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: #333;
}

body.light-theme .option-group select option {
    background: #f5f5f5;
    color: #333;
}

.collection-manager {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.collection-manager h3 {
    margin-bottom: 20px;
    color: #f1ff33;
    font-size: 1.5rem;
}

.collection-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.collection-controls input {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    color: white;
    flex: 1;
    min-width: 200px;
    transition: all 0.3s ease;
}

.collection-controls input:focus {
    outline: none;
    border-color: #33ffaa;
    box-shadow: 0 0 20px rgba(51, 150, 255, 0.3);
}

.collection-controls input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.collection-controls button {
    background: linear-gradient(135deg, #33ff58, #6bbfff);
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.collection-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(51, 255, 235, 0.4);
}

.collection-controls button:active {
    transform: translateY(0);
    transition: transform 0.1s;
}

.collection-controls button:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255,255,255,0.5);
    cursor: not-allowed;
    transform: none;
}

.saved-collections {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.saved-collections label {
    color: #6bfff8;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.saved-collections select {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
}

.saved-collections select:focus {
    outline: none;
    border-color: #8833ff;
    box-shadow: 0 0 15px rgba(51, 173, 255, 0.3);
}

.saved-collections select option {
    background: #1a1a1a;
    color: white;
}

.saved-collections button {
    background: rgba(0, 162, 255, 0.3);
    border: 1px solid rgba(162, 0, 255, 0.5);
    border-radius: 20px;
    padding: 10px 18px;
    color: #44b7ff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.saved-collections button:hover:not(:disabled) {
    background: rgba(0, 255, 106, 0.5);
    transform: scale(1.05);
}

.saved-collections button:disabled {
    background: rgba(100,100,100,0.2);
    border: 1px solid rgba(100,100,100,0.3);
    color: rgba(150,150,150,0.5);
    cursor: not-allowed;
    transform: none;
}

body.light-theme .collection-controls input,
body.light-theme .saved-collections select {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: #333;
}

body.light-theme .saved-collections select option {
    background: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

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

.header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    background: linear-gradient(135deg, #33ffbb, #6bebff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 20px rgba(51, 224, 255, 0.5)); }
    to { filter: drop-shadow(0 0 30px rgba(51, 190, 255, 0.8)); }
}

.header p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-top: 10px;
}

.setup-panel {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.options-panel {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.options-panel h3 {
    margin-bottom: 20px;
    color: #33ffeb;
    font-size: 1.5rem;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-group label {
    font-weight: 600;
    color: #6be9ff;
    font-size: 0.9rem;
}

.option-group select {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-group select:focus {
    outline: none;
    border-color: #33ffaa;
    box-shadow: 0 0 15px rgba(51, 255, 177, 0.3);
}

.option-group select option {
    background: #1a1a1a;
    color: white;
}

.player-setup {
    margin-bottom: 30px;
}

.player-setup label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #33ff92;
}

.player-setup input {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 15px;
    font-size: 1.1rem;
    color: white;
    width: 200px;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.player-setup input:focus {
    outline: none;
    border-color: #33e7ff;
    box-shadow: 0 0 20px rgba(51, 241, 255, 0.3);
}

.player-count-display {
    font-weight: 600;
    color: #6bfff3;
    font-size: 1.1rem;
}

.force-winner-setup {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.force-winner-setup label {
    margin-bottom: 8px;
}

.force-winner-setup input {
    width: 150px;
    margin-right: 10px;
}

.force-winner-setup input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.force-winner-hint {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-style: italic;
    display: block;
    margin-top: 5px;
}

.game-setup h3 {
    margin-bottom: 20px;
    color: #33ffa3;
    font-size: 1.5rem;
}

.game-creator {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.game-creator input {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 15px;
    font-size: 1rem;
    color: white;
    transition: all 0.3s ease;
}

.game-creator input:focus {
    outline: none;
    border-color: #33ffb8;
    box-shadow: 0 0 20px rgba(51, 255, 214, 0.3);
}

.game-creator input[type="text"] {
    flex: 1;
    min-width: 200px;
}

.game-creator input[type="number"] {
    width: 150px;
}

.game-creator input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.game-creator input:invalid {
    border-color: #44f6ff;
}

#gameDescriptionInput {
    flex: 1.5;
    min-width: 250px;
}

.preset-games h4 {
    margin-bottom: 15px;
    color: #ffffff;
    opacity: 0.9;
}

.preset-games {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.preset-btn, #addGameBtn {
    background: linear-gradient(135deg, #33ffa0, #6bffc1);
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.preset-btn:hover, #addGameBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(51, 255, 252, 0.4);
}

.preset-btn:active, #addGameBtn:active {
    transform: translateY(0);
    transition: transform 0.1s;
}

.preset-btn:disabled, #addGameBtn:disabled {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    cursor: not-allowed;
    transform: none;
}

.preset-btn:disabled:hover, #addGameBtn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.games-list {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.games-list h3 {
    margin-bottom: 20px;
    color: #33ffda;
    font-size: 1.5rem;
}

.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.game-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #33ffd6, #6bffda);
}

.game-card h4 {
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 1.2rem;
}

.game-card .game-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-style: italic;
    line-height: 1.4;
}

.game-card p {
    color: #6bfff5;
    margin-bottom: 15px;
}

.remove-game {
    background: rgba(0, 234, 255, 0.2);
    border: 1px solid rgba(81, 255, 0, 0.5);
    border-radius: 8px;
    padding: 8px 15px;
    color: #d744ff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-game:hover {
    background: rgba(255,0,0,0.3);
    transform: scale(1.05);
}

.remove-game:disabled {
    background: rgba(100,100,100,0.2);
    border: 1px solid rgba(100,100,100,0.3);
    color: rgba(150,150,150,0.5);
    cursor: not-allowed;
}

.remove-game:disabled:hover {
    background: rgba(100,100,100,0.2);
    transform: none;
}

.simulation-panel {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.start-btn, .reset-btn {
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.start-btn {
    background: linear-gradient(135deg, #33ff70, #6bff86);
    color: white;
}

.start-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(51, 255, 177, 0.4);
}

.start-btn:active:not(:disabled) {
    transform: translateY(-1px);
    transition: transform 0.1s;
}

.start-btn:disabled {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    cursor: not-allowed;
}

.reset-btn {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.reset-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

.reset-btn:active {
    transform: translateY(-1px);
    transition: transform 0.1s;
}

.simulation-results {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.simulation-results h3 {
    margin-bottom: 25px;
    color: #3392ff;
    font-size: 1.8rem;
    text-align: center;
}

.results-summary {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.share-btn, .export-btn, .run-again-btn {
    background: linear-gradient(135deg, #33ff36, #6bff84);
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    min-width: 120px;
}

.share-btn:hover, .export-btn:hover, .run-again-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(61, 51, 255, 0.4);
}

.share-btn:active, .export-btn:active, .run-again-btn:active {
    transform: translateY(0);
    transition: transform 0.1s;
}

.export-btn {
    background: linear-gradient(135deg, #3366ff, #6b9dff);
}

.export-btn:hover {
    box-shadow: 0 8px 16px rgba(51, 102, 255, 0.4);
}

.run-again-btn {
    background: linear-gradient(135deg, #33ff66, #66ff9d);
}

.run-again-btn:hover {
    box-shadow: 0 8px 16px rgba(51, 255, 102, 0.4);
}

.stat {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    flex: 1;
    min-width: 150px;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #6bff77;
}

.round-results {
    margin-top: 30px;
}

.round-result {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #33ff55;
    position: relative;
}

.round-result::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 15px;
    width: 8px;
    height: 8px;
    background: #33ff66;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.round-result h4 {
    margin-bottom: 10px;
    color: #33ff52;
}

.round-result p {
    margin-bottom: 5px;
    opacity: 0.9;
}

.hidden {
    display: none;
}

.scenario {
    font-style: italic;
    color: #6bff75;
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 107, 157, 0.1);
    border-radius: 8px;
    border-left: 3px solid #6bff77;
}

.sound-toggle:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.sound-toggle:active {
    transform: scale(0.95);
    transition: transform 0.1s;
}

.stats-button:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.stats-button:active {
    transform: scale(0.95);
    transition: transform 0.1s;
}

.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 46, 46, 0.412);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.tutorial-overlay.tutorial-hidden {
    display: none;
}

.tutorial-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(112, 255, 51, 0.3);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 50px rgb(0, 179, 255);
}

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

.tutorial-header h2 {
    color: #3374ff;
    font-size: 1.8rem;
    margin: 0;
}

.skip-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.skip-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tutorial-step {
    text-align: center;
}

.tutorial-text {
    margin-bottom: 30px;
}

.tutorial-text h3 {
    color: #6bb5ff;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.tutorial-text p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 1rem;
}

.tutorial-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tutorial-btn {
    background: linear-gradient(135deg, #33ff74, #6bff7a);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 100px;
}

.tutorial-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(51, 255, 82, 0.4);
}

.tutorial-btn:active:not(:disabled) {
    transform: translateY(0);
    transition: transform 0.1s;
}

.tutorial-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
}

#tutorialProgress {
    color: #7fff6b;
    font-weight: 600;
    font-size: 1.1rem;
}

.tutorial-highlight {
    position: relative;
    z-index: 9999;
    box-shadow: 0 0 0 3px #33ff36, 0 0 20px rgba(255, 51, 102, 0.5) !important;
    border-radius: 15px !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 3px #4eff33, 0 0 20px rgba(119, 255, 51, 0.5); }
    50% { box-shadow: 0 0 0 6px #47ff33, 0 0 30px rgba(51, 255, 61, 0.8); }
    100% { box-shadow: 0 0 0 3px #58ff33, 0 0 20px rgba(51, 255, 51, 0.5); }
}

.music-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.music-toggle, .volume-control {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.music-toggle:hover, .volume-control:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.music-toggle:active, .volume-control:active {
    transform: scale(0.95);
    transition: transform 0.1s;
}

.volume-slider {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 15px;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.volume-slider.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.volume-slider input[type="range"] {
    width: 100px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

.volume-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: #33fff1;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #33ff3a;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.volume-label {
    color: white;
    font-size: 0.8rem;
    text-align: center;
    margin-bottom: 5px;
}

.thank-you-section {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.support-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.support-image:hover {
    transform: scale(1.05);
}

.thank-you-text {
    color: #ffcc00;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .game-creator {
        flex-direction: column;
        gap: 15px;
    }
    
    .game-creator input {
        width: 100%;
        min-width: auto;
    }
    
    #gameDescriptionInput {
        flex: 1;
        min-width: auto;
    }
    
    .preset-games {
        justify-content: center;
    }
    
    .preset-btn {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
    
    .simulation-panel {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .start-btn, .reset-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .results-summary {
        flex-direction: column;
    }
    
    .games-container {
        grid-template-columns: 1fr;
    }
    
    .stat {
        min-width: auto;
    }
    
    .round-result {
        padding: 15px;
    }
    
    .scenario {
        font-size: 0.9rem;
        padding: 8px;
    }
    
    .collection-controls {
        flex-direction: column;
    }
    
    .collection-controls input,
    .collection-controls button {
        width: 100%;
        min-width: auto;
    }
    
    .saved-collections {
        flex-direction: column;
        align-items: stretch;
    }
    
    .saved-collections select,
    .saved-collections button {
        width: 100%;
        min-width: auto;
    }
    
    .support-image {
        max-width: 250px;
    }
    
    .thank-you-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .setup-panel, .games-list, .simulation-results {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .preset-btn {
        font-size: 0.8rem;
        padding: 10px 15px;
    }
    
    .start-btn, .reset-btn {
        font-size: 1rem;
        padding: 15px 30px;
    }
    
    .support-image {
        max-width: 200px;
    }
    
    .thank-you-text {
        font-size: 0.9rem;
    }
}