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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: url('images/arkaplan.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    color: #333;
}

.screen {
    display: none;
    height: 100vh;
    padding: 10px;
    overflow: hidden;
    position: relative;
}

.screen.active {
    display: flex;
    flex-direction: column;
}

/* Oyuncu Kurulum Ekranı */
.setup-container {
    max-width: 600px;
    margin: 20px auto;
    background: white;
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.setup-container h1 {
    font-size: 3em;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-weight: bold;
}

.setup-container h2 {
    text-align: center;
    color: #555;
    margin-bottom: 30px;
}

.player-count-selector {
    margin-bottom: 30px;
}

.player-count-selector label {
    display: block;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: bold;
    color: #555;
}

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

.count-btn {
    padding: 15px 30px;
    font-size: 1.1em;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.count-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.count-btn.selected {
    background: #667eea;
    color: white;
}

.player-names-container {
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.player-name-input {
    margin-bottom: 0;
}

.player-name-input label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.player-name-input input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.player-name-input input:focus {
    outline: none;
    border-color: #667eea;
}

/* Başlangıç Sırası Belirleme Ekranı */
.turn-order-container {
    max-width: 1400px;
    margin: 30px auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: flex;
    gap: 40px;
    text-align: center;
}

.turn-order-main {
    flex: 1;
    min-width: 0;
}

.turn-order-instructions {
    flex: 0 0 500px;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    text-align: left;
    max-height: 85vh;
    overflow-y: auto;
}

.turn-order-instructions h2 {
    font-size: 1.8em;
    color: #667eea;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.turn-order-instructions h3 {
    font-size: 1.3em;
    color: #764ba2;
    margin-top: 20px;
    margin-bottom: 10px;
}

.turn-order-instructions p {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.turn-order-instructions ol {
    padding-left: 20px;
    color: #555;
}

.turn-order-instructions li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.turn-order-instructions ul {
    padding-left: 20px;
    color: #555;
}

.turn-order-instructions ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.turn-order-instructions strong {
    color: #667eea;
}

.symbols-explanation {
    margin-top: 15px;
    margin-bottom: 20px;
}

.symbol-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 8px;
}

.symbol-icon {
    min-width: 50px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.symbol-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.symbol-text {
    flex: 1;
    font-size: 0.95em;
    line-height: 1.6;
    color: #555;
}

.card-types-explanation {
    margin-top: 15px;
    margin-bottom: 20px;
}

.card-type-item {
    margin-bottom: 15px;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 8px;
    font-size: 0.95em;
    line-height: 1.6;
    color: #555;
}

.card-type-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.card-type-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.card-type-item p {
    margin: 0;
    padding-left: 45px;
}

.turn-order-result-container {
    margin-top: 30px;
}

.turn-order-result-container h2 {
    font-size: 2em;
    color: #667eea;
    margin-bottom: 30px;
}

.turn-order-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.turn-order-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.turn-order-rank {
    font-size: 1.5em;
    font-weight: bold;
    color: #667eea;
    min-width: 40px;
}

.turn-order-player-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.turn-order-player-color {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #333;
}

.turn-order-player-name {
    font-size: 1.2em;
    font-weight: bold;
    flex: 1;
}

.turn-order-player-roll {
    font-size: 1em;
    color: #666;
}

.start-game-btn {
    padding: 15px 40px;
    font-size: 1.3em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.start-game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.start-game-btn:active {
    transform: translateY(0);
}

.turn-order-main h1 {
    font-size: 2.5em;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-weight: bold;
}

.turn-order-description {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 40px;
}

.turn-order-dice-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.turn-order-dice-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    perspective: 2000px;
    perspective-origin: center center;
}

.turn-order-player-name {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
}

.turn-order-dice {
    width: 120px;
    height: 120px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
}

.turn-order-dice.rolling {
    animation: rollTurnOrderDice 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes rollTurnOrderDice {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    10% {
        transform: rotateX(90deg) rotateY(45deg) rotateZ(30deg);
    }
    20% {
        transform: rotateX(180deg) rotateY(90deg) rotateZ(60deg);
    }
    30% {
        transform: rotateX(270deg) rotateY(135deg) rotateZ(90deg);
    }
    40% {
        transform: rotateX(360deg) rotateY(180deg) rotateZ(120deg);
    }
    50% {
        transform: rotateX(450deg) rotateY(225deg) rotateZ(150deg);
    }
    60% {
        transform: rotateX(540deg) rotateY(270deg) rotateZ(180deg);
    }
    70% {
        transform: rotateX(630deg) rotateY(315deg) rotateZ(210deg);
    }
    80% {
        transform: rotateX(720deg) rotateY(360deg) rotateZ(240deg);
    }
    90% {
        transform: rotateX(810deg) rotateY(405deg) rotateZ(270deg);
    }
    100% {
        transform: rotateX(900deg) rotateY(450deg) rotateZ(300deg);
    }
}

.turn-order-dice-face {
    position: absolute;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    border: 3px solid #667eea;
    border-radius: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    backface-visibility: hidden;
    transform-style: preserve-3d;
    opacity: 0;
    pointer-events: none;
}

.turn-order-dice-face[data-value="1"] {
    transform: rotateY(0deg) translateZ(60px);
}

.turn-order-dice-face[data-value="2"] {
    transform: rotateY(90deg) translateZ(60px);
}

.turn-order-dice-face[data-value="3"] {
    transform: rotateX(-90deg) translateZ(60px);
}

.turn-order-dice-face[data-value="4"] {
    transform: rotateX(90deg) translateZ(60px);
}

.turn-order-dice-face[data-value="5"] {
    transform: rotateY(-90deg) translateZ(60px);
}

.turn-order-dice-face[data-value="6"] {
    transform: rotateY(180deg) translateZ(60px);
}

/* Sadece aktif yüz görünür - !important ile zorla */
.turn-order-dice.show-1 .turn-order-dice-face[data-value="1"] {
    opacity: 1 !important;
    z-index: 10;
    pointer-events: auto;
    visibility: visible !important;
}

.turn-order-dice.show-2 .turn-order-dice-face[data-value="2"] {
    opacity: 1 !important;
    z-index: 10;
    pointer-events: auto;
    visibility: visible !important;
}

.turn-order-dice.show-3 .turn-order-dice-face[data-value="3"] {
    opacity: 1 !important;
    z-index: 10;
    pointer-events: auto;
    visibility: visible !important;
}

.turn-order-dice.show-4 .turn-order-dice-face[data-value="4"] {
    opacity: 1 !important;
    z-index: 10;
    pointer-events: auto;
    visibility: visible !important;
}

.turn-order-dice.show-5 .turn-order-dice-face[data-value="5"] {
    opacity: 1 !important;
    z-index: 10;
    pointer-events: auto;
    visibility: visible !important;
}

.turn-order-dice.show-6 .turn-order-dice-face[data-value="6"] {
    opacity: 1 !important;
    z-index: 10;
    pointer-events: auto;
    visibility: visible !important;
}

/* Diğer yüzler gizli */
.turn-order-dice.show-1 .turn-order-dice-face:not([data-value="1"]),
.turn-order-dice.show-2 .turn-order-dice-face:not([data-value="2"]),
.turn-order-dice.show-3 .turn-order-dice-face:not([data-value="3"]),
.turn-order-dice.show-4 .turn-order-dice-face:not([data-value="4"]),
.turn-order-dice.show-5 .turn-order-dice-face:not([data-value="5"]),
.turn-order-dice.show-6 .turn-order-dice-face:not([data-value="6"]) {
    opacity: 0 !important;
    pointer-events: none;
}

/* Varsayılan olarak 1 göster */
.turn-order-dice:not(.show-1):not(.show-2):not(.show-3):not(.show-4):not(.show-5):not(.show-6) .turn-order-dice-face {
    opacity: 0 !important;
}

.turn-order-dice:not(.show-1):not(.show-2):not(.show-3):not(.show-4):not(.show-5):not(.show-6) .turn-order-dice-face[data-value="1"] {
    opacity: 1 !important;
    z-index: 10;
    pointer-events: auto;
}

.turn-order-dot {
    width: 18px;
    height: 18px;
    background: #000000;
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3), inset 0 1px 2px rgba(255,255,255,0.3);
}

.turn-order-dice-face[data-value="1"] .turn-order-dot {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.turn-order-dice-face[data-value="2"] .turn-order-dot:nth-child(1) {
    top: 25%;
    left: 25%;
}

.turn-order-dice-face[data-value="2"] .turn-order-dot:nth-child(2) {
    bottom: 25%;
    right: 25%;
}

.turn-order-dice-face[data-value="3"] .turn-order-dot:nth-child(1) {
    top: 25%;
    left: 25%;
}

.turn-order-dice-face[data-value="3"] .turn-order-dot:nth-child(2) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.turn-order-dice-face[data-value="3"] .turn-order-dot:nth-child(3) {
    bottom: 25%;
    right: 25%;
}

.turn-order-dice-face[data-value="4"] .turn-order-dot:nth-child(1) {
    top: 25%;
    left: 25%;
}

.turn-order-dice-face[data-value="4"] .turn-order-dot:nth-child(2) {
    top: 25%;
    right: 25%;
}

.turn-order-dice-face[data-value="4"] .turn-order-dot:nth-child(3) {
    bottom: 25%;
    left: 25%;
}

.turn-order-dice-face[data-value="4"] .turn-order-dot:nth-child(4) {
    bottom: 25%;
    right: 25%;
}

.turn-order-dice-face[data-value="5"] .turn-order-dot:nth-child(1) {
    position: absolute;
    top: 20%;
    left: 20%;
    transform: translate(-50%, -50%);
}

.turn-order-dice-face[data-value="5"] .turn-order-dot:nth-child(2) {
    position: absolute;
    top: 20%;
    right: 20%;
    transform: translate(50%, -50%);
}

.turn-order-dice-face[data-value="5"] .turn-order-dot:nth-child(3) {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.turn-order-dice-face[data-value="5"] .turn-order-dot:nth-child(4) {
    position: absolute;
    bottom: 20%;
    left: 20%;
    transform: translate(-50%, 50%);
}

.turn-order-dice-face[data-value="5"] .turn-order-dot:nth-child(5) {
    position: absolute;
    bottom: 20%;
    right: 20%;
    transform: translate(50%, 50%);
}

.turn-order-dice-face[data-value="6"] .turn-order-dot:nth-child(1) {
    position: absolute;
    top: 20%;
    left: 20%;
    transform: translate(-50%, -50%);
}

.turn-order-dice-face[data-value="6"] .turn-order-dot:nth-child(2) {
    position: absolute;
    top: 20%;
    right: 20%;
    transform: translate(50%, -50%);
}

.turn-order-dice-face[data-value="6"] .turn-order-dot:nth-child(3) {
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translate(-50%, -50%);
}

.turn-order-dice-face[data-value="6"] .turn-order-dot:nth-child(4) {
    position: absolute;
    top: 50%;
    right: 20%;
    transform: translate(50%, -50%);
}

.turn-order-dice-face[data-value="6"] .turn-order-dot:nth-child(5) {
    position: absolute;
    bottom: 20%;
    left: 20%;
    transform: translate(-50%, 50%);
}

.turn-order-dice-face[data-value="6"] .turn-order-dot:nth-child(6) {
    position: absolute;
    bottom: 20%;
    right: 20%;
    transform: translate(50%, 50%);
}

.turn-order-result {
    font-size: 1.3em;
    font-weight: bold;
    min-height: 30px;
    margin-top: 10px;
}

.turn-order-roll-btn {
    padding: 12px 24px;
    font-size: 1.1em;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    font-weight: bold;
    min-width: 150px;
}

.turn-order-roll-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

.turn-order-roll-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.finalize-turn-order-btn {
    padding: 15px 40px;
    font-size: 1.3em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    font-weight: bold;
    margin-top: 20px;
}

.finalize-turn-order-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.7);
}

.finalize-turn-order-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.roll-all-dice-btn {
    padding: 15px 40px;
    font-size: 1.3em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    font-weight: bold;
    margin: 30px auto 0;
    display: block;
    grid-column: 1 / -1;
}

.roll-all-dice-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.7);
}

.roll-all-dice-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.start-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}

.start-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.start-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Oyun Ekranı */
.game-header {
    background: white;
    padding: 6px 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    margin-left: 15%;
    margin-right: 15%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
}

.game-header h1 {
    font-size: 1em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    white-space: nowrap;
}

.logo-placeholder {
    font-size: 0.65em;
    color: #999;
    font-style: italic;
    padding: 2px 6px;
    border: 1px dashed #ddd;
    border-radius: 4px;
}

.header-center {
    flex: 1;
    text-align: center;
}

.current-player-info {
    font-size: 0.85em;
    color: #555;
    font-weight: bold;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
}

.sound-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.8;
}

