/* ─── RESET & BASE ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --page-bg:      #0E0C0A;
    --text-primary: #C8BFB4;
    --text-muted:   #9E928A;   /* okunur ton (eski #4A3E38 koyu kahve, koyu zeminde okunmuyordu) */
    --accent:       #6A5A50;
    --accent-dim:   rgba(255,255,255,0.06);
    --border:       rgba(255,255,255,0.07);
    --font-brand:   Consolas, 'Share Tech Mono', monospace;
    --logo-color:   #5A8A6A;   /* sayfa logosunun (-dir) o anki rengi; detay sayfalarında Theme accent'e çevirir */
}

html { scroll-behavior: smooth; }

body {
    background: var(--page-bg);
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    cursor: none;
    transition: background .8s ease, color .5s ease;
    overflow-x: hidden;
}

body.booting { overflow: hidden; }

a { color: inherit; text-decoration: none; }

.font-mono   { font-family: var(--font-brand); }
.font-serif  { font-family: 'Cormorant Garamond', serif; }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.07); border-radius: 4px; }

/* ─── ANIMATIONS ─────────────────────────────────────────────────────────────── */
@keyframes pulseDot       { 0%,100%{opacity:1} 50%{opacity:.3} }
@keyframes fadeSlideUp    { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:none} }
@keyframes fadeIn         { from{opacity:0} to{opacity:1} }
@keyframes bootBlink      { 50%{opacity:0} }
@keyframes bootExit       { to{opacity:0;pointer-events:none} }

@keyframes fogDrift0      { from{transform:translateX(0) scale(1)} to{transform:translateX(20px) scale(1.1)} }
@keyframes fogDrift1      { from{transform:translateX(0) scale(1.05)} to{transform:translateX(-15px) scale(.95)} }
@keyframes fogDrift2      { from{transform:translateX(0)} to{transform:translateX(10px) scale(1.08)} }
@keyframes ember          { 0%{transform:translateY(0) scale(1);opacity:.7} 100%{transform:translateY(-50px) scale(.3);opacity:0} }
@keyframes smokeRise      { 0%{transform:translateY(0) scaleX(1)} 100%{transform:translateY(-20px) scaleX(1.3)} }
@keyframes ringPulse      { 0%,100%{transform:translate(-50%,-50%) scale(1)} 50%{transform:translate(-50%,-50%) scale(1.07)} }
@keyframes particleFloat  { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
@keyframes scanMove       { 0%{top:-100%} 100%{top:100%} }

/* ─── BOOT SCREEN ────────────────────────────────────────────────────────────── */
#boot-screen {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: #080808;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10vw 12vw;
    transition: opacity .65s ease;
}

#boot-screen.exit {
    opacity: 0;
    pointer-events: none;
}

.boot-scanlines {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        0deg, transparent, transparent 2px,
        rgba(0,0,0,.08) 2px, rgba(0,0,0,.08) 4px
    );
    pointer-events: none;
}

