/* --- GENEL RESET VE TASARIM --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    width: 100%;
    min-width: 100%;
    overflow-x: hidden;
    min-height: 100dvh;
    box-sizing: border-box;
    scrollbar-gutter: stable both-edges;
}

body {
    background-color: #2c3e50;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
    min-width: 100%;
    width: 100%;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    color: white;
    overflow-x: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease-in;
    box-sizing: border-box;
}

body.i18n-ready {
    opacity: 1;
    visibility: visible;
}

#game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: min(100%, 100vw);
    max-width: 100vw;
    min-width: 0;
}

/* --- ÜST BİLGİ PANELİ --- */
#info-panel {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 14px 16px 12px;
    background: linear-gradient(180deg, #3c2916 0%, #24180d 100%);
    border: 1px solid rgba(219, 169, 80, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 28px rgba(0, 0, 0, 0.32);
    border-radius: 16px;
}

#turn-indicator {
    line-height: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    padding: 14px 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, #463524 0%, #2d1f15 100%);
    border: 1px solid rgba(240, 200, 120, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font-size: 1rem;
    font-weight: 700;
    color: #f9e6c3;
    text-align: center;
}

#timer-container {
    min-height: 58px;
    padding: 16px 12px 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, #2c1b11 0%, #4a3220 100%);
    border: 1px solid rgba(229, 177, 96, 0.32);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    color: #ffebc5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Timer title element (explicit in HTML) */
#timer-container .timer-title {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 238, 190, 0.72);
    margin-bottom: 6px;
}

#dice-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 6px 0;
}

#dice-display {
    display: flex;
    gap: 10px;
}

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

.die-rights {
    display: none;
    gap: 4px;
    height: 8px;
}

#dice-display.is-double-roll .die-rights {
    display: flex;
}

.die-right {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 32%, #fff6ca 0%, #f5d369 45%, #c89227 100%);
    box-shadow: 0 0 6px rgba(245, 208, 96, 0.75);
    transition: opacity 140ms ease, filter 140ms ease;
}

.die-right.is-spent {
    opacity: 0.2;
    filter: saturate(0.35) brightness(0.8);
    box-shadow: none;
}

.die {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(145deg, #f9f0dc 0%, #d2b685 100%);
    color: #2f1f10;
    border: 1px solid rgba(148, 98, 32, 0.42);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.65), 0 6px 12px rgba(0, 0, 0, 0.22);
    font-size: 1rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    min-width: 44px;
}

#status-message {
    display: none;
}
