/* ============================================================
   Petrium Studio — stilize tatlı tema + gece (hafif tekinsiz) tema
   Açık tema: Bodrum gündüzü — krem, mandalina turuncusu, deniz turkuazı
   Koyu tema: Bodrum gecesi — çivit gökyüzü, kehribar ışıklar, ay mavisi
   ============================================================ */

:root {
    --font-head: "Baloo 2", "Segoe UI", system-ui, sans-serif;
    --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;

    --bg: #fdf6e9;
    --surface: #ffffff;
    --surface-2: #fbeed6;
    --text: #45311f;
    --text-soft: #7a5f45;
    --primary: #e8862e;
    --primary-strong: #c96f21;
    --secondary: #2fa3c9;
    --line: #ecd9b8;
    --shadow: 0 10px 30px rgba(122, 79, 30, .14);
    --radius: 22px;

    --motif-color: %23e8862e;
    --motif-color-2: %232fa3c9;
}

html[data-theme="dark"] {
    --bg: #12142a;
    --surface: #1b1e3a;
    --surface-2: #232748;
    --text: #ece7fb;
    --text-soft: #a9a3c9;
    --primary: #ffb64d;
    --primary-strong: #e69a2e;
    --secondary: #7fb4e8;
    --line: #33375e;
    --shadow: 0 12px 34px rgba(0, 0, 0, .5);

    --motif-color: %23ffb64d;
    --motif-color-2: %237fb4e8;
}

* { box-sizing: border-box; }

/* hidden niteliği her zaman kazanır — display atayan sınıflar onu ezmesin
   (aksi hâlde gizli lightbox/backdrop görünmez bir bariyer gibi tıklamaları yutar) */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    transition: background .6s ease, color .6s ease;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; }
a { color: var(--primary-strong); text-decoration: none; }
img { max-width: 100%; }
body.tv-lock { overflow: hidden; }

.skip-link {
    position: absolute; left: -999px; top: 8px; z-index: 200;
    background: var(--primary); color: #fff; padding: 8px 16px; border-radius: 10px;
}
.skip-link:focus { left: 8px; }

/* ---------------- Üst çubuk — gpt/site tasarımından birebir kopya ----------------
   Renkler/fontlar sitenin geri kalanını etkilememek için --pt- önekiyle
   yalnızca bu iki bileşene tanımlanır. */
.arrival-ribbon,
.site-header {
    --pt-ink: #3f2419;
    --pt-muted: #795d50;
    --pt-orange: #ff9208;
    --pt-brown: #794311;
    --pt-gold: #ffc85a;
    --pt-paper-soft: #fffaf0;
    --pt-line: rgba(63, 36, 25, 0.16);
    --pt-display: "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
    --pt-mono: "Cascadia Mono", Consolas, monospace;
}
html[data-theme="dark"] .arrival-ribbon,
html[data-theme="dark"] .site-header {
    --pt-ink: #fff0d2;
    --pt-muted: #c8ac9d;
    --pt-orange: #ff8a2b;
    --pt-brown: #5b365e;
    --pt-gold: #d9a04e;
    --pt-paper-soft: #241d31;
    --pt-line: rgba(255, 240, 210, 0.14);
}