.boot-logo {
    font-family: var(--font-brand);
    margin-bottom: 36px;
}
.boot-logo-indie { font-size: 26px; color: #C8BFB4; letter-spacing: 2px; }
.boot-logo-dir   { font-size: 26px; color: #6A9A7A; letter-spacing: 2px; }
.boot-version    { font-size: 12px; color: #5E6E64; letter-spacing: 3px; margin-left: 16px; }

#boot-lines {
    font-family: var(--font-brand);
    font-size: 15px;
    line-height: 2;
}

.boot-line-prompt { display: flex; align-items: center; gap: 10px; }
.boot-prompt-sign { color: #4A9A6A; font-size: 12px; }
.boot-prompt-text { color: #C8BFB4; }

.boot-line-dir {
    display: grid;
    grid-template-columns: 130px 80px 1fr;
    gap: 0 20px;
    padding-left: 4px;
}
.boot-dir-date  { color: #7C9A86; }
.boot-dir-tag   { color: #7C9A86; }
.boot-dir-name  { }
.boot-dir-status{ color: #6E9580; font-size: 12px; margin-left: 16px; }

.boot-line-out { color: #7A9A9A; padding-left: 4px; }

.boot-cursor {
    display: inline-block;
    width: 7px; height: 14px;
    background: #C8BFB4;
    opacity: .85;
    animation: bootBlink .7s step-end infinite;
    vertical-align: middle;
}

/* ─── CUSTOM CURSOR ──────────────────────────────────────────────────────────── */
#cursor {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0;                /* ilk fare hareketine kadar gizli — açılışta köşe takılması yok */
    transition: opacity .2s;
}

/* Yuvarlak imleç — net beyaz, kalın kenar, koyu/açık zeminde görünür (1px koyu dış kontur). */
#cursor-ring {
    width: 24px; height: 24px;
    border-radius: 50%;
    border: 2.5px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(0,0,0,.35);
}

#cursor-img {
    display: none;
    width: 60px;
    height: 60px;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

/* Masaüstünde tüm tıklanabilir öğelerde de OS imleci gizli kalsın (tarayıcının
   varsayılan a{cursor:pointer} kuralını yener) — yalnızca yuvarlak/özel imleç görünür.
   Dokunmatik için aşağıdaki @media (pointer: coarse) bunu auto'ya çevirir. */
a, button { cursor: none; }

/* ─── PARALLAX GLOWS ─────────────────────────────────────────────────────────── */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transition: background 1s ease;
}

#glow-top {
    width: 560px; height: 560px;
    top: -15%; right: -10%;
    background: transparent;
}

#glow-bottom {
    width: 440px; height: 440px;
    bottom: -18%; left: -8%;
    background: transparent;
}

/* ─── NAV ────────────────────────────────────────────────────────────────────── */
#main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 56px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(14,12,10,.88);
    backdrop-filter: blur(22px);
    z-index: 50;
    transition: border-color .7s, background .7s;
}

.nav-logo { display: flex; align-items: baseline; }
.logo-indie { font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 600; letter-spacing: 1px; color: var(--text-primary); transition: color .5s; }
.logo-dir   { font-family: var(--font-brand); font-size: 22px; color: #5A8A6A; letter-spacing: 1px; margin-left: 1px; transition: color .6s; }

.nav-links { display: flex; gap: 40px; font-size: 16px; letter-spacing: 1px; color: var(--text-primary); transition: color .5s; font-family: var(--font-brand); }
.nav-links a { opacity: .85; transition: color .2s, opacity .2s; }
.nav-links a:hover { color: #6FB07E; opacity: 1; }

.nav-status { font-family: var(--font-brand); font-size: 12px; color: #6FB07E; opacity: 1; letter-spacing: 1px; display: flex; align-items: center; gap: 7px; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #4A8A5A; animation: pulseDot 3s ease infinite; flex-shrink: 0; }

/* ─── MAIN CONTENT ───────────────────────────────────────────────────────────── */
#main-content {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .6s, transform .6s;
}

#main-content.visible {
    opacity: 1;
    transform: none;
}

/* ─── HERO ───────────────────────────────────────────────────────────────────── */
#hero {
    position: relative;
    overflow: hidden;
    min-height: 660px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px 56px 52px;
}

.hero-breadcrumb {
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: .8;
    transition: color .5s;
}

.hero-title {
    font-size: clamp(40px, 6vw, 86px);
    font-weight: 700;
    line-height: .97;
    letter-spacing: -.5px;
    margin-bottom: 20px;
    color: var(--text-primary);
    transition: color .6s;
}

.hero-title em {
    font-weight: 400;
    opacity: .35;
}

.hero-sub {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.8;
    opacity: .95;
    transition: color .5s;
}

/* ─── GAME GRID ──────────────────────────────────────────────────────────────── */
#games-grid {
    padding: 0 56px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

/* ─── GAME CARD ──────────────────────────────────────────────────────────────── */
.game-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.015);
    /* Sadece ölçek (--s, CSS sınıfından). Tilt yok → hover'da kart sabit durur, sallanmaz. */
    --s: 1;
    transform: scale(var(--s));
    transition: border .4s, background .4s, opacity .4s, box-shadow .4s, transform .26s ease-out, filter .4s;
    /* backwards (both DEĞİL): giriş gecikmesi boyunca kartı gizler ama animasyon bitince
       transform/opacity'yi cascade'e geri bırakır → hover ölçeği ve dimmed opaklık çalışır. */
    animation: fadeSlideUp .45s ease backwards;
    will-change: transform;
}

.game-card { z-index: 1; }

/* Hover dışı kartlar geri çekilir (arka plana iter, derinlik hissi) */
.game-card.dimmed {
    --s: .94;
    opacity: .4;
    filter: blur(1.5px) saturate(.9);
}

/* Hover'daki kart büyür ve öne çıkar (diğerlerinin üzerine taşacak şekilde) */
.game-card.hovered {
    --s: 1.22;
    z-index: 20;
    box-shadow: 0 30px 80px rgba(0,0,0,.7);
}

