/* Ek oyunlar (2026-10): Kaydırmalı Bulmaca, Zıpla Zıpla, Piyano Tuşları, Harf Çarkı, Doğru mu Yanlış mı,
   Dama, Blok Yerleştir, Tavla, Kule Kur, Kızma Birader. Yalnızca oyun sayfasında yüklenir. */

/* .btn'nin display kuralı hidden özniteliğini ezmesin */
.game-inner [hidden] { display: none !important; }
/* ---------- Mevcut oyunlar için düzeltmeler ---------- */
/* Solitaire: dar ekranda 7 sütun yatay kaydırmadan sığsın */
@media (max-width: 480px) {
    .game-solitaire { overflow-x: visible; --sol-fan: 17px; }
    .game-solitaire-top, .game-solitaire-table { grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 0; gap: 0.25rem; }
    .game-solitaire-gap { min-width: 0; }
    .game-solitaire-table, .game-solitaire-pile { min-height: 17rem; }
    .game-solitaire .game-card { width: 100%; height: auto; aspect-ratio: 2 / 3; padding: 0; border-radius: 0.35rem; }
    .game-solitaire .game-card-top { left: 0.14rem; top: 0.14rem; gap: 0; }
    .game-solitaire .game-card-top b, .game-solitaire .game-card-top i { font-size: 0.72rem; }
    .game-solitaire .game-card-bottom { display: none; }
    .game-solitaire .game-card:not(.is-back) .game-card-center i { font-size: 1.15rem; }
    .game-solitaire .game-foundation { font-size: 0.9rem; }
}
/* Izgara hücresi olan butonlarda genel .btn kenar boşluğu ve min. yükseklik sütunları taşırıyordu (Kelime Avı, Tombala…) */
.game-inner .ws-cell, .game-inner .bingo-cell, .game-inner .ng-cell, .game-inner .m3-cell, .game-inner .rv-cell { margin: 0; min-height: 0; }
.game-chess .game-status { margin: 0.55rem 0 0.65rem; }
/* Satranç: son hamle ve şah çekilen şah */
.game-chess-cell.is-last { box-shadow: inset 0 0 0 100px rgba(232, 163, 23, 0.2); }
.game-chess-cell.is-check { box-shadow: inset 0 0 0 100px rgba(196, 92, 62, 0.45); }
.game-chess-cell.is-selected.is-last { box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 0 100px rgba(232, 163, 23, 0.2); }
.game-chess-promo .btn { min-width: 0; }
/* Sudoku: aynı rakamlar ve notlar */
.game-sudoku-cell.is-same { color: var(--accent); }
.game-sudoku-cell.is-notes { font-size: 0.55rem; letter-spacing: 0.05em; color: var(--text-muted); word-break: break-all; line-height: 1.1; }

/* Mod butonları sitedeki diğer oyunlarla aynı (main.css .game-mode-row); dar ekranda 3 buton tek satıra sığsın. */
@media (max-width: 420px) {
    .game-slide .game-mode-row, .game-dama .game-mode-row, .game-ludo .game-mode-row,
    .game-chess .game-mode-row:not(.game-chess-promo), .game-sudoku .game-mode-row, .game-aim .game-mode-row { flex-wrap: nowrap; }
    .game-slide .game-mode-row .btn, .game-dama .game-mode-row .btn, .game-ludo .game-mode-row .btn,
    .game-chess .game-mode-row .btn, .game-sudoku .game-mode-row .btn, .game-aim .game-mode-row .btn { flex: 1 1 0; min-width: 0; }
}
@media (max-width: 420px) { .game-chess-promo { flex-wrap: wrap; } .game-chess-promo .btn { flex: 1 1 45%; } }
.game-x-canvas { display: block; width: 100%; height: auto; margin: 0 auto; border-radius: var(--radius-lg); border: 1px solid var(--game-border); background: var(--game-panel-bg); touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }

