/* Mines Oyunu CSS */

/* Backgradient Dark */
.backgradientDark {
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.9) 0%, rgba(33, 33, 33, 0.9) 100%);
    border: 1px solid rgba(33, 33, 33, 0.5);
}

/* Mines Step Animations */
.mines-step-1 {
    background: linear-gradient(135deg, rgba(227, 146, 20, 0.1) 0%, rgba(227, 146, 20, 0.05) 100%);
    border-radius: 0.5rem;
    opacity: 0.5;
}

.mines-step-2-desktop,
.mines-step-2 {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-radius: 0.5rem;
    opacity: 0.3;
}

.mines-step-3 {
    background: linear-gradient(135deg, rgba(33, 33, 33, 0.8) 0%, rgba(17, 17, 17, 0.8) 100%);
    border-radius: 0.5rem;
}

/* Grid HÃ¼creleri */
.mines-cell {
    position: relative;
    flex: 0 0 auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0.5rem;
    border: 2px solid rgba(227, 146, 20, 0.4);
    background-color: rgb(17, 17, 17);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mines-cell:hover:not(.revealed):not(.bomb) {
    border-color: rgba(227, 146, 20, 0.6);
    transform: scale(1.05);
}

.mines-cell.active {
    border-color: rgba(227, 146, 20, 0.6);
    background-color: rgba(227, 146, 20, 0.1);
    cursor: pointer;
}

.mines-cell.revealed {
    border-color: rgba(33, 33, 33, 0.4);
    background-color: rgb(17, 17, 17);
    cursor: default;
}

.mines-cell.bomb {
    border-color: rgba(239, 68, 68, 0.6);
    background-color: rgba(239, 68, 68, 0.2);
}

.mines-cell.diamond {
    border-color: rgba(227, 146, 20, 0.6);
    background-color: rgba(227, 146, 20, 0.2);
}

.mines-cell-mark-overlay {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-radius: 0.5rem;
    pointer-events: none;
    overflow: hidden;
}

.mines-cell.revealed .mines-cell-mark-overlay,
.mines-cell.bomb .mines-cell-mark-overlay {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

.mines-cell-mark-img {
    position: absolute;
    width: 60%;
    height: 60%;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1;
}

.mines-cell-mark-overlay-dark {
    position: absolute;
    inset: 0;
    background-color: rgba(33, 33, 33, 0.5);
    z-index: 2;
    border-radius: 0.5rem;
}

.mines-cell:hover:not(.revealed) .mines-cell-mark-img {
    opacity: 1;
    transform: scale(1.1);
}

.mines-cell-coin-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: mines-coin-reveal 0.5s ease-out;
}

.mines-cell-bomb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: mines-bomb-reveal 0.4s ease-out;
}