/* Köşe kartlar dışarı taşmasın: kenara sabitlenip ortaya doğru büyüsünler.
   Grid her zaman 3 kolon → sol kolon (3n+1) sola sabit/sağa büyür, sağ kolon (3n) sağa sabit/sola büyür.
   Orta kolon (3n+2) varsayılan merkezde kalır. */
#games-grid .game-card:nth-child(3n+1) { transform-origin: left center; }
#games-grid .game-card:nth-child(3n)   { transform-origin: right center; }

.card-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    opacity: .1;
    border-radius: 10px 10px 0 0;
    transition: opacity .4s, height .3s;
}

.game-card.hovered .card-bar,
.game-card.selected .card-bar {
    opacity: .6;
    height: 2px;
}

.card-badge {
    position: absolute;
    top: 14px; right: 14px;
    font-size: 8px;
    letter-spacing: 2px;
    opacity: 0;
    transition: opacity .3s;
}

.game-card.selected .card-badge { opacity: .65; animation: fadeIn .3s; }

.card-inner { padding: 30px 26px 26px; }

/* ─── ATMOSPHERIC VISUALS ────────────────────────────────────────────────────── */
.card-visual {
    width: 100%;
    height: 210px;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 20px;
    background: rgba(0,0,0,0.22);   /* contain edilen logoların boş alanı için nötr zemin */
}

.card-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 6px;
}

/* Geniş wordmark/banner logolar (Crooked): cover ile kenarları kırpılıp
   sıkışık görünüyordu. contain ile tam görsel ortalı ve kırpılmadan gösterilir.
   (Divine Inbox görseli güncellendi → artık çerçeveyi tam dolduruyor, cover kullanır.) */
.game-card[data-visual="noir"] .card-logo {
    object-fit: contain;
    padding: 16px 18px;
    box-sizing: border-box;
}

