/* ============================================
   HYPE GAMES — Design tokens
   Palette: #0a0a0c (bg), #141418 (surface), #1c1c22 (surface-2)
            #ffcc1a (brand yellow), #ff6b35 (energy orange)
            #f8f8f2 (text), #6b6b76 (muted)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Righteous&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700;800&display=swap');

:root {
    --bg: #0a0a0c;
    --surface: #141418;
    --surface-2: #1c1c22;
    --surface-border: #232329;
    --yellow: #ffcc1a;
    --yellow-dim: #d4aa12;
    --orange: #ff6b35;
    --text: #f8f8f2;
    --muted: #6b6b76;
    --muted-2: #45454e;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 900px 500px at 15% -10%, rgba(255, 204, 26, 0.08), transparent 60%),
        radial-gradient(ellipse 700px 500px at 100% 10%, rgba(255, 107, 53, 0.06), transparent 55%);
    background-attachment: fixed;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
    user-select: none;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 30px 20px;
}

@media (max-width: 600px) {
    .container {
        padding: 15px 10px;
    }
}

/* --- HEADER --- */
.game-header {
    background-color: rgba(20, 20, 24, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 100px;
    padding: 0 0 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--surface-border);
    margin-bottom: 50px;
    overflow: hidden;
    min-height: 64px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    animation: headerDrop 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes headerDrop {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .game-header {
        padding: 0 0 0 10px;
        margin-bottom: 30px;
        min-height: 50px;
    }
}

.header-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
    font-size: 20px;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 0 15px;
    height: 100%;
}

.home-btn:hover {
    color: var(--yellow);
    transform: scale(1.08);
}

.home-btn i {
    display: inline-block;
    transition: transform 0.2s ease;
}

.home-btn:hover i {
    animation: homeWiggle 0.5s ease;
}

@keyframes homeWiggle {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    25% {
        transform: translateY(-3px) rotate(-8deg);
    }

    75% {
        transform: translateY(-1px) rotate(6deg);
    }
}

.home-btn span {
    display: none;
}

.header-right {
    display: flex;
    align-items: center;
    align-self: stretch;
}

@media (max-width: 600px) {
    .header-left {
        gap: 10px;
    }

    .home-btn {
        display: none;
    }
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.main-logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(255, 204, 26, 0.35));
    animation: logoBreathe 3.6s ease-in-out infinite;
}

@keyframes logoBreathe {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 12px rgba(255, 204, 26, 0.35));
    }

    50% {
        transform: scale(1.06) rotate(-2deg);
        filter: drop-shadow(0 0 20px rgba(255, 204, 26, 0.55));
    }
}

@media (max-width: 600px) {
    .main-logo-img {
        width: 35px;
        height: 35px;
    }

    .brand-name {
        font-size: 16px;
    }
}

.logo-text {
    display: flex;
    flex-direction: column;
    font-family: 'Righteous', cursive;
    line-height: 1;
}

.beta-tag {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--orange);
    font-weight: 700;
}

.brand-name {
    font-size: 22px;
    letter-spacing: 1px;
}

.divider {
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, var(--surface-border), transparent);
    animation: dividerGlow 3s ease-in-out infinite;
}

@keyframes dividerGlow {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.version-tag {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.points-badge {
    position: relative;
    background: linear-gradient(90deg, var(--surface-2) -8%, var(--yellow) 8%);
    background-size: 220% 100%;
    color: #000;
    padding: 0 30px;
    border-radius: 0;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    transition: transform 0.3s ease, background 0.3s ease;
    animation: badgeShimmer 5s ease-in-out infinite;
}

@keyframes badgeShimmer {

    0%,
    100% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 12% 0%;
    }
}

.points-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.75;
}

.points-value {
    font-size: 26px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    display: inline-block;
}

.points-value.tick {
    animation: valueTick 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes valueTick {
    0% {
        transform: scale(1) translateY(0);
    }

    40% {
        transform: scale(1.35) translateY(-4px);
    }

    100% {
        transform: scale(1) translateY(0);
    }
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
    }

    35% {
        transform: scale(1.08) rotate(-1deg);
    }

    60% {
        transform: scale(1.02) rotate(0.5deg);
    }

    100% {
        transform: scale(1);
    }
}