.arrival-ribbon {
    position: relative;
    z-index: 30;
    height: 48px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0 max(24px, calc((100vw - 1440px) / 2));
    border-bottom: 1px solid rgba(48, 101, 106, 0.19);
    background: linear-gradient(180deg, #a8dde0 0 56%, #5fc4c3 57% 66%, #eed29f 67%);
    color: #56371f;
    transition: background 0.55s ease, color 0.4s ease;
}

html[data-theme="dark"] .arrival-ribbon {
    color: #ead6c2;
    background: linear-gradient(180deg, #211d38 0 56%, #2e5d69 57% 66%, #30273a 67%);
}

.arrival-copy {
    position: relative;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 800 10px/1 var(--pt-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.arrival-copy > i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pt-orange);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.32);
}

.bodrum-mini {
    position: absolute;
    right: max(26px, calc((100vw - 1400px) / 2));
    bottom: 0;
    width: 255px;
    height: 48px;
}

.mini-sun {
    position: absolute;
    right: 8px;
    top: 7px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #ff9208;
    box-shadow: 0 0 0 6px rgba(255,255,255,0.25);
    transition: 0.5s ease;
}

html[data-theme="dark"] .mini-sun {
    background: #fff1bd;
    box-shadow: -6px 1px 0 #211d38, 0 0 16px rgba(255,241,189,0.32);
}

.mini-house {
    position: absolute;
    bottom: 5px;
    width: 34px;
    height: 21px;
    border-radius: 4px 4px 0 0;
    background: #fffaf0;
    box-shadow: inset -5px 0 rgba(67,142,157,0.21);
}

.mini-house::after {
    content: "";
    position: absolute;
    left: 7px;
    bottom: 0;
    width: 6px;
    height: 10px;
    background: #2c7cad;
}

html[data-theme="dark"] .mini-house {
    background: #d9d0c4;
    box-shadow: inset -5px 0 rgba(52,45,68,0.34);
}

.house-one { left: 10px; }
.house-two { left: 48px; width: 44px; height: 32px; }
.house-three { left: 98px; width: 29px; height: 18px; }

.mini-flower {
    position: absolute;
    left: 73px;
    bottom: 5px;
    width: 21px;
    height: 13px;
    border-radius: 50%;
    background: #e45b7e;
    box-shadow: -6px 1px #ec7180, 8px -4px #bf416b;
}

.mini-sail {
    position: absolute;
    left: 158px;
    bottom: 10px;
    width: 0;
    height: 0;
    border-right: 12px solid transparent;
    border-bottom: 23px solid rgba(255,255,255,0.92);
}

.site-header {
    position: relative;
    z-index: 40;
    width: min(1440px, calc(100% - 48px));
    min-height: 92px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 220px 1fr auto;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid var(--pt-line);
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--pt-ink);
    font-family: var(--pt-display);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.07em;
}

.brand-lockup img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 4px 0 rgba(77, 39, 14, 0.11));
}

.brand-lockup small {
    margin-left: 3px;
    color: var(--pt-orange);
    font-size: 10px;
    letter-spacing: 0.03em;
    vertical-align: top;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: clamp(20px, 3vw, 48px);
}

.main-nav a {
    position: relative;
    padding: 34px 2px 31px;
    color: var(--pt-muted);
    font-size: 13px;
    font-weight: 900;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 25px;
    height: 4px;
    border-radius: 99px;
    background: var(--pt-orange);
    transition: left 0.2s ease, right 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after { left: 1px; right: 1px; }

.header-tools,
.language-switch {
    display: flex;
    align-items: center;
}

.header-tools { gap: 10px; }

.language-switch {
    padding: 4px;
    border: 1px solid var(--pt-line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--pt-paper-soft) 80%, transparent);
}

.language-switch button {
    width: 34px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--pt-muted);
    cursor: pointer;
    font: 900 10px/1 var(--pt-mono);
}

.language-switch button.active {
    background: var(--pt-brown);
    color: #fff8ec;
}

.theme-switch {
    width: 62px;
    height: 42px;
    padding: 5px;
    border: 1px solid var(--pt-line);
    border-radius: 15px;
    background: var(--pt-paper-soft);
    cursor: pointer;
}

.theme-switch > span {
    position: relative;
    display: block;
    width: 100%;
    height: 30px;
    border-radius: 11px;
    background: var(--pt-gold);
    transition: background 0.4s ease;
}

.theme-switch i {
    position: absolute;
    left: 5px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff8e5;
    box-shadow: 0 2px 5px rgba(62,31,10,0.25);
    transition: transform 0.45s cubic-bezier(.2,.9,.2,1.2), box-shadow 0.4s ease;
}

