:root {
    --primary: #ff3e3e;
    --secondary: #2c3e50;
    --red: #ff5555;
    --blue: #5555ff;
    --green: #55aa55;
    --yellow: #ffaa00;
    --black: #333333;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    background: radial-gradient(circle at center, #1e272e 0%, #000000 100%);
    color: white;
    height: 100vh;
    overflow: hidden;
}

#app {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

#notification-container {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.flash-message {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 2rem;
    border-radius: 1rem;
    border: 1px solid var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    font-weight: 600;
    min-width: 300px;
    text-align: center;
    animation: slideDownIn 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28), fadeOut 0.3s forwards 1.7s;
}

@keyframes slideDownIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        transform: translateY(-20px);
        opacity: 0;
    }
}

.hidden {
    display: none !important;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 1.5rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-width: 380px;
    width: 90%;
}

.glass-card.compact {
    padding: 2rem;
    max-width: 400px;
}

.config-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.config-item label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.segmented-control {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.3rem;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
}

.segmented-control input {
    display: none;
}

.segmented-control label {
    flex: 1;
    text-align: center;
    padding: 0.8rem;
    cursor: pointer;
    border-radius: 0.8rem;
    transition: 0.3s;
    font-weight: 600;
    margin-bottom: 0;
    opacity: 0.6;
}

.segmented-control input:checked+label {
    background: var(--primary);
    color: white;
    opacity: 1;
    box-shadow: 0 4px 10px rgba(255, 62, 62, 0.3);
}

/* ROOM LIST */
.room-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 2rem;
    padding-right: 0.5rem;
}

.room-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}

.room-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.room-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
}

.room-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.room-meta {
    font-size: 0.8rem;
    opacity: 0.7;
}

h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    letter-spacing: -0.5px;
}

h1 span {
    color: var(--primary);
}

p {
    opacity: 0.7;
    margin-bottom: 1rem;
}

.input-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.8;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.8rem;
    border-radius: 0.8rem;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
}

.modes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 0.8rem;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn.primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(255, 62, 62, 0.4);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(255, 62, 62, 0.5);
}

.btn.secondary {
    background: white;
    color: black;
}

.btn.ghost {
    background: transparent;
    color: white;
    border: 1px solid var(--glass-border);
}

.btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.back-link {
    display: inline-block;
    margin-top: 1rem;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.6;
    transition: 0.3s;
    font-weight: 600;
}

.back-link:hover {
    opacity: 1;
    color: var(--primary);
    transform: translateX(-5px);
}

/* GAME BOARD */
#game-screen {
    justify-content: center;
    padding: 1rem;
    gap: 0.5rem;
}

.game-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass);
    padding: 0.8rem 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--glass-border);
}

.game-status {
    font-weight: 600;
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#lobby-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 500;
}

.game-board {
    flex: 1;
    width: 100%;
    display: grid;
    grid-template-areas:
        ". top ."
        "left center right"
        ". bottom .";
    grid-template-columns: minmax(150px, 1fr) 2fr minmax(150px, 1fr);
    grid-template-rows: auto auto auto;
    gap: 0.5rem;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: calc(100vh - 80px);
    overflow-x: hidden;
    /* Fill available space without pushing header out */
}