/* ---------- Kaydırmalı Bulmaca ---------- */
.game-slide-board {
    --slide-n: 4;
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    margin: 0.4rem auto 0;
    padding: 6px;
    border: 1px solid var(--game-border);
    border-radius: var(--radius-lg);
    background: var(--game-panel-bg);
    box-sizing: border-box;
}
.game-slide-tile {
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc((100% - 12px) / var(--slide-n));
    height: calc((100% - 12px) / var(--slide-n));
    padding: 3px;
    border: 0;
    background: transparent;
    font: 700 clamp(1rem, 6vw, 1.7rem) / 1 var(--font-mono);
    color: var(--text-primary);
    cursor: pointer;
    transition: transform 0.13s ease;
    -webkit-tap-highlight-color: transparent;
}
.game-slide-tile::before {
    content: '';
    position: absolute;
    inset: 3px;
    z-index: -1;
    border-radius: 6px;
    background: linear-gradient(160deg, var(--game-surface, var(--bg-card)), var(--game-canvas-bg));
    box-shadow: inset 0 0 0 1px var(--game-border), 0 2px 0 rgba(0, 0, 0, 0.25);
}
.game-slide-tile { z-index: 0; isolation: isolate; }
.game-slide-tile.is-home { color: var(--accent); }
.game-slide-tile.is-home::before { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent), 0 2px 0 rgba(0, 0, 0, 0.25); }
.game-slide-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.game-slide-board.is-solved { box-shadow: 0 0 0 2px var(--sage); }
.game-slide-board.is-solved .game-slide-tile { color: var(--sage); cursor: default; }

.game-skyjump-canvas, .game-stack-canvas { max-width: 400px; }
.game-piano-canvas { max-width: 360px; cursor: pointer; background: var(--game-canvas-bg); }

/* ---------- Harf Çarkı ---------- */
.game-wheel-slots { display: flex; flex-direction: column; align-items: center; gap: 0.32rem; margin: 0.3rem auto 0.5rem; }
.game-wheel-slot-row { display: flex; gap: 4px; }
.game-wheel-slot {
    display: inline-flex; align-items: center; justify-content: center;
    width: clamp(1.7rem, 7.5vw, 2.1rem); aspect-ratio: 1;
    border: 1px solid var(--game-border); border-radius: 6px; background: var(--game-panel-bg);
    font: 700 clamp(0.9rem, 4vw, 1.1rem) / 1 var(--font-mono); color: var(--text-primary);
}
.game-wheel-slot.is-filled { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, var(--game-border)); }
.game-wheel-slot.is-hint { color: var(--accent); }
.game-wheel-slot-row.is-found .game-wheel-slot { background: color-mix(in srgb, var(--sage) 28%, var(--game-panel-bg)); border-color: color-mix(in srgb, var(--sage) 60%, transparent); }
.game-wheel-current {
    min-height: 2.6rem; margin: 0.2rem auto 0; text-align: center;
    font: 800 clamp(1.4rem, 7vw, 1.9rem) / 2.6rem var(--font-mono); letter-spacing: 0.18em; color: var(--text-primary);
}
.game-wheel-current.is-empty::before { content: '·  ·  ·'; color: var(--text-muted); letter-spacing: 0.1em; }
.game-wheel-current.is-ok { animation: gameWheelOk 0.45s ease; }
.game-wheel-current.is-bad { animation: gameWheelBad 0.4s ease; }
.game-wheel-current.is-dup { animation: gameWheelDup 0.45s ease; }
@keyframes gameWheelOk { 0% { color: var(--sage); transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes gameWheelBad { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); color: var(--rust); } 75% { transform: translateX(8px); color: var(--rust); } }
@keyframes gameWheelDup { 0% { color: var(--accent); } 100% { color: var(--text-primary); } }
.game-wheel-ring {
    position: relative; width: min(290px, 82vw); aspect-ratio: 1; margin: 0.4rem auto 0;
    border-radius: 50%; border: 1px solid var(--game-border);
    background: radial-gradient(circle, var(--game-panel-bg) 0 58%, color-mix(in srgb, var(--accent) 8%, var(--game-panel-bg)) 100%);
    touch-action: none; -webkit-user-select: none; user-select: none;
}
.game-wheel-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.game-wheel-lines polyline { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; opacity: 0.75; }
.game-wheel-letter {
    position: absolute; z-index: 2; width: 23%; aspect-ratio: 1; transform: translate(-50%, -50%);
    display: flex; align-items: center; justify-content: center; padding: 0;
    border: 2px solid var(--game-border); border-radius: 50%; background: var(--bg-card);
    font: 800 clamp(1.25rem, 6.5vw, 1.75rem) / 1 var(--font-main); color: var(--text-primary);
    cursor: pointer; touch-action: none; -webkit-tap-highlight-color: transparent; transition: background 0.12s ease, transform 0.12s ease;
}
.game-wheel-letter.is-active { background: var(--accent); border-color: var(--accent); color: #1a1208; transform: translate(-50%, -50%) scale(1.06); }

/* ---------- Doğru mu Yanlış mı ---------- */
.game-tf-card {
    max-width: 420px; margin: 0.4rem auto 0; padding: 1rem 1.1rem 1.1rem; text-align: center;
    border: 1px solid var(--game-border); border-radius: var(--radius-lg); background: var(--game-panel-bg);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.game-tf-card.is-ok { border-color: var(--sage); }
.game-tf-card.is-bad { border-color: var(--rust); box-shadow: 0 0 0 2px color-mix(in srgb, var(--rust) 35%, transparent); }
.game-tf-bar { height: 8px; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, var(--text-muted) 22%, transparent); }
.game-tf-bar-fill { display: block; height: 100%; background: var(--accent); transform-origin: left center; }
.game-tf-eq { margin: 1.1rem 0 0.4rem; font: 800 clamp(2rem, 10vw, 3rem) / 1.1 var(--font-mono); color: var(--text-primary); }
.game-tf-note { min-height: 1.4rem; margin: 0; font-size: 0.9rem; color: var(--text-secondary); }
.game-tf-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; max-width: 420px; margin: 0.8rem auto 0; }
.game-inner .game-tf-answers .btn { margin: 0; min-height: 3.4rem; font-size: 1.15rem; font-weight: 800; }
.game-tf-yes { color: var(--sage) !important; border-color: color-mix(in srgb, var(--sage) 55%, transparent) !important; }
.game-tf-no { color: var(--rust) !important; border-color: color-mix(in srgb, var(--rust) 55%, transparent) !important; }