.sound-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    opacity: 1;
}

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

.dice-btn-header {
    padding: 14px 28px;
    font-size: 1.1em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5), 
                0 2px 8px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.dice-btn-header::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;
}

.dice-btn-header:hover:not(:disabled)::before {
    left: 100%;
}

.dice-btn-header:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.7), 
                0 4px 12px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.dice-btn-header:active:not(:disabled) {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5), 
                0 2px 6px rgba(0, 0, 0, 0.15);
}

.dice-btn-header:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.edit-mode-btn {
    padding: 6px 15px;
    font-size: 0.9em;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.3s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    font-weight: bold;
    margin-right: 10px;
}

.edit-mode-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.save-positions-btn {
    padding: 6px 15px;
    font-size: 0.9em;
    background: #ff9800;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.3s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    font-weight: bold;
    margin-right: 10px;
}

.save-positions-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.dice-result-header {
    font-size: 1.5em;
    font-weight: bold;
    color: #667eea;
    min-width: 40px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.dice-result-header.show {
    opacity: 1;
}

.remaining-tokens-header {
    font-size: 1em;
    font-weight: bold;
    color: #ff9800;
    padding: 8px 15px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: 20px;
    border: 2px solid #ff9800;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 5px;
}

.remaining-tokens-header span {
    color: #f57c00;
    font-size: 1.1em;
}

.game-container {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 8px;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0 8px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Sol Panel - Oyuncu Bilgileri */
.left-panel {
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: fit-content;
    margin-left: 0;
}

.players-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.player-card {
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #ddd;
    background: white; /* JavaScript'te override edilecek */
    transition: all 0.3s;
}

.player-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.player-card.active {
    /* Background ve box-shadow JavaScript'te ayarlanıyor */
    transform: scale(1.05);
}

.player-card h3 {
    margin-bottom: 10px;
    color: #667eea;
}

.player-card .player-stats {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.player-card .player-stats .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5px 0;
    padding: 3px 0;
}

.player-card .player-stats .stat-label {
    font-weight: 500;
    color: #555;
}

.player-card .player-stats .stat-value {
    font-weight: bold;
    color: #333;
}

.player-card .player-stats .stat-warning {
    color: #f44336;
    font-weight: bold;
    margin-top: 5px;
    padding: 3px 5px;
    background: rgba(244, 67, 54, 0.1);
    border-radius: 5px;
}

.player-tokens-section,
.player-cards-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.section-title {
    font-size: 0.85em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tokens-display {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: 8px;
    margin-bottom: 8px;
    min-height: 40px;
}

.tokens-preview {
    font-size: 0.9em;
    font-weight: 600;
    color: #ff9800;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.no-tokens-msg {
    font-size: 0.85em;
    color: #999;
    font-style: italic;
}

.cards-by-type {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    justify-content: center;
}

.card-type-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s;
}

.card-type-item:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.05);
}

