/* Game Detail Page Specific Styles */
:root {
    --primary-color: #6E00FF;
    --primary-light: #8F3FFF;
    --primary-dark: #4A00B0;
    --accent-color: #00EAFF;
    --accent-light: #5FFFFF;
    --accent-dark: #00B8CC;
    --secondary-color: #FF3D71;
    --success-color: #00E096;
    --warning-color: #FFAA00;
    --dark-bg: #0A0E17;
    --card-bg: #151A26;
    --card-bg-hover: #1C2235;
    --text-light: #FFFFFF;
    --text-gray: #B4BDCE;
    --text-dark: #7E8BA3;
    --border-color: rgba(110, 0, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --gradient-cosmic: linear-gradient(135deg, #151A26 0%, #0A0E17 100%);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(110, 0, 255, 0.2) 0%, transparent 70%);
}

.game-page {
    background-color: var(--dark-bg);
    color: var(--text-light);
    min-height: 100vh;
}

/* Cosmic Background */
.cosmic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.stars-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 50px 160px, white, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 90px 40px, white, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 130px 80px, white, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 160px 120px, white, rgba(0, 0, 0, 0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.3;
    animation: stars-animation 100s linear infinite;
}

@keyframes stars-animation {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 200px 200px;
    }
}

.nebula-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(110, 0, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(0, 234, 255, 0.1) 0%, transparent 40%);
    filter: blur(30px);
    opacity: 0.5;
}

.galaxy-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(110, 0, 255, 0.05) 0%, transparent 60%);
    animation: galaxy-pulse 10s ease-in-out infinite;
}

@keyframes galaxy-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Game Hero Section */
.game-hero {
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.game-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-cosmic);
    opacity: 0.8;
    z-index: -1;
}

.game-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.game-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: var(--gradient-accent);
    color: var(--dark-bg);
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 234, 255, 0.3);
}

.game-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--text-light), var(--accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    position: relative;
}

.game-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.stars {
    display: flex;
    gap: 0.2rem;
}

.star {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.star::before {
    content: '★';
    position: absolute;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.star.filled::before {
    color: var(--accent-color);
}

.star.half-filled::before {
    color: var(--text-dark);
}

.star.half-filled::after {
    content: '★';
    position: absolute;
    color: var(--accent-color);
    font-size: 1.2rem;
    width: 50%;
    overflow: hidden;
}

.rating-value {
    font-weight: 600;
    color: var(--accent-color);
}

.rating-count {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.game-description {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.game-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(21, 26, 38, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.stat-icon::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.players-icon::before {
    background-image: url('../kuvat/ikonit/players-icon.svg');
}

.rtp-icon::before {
    background-image: url('../kuvat/ikonit/rtp-icon.svg');
}

.volatility-icon::before {
    background-image: url('../kuvat/ikonit/volatility-icon.svg');
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-light);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(110, 0, 255, 0.1);
    border: 1px solid rgba(110, 0, 255, 0.2);
    color: var(--text-gray);
    font-size: 0.8rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(110, 0, 255, 0.2);
    color: var(--text-light);
}

.game-hero-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.game-hero-image:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.5);
}

.game-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.game-hero-image:hover .game-cover {
    transform: scale(1.05);
}

.play-now-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(110, 0, 255, 0.4);
}

.play-now-button:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 8px 20px rgba(110, 0, 255, 0.6);
}

.play-icon {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.play-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent var(--text-light);
}

.play-text {
    font-size: 1.1rem;
}

/* Game Content Section */
.game-content {
    padding: 60px 0;
}

.game-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.game-frame-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.game-frame-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    aspect-ratio: 16 / 9;
}

