/* ============================================
   GAMES PAGE — POP STYLE
   ============================================ */

/* Back link */
.back-link {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 600;
    color: var(--text3);
    text-decoration: none;
    margin-bottom: 24px;
    padding: 8px 16px 8px 12px;
    border-radius: 100px;
    background: rgba(124,58,237,.05);
    border: 1px solid var(--border);
    transition: all .3s var(--ease);
}

.back-link:hover {
    color: var(--purple);
    border-color: var(--border-h);
    transform: translateX(-3px);
    box-shadow: var(--shadow-sm);
}

/* Header */
.games-header {
    text-align: center;
    margin-bottom: 32px;
    opacity:0;
    animation: popUp .8s var(--bounce) .2s forwards;
}

@keyframes popUp {
    from { opacity:0; transform: translateY(28px) scale(.96); }
    to { opacity:1; transform: translateY(0) scale(1); }
}

.games-title {
    font-family: var(--font-head);
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 8px;
    margin-bottom: 8px;
    background: var(--grad);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%,100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

.games-sub {
    font-size: 13px;
    color: var(--text2);
    letter-spacing: 1px;
}

/* Game list */
.game-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* Game card */
.gcard {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    transition: all .4s var(--ease);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    opacity:0;
    transform: translateY(14px);
    animation: cardReveal .5s ease-out forwards;
}

.gcard:nth-child(1) { animation-delay: .3s; }
.gcard:nth-child(2) { animation-delay: .38s; }
.gcard:nth-child(3) { animation-delay: .46s; }
.gcard:nth-child(4) { animation-delay: .54s; }
.gcard:nth-child(5) { animation-delay: .62s; }
.gcard:nth-child(6) { animation-delay: .70s; }
.gcard:nth-child(7) { animation-delay: .78s; }

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

.gcard::before {
    content: '';
    position: absolute; inset:0;
    background: var(--grad-soft);
    opacity:0;
    transition: opacity .4s;
}

.gcard:hover::before { opacity: 1; }

.gcard:hover {
    transform: translateY(-3px);
    border-color: var(--border-h);
    box-shadow: var(--shadow-md);
}

.gcard:active {
    transform: translateY(-1px) scale(.99);
    transition-duration: .1s;
}

/* Shine effect */
.gcard::after {
    content: '';
    position: absolute;
    top:0; left: -100%;
    width:100%; height:100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
    pointer-events: none; z-index:0;
}

.gcard:hover::after {
    animation: shine .6s ease-out forwards;
}

@keyframes shine {
    to { left: 100%; }
}

.gcard-visual {
    width: 42px; height: 42px; min-width: 42px;
    border-radius: var(--r-sm);
    background: linear-gradient(135deg, hsla(var(--hue),65%,55%,1), hsla(var(--hue),75%,45%,1));
    display: flex; align-items:center; justify-content:center;
    color: #fff;
    position: relative; z-index:1;
    transition: all .4s var(--bounce);
    box-shadow: 0 3px 10px hsla(var(--hue),60%,40%,.2);
}

.gcard-visual svg { width: 20px; height: 20px; }

.gcard:hover .gcard-visual {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 5px 16px hsla(var(--hue),60%,40%,.25);
}

.gcard-body {
    flex: 1;
    display: flex; flex-direction: column; gap: 2px;
    position: relative; z-index:1;
}

.gcard-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .3px;
    color: var(--text);
}

.gcard-platform {
    font-family: var(--font-en);
    font-size: 11px;
    color: var(--text3);
    letter-spacing: .5px;
}

.gcard-arrow {
    color: var(--text3);
    flex-shrink: 0;
    transition: all .4s var(--ease);
    position: relative; z-index:1;
}

.gcard:hover .gcard-arrow {
    color: var(--purple);
    transform: translateX(4px);
}

/* Focus states */
.gcard:focus-visible {
    outline: 2.5px solid var(--purple);
    outline-offset: 2px;
    transform: translateY(-2px);
}

.back-link:focus-visible {
    outline: 2.5px solid var(--purple);
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .games-title { font-size: 32px; letter-spacing: 7px; }
}

@media (max-width: 520px) {
    .games-title { font-size: 26px; letter-spacing: 5px; }
    .games-sub { font-size: 12px; }
    .gcard { padding: 16px 14px; gap: 12px; }
    .gcard-visual { width: 38px; height: 38px; min-width: 38px; }
    .gcard-visual svg { width: 18px; height: 18px; }
    .gcard-name { font-size: 13px; }
    .gcard-platform { font-size: 10px; }
}