@keyframes mines-bomb-reveal {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-180deg);
    }
    50% {
        transform: scale(1.3) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.mines-cell-pattern-mark {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: mines-pattern-mark-appear 0.3s ease-out;
    filter: brightness(1.2);
}

@keyframes mines-pattern-mark-appear {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes mines-coin-reveal {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-180deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}


/* Manuel/Otomatik Mod Toggle */
.mines-mode-toggle {
    position: relative;
    margin-bottom: 1.5rem;
    display: flex;
    width: 100%;
    justify-content: center;
    border-radius: 0.5rem;
    background-color: rgb(17, 17, 17);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.mines-mode-toggle::before {
    content: '';
    position: absolute;
    left: 0.25rem;
    top: 0;
    height: 90%;
    width: calc(50% - 0.5rem);
    transform: translateY(3px) translateX(var(--mines-toggle-position, 0%));
    border-radius: 0.5rem;
    background-color: rgb(33, 33, 33);
    transition: transform 0.3s ease-in-out;
}

.mines-mode-toggle button {
    position: relative;
    z-index: 10;
    border-radius: 0.5rem;
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mines-mode-toggle button.active {
    color: rgba(255, 255, 255, 0.8);
}

.mines-mode-toggle button:not(.active) {
    color: rgba(255, 255, 255, 0.6);
}

/* Otomatik Mod AlanÄ± */
.mines-auto-mode-field {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
}

.mines-auto-mode-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.mines-auto-mode-input-wrapper {
    position: relative;
    width: 100%;
}

.mines-auto-mode-input {
    width: 100%;
    border-radius: 0.5rem;
    background-color: rgb(17, 17, 17);
    padding: 0.75rem;
    padding-right: 2.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    border: none;
    outline: none;
}

.mines-auto-mode-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.mines-auto-mode-input:focus {
    outline: 2px solid rgba(227, 146, 20, 0.6);
    outline-offset: 2px;
}

.mines-auto-mode-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.8);
    animation: mines-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    pointer-events: none;
}

/* Animasyonlar */
@keyframes mines-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive DÃ¼zenlemeler */
@media (max-width: 1024px) {
    .mines-step-2-desktop {
        display: none;
    }
    
    .mines-step-2 {
        display: grid;
    }
}

@media (min-width: 1024px) {
    .mines-step-2-desktop {
        display: grid;
    }
    
    .mines-step-2 {
        display: none;
    }
}

/* Mines Layout SÄ±nÄ±flarÄ± */
.mines-wrapper {
    overflow: hidden;
}

.mines-content {
    margin: 0 auto 3rem;
    width: 100%;
    padding: 0 1rem;
}

.mines-grid-layout {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    height: 100%;
    width: 100%;
}

.mines-header-section {
    grid-area: span 1 / span 12;
}

.mines-header-nav {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.mines-header-link {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    width: max-content;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.mines-header-link svg {
    padding: 0.5rem;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background-color: rgb(17, 17, 17);
}

.mines-header-title {
    display: none;
    font-size: 1.875rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.mines-main-section {
    width: 100%;
    grid-area: span 8 / span 12;
}

.mines-main-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.mines-control-panel {
    z-index: 10;
    order: 2;
    grid-column: span 3;
    user-select: none;
}

.mines-stats-desktop {
    position: relative;
    margin-bottom: 0.5rem;
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.mines-stats-desktop .mines-step-2-desktop {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.mines-stats-mobile {
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.mines-stat-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    align-self: center;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
}

.mines-stat-item.bomb {
    border: 2px solid rgb(239, 68, 68);
    background-color: rgba(239, 68, 68, 0.1);
}

.mines-stat-item.multiplier {
    border: 2px solid rgb(33, 33, 33);
    background-color: rgba(33, 33, 33, 0.1);
}

.mines-stat-icon {
    position: relative;
    height: 2.5rem;
    width: 2.5rem;
}

.mines-stat-icon img {
    position: absolute;
    height: 100%;
    width: 100%;
    inset: 0px;
    color: transparent;
    z-index: 10;
    object-fit: cover;
}

.mines-stat-icon-img-bright {
    filter: brightness(0.75);
}

.mines-stat-icon-img-gray {
    filter: grayscale(100%);
}

.mines-stat-pulse {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    filter: blur(12px);
    animation: mines-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.mines-stat-pulse.red {
    background-color: rgba(220, 38, 38, 0.3);
}

.mines-stat-pulse.blue {
    background-color: rgba(255, 255, 255, 0.3);
}

.mines-stat-pulse.yellow {
    background-color: rgba(234, 179, 8, 0.4);
}

.mines-stat-content {
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.mines-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.mines-stat-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
}

.mines-control-box {
    width: 21.5rem;
    position: relative;
    height: max-content;
    flex-shrink: 0;
    border-radius: 0.5rem;
    padding: 1rem;
}

.mines-control-box .mines-step-1 {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.mines-info-icon {
    position: absolute;
    right: 1rem;
    top: 5rem;
    color: white;
}

.mines-info-icon-svg {
    transition: all 0.3s ease;
    cursor: pointer;
}

.mines-control-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mines-game-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mines-game-icon {
    position: relative;
    height: 3rem;
    width: 3rem;
}

.mines-game-icon img {
    position: absolute;
    height: 100%;
    width: 100%;
    inset: 0px;
    color: transparent;
    z-index: 10;
    object-fit: contain;
    filter: grayscale(100%);
}

.mines-game-icon-glow {
    position: absolute;
    height: 1rem;
    width: 1rem;
    border-radius: 0.5rem;
    filter: blur(12px);
    brightness: 150%;
}

.mines-game-icon-glow.top {
    top: 0;
    background-color: rgb(33, 33, 33);
}

.mines-game-icon-glow.bottom-left {
    bottom: 0;
    left: 0;
    background-color: rgba(227, 146, 20, 0.6);
}

.mines-game-icon-glow.bottom-right {
    bottom: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 1);
}

.mines-game-title {
    display: flex;
    flex-direction: column;
}

.mines-game-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.mines-game-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.mines-input-wrapper {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.mines-input-label {
    position: absolute;
    top: -1.5rem;
    transform: translateX(-0.75rem);
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.mines-input-field {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.25rem;
    border-radius: 0.5rem;
    background-color: rgb(17, 17, 17);
    padding-left: 0.75rem;
    transition: outline 0.2s ease;
}

.mines-input-field:focus-within {
    outline: 2px solid rgba(227, 146, 20, 0.6);
    outline-offset: 2px;
}

.mines-input-icon {
    position: relative;
    height: 2rem;
    width: 2rem;
}

.mines-input-icon img {
    position: absolute;
    height: 100%;
    width: 100%;
    inset: 0px;
    color: transparent;
    z-index: 10;
    object-fit: contain;
}

.mines-input-icon-pulse {
    position: absolute;
    inset: 0;
    border-radius: 0.5rem;
    filter: blur(12px);
    animation: mines-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.mines-input-icon-pulse.red {
    background-color: rgba(239, 68, 68, 0.4);
}

.mines-input-icon-pulse.blue {
    background-color: rgba(255, 255, 255, 0.3);
}

.mines-input {
    width: 100%;
    border-radius: 0.5rem;
    background-color: rgb(17, 17, 17);
    padding: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    border: none;
    outline: none;
    transition: none;
}

.mines-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.mines-input-buttons {
    position: absolute;
    right: 0.25rem;
    display: flex;
    height: 100%;
    gap: 0.25rem;
    color: white;
}

.mines-input-button {
    margin: 0.25rem 0;
    display: flex;
    align-items: center;
    user-select: none;
    border-radius: 0.5rem;
    background-color: rgb(33, 33, 33);
    padding: 0 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.mines-input-button:hover:not(:disabled) {
    background-color: rgb(43, 43, 43);
    cursor: pointer;
}

.mines-input-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.mines-bomb-buttons-grid {
    margin-top: 0.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.mines-bomb-button-item {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background-color: rgb(17, 17, 17);
    padding: 0.5rem;
    text-align: center;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    transform: scale(1);
    box-sizing: border-box;
}

.mines-bomb-button-item:hover:not(.active) {
    background-color: rgba(33, 33, 33, 0.6);
}

.mines-bomb-button-item:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.mines-bomb-button-item.active {
    background-color: rgba(227, 146, 20, 0.2);
    border-color: rgba(227, 146, 20, 0.4);
    transform: scale(1);
}

.mines-bomb-button-icon {
    position: relative;
    height: 1.25rem;
    width: 1.25rem;
}

.mines-bomb-button-icon img {
    position: absolute;
    height: 100%;
    width: 100%;
    inset: 0px;
    color: transparent;
    object-fit: contain;
    filter: grayscale(100%) brightness(125%);
}

.mines-play-buttons {
    order: -1;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.mines-play-button {
    width: 100%;
    max-width: 100%;
}

.mines-stats-button-wrapper {
    position: relative;
    margin-left: auto;
    display: flex;
    width: 100%;
    justify-content: flex-end;
}

/* Stats icon (eski sound-icon) - SVG elementleri iÃ§in */
svg.mines-stats-icon {
    cursor: pointer;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.5s ease;
}

svg.mines-stats-icon:hover {
    color: rgb(255, 255, 255);
}

.mines-stats-icon-rotate {
    transform: rotate(180deg);
}

.mines-game-area-wrapper {
    position: relative;
    order: 1;
    grid-column: span 3;
    width: 100%;
    min-width: 250px;
    user-select: none;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mines-volume-control {
    position: absolute;
    right: 1.5rem;
    top: 0.5rem;
    z-index: 10;
    display: flex;
    height: 1.5rem;
    width: 1.5rem;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mines-volume-control:hover {
    color: rgb(236, 72, 153);
}

.mines-game-area-content {
    position: relative;
    border-radius: 0.5rem;
    color: rgb(214, 214, 214);
    height: 100%;
    min-height: 400px;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.mines-game-area-bg-image {
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    object-fit: cover;
    opacity: 0.4;
    filter: blur(4px) grayscale(100%);
    color: transparent;
}

.mines-game-area-overlay-bg {
    position: absolute;
    inset: 0;
    background-color: rgba(33, 33, 33, 0.5);
}

.mines-max-win-wrapper {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    z-index: 5;
    pointer-events: none;
    width: 100%;
}

.mines-max-win-content {
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.mines-max-win-label {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
}

.mines-max-win-value-wrapper {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}


.mines-max-win-multiplier {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgb(239, 68, 68);
}

.mines-grid-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex: 1;
    overflow: hidden;
    padding: 1rem;
    padding-top: 5rem;
    min-height: 0;
    position: relative;
    z-index: 1;
    max-width: 100%;
    box-sizing: border-box;
}

.mines-grid {
    display: grid;
    max-width: 520px;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    width: 100%;
    height: fit-content;
    box-sizing: border-box;
    padding: 0;
    margin: 0 auto;
}

.mines-cell-inner {
    position: relative;
    z-index: 10;
    height: 2rem;
    width: 2rem;
}

.mines-cell-effect-bottom {
    pointer-events: none;
    position: absolute;
    bottom: 0.25rem;
    height: 1rem;
    width: 50%;
    border-radius: 9999px;
    background-color: rgba(33, 33, 33, 0.6);
    filter: blur(8px);
}

.mines-cell-effect-top-right {
    pointer-events: none;
    position: absolute;
    right: 0.25rem;
    top: 0.25rem;
    height: 20%;
    width: 33.333333%;
    border-radius: 9999px;
    background-color: rgba(0, 0, 0, 0.4);
    filter: blur(8px);
}

.mines-cell-effect-top-left {
    pointer-events: none;
    position: absolute;
    left: 0.25rem;
    top: 0.25rem;
    height: 20%;
    width: 33.333333%;
    border-radius: 9999px;
    background-color: rgba(0, 0, 0, 0.4);
    filter: blur(8px);
}

/* Responsive */
@media (min-width: 768px) {
    .mines-header-nav {
        display: flex;
    }
    
    .mines-header-title {
        display: block;
    }
    
    .mines-info-icon {
        top: 1rem;
    }
    
    .mines-play-buttons {
        order: 0;
        margin-top: 1rem;
    }
}

@media (min-width: 1024px) {
    .mines-main-grid {
        display: flex;
    }
    
    .mines-control-panel {
        order: 1;
        grid-column: span 1;
    }
    
    .mines-stats-desktop {
        display: grid;
    }
    
    .mines-stats-mobile {
        display: none;
    }
    
    .mines-game-area-wrapper {
        order: 2;
        grid-column: span 2;
        height: 100%;
    }
    
    .mines-control-box {
        width: 20rem;
    }
    
    .mines-game-area-content {
        min-height: 600px;
    }
}

.mines-cell {
    height: 3rem;
    width: 3rem;
}

@media (min-width: 375px) {
    .mines-cell {
        height: 3rem;
        width: 3rem;
    }
    
    .mines-cell-inner {
        height: 3rem;
        width: 3rem;
    }
}

/* Mobil iÃ§in grid dÃ¼zenlemeleri */
@media (max-width: 640px) {
    .mines-grid-wrapper {
        padding: 2.5rem;
        padding-top: 0rem;
        gap: 0;
        overflow-x: hidden;
        overflow-y: auto;
    }
    
    .mines-grid {
        max-width: 100%;
        gap: 0.25rem;
        padding: 0.25rem;
    }
    
    .mines-game-area-content {
        overflow-x: hidden;
        overflow-y: auto;
    }
    
    .mines-game-area-wrapper {
        overflow: hidden;
    }
}

@media (min-width: 475px) {
    .mines-cell {
        height: 5rem;
        width: 5rem;
    }
    
    .mines-cell-inner {
        height: 4rem;
        width: 4rem;
    }
}

@media (min-width: 640px) {
    .mines-stat-icon {
        height: 3.5rem;
        width: 3.5rem;
    }
    
    .mines-cell {
        height: 5rem;
        width: 5rem;
    }
    
    .mines-cell-inner {
        height: 3.5rem;
        width: 3.5rem;
    }
}

@media (min-width: 1280px) {
    .mines-cell {
        height: 6rem;
        width: 6rem;
    }
    
    .mines-cell-inner {
        height: 3.5rem;
        width: 3.5rem;
    }
}

/* Ä°statistikler Modal */
.mines-stats-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.mines-stats-modal.active {
    display: flex;
}

.mines-stats-modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.mines-stats-modal-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 28rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(227, 146, 20, 0.6);
    background-color: rgb(17, 17, 17);
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform-origin: center bottom;
    animation: mines-modal-enter 0.2s ease-out;
}

@keyframes mines-modal-enter {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes mines-alert-enter {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes mines-alert-exit {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

.mines-stats-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.mines-stats-modal-title {
    margin: 0;
    text-align: center;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    flex: 1;
}

.mines-stats-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.mines-stats-modal-close:hover {
    color: white;
}

.mines-stats-modal-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mines-stats-tours {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-evenly;
    border-radius: 0.75rem;
    background-color: rgb(17, 17, 17);
    padding: 0.25rem 0.25rem 0.75rem;
}

.mines-stats-tour-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.mines-stats-tour-label {
    margin-bottom: 0.25rem;
}

.mines-stats-tour-value {
    font-weight: 600;
}

.mines-stats-tour-value.wins {
    color: rgb(74, 222, 128);
}

.mines-stats-tour-value.losses {
    color: rgb(248, 113, 113);
}

.mines-stats-chart {
    border-radius: 0.75rem;
    background-color: rgb(17, 17, 17);
    width: 100%;
    height: 100px;
    min-width: 0;
    overflow: hidden;
}

.mines-stats-chart-placeholder {
    width: 100%;
    height: 100%;
}

.mines-stats-chart-placeholder svg {
    width: 100%;
    height: 100%;
}

.mines-stats-summary {
    display: flex;
    width: 100%;
    gap: 0.5rem;
}

.mines-stats-summary-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    border-radius: 0.75rem;
    background-color: rgb(17, 17, 17);
    padding: 0.25rem 0.25rem 0.75rem;
}

.mines-stats-summary-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.mines-stats-summary-value {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.mines-stats-summary-amount {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.mines-stats-summary-amount.profit {
    color: rgb(74, 222, 128);
}

.mines-stats-coin-icon {
    width: 20px;
    height: 20px;
    color: transparent;
    object-fit: contain;
}