.points-badge.pulse {
    animation: badgePulse 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.points-earned-popup {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    color: var(--yellow);
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    pointer-events: none;
    opacity: 0;
    text-shadow: 0 0 12px rgba(255, 204, 26, 0.6);
    animation: pointsFloat 1.5s ease-out forwards;
}

@keyframes pointsFloat {
    0% {
        opacity: 0;
        transform: translate(-50%, -10px) scale(0.8);
    }

    20% {
        opacity: 1;
        transform: translate(-50%, 5px) scale(1.1);
    }

    35% {
        transform: translate(-50%, 8px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 45px) scale(1);
    }
}

@media (max-width: 600px) {
    .points-badge {
        padding: 0 15px;
    }

    .points-label {
        font-size: 10px;
    }

    .points-value {
        font-size: 17px;
    }

    .version-tag {
        display: none;
    }

    .divider {
        display: none;
    }

    .logo-area {
        gap: 6px;
    }
}

/* --- RANK BADGE --- */
.rank-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 15px;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
}

.rank-badge::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: scale(0.85);
}

.rank-badge:hover::before {
    opacity: 0.5;
    transform: scale(1);
}

.rank-badge:hover {
    transform: scale(1.08);
}

.rank-badge i {
    font-size: 20px;
    display: inline-block;
    animation: rankIdlePulse 2.8s ease-in-out infinite;
}

@keyframes rankIdlePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}

/* --- LIQUID GLASS RANK MODALS --- */
.rank-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 4, 8, 0.78);
    z-index: 4000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    animation: liquidModalFade 0.25s ease-out;
    padding: 20px;
    box-sizing: border-box;
}

@keyframes liquidModalFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.rank-modal-content {
    background: linear-gradient(135deg, rgba(28, 28, 40, 0.8) 0%, rgba(14, 14, 22, 0.92) 100%);
    backdrop-filter: blur(35px) saturate(200%);
    -webkit-backdrop-filter: blur(35px) saturate(200%);
    padding: 24px 24px 20px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    width: 100%;
    max-width: 580px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
    box-sizing: border-box;
    animation: liquidModalRise 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.9),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.4),
        0 0 40px rgba(255, 204, 26, 0.08);
}

@keyframes liquidModalRise {
    from {
        transform: translateY(20px) scale(0.96);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Modal Header Bar */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.modal-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title-icon {
    font-size: 20px;
    color: var(--yellow);
    filter: drop-shadow(0 0 8px rgba(255, 204, 26, 0.6));
}

.modal-header h3 {
    font-family: 'Righteous', cursive;
    letter-spacing: 1.2px;
    margin: 0;
    font-size: 20px;
    color: #ffffff;
}

/* Close Button */
.close-rank-modal {
    position: relative;
    top: auto;
    right: auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
    padding: 0;
    outline: none;
    box-sizing: border-box;
}

.close-rank-modal:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.7);
    color: #ff6b6b;
    transform: rotate(90deg) scale(1.08);
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.5);
}

.close-rank-modal.top-right-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 20;
}

/* Rank List & Items */
.rank-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
    overflow-y: auto;
    padding: 4px 4px 14px 2px;
    flex: 1;
    min-height: 0;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.rank-list::-webkit-scrollbar {
    width: 5px;
}

.rank-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.rank-list::-webkit-scrollbar-thumb {
    background: rgba(255, 204, 26, 0.4);
    border-radius: 10px;
}

@media (max-width: 600px) {
    .rank-modal {
        padding: 12px;
    }

    .rank-modal-content {
        padding: 18px 14px 14px;
        border-radius: 22px;
        max-height: 90vh;
    }

    .modal-header h3 {
        font-size: 17px;
    }

    .rank-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

.rank-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    opacity: 0.35;
    transition: all 0.25s ease;
    animation: rankItemEnter 0.4s ease backwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

@keyframes rankItemEnter {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

    to {
        opacity: 0.35;
    }
}

.rank-item:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.rank-item.earned {
    opacity: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid currentColor;
    box-shadow:
        0 6px 22px -6px currentColor,
        inset 0 0 16px -8px currentColor;
}

.rank-item.earned:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow:
        0 10px 30px -4px currentColor,
        inset 0 0 22px -6px currentColor;
}