/* Mage Visual */
.mage-visual { background: #0A0505; }

.fog {
    position: absolute;
    border-radius: 50%;
    transition: opacity .5s;
}
.fog-0 { width: 120px; height: 80px; bottom: -5px; left: 10%; animation: fogDrift0 6s ease-in-out infinite alternate; }
.fog-1 { width: 180px; height: 110px; bottom: 10px; left: 30%; animation: fogDrift1 8s ease-in-out infinite alternate; }
.fog-2 { width: 240px; height: 140px; bottom: 25px; left: 50%; animation: fogDrift2 10s ease-in-out infinite alternate; }

.skull-svg {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    opacity: .18;
    transition: opacity .5s;
}

.game-card.hovered .skull-svg,
.game-card.selected .skull-svg { opacity: .52; }

.embers { position: absolute; inset: 0; pointer-events: none; }
.ember {
    position: absolute;
    width: 2px; height: 2px;
    border-radius: 50%;
    opacity: 0;
    animation: ember linear infinite;
}

.game-card.hovered .ember,
.game-card.selected .ember { opacity: .7; }

/* Noir Visual */
.noir-visual { background: #080700; }

.blind-ray {
    position: absolute;
    left: 0; right: 0;
    height: 3px;
    transition: height .5s, background .5s;
}

.game-card.hovered .blind-ray,
.game-card.selected .blind-ray { height: 6px; }

.card-nv {
    position: absolute;
    bottom: 18px;
    width: 28px; height: 38px;
    border-radius: 3px;
    background: linear-gradient(135deg, #1A1408, #0E0C06);
    display: flex; align-items: center; justify-content: center;
    transition: border-color .5s, box-shadow .5s;
}
.card-nv-0 { left: 32%; transform: rotate(-18deg); z-index: 1; }
.card-nv-1 { left: 50%; transform: rotate(5deg);  z-index: 2; }
.card-nv-2 { left: 62%; transform: rotate(22deg); z-index: 1; }

.suit { font-family: Georgia, serif; font-size: 14px; opacity: .3; transition: opacity .5s; }
.game-card.hovered .suit,
.game-card.selected .suit { opacity: .8; }

.smoke {
    position: absolute;
    top: 0; right: 15%;
    width: 60px; height: 80px;
    animation: smokeRise 4s ease-in-out infinite alternate;
    transition: background .5s;
}

/* Divine Visual */
.divine-visual { background: #07070F; }

.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid currentColor;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity .6s;
}
.ring-0 { width: 40px;  height: 40px;  animation: ringPulse 2s ease-in-out infinite; animation-delay: 0s; }
.ring-1 { width: 76px;  height: 76px;  animation: ringPulse 2.5s ease-in-out infinite; animation-delay: .25s; }
.ring-2 { width: 112px; height: 112px; animation: ringPulse 3s ease-in-out infinite; animation-delay: .5s; }
.ring-3 { width: 148px; height: 148px; animation: ringPulse 3.5s ease-in-out infinite; animation-delay: .75s; }

.divine-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 8px; height: 8px;
    border-radius: 50%;
    transition: box-shadow .6s, opacity .6s;
    opacity: .3;
}

.game-card.hovered .divine-center,
.game-card.selected .divine-center {
    opacity: 1;
}

.divine-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100px; height: 100px;
    border-radius: 50%;
    transition: background .6s;
}

.particle {
    position: absolute;
    width: 2px; height: 2px;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat ease-in-out infinite;
    transition: opacity .5s;
}

.game-card.hovered .particle,
.game-card.selected .particle { opacity: .6; }

.visual-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--vis-bg, #0A0505) 0%, transparent 35%, transparent 65%, var(--vis-bg, #0A0505) 100%);
    pointer-events: none;
}
.mage-visual  .visual-vignette { --vis-bg: #0A0505; }
.noir-visual  .visual-vignette { --vis-bg: #080700; }
.divine-visual .visual-vignette { --vis-bg: #07070F; }

/* ─── CARD CONTENT ───────────────────────────────────────────────────────────── */
.card-meta {
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--text-muted);
    opacity: .95;
    margin-bottom: 14px;
    display: flex;
    gap: 8px;
    align-items: baseline;
    flex-wrap: wrap;
    transition: color .4s, opacity .3s;
}
.card-meta .meta-tag  { color: var(--text-primary); opacity: .95; font-weight: 700; }
.card-meta .meta-name { opacity: .95; }

.card-title {
    font-size: clamp(26px, 2.8vw, 38px);
    font-weight: 700;
    line-height: 1.05;
    color: var(--text-primary);
    margin-bottom: 5px;
    transition: color .35s;
    letter-spacing: .5px;
}

.card-genre {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 16px;
    opacity: .9;
}

.card-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    color: var(--text-muted);
    opacity: .95;
    transition: color .4s;
}

.card-status.is-live { color: #5A9A6A; opacity: 1; }
.card-status .status-date { opacity: .8; }

.status-pip {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.pip-live { animation: pulseDot 2.5s ease infinite; }

.card-desc {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 18px;
    opacity: .82;
    transition: color .35s, opacity .35s;
}
.game-card.hovered .card-desc,
.game-card.selected .card-desc { opacity: 1; }

.card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tag {
    font-size: 10px;
    letter-spacing: 1.2px;
    padding: 4px 10px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.18);
    color: var(--text-primary);
    opacity: .9;
    transition: all .4s;
}

.game-card.selected .tag { opacity: 1; }

.card-cta {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 14px;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all .35s;
}

.cta-text { opacity: .28; transition: opacity .35s; }
.game-card.hovered .cta-text,
.game-card.selected .cta-text { opacity: 1; }

.cta-hint { font-size: 8px; opacity: .2; }
.game-card.selected .cta-hint { display: none; }

.card-ghost {
    position: absolute;
    bottom: -10px; right: 8px;
    font-size: 110px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
    opacity: .015;
    transition: opacity .4s;
    user-select: none;
}
.game-card.hovered .card-ghost  { opacity: .04; }
.game-card.selected .card-ghost { opacity: .065; }

/* ─── DETAIL PANEL ───────────────────────────────────────────────────────────── */
#detail-wrap {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .55s cubic-bezier(.16,1,.3,1), opacity .4s ease;
}

#detail-wrap.open {
    max-height: 800px;
    opacity: 1;
}

#detail-panel {
    margin: 0 56px;
    border: 1px solid transparent;
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 38px 44px 42px;
    position: relative;
    overflow: hidden;
    animation: fadeSlideUp .4s ease;
}

.detail-glow-line {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 50%; height: 1px;
}

.detail-breadcrumb {
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    letter-spacing: 1px;
    opacity: .4;
    margin-bottom: 24px;
}

.detail-body {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 48px;
    align-items: start;
}

.detail-id     { font-size: 9px; letter-spacing: 4px; opacity: .5; margin-bottom: 12px; }
.detail-title  { font-family: 'Cormorant Garamond', serif; font-size: clamp(26px, 3vw, 42px); font-weight: 700; line-height: 1.05; letter-spacing: .5px; margin-bottom: 16px; }
.detail-desc   { font-size: 14px; line-height: 1.95; max-width: 480px; margin-bottom: 26px; min-height: 52px; }