/* ---------- Dama ---------- */
.game-dama-board {
    display: grid; grid-template-columns: repeat(8, 1fr); width: 100%; max-width: 440px; aspect-ratio: 1; margin: 0.4rem auto 0;
    border: 3px solid #6b4a2b; border-radius: var(--radius-lg); overflow: hidden; background: #6b4a2b;
}
.game-dama-cell {
    position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; aspect-ratio: 1;
    padding: 0; border: 0; border-radius: 0; background: #ecd9b0; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.game-dama-cell.is-dark { background: #d9bd8a; }
.game-dama-cell.is-last { box-shadow: inset 0 0 0 100px rgba(232, 163, 23, 0.22); }
.game-dama-cell.is-selected { box-shadow: inset 0 0 0 3px var(--accent); }
.game-dama-cell.is-target::after {
    content: ''; position: absolute; width: 30%; aspect-ratio: 1; border-radius: 50%;
    background: rgba(38, 140, 88, 0.8); box-shadow: 0 0 0 4px rgba(38, 140, 88, 0.25); pointer-events: none;
}
.game-dama-piece {
    position: relative; width: 78%; aspect-ratio: 1; border-radius: 50%;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35), inset 0 -3px 6px rgba(0, 0, 0, 0.25);
}
.game-dama-piece.is-white { background: radial-gradient(circle at 35% 30%, #fffdf6, #d8cbb0 70%); border: 1px solid #a8977a; }
.game-dama-piece.is-black { background: radial-gradient(circle at 35% 30%, #5a4a40, #1b1410 70%); border: 1px solid #000; }
.game-dama-piece.is-king::after {
    content: '♛'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: clamp(0.85rem, 4.5vw, 1.45rem); color: #c8901a; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
.game-dama-piece.is-black.is-king::after { color: #f0c24a; }
.game-dama-piece.is-ghost { opacity: 0.3; }
.game-dama-cell.is-movable .game-dama-piece { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 70%, transparent), 0 3px 0 rgba(0, 0, 0, 0.35); }

/* ---------- Blok Yerleştir ---------- */
.game-blocks-board {
    display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; width: 100%; max-width: 400px; aspect-ratio: 1;
    margin: 0.3rem auto 0; padding: 6px; box-sizing: border-box;
    border: 1px solid var(--game-border); border-radius: var(--radius-lg); background: var(--game-panel-bg); touch-action: none;
}
.game-blocks-board.is-over { opacity: 0.6; }
.game-blocks-cell { border-radius: 4px; background: color-mix(in srgb, var(--text-muted) 14%, transparent); }
.game-blocks-cell.is-preview { opacity: 0.45; }
.game-blocks-cell.will-clear { filter: brightness(1.35); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55) inset; }
.game-blocks-cell.is-clearing { animation: gameBlocksPop 0.32s ease forwards; }
@keyframes gameBlocksPop { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(0.2); opacity: 0; } }
.color-1.game-blocks-cell, .color-1.game-blocks-block { background: linear-gradient(160deg, #ff8a7a, #e0453a); }
.color-2.game-blocks-cell, .color-2.game-blocks-block { background: linear-gradient(160deg, #ffd36b, #e5a21b); }
.color-3.game-blocks-cell, .color-3.game-blocks-block { background: linear-gradient(160deg, #7ee0a0, #22a35a); }
.color-4.game-blocks-cell, .color-4.game-blocks-block { background: linear-gradient(160deg, #84b6ff, #3b72e6); }
.color-5.game-blocks-cell, .color-5.game-blocks-block { background: linear-gradient(160deg, #c9a2ff, #8a52e8); }
.color-6.game-blocks-cell, .color-6.game-blocks-block { background: linear-gradient(160deg, #7fe3e8, #1fa7b3); }
.game-blocks-tray { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; max-width: 400px; margin: 0.75rem auto 0; }
.game-blocks-slot { display: flex; align-items: center; justify-content: center; min-height: 108px; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--text-muted) 7%, transparent); }
.game-blocks-piece {
    --cell: 19px; display: grid; gap: 2px;
    grid-template-columns: repeat(var(--pw), var(--cell)); grid-template-rows: repeat(var(--ph), var(--cell));
    padding: 6px; cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; border-radius: 8px;
}
.game-blocks-piece.is-selected { outline: 2px solid var(--accent); outline-offset: 2px; }
.game-blocks-piece.is-blocked { opacity: 0.35; }
.game-blocks-piece.is-dragging { opacity: 0.2; }
.game-blocks-block { border-radius: 3px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18); }
.game-blocks-ghost {
    position: fixed; left: 0; top: 0; z-index: 10000; pointer-events: none; padding: 0; gap: 3px;
    grid-template-columns: repeat(var(--pw), calc(var(--cell) - 3px)); grid-template-rows: repeat(var(--ph), calc(var(--cell) - 3px));
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35));
}
.game-blocks-ghost.is-invalid { opacity: 0.55; }
@media (max-width: 420px) { .game-blocks-piece { --cell: 15px; } .game-blocks-slot { min-height: 92px; } }

/* ---------- Tavla ---------- */
.game-tavla-board {
    display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 560px; margin: 0.3rem auto 0; padding: 6px; box-sizing: border-box;
    border-radius: var(--radius-lg); background: #5b3a22; box-shadow: inset 0 0 0 3px #3e2716;
}
.game-tavla-row { display: grid; grid-template-columns: repeat(6, 1fr) 0.85fr repeat(6, 1fr) 0.95fr; height: clamp(124px, 36vw, 205px); background: #e9d3a7; border-radius: 4px; overflow: hidden; }
.game-tavla-point, .game-tavla-bar, .game-tavla-off {
    position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 2px 0; margin: 0;
    border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.game-tavla-row.is-bottom .game-tavla-point, .game-tavla-row.is-bottom .game-tavla-bar, .game-tavla-row.is-bottom .game-tavla-off { flex-direction: column-reverse; }
.game-tavla-point::before { content: ''; position: absolute; inset: 0 6% 12%; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.game-tavla-row.is-bottom .game-tavla-point::before { inset: 12% 6% 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.game-tavla-point.is-odd::before { background: #8c3b2b; }
.game-tavla-point.is-even::before { background: #c79a5c; }
.game-tavla-bar, .game-tavla-off { background: #4a2e1b; }
.game-tavla-stack { position: relative; z-index: 1; display: flex; flex-direction: inherit; align-items: center; width: 100%; }
.game-tavla-checker {
    display: flex; align-items: center; justify-content: center; width: 88%; max-width: 34px; aspect-ratio: 1; flex: none; border-radius: 50%;
    font: 800 clamp(0.55rem, 2.4vw, 0.8rem) / 1 var(--font-main);
}
.game-tavla-checker.is-white { background: radial-gradient(circle at 35% 30%, #fffdf6, #d9cfbd 75%); border: 1px solid #9c8b70; color: #3a2a1c; }
.game-tavla-checker.is-black { background: radial-gradient(circle at 35% 30%, #5b4a40, #17110d 75%); border: 1px solid #000; color: #f4e9d8; }
.game-tavla-num { position: absolute; z-index: 2; left: 0; right: 0; text-align: center; font: 600 0.55rem / 1 var(--font-mono); color: rgba(60, 35, 20, 0.6); pointer-events: none; }
.game-tavla-row.is-top .game-tavla-num { bottom: 1px; }
.game-tavla-row.is-bottom .game-tavla-num { top: 1px; }
.game-tavla-offcount { display: inline-flex; align-items: center; justify-content: center; min-width: 1.6rem; height: 1.6rem; margin: 4px 0; padding: 0 0.3rem; border-radius: 999px; font: 800 0.75rem / 1 var(--font-main); }
.game-tavla-offcount.is-white { background: #fffdf6; color: #3a2a1c; }
.game-tavla-offcount.is-black { background: #17110d; color: #f4e9d8; }
.game-tavla-point.is-source .game-tavla-stack > :last-child, .game-tavla-bar.is-source .game-tavla-stack > :last-child { box-shadow: 0 0 0 3px rgba(232, 163, 23, 0.9); }
.game-tavla-row.is-bottom .game-tavla-point.is-source .game-tavla-stack > :last-child { box-shadow: none; }
.game-tavla-row.is-bottom .game-tavla-point.is-source .game-tavla-stack > :first-child { box-shadow: 0 0 0 3px rgba(232, 163, 23, 0.9); }
.game-tavla-row.is-top .game-tavla-point.is-source .game-tavla-stack > :first-child { box-shadow: none; }
.game-tavla-point.is-selected::after, .game-tavla-bar.is-selected::after { content: ''; position: absolute; inset: 0; background: rgba(232, 163, 23, 0.28); pointer-events: none; }
.game-tavla-point.is-dest::after, .game-tavla-off.is-dest::after { content: ''; position: absolute; inset: 0; background: rgba(46, 160, 98, 0.38); box-shadow: inset 0 0 0 2px rgba(46, 160, 98, 0.95); pointer-events: none; }
.game-tavla-point.is-last::before { filter: brightness(1.25) saturate(1.2); }
.game-tavla-dice { display: flex; justify-content: center; gap: 0.6rem; min-height: 2.8rem; margin: 0.7rem auto 0; }
.game-tavla-die, .game-ludo-die { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); width: 2.7rem; height: 2.7rem; padding: 0.32rem; gap: 2px; box-sizing: border-box; border-radius: 0.5rem; background: #fffdf6; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25); }
.game-tavla-die i, .game-ludo-die i { display: block; border-radius: 50%; }
.game-tavla-die i.on, .game-ludo-die i.on { background: #1a1208; margin: 12%; }
.game-tavla-die.is-used { opacity: 0.3; }
.game-tavla-die.is-ai { background: #2a211b; }
.game-tavla-die.is-ai i.on { background: #f4e9d8; }
@media (max-width: 480px) { .game-tavla-num { display: none; } .game-tavla-board { padding: 4px; gap: 4px; } }

/* ---------- Kızma Birader ---------- */
.game-ludo-board {
    --ludo-blue: #3b72e6; --ludo-green: #22a35a; --ludo-yellow: #e5b21b; --ludo-red: #e0453a;
    display: grid; grid-template-columns: repeat(11, 1fr); grid-template-rows: repeat(11, 1fr); gap: 2px;
    width: 100%; max-width: 460px; aspect-ratio: 1; margin: 0.3rem auto 0; padding: 6px; box-sizing: border-box;
    border: 1px solid var(--game-border); border-radius: var(--radius-lg); background: #f4ead6;
}
.game-ludo-cell { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; border-radius: 50%; }
.game-ludo-cell.is-track { background: #fffdf8; box-shadow: inset 0 0 0 1px rgba(60, 40, 20, 0.35); }
.game-ludo-cell.color-blue { --c: var(--ludo-blue); }
.game-ludo-cell.color-green { --c: var(--ludo-green); }
.game-ludo-cell.color-yellow { --c: var(--ludo-yellow); }
.game-ludo-cell.color-red { --c: var(--ludo-red); }
.game-ludo-cell.is-start { background: color-mix(in srgb, var(--c) 55%, #fff); box-shadow: inset 0 0 0 2px var(--c); }
.game-ludo-cell.is-home { background: color-mix(in srgb, var(--c) 45%, #fff); box-shadow: inset 0 0 0 1px var(--c); }
.game-ludo-cell.is-base { background: color-mix(in srgb, var(--c) 22%, #fff); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 70%, transparent); }
.game-ludo-cell.is-center { border-radius: 4px; background: conic-gradient(var(--ludo-green) 0 25%, var(--ludo-yellow) 0 50%, var(--ludo-red) 0 75%, var(--ludo-blue) 0); }
.game-ludo-piece {
    position: relative; z-index: 2; width: 78%; aspect-ratio: 1; padding: 0; border-radius: 50%; cursor: default;
    border: 2px solid rgba(0, 0, 0, 0.4); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3), inset 0 -3px 4px rgba(0, 0, 0, 0.2);
    -webkit-tap-highlight-color: transparent;
}
.game-ludo-piece.color-blue { background: radial-gradient(circle at 35% 30%, #a9c6ff, var(--ludo-blue) 70%); }
.game-ludo-piece.color-green { background: radial-gradient(circle at 35% 30%, #9fe7bb, var(--ludo-green) 70%); }
.game-ludo-piece.color-yellow { background: radial-gradient(circle at 35% 30%, #fff0b0, var(--ludo-yellow) 70%); }
.game-ludo-piece.color-red { background: radial-gradient(circle at 35% 30%, #ffb3aa, var(--ludo-red) 70%); }
.game-ludo-piece.is-movable { cursor: pointer; animation: gameLudoPulse 0.9s ease-in-out infinite; }
@keyframes gameLudoPulse { 0%, 100% { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ludo-red); } 50% { box-shadow: 0 0 0 2px #fff, 0 0 0 7px color-mix(in srgb, var(--ludo-red) 40%, transparent); } }
.game-ludo-piece.is-last { outline: 2px solid rgba(255, 255, 255, 0.9); outline-offset: 1px; }
.game-ludo-target { position: absolute; z-index: 1; width: 46%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed var(--ludo-red); pointer-events: none; }
.game-ludo-dicebar { display: flex; align-items: center; justify-content: center; gap: 0.8rem; margin: 0.8rem auto 0; }
.game-ludo-die { width: 3.1rem; height: 3.1rem; border: 3px solid var(--c, #888); cursor: pointer; }
.game-ludo-die:disabled { cursor: default; }
.game-ludo-die.color-blue { --c: #3b72e6; } .game-ludo-die.color-green { --c: #22a35a; } .game-ludo-die.color-yellow { --c: #e5b21b; } .game-ludo-die.color-red { --c: #e0453a; }
.game-ludo-die.is-rolled { animation: gameLudoRoll 0.35s ease; }
@keyframes gameLudoRoll { 0% { transform: rotate(-25deg) scale(0.85); } 100% { transform: rotate(0) scale(1); } }
.game-inner .game-ludo-dicebar .btn { margin: 0; }