.rank-item i {
    font-size: 22px;
    margin-bottom: 8px;
    display: block;
    filter: drop-shadow(0 0 6px currentColor);
}

.rank-item span {
    font-weight: 700;
    font-size: 12px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    color: #ffffff;
}

.rank-item small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

/* --- LIQUID GLASS NEW RANK MODAL --- */
.new-rank-content {
    background: linear-gradient(135deg, rgba(28, 28, 42, 0.85) 0%, rgba(14, 14, 22, 0.95) 100%);
    backdrop-filter: blur(35px) saturate(200%);
    -webkit-backdrop-filter: blur(35px) saturate(200%);
    padding: 45px 30px 35px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    width: 90%;
    max-width: 420px;
    text-align: center;
    position: relative;
    box-sizing: border-box;
    box-shadow:
        0 35px 90px rgba(0, 0, 0, 0.92),
        inset 0 1px 1px rgba(255, 255, 255, 0.35),
        0 0 50px rgba(255, 204, 26, 0.15);
    animation: liquidModalRise 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.new-rank-card {
    text-align: center;
    position: relative;
    z-index: 2;
    animation: rankPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes rankPop {
    from {
        transform: scale(0.6);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.rank-big-icon {
    font-size: 85px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 24px currentColor);
    animation: rankIconFloat 2.4s ease-in-out infinite;
}

@keyframes rankIconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.congrats-text {
    font-family: 'Righteous', cursive;
    font-size: 32px;
    margin: 0 0 5px 0;
    color: #ffffff;
}

.rank-up-desc {
    color: var(--muted);
    margin: 0;
    font-size: 13px;
}

.earned-rank-name {
    font-size: 26px;
    font-weight: 900;
    margin: 12px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'JetBrains Mono', monospace;
}

.rank-confirm-btn {
    background: linear-gradient(135deg, var(--yellow) 0%, #ff8c00 100%);
    color: #120d00;
    border: none;
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 900;
    cursor: pointer;
    margin-top: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    box-shadow: 0 8px 20px rgba(255, 204, 26, 0.4);
}

.rank-confirm-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 28px rgba(255, 204, 26, 0.6);
}

.color-caylak,
.color-yeni {
    color: #64748b;
}

.color-acemi {
    color: #94a3b8;
}

.color-maceraci {
    color: #06b6d4;
}

.color-amator {
    color: #3b82f6;
}

.color-yildiz {
    color: #38bdf8;
}

.color-semipro {
    color: #10b981;
}

.color-kidemli {
    color: #22c55e;
}

.color-profesyonel {
    color: #f59e0b;
}

.color-elite {
    color: #a855f7;
}

.color-elmas {
    color: #ec4899;
}

.color-usta {
    color: #ef4444;
}

.color-sampiyon {
    color: #f97316;
}

.color-buyukusta {
    color: #ef4444;
}

.color-efsane {
    color: #d946ef;
}

.color-ilahi {
    color: #ffcc1a;
}

.rank-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: currentColor;
    filter: blur(110px);
    opacity: 0.35;
    z-index: -1;
    animation: glowPulse 2.4s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.25;
    }

    50% {
        opacity: 0.45;
    }
}

@media (max-width: 600px) {
    .rank-badge {
        width: 38px;
        height: 38px;
        margin-right: 8px;
        flex-shrink: 0;
    }

    .rank-badge i {
        font-size: 16px;
    }
}

/* --- GAME CARDS GRID (Satırda Tam 3 Tane) --- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-items: center;
    width: 100%;
}

@media (max-width: 950px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.game-card {
    width: 100%;
    max-width: 320px;
    background-color: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease, opacity 0.35s ease, filter 0.35s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(18px);
    animation: cardEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
}

@keyframes cardEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .game-card {
        border-radius: 26px;
    }

    .image-container {
        height: 160px;
    }
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 204, 26, 0.35);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.15), 0 0 0 1px rgba(255, 204, 26, 0.1);
}

.image-container {
    background-color: #ffffff;
    height: 200px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    transition: left 0.75s ease;
    pointer-events: none;
}

.game-card:hover .image-container::after {
    left: 130%;
}

.content {
    padding: 24px 20px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

@media (max-width: 600px) {
    .content {
        padding: 18px 15px 20px;
    }
}

.game-card .brand-name {
    color: var(--text);
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    font-family: 'Space Grotesk', sans-serif;
}

.game-version {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
    background: var(--surface-2);
    border: 1px solid var(--surface-border);
    padding: 3px 10px;
    border-radius: 50px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.game-card:hover .game-version {
    color: var(--yellow);
    border-color: rgba(255, 204, 26, 0.3);
}

@media (max-width: 600px) {
    .game-card .brand-name {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .game-version {
        font-size: 10px;
        margin-bottom: 12px;
    }
}

.cta-button {
    background-color: var(--yellow);
    color: #1a1200;
    font-weight: 800;
    font-size: 15px;
    padding: 12px 44px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 0px var(--yellow-dim);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.3s ease, color 0.3s ease;
    animation: ctaGlow 2.6s ease-in-out infinite;
}

@keyframes ctaGlow {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.12);
    }
}

.game-card:hover .cta-button {
    transform: translateY(-2px);
    box-shadow: 0 6px 0px var(--yellow-dim);
}

.game-card:active .cta-button {
    transform: translateY(2px);
    box-shadow: 0 2px 0px var(--yellow-dim);
}

@media (max-width: 600px) {
    .cta-button {
        font-size: 13px;
        padding: 10px 34px;
    }
}

/* --- BAKIM MODU STİLLERİ --- */
.game-card.under-maintenance {
    opacity: 0.42 !important;
    filter: grayscale(0.85);
    cursor: not-allowed;
    border-color: rgba(255, 107, 53, 0.25);
}

.game-card.under-maintenance:hover {
    transform: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 107, 53, 0.25);
}