.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.detail-tag  { font-size: 9px; letter-spacing: 1.5px; padding: 4px 12px; border-radius: 3px; opacity: .55; }

.detail-actions { display: flex; gap: 10px; }

.btn-primary {
    font-size: 12px;
    padding: 11px 26px;
    border: none;
    border-radius: 6px;
    cursor: none;
    letter-spacing: .5px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    color: #08060A;
    transition: opacity .2s;
}
.btn-primary:hover { opacity: .85; }

.btn-close {
    font-size: 12px;
    padding: 11px 18px;
    background: transparent;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: none;
    font-family: 'DM Sans', sans-serif;
    opacity: .5;
    transition: opacity .2s;
}
.btn-close:hover { opacity: .9; }

/* Stats */
.detail-info-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    letter-spacing: 3px;
    opacity: .35;
    margin-bottom: 16px;
}

.detail-stats { display: flex; flex-direction: column; gap: 16px; margin-bottom: 22px; }

.stat-item { border-bottom: 1px solid transparent; padding-bottom: 12px; }
.stat-label { font-size: 9px; letter-spacing: 2px; opacity: .4; margin-bottom: 4px; }
.stat-value { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 700; line-height: 1; }

.detail-platforms-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    opacity: .35;
    margin-bottom: 9px;
}
.detail-platforms { display: flex; gap: 7px; flex-wrap: wrap; }
.platform-tag  { font-size: 9px; letter-spacing: 1.5px; padding: 3px 10px; border-radius: 3px; border: 1px solid transparent; opacity: .45; }

/* ─── SECTION DIVIDER ────────────────────────────────────────────────────────── */
.section-divider { margin: 0 56px; border-top: 1px solid var(--border); transition: border-color .7s; }
.spacer { height: 56px; }

/* ─── NEWS ───────────────────────────────────────────────────────────────────── */
#news-section { padding: 52px 56px 64px; }

.news-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 32px;
}

.news-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color .5s;
}

.news-rule { flex: 1; height: 1px; background: var(--border); transition: background .7s; }

.news-row {
    display: grid;
    grid-template-columns: 80px 90px 1fr;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    cursor: none;
    transition: opacity .2s, border-color .7s;
}
.news-row:hover { background: rgba(255,255,255,.02); }

.news-date { font-size: 12px; color: var(--text-muted); opacity: .8; }
.news-tag  { font-size: 11px; letter-spacing: 1.5px; padding: 3px 10px; border: 1px solid; border-radius: 2px; width: fit-content; }
.news-text { font-size: 15px; color: var(--text-primary); opacity: .92; line-height: 1.6; transition: color .5s; }
.news-title-inline { font-size: 14px; letter-spacing: .3px; font-weight: 500; }
.news-more { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--text-muted); text-decoration: none; letter-spacing: .5px; transition: color .2s; }
.news-more:hover { color: var(--text-primary); }

/* ─── FOOTER ─────────────────────────────────────────────────────────────────── */
#main-footer {
    padding: 0 56px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    font-size: 15px;
    letter-spacing: .5px;
    transition: border-color .7s;
}
.footer-row { display: flex; justify-content: space-between; align-items: center; }
.footer-top-row  { padding: 32px 0; }
.footer-meta-row { padding: 32px 0; border-top: 1px solid var(--border); }

.footer-contact { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-sep { color: var(--text-muted); opacity: .3; }

.footer-mail { display: inline-flex; align-items: baseline; gap: 6px; }
.footer-mail-label { color: var(--text-primary); opacity: .85; transition: color .25s, opacity .25s; }
.footer-mail-addr  { color: var(--text-muted); opacity: .7; }
.footer-mail:hover .footer-mail-label { color: var(--logo-color); opacity: 1; }

.footer-logo { font-family: var(--font-brand); color: var(--text-muted); opacity: .7; display: flex; align-items: baseline; gap: 4px; }
.footer-year { margin-left: 12px; }

.footer-right { display: flex; align-items: center; gap: 22px; }
.footer-link { color: var(--text-primary); opacity: .8; transition: opacity .2s; }
.footer-link:hover { opacity: 1; }
.footer-lama { color: rgb(44, 170, 225); font-weight: 600; letter-spacing: .5px; }

.footer-social { display: flex; align-items: center; gap: 20px; }
.footer-social-link { display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); opacity: .7; transition: opacity .2s, color .2s; }
.footer-social-link:hover { opacity: 1; color: var(--text-primary); }
.footer-steam-text { font-size: 13px; letter-spacing: .5px; }