html[data-theme="dark"] .theme-switch > span { background: #4d395f; }
html[data-theme="dark"] .theme-switch i {
    transform: translateX(26px);
    background: #ffe9ba;
    box-shadow: -6px 1px 0 #4d395f, 0 0 10px rgba(255,223,158,0.35);
}

@media (max-width: 1120px) {
    .site-header { grid-template-columns: 190px 1fr auto; }
}

@media (max-width: 900px) {
    .site-header { grid-template-columns: 1fr auto; padding-block: 12px; }
    .main-nav { grid-column: 1 / -1; grid-row: 2; order: 3; justify-content: space-between; border-top: 1px solid var(--pt-line); }
    .main-nav a { padding-block: 18px 14px; }
    .main-nav a::after { bottom: 7px; }
}

@media (max-width: 680px) {
    .site-header { width: min(100% - 30px, 1400px); grid-template-columns: auto 1fr; }
    .arrival-ribbon { padding-inline: 16px; }
    .arrival-copy { font-size: 8px; max-width: 48%; }
    .bodrum-mini { right: 8px; transform: scale(0.82); transform-origin: right bottom; }
    .brand-lockup span { display: none; }
    .brand-lockup img { width: 45px; height: 45px; }
    .header-tools { justify-self: end; }
    .main-nav { gap: 8px; }
    .main-nav a { font-size: 11px; }
}

@media (max-width: 420px) {
    .arrival-copy { max-width: 45%; line-height: 1.35; }
    .language-switch button { width: 29px; }
    .theme-switch { width: 52px; }
    html[data-theme="dark"] .theme-switch i { transform: translateX(16px); }
    .main-nav a { font-size: 10px; }
}

/* ---------------- Giriş sahnesi: oyunlar öne çıkar, Bodrum uzakta kalır ---------------- */
.hero {
    position: relative; min-height: 88vh; min-height: 88dvh;
    display: flex; flex-direction: column; background: var(--bg);
    transition: background .6s ease;
}

/* ---------------- Orta bölüm: logo ---------------- */
.hero-center {
    flex: 1; width: 100%; box-sizing: border-box;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 50px 24px; gap: 4px;
}
.hero-kicker {
    font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
    font-size: clamp(.75rem, 1.6vw, .9rem); color: var(--text-soft); margin: 0 0 4px;
}
.hero-logo-wrap {
    position: relative; width: 100%; max-width: 560px; margin: 6px 0 4px;
    display: flex; align-items: center; justify-content: center;
}
.hero-logo-bg {
    position: absolute; z-index: 0; width: 92%; max-width: 520px; height: auto;
    left: 50%; top: 50%; transform: translate(-50%, -50%);
    animation: floatIn 1.1s ease both;
}
.hero-logo {
    position: relative; z-index: 1;
    width: 100%; max-width: 560px; height: auto;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .14));
    animation: floatIn 1s ease both;
}
.hero-subtitle {
    color: var(--text-soft); font-size: clamp(1rem, 2.2vw, 1.25rem);
    max-width: 56ch; margin: 4px 0 22px;
}

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(9px); } }
@keyframes floatIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------------- Sayfa içeriği ---------------- */
.page-content { max-width: 1120px; margin: 0 auto; padding: 60px 24px 80px; }
.home-content { position: relative; background: var(--bg); transition: background .6s ease; }

.section { margin: 70px 0; }
.section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.section-head h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.3rem); }
.section-link { margin-left: auto; font-weight: 800; }
.about-text { font-size: 1.15rem; max-width: 70ch; }

.page-hero { text-align: center; padding: 40px 0 10px; }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.page-hero p { color: var(--text-soft); font-size: 1.15rem; }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .3, 1); }
.reveal.revealed { opacity: 1; transform: none; }