.game-card.under-maintenance .image-container::after {
    display: none;
}

.game-card.under-maintenance .image-container img {
    transform: none !important;
}

.game-card.under-maintenance .cta-button {
    background-color: var(--surface-2);
    color: var(--muted);
    box-shadow: 0 4px 0px var(--surface-border);
    animation: none;
    cursor: not-allowed;
}

/* Bakımda Rozeti */
.maintenance-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--orange), #d9381e);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    padding: 6px 14px;
    border-radius: 20px;
    z-index: 10;
    letter-spacing: 1px;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.5);
    text-transform: uppercase;
}

/* --- LOADING MODAL --- */
.loading-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #101013 0%, #050506 100%);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.loader-scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    animation: loaderSceneEnter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loaderSceneEnter {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.loader {
    width: 56px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 8px solid #0000;
    border-right-color: var(--yellow);
    position: relative;
    animation: loaderSpin 1s infinite linear;
    filter: drop-shadow(0 0 10px rgba(255, 204, 26, 0.35));
}

.loader::before,
.loader::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: inherit;
    border-right-color: var(--orange);
    animation: inherit;
    animation-duration: 2s;
}

.loader::after {
    border-right-color: #ff3d81;
    animation-duration: 4s;
}

@keyframes loaderSpin {
    100% {
        transform: rotate(1turn);
    }
}

.loader-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--muted);
    text-transform: uppercase;
    animation: loaderTextPulse 1.8s ease-in-out infinite;
}

@keyframes loaderTextPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.loader-text .dot-anim::after {
    content: '';
    animation: dotCycle 1.4s steps(4, end) infinite;
}

@keyframes dotCycle {
    0% {
        content: '';
    }

    25% {
        content: '.';
    }

    50% {
        content: '..';
    }

    75% {
        content: '...';
    }

    100% {
        content: '';
    }
}

/* --- GAME OVERLAY & CLOSE BUTTON / DRAWER --- */
.game-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-overlay.active {
    transform: translateY(0);
}

.iframe-container {
    width: 100%;
    height: 100%;
    animation: iframeFadeIn 0.6s ease 0.15s backwards;
}

@keyframes iframeFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.mobile-close-drawer {
    position: absolute;
    top: 25px;
    right: 30px;
    z-index: 2001;
    display: flex;
    align-items: center;
}

.drawer-handle {
    display: none;
}

.drawer-timer-bar {
    display: none;
}

