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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.game-container {
    width: 100%;
    max-width: 1000px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    min-height: 700px;
}

header {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    padding: 20px;
    text-align: center;
}

header h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
}

.score-board {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 1.1em;
    font-weight: bold;
}

.screen {
    display: none;
    padding: 30px;
}

/* Level-Auswahl Styles */
.level-selector {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    margin: 20px;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.level-selector h3 {
    margin-bottom: 15px;
    color: #2d3436;
    font-size: 1.3em;
}

.level-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.level-btn {
    background: linear-gradient(135deg, #ddd6fe, #c4b5fd);
    border: 3px solid transparent;
    padding: 15px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
    font-weight: bold;
    color: #4c1d95;
    min-width: 120px;
}

.level-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.level-btn.active {
    border-color: #7c3aed;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
}

.level-btn small {
    display: block;
    font-size: 0.8em;
    opacity: 0.8;
    margin-top: 3px;
}

/* Level-spezifische Item-Styles */
.helper-border {
    animation: pulse-helper 2s infinite;
}

@keyframes pulse-helper {
    0% {
        box-shadow: 0 0 10px rgba(255, 235, 59, 0.7);
        border-color: #ffeb3b;
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 235, 59, 1);
        border-color: #fdd835;
    }
    100% {
        box-shadow: 0 0 10px rgba(255, 235, 59, 0.7);
        border-color: #ffeb3b;
    }
}

/* Level-spezifische Raum-Styles */
.room-3d.level-0 {
    filter: brightness(1.1) contrast(1.1);
}

.room-3d.level-2 {
    filter: brightness(0.95) contrast(1.05);
}

.room-3d.level-3 {
    filter: brightness(0.9) saturate(1.1);
}

/* Mobile Touch Support */
.draggable-item.selected {
    border: 3px solid #007bff !important;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.6) !important;
    background-color: rgba(0, 123, 255, 0.1) !important;
    transform: scale(1.05);
    z-index: 200 !important;
}

.drop-zone.mobile-highlight {
    background: rgba(0, 255, 0, 0.3) !important;
    border: 3px solid rgba(0, 255, 0, 0.8) !important;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.6);
    animation: pulse-zone 1.5s infinite;
}

@keyframes pulse-zone {
    0% {
        box-shadow: 0 0 15px rgba(0, 255, 0, 0.6);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 255, 0, 0.8);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 15px rgba(0, 255, 0, 0.6);
        transform: scale(1);
    }
}

.mobile-instruction {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1em;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    animation: bounce-instruction 2s infinite;
    text-align: center;
    max-width: 90%;
}

@keyframes bounce-instruction {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-5px);
    }
    60% {
        transform: translateX(-50%) translateY(-3px);
    }
}

/* Touch-friendly Drop Zones */
@media (max-width: 768px) {
    .drop-zone {
        min-height: 80px !important;
        min-width: 80px !important;
        border: 3px dashed rgba(255, 255, 255, 0.6) !important;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.2) !important;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .drop-zone:hover, .drop-zone:active {
        background: rgba(255, 255, 255, 0.4) !important;
        border-color: rgba(255, 255, 255, 0.8) !important;
        transform: scale(1.05);
    }

    .draggable-item {
        min-width: 60px;
        min-height: 60px;
        touch-action: manipulation;
    }

    .furniture-label {
        font-size: 1.2em !important;
        padding: 15px 20px !important;
        background: rgba(0, 0, 0, 0.95) !important;
        cursor: pointer !important;
        border: 3px solid rgba(255, 255, 255, 0.6) !important;
        border-radius: 12px !important;
        transition: all 0.3s ease;
        min-width: 120px !important;
        min-height: 50px !important;
        text-align: center;
        font-weight: bold !important;
        color: white !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
        touch-action: manipulation;
        user-select: none;
        -webkit-tap-highlight-color: rgba(0, 123, 255, 0.3);
    }

    .furniture-label:hover, .furniture-label:active, .furniture-label:focus {
        background: rgba(0, 123, 255, 0.95) !important;
        border-color: rgba(255, 255, 255, 0.9) !important;
        transform: scale(1.08) !important;
        box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4) !important;
    }

    .level-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .level-btn {
        min-width: 200px;
        padding: 18px 25px;
        font-size: 1.1em;
    }

    .room-selection-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .room-btn {
        padding: 20px;
        min-height: 120px;
    }
}

