/* Portföy sitesi: ortak stil (v2). Koyu ve canlı; bölüm renkleri: Games turuncu, Apps camgöbeği, Experimental mor.
   Oyun sayfaları kendi paletini verir (body.game-de: Paşa turuncusu + çınar yeşili). Sayfalar build.py ile üretilir. */
:root {
  --bg: #0a0c16; --bg2: #10142a; --surface: #151a33; --surface2: #1c2242; --text: #eef0fb; --muted: #a3a9c9; --line: #2a3160;
  --a1: #7c5cff; --a2: #22d3ee; --a3: #ff7a59; --accent: #8f7bff; --accent-ink: #0a0c16;
  --games: #ff8a3d; --apps: #22d3ee; --exp: #c06bff; --ok: #3ddc97;
  --radius: 16px; --max: 1180px;
  --grad: linear-gradient(100deg, var(--a1), var(--a2) 55%, var(--a3));
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
:root[data-theme="light"] {
  --bg: #f6f5fb; --bg2: #ecebf7; --surface: #ffffff; --surface2: #f3f2fb; --text: #15172b; --muted: #5d6185; --line: #dcdaf0;
  --accent: #5b3df5; --accent-ink: #ffffff; --a2: #0aa5c2;
}
body.game-de { --a1: #ff8a3d; --a2: #ffc857; --a3: #3ddc97; --accent: #ff8a3d; --accent-ink: #1a0f04; --grad: linear-gradient(100deg, var(--a1), var(--a2) 55%, var(--a3)); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 17px; line-height: 1.65; overflow-x: hidden; animation: page-in 0.5s ease backwards; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
html[data-lang="en"] .tr, html[data-lang="tr"] .en { display: none !important; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: sheen 8s linear infinite; }
@keyframes sheen { to { background-position: 200% 0; } }
#progress { position: fixed; left: 0; top: 0; height: 3px; width: 0; background: var(--grad); z-index: 60; }

/* üst menü */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 22px; min-height: 64px; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 21px; letter-spacing: 0.01em; color: var(--text); text-decoration: none; }
/* logo: üstüne gelince CQ açılır, ConQueror olur */
.brand { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.brand b { font-weight: 800; display: inline-flex; align-items: baseline; }
.brand b i { font-style: normal; display: inline-block; max-width: 0; opacity: 0; overflow: hidden; transform: translateY(0.25em); transition: max-width 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.brand b i:last-child { transition-delay: 0.08s; }
.brand:hover b i, .brand:focus-visible b i { max-width: 5em; opacity: 1; transform: none; }
.brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.main-nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.main-nav > .item { position: relative; }
.main-nav a { display: block; padding: 8px 13px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; position: relative; }
.main-nav > .item > a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--c, var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform 0.25s; }
.main-nav > .item > a:hover::after, .main-nav > .item > a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav .sub { display: none; position: absolute; left: 0; top: 100%; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 18px 40px rgb(0 0 0 / 0.4); animation: page-in 0.2s ease both; }
.main-nav .item:hover .sub, .main-nav .item:focus-within .sub { display: block; }
.main-nav .sub a { font-weight: 500; }
.main-nav .sub a:hover { background: var(--surface2); }
.tools { display: flex; gap: 6px; }
.tools button { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 10px; padding: 6px 11px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: border-color 0.2s, transform 0.2s; }
.tools button:hover { border-color: var(--accent); transform: translateY(-1px); }

/* kaydırınca beliren öğeler */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ana sayfa kahramanı */
.hero { position: relative; padding: 96px 0 70px; overflow: hidden; }
.hero .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; animation: float 16s ease-in-out infinite; pointer-events: none; }
.hero .b1 { width: 460px; height: 460px; background: var(--a1); left: -120px; top: -140px; }
.hero .b2 { width: 380px; height: 380px; background: var(--a2); right: -80px; top: 20px; animation-delay: -5s; }
.hero .b3 { width: 320px; height: 320px; background: var(--a3); left: 38%; bottom: -180px; animation-delay: -10s; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, 30px) scale(1.08); } 66% { transform: translate(-30px, 50px) scale(0.94); } }
.hero .wrap { position: relative; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 { font-size: clamp(38px, 7vw, 78px); line-height: 1.04; margin: 0 0 18px; letter-spacing: -0.03em; max-width: 14ch; }
.hero h1 .rot { display: inline-block; min-width: 4ch; }
.hero p.sub { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 660px; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--grad); background-size: 160% 100%; color: #0a0c16; padding: 13px 22px; border-radius: 12px; font-weight: 800; text-decoration: none; transition: transform 0.2s, background-position 0.4s, box-shadow 0.2s; box-shadow: 0 10px 30px -12px var(--a1); }
.btn:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 16px 34px -12px var(--a2); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--accent); }
.page-hero { position: relative; padding: 70px 0 26px; overflow: hidden; }
.page-hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.06; margin: 0 0 12px; letter-spacing: -0.02em; }
.page-hero p { font-size: 20px; color: var(--muted); max-width: 720px; margin: 0; }