.opponent-slot {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.opponent-slot.top {
    grid-area: top;
    align-items: flex-end;
}

.opponent-slot.left {
    grid-area: left;
}

.opponent-slot.right {
    grid-area: right;
}

.player-card {
    background: var(--glass);
    padding: 0.8rem;
    border-radius: 1.2rem;
    text-align: center;
    min-width: 110px;
    border: 2px solid transparent;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.opponent-slot.left .player-card {
    transform: rotate(90deg);
}

.opponent-slot.right .player-card {
    transform: rotate(-90deg);
}

.player-card.active {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 62, 62, 0.3);
}

.opponent-hand {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    min-height: 80px;
}

.card.mini {
    width: 80px;
    height: 120px;
    font-size: 1.2rem;
    border-width: 3px;
}

.card.mini:hover {
    transform: none !important;
}

.card.mini .uno-logo {
    font-size: 1rem;
}

.opponent-hand .more {
    display: none;
    /* We are showing all cards now */
}

.center-area {
    grid-area: center;
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
}

/* Removed deck stack effect as requested */
.deck-pile {
    position: relative;
    cursor: pointer;
}

.deck-pile .badge {
    position: absolute;
    /* Ensure absolute positioning context */
    top: -5px;
    left: -5px;
    right: auto;
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
    border-radius: 50%;
    z-index: 100;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* CARDS */
.card {
    width: 100px;
    height: 150px;
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    /* Extra bold */
    font-size: 2.8rem;
    /* Larger numbers */
    color: white;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: 5px solid white;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card:hover {
    transform: translateY(-10px) rotate(2deg);
    z-index: 100;
}

.card.red {
    background: var(--red);
}

.card.blue {
    background: var(--blue);
}

.card.green {
    background: var(--green);
}

.card.yellow {
    background: var(--yellow);
}

.card.black {
    background: var(--black);
}

.color-wheel {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(var(--red) 0% 25%,
            var(--blue) 25% 50%,
            var(--green) 50% 75%,
            var(--yellow) 75% 100%);
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card.uno-back {
    background: #000;
    border-color: var(--primary);
}

.uno-logo {
    font-style: italic;
    color: var(--primary);
    transform: rotate(-20deg);
}

.badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--primary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.player-area {
    grid-area: bottom;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1rem;
    border-radius: 2rem;
    transition: all 0.5s ease;
    min-width: 300px;
}

.player-area.my-turn-active {
    background: transparent;
    box-shadow: none;
    border: none;
    animation: none;
    position: relative;
}

.player-status-bar {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    width: 100%;
}

.turn-badge {
    background: #ffde00;
    color: #000;
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 850;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px rgba(255, 222, 0, 0.4);
    animation: bounceTurn 0.8s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
    border: 2px solid #000;
    white-space: nowrap;
}

#uno-button-container {
    display: flex;
    align-items: center;
}

@keyframes myTurnGlow {
    from {
        border-color: rgba(255, 62, 62, 0.4);
        box-shadow: 0 0 20px rgba(255, 62, 62, 0.1);
    }

    to {
        border-color: rgba(255, 62, 62, 1);
        box-shadow: 0 0 40px rgba(255, 62, 62, 0.4);
    }
}

@keyframes bounceTurn {
    from {
        transform: translate(-50%, 0);
    }

    to {
        transform: translate(-50%, -8px);
    }
}

.player-area {
    grid-area: bottom;
    position: relative;
    max-width: 100%;
}

.hand {
    display: flex;
    justify-content: center;
    padding: 1.5rem 1rem 0.5rem 1rem;
    min-height: 150px;
}

.hand .card {
    margin-left: -35px;
    border-width: 4px;
    transition: transform 0.2s ease-out;
    position: relative;
    cursor: pointer;
}

.hand .card:hover {
    transform: translateY(-20px) rotate(2deg);
    z-index: 500 !important;
}

.hand .card.playable {
    transform: translateY(-7px);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    border-color: #fff;
    z-index: 100;
}

.hand .card.playable:hover {
    transform: translateY(-25px) scale(1.05);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
    z-index: 600 !important;
}

/* Hover alanını genişlet - titreşimi önle */
.hand .card::before {
    content: '';
    position: absolute;
    inset: -10px;
    z-index: -1;
}

/* MODALS */
.modal {
    position: absolute;
    /* Changed from fixed */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 2rem;
}

.modal-content {
    background: #1e293b;
    padding: 2.5rem;
    border-radius: 2rem;
    text-align: center;
    border: 1px solid var(--primary);
    box-shadow: 0 0 50px rgba(255, 62, 62, 0.2);
}

.winner-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: celebrate 1s infinite alternate cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes celebrate {
    from {
        transform: scale(1) rotate(-10deg);
    }

    to {
        transform: scale(1.2) rotate(10deg);
    }
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.color-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.color-opt {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    cursor: pointer;
    border: 4px solid white;
    transition: 0.3s;
}

.color-opt:hover {
    transform: scale(1.1);
}

.color-opt.red {
    background: var(--red);
}

.color-opt.blue {
    background: var(--blue);
}

.color-opt.green {
    background: var(--green);
}

.color-opt.yellow {
    background: var(--yellow);
}

.uno-btn {
    background: linear-gradient(45deg, #ff3e3e, #ffaa00);
    color: white;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    font-weight: 850;
    border-radius: 2rem;
    box-shadow: 0 0 15px rgba(255, 62, 62, 0.5);
    animation: pulse 1.5s infinite;
    border: 2px solid white;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.opponent-badge {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--glass-border);
    font-weight: 600;
}

.name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 5px;
}

.p-score-badge {
    color: var(--yellow);
    background: rgba(255, 170, 0, 0.15);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 170, 0, 0.3);
}

.flying-card {
    position: fixed;
    width: 60px;
    height: 90px;
    background: #000;
    border: 3px solid var(--primary);
    border-radius: 0.5rem;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Kart oynama animasyonu */
.flying-play-card {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Fixed Side Scoreboard */
#fixed-scoreboard {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(15px);
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--glass-border);
    border-right: 4px solid var(--primary);
    z-index: 100;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease;
}

#fixed-scoreboard h3 {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
    text-align: center;
}

.end-game-controls {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    animation: fadeInSlide 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    border-radius: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary);
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translate(-50%, -30%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 1400px) {
    #fixed-scoreboard {
        right: 10px;
        min-width: 180px;
        padding: 1rem;
    }
}

@media (max-width: 1200px) {
    #fixed-scoreboard {
        position: absolute;
        top: 150px;
        /* Moved 5cm down */
        left: 10px;
        right: auto;
        transform: none;
        background: transparent;
        backdrop-filter: none;
        padding: 0;
        border: none;
        box-shadow: none;
        z-index: 50;
    }

    #fixed-scoreboard h3 {
        display: none;
    }

    .scoreboard-minimal {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 0;
    }

    .score-row {
        background: transparent;
        backdrop-filter: none;
        padding: 0;
        font-size: 0.7rem;
        border: none;
        color: white;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .score-row .p-name {
        font-weight: 400;
        /* Simplification */
        font-size: 0.65rem;
    }

    .score-row .p-score {
        background: var(--yellow);
        color: #000;
        padding: 1px 6px;
        border-radius: 10px;
        font-size: 0.6rem;
        font-weight: 800;
        display: inline-flex;
        align-items: center;
        gap: 2px;
    }

    .score-row .p-score::before {
        content: '🏆';
        font-size: 0.6rem;
    }

    /* Horizontal list for opponents in mobile */
    .opponent-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 0.6rem 1rem;
        border-radius: 1rem;
        width: fit-content;
        margin: 5px auto;
    }

    .opponent-hand {
        margin-top: 0 !important;
        transform: scale(0.8);
    }

    .opponent-card .name {
        margin-bottom: 0;
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    #uno-button-container {
        top: -60px;
        /* Move UNO button over player area in mobile */
    }
}