/* Responsive Font Sizes */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.8em;
    }

    .score-board {
        flex-direction: column;
        gap: 10px;
        font-size: 1em;
    }

    .mobile-instruction {
        font-size: 0.9em;
        padding: 10px 16px;
        bottom: 15px;
    }
}

.screen.active {
    display: block;
}

/* Raumauswahl */
#room-selection h2 {
    text-align: center;
    color: #2d3436;
    margin-bottom: 40px;
    font-size: 1.8em;
}

.room-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.room-selection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .room-selection-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .room-selection-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

.room-btn {
    background: linear-gradient(135deg, #00cec9, #00b894);
    border: none;
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    color: white;
    font-size: 1em;
    min-width: 280px;
    text-align: center;
}

.room-description {
    font-size: 0.9em;
    opacity: 0.9;
    margin-top: 8px;
    line-height: 1.3;
}

.room-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.room-icon {
    font-size: 4em;
    margin-bottom: 10px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI Emoji', 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Symbol', sans-serif;
    text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Echte Emojis brauchen keine CSS-Icons mehr! */

.room-name {
    font-weight: bold;
    font-size: 1.2em;
}

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

#back-btn, #reset-room {
    background: #636e72;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s;
}

#back-btn:hover, #reset-room:hover {
    background: #2d3436;
}

#current-room-title {
    color: #2d3436;
    font-size: 1.5em;
}

