﻿#board {
    width: 400px;
    height: 400px;
    border: 14px solid #55566B;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.7), 0 6px 15px rgba(0, 0, 0, 0.4);
    border-radius: 3px;
}

.grid10 {
	display: grid;
    grid-template-columns: repeat(10, 40px);
    grid-template-rows: repeat(10, 40px);	
}

.grid8 {
	display: grid;
    grid-template-columns: repeat(8, 50px);
    grid-template-rows: repeat(8, 50px);	
}

.cell10 {
	width: 40px;
	height: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	user-select: none;
	overflow: hidden;
}

.cell8 {
	width: 50px;
	height: 50px;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	user-select: none;
	overflow: hidden;
}

.black-cell::before,
.white-cell::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* --- SCHWARZE FELDER (3 Varianten) --- */
.black-cell::before { background-color: #6A615E; background-image: url('../spiele/scufflestones/cellBLACK1.jpg'); }
.black-var-1::before { background-image: url('../spiele/scufflestones/cellBLACK2.jpg'); }
.black-var-2::before { background-image: url('../spiele/scufflestones/cellBLACK3.jpg'); }

/* --- WEISSE FELDER (3 Varianten) --- */
.white-cell::before { background-color: #D9BEA3; background-image: url('../spiele/scufflestones/cellWHITE1.jpg'); }
.white-var-1::before { background-image: url('../spiele/scufflestones/cellWHITE2.jpg'); }
.white-var-2::before { background-image: url('../spiele/scufflestones/cellWHITE3.jpg'); }

/* --- DREHUNG NUR FÃœR DAS FELD-BILD (::before) --- */
.rot-180::before { transform: rotate(180deg); }


.piece10, .piece8 {
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
    z-index: 10;
    box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.6);
}

.piece10 { width: 32px; height: 32px; }
.piece8  { width: 38px; height: 38px; }

.piece-orange::before,
.piece-blue::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-size: 106%; /* Zoomt minimal hinein gegen eventuelle weiÃŸe JPG-Ecken */
    background-position: center;
    transform: rotate(var(--rot, 0deg));
    z-index: 1;
}

.piece-orange::before {
    background-image: url('../spiele/scufflestones/pieceORANGE.jpg');
}

.piece-blue::before {
    background-image: url('../spiele/scufflestones/pieceBLUE.jpg');
}

.valid-move {
    cursor: pointer;
}

.valid-move::after {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.35);
    border: 2px solid rgba(0, 0, 0, 0.3);
    z-index: 5;
    transition: transform 0.15s ease;
}

.valid-move:hover::after {
    transform: scale(1.3);
    background-color: rgba(255, 255, 255, 0.6);
}

.last-move::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(255, 220, 100, 0.28);
    box-shadow: inset 0 0 0 2px rgba(255, 220, 100, 0.65);
    z-index: 1;
    pointer-events: none;
}

@keyframes flipPiece {
    0% {
        transform: perspective(200px) rotateY(180deg) scale(1);
        filter: brightness(1);
    }
    50% {
        transform: perspective(200px) rotateY(90deg) scale(1.18);
        filter: brightness(1.45);
        box-shadow: 0 0 14px rgba(255, 225, 110, 0.9);
    }
    100% {
        transform: perspective(200px) rotateY(0deg) scale(1);
        filter: brightness(1);
    }
}

.piece-flip {
    animation: flipPiece 0.45s ease-in-out;
}

.mute {
	background: none; 
	border: none; 
	font-size: 20px; 
	cursor: pointer; 
	padding: 0; 
	user-select: none;
}

.volume {
	cursor: pointer; 
	accent-color: #55566B; 
	vertical-align: middle; 
	-webkit-appearance: none; 
	background: #ddd; 
	height: 4px; 
	border-radius: 2px;
	width: 50px;
}

/* 1. Für Chrome, Edge, Safari und Opera */
#volumeSlider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #55566B;;
	cursor: pointer;
	transition: transform 0.1s ease;
}

#volumeSlider::-webkit-slider-thumb:active {
	transform: scale(1.2);
}

/* 2. Für Mozilla Firefox */
#volumeSlider::-moz-range-thumb {
	width: 10px;
	height: 10px;
	border: none;
	border-radius: 50%;
	background: #55566B;;
	cursor: pointer;
	transition: transform 0.1s ease;
}

#volumeSlider::-moz-range-thumb:active {
	transform: scale(1.2);
}

.control {
	display: flex; 
	align-items: center; 
    text-align: center;
	gap: 5px; 
	font-family: sans-serif; 
	margin-bottom: 5px;
}	