/* ─── View Game butonu (kart) ─────────────────────────────────────────────── */
.card-view-btn {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    margin-top: 20px;
    padding: 10px 18px;
    border: 1px solid;
    border-radius: 4px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    letter-spacing: .05em;
    text-decoration: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .35s ease, transform .35s ease, background .25s ease, color .25s ease;
}
.game-card:hover .card-view-btn,
.game-card.hovered .card-view-btn {
    opacity: 1;
    transform: translateY(0);
}
.card-view-btn:hover {
    background: var(--ca);
    color: #0A0808;
    border-color: var(--ca);
}

/* ─── Oyun detay sayfası ──────────────────────────────────────────────────── */
.game-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    opacity: .12;
    filter: grayscale(.5) saturate(.7);
    pointer-events: none;
}
.game-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 35%, transparent, rgba(6,6,8,.65));
}

#game-detail .detail-hero { max-width: 100%; margin: 4px 0 36px; }
#game-detail .detail-hero img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    border: 1px solid var(--accent-dim);
}

#game-detail {
    max-width: 1080px;
    margin: 60px auto 0;
    padding: 0 32px;
    position: relative;
}
#game-detail .detail-glow-line {
    height: 1px;
    width: 100%;
    margin-bottom: 28px;
}
#game-detail .detail-breadcrumb {
    font-size: 13px;
    margin-bottom: 28px;
    opacity: 1;
}
#game-detail .detail-header {
    display: grid;
    grid-template-columns: 1.6fr minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    margin-bottom: 28px;
}
#game-detail .detail-head-side { display: flex; align-items: center; }
#game-detail .detail-head-side .btn-trailer { margin-bottom: 0; }
#game-detail .detail-body {
    display: grid;
    grid-template-columns: 1.6fr minmax(0, 1fr);
    gap: 48px;
}
#game-detail .detail-id {
    font-size: 15px;
    letter-spacing: .1em;
    margin-bottom: 12px;
    opacity: 1;
    font-weight: 500;
}
#game-detail .detail-title {
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
    margin: 0 0 18px;
}
#game-detail .detail-desc {
    font-size: 16px;
    line-height: 1.7;
    margin: 18px 0 24px;
    max-width: 60ch;
}
#game-detail .detail-tags { margin-bottom: 28px; }
#game-detail .detail-tag { opacity: 1; font-size: 12px; letter-spacing: 1px; padding: 5px 13px; }
#game-detail .detail-info-label {
    font-size: 14px;
    letter-spacing: .1em;
    margin-bottom: 14px;
    opacity: 1;
    font-weight: 500;
}
#game-detail .feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}
#game-detail .feature-list li {
    padding: 10px 0;
    border-bottom: 1px solid;
    font-size: 14px;
    line-height: 1.5;
    color: inherit;
    display: flex;
    gap: 10px;
}
#game-detail .detail-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}
#game-detail .btn-primary {
    padding: 12px 24px;
    border-radius: 5px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    color: #0A0808;
    text-decoration: none;
    border: 1px solid transparent;
}
#game-detail .btn-primary.btn-disabled {
    background: transparent !important;
    cursor: none;
    opacity: .8;
}
#game-detail .btn-close {
    padding: 12px 20px;
    border: 1px solid;
    border-radius: 5px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    text-decoration: none;
}
#game-detail .detail-stats { margin-bottom: 28px; }
#game-detail .stat-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid;
}
#game-detail .stat-label { font-size: 13px; opacity: 1; }
#game-detail .stat-value { font-family: 'Share Tech Mono', monospace; font-size: 15px; }
#game-detail .detail-platforms-label { font-size: 14px; letter-spacing: .1em; margin: 8px 0 12px; opacity: 1; font-weight: 500; }
#game-detail .platform-tag {
    display: inline-block;
    padding: 5px 12px;
    margin-right: 8px;
    border: 1px solid;
    border-radius: 3px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    opacity: 1;
}
#game-detail .detail-steam { margin-top: 24px; }
#game-detail .steam-frame iframe { width: 100%; max-width: 100%; height: 190px; border: 0; display: block; }

#game-detail .btn-trailer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid;
    border-radius: 5px;
    font-family: var(--font-brand);
    font-size: 13px;
    letter-spacing: .04em;
    cursor: none;
    transition: background .2s, opacity .2s;
}
#game-detail .btn-trailer:hover { opacity: .8; }