/* ---------------- Türk motifleri ---------------- */
/* Kilim zigzagı bölüm ayracı */
.motif-divider {
    height: 18px; margin: 10px auto; max-width: 1120px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='18' viewBox='0 0 48 18'%3E%3Cpath d='M0 14 L12 4 L24 14 L36 4 L48 14' fill='none' stroke='var(--x)' stroke-width='2.6' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='4' r='2' fill='var(--y)'/%3E%3Ccircle cx='36' cy='4' r='2' fill='var(--y)'/%3E%3C/svg%3E");
    background-repeat: repeat-x; background-position: center; opacity: .85;
}
/* CSS değişkenleri data-URI içinde çalışmaz; iki tema için ayrı görüntü */
html[data-theme="light"] .motif-divider {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='18' viewBox='0 0 48 18'%3E%3Cpath d='M0 14 L12 4 L24 14 L36 4 L48 14' fill='none' stroke='%23e8862e' stroke-width='2.6' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='4' r='2' fill='%232fa3c9'/%3E%3Ccircle cx='36' cy='4' r='2' fill='%232fa3c9'/%3E%3C/svg%3E");
}
html[data-theme="dark"] .motif-divider {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='18' viewBox='0 0 48 18'%3E%3Cpath d='M0 14 L12 4 L24 14 L36 4 L48 14' fill='none' stroke='%23ffb64d' stroke-width='2.6' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='4' r='2' fill='%237fb4e8'/%3E%3Ccircle cx='36' cy='4' r='2' fill='%237fb4e8'/%3E%3C/svg%3E");
}

/* Lale motifi — bölüm başlıklarının yanında */
.motif-tulip { width: 30px; height: 34px; flex: none; display: inline-block; }
html[data-theme="light"] .motif-tulip {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 34'%3E%3Cpath d='M15 2 C15 2 8 9 8 14 a7 7 0 0 0 14 0 C22 9 15 2 15 2 Z' fill='%23e8862e'/%3E%3Cpath d='M6 6 C4 10 5 15 9 17 L11 13 C9 11 7 9 6 6 Z' fill='%23c96f21'/%3E%3Cpath d='M24 6 C26 10 25 15 21 17 L19 13 C21 11 23 9 24 6 Z' fill='%23c96f21'/%3E%3Cpath d='M15 21 L15 30 M15 26 C12 26 10 24 9 22 M15 26 C18 26 20 24 21 22' stroke='%232fa3c9' stroke-width='2.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
html[data-theme="dark"] .motif-tulip {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 34'%3E%3Cpath d='M15 2 C15 2 8 9 8 14 a7 7 0 0 0 14 0 C22 9 15 2 15 2 Z' fill='%23ffb64d'/%3E%3Cpath d='M6 6 C4 10 5 15 9 17 L11 13 C9 11 7 9 6 6 Z' fill='%23e69a2e'/%3E%3Cpath d='M24 6 C26 10 25 15 21 17 L19 13 C21 11 23 9 24 6 Z' fill='%23e69a2e'/%3E%3Cpath d='M15 21 L15 30 M15 26 C12 26 10 24 9 22 M15 26 C18 26 20 24 21 22' stroke='%237fb4e8' stroke-width='2.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Nazar boncuğu */
.nazar {
    width: 26px; height: 26px; border-radius: 50%; display: inline-block; flex: none;
    background: radial-gradient(circle at 50% 50%,
        #14213d 0 20%, #ffffff 20% 34%, #4ea3e6 34% 62%, #ffffff 62% 74%, #1d3a8f 74% 100%);
    box-shadow: 0 0 0 2px rgba(78, 163, 230, .35);
}
html[data-theme="dark"] .nazar { box-shadow: 0 0 14px rgba(78, 163, 230, .8); animation: nazarGlow 3.4s ease-in-out infinite; }
@keyframes nazarGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(78, 163, 230, .5); }
    50% { box-shadow: 0 0 20px rgba(78, 163, 230, .95); }
}

/* ---------------- Butonlar ---------------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-head); font-weight: 700; font-size: 1rem;
    padding: 11px 24px; border-radius: 999px; border: 2px solid transparent;
    cursor: pointer; transition: transform .18s, box-shadow .25s, background .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-strong); }
.btn-danger { background: #d84545; color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-sm { padding: 6px 14px; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------------- Oyun kartları ---------------- */
.game-grid {
    display: grid; gap: 28px;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.game-card {
    background: var(--surface); border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line); color: var(--text);
    box-shadow: var(--shadow); display: flex; flex-direction: column;
    transition: transform .3s cubic-bezier(.2, .7, .3, 1.4), box-shadow .3s, background .6s ease, border-color .6s ease;
}
.game-card:hover { transform: translateY(-8px) rotate(-.6deg); }
.game-card-cover { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--surface-2); }
.game-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.game-card:hover .game-card-cover img { transform: scale(1.07); }
.cover-fallback { display: grid; place-items: center; height: 100%; font-size: 3rem; }
.game-badge {
    position: absolute; top: 12px; right: 12px; background: var(--primary); color: #fff;
    font-family: var(--font-head); font-weight: 700; font-size: .8rem;
    padding: 4px 12px; border-radius: 999px; box-shadow: 0 3px 10px rgba(0,0,0,.25);
}
.game-badge.inline { position: static; display: inline-block; margin: 6px 0 14px; }
.game-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; }
.game-card-body h3 { margin: 0; font-size: 1.35rem; }
.game-card-body p { margin: 0; color: var(--text-soft); }
.game-card-more { margin-top: 10px; font-weight: 800; color: var(--primary-strong); }