/* Scoreboard Minimal Styles */
.scoreboard-minimal {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0.5rem;
}

.score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border-left: 3px solid var(--primary);
}

.score-row .p-name {
    font-weight: 700;
    font-size: 1rem;
}

.score-row .p-score {
    color: var(--yellow);
    font-weight: 800;
}

/* Mobile styles moved to mobile-fix.css */

/* ============================================
   1v1 OYUN STİLLERİ VE İSİM BADGE'LERİ
   ============================================ */

/* Oyuncu İsim Badge Container */
.player-name-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
    width: 100%;
}

/* player-card içindeki isim alanını badge olarak stillendir */
.player-card .player-name-wrapper .player-name-badge {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(10px);
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    border: 1px solid var(--glass-border) !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.my-name-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.player-name-badge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* Oyuncu İsim Badge'i */
.player-name-badge {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    border: 1px solid var(--glass-border);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.player-name-badge.my-badge {
    background: linear-gradient(135deg, rgba(255, 62, 62, 0.2), rgba(255, 170, 0, 0.2));
    border-color: var(--primary);
}

/* Sıra kullanıcıya geldiğinde badge hafifçe büyür ve renklenler */
.player-name-badge.my-badge.my-turn {
    background: linear-gradient(135deg, rgba(255, 222, 0, 0.4), rgba(255, 170, 0, 0.4));
    border-color: var(--yellow);
    box-shadow: 0 0 15px rgba(255, 222, 0, 0.4);
    transform: scale(1.05);
    padding: 6px 14px;
    font-size: 0.85rem;
    animation: turnPulse 1.5s ease-in-out infinite;
}

@keyframes turnPulse {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(255, 222, 0, 0.4);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 222, 0, 0.7);
    }
}

.player-name-badge.turn-active {
    background: linear-gradient(135deg, rgba(255, 222, 0, 0.3), rgba(255, 170, 0, 0.3));
    border-color: var(--yellow);
    box-shadow: 0 0 15px rgba(255, 222, 0, 0.3);
    animation: turnGlow 1s infinite alternate;
}

@keyframes turnGlow {
    from {
        box-shadow: 0 0 10px rgba(255, 222, 0, 0.3);
    }

    to {
        box-shadow: 0 0 20px rgba(255, 222, 0, 0.5);
    }
}

/* Sıra Sende Badge - İsme Ortalı */
.turn-badge-inline {
    background: #ffde00;
    color: #000;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    box-shadow: 0 0 12px rgba(255, 222, 0, 0.4);
    animation: bounceTurnInline 0.8s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
    border: 2px solid #000;
    white-space: nowrap;
}

@keyframes bounceTurnInline {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-4px);
    }
}

/* 1v1 Oyunlarda Rakip Kartları */
.opponent-1v1 {
    min-width: 200px;
    padding: 1rem;
}

.opponent-1v1 .opponent-hand-1v1 {
    transform: none !important;
    min-height: 120px;
}

.opponent-1v1 .opponent-hand-1v1 .card {
    width: 80px;
    height: 120px;
    font-size: 1.8rem;
}

.opponent-1v1 .opponent-hand-1v1 .uno-logo {
    font-size: 1.4rem;
}

/* Üst slotta 1v1 için özel düzen */
.opponent-slot.top .opponent-1v1 {
    transform: none !important;
}

.opponent-slot.top .opponent-1v1 .opponent-hand-1v1 {
    display: flex;
    justify-content: center;
    padding: 0.5rem;
}

/* Status UNO Badge */
.status-uno {
    background: linear-gradient(45deg, #ff3e3e, #ffaa00);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 800;
    animation: pulse 1s infinite;
    margin-left: 5px;
}