/* Wortmaumau Game Styles */

/* Farb-Variablen für Karten */
:root {
    /* Größere Karten für bessere Lesbarkeit */
    --card-width: 90px;
    --card-height: 130px;
    --card-radius: 12px;

    /* Premium Farben */
    --card-bg-light: #ffffff;
    --card-bg-dark: #f0f4f8;
    --card-border: #d1dce8;
    --card-shadow: rgba(26, 75, 140, 0.15);
}

/* Toolbar Home Button - Default versteckt (nur Mobile) */
.toolbar-home {
    display: none;
    text-decoration: none;
}

/* Navbar Game Controls - nur auf Mobile in der Navbar sichtbar */
.navbar-game-controls {
    display: none;
}

.nav-game-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: rgba(26, 75, 140, 0.1);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--primary-color);
}

.nav-game-btn:hover {
    background: rgba(26, 75, 140, 0.2);
}

.nav-game-btn .sound-on,
.nav-game-btn .sound-off {
    line-height: 1;
}

/* Game Container */
.game-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

/* Desktop: Sprechblase nach unten (über Spielerhand) */
@media (min-width: 601px) {
    .game-container {
        display: flex;
        flex-direction: column;
    }

    .game-status {
        order: 3; /* Nach Computer und Spielfeld, vor Spielerhand */
    }

    .computer-area {
        order: 1;
    }

    .play-area {
        order: 2;
    }

    .player-area-human {
        order: 4;
    }

    .game-actions {
        order: 5;
    }

    /* Sprechblasen-Pfeil nach unten zeigend (zur Spielerhand) */
    .game-status::after {
        bottom: auto;
        top: -12px;
        border-top: none;
        border-bottom: 12px solid var(--primary-color);
    }

    .game-status::before {
        bottom: auto;
        top: -9px;
        border-top: none;
        border-bottom: 10px solid white;
    }
}

/* Spielstatus - Sprechblase */
.game-status {
    text-align: center;
    padding: 0.9rem 1.5rem;
    background: white;
    border-radius: 20px;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.05);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--primary-color);
    max-width: 380px;
    margin: 0 auto;
    position: relative;
    border: 2px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    /* Besserer Zeilenumbruch */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* Status-Text selbst */
#status-text {
    display: block;
    max-width: 100%;
}

/* Start-Button in Status-Bubble */
.btn-start {
    background: var(--accent-color);
    color: var(--text-color);
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.3);
}

.btn-start:hover {
    background: #e68a00;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.4);
}

.btn-start.hidden {
    display: none;
}

/* Vorherige Status-Nachricht */
.status-prev {
    display: none;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
    margin-bottom: 0.3rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(26, 75, 140, 0.15);
    width: 100%;
    text-align: center;
}

/* Sprechblasen-Pfeil nach unten */
.game-status::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid var(--primary-color);
}

/* Innerer Pfeil (weiß) */
.game-status::before {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
    z-index: 1;
}

/* Toggle-Button für Sprechblase (nur Mobile) */
.status-toggle {
    display: none;
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 0.7rem;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease;
}

/* Collapsed State */
.game-status.collapsed {
    padding: 0.5rem 1rem;
    max-height: 40px;
    overflow: hidden;
}

.game-status.collapsed #status-text,
.game-status.collapsed #status-prev,
.game-status.collapsed .btn-start {
    display: none;
}

.game-status.collapsed .status-toggle {
    position: static;
    transform: rotate(180deg);
}

.game-status.collapsed::after,
.game-status.collapsed::before {
    display: none;
}

/* Spieler-Bereiche */
.player-area {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.player-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    flex-basis: 100%;
    margin-bottom: 0.25rem;
}

.player-label-human {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.player-label-human .player-name {
    color: rgba(255, 255, 255, 0.95);
}

.player-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.player-name {
    font-size: 0.85rem;
}

.card-count {
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.1rem 0.4rem;
    border-radius: 8px;
    margin-left: auto;
}

.player-area.active .player-label {
    background: var(--primary-color);
    color: white;
}

.player-area.active .player-name {
    font-weight: 700;
}

.player-area.active .player-icon {
    transform: scale(1.1);
}

.player-area.active .card-count {
    background: var(--accent-color);
    color: #333;
}

/* Hände */
.hand {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
    min-height: calc(var(--card-height) + 3rem);
    perspective: 1000px;
    border-radius: 12px;
}

.computer-hand {
    background: var(--primary-color);
    border: none;
}

.player-hand {
    background:
        linear-gradient(180deg, rgba(26, 75, 140, 0.95) 0%, rgba(26, 75, 140, 0.85) 100%);
    box-shadow:
        0 4px 20px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.1);
    border: none;
}

/* Karten Basis - Premium Design */
.card {
    width: var(--card-width);
    height: var(--card-height);
    border-radius: var(--card-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    user-select: none;
    /* Premium Schatten für 3D-Effekt */
    box-shadow:
        0 4px 8px var(--card-shadow),
        0 8px 16px rgba(0,0,0,0.08),
        inset 0 2px 0 rgba(255,255,255,0.6),
        inset 0 -1px 0 rgba(0,0,0,0.05);
    transform-style: preserve-3d;
    perspective: 1000px;
    /* Overflow verhindern */
    overflow: hidden;
    padding: 8px;
}

/* Wortkarten - Premium Design mit Textur */
.card.word-card {
    background:
        linear-gradient(145deg, var(--card-bg-light) 0%, var(--card-bg-dark) 100%);
    border: 2px solid var(--card-border);
    /* Innerer Rahmen für Premium-Look */
    position: relative;
}

.card.word-card::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(26, 75, 140, 0.1);
    border-radius: calc(var(--card-radius) - 4px);
    pointer-events: none;
}

/* Spielbare Karte hervorheben */
.card.playable {
    border-color: var(--accent-color);
    box-shadow:
        0 4px 8px var(--card-shadow),
        0 8px 16px rgba(0,0,0,0.08),
        inset 0 2px 0 rgba(255,255,255,0.6),
        0 0 0 3px rgba(245, 166, 35, 0.3);
    animation: playablePulse 2s ease-in-out infinite;
}

@keyframes playablePulse {
    0%, 100% {
        box-shadow:
            0 4px 8px var(--card-shadow),
            0 8px 16px rgba(0,0,0,0.08),
            inset 0 2px 0 rgba(255,255,255,0.6),
            0 0 0 3px rgba(245, 166, 35, 0.2);
    }
    50% {
        box-shadow:
            0 4px 8px var(--card-shadow),
            0 8px 16px rgba(0,0,0,0.08),
            inset 0 2px 0 rgba(255,255,255,0.6),
            0 0 0 5px rgba(245, 166, 35, 0.4);
    }
}

/* Aktionskarten */
.card.action-card {
    background: linear-gradient(145deg, var(--secondary-color), var(--primary-color));
    border: 2px solid var(--primary-color);
}

.card.action-card .card-text {
    color: white;
}

/* +2 Icon - Zwei gestapelte Karten */
.plus2-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 36px;
    height: 28px;
}