.trailer-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(4,4,6,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5vw;
}
.trailer-modal[hidden] { display: none; }
.trailer-inner { width: 100%; max-width: 1000px; }
.trailer-inner video { width: 100%; border-radius: 6px; display: block; }
.trailer-inner iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; display: block; }
.hero-content { position: relative; z-index: 1; }
.hero-bg-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-bg-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100%;
    min-width: 177.78vh;
    transform: translate(-50%, -50%) scale(1.25);
    border: 0;
    pointer-events: none;
}
.hero-bg-video::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(14, 12, 10, .45);
}

/* Hero görselli sayfalarda (ana sayfa videosu / oyunlar slider'ı) oyun gridini biraz aşağı al */
#hero:has(.hero-bg-video) + #games-grid,
#hero:has(.hero-bg-slider) + #games-grid { margin-top: 5em; }

/* Oyunlar sayfası: kart ana görselleriyle otomatik geçişli silik arka plan */
.hero-bg-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: saturate(.9);
    opacity: 0;
    transition: opacity .8s ease;
}
.hero-slide--contain { background-size: contain; }
.hero-slide.is-active { opacity: 1; }
.hero-bg-slider::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(14, 12, 10, .55);
}
.trailer-close {
    position: absolute;
    top: 20px; right: 28px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 26px;
    cursor: none;
    line-height: 1;
}

#game-gallery {
    max-width: 1320px;
    margin: 56px auto 0;
    padding: 0 32px;
    position: relative;
    z-index: 1;
}
.gallery-label { font-size: 14px; letter-spacing: .1em; margin-bottom: 16px; opacity: 1; font-weight: 500; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}
.gallery-item {
    padding: 0;
    border: 1px solid;
    border-radius: 5px;
    overflow: hidden;
    cursor: none;
    background: none;
    aspect-ratio: 16 / 10;
    transition: transform .25s, box-shadow .25s;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
@media (max-width: 720px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    #game-gallery { padding: 0 20px; }
}
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 210;
    background: rgba(4,4,6,.94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4vw;
}
.lightbox[hidden] { display: none; }
.lb-img { max-width: 90vw; max-height: 86vh; object-fit: contain; border-radius: 4px; }
.lb-close, .lb-nav {
    position: absolute;
    background: transparent;
    border: none;
    color: #fff;
    cursor: none;
    line-height: 1;
}
.lb-close { top: 20px; right: 28px; font-size: 26px; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 48px; padding: 0 18px; opacity: .8; }
.lb-nav:hover { opacity: 1; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
@media (max-width: 720px) {
    .lb-nav { font-size: 36px; padding: 0 8px; }
    .lb-close { top: 12px; right: 16px; }
}

@media (max-width: 720px) {
    #game-detail .detail-header { grid-template-columns: 1fr; gap: 18px; align-items: start; margin-bottom: 22px; }
    #game-detail .detail-body { grid-template-columns: 1fr; gap: 32px; }
}

/* ─── ABOUT PAGE ─────────────────────────────────────────────────────────────── */
#about-video { padding: 40px 32px 0; }

.about-video-frame {
    position: relative;
    max-width: 1280px;
    aspect-ratio: 21 / 9;   /* 16:9 kaynağı geniş banda kırpar — daha enli, daha alçak */
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    background: #080808;
    box-shadow: 0 24px 60px rgba(0,0,0,.45);
}

.about-video-frame video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;   /* enine doldurur, üst/alttan ortalı kırpar */
}

.about-video-scanlines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0)   0px,
        rgba(255,255,255,0)   2px,
        rgba(0,0,0,.06)       3px
    );
    mix-blend-mode: overlay;
}

#about-text {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 56px 0;
    animation: fadeSlideUp .7s ease both;
}

.about-breadcrumb {
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--text-muted);
    opacity: .8;
    margin-bottom: 32px;
}

.about-para {
    font-size: clamp(17px, 1.6vw, 21px);
    line-height: 1.9;
    color: var(--text-primary);
    margin-bottom: 26px;
    opacity: .92;
}

.about-para:last-child { margin-bottom: 0; }

/* "indie-dir" markası — nav logosuyla aynı renkler, satır içi boyutta */
.brand { white-space: nowrap; }
.brand-indie {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    color: var(--text-primary);
}
.brand-dir {
    font-family: 'Share Tech Mono', monospace;
    color: #5A8A6A;
    margin-left: 1px;
}