.card-type-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.card-type-count {
    font-weight: bold;
    color: #667eea;
    font-size: 0.9em;
}

.no-cards-msg {
    text-align: center;
    color: #999;
    font-size: 0.85em;
    font-style: italic;
    padding: 5px;
}

.view-cards-btn {
    width: 100%;
    padding: 10px 15px;
    margin-top: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.view-cards-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.view-cards-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
}

/* Oyun Tahtası */
.center-panel {
    background: transparent;
    padding: 10px;
    border-radius: 15px;
    box-shadow: none;
    min-width: 0; /* Flexbox için */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 0;
    overflow: hidden;
}

/* Board Container - Katmanlı yapı */
.board-container {
    width: 100%;
    min-height: 700px;
    height: 90vh;
    max-height: 900px;
    position: relative;
    margin: 0;
    overflow: hidden;
}

/* Katmanlar */
.board-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.board-decoration-layer {
    z-index: 2;
}

.board-game-area-layer {
    z-index: 3;
}

/* Sayfa köşe süsleri - Sayfanın en köşelerine */
.page-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1000;
}

.page-decoration {
    position: absolute;
    max-width: 18%;
    max-height: 18%;
    object-fit: contain;
    pointer-events: none;
}

.page-decoration-top-left {
    top: 0;
    left: 0;
}

.page-decoration-top-right {
    top: 0;
    right: 0;
}

.page-decoration-bottom-left {
    bottom: 0;
    left: 0;
}

.page-decoration-bottom-right {
    bottom: 0;
    right: 0;
}

/* Oyun alanı görseli */
.game-area-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    position: relative;
}