.plus2-card {
    width: 18px;
    height: 24px;
    background: var(--accent-color);
    border: 2px solid white;
    border-radius: 3px;
    position: absolute;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.plus2-card:first-child {
    transform: rotate(-8deg) translateX(-4px);
    z-index: 1;
}

.plus2-card:last-child {
    transform: rotate(8deg) translateX(4px);
    z-index: 2;
}

/* Aussetzen Icon - Durchgestrichener Kreis */
.skip-icon {
    width: 32px;
    height: 32px;
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skip-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    transform: rotate(-45deg);
    border-radius: 2px;
}

/* Richtungswechsel Icon - Zwei gelbe Pfeile */
.reverse-icon {
    width: 36px;
    height: 28px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reverse-arrow {
    width: 0;
    height: 0;
    border-style: solid;
    position: absolute;
}

.reverse-arrow:first-child {
    border-width: 10px 14px 10px 0;
    border-color: transparent var(--accent-color) transparent transparent;
    left: 2px;
}

.reverse-arrow:last-child {
    border-width: 10px 0 10px 14px;
    border-color: transparent transparent transparent var(--accent-color);
    right: 2px;
}

/* Joker Icon - Vokale im Halbkreis über Smiley (wie echte Karte) */
.joker-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.joker-vowels-arc {
    display: flex;
    flex-direction: row;
    gap: 3px;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--primary-color);
}

.joker-vowels-arc span {
    text-transform: lowercase !important;
}

.joker-smiley {
    width: 28px;
    height: 28px;
    background: #f5a623;
    border-radius: 50%;
    border: 2px solid #e6a100;
    position: relative;
}

/* Smiley-Gesicht mit CSS */
.joker-smiley::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 5px;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 10px 0 0 var(--primary-color);
}

.joker-smiley::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 6px;
    border: 2px solid var(--primary-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
}

/* Aktions-Badge auf Wortkarten (+2, Aussetzen, Richtung) */
.action-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Icons für Badges - größer und besser sichtbar */
.plus2-icon-small {
    display: flex;
    position: relative;
    width: 18px;
    height: 16px;
}

.plus2-icon-small .plus2-card {
    width: 10px;
    height: 14px;
    background: var(--accent-color);
    border: 1.5px solid white;
    border-radius: 2px;
    position: absolute;
}

.plus2-icon-small .plus2-card:first-child {
    transform: rotate(-10deg) translateX(-2px);
}

.plus2-icon-small .plus2-card:last-child {
    transform: rotate(10deg) translateX(2px);
}

.skip-icon-small {
    width: 20px;
    height: 20px;
    border: 2.5px solid var(--accent-color);
    border-radius: 50%;
    position: relative;
}

.skip-icon-small::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2.5px;
    background: var(--accent-color);
    top: 50%;
    left: 0;
    transform: translateY(-50%) rotate(-45deg);
}

.reverse-icon-small {
    width: 22px;
    height: 16px;
    position: relative;
}

.reverse-icon-small .reverse-arrow {
    width: 0;
    height: 0;
    border-style: solid;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.reverse-icon-small .reverse-arrow:first-child {
    border-width: 7px 8px 7px 0;
    border-color: transparent var(--accent-color) transparent transparent;
    left: 0;
}

.reverse-icon-small .reverse-arrow:last-child {
    border-width: 7px 0 7px 8px;
    border-color: transparent transparent transparent var(--accent-color);
    right: 0;
}

/* Wunschkarte - Joker für Vokalwahl */
.card.wunsch-card {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    border: 2px solid #e6a100;
}

/* Kartentext - GROSS und lesbar für Lernzwecke */
.card-text {
    font-size: 1.1rem;
    text-align: center;
    color: var(--primary-color);
    word-break: keep-all;
    overflow-wrap: normal;
    font-weight: 600;
    line-height: 1.2;
    max-width: 100%;
    hyphens: none;
    letter-spacing: -0.3px;
}

/* Kartensymbol/Emoji - oben zentriert */
.card-symbol {
    font-size: 1.6rem;
    margin-bottom: 4px;
    line-height: 1;
    /* Emoji nicht abschneiden */
    flex-shrink: 0;
}

/* Vokal und Anfangsbuchstabe anzeigen */
.card-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
    padding-top: 4px;
    font-size: 0.65rem;
    color: #888;
    font-weight: 600;
}

.card-vowel-label,
.card-consonant-label {
    background: rgba(26, 75, 140, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Vokal-Badge - zeigt nur den Buchstaben */
.card-vowel {
    display: inline-block;
    font-size: 0.7rem;
    color: #e65100;
    white-space: nowrap;
    margin-top: 4px;
    font-weight: 700;
    background: rgba(230, 81, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 20px;
    border-radius: 4px;
}

/* Besserer Kontrast für Aktionskarten */
.action-card .card-vowel {
    background: rgba(26, 75, 140, 0.9);
    color: white;
}

/* Kartenrückseite - Premium Blau mit Logo-Style */
.card-back {
    background:
        radial-gradient(circle at 30% 30%, var(--secondary-color) 0%, var(--primary-color) 100%);
    border: 3px solid white;
    color: white;
    position: relative;
    overflow: hidden;
    /* Weißer Innenrahmen für Premium-Look */
    box-shadow:
        inset 0 0 0 4px rgba(255,255,255,0.2),
        0 4px 12px rgba(0,0,0,0.25);
}

/* Dezenter Innenrahmen */
.card-back::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: calc(var(--card-radius) - 6px);
}

/* Sprechblase mit W */
.card-back-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    position: relative;
    z-index: 1;
}

.card-back-bubble {
    background: white;
    padding: 4px 8px;
    border-radius: 6px;
    position: relative;
}

/* Sprechblasen-Pfeil */
.card-back-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid white;
}

.card-back-w {
    font-size: 1rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
}

.card-back-maumau {
    font-size: 0.5rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}


/* Klickbare Karten */
.card.clickable {
    cursor: pointer;
}

.card.clickable:hover {
    transform: translateY(-12px) rotateX(5deg) rotateY(-2deg);
    box-shadow:
        0 15px 30px rgba(0,0,0,0.25),
        0 5px 15px rgba(0,0,0,0.15);
}

.card.clickable:active {
    transform: translateY(-6px) scale(0.97);
    transition: transform 0.1s ease;
}

/* Focus States für Tastatur-Navigation */
.card.clickable:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    transform: translateY(-8px);
}

.btn-action:focus-visible,
.color-btn:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.draw-pile:focus-visible .card {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Shake Animation bei Fehler */
.card.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px) rotate(-2deg); }
    40% { transform: translateX(8px) rotate(2deg); }
    60% { transform: translateX(-6px) rotate(-1deg); }
    80% { transform: translateX(6px) rotate(1deg); }
}

/* Computer Karten (kleiner) */
.computer-hand .card {
    width: calc(var(--card-width) * 0.7);
    height: calc(var(--card-height) * 0.7);
}

/* Spielbereich Mitte - Blau passend zum Branding */
.play-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    flex: 1;
    background:
        radial-gradient(ellipse at center, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-radius: 20px;
    box-shadow:
        inset 0 2px 10px rgba(0,0,0,0.2),
        0 4px 15px rgba(0,0,0,0.15);
    margin: 0.5rem;
    position: relative;
}

/* Runden-Zähler */
.round-counter {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
    min-width: 50px;
}