@media (max-width: 720px) {
    #about-video { padding: 24px 16px 0; }
    .about-video-frame { aspect-ratio: 16 / 9; }
    #about-text  { padding: 40px 24px 0; }
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────────
   Mobil uyumluluk. Tüm kurallar media query içinde; masaüstü görünümü değişmez.
   Breakpoint'ler: >1024px masaüstü · 721–1024px tablet · ≤720px telefon.
   ──────────────────────────────────────────────────────────────────────────── */

/* Tablet: kartlar 2 kolon */
@media (max-width: 1024px) {
    #games-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Telefon: kartlar tek kolon */
@media (max-width: 720px) {
    #games-grid { grid-template-columns: 1fr; }
}

/* Dokunmatik cihazlar: hover/zoom efektlerini nötrle (taşma ve titreme olmasın) */
@media (hover: none) {
    .game-card.hovered  { --s: 1; box-shadow: none; }
    .game-card.dimmed   { opacity: 1; filter: none; }
    #games-grid .game-card:nth-child(3n+1),
    #games-grid .game-card:nth-child(3n)   { transform-origin: center center; }

    /* View Game butonu hover'a bağlı kalmasın, her zaman görünür olsun */
    .card-view-btn { opacity: 1; transform: none; }
}

/* Telefon: yan/dikey boşlukları daralt (masaüstü 56px → 20px) */
@media (max-width: 720px) {
    #hero            { padding: 48px 20px 36px; min-height: 420px; }
    #games-grid      { padding: 0 20px; }
    #news-section    { padding: 40px 20px 48px; }
    #main-footer     { padding: 28px 20px; }
    .section-divider { margin: 0 20px; }
    #detail-panel    { margin: 0 20px; }
}

/* Telefon: news satırları dikey — tarih+etiket üstte, metin altında tam genişlik */
@media (max-width: 720px) {
    .news-row {
        grid-template-columns: auto auto;
        justify-content: start;
        gap: 10px 12px;
        padding: 14px 0;
    }
    .news-text {
        grid-column: 1 / -1;   /* tam genişlik, alt satır */
        font-size: 14px;
    }
}

/* Telefon: footer dikey, ortalanmış */
@media (max-width: 720px) {
    #main-footer {
        gap: 20px;
        text-align: center;
    }
    .footer-row { flex-direction: column; gap: 14px; }
    .footer-contact { flex-wrap: wrap; justify-content: center; }
    .footer-social { justify-content: center; }
}

/* Telefon: boot ekranı padding/font küçült, dir satırı sığsın */
@media (max-width: 720px) {
    #boot-screen { padding: 8vw 6vw; }
    #boot-lines  { font-size: 13px; }
    .boot-line-dir {
        grid-template-columns: 92px 56px 1fr;
        gap: 0 10px;
    }
    .boot-dir-status { display: block; margin-left: 0; }
}

/* Hamburger toggle butonu — varsayılan (masaüstü) gizli */
#nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px; height: 38px;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: none;
}
.nav-toggle-bar {
    display: block;
    width: 100%; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}

/* Telefon: yatay nav linklerini gizle, hamburger'ı göster */
@media (max-width: 720px) {
    #main-nav { padding: 16px 20px; flex-wrap: wrap; }
    #nav-toggle { display: flex; }
    .nav-status { display: none; }

    .nav-links {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        gap: 18px;
        padding: 18px 4px 6px;
        font-size: 18px;
    }
    /* Menü açıkken: nav-links görünür */
    #main-nav.nav-open .nav-links { display: flex; }

    /* Açık durumda hamburger → X */
    #main-nav.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    #main-nav.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
    #main-nav.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (pointer: coarse) {
    * { cursor: auto !important; }
    #cursor { display: none !important; }
}

/* ─── NEWS PAGE ─────────────────────────────────────────────────────────────── */
#news-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 52px 32px 64px;
    position: relative;
    z-index: 1;
}
.news-page-label { font-size: 12px; letter-spacing: .12em; color: #9a8d80; margin-bottom: 22px; }
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}
.news-card {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,.02);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}
.news-card-img { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; line-height: 1.2; margin: 0; }
.news-card-text { font-size: 14px; line-height: 1.65; color: var(--text-primary); opacity: .95; margin: 0; flex: 1; }
.news-card-date { font-size: 12px; color: var(--text-muted); letter-spacing: .5px; margin-top: auto; }
@media (max-width: 1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .news-grid { grid-template-columns: repeat(2, 1fr); } #news-page { padding: 40px 20px 48px; } }
@media (max-width: 480px)  { .news-grid { grid-template-columns: 1fr; } }