.game-board {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 4;
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin: 0;
    overflow: visible;
    /* Pozisyonları oyun alanı görseline göre sabitle */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Oyun alanı görseli ile aynı boyutta bir container */
.game-board::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* Farklı ekran boyutları için */
@media (min-width: 1600px) {
    .game-board {
        max-width: 1600px;
        height: 1000px;
    }
}

@media (max-width: 1400px) {
    .game-board {
        max-width: 100%;
        height: auto;
        min-height: 600px;
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 768px) {
    .game-board {
        min-height: 500px;
        padding: 10px;
    }
}

.infinity-board {
    /* Arka plan artık board-container içindeki katmanlarda */
    background: transparent;
}

@keyframes backgroundShift {
    0%, 100% { background-position: 0 0; }
    50% { background-position: 0 -50%; }
}

.board-cell {
    width: clamp(25px, 3vw, 45px);
    height: clamp(25px, 3vw, 45px);
    min-width: 25px;
    min-height: 25px;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    background: white;
    font-size: clamp(0.4em, 0.8vw, 0.6em);
    font-weight: bold;
    transition: all 0.3s;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Conic gradient desteği için */
@supports (border-image: conic-gradient(red, blue)) {
    .board-cell {
        border-image-slice: 1;
    }
}

.board-cell:hover {
    transform: scale(1.15);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 15;
}

/* Özel Tooltip Sistemi */
.board-cell-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    min-width: 150px;
    text-align: center;
}

.board-cell-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.board-cell:hover .board-cell-tooltip {
    opacity: 1;
    visibility: visible;
}

.tooltip-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.tooltip-position {
    font-weight: bold;
    font-size: 13px;
}

.tooltip-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin: 3px 0;
}

.tooltip-players {
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 11px;
    max-width: 200px;
    white-space: normal;
    word-wrap: break-word;
}

.tooltip-players:empty {
    display: none;
}

.tooltip-player-item {
    margin: 2px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tooltip-player-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.board-cell.start {
    background: #4caf50;
    color: white;
    border-color: #4caf50;
    width: clamp(35px, 4vw, 60px);
    height: clamp(35px, 4vw, 60px);
    min-width: 35px;
    min-height: 35px;
    font-size: clamp(0.5em, 1vw, 0.75em);
    z-index: 20;
    /* Pozisyonlar script.js'te dinamik olarak ayarlanıyor */
}

.board-cell.finish {
    background: #ff9800;
    color: white;
    border-color: #ff9800;
    width: clamp(35px, 4vw, 60px);
    height: clamp(35px, 4vw, 60px);
    min-width: 35px;
    min-height: 35px;
    font-size: clamp(0.5em, 1vw, 0.75em);
    z-index: 20;
    /* Pozisyonlar script.js'te dinamik olarak ayarlanıyor */
}

.board-cell.round2 {
    background: #f44336;
    color: white;
    border-color: #f44336;
    width: clamp(40px, 4.5vw, 65px);
    height: clamp(40px, 4.5vw, 65px);
    min-width: 40px;
    min-height: 40px;
    font-size: clamp(0.45em, 0.9vw, 0.7em);
    z-index: 20;
    font-weight: bold;
}

.board-cell.green {
    background: #c8e6c9;
    border-color: #4caf50;
    color: #2e7d32;
}

.board-cell.grey {
    background: #e0e0e0;
    border-color: #757575;
    color: #424242;
}

.cell-number {
    position: absolute;
    top: 2px;
    left: 2px;
    font-size: clamp(0.5em, 0.8vw, 0.7em);
    font-weight: bold;
    color: inherit;
    z-index: 15;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: clamp(12px, 1.5vw, 18px);
    height: clamp(12px, 1.5vw, 18px);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cell-symbol {
    font-size: clamp(0.8em, 1.5vw, 1.2em);
    margin-top: clamp(4px, 0.8vw, 8px);
    z-index: 12;
}

.cell-symbol-logo {
    width: clamp(18px, 2.5vw, 28px);
    height: clamp(18px, 2.5vw, 28px);
    object-fit: contain;
    margin-top: clamp(4px, 0.8vw, 8px);
    z-index: 12;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.cell-label {
    font-size: clamp(0.5em, 0.9vw, 0.7em);
    text-align: center;
    line-height: 1.2;
    z-index: 12;
}

.cell-tokens-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    z-index: 10;
    width: 100%;
    height: 100%;
}

.pawn {
    width: clamp(14px, 1.8vw, 24px);
    height: clamp(14px, 1.8vw, 24px);
    border-radius: 50%;
    border: clamp(2px, 0.3vw, 3px) solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5), 0 0 8px rgba(0,0,0,0.3);
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.pawn:hover {
    transform: scale(1.3);
    z-index: 25;
    box-shadow: 0 3px 8px rgba(0,0,0,0.6), 0 0 12px rgba(0,0,0,0.4);
}

.pawn-order {
    font-size: 0.65em;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    line-height: 1;
    pointer-events: none;
}

.dice-section {
    text-align: center;
    padding: 20px;
}

.dice-btn {
    padding: 15px 40px;
    font-size: 1.2em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
    margin-bottom: 20px;
}

.dice-btn:hover:not(:disabled) {
    transform: scale(1.05);
}

.dice-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dice-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 150px;
    margin: 20px 0;
    perspective: 1000px;
}

.dice {
    width: 100px;
    height: 100px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s ease-out;
}

.dice.rolling {
    animation: rollDice 0.6s ease-in-out;
}

@keyframes rollDice {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }
    25% {
        transform: rotateX(90deg) rotateY(90deg);
    }
    50% {
        transform: rotateX(180deg) rotateY(180deg);
    }
    75% {
        transform: rotateX(270deg) rotateY(270deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.dice.show-1 {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
}

.dice.show-2 {
    transform: rotateX(0deg) rotateY(-90deg) rotateZ(0deg);
}

.dice.show-3 {
    transform: rotateX(90deg) rotateY(0deg) rotateZ(0deg);
}

.dice.show-4 {
    transform: rotateX(-90deg) rotateY(0deg) rotateZ(0deg);
}

.dice.show-5 {
    transform: rotateX(0deg) rotateY(90deg) rotateZ(0deg);
}

.dice.show-6 {
    transform: rotateX(0deg) rotateY(180deg) rotateZ(0deg);
}

.dice-face {
    position: absolute;
    width: 100px;
    height: 100px;
    background: white;
    border: 3px solid #667eea;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    backface-visibility: hidden;
}

.dice-face[data-value="1"] {
    transform: rotateY(0deg) translateZ(50px);
}

.dice-face[data-value="2"] {
    transform: rotateY(90deg) translateZ(50px);
}

.dice-face[data-value="3"] {
    transform: rotateX(-90deg) translateZ(50px);
}

.dice-face[data-value="4"] {
    transform: rotateX(90deg) translateZ(50px);
}

.dice-face[data-value="5"] {
    transform: rotateY(-90deg) translateZ(50px);
}

.dice-face[data-value="6"] {
    transform: rotateY(180deg) translateZ(50px);
}

.dice-face {
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

/* Her yüz için görünürlük kontrolü */
.dice.show-1 .dice-face[data-value="1"] {
    opacity: 1;
    z-index: 10;
}

.dice.show-2 .dice-face[data-value="2"] {
    opacity: 1;
    z-index: 10;
}

.dice.show-3 .dice-face[data-value="3"] {
    opacity: 1;
    z-index: 10;
}

.dice.show-4 .dice-face[data-value="4"] {
    opacity: 1;
    z-index: 10;
}

.dice.show-5 .dice-face[data-value="5"] {
    opacity: 1;
    z-index: 10;
}

.dice.show-6 .dice-face[data-value="6"] {
    opacity: 1;
    z-index: 10;
}

/* Başlangıçta ilk yüzü göster (show sınıfı yoksa) */
.dice:not(.show-1):not(.show-2):not(.show-3):not(.show-4):not(.show-5):not(.show-6) .dice-face[data-value="1"] {
    opacity: 1;
    z-index: 10;
}

.dot {
    width: 15px;
    height: 15px;
    background: #667eea;
    border-radius: 50%;
    margin: 5px;
}

.dice-face[data-value="1"] .dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dice-face[data-value="2"] .dot:nth-child(1) {
    position: absolute;
    top: 20%;
    left: 20%;
}

.dice-face[data-value="2"] .dot:nth-child(2) {
    position: absolute;
    bottom: 20%;
    right: 20%;
}

.dice-face[data-value="3"] .dot:nth-child(1) {
    position: absolute;
    top: 20%;
    left: 20%;
}

.dice-face[data-value="3"] .dot:nth-child(2) {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dice-face[data-value="3"] .dot:nth-child(3) {
    position: absolute;
    bottom: 20%;
    right: 20%;
}

.dice-face[data-value="4"] .dot:nth-child(1) {
    position: absolute;
    top: 20%;
    left: 20%;
}

.dice-face[data-value="4"] .dot:nth-child(2) {
    position: absolute;
    top: 20%;
    right: 20%;
}

.dice-face[data-value="4"] .dot:nth-child(3) {
    position: absolute;
    bottom: 20%;
    left: 20%;
}

.dice-face[data-value="4"] .dot:nth-child(4) {
    position: absolute;
    bottom: 20%;
    right: 20%;
}

.dice-face[data-value="5"] .dot:nth-child(1) {
    position: absolute;
    top: 20%;
    left: 20%;
}

.dice-face[data-value="5"] .dot:nth-child(2) {
    position: absolute;
    top: 20%;
    right: 20%;
}

.dice-face[data-value="5"] .dot:nth-child(3) {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dice-face[data-value="5"] .dot:nth-child(4) {
    position: absolute;
    bottom: 20%;
    left: 20%;
}

.dice-face[data-value="5"] .dot:nth-child(5) {
    position: absolute;
    bottom: 20%;
    right: 20%;
}

.dice-face[data-value="6"] .dot:nth-child(1) {
    position: absolute;
    top: 20%;
    left: 20%;
}

.dice-face[data-value="6"] .dot:nth-child(2) {
    position: absolute;
    top: 20%;
    right: 20%;
}

.dice-face[data-value="6"] .dot:nth-child(3) {
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translateY(-50%);
}

.dice-face[data-value="6"] .dot:nth-child(4) {
    position: absolute;
    top: 50%;
    right: 20%;
    transform: translateY(-50%);
}

.dice-face[data-value="6"] .dot:nth-child(5) {
    position: absolute;
    bottom: 20%;
    left: 20%;
}

.dice-face[data-value="6"] .dot:nth-child(6) {
    position: absolute;
    bottom: 20%;
    right: 20%;
}

.dice-result {
    margin-top: 15px;
    font-size: 2em;
    font-weight: bold;
    color: #667eea;
    min-height: 50px;
    opacity: 0;
    transition: opacity 0.5s;
}

.dice-result.show {
    opacity: 1;
}

/* Sağ Panel - Kartlar */
.right-panel {
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: fit-content;
    margin-right: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card-display {
    min-height: 300px;
    margin-bottom: 20px;
}

.card-placeholder {
    text-align: center;
    color: #999;
    padding: 50px 20px;
    font-style: italic;
}

.game-card {
    background: white;
    border: 3px solid #667eea;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-align: center;
    opacity: 0;
    transform: scale(0.5) rotateY(-90deg);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    flex-direction: column;
    min-height: 400px; /* Minimum yükseklik */
}

.game-card.card-animate {
    animation: cardFlipIn 0.6s ease-out forwards;
}

.game-card.card-show {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
}

@keyframes cardFlipIn {
    0% {
        opacity: 0;
        transform: scale(0.3) rotateY(-180deg) translateY(-50px);
    }
    50% {
        transform: scale(1.1) rotateY(-90deg) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg) translateY(0);
    }
}

.game-card:hover {
    transform: scale(1.05) rotateY(5deg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.turn-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.turn-card h3 {
    color: white;
}

.card-image-container {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.card-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 300px;
    object-fit: contain;
}

/* Kartlar popup container - ana kart ve taso kartları yan yana */
.cards-popup-container {
    display: flex;
    gap: 20px;
    align-items: stretch; /* Tüm kartlar aynı yükseklikte olsun */
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
}

.card-main-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
}

.card-main-wrapper .game-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.token-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
    justify-content: flex-start;
}

.token-card {
    min-width: 200px;
    max-width: 250px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 3px solid #ff9800;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%; /* Ana kartla aynı yükseklikte olsun */
}

.token-card .card-image-container {
    background: white;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.token-card .card-image-container img {
    max-height: 250px;
    object-fit: contain;
}

.token-card .card-tokens {
    color: #ff9800;
    font-size: 1em;
    margin-top: 10px;
}

.token-card .card-points {
    color: #ff9800;
    font-size: 1.1em;
    margin-top: 5px;
}

.game-card h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.game-card p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
}

.card-description {
    font-size: 0.95em;
    line-height: 1.5;
    color: #666;
    margin: 15px 0;
}

.card-points {
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 15px;
}

/* Kart Kategori Başlığı */
.card-category-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border: 2px solid #667eea;
}

.card-category-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.card-category-name {
    font-size: 1.1em;
    font-weight: bold;
    color: #667eea;
}

.card-tokens {
    font-size: 1em;
    color: #4caf50;
}

.drawn-tokens-display {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
    align-items: center;
}

.drawn-token-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    border: 2px solid #4caf50;
}

.drawn-token-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 5px;
}

.drawn-token-points {
    font-size: 0.9em;
    font-weight: bold;
    color: #4caf50;
}

.card-skip {
    font-size: 1em;
    color: #f44336;
}

/* Görev Kartı Butonları */
.task-card-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.task-completed-btn,
.task-not-completed-btn {
    flex: 1;
    padding: 15px 25px;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    min-width: 120px;
}

.task-completed-btn {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
}

.task-completed-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #388e3c 0%, #4caf50 100%);
}

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

.task-not-completed-btn {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

.task-not-completed-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(244, 67, 54, 0.4);
    background: linear-gradient(135deg, #d32f2f 0%, #f44336 100%);
}

.task-not-completed-btn:active {
    transform: scale(0.95);
}

.game-card.danger {
    border-color: #f44336;
}

.game-card.danger h3 {
    color: #f44336;
}

.game-card.reward {
    border-color: #4caf50;
}

.game-card.reward h3 {
    color: #4caf50;
}

.tokens-info {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.tokens-info h3 {
    color: #555;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

/* Kart Popup Modal */
.card-popup-modal {
    z-index: 2000;
}

.card-popup-content {
    background: transparent;
    box-shadow: none;
    padding: 0;
    max-width: 800px;
    width: 90%;
    position: relative;
}

.close-card-popup {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f44336;
    color: white;
    border: none;
    font-size: 1.3em;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-card-popup[style*="display: none"] {
    display: none !important;
}

.close-card-popup:hover {
    transform: scale(1.1);
    background: #d32f2f;
}

.card-popup-display {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content h2 {
    margin-bottom: 30px;
    color: #667eea;
    font-size: 2em;
}

.final-score-item {
    padding: 15px;
    margin: 10px 0;
    border-radius: 10px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.final-score-item.winner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
}

.new-game-btn {
    margin-top: 20px;
    padding: 15px 40px;
    font-size: 1.2em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}

.new-game-btn:hover {
    transform: scale(1.05);
}

/* Zar Popup Modal */
.dice-popup-modal {
    z-index: 2000;
}

.dice-popup-content {
    background: transparent;
    box-shadow: none;
    padding: 0;
    max-width: 400px;
}

.dice-popup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 2000px;
    perspective-origin: center center;
    margin-bottom: 30px;
}

.dice-popup {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
}

.dice-popup.rolling {
    animation: rollDicePopup 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes rollDicePopup {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    10% {
        transform: rotateX(90deg) rotateY(45deg) rotateZ(30deg);
    }
    20% {
        transform: rotateX(180deg) rotateY(90deg) rotateZ(60deg);
    }
    30% {
        transform: rotateX(270deg) rotateY(135deg) rotateZ(90deg);
    }
    40% {
        transform: rotateX(360deg) rotateY(180deg) rotateZ(120deg);
    }
    50% {
        transform: rotateX(450deg) rotateY(225deg) rotateZ(150deg);
    }
    60% {
        transform: rotateX(540deg) rotateY(270deg) rotateZ(180deg);
    }
    70% {
        transform: rotateX(630deg) rotateY(315deg) rotateZ(210deg);
    }
    80% {
        transform: rotateX(720deg) rotateY(360deg) rotateZ(240deg);
    }
    90% {
        transform: rotateX(810deg) rotateY(405deg) rotateZ(270deg);
    }
    100% {
        transform: rotateX(900deg) rotateY(450deg) rotateZ(300deg);
    }
}

.dice-popup.show-1 {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
}

.dice-popup.show-2 {
    transform: rotateX(0deg) rotateY(-90deg) rotateZ(0deg);
}

.dice-popup.show-3 {
    transform: rotateX(90deg) rotateY(0deg) rotateZ(0deg);
}

.dice-popup.show-4 {
    transform: rotateX(-90deg) rotateY(0deg) rotateZ(0deg);
}

.dice-popup.show-5 {
    transform: rotateX(0deg) rotateY(90deg) rotateZ(0deg);
}

.dice-popup.show-6 {
    transform: rotateX(0deg) rotateY(180deg) rotateZ(0deg);
}

.dice-face-popup {
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    border: 4px solid #667eea;
    border-radius: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2), inset 0 2px 4px rgba(255,255,255,0.8), inset 0 -2px 4px rgba(0,0,0,0.1);
    opacity: 1;
    backface-visibility: visible;
    transform-style: preserve-3d;
    pointer-events: none;
}

.dice-face-popup[data-value="1"] {
    transform: rotateY(0deg) translateZ(100px);
    opacity: 1;
}

.dice-face-popup[data-value="2"] {
    transform: rotateY(90deg) translateZ(100px);
    opacity: 1;
}

.dice-face-popup[data-value="3"] {
    transform: rotateX(-90deg) translateZ(100px);
    opacity: 1;
}

.dice-face-popup[data-value="4"] {
    transform: rotateX(90deg) translateZ(100px);
    opacity: 1;
}

.dice-face-popup[data-value="5"] {
    transform: rotateY(-90deg) translateZ(100px);
    opacity: 1;
}

.dice-face-popup[data-value="6"] {
    transform: rotateY(180deg) translateZ(100px);
    opacity: 1;
}

.dice-popup.show-1 .dice-face-popup[data-value="1"],
.dice-popup.show-2 .dice-face-popup[data-value="2"],
.dice-popup.show-3 .dice-face-popup[data-value="3"],
.dice-popup.show-4 .dice-face-popup[data-value="4"],
.dice-popup.show-5 .dice-face-popup[data-value="5"],
.dice-popup.show-6 .dice-face-popup[data-value="6"] {
    opacity: 1;
    z-index: 10;
}

/* Tüm yüzler her zaman görünür - gerçek küp efekti */
.dice-popup .dice-face-popup {
    opacity: 1 !important;
    backface-visibility: visible !important;
}

.dice-popup:not(.show-1):not(.show-2):not(.show-3):not(.show-4):not(.show-5):not(.show-6) .dice-face-popup[data-value="1"] {
    opacity: 1;
    z-index: 10;
}

.dot-popup {
    width: 28px;
    height: 28px;
    background: #000000; /* Varsayılan renk, JavaScript'te override edilecek */
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3), inset 0 1px 2px rgba(255,255,255,0.3);
    position: absolute;
}

.dice-face-popup[data-value="1"] .dot-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dice-face-popup[data-value="2"] .dot-popup:nth-child(1) {
    position: absolute;
    top: 25%;
    left: 25%;
}

.dice-face-popup[data-value="2"] .dot-popup:nth-child(2) {
    position: absolute;
    bottom: 25%;
    right: 25%;
}

.dice-face-popup[data-value="3"] .dot-popup:nth-child(1) {
    position: absolute;
    top: 25%;
    left: 25%;
}

.dice-face-popup[data-value="3"] .dot-popup:nth-child(2) {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dice-face-popup[data-value="3"] .dot-popup:nth-child(3) {
    position: absolute;
    bottom: 25%;
    right: 25%;
}

.dice-face-popup[data-value="4"] .dot-popup:nth-child(1) {
    position: absolute;
    top: 25%;
    left: 25%;
}

.dice-face-popup[data-value="4"] .dot-popup:nth-child(2) {
    position: absolute;
    top: 25%;
    right: 25%;
}

.dice-face-popup[data-value="4"] .dot-popup:nth-child(3) {
    position: absolute;
    bottom: 25%;
    left: 25%;
}

.dice-face-popup[data-value="4"] .dot-popup:nth-child(4) {
    position: absolute;
    bottom: 25%;
    right: 25%;
}

.dice-face-popup[data-value="5"] .dot-popup:nth-child(1) {
    position: absolute;
    top: 20%;
    left: 20%;
    transform: translate(-50%, -50%);
}

.dice-face-popup[data-value="5"] .dot-popup:nth-child(2) {
    position: absolute;
    top: 20%;
    right: 20%;
    transform: translate(50%, -50%);
}

.dice-face-popup[data-value="5"] .dot-popup:nth-child(3) {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dice-face-popup[data-value="5"] .dot-popup:nth-child(4) {
    position: absolute;
    bottom: 20%;
    left: 20%;
    transform: translate(-50%, 50%);
}

.dice-face-popup[data-value="5"] .dot-popup:nth-child(5) {
    position: absolute;
    bottom: 20%;
    right: 20%;
    transform: translate(50%, 50%);
}

.dice-face-popup[data-value="6"] .dot-popup:nth-child(1) {
    position: absolute;
    top: 20%;
    left: 20%;
    transform: translate(-50%, -50%);
}

.dice-face-popup[data-value="6"] .dot-popup:nth-child(2) {
    position: absolute;
    top: 20%;
    right: 20%;
    transform: translate(50%, -50%);
}

.dice-face-popup[data-value="6"] .dot-popup:nth-child(3) {
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translate(-50%, -50%);
}

.dice-face-popup[data-value="6"] .dot-popup:nth-child(4) {
    position: absolute;
    top: 50%;
    right: 20%;
    transform: translate(50%, -50%);
}

.dice-face-popup[data-value="6"] .dot-popup:nth-child(5) {
    position: absolute;
    bottom: 20%;
    left: 20%;
    transform: translate(-50%, 50%);
}

.dice-face-popup[data-value="6"] .dot-popup:nth-child(6) {
    position: absolute;
    bottom: 20%;
    right: 20%;
    transform: translate(50%, 50%);
}

.dice-popup-result {
    text-align: center;
    font-size: 2.5em;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-top: 20px;
    opacity: 0;
    transition: opacity 0.5s;
}

.dice-popup-result.show {
    opacity: 1;
}

/* Responsive */
@media (max-width: 1200px) {
    .game-container {
        grid-template-columns: 1fr;
        padding: 0 5px;
    }
    
    .left-panel, .right-panel {
        order: 2;
        margin: 10px 0;
    }
    
    .center-panel {
        order: 1;
    }
    
    .game-board {
        height: 70vh;
        min-height: 500px;
    }
}

@media (min-width: 1920px) {
    .game-container {
        max-width: 1920px;
        margin: 0 auto;
    }
    
    .game-board {
        height: 85vh;
        max-height: 1000px;
    }
}

/* Oyuncu Kartları Modal */
.player-cards-modal {
    z-index: 2000;
}

.player-cards-content {
    max-width: 95%;
    width: 1400px;
    max-height: 90vh;
    padding: 30px 40px;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.modal-header h2 {
    margin: 0;
    color: #667eea;
    font-size: 1.8em;
}

.close-modal-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f44336;
    color: white;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.close-modal-btn:hover {
    transform: scale(1.1);
    background: #d32f2f;
}

/* Sekme Sistemi */
.tabs-container {
    width: 100%;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    bottom: -2px;
}

.tab-btn:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
    display: block;
}

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

.player-cards-list,
.player-tokens-list {
    padding: 15px 0;
    max-height: 75vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.player-cards-list::-webkit-scrollbar,
.player-tokens-list::-webkit-scrollbar {
    width: 10px;
}

.player-cards-list::-webkit-scrollbar-track,
.player-tokens-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.player-cards-list::-webkit-scrollbar-thumb,
.player-tokens-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.player-cards-list::-webkit-scrollbar-thumb:hover,
.player-tokens-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.player-cards-grid-modal,
.player-tokens-grid-modal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    padding: 15px 0;
}

.player-card-item-modal {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 15px;
    padding: 0;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    min-height: 320px;
    max-width: 100%;
}

.player-card-item-modal:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.player-card-item-modal.danger {
    border-color: #f44336;
}

.player-card-item-modal.danger .card-image-wrapper-modal {
    border-bottom: 3px solid #f44336;
}

.player-card-item-modal.reward {
    border-color: #4caf50;
}

.player-card-item-modal.reward .card-image-wrapper-modal {
    border-bottom: 3px solid #4caf50;
}

.card-image-wrapper-modal {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.card-image-modal {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: white;
    display: block;
}

.card-info-modal {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 80px;
}

.card-desc-modal {
    font-size: 0.9em;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.5;
    flex: 1;
    word-wrap: break-word;
}

.card-stats-modal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.card-point-badge-modal,
.card-token-badge-modal,
.card-skip-badge-modal,
.card-extra-turn-badge-modal {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    white-space: nowrap;
}

.card-point-badge-modal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.card-token-badge-modal {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.card-skip-badge-modal {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

.card-extra-turn-badge-modal {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
}

/* Taso Görünümü */
.player-token-item-modal {
    background: white;
    border: 3px solid #ff9800;
    border-radius: 15px;
    padding: 0;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
    overflow: hidden;
    min-height: 320px;
    max-width: 100%;
}

.player-token-item-modal:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(255, 152, 0, 0.3);
}

.token-image-wrapper-modal {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.token-image-modal {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.token-info-modal {
    padding: 15px;
    text-align: center;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.token-points-badge-modal {
    color: white;
    font-size: 1.2em;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.no-cards-message {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1.2em;
    font-style: italic;
}

/* Sıra Değişikliği Bildirimi */
.turn-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(-100px);
    z-index: 3000;
    pointer-events: none;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.turn-notification.show {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

.turn-notification-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    padding: 40px 80px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3),
                0 0 0 4px rgba(102, 126, 234, 0.2),
                inset 0 2px 10px rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(102, 126, 234, 0.3);
    min-width: 400px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.turn-notification-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.turn-notification-content h2 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2),
                 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: pulse 0.6s ease-in-out;
}

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

.turn-notification.show .turn-notification-content h2 {
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.player-card-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.player-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.player-card-item.danger {
    background: rgba(244, 67, 54, 0.1);
    border-color: #f44336;
}

.player-card-item.reward {
    background: rgba(76, 175, 80, 0.1);
    border-color: #4caf50;
}

.card-image-container-small {
    width: 100%;
    height: 180px;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image-small {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

.card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-info h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1em;
    font-weight: 600;
    line-height: 1.3;
    min-height: 2.6em;
}

.card-desc-small {
    font-size: 0.85em;
    color: #666;
    line-height: 1.4;
    margin: 0 0 12px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-stats-small {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.card-point-badge,
.card-token-badge,
.card-skip-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
}

.card-point-badge {
    background: #e3f2fd;
    color: #1976d2;
}

.card-token-badge {
    background: #e8f5e9;
    color: #388e3c;
}

.card-skip-badge {
    background: #ffebee;
    color: #d32f2f;
}

.no-cards-message {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 1.2em;
    grid-column: 1 / -1;
}

/* Tur Atlama Popup */
.skip-turn-popup {
    z-index: 2500;
}

.skip-turn-content {
    max-width: 500px;
    padding: 40px;
    text-align: center;
}

.skip-turn-content h2 {
    color: #f44336;
    margin-bottom: 20px;
    font-size: 2em;
}

.skip-turn-content p {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.close-skip-popup-btn {
    padding: 12px 30px;
    font-size: 1.1em;
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.close-skip-popup-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-skip-popup-btn:active {
    transform: scale(0.95);
}

/* Bitişe Ulaşamama Uyarı Popup */
.finish-warning-popup {
    z-index: 2500;
}

.finish-warning-content {
    max-width: 500px;
    width: 90%;
    padding: 30px;
    text-align: center;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.finish-warning-content h2 {
    color: #ff9800;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.finish-warning-content p {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.6;
}

.close-finish-warning-popup-btn {
    padding: 12px 30px;
    font-size: 1.1em;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
    font-weight: bold;
}

.close-finish-warning-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 152, 0, 0.6);
    background: linear-gradient(135deg, #f57c00 0%, #ff9800 100%);
}

.close-finish-warning-popup-btn:active {
    transform: scale(0.95);
}

/* Bitişe Ulaşma Başarı Popup */
.finish-success-popup {
    z-index: 2500;
}

.finish-success-content {
    max-width: 500px;
    width: 90%;
    padding: 30px;
    text-align: center;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.finish-success-content h2 {
    color: #4caf50;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.finish-success-content p {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.6;
}

.close-finish-success-popup-btn {
    padding: 12px 30px;
    font-size: 1.1em;
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    font-weight: bold;
}

.close-finish-success-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(76, 175, 80, 0.6);
    background: linear-gradient(135deg, #388e3c 0%, #4caf50 100%);
}

.close-finish-success-popup-btn:active {
    transform: scale(0.95);
}