.round-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: white;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.round-number {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.round-number.bump {
    animation: roundBump 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes roundBump {
    0% { transform: scale(1); color: var(--accent-color); }
    50% { transform: scale(1.4); color: white; }
    100% { transform: scale(1); color: var(--accent-color); }
}

.deck-area {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Kartenstapel */
.card-stack {
    position: relative;
    cursor: pointer;
}

/* Nachziehstapel mit gestapeltem Effekt */
.draw-pile {
    position: relative;
}

.draw-pile::before,
.draw-pile::after {
    content: '';
    position: absolute;
    width: var(--card-width);
    height: var(--card-height);
    border-radius: var(--card-radius);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 3px solid var(--primary-color);
}

.draw-pile::before {
    top: 4px;
    left: 4px;
    z-index: -2;
}

.draw-pile::after {
    top: 2px;
    left: 2px;
    z-index: -1;
}

.draw-pile .card {
    box-shadow:
        0 4px 8px rgba(0,0,0,0.3),
        0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.draw-pile:hover .card {
    transform: translateY(-5px) rotateZ(-2deg);
    box-shadow:
        0 8px 16px rgba(0,0,0,0.3),
        0 4px 8px rgba(0,0,0,0.2);
}

.pile-count {
    position: absolute;
    bottom: -1.2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.pile-label {
    position: absolute;
    bottom: -2.8rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Ablagestapel */
.discard-pile {
    position: relative;
}

.discard-pile .card {
    cursor: default;
    box-shadow:
        0 4px 12px rgba(0,0,0,0.25),
        0 2px 4px rgba(0,0,0,0.15);
}

/* Farbwahl Modal */
.color-chooser {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    text-align: center;
    margin-top: 1rem;
}

/* Mobile: Vokalwahl als Overlay */
@media (max-width: 600px) {
    .color-chooser {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        padding: 1.5rem 2rem;
        border-radius: 16px;
        z-index: 100;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        border: 2px solid var(--primary-color);
    }

    .color-chooser::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: -1;
    }

    .color-chooser p {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .vowel-btn {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }
}

.color-chooser p {
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
}

.color-options {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.color-btn {
    width: 50px;
    height: 50px;
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.color-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Aktive Farbe Anzeige */
.active-color {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255,255,255,0.95);
    border-radius: 25px;
    box-shadow:
        0 4px 15px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,1);
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    position: relative;
    z-index: 1;
}

.color-indicator {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.8);
    box-shadow:
        0 2px 8px rgba(0,0,0,0.2),
        inset 0 2px 4px rgba(255,255,255,0.3);
}

/* Vokal-Anzeige statt Farben */
.vowel-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
}

/* Vokal-Buttons */
.vowel-btn {
    width: 50px;
    height: 50px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    background: white;
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.vowel-btn:hover {
    transform: scale(1.1);
    background: var(--primary-color);
    color: white;
}

/* Aktions-Buttons */
.game-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    flex-wrap: wrap;
}

.btn-action {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-action:hover::before {
    left: 100%;
}

.btn-new {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(26, 75, 140, 0.3);
}

.btn-draw {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(26, 75, 140, 0.3);
}

.btn-pass {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    box-shadow: 0 4px 15px rgba(127, 140, 141, 0.3);
}

.btn-mau {
    background: linear-gradient(135deg, var(--accent-color), #ff9500);
    color: #333;
    animation: pulse 1.5s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(245, 166, 35, 0.5);
}

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

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Start-Modal */
.game-start-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 75, 140, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.game-start-modal.hidden {
    display: none;
}

.game-start-modal .modal-content {
    max-width: 450px;
}

.start-rules {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
    text-align: left;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(26, 75, 140, 0.08);
    padding: 0.75rem 1rem;
    border-radius: 10px;
}

.rule-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.rule-item span:last-child {
    font-size: 0.95rem;
    color: #444;
}

/* Schwierigkeitsauswahl */
.difficulty-selector {
    margin: 1.5rem 0 1rem;
    text-align: center;
}

.difficulty-selector label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.difficulty-options {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.difficulty-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.difficulty-btn:hover {
    background: rgba(26, 75, 140, 0.1);
}

.difficulty-btn.active {
    background: var(--primary-color);
    color: white;
}

.btn-start-game {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* ==========================================
   TUTORIAL STYLES
   ========================================== */

.tutorial-content {
    max-width: 380px !important;
    text-align: center;
}

.tutorial-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
}

.tutorial-smiley {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    vertical-align: middle;
    margin-right: 0.3rem;
    margin-top: -3px;
}

.tutorial-intro {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.tutorial-tip {
    background: linear-gradient(135deg, #fff8e1, #fff3c4);
    border: 1px solid #ffd54f;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    color: #5d4037;
    margin-bottom: 1rem;
}

.rule-icon {
    margin-right: 0.25rem;
}

/* Match-Regeln */
.tutorial-match-rules {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.match-rule {
    background: rgba(26, 75, 140, 0.04);
    padding: 1rem;
    border-radius: 12px;
}

.rule-header {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.75rem;
}

.rule-header strong {
    color: var(--primary-color);
}

.vowel-hint {
    color: #e65100;
    font-weight: 600;
    font-size: 0.9rem;
}

.match-example {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.word-card {
    background: white;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    border: 2px solid var(--card-border);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.word-card.match {
    border-color: #4caf50;
    background: linear-gradient(180deg, #fff, #f0fff0);
}

/* Hervorgehobene Buchstaben */
.highlight-letter {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2em;
}

.highlight-vowel {
    color: #e53935;
    font-weight: 700;
    font-size: 1.2em;
}

.match-arrow {
    color: #4caf50;
    font-weight: bold;
    font-size: 1.5rem;
}

/* Mobile: Tutorial kompakt - alles ohne Scrollen sichtbar */
@media (max-width: 600px) {
    .tutorial-content {
        padding: 0.875rem !important;
        max-width: 300px !important;
    }

    .tutorial-title {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .tutorial-smiley {
        width: 22px !important;
        height: 22px !important;
        max-width: 22px !important;
        margin-right: 0.2rem;
    }

    .tutorial-intro {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }

    .tutorial-match-rules {
        gap: 0.4rem;
        margin-bottom: 0.4rem;
    }

    .match-rule {
        padding: 0.4rem 0.5rem;
    }

    .rule-header {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }

    .rule-icon {
        font-size: 0.85rem;
    }

    .vowel-hint {
        font-size: 0.65rem;
    }

    .match-example {
        gap: 0.35rem;
    }

    .word-card {
        padding: 0.25rem 0.4rem;
        font-size: 0.8rem;
        border-radius: 6px;
    }

    .highlight-letter,
    .highlight-vowel {
        font-size: 1.1em;
    }

    .match-arrow {
        font-size: 1rem;
    }

    .tutorial-tip {
        padding: 0.35rem 0.5rem;
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }

    .difficulty-selector {
        margin: 0.5rem 0 0.4rem;
    }

    .difficulty-btn {
        padding: 0.35rem 0.65rem;
        font-size: 0.75rem;
    }

    .btn-start-game {
        padding: 0.6rem;
        font-size: 0.9rem;
        margin-top: 0.4rem;
    }
}

/* Spielende Modal - semi-transparent für Flow */
.game-over-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 75, 140, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    overflow: hidden;
    padding: 1rem;
}

/* Konfetti-Container */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1001;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 12px;
    height: 12px;
    top: -20px;
    animation: confettiFall 3s linear forwards;
}

.confetti:nth-child(odd) {
    border-radius: 50%;
}

.confetti:nth-child(even) {
    border-radius: 2px;
}

/* Konfetti-Farben */
.confetti:nth-child(5n+1) { background: #ff6b6b; }
.confetti:nth-child(5n+2) { background: #ffd93d; }
.confetti:nth-child(5n+3) { background: #6bcb77; }
.confetti:nth-child(5n+4) { background: #4d96ff; }
.confetti:nth-child(5n+5) { background: #ff9f1c; }

/* Unterschiedliche Startpositionen */
.confetti:nth-child(1) { left: 5%; animation-delay: 0s; }
.confetti:nth-child(2) { left: 15%; animation-delay: 0.1s; }
.confetti:nth-child(3) { left: 25%; animation-delay: 0.2s; }
.confetti:nth-child(4) { left: 35%; animation-delay: 0.15s; }
.confetti:nth-child(5) { left: 45%; animation-delay: 0.05s; }
.confetti:nth-child(6) { left: 55%; animation-delay: 0.25s; }
.confetti:nth-child(7) { left: 65%; animation-delay: 0.1s; }
.confetti:nth-child(8) { left: 75%; animation-delay: 0.2s; }
.confetti:nth-child(9) { left: 85%; animation-delay: 0.15s; }
.confetti:nth-child(10) { left: 95%; animation-delay: 0.08s; }
.confetti:nth-child(11) { left: 10%; animation-delay: 0.3s; }
.confetti:nth-child(12) { left: 20%; animation-delay: 0.35s; }
.confetti:nth-child(13) { left: 30%; animation-delay: 0.4s; }
.confetti:nth-child(14) { left: 40%; animation-delay: 0.32s; }
.confetti:nth-child(15) { left: 50%; animation-delay: 0.28s; }
.confetti:nth-child(16) { left: 60%; animation-delay: 0.38s; }
.confetti:nth-child(17) { left: 70%; animation-delay: 0.33s; }
.confetti:nth-child(18) { left: 80%; animation-delay: 0.42s; }
.confetti:nth-child(19) { left: 90%; animation-delay: 0.36s; }
.confetti:nth-child(20) { left: 3%; animation-delay: 0.45s; }

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    25% {
        transform: translateY(25vh) rotate(180deg) scale(1.1) translateX(20px);
    }
    50% {
        transform: translateY(50vh) rotate(360deg) scale(0.9) translateX(-15px);
    }
    75% {
        transform: translateY(75vh) rotate(540deg) scale(1) translateX(10px);
    }
    100% {
        transform: translateY(110vh) rotate(720deg) scale(0.8);
        opacity: 0;
    }
}

.modal-content {
    background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 25px 50px rgba(0,0,0,0.4),
        0 10px 25px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,1);
    border: 2px solid rgba(255,255,255,0.8);
}

@keyframes modalPop {
    from {
        transform: scale(0.5) translateY(50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.modal-content p {
    color: #555;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Session-Stats im Endmodal */
.session-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 1rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(26, 75, 140, 0.08) 0%, rgba(26, 75, 140, 0.15) 100%);
    border-radius: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 20px;
    font-size: 0.95rem;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-item strong {
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* Statistik-Zeile im Modal */
.stats-line {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Bonus Unlocked - Blitz-Lesen Reward */
.bonus-unlocked {
    margin: 1.5rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.1) 0%, rgba(245, 166, 35, 0.05) 100%);
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    animation: bonusPulse 2s ease-in-out;
}

@keyframes bonusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0); }
    50% { box-shadow: 0 0 20px 5px rgba(245, 166, 35, 0.3); }
}

.bonus-badge {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    text-align: center;
    letter-spacing: 0.5px;
}

.bonus-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 100%);
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bonus-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.bonus-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.bonus-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
}

.bonus-text strong {
    color: #f5a623;
    font-size: 1rem;
}

.bonus-text small {
    color: #aaa;
    font-size: 0.8rem;
    line-height: 1.3;
}

.bonus-arrow {
    color: #f5a623;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* CTA Hint nach Spielende */
.cta-hint {
    margin-top: 1.5rem;
    text-align: center;
}

.cta-hint p {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.cta-hint .btn-primary {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

/* Text-Button (dezent) */
.btn-text {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.75rem;
    margin-top: 1rem;
    text-decoration: underline;
    transition: color 0.2s;
}

.btn-text:hover {
    color: var(--primary-color);
}

/* Modal Actions Container */
.modal-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.modal-actions .btn-text {
    margin-top: 0;
}

/* Spielregeln - Minimierbar auf Desktop */
.game-instructions {
    max-width: 600px;
    margin: 2rem auto;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.instructions-toggle {
    display: none;
}

.instructions-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    padding-top: 1.5rem;
}

.instructions-content ul {
    list-style: none;
    padding: 0 2rem 1.5rem;
    margin: 0;
}

.instructions-content li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.instructions-content li:last-child {
    border-bottom: none;
}

/* Desktop: Floating minimierbare Box */
@media (min-width: 601px) {
    .game-page .game-instructions {
        display: block;
    }

    .game-instructions {
        position: fixed;
        bottom: 1rem;
        right: 1rem;
        margin: 0;
        max-width: 320px;
        z-index: 90;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    .instructions-toggle {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        padding: 0.75rem 1rem;
        background: var(--primary-color);
        color: white;
        border: none;
        cursor: pointer;
        font-size: 0.95rem;
        font-weight: 600;
        transition: background 0.2s;
    }

    .instructions-toggle:hover {
        background: var(--secondary-color);
    }

    .toggle-icon {
        font-size: 1.1rem;
    }

    .toggle-text {
        flex: 1;
        text-align: left;
    }

    .toggle-arrow {
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }

    .game-instructions.collapsed .instructions-content {
        display: none;
    }

    .game-instructions.collapsed .toggle-arrow {
        transform: rotate(-90deg);
    }

    .game-instructions:not(.collapsed) .instructions-content {
        display: block;
    }

    .instructions-content h2 {
        font-size: 1.1rem;
        padding-top: 1rem;
        margin-bottom: 0.75rem;
    }

    .instructions-content ul {
        padding: 0 1rem 1rem;
        font-size: 0.9rem;
    }

    .instructions-content li {
        padding: 0.4rem 0;
    }
}

/* Hidden Utility */
.hidden {
    display: none !important;
}

/* PWA Install Banner */
.install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem;
    padding-bottom: calc(env(safe-area-inset-bottom, 0.5rem) + 1rem);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 500;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.install-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.install-icon {
    font-size: 1.5rem;
}

.install-text {
    font-weight: 600;
    font-size: 0.95rem;
}

.install-btn {
    background: var(--accent-color);
    color: #333;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.install-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.4);
}

.install-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.install-close:hover {
    color: white;
}

@media (max-width: 600px) {
    .install-banner {
        flex-wrap: wrap;
        position: relative;
    }

    .install-content {
        flex: 1 1 100%;
    }

    .install-btn {
        flex: 1;
    }

    .install-close {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
    }
}

/* Toolbar (Sound, Settings) - Desktop oben rechts im Spielfeld */
.game-toolbar {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 50;
}

.toolbar-btn {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: white;
}

.toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.toolbar-btn:active {
    transform: scale(0.95);
}

.toolbar-btn .sound-on,
.toolbar-btn .sound-off {
    line-height: 1;
}

/* Keyboard Shortcut Hints - eleganter */
kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-family: inherit;
    font-weight: 600;
    margin-left: 0.5rem;
    min-width: 1.5rem;
    text-transform: uppercase;
}

.btn-action kbd {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Button Icons */
.btn-icon {
    margin-right: 0.4rem;
    font-size: 1.1rem;
}

/* Hint Highlight Animation */
.card.hint-highlight {
    animation: hintPulse 0.5s ease-in-out 3;
    box-shadow:
        0 0 0 4px rgba(72, 219, 251, 0.6),
        0 0 20px rgba(72, 219, 251, 0.4) !important;
    border-color: #48dbfb !important;
}

@keyframes hintPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 4px rgba(72, 219, 251, 0.6), 0 0 20px rgba(72, 219, 251, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 6px rgba(72, 219, 251, 0.8), 0 0 30px rgba(72, 219, 251, 0.6);
    }
}

/* Hint Button Style */
.btn-hint {
    background: linear-gradient(135deg, #48dbfb, #0abde3);
    color: white;
    box-shadow: 0 4px 15px rgba(72, 219, 251, 0.3);
}

/* Desktop: Schönere Aktions-Buttons */
@media (min-width: 601px) {
    .game-actions {
        background: linear-gradient(180deg, rgba(26, 75, 140, 0.03) 0%, rgba(26, 75, 140, 0.08) 100%);
        border-radius: 16px;
        padding: 1rem 1.5rem;
        max-width: 500px;
        margin: 0 auto;
        border: 1px solid rgba(26, 75, 140, 0.1);
    }

    .btn-action {
        border-radius: 12px;
        font-size: 1rem;
        padding: 0.85rem 1.5rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.3rem;
    }

    .btn-action .btn-icon {
        font-size: 1.2rem;
    }

    .btn-draw {
        background: linear-gradient(135deg, #3498db, #2980b9);
    }

    .btn-hint {
        background: linear-gradient(135deg, #1abc9c, #16a085);
    }

    .btn-pass {
        background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    }

    /* Toolbar im Spielfeld */
    .play-area {
        position: relative;
    }

    .game-toolbar {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
    }
}

/* Noscript Fallback */
.noscript-message {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin: 2rem auto;
    max-width: 400px;
}

.noscript-message p {
    margin-bottom: 0.5rem;
}

.noscript-message a {
    color: var(--primary-color);
}

/* Karten Animation */
.card.dealt {
    animation: dealCard 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

@keyframes dealCard {
    0% {
        opacity: 0;
        transform: translateY(-40px) scale(0.6) rotateX(25deg);
    }
    60% {
        opacity: 1;
        transform: translateY(5px) scale(1.02) rotateX(-3deg);
    }
    100% {
        transform: translateY(0) scale(1) rotateX(0);
    }
}

/* Karte wird auf Ablagestapel gelegt - dynamisch mit Flip */
.card.played {
    animation: playCard 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes playCard {
    0% {
        transform: scale(0.5) translateY(60px) rotateY(0deg);
        opacity: 0.3;
    }
    40% {
        transform: scale(0.9) translateY(10px) rotateY(180deg);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.15) translateY(-8px) rotateY(360deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) translateY(0) rotateY(360deg);
    }
}

/* Karten-Flip Animation (von Rückseite zur Vorderseite) */
.card.flip {
    animation: cardFlip 0.6s ease-in-out;
}

@keyframes cardFlip {
    0% {
        transform: perspective(600px) rotateY(0deg);
    }
    50% {
        transform: perspective(600px) rotateY(90deg) scale(1.1);
    }
    100% {
        transform: perspective(600px) rotateY(0deg);
    }
}

/* Karte gleitet weg (wenn gespielt) */
.card.slide-out {
    animation: slideOut 0.3s ease-out forwards;
}

@keyframes slideOut {
    to {
        transform: translateX(100px) translateY(-50px) rotate(15deg) scale(0.8);
        opacity: 0;
    }
}

/* Karte wurde gezogen - fliegt in Hand mit Flip */
.card.drawn {
    animation: drawCard 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

@keyframes drawCard {
    0% {
        opacity: 0;
        transform: translateX(-80px) translateY(-60px) scale(0.4) rotate(-20deg);
    }
    50% {
        opacity: 1;
        transform: translateX(-20px) translateY(-10px) scale(1.1) rotate(5deg);
    }
    75% {
        transform: translateX(5px) translateY(5px) scale(0.95) rotate(-2deg);
    }
    100% {
        transform: translateX(0) translateY(0) scale(1) rotate(0);
    }
}

/* Karte verlässt Hand */
.card.leaving {
    animation: leaveHand 0.25s ease-out forwards;
    pointer-events: none;
}

@keyframes leaveHand {
    to {
        opacity: 0;
        transform: translateY(-30px) scale(0.8);
    }
}

/* Computer spielt Karte - kommt von oben mit Flip */
.card.computer-played {
    animation: computerPlay 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes computerPlay {
    0% {
        transform: scale(0.4) translateY(-100px) rotateY(180deg);
        opacity: 0;
    }
    40% {
        transform: scale(0.8) translateY(-20px) rotateY(360deg);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.2) translateY(8px) rotateY(360deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) translateY(0) rotateY(360deg);
    }
}

/* Mau-Button Celebration Animation */
.btn-mau.celebrating {
    animation: mauCelebrate 0.6s ease-in-out;
}

@keyframes mauCelebrate {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.2) rotate(-5deg);
    }
    50% {
        transform: scale(1.3) rotate(5deg);
        box-shadow: 0 0 30px rgba(245, 166, 35, 0.8);
    }
    75% {
        transform: scale(1.15) rotate(-3deg);
    }
}

/* Letzte Karte leuchtet */
.player-hand[data-cards="1"] .card {
    animation: lastCardGlow 1.5s ease-in-out infinite;
}

@keyframes lastCardGlow {
    0%, 100% {
        box-shadow:
            0 4px 8px var(--card-shadow),
            0 0 15px rgba(245, 166, 35, 0.3);
    }
    50% {
        box-shadow:
            0 4px 8px var(--card-shadow),
            0 0 25px rgba(245, 166, 35, 0.6),
            0 0 40px rgba(245, 166, 35, 0.3);
    }
}

/* Nachziehstapel pulsiert wenn Karte gezogen wird */
.draw-pile.drawing .card {
    animation: deckPulse 0.3s ease;
}

@keyframes deckPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.95) translateY(2px); }
}

/* Responsive Design */
@media (max-width: 600px) {
    :root {
        /* Große Karten auf Mobile für beste Lesbarkeit */
        --card-width: 80px;
        --card-height: 115px;
        --card-radius: 10px;
    }

    /* Fullscreen App-Feeling */
    html, body {
        height: 100%;
    }

    body {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height für Mobile */
        background: var(--primary-color);
    }

    /* Footer auf Mobile ausblenden */
    .game-page footer {
        display: none;
    }

    /* Navbar ausblenden wenn Spiel aktiv */
    .game-page.game-active header {
        display: none;
    }

    /* Home-Button im Toolbar zeigen wenn Navbar versteckt */
    .game-active .toolbar-home {
        display: flex;
    }

    /* Navbar Game Controls auf Mobile anzeigen */
    .navbar-game-controls {
        display: flex;
        gap: 0.5rem;
        margin-left: auto;
        margin-right: 0.5rem;
    }

    /* Spielregeln auf Mobile ausblenden */
    .game-page .game-instructions {
        display: none;
    }

    main {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .game-container {
        padding: 0.5rem;
        gap: 0.3rem;
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0; /* Wichtig für Flexbox */
        padding-bottom: env(safe-area-inset-bottom, 0.5rem);
    }

    /* Sprechblase über Spielerhand verschieben */
    .game-status {
        order: 3;
        margin-top: 0.3rem;
        margin-bottom: 0;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        line-height: 1.35;
        flex-shrink: 0;
        border-radius: 15px;
        max-width: 320px;
    }

    .computer-area {
        order: 1;
    }

    .play-area {
        order: 2;
    }

    .player-area-human {
        order: 4;
    }

    .game-actions {
        order: 5;
    }

    /* Sprechblasen-Pfeil nach unten (zeigt auf Spielerhand) */
    .game-status::after {
        bottom: auto;
        top: -12px;
        border-top: none;
        border-bottom: 12px solid var(--primary-color);
    }

    .game-status::before {
        bottom: auto;
        top: -9px;
        border-top: none;
        border-bottom: 10px solid white;
    }

    /* game-status Styling bereits oben per order definiert */

    /* Spieler-Bereiche kompakt mit Kontrast */
    .player-area {
        flex-shrink: 0;
    }

    .player-label {
        padding: 0.2rem 0.5rem;
        font-size: 0.8rem;
    }

    /* Computer-Bereich - dunkler mit subtiler Tiefe */
    .computer-hand {
        background: rgba(0, 0, 0, 0.25);
        border-radius: 12px;
        gap: 0.2rem;
        padding: 0.4rem;
        min-height: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(0, 0, 0, 0.2);
        margin-bottom: 0.3rem;
    }

    /* Spielerhand - klar als "dein" Bereich erkennbar */
    .player-hand {
        background: linear-gradient(180deg, rgba(30, 80, 150, 0.95) 0%, rgba(22, 65, 120, 1) 100%);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 -2px 10px rgba(0, 0, 0, 0.2);
        margin-top: 0.3rem;
    }

    .hand {
        gap: 0.2rem;
        padding: 0.3rem;
        min-height: auto;
    }

    .computer-hand .card {
        width: calc(var(--card-width) * 0.55);
        height: calc(var(--card-height) * 0.55);
    }

    /* Kartenrückseite kleiner auf Mobile */
    .computer-hand .card-back-maumau {
        font-size: 0.35rem;
        letter-spacing: 0;
    }

    .computer-hand .card-back-w {
        font-size: 0.6rem;
    }

    .computer-hand .card-back-bubble {
        width: 16px;
        height: 14px;
    }

    .card-text {
        font-size: 0.95rem;
        letter-spacing: -0.2px;
        font-weight: 700;
    }

    .card-symbol {
        font-size: 1.6rem;
    }

    .card-vowel {
        font-size: 0.6rem;
        padding: 2px 8px;
    }

    /* Spielerhand bekommt maximalen Platz */
    .player-hand {
        flex: 1;
        min-height: 140px;
        padding: 0.75rem;
        gap: 0.4rem;
    }

    /* Spielfeld in der Mitte - Tischgefühl */
    .play-area {
        flex: 0 0 auto;
        padding: 0.75rem;
        min-height: 180px;
        max-height: 200px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin: 0.4rem 0.25rem;
        border-radius: 16px;
        background:
            radial-gradient(ellipse at center, rgba(40, 100, 180, 0.9) 0%, rgba(20, 60, 120, 1) 100%);
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow:
            inset 0 0 30px rgba(255, 255, 255, 0.03),
            inset 0 2px 0 rgba(255, 255, 255, 0.05),
            0 4px 20px rgba(0, 0, 0, 0.35);
    }

    .deck-area {
        gap: 1.5rem;
    }

    /* Stapelkarten in der Mitte - größer für gute Sichtbarkeit */
    .play-area .card {
        width: 86px;
        height: 123px;
    }

    /* Stapel-Pseudo-Elemente auf Mobile anpassen */
    .draw-pile::before,
    .draw-pile::after {
        width: 86px;
        height: 123px;
    }

    /* Aktions-Badges (Sonderkarten-Icons) größer */
    .action-badge {
        width: 28px;
        height: 28px;
        top: 3px;
        right: 3px;
    }

    .plus2-icon-small {
        width: 18px;
        height: 14px;
    }

    .plus2-icon-small .plus2-card {
        width: 10px;
        height: 12px;
    }

    .skip-icon-small {
        width: 18px;
        height: 18px;
        border-width: 2.5px;
    }

    .reverse-icon-small {
        width: 20px;
        height: 14px;
    }

    /* Karten-Text auf Mobile - gut lesbar halten */
    .card {
        padding: 5px;
    }

    /* Fixed Bottom Action Bar */
    .game-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        display: flex;
        gap: 0.5rem;
        padding: 0.75rem;
        padding-bottom: calc(env(safe-area-inset-bottom, 0.5rem) + 0.75rem);
        background: linear-gradient(180deg, rgba(15, 50, 100, 0.98) 0%, rgba(10, 35, 70, 1) 100%);
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    /* Touch-freundliche Buttons */
    .btn-action {
        flex: 1;
        padding: 1rem 0.75rem;
        font-size: 1rem;
        font-weight: 700;
        min-height: 54px;
        border-radius: 12px;
        touch-action: manipulation;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.3rem;
    }

    /* Hint-Button kompakter */
    .btn-hint {
        flex: 0 0 auto;
        padding: 1rem;
        min-width: 54px;
    }

    /* Platz für Fixed Action Bar */
    .game-container {
        padding-bottom: 80px;
    }

    .color-btn {
        width: 48px;
        height: 48px;
        min-height: 44px;
    }

    /* Karten Touch-Optimierung - Größerer unsichtbarer Touch-Bereich */
    .card {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        position: relative;
    }

    /* Unsichtbarer Touch-Bereich um Karten */
    .player-hand .card.clickable::after {
        content: '';
        position: absolute;
        top: -8px;
        left: -6px;
        right: -6px;
        bottom: -8px;
        z-index: 1;
    }

    .card.clickable:active {
        transform: scale(0.95);
    }

    /* Größere Karten bei weniger Karten in der Hand */
    .player-hand[data-cards="1"] .card,
    .player-hand[data-cards="2"] .card,
    .player-hand[data-cards="3"] .card {
        width: 95px;
        height: 136px;
    }

    .player-hand[data-cards="4"] .card,
    .player-hand[data-cards="5"] .card {
        width: 88px;
        height: 126px;
    }

    .player-icon {
        font-size: 1rem;
    }

    /* Keyboard-Shortcuts auf Mobile ausblenden */
    kbd {
        display: none;
    }

    /* Toolbar auf Mobile: unten links in der Action-Bar */
    .game-toolbar {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: auto;
        flex-direction: row;
        gap: 0.25rem;
        padding: 0.6rem;
        padding-bottom: calc(env(safe-area-inset-bottom, 0.5rem) + 0.6rem);
        z-index: 101;
        background: transparent;
    }

    .toolbar-btn {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 8px;
    }

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

    /* Hint-Button kompakter auf Mobile */
    .btn-hint {
        flex: 0 0 auto;
        padding: 0.6rem 0.8rem;
    }

    .btn-icon {
        display: none;
    }

    /* Toggle-Button für Sprechblase anzeigen */
    .status-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ========================================
   Rotate Device Overlay
   ======================================== */
.rotate-device-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.rotate-content {
    padding: 2rem;
}

.rotate-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: rotate-phone 2s ease-in-out infinite;
}

@keyframes rotate-phone {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-20deg); }
    75% { transform: rotate(20deg); }
}

.rotate-content p {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.rotate-hint {
    font-size: 1rem;
    opacity: 0.8;
}

/* Landscape-Modus auf kleinen Smartphones - Overlay zeigen */
@media (max-height: 500px) and (orientation: landscape) {
    .rotate-device-overlay {
        display: flex;
    }
}

/* Landscape-Modus auf Smartphones */
@media (max-width: 900px) and (orientation: landscape) {
    /* Navbar ausblenden in Landscape */
    .game-page header {
        display: none;
    }

    /* Home-Button im Toolbar zeigen in Landscape */
    .toolbar-home {
        display: flex;
    }

    /* Spielregeln in Landscape ausblenden */
    .game-page .game-instructions {
        display: none;
    }

    .game-container {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.25rem;
        padding: 0.25rem;
        padding-left: env(safe-area-inset-left, 0.25rem);
        padding-right: env(safe-area-inset-right, 0.25rem);
        height: 100vh;
        height: 100dvh;
        padding-bottom: 50px; /* Platz für Action Bar */
    }

    /* Sprechblase als Toast oben */
    .game-status {
        position: fixed;
        top: 0.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        max-width: 60%;
        margin: 0;
        padding: 0.35rem 1rem;
        font-size: 0.75rem;
        z-index: 150;
        border-radius: 20px;
    }

    .game-status::after,
    .game-status::before {
        display: none;
    }

    .status-prev,
    .status-toggle {
        display: none !important;
    }

    /* Computer links - vertikale Karten */
    .computer-area {
        order: 1;
        flex: 0 0 auto;
        width: 55px;
        height: 100%;
    }

    .computer-hand {
        flex-direction: column;
        min-height: auto;
        height: 100%;
        padding: 0.25rem;
        gap: 0.15rem;
        overflow-y: auto;
    }

    .computer-hand .card {
        width: 38px;
        height: 54px;
    }

    .computer-hand .player-label {
        writing-mode: vertical-rl;
        text-orientation: mixed;
        transform: rotate(180deg);
        padding: 0.3rem 0.15rem;
        font-size: 0.7rem;
    }

    .computer-hand .card-count {
        display: none;
    }

    /* Spielfeld Mitte */
    .play-area {
        order: 2;
        flex: 1;
        min-height: auto;
        max-height: none;
        margin: 0;
        padding: 0.5rem;
    }

    .deck-area {
        gap: 1.5rem;
    }

    .play-area .card {
        width: 60px;
        height: 86px;
    }

    .draw-pile::before,
    .draw-pile::after {
        width: 60px;
        height: 86px;
    }

    .round-counter {
        top: 0.25rem;
        left: 0.25rem;
        padding: 0.25rem 0.4rem;
    }

    .round-label {
        font-size: 0.6rem;
    }

    .round-number {
        font-size: 1.2rem;
    }

    /* Spielerhand rechts - vertikale Karten */
    .player-area-human {
        order: 3;
        flex: 0 0 auto;
        width: auto;
        max-width: 45%;
        height: 100%;
    }

    .player-hand {
        min-height: auto;
        height: 100%;
        padding: 0.25rem;
        gap: 0.2rem;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: center;
        align-content: flex-start;
        overflow-x: auto;
    }

    .player-hand .card {
        width: 52px;
        height: 75px;
    }

    .player-hand .player-label {
        writing-mode: vertical-rl;
        text-orientation: mixed;
        transform: rotate(180deg);
        padding: 0.3rem 0.15rem;
        font-size: 0.7rem;
    }

    .player-hand .card-count {
        display: none;
    }

    .card-text {
        font-size: 0.6rem;
    }

    .card-symbol {
        font-size: 0.9rem;
    }

    .card-vowel {
        font-size: 0.5rem;
        padding: 1px 4px;
    }

    /* Fixed Action Bar unten */
    .game-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 0.3rem;
        padding-left: env(safe-area-inset-left, 0.3rem);
        padding-right: env(safe-area-inset-right, 0.3rem);
        padding-bottom: env(safe-area-inset-bottom, 0.3rem);
        gap: 0.3rem;
        background: rgba(10, 35, 70, 0.98);
    }

    .game-actions .btn-action {
        padding: 0.4rem 0.8rem;
        min-height: 32px;
        font-size: 0.8rem;
    }

    /* Toolbar oben rechts */
    .game-toolbar {
        top: 0.5rem;
        right: env(safe-area-inset-right, 0.5rem);
    }

    .toolbar-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

/* Tablet Landscape (iPad quer, große Tablets quer) - NUR bis 1200px */
@media (min-width: 901px) and (max-width: 1200px) and (orientation: landscape) {
    :root {
        --card-width: 95px;
        --card-height: 135px;
    }

    /* Footer ausblenden */
    .game-page footer {
        display: none;
    }

    body {
        background: var(--primary-color);
    }

    /* Horizontales 3-Spalten Layout - Status unten rechts beim Spieler */
    .game-container {
        max-width: 100%;
        padding: 0.75rem 1.5rem;
        gap: 0.75rem;
        min-height: calc(100vh - 60px);
        height: calc(100vh - 60px);
        display: -webkit-grid; /* Safari */
        display: grid;
        grid-template-columns: minmax(180px, 1fr) minmax(350px, 2fr) minmax(220px, 1.5fr);
        grid-template-rows: minmax(0, 1fr) auto auto;
        grid-template-areas:
            "computer play player"
            "computer play status"
            "actions actions actions";
        align-items: stretch;
    }

    .game-status {
        grid-area: status;
        margin: 0;
        max-width: 100%;
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
        align-self: start;
    }

    /* Status-Pfeil nach oben zeigend (zur Spielerhand) */
    .game-status::after {
        bottom: auto;
        top: -12px;
        border-top: none;
        border-bottom: 12px solid var(--primary-color);
    }

    .game-status::before {
        bottom: auto;
        top: -9px;
        border-top: none;
        border-bottom: 10px solid white;
    }

    /* Computer links */
    .computer-area {
        grid-area: computer;
    }

    .computer-hand {
        flex-direction: column;
        height: 100%;
        min-height: auto;
        padding: 0.75rem;
        gap: 0.5rem;
        justify-content: flex-start;
    }

    .computer-hand .card {
        width: 65px;
        height: 92px;
    }

    .computer-hand .player-label {
        flex-direction: row;
        justify-content: flex-start;
    }

    /* Spielfeld Mitte */
    .play-area {
        grid-area: play;
        padding: 1.5rem;
        margin: 0;
        display: flex;
        display: -webkit-flex; /* Safari */
        flex-direction: column;
        -webkit-flex-direction: column;
        align-items: center;
        -webkit-align-items: center;
        justify-content: center;
        -webkit-justify-content: center;
    }

    .deck-area {
        gap: 3rem;
    }

    .play-area .card {
        width: 95px;
        height: 135px;
    }

    .draw-pile::before,
    .draw-pile::after {
        width: 95px;
        height: 135px;
    }

    /* Runden-Zähler */
    .round-counter {
        top: 0.75rem;
        left: 0.75rem;
    }

    /* Spielerhand rechts */
    .player-area-human {
        grid-area: player;
    }

    .player-hand {
        flex-direction: column;
        height: 100%;
        min-height: auto;
        padding: 0.75rem;
        gap: 0.5rem;
        justify-content: flex-start;
    }

    .player-hand .card {
        width: 80px;
        height: 114px;
    }

    .player-hand .player-label {
        flex-direction: row;
    }

    .card-text {
        font-size: 0.85rem;
    }

    .card-symbol {
        font-size: 1.5rem;
    }

    /* Aktionsbuttons unten */
    .game-actions {
        grid-area: actions;
        padding: 0.75rem 2rem;
        gap: 1rem;
    }

    .game-actions .btn-action {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Reduzierte Bewegung für Accessibility */
@media (prefers-reduced-motion: reduce) {
    .card,
    .btn-action,
    .color-btn {
        transition: none;
    }

    .card.dealt,
    .card.played,
    .card.drawn,
    .card.leaving,
    .card.computer-played,
    .modal-content,
    .card.shake,
    .card.playable,
    .draw-pile.drawing .card,
    .round-number.bump {
        animation: none;
    }

    .btn-mau {
        animation: none;
    }

    /* Spielbare Karten nur mit statischem Rahmen markieren */
    .card.playable {
        border-color: var(--accent-color);
        border-width: 3px;
    }
}

/* Tablet (iPad Portrait & kleine Tablets) */
@media (min-width: 601px) and (max-width: 1023px) {
    :root {
        --card-width: 95px;
        --card-height: 135px;
        --card-radius: 12px;
    }

    /* Footer auf Tablets im Spielmodus ausblenden */
    .game-page footer {
        display: none;
    }

    /* Fullscreen-Feeling wie auf Mobile */
    body {
        background: var(--primary-color);
    }

    main {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .game-container {
        max-width: 100%;
        padding: 1rem 2rem;
        gap: 1rem;
        min-height: calc(100vh - 70px);
    }

    .game-status {
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
    }

    /* Größere Spieler-Labels */
    .player-label {
        padding: 0.75rem 1rem;
        font-size: 1.1rem;
    }

    .player-icon {
        font-size: 1.5rem;
    }

    .card-count {
        font-size: 1rem;
    }

    /* Karten mit mehr Abstand */
    .hand {
        gap: 1rem;
        padding: 1.25rem;
    }

    .computer-hand .card {
        width: calc(var(--card-width) * 0.7);
        height: calc(var(--card-height) * 0.7);
    }

    .card-text {
        font-size: 1rem;
    }

    .card-symbol {
        font-size: 1.8rem;
    }

    .card-vowel {
        font-size: 0.65rem;
    }

    /* Größerer Spielbereich */
    .play-area {
        padding: 2rem 3rem;
        flex: 1;
    }

    .deck-area {
        gap: 4rem;
    }

    /* Stapelkarten größer */
    .play-area .card {
        width: 100px;
        height: 142px;
    }

    .draw-pile::before,
    .draw-pile::after {
        width: 100px;
        height: 142px;
    }

    /* Größere Touch-Targets */
    .btn-action {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        min-height: 50px;
    }

    .game-actions {
        gap: 1rem;
        padding: 1.5rem;
    }

    .color-btn {
        width: 60px;
        height: 60px;
    }

    .color-chooser {
        padding: 1.5rem;
    }

    .color-chooser p {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    /* Modal größer */
    .modal-content {
        padding: 3rem;
        max-width: 500px;
    }

    .modal-content h2 {
        font-size: 2.5rem;
    }

    .modal-content p {
        font-size: 1.2rem;
    }

    /* Runden-Zähler größer */
    .round-counter {
        padding: 0.75rem 1rem;
    }

    .round-label {
        font-size: 0.8rem;
    }

    .round-number {
        font-size: 2.2rem;
    }
}

/* iPad Pro / Landscape / große Tablets */
@media (min-width: 1024px) and (max-width: 1400px) {
    :root {
        --card-width: 100px;
        --card-height: 142px;
        --card-radius: 12px;
    }

    /* Footer ausblenden */
    .game-page footer {
        display: none;
    }

    body {
        background: var(--primary-color);
    }

    main {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .game-container {
        max-width: 1300px;
        padding: 1rem 2rem;
        gap: 1rem;
        min-height: calc(100vh - 70px);
    }

    .game-status {
        font-size: 1.15rem;
        padding: 1rem 2rem;
    }

    /* Spielerbereiche side by side consideration */
    .hand {
        gap: 1.25rem;
        padding: 1.5rem;
    }

    .computer-hand .card {
        width: calc(var(--card-width) * 0.7);
        height: calc(var(--card-height) * 0.7);
    }

    .card-text {
        font-size: 1.05rem;
    }

    .card-symbol {
        font-size: 2rem;
    }

    /* Spielfeld großzügiger */
    .play-area {
        padding: 2.5rem 4rem;
        flex: 1;
    }

    .deck-area {
        gap: 5rem;
    }

    /* Stapelkarten groß und lesbar */
    .play-area .card {
        width: 110px;
        height: 156px;
    }

    .draw-pile::before,
    .draw-pile::after {
        width: 110px;
        height: 156px;
    }

    /* Runden-Zähler prominent */
    .round-counter {
        padding: 0.75rem 1.25rem;
    }

    .round-label {
        font-size: 0.85rem;
    }

    .round-number {
        font-size: 2.5rem;
    }

    /* Buttons größer */
    .btn-action {
        padding: 1.1rem 2.5rem;
        font-size: 1.15rem;
    }

    .game-actions {
        gap: 1.5rem;
        padding: 1.5rem 2rem;
    }
}

/* Größere Bildschirme (Desktop) */
@media (min-width: 768px) {
    .card-text {
        font-size: 0.95rem;
    }

    .card-symbol {
        font-size: 1.8rem;
    }

    .card-vowel {
        font-size: 0.6rem;
    }

    .player-hand .card.clickable:hover {
        transform: translateY(-15px) scale(1.08);
        box-shadow:
            0 15px 35px var(--card-shadow),
            0 8px 20px rgba(0,0,0,0.15);
    }

    /* Spielbare Karten leuchten auf Desktop */
    .player-hand .card.playable:hover {
        border-color: var(--accent-color);
        box-shadow:
            0 15px 35px rgba(245, 166, 35, 0.3),
            0 8px 20px rgba(0,0,0,0.15),
            0 0 0 4px rgba(245, 166, 35, 0.3);
    }
}