/* 3D Raum Container */
.room-3d {
    position: relative;
    width: 100%;
    height: 500px;
    perspective: 1200px;
    background: linear-gradient(180deg, #87CEEB 0%, #98D8E8 30%, #D2B48C 30%, #DEB887 100%);
    overflow: hidden;
    border-radius: 15px;
    margin: 20px 0;
}

/* Thematische Hintergründe für verschiedene Räume */

/* Schlafzimmer - warme, gemütliche Farben */
.room-3d.bedroom {
    background: linear-gradient(180deg, #F5F5DC 0%, #FFF8DC 40%, #8B7355 40%, #A0826D 100%);
}

/* Küche - saubere, helle Farben */
.room-3d.kitchen {
    background: linear-gradient(180deg, #F0F8FF 0%, #E6F3FF 35%, #FFFACD 35%, #FFF8DC 100%);
}

/* Badezimmer - frische, blaue Farben */
.room-3d.bathroom {
    background: linear-gradient(180deg, #E0F6FF 0%, #B0E0E6 40%, #F0F8FF 40%, #E6F3FF 100%);
}

/* Kinderzimmer - bunte, fröhliche Farben */
.room-3d.kids_room {
    background: linear-gradient(180deg, #FFE4E1 0%, #FFB6C1 35%, #FFEFD5 35%, #FFEBCD 100%);
}

/* Garten - natürliche, grüne Farben */
.room-3d.garden {
    background: linear-gradient(180deg, #87CEEB 0%, #98D8E8 25%, #90EE90 25%, #228B22 100%);
}

/* Garage - industrielle, graue Farben */
.room-3d.garage {
    background: linear-gradient(180deg, #696969 0%, #778899 35%, #C0C0C0 35%, #A9A9A9 100%);
}

/* Balkon - luftige, helle Farben */
.room-3d.balcony {
    background: linear-gradient(180deg, #87CEEB 0%, #B0E0E6 30%, #F5F5DC 30%, #FFFACD 100%);
}

/* Dekorative Hintergrund-Elemente für jedes Zimmer */

/* Fenster für Innenräume */
.room-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

/* Fenster - nur für Innenräume */
.window {
    position: absolute;
    width: 80px;
    height: 100px;
    background: linear-gradient(135deg, #E6F3FF 0%, #B0E0E6 100%);
    border: 4px solid #8B4513;
    border-radius: 8px;
    top: 50px;
    right: 30px;
    display: none; /* Standardmäßig versteckt */
}

/* Fenster nur in Innenräumen anzeigen */
.room-3d.bedroom .window,
.room-3d.kitchen .window,
.room-3d.bathroom .window,
.room-3d.kids_room .window {
    display: block;
}

/* Fensterkreuz */
.window::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background: #8B4513;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.window::after {
    content: '';
    position: absolute;
    height: 2px;
    width: 100%;
    background: #8B4513;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

/* Blumenvase - separates Element */
.window-vase {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 20px;
    background: #8B4513;
    border-radius: 0 0 8px 8px;
    z-index: 10;
}

.window-vase::after {
    content: '🌸';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8em;
    z-index: 11;
}

/* Schlafzimmer Dekoration */
.bedroom .window {
    background: linear-gradient(135deg, #FFE4E1 0%, #F5DEB3 100%);
}

.bedroom::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 40px;
    background: #8B4513;
    border-radius: 15px 15px 5px 5px;
    top: 380px;
    left: 200px;
    z-index: 1;
}

/* Küche Dekoration */
.kitchen .window {
    background: linear-gradient(135deg, #F0F8FF 0%, #E0F6FF 100%);
}

.kitchen::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 80px;
    background: #C0C0C0;
    border-radius: 8px;
    top: 320px;
    left: 150px;
    z-index: 1;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

/* Badezimmer Dekoration */
.bathroom .window {
    background: linear-gradient(135deg, #E0F6FF 0%, #B0E0E6 100%);
}

.bathroom::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 60px;
    background: #FFF;
    border: 3px solid #C0C0C0;
    border-radius: 5px;
    top: 350px;
    left: 120px;
    z-index: 1;
}

/* Kinderzimmer Dekoration */
.kids_room .window {
    background: linear-gradient(135deg, #FFE4E1 0%, #FFB6C1 100%);
}

.kids_room::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: #FF69B4;
    border-radius: 50%;
    top: 380px;
    left: 180px;
    z-index: 1;
    box-shadow: 10px 0 0 #32CD32, 20px 0 0 #FFD700;
}

/* Garten Dekoration - Bäume und Blumen */
.garden::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 60px;
    background: #228B22;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    top: 250px;
    left: 100px;
    z-index: 1;
}

.garden::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 40px;
    background: #8B4513;
    top: 310px;
    left: 116px;
    z-index: 1;
}

/* Garage Dekoration - Werkbank */
.garage::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 15px;
    background: #8B4513;
    top: 380px;
    left: 50px;
    z-index: 1;
}

.garage::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 40px;
    background: #8B4513;
    top: 340px;
    left: 70px;
    z-index: 1;
    box-shadow: 20px 0 0 #8B4513, 40px 0 0 #8B4513, 60px 0 0 #8B4513;
}

/* Balkon Dekoration - Geländer */
.balcony::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    background: #8B4513;
    bottom: 150px;
    left: 0;
    z-index: 1;
}

.balcony::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 60px;
    background: #8B4513;
    bottom: 150px;
    left: 20px;
    z-index: 1;
    box-shadow: 60px 0 0 #8B4513, 120px 0 0 #8B4513, 180px 0 0 #8B4513, 240px 0 0 #8B4513;
}

/* Raum-Wände */
.room-walls {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.wall {
    position: absolute;
    border: 2px solid #8B4513;
}

.back-wall {
    width: 80%;
    height: 60%;
    background: linear-gradient(45deg, #F5DEB3, #DEB887);
    left: 10%;
    top: 10%;
    transform: translateZ(-200px);
    box-shadow: inset 0 0 50px rgba(0,0,0,0.1);
}

.left-wall {
    width: 200px;
    height: 60%;
    background: linear-gradient(45deg, #E6D3A3, #D4C196);
    left: 10%;
    top: 10%;
    transform-origin: right center;
    transform: rotateY(-80deg);
}

.right-wall {
    width: 200px;
    height: 60%;
    background: linear-gradient(45deg, #E6D3A3, #D4C196);
    right: 10%;
    top: 10%;
    transform-origin: left center;
    transform: rotateY(80deg);
}

.floor {
    width: 80%;
    height: 200px;
    background: repeating-linear-gradient(
        90deg,
        #8B4513 0px,
        #8B4513 2px,
        #A0522D 2px,
        #A0522D 20px
    );
    left: 10%;
    bottom: 0;
    transform-origin: top center;
    transform: rotateX(80deg);
    opacity: 0.8;
}

/* Möbel und Einrichtung */
.furniture-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.furniture {
    position: absolute;
    background: #8B4513;
    border-radius: 5px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

/* Gegenstände */
.items-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.draggable-item {
    position: absolute;
    cursor: grab;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.95);
    border: 3px solid #3498db;
    user-select: none;
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    min-width: 80px;
}

.draggable-item .item-emoji {
    font-size: 2.8em;
    line-height: 1;
    margin-bottom: 2px;
    width: 50px;
    height: 50px;
    background: transparent;
    color: inherit;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-family: 'Segoe UI Emoji', 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Symbol', sans-serif;
}

/* Echte Emojis brauchen keine Farbcodierung mehr! */

.draggable-item .item-label {
    font-size: 0.8em;
    font-weight: bold;
    color: #2c3e50;
    background: rgba(52, 152, 219, 0.1);
    padding: 2px 6px;
    border-radius: 8px;
    white-space: nowrap;
}

.draggable-item:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.draggable-item.dragging {
    cursor: grabbing;
    transform: scale(1.2) rotate(5deg);
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.draggable-item.placed {
    opacity: 0.7;
    cursor: default;
    border-color: #00b894;
    background: rgba(0,184,148,0.2);
}

/* Drop Zones */
.drop-zones {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.drop-zone {
    position: absolute;
    border: 3px dashed rgba(52, 152, 219, 0.6);
    border-radius: 12px;
    transition: all 0.3s;
    background: rgba(116, 185, 255, 0.2);
    cursor: pointer;
    min-height: 40px;
    min-width: 40px;
    z-index: 10;
}

/* Möbel-Labels */
.furniture-labels {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 15;
    pointer-events: none;
}

.furniture-label, .furniture-button {
    position: absolute;
    background: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    border: 3px solid #ecf0f1;
    cursor: pointer !important;
    transition: all 0.3s ease;
    min-width: 120px;
    min-height: 45px;
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: rgba(0, 123, 255, 0.3);
    z-index: 999 !important;
    pointer-events: auto !important;
    display: block !important;
}

.furniture-button {
    border: 3px solid #ecf0f1 !important;
    outline: none;
    font-family: inherit;
}

.furniture-label:hover, .furniture-label:active {
    background: rgba(0, 123, 255, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.furniture-label.wardrobe-label {
    background: rgba(139, 69, 19, 0.9);
}

.furniture-label.desk-label {
    background: rgba(210, 105, 30, 0.9);
}

.furniture-label.bed-label {
    background: rgba(65, 105, 225, 0.9);
}

.furniture-label.cabinet-label {
    background: rgba(105, 105, 105, 0.9);
}

.furniture-label.stove-label {
    background: rgba(47, 79, 79, 0.9);
}

.furniture-label.sink-label {
    background: rgba(192, 192, 192, 0.9);
    color: #2c3e50;
}

.drop-zone.highlight {
    border-color: #00b894;
    background: rgba(0,184,148,0.2);
    transform: scale(1.05);
}

.drop-zone.correct-drop {
    border-color: #00b894;
    background: rgba(0,184,148,0.3);
    animation: successPulse 0.6s ease-out;
}

.drop-zone.wrong-drop {
    border-color: #d63031;
    background: rgba(214,48,49,0.2);
    animation: errorShake 0.6s ease-out;
}

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

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.instructions {
    text-align: center;
    margin-top: 20px;
    color: #636e72;
    font-size: 1.1em;
}

/* Drag Feedback */
.drag-feedback {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1.1em;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1001;
    pointer-events: none;
}

.drag-feedback.show {
    opacity: 1;
}

.drag-feedback.success {
    background: rgba(0,184,148,0.9);
}

.drag-feedback.error {
    background: rgba(214,48,49,0.9);
}

/* Spezielle Möbel-Styles für verschiedene Räume */
.bedroom-furniture .wardrobe {
    width: 120px;
    height: 180px;
    right: 15%;
    bottom: 20%;
    background: linear-gradient(45deg, #8B4513, #A0522D);
}

.bedroom-furniture .bed {
    width: 200px;
    height: 100px;
    left: 15%;
    bottom: 25%;
    background: linear-gradient(45deg, #4169E1, #6495ED);
}

.bedroom-furniture .desk {
    width: 150px;
    height: 80px;
    left: 45%;
    bottom: 15%;
    background: linear-gradient(45deg, #D2691E, #CD853F);
}

.kitchen-furniture .cabinet {
    width: 100px;
    height: 120px;
    right: 20%;
    bottom: 30%;
    background: linear-gradient(45deg, #696969, #778899);
}

.kitchen-furniture .stove {
    width: 80px;
    height: 60px;
    left: 20%;
    bottom: 35%;
    background: linear-gradient(45deg, #2F4F4F, #708090);
}

.kitchen-furniture .sink {
    width: 100px;
    height: 80px;
    left: 35%;
    bottom: 30%;
    background: linear-gradient(45deg, #C0C0C0, #D3D3D3);
}

/* Erfolgsmeldung */
.success-content {
    text-align: center;
}

.success-content h2 {
    color: #00b894;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.success-content p {
    font-size: 1.3em;
    color: #2d3436;
    margin-bottom: 20px;
}

.final-score {
    background: linear-gradient(135deg, #fdcb6e, #e17055);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    font-size: 1.4em;
    font-weight: bold;
}

.success-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.success-buttons button {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 1.1em;
    transition: transform 0.3s;
}

.success-buttons button:hover {
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 600px) {
    .game-container {
        margin: 10px;
        border-radius: 15px;
    }

    .room-buttons {
        flex-direction: column;
        align-items: center;
    }

    .room-btn {
        min-width: 250px;
    }

    .game-header {
        flex-direction: column;
        text-align: center;
    }

    #room-display {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 15px;
    }

    .item {
        font-size: 2.5em;
    }

    .success-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Mobile Click-Bereiche - realistische Möbelteile */
    .mobile-click-area {
        transition: all 0.2s ease;
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
    }

    /* Küchenschrank-Türen */
    .mobile-click-area.kitchen-door {
        background: linear-gradient(135deg, #8B4513, #A0522D) !important;
    }

    .mobile-click-area.kitchen-door:hover {
        background: linear-gradient(135deg, #A0522D, #CD853F) !important;
        transform: scale(1.05);
    }

    /* Gewächshaus-Tür */
    .mobile-click-area.greenhouse-door {
        background: linear-gradient(135deg, #654321, #8B4513) !important;
        border-radius: 8px 8px 3px 3px !important;
    }

    .mobile-click-area.greenhouse-door:hover {
        background: linear-gradient(135deg, #8B4513, #A0522D) !important;
        transform: scale(1.08);
    }

    /* Standard Click-Bereiche */
    .mobile-click-area:not(.kitchen-door):not(.greenhouse-door):hover,
    .mobile-click-area:not(.kitchen-door):not(.greenhouse-door):active {
        background: rgba(0, 255, 0, 1) !important;
        transform: translate(-50%, -50%) scale(1.1);
    }
}