/* ---------------- Oyun detay ---------------- */
.back-link { display: inline-block; margin-bottom: 18px; font-weight: 800; }
.game-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
.game-hero-cover { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.game-hero-info h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 4px; }
.game-tagline { font-size: 1.2rem; color: var(--text-soft); }
.mini-title { font-size: 1.05rem; margin: 20px 0 10px; }
.store-links { display: flex; flex-wrap: wrap; gap: 10px; }
.store-link {
    display: inline-flex; align-items: center; gap: 9px; padding: 9px 18px 9px 10px;
    background: var(--surface); border: 2px solid var(--line); border-radius: 999px;
    font-weight: 800; color: var(--text); transition: transform .2s, border-color .25s;
}
.store-link:hover { transform: translateY(-3px); border-color: var(--primary); }
.badge-icon {
    width: 30px; height: 30px; border-radius: 50%; color: #fff; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
}
.badge-icon svg { display: block; }
.game-desc p { font-size: 1.08rem; max-width: 75ch; }

/* ---------------- Retro TV ---------------- */
.tv-section { text-align: center; }
.tv-hint { color: var(--text-soft); font-weight: 700; }
.tv-wrap { display: flex; flex-direction: column; align-items: center; }
.retro-tv {
    width: min(620px, 92%); cursor: pointer; user-select: none;
    transition: transform .3s cubic-bezier(.2, .7, .3, 1.4);
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .3));
}
.retro-tv:hover { transform: scale(1.025) rotate(-.4deg); }