/* genel bloklar */
section { padding: 44px 0; position: relative; }
section.alt { background: linear-gradient(180deg, var(--bg2), var(--bg)); border-top: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 12px; letter-spacing: -0.02em; line-height: 1.15; }
h3 { font-size: 20px; margin: 0 0 6px; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c, var(--accent)); margin-bottom: 8px; display: block; }
.lead { font-size: 19px; color: var(--muted); max-width: 780px; margin: 0 0 22px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.card { position: relative; background: linear-gradient(160deg, var(--surface), var(--surface2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; color: var(--text); text-decoration: none; display: block; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--c, var(--grad)); opacity: 0.9; }
a.card:hover, .card.lift:hover { transform: translateY(-6px); border-color: var(--c, var(--accent)); box-shadow: 0 22px 44px -22px var(--c, var(--accent)); }
.card p { margin: 0; color: var(--muted); }
.card .ico { font-size: 30px; line-height: 1; margin-bottom: 12px; display: block; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--c, var(--accent)); }
.card.media { padding: 0; }
.card.media img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform 0.6s; }
.card.media:hover img { transform: scale(1.05); }
.card.media .body { padding: 18px 22px 22px; }
.flip { perspective: 1200px; aspect-ratio: 16 / 9; cursor: pointer; }
.flip-in { position: relative; width: 100%; height: 100%; transition: transform 0.7s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; }
.flip:hover .flip-in, .flip:focus-visible .flip-in, .flip.on .flip-in { transform: rotateY(180deg); }
.flip .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.flip .face.back { transform: rotateY(180deg); }
.card.media .flip img { height: 100%; transform: none; }
.flip .face .lab { position: absolute; left: 10px; bottom: 10px; padding: 3px 9px; border-radius: 8px; background: rgb(0 0 0 / 0.6); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c, var(--accent)); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 13px; font-size: 14px; font-weight: 600; }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 54px 22px; text-align: center; color: var(--muted); background: var(--surface); }
.empty .ico { font-size: 42px; display: block; margin-bottom: 8px; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* sayılar */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 14px; margin: 26px 0 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.stat b { display: block; font-size: 38px; line-height: 1.1; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 14px; }
.stats.big { gap: 20px; margin-top: 10px; }
.card.stat-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 220px; gap: 6px; }
.card.stat-card b { font-size: clamp(56px, 7vw, 88px); line-height: 1.05; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card.stat-card span { font-size: 18px; font-weight: 700; }
.stats.big .stat { padding: 30px 26px; text-align: center; }
.stats.big .stat b { font-size: clamp(52px, 8vw, 92px); }
.stats.big .stat span { font-size: 18px; font-weight: 700; color: var(--text, inherit); }

/* kayan görsel şeridi */
.marquee { overflow: hidden; padding: 6px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .track { display: flex; gap: 16px; width: max-content; animation: slide 60s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee img { height: 190px; width: auto; border-radius: 12px; border: 1px solid var(--line); }
@keyframes slide { to { transform: translateX(-50%); } }

/* öne çıkan proje */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 34px; align-items: center; }
.slides { position: relative; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px #000; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s; animation: kenburns 14s ease-in-out infinite alternate; }
.slides img.on { opacity: 1; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.5%, -1.5%); } }

/* oyun sayfası */
.game-hero { position: relative; color: #fff; min-height: 520px; display: flex; align-items: flex-end; overflow: hidden; background: #070812; }
.game-hero .slides { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; border: 0; }
.game-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(7 8 18 / 0.25) 0%, rgb(7 8 18 / 0.55) 55%, var(--bg) 100%); }
.game-hero .wrap { position: relative; z-index: 2; padding-top: 150px; padding-bottom: 40px; width: 100%; }
.game-hero h1 { font-size: clamp(42px, 8vw, 92px); margin: 0 0 8px; line-height: 1; letter-spacing: -0.03em; text-shadow: 0 6px 30px rgb(0 0 0 / 0.5); }
.game-hero p { font-size: clamp(18px, 2.3vw, 23px); max-width: 720px; margin: 0 0 22px; color: #f1eee6; }
.status { display: inline-flex; align-items: center; gap: 8px; background: rgb(0 0 0 / 0.45); border: 1px solid rgb(255 255 255 / 0.25); color: #fff; font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; backdrop-filter: blur(6px); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--a3); animation: pulse 2s infinite; box-shadow: 0 0 0 0 var(--a3); }
.subnav { position: sticky; top: 64px; z-index: 30; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); }
.subnav .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.subnav a { padding: 15px 15px; color: var(--muted); text-decoration: none; font-weight: 700; white-space: nowrap; border-bottom: 3px solid transparent; transition: color 0.2s; }
.subnav a:hover { color: var(--text); }
.subnav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; }
.facts b { display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.split.rev > :first-child { order: 2; }
.split img, .shot { border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 26px 50px -30px #000; width: 100%; }
.quote { border-left: 4px solid var(--accent); padding: 6px 0 6px 18px; font-size: 21px; font-style: italic; margin: 18px 0; color: var(--text); }
.quote small { display: block; font-style: normal; font-size: 14px; color: var(--muted); margin-top: 4px; }
.rules { counter-reset: r; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.rules li { counter-increment: r; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 16px 58px; position: relative; }
.rules li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 16px; top: 14px; font-weight: 800; font-size: 20px; color: var(--accent); }
.rules b { display: block; }
.rules span { color: var(--muted); font-size: 15px; }
.person { display: flex; gap: 14px; align-items: flex-start; }
.avatar { flex: 0 0 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #0a0c16; background: var(--c, var(--grad)); }
.avatar.photo { flex: 0 0 76px; height: 76px; border-radius: 18px; overflow: hidden; padding: 0; background: var(--surface); box-shadow: 0 0 0 2px var(--line); }
.avatar.photo img { width: 100%; height: 100%; object-fit: cover; }
img.zoomable { cursor: zoom-in; }
.carousel { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 26px 50px -30px #000; }
.carousel .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.carousel .track::-webkit-scrollbar { display: none; }
.carousel figure { flex: 0 0 100%; margin: 0; position: relative; scroll-snap-align: start; }
.carousel img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.carousel figcaption { position: absolute; left: 12px; bottom: 34px; padding: 4px 10px; border-radius: 8px; background: rgb(0 0 0 / 0.6); color: #fff; font-size: 13px; font-weight: 700; }
.carousel .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid #ffffff66; background: #000000aa; color: #fff; font-size: 24px; cursor: pointer; opacity: 0; transition: opacity 0.25s; }
.carousel .prev { left: 10px; } .carousel .next { right: 10px; }
.carousel:hover .nav, .carousel:focus-within .nav { opacity: 1; }
@media (hover: none) { .carousel .nav { opacity: 0.85; } }
.carousel .dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.carousel .dots i { width: 7px; height: 7px; border-radius: 50%; background: #ffffff77; transition: background 0.2s, transform 0.2s; }
.carousel .dots i.on { background: #fff; transform: scale(1.3); }
.zoombox { position: fixed; inset: 0; z-index: 90; background: rgb(4 5 12 / 0.94); display: none; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.zoombox.open { display: flex; animation: page-in 0.25s ease both; }
.zoombox img { max-width: 100%; max-height: 88vh; border-radius: 10px; box-shadow: 0 30px 80px -20px #000; }
.zoombox .close { position: absolute; top: 18px; right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid #ffffff55; background: #00000088; color: #fff; font-size: 22px; cursor: pointer; }
.zoombox .cap { position: absolute; bottom: 14px; left: 16px; right: 16px; text-align: center; color: #fff; font-weight: 700; }
.person .role { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.04em; }

/* zaman çizgisi */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline > li { position: relative; padding: 0 0 30px 26px; }
.timeline > li::before { content: ""; position: absolute; left: -9px; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.timeline > li.done::before { background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent); }
.timeline .when { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.timeline ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }
.pill { display: inline-block; font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); margin-left: 8px; vertical-align: middle; color: var(--muted); }
.pill.now { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.bar { height: 10px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line); overflow: hidden; margin: 10px 0 4px; }
.bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 999px; transition: width 1.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
figure { margin: 0; }
figcaption { font-size: 14px; color: var(--muted); padding: 8px 2px 0; }

/* önce / sonra sürgüsü */
.ba { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; user-select: none; touch-action: pan-y; cursor: ew-resize; box-shadow: 0 26px 50px -30px #000; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .top { clip-path: inset(0 calc(100% - var(--p, 50%)) 0 0); }
.ba .handle { position: absolute; top: 0; bottom: 0; left: var(--p, 50%); width: 3px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 12px rgb(0 0 0 / 0.6); }
.ba .handle::after { content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; font-weight: 800; font-size: 20px; box-shadow: 0 6px 18px rgb(0 0 0 / 0.45); }
.ba .lab { position: absolute; top: 12px; padding: 4px 10px; border-radius: 8px; background: rgb(0 0 0 / 0.6); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; }
.ba .lab.l { left: 12px; } .ba .lab.r { right: 12px; }

/* galeri */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.filters button { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 8px 15px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.filters button:hover { border-color: var(--accent); }
.filters button[aria-pressed="true"] { background: var(--grad); color: #0a0c16; border-color: transparent; }
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr)); }
.gallery figure { cursor: zoom-in; position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.gallery img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform 0.5s; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; color: #fff; font-weight: 700; background: linear-gradient(180deg, transparent, rgb(0 0 0 / 0.78)); }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgb(4 5 12 / 0.94); display: none; align-items: center; justify-content: center; padding: 16px; }
.lightbox.open { display: flex; animation: page-in 0.25s ease both; }
.lightbox img { max-height: 88vh; border-radius: 10px; }
.lightbox button { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid #ffffff55; background: #00000088; color: #fff; font-size: 22px; cursor: pointer; }
.lightbox .prev { left: 14px; } .lightbox .next { right: 14px; } .lightbox .close { top: 34px; right: 14px; }
.lightbox .cap { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 700; }

.site-footer { border-top: 1px solid var(--line); margin-top: 50px; padding: 34px 0 46px; color: var(--muted); font-size: 15px; background: var(--bg2); }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 22px; margin-bottom: 22px; }
.site-footer h4 { margin: 0 0 8px; color: var(--text); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }
.site-footer a { color: var(--muted); text-decoration: none; display: block; padding: 2px 0; }
.site-footer a:hover { color: var(--text); }
#top { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 20px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s; }
#top.show { opacity: 1; pointer-events: auto; }
#top:hover { transform: translateY(-3px); border-color: var(--accent); }

@media (max-width: 860px) { .feature, .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
@media (max-width: 720px) {
  .site-header .wrap { gap: 8px 12px; padding-top: 8px; padding-bottom: 6px; min-height: 0; }
  .tools { margin-left: auto; }
  .main-nav { order: 3; flex: 0 0 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .main-nav a { white-space: nowrap; padding: 6px 10px; }
  .main-nav .sub { display: none !important; }
  .subnav { top: 86px; }
  .hero { padding: 60px 0 44px; }
  .game-hero { min-height: 420px; }
  .marquee img { height: 130px; }
  section { padding: 32px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .flip-in { transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