.game-frame-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.game-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(21, 26, 38, 0.8);
    border: 1px solid rgba(110, 0, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.control-btn:hover {
    background: rgba(110, 0, 255, 0.2);
    border-color: var(--primary-color);
}

.control-icon {
    width: 20px;
    height: 20px;
    position: relative;
}

.fullscreen-icon::before,
.fullscreen-icon::after,
.info-icon::before,
.favorite-icon::before {
    content: '';
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 100%;
}

.fullscreen-icon::before {
    background-image: url('../kuvat/ikonit/fullscreen-icon.svg');
}

.info-icon::before {
    background-image: url('../kuvat/ikonit/info-icon.svg');
}

.favorite-icon::before {
    background-image: url('../kuvat/ikonit/heart-icon.svg');
}

.game-quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.quick-stat {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

.quick-stat:hover {
    background: var(--card-bg-hover);
    border-color: var(--primary-color);
}

.quick-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(110, 0, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.quick-stat-icon::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.jackpot-icon::before {
    background-image: url('../kuvat/ikonit/jackpot-icon.svg');
}

.bet-icon::before {
    background-image: url('../kuvat/ikonit/bet-icon.svg');
}

.lines-icon::before {
    background-image: url('../kuvat/ikonit/lines-icon.svg');
}

.quick-stat-info {
    display: flex;
    flex-direction: column;
}

.quick-stat-label {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.quick-stat-value {
    font-weight: 600;
    color: var(--text-light);
}

/* Game Sidebar */
.game-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    font-family: 'Exo 2', sans-serif;
    font-size: 1.3rem;
    color: var(--text-light);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 1.5px;
}

.title-icon {
    width: 24px;
    height: 24px;
    position: relative;
}

.title-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.features-icon::before {
    background-image: url('../kuvat/ikonit/features-icon.svg');
}

.trophy-icon::before {
    background-image: url('../kuvat/ikonit/trophy-icon.svg');
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(21, 26, 38, 0.5);
    border: 1px solid rgba(110, 0, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(110, 0, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(110, 0, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.feature-icon::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.wild-icon::before {
    background-image: url('https://cdn-icons-png.flaticon.com/128/14758/14758386.png');
}

.cascade-icon::before {
    background-image: url('https://cdn-icons-png.flaticon.com/128/1021/1021202.png');
}

.freespin-icon::before {
    background-image: url('https://cdn-icons-png.flaticon.com/128/4572/4572944.png');
}

.multiplier-icon::before {
    background-image: url('https://cdn-icons-png.flaticon.com/128/6917/6917513.png');
}

.feature-text {
    flex: 1;
}

.feature-text h4 {
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text-light);
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.4;
}

.winners-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.winner-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(21, 26, 38, 0.5);
    border: 1px solid rgba(110, 0, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.winner-item:hover {
    background: rgba(110, 0, 255, 0.1);
    border-color: var(--primary-color);
}

.winner-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.winner-name {
    font-weight: 600;
    color: var(--text-light);
}

.winner-amount {
    color: var(--success-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.winner-time {
    color: var(--text-dark);
    font-size: 0.8rem;
}

/* Game Details Section */
.game-details {
    padding: 60px 0;
    background: var(--gradient-cosmic);
}

.tabs-container {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.tabs-navigation {
    display: flex;
    background: rgba(10, 14, 23, 0.5);
    border-bottom: 1px solid var(--border-color);
}

.tab-button {
    flex: 1;
    padding: 1.2rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button:hover {
    color: var(--text-light);
    background: rgba(110, 0, 255, 0.05);
}

.tab-button.active {
    color: var(--accent-color);
    background: rgba(110, 0, 255, 0.1);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-accent);
}

.tab-content {
    padding: 2rem;
    display: none;
}

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

.tab-content h3 {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.tab-columns {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

.tab-column h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tab-column h4 {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin: 1.5rem 0 1rem;
}

.tab-column p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feature-detail-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.feature-detail-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(110, 0, 255, 0.1);
    color: var(--text-gray);
    line-height: 1.5;
}

.feature-detail-list li:last-child {
    border-bottom: none;
}

.feature-detail-list li strong {
    color: var(--accent-color);
    font-weight: 600;
}

.game-detail-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-stat {
    background: rgba(21, 26, 38, 0.5);
    border: 1px solid rgba(110, 0, 255, 0.1);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    display: flex;
    flex-direction: column;
}

.detail-stat-label {
    font-size: 0.8rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.detail-stat-value {
    font-weight: 600;
    color: var(--text-light);
}

.game-compatibility {
    background: rgba(21, 26, 38, 0.5);
    border: 1px solid rgba(110, 0, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
}

.game-compatibility h4 {
    margin-top: 0;
}

.compatibility-icons {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.compatibility-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(110, 0, 255, 0.1);
    position: relative;
}

.compatibility-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.desktop::before {
    background-image: url('../kuvat/ikonit/desktop-icon.svg');
}

.tablet::before {
    background-image: url('../kuvat/ikonit/tablet-icon.svg');
}

.mobile::before {
    background-image: url('../kuvat/ikonit/mobile-icon.svg');
}

.game-compatibility p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Symbols Grid */
.symbols-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.symbol-card {
    background: rgba(21, 26, 38, 0.5);
    border: 1px solid rgba(110, 0, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.symbol-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.symbol-card.premium {
    border-color: rgba(255, 170, 0, 0.3);
}

.symbol-card.premium:hover {
    border-color: var(--warning-color);
}

.symbol-card.special {
    border-color: rgba(0, 234, 255, 0.3);
}

.symbol-card.special:hover {
    border-color: var(--accent-color);
}

.symbol-image {
    height: 100px;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gorilla-symbol {
    background-image: url('../kuvat/symboli/gorilla.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.leopard-symbol {
    background-image: url('../kuvat/symboli/leopard.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.scatter-symbol {
    background-image: url('../kuvat/symboli/scatter.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.symbol-info {
    padding: 1.2rem;
}

.symbol-info h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.symbol-values {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(21, 26, 38, 0.5);
    border-radius: 5px;
    padding: 0.5rem;
    flex: 1;
}

.count {
    font-size: 0.8rem;
    color: var(--text-dark);
}

.value {
    font-weight: 600;
    color: var(--accent-color);
}

.symbol-info p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.4;
    margin-bottom: 0;
}

/* Rules Tab */
.rules-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.rules-section {
    background: rgba(21, 26, 38, 0.5);
    border: 1px solid rgba(110, 0, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
}

.rules-section h4 {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.rules-section ul {
    padding-left: 1.5rem;
    color: var(--text-gray);
}

.rules-section ul li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

/* Similar Games Section */
.similar-games {
    padding: 60px 0;
}

.similar-games .section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2rem;
}

.similar-games .section-title::after {
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
}

.games-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.game-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.game-card:hover .game-card-image img {
    transform: scale(1.1);
}

.game-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 23, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.game-card:hover .game-card-overlay {
    opacity: 1;
}

.play-button {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(110, 0, 255, 0.4);
}

.game-card:hover .play-button {
    transform: translateY(0);
}

.game-card-info {
    padding: 1.2rem;
}

.game-provider {
    color: var(--text-dark);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.game-name {
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.game-rating.mini {
    margin-bottom: 0;
}

.game-rating.mini .stars {
    transform: scale(0.8);
    transform-origin: left;
}

.game-rating.mini .rating-value {
    font-size: 0.9rem;
}

/* Media Queries */
@media (max-width: 1200px) {
    .game-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .game-hero-image {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .game-container {
        grid-template-columns: 1fr;
    }
    
    .tab-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .game-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .game-quick-stats {
        grid-template-columns: 1fr;
    }
    
    .game-detail-stats {
        grid-template-columns: 1fr;
    }
    
    .symbols-grid,
    .rules-content {
        grid-template-columns: 1fr;
    }
    
    .games-carousel {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .game-stats {
        grid-template-columns: 1fr;
    }
    
    .tabs-navigation {
        flex-direction: column;
    }
    
    .tab-button {
        text-align: left;
        padding: 1rem;
    }
    
    .tab-button.active::after {
        width: 5px;
        height: 100%;
        top: 0;
        left: 0;
    }
    
    .tab-content {
        padding: 1.5rem 1rem;
    }
}

/* Game-specific additions for PinBall Double Gold and Bonanza Megaways */

/* Megaways Counter */
.megaways-display {
    background: rgba(21, 26, 38, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.ways-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.ways-text {
    color: var(--text-gray);
}

.reels-breakdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.reel-ways {
    background: rgba(21, 26, 38, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reel-count {
    background: rgba(110, 0, 255, 0.1);
    color: var(--accent-color);
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

/* Avatar styles for winners and achievements */
.winner-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(21, 26, 38, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.winner-avatar.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.winner-avatar.silver {
    background: linear-gradient(135deg, #C0C0C0, #A9A9A9);
}

.winner-avatar.bronze {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
}

.winner-avatar.lightning {
    background: linear-gradient(135deg, #00EAFF, #0080FF);
}

.winner-avatar.target {
    background: linear-gradient(135deg, #FF3D71, #FF0000);
}

.winner-avatar.diamond {
    background: linear-gradient(135deg, #00E096, #00A896);
}

.winner-status {
    font-size: 0.8rem;
    color: var(--text-dark);
}

.winner-status.completed {
    color: var(--accent-color);
    font-weight: 600;
}

/* Bonus steps for feature explanations */
.bonus-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.bonus-step {
    display: flex;
    gap: 1.5rem;
    background: rgba(21, 26, 38, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.bonus-step:hover {
    background: rgba(110, 0, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-light);
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.step-content p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Paytable styles */
.paytable {
    background: rgba(21, 26, 38, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.paytable-header {
    display: grid;
    grid-template-columns: 2fr repeat(5, 1fr);
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 1rem;
    font-weight: 600;
}

.paytable-row {
    display: grid;
    grid-template-columns: 2fr repeat(5, 1fr);
    padding: 1rem;
    border-bottom: 1px solid rgba(110, 0, 255, 0.1);
    align-items: center;
}

.paytable-row:last-child {
    border-bottom: none;
}

.paytable-row.premium {
    background: rgba(255, 170, 0, 0.05);
}

.paytable-row.high {
    background: rgba(0, 224, 150, 0.05);
}

.paytable-row.medium {
    background: rgba(110, 0, 255, 0.05);
}

.paytable-row.low {
    background: rgba(180, 189, 206, 0.05);
}

.symbol {
    font-weight: 600;
    color: var(--text-light);
}

.special-symbols {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.special-symbol {
    background: rgba(21, 26, 38, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.symbol-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.scatter-symbol {
    background-image: url('../kuvat/symbols/scatter.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.wild-symbol {
    background-image: url('../kuvat/symbols/wild.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.symbol-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.symbol-info p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Table layout for PinBall Double Gold */
.table-layout {
    margin-top: 2rem;
}

.table-section {
    background: rgba(21, 26, 38, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.table-section h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.area-item {
    background: rgba(21, 26, 38, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.area-item:hover {
    background: rgba(110, 0, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.area-name {
    color: var(--text-light);
}

.area-points {
    color: var(--accent-color);
    font-weight: 600;
}

/* Media queries for responsive design */
@media (max-width: 768px) {
    .reels-breakdown {
        grid-template-columns: 1fr;
    }
    
    .paytable-header,
    .paytable-row {
        grid-template-columns: 2fr repeat(5, 1fr);
        font-size: 0.8rem;
    }
    
    .special-symbol {
        flex-direction: column;
        text-align: center;
    }
    
    .symbol-image {
        margin: 0 auto;
    }
    
    .bonus-step {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .paytable-header,
    .paytable-row {
        grid-template-columns: 1.5fr repeat(5, 1fr);
        font-size: 0.7rem;
        padding: 0.8rem 0.5rem;
    }
}