.tv-antenna { display: flex; justify-content: center; gap: 46px; height: 46px; }
.tv-antenna span {
    width: 5px; height: 56px; border-radius: 4px;
    background: linear-gradient(#777, #333);
}
.tv-antenna span:first-child { transform: rotate(-26deg) translateY(9px); }
.tv-antenna span:last-child { transform: rotate(26deg) translateY(9px); }

.tv-body {
    display: grid; grid-template-columns: 1fr 96px; gap: 14px;
    background: linear-gradient(145deg, #8a5a34, #6b4023 60%, #59341c);
    border-radius: 26px; padding: 22px; border: 3px solid #4a2c17;
}
.tv-screen-frame {
    background: #2b2018; border-radius: 18px; padding: 12px;
    box-shadow: inset 0 3px 12px rgba(0,0,0,.7);
}
.tv-screen {
    position: relative; aspect-ratio: 4/3; border-radius: 14px / 18px; overflow: hidden;
    background: #0d0f11;
}
.tv-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Parazit ekranı */
.tv-static {
    position: absolute; inset: 0; opacity: .55;
    background-image: repeating-radial-gradient(circle at 17% 32%, #444 0 1px, transparent 1px 3px),
                      repeating-radial-gradient(circle at 73% 64%, #666 0 1px, transparent 1px 2px),
                      repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 2px, transparent 2px 4px);
    animation: staticFlicker .35s steps(3) infinite;
}
.tv-playing .tv-static, .tv-playing .tv-play { display: none; }
@keyframes staticFlicker {
    0% { transform: translate(0, 0); } 50% { transform: translate(-6px, 4px); } 100% { transform: translate(5px, -3px); }
}
.tv-play {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 3.6rem; color: #fff; text-shadow: 0 0 26px var(--primary);
    animation: bob 2s ease-in-out infinite;
}
/* Tarama çizgileri her zaman ekranın üzerinde */
.tv-screen::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,.14) 0 2px, transparent 2px 4px);
    border-radius: inherit;
}
.tv-side { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 8px; }
.tv-knob {
    width: 40px; height: 40px; border-radius: 50%;
    background: radial-gradient(circle at 34% 30%, #e8d1b0, #9c7346 70%);
    border: 3px solid #4a2c17; position: relative;
}
.tv-knob::after {
    content: ""; position: absolute; left: 50%; top: 4px; width: 4px; height: 12px;
    background: #4a2c17; transform: translateX(-50%); border-radius: 3px;
}
.tv-knob.small { width: 28px; height: 28px; }
.tv-speaker { display: flex; flex-direction: column; gap: 5px; width: 100%; padding: 6px 10px; }
.tv-speaker i { height: 4px; border-radius: 3px; background: #4a2c17; opacity: .8; }
.tv-brand {
    font-family: var(--font-head); color: #f3ddba; font-size: .68rem; letter-spacing: .12em;
    text-transform: uppercase; opacity: .9;
}
.tv-legs { display: flex; justify-content: space-between; padding: 0 70px; }
.tv-legs span {
    width: 16px; height: 34px; background: linear-gradient(#6b4023, #4a2c17);
    border-radius: 0 0 8px 8px; transform: skewX(-8deg);
}
.tv-legs span:last-child { transform: skewX(8deg); }

/* Büyümüş TV */
.tv-backdrop {
    position: fixed; inset: 0; z-index: 55; background: rgba(8, 6, 14, .78);
    backdrop-filter: blur(5px); animation: fadeIn .3s ease;
}
.tv-expanded .retro-tv {
    position: fixed; z-index: 60; left: 50%; top: 50%;
    width: min(1020px, 94vw); max-height: 94vh;
    transform: translate(-50%, -50%);
    animation: tvPop .5s cubic-bezier(.2, .7, .3, 1.2);
    cursor: default;
}
.tv-expanded .retro-tv:hover { transform: translate(-50%, -50%); }
.tv-close {
    position: fixed; z-index: 62; top: 20px; right: 24px;
    background: var(--primary); border: none; color: #fff; cursor: pointer;
    font-family: var(--font-head); font-weight: 700; font-size: 1rem;
    padding: 10px 20px; border-radius: 999px; box-shadow: var(--shadow);
}
@keyframes tvPop { from { transform: translate(-50%, -46%) scale(.6); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------------- Ekran görüntüleri ---------------- */
.shot-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.shot {
    border: 1px solid var(--line); background: var(--surface); padding: 0; cursor: zoom-in;
    border-radius: 16px; overflow: hidden; box-shadow: var(--shadow);
    transition: transform .25s;
}
.shot:hover { transform: scale(1.04) rotate(.5deg); }
.shot img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.lightbox {
    position: fixed; inset: 0; z-index: 70; background: rgba(5, 5, 12, .88);
    display: grid; place-items: center; cursor: zoom-out; animation: fadeIn .25s ease;
}
.lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }

/* ---------------- Ekip ---------------- */
.team-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.team-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px 22px; text-align: center; box-shadow: var(--shadow);
    transition: transform .3s cubic-bezier(.2, .7, .3, 1.4), background .6s ease, border-color .6s ease;
}
.team-card:hover { transform: translateY(-7px) rotate(.5deg); }
.team-photo { width: 116px; height: 116px; margin: 0 auto 14px; }
.team-photo img, .photo-fallback {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
    border: 4px solid var(--primary); box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.photo-fallback {
    display: grid; place-items: center; background: var(--surface-2);
    font-family: var(--font-head); font-size: 2.6rem; color: var(--primary);
}
.team-card h3 { margin: 4px 0 0; }
.team-role { color: var(--primary-strong); font-weight: 800; margin: 2px 0 10px; }
.team-bio { color: var(--text-soft); font-size: .95rem; }
.team-links { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }

/* ---------------- Duyurular ---------------- */
.news-list { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.news-list.single-column { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
.news-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px 26px; box-shadow: var(--shadow); position: relative; overflow: hidden;
    transition: background .6s ease, border-color .6s ease;
}
.news-card::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
    background: linear-gradient(var(--primary), var(--secondary));
}
.news-card time { color: var(--text-soft); font-size: .85rem; font-weight: 700; letter-spacing: .04em; }
.news-card h3 { margin: 6px 0 8px; }
.news-card p { margin: 0; color: var(--text-soft); }

.contact-cta { text-align: center; padding: 30px 0; }
.empty-note { color: var(--text-soft); text-align: center; font-size: 1.05rem; }

/* ---------------- Altbilgi ---------------- */
.site-footer { background: var(--surface-2); margin-top: 60px; transition: background .6s; }
.footer-inner {
    max-width: 1120px; margin: 0 auto; padding: 40px 24px;
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px;
}
.footer-logo { width: 84px; }
.footer-mail { font-weight: 800; }
.footer-social h3 { margin-bottom: 14px; }
.social-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.social-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 8px;
    background: var(--surface); border: 2px solid var(--line); border-radius: 999px;
    color: var(--text); font-weight: 800; transition: transform .2s, border-color .25s;
}
.social-badge:hover { transform: translateY(-3px) rotate(-1deg); border-color: var(--primary); }
.footer-bottom {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    padding: 16px 24px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--text-soft);
}
.footer-bottom p { margin: 0; }
.admin-link { opacity: .45; font-size: 1.05rem; }
.admin-link:hover { opacity: 1; }

/* ---------------- Hata sayfası ---------------- */
.error-page { text-align: center; padding-top: 110px; min-height: 60vh; }
.error-page h1 { font-size: 6rem; margin: 0; color: var(--primary); }
.error-fish { font-size: 3rem; animation: bob 2.4s ease-in-out infinite; }

/* ---------------- Bildirimler ---------------- */
.toast {
    position: fixed; right: 24px; bottom: 24px; z-index: 90;
    padding: 14px 24px; border-radius: 14px; font-weight: 700; color: #fff;
    box-shadow: 0 12px 34px rgba(0,0,0,.3);
    opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .4s;
}
.toast.show { opacity: 1; transform: none; }
.toast-ok { background: #2e9e63; }
.toast-err { background: #d84545; }

/* ============================================================
   ADMIN PANELİ
   ============================================================ */
.admin-body { background: var(--bg); }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }

.admin-sidebar {
    background: var(--surface); border-right: 1px solid var(--line);
    padding: 20px 14px; display: flex; flex-direction: column; gap: 20px;
    position: sticky; top: 0; height: 100vh;
}
.admin-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; color: var(--text); }
.admin-brand img { width: 40px; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.admin-sidebar nav a {
    padding: 10px 14px; border-radius: 12px; color: var(--text); font-weight: 700;
    transition: background .2s;
}
.admin-sidebar nav a:hover { background: color-mix(in srgb, var(--primary) 14%, transparent); }
.admin-sidebar nav a.active { background: var(--primary); color: #fff; }
.admin-sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 0 14px; }
.linklike { background: none; border: none; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; padding: 0; text-align: left; }
.linklike:hover { color: var(--primary-strong); }

.admin-main { padding: 26px 34px 60px; min-width: 0; }
.admin-topbar { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.admin-topbar h1 { margin: 0; font-size: 1.7rem; }
.admin-topbar-controls { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.admin-user { font-weight: 700; color: var(--text-soft); }

.stat-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 28px; }
.stat-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
    padding: 22px; text-align: center; color: var(--text); box-shadow: var(--shadow);
    transition: transform .2s, background .6s ease, border-color .6s ease;
}
.stat-card:hover { transform: translateY(-4px); }
.stat-card strong { display: block; font-size: 2.2rem; font-family: var(--font-head); color: var(--primary); }

.admin-panel {
    background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
    padding: 26px; margin-bottom: 26px; box-shadow: var(--shadow);
    transition: background .6s ease, border-color .6s ease;
}
.admin-actions { margin-bottom: 18px; }

.admin-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.admin-table th {
    text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--line);
    font-family: var(--font-head); color: var(--text-soft);
}
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.row-thumb { width: 74px; height: 44px; object-fit: cover; border-radius: 8px; }
.row-thumb.round { width: 44px; height: 44px; border-radius: 50%; }
.thumb-cell { width: 84px; }
.row-actions { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.row-actions form { display: inline; margin: 0; }

/* Formlar */
.stack-form { display: flex; flex-direction: column; gap: 16px; }
.stack-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.stack-form input[type="text"], .stack-form input[type="password"], .stack-form input[type="email"],
.stack-form input[type="url"], .stack-form input[type="number"], .stack-form textarea, .stack-form select,
.inline-form input, .inline-form select {
    font: inherit; padding: 10px 14px; border-radius: 12px;
    border: 2px solid var(--line); background: var(--bg); color: var(--text);
    transition: border-color .2s;
}
.stack-form input:focus, .stack-form textarea:focus, .stack-form select:focus { outline: none; border-color: var(--primary); }
.stack-form textarea { resize: vertical; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.three-col { display: grid; grid-template-columns: repeat(3, auto); gap: 22px; align-items: center; justify-content: start; }
.check-label { flex-direction: row !important; align-items: center; gap: 8px !important; }
.form-hint { color: var(--text-soft); font-size: .88rem; margin: 0; }
.form-errors ul { margin: 0; padding-left: 18px; color: #d84545; font-weight: 700; }
.form-preview { max-width: 220px; border-radius: 12px; border: 1px solid var(--line); }
.form-preview.round { width: 110px; height: 110px; object-fit: cover; border-radius: 50%; }
.status-ok { color: #2e9e63; font-weight: 800; }
.status-warn { color: #d8892e; font-weight: 800; }

.links-editor { border: 2px dashed var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.links-editor legend { font-family: var(--font-head); font-weight: 700; padding: 0 8px; }
.link-row { display: grid; grid-template-columns: 1fr 2fr auto auto; gap: 8px; }
.link-row input, .link-row select {
    font: inherit; padding: 8px 12px; border-radius: 10px;
    border: 2px solid var(--line); background: var(--bg); color: var(--text);
}
#addLinkRow { align-self: flex-start; }

.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input[name="name"] { width: 140px; }
.inline-form input[name="url"] { flex: 1; min-width: 220px; }
.num-input { width: 76px; }

.shot-admin-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.shot-admin { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.shot-admin img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.shot-admin form { position: absolute; top: 8px; right: 8px; }

.pager { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.pager a, .pager .current {
    padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); font-weight: 700;
}
.pager .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Giriş ekranı */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.auth-card {
    width: min(430px, 100%); background: var(--surface); border: 1px solid var(--line);
    border-radius: 26px; padding: 40px 36px; box-shadow: var(--shadow); text-align: center;
    animation: floatIn .7s ease both;
}
.auth-logo { width: 110px; margin-bottom: 8px; }
.auth-title { font-size: 1.55rem; }
.auth-sub { color: var(--text-soft); margin-top: -6px; }
.auth-card .stack-form { text-align: left; margin-top: 18px; }
.auth-controls { position: fixed; top: 18px; right: 20px; display: flex; gap: 8px; }
.totp-input { text-align: center; font-size: 1.6rem; letter-spacing: .4em; font-family: var(--font-head); }
.qr-row { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
#qrBox { background: #fff; padding: 12px; border-radius: 14px; border: 1px solid var(--line); }
.cli-hint {
    background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
    padding: 14px 18px; font-size: .88rem; overflow-x: auto;
}
.secret-code {
    display: inline-block; background: var(--bg); padding: 10px 16px; border-radius: 10px;
    font-size: 1.05rem; letter-spacing: .12em; word-break: break-all;
}

/* ---------------- Duyarlılık ---------------- */
@media (max-width: 900px) {
    .game-hero { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
    .admin-sidebar nav { flex-direction: row; flex-wrap: wrap; }
    .admin-sidebar-foot { margin: 0; flex-direction: row; }
}
@media (max-width: 720px) {
    .tv-legs { padding: 0 40px; }
    .link-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
}