.back-button {
    background: var(--yellow);
    color: #000;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, opacity 0.5s ease, box-shadow 0.2s ease;
    z-index: 2001;
    opacity: 0;
    pointer-events: none;
}

.back-button:hover {
    transform: scale(1.1) rotate(-8deg);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.back-button.visible {
    opacity: 1;
    pointer-events: auto;
    animation: backBtnPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes backBtnPop {
    0% {
        transform: scale(0.4) rotate(-30deg);
    }

    60% {
        transform: scale(1.15) rotate(6deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

@media (max-width: 768px) {
    .mobile-close-drawer {
        position: absolute;
        top: 150px;
        right: 0;
        display: flex;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
        background: rgba(18, 18, 24, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 6px 12px 6px 6px;
        border-radius: 36px 0 0 36px;
        border: 1.5px solid rgba(255, 204, 26, 0.45);
        border-right: none;
        box-shadow: -4px 8px 30px rgba(0, 0, 0, 0.75), 0 0 18px rgba(255, 204, 26, 0.2);
        touch-action: pan-y;
        opacity: 0;
        pointer-events: none;
        overflow: hidden;
        z-index: 2005;
    }

    /* Oyun açıldığında sağ tarafta küçük çekme sekmesi görünür */
    .mobile-close-drawer.ready {
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translateX(calc(100% - 32px)) !important;
    }

    /* Kaydırılınca veya tıklandığında tamamen açılır */
    .mobile-close-drawer.open {
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translateX(0) !important;
        border-color: var(--yellow);
        box-shadow: -6px 12px 35px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 204, 26, 0.4);
    }

    .drawer-handle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 44px;
        color: var(--yellow);
        font-size: 15px;
        cursor: pointer;
        user-select: none;
        padding-left: 2px;
        flex-shrink: 0;
    }

    .drawer-handle i {
        display: inline-block;
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        animation: handleNudge 1.8s ease-in-out infinite alternate;
    }

    @keyframes handleNudge {
        0% {
            transform: translateX(0);
            opacity: 0.8;
        }

        100% {
            transform: translateX(-4px);
            opacity: 1;
            filter: drop-shadow(0 0 8px var(--yellow));
        }
    }

    .mobile-close-drawer.open .drawer-handle i {
        transform: rotate(180deg);
        animation: none;
    }

    .drawer-timer-bar {
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        height: 3px;
        width: 0;
        background: linear-gradient(90deg, var(--orange), var(--yellow));
        border-radius: 0 0 0 36px;
    }

    .mobile-close-drawer.open .drawer-timer-bar {
        animation: timerDrain 3s linear forwards;
    }

    @keyframes timerDrain {
        from {
            width: 100%;
        }

        to {
            width: 0%;
        }
    }

    .back-button {
        position: static;
        width: 44px;
        height: 44px;
        font-size: 18px;
        opacity: 1;
        pointer-events: auto;
        margin-left: 4px;
        background: linear-gradient(135deg, var(--yellow) 0%, #ffaa00 100%);
        box-shadow: 0 4px 14px rgba(255, 204, 26, 0.4);
        flex-shrink: 0;
    }

    .back-button:active {
        transform: scale(0.92);
    }
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */

/* Masaüstü için özel kaydırma çubuğu */
@media (min-width: 769px) {
    ::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }

    ::-webkit-scrollbar-track {
        background: var(--surface);
        border-radius: 100px;
    }

    ::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, var(--yellow) 0%, var(--orange) 100%);
        border-radius: 100px;
        box-shadow: 0 0 8px rgba(255, 204, 26, 0.4);
        transition: background 0.3s ease, box-shadow 0.3s ease;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, #ffe55a 0%, #ff8c5a 100%);
        box-shadow: 0 0 14px rgba(255, 204, 26, 0.7);
    }

    ::-webkit-scrollbar-corner {
        background: transparent;
    }
}

/* Mobilde sitenin kendisinde ve tüm öğelerde kaydırma çubuğunu tamamen gizle */
@media (max-width: 768px) {

    html,
    body,
    * {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    ::-webkit-scrollbar {
        display: none !important;
        width: 0px !important;
        height: 0px !important;
    }
}