:root {
  --bg: #14101f;
  --surface: #1d1730;
  --surface-2: #261f3d;
  --border: #382d55;
  --text: #f3eadb;
  --text-soft: #ddd3e8;
  --muted: #a598bd;
  --sand: #ffb454;
  --pink: #ff5c8a;
  --teal: #3fd0c9;
  --ink: #14101f;
  --max: 1100px;
  --gutter: max(22px, calc((100vw - var(--max)) / 2));
  --px: "Pixelify Sans", "Space Grotesk", monospace;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --card-shadow: 8px 8px 0 rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 6px 6px;
  color: var(--text);
  font: 16px/1.65 "Space Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.pix { font-family: var(--px); letter-spacing: 0.02em; }
.muted { color: var(--muted); }
.small { font-size: 0.82rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ikonlar (assets/icons.svg) */
.ic {
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
  vertical-align: -0.16em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic.brand { width: 1em; height: 1em; fill: currentColor; stroke: none; }
.ic.ext { width: 0.9em; height: 0.9em; margin-left: -2px; opacity: 0.7; }

.dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tag {
  padding: 1px 7px;
  font: 0.72rem var(--mono);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 0 5px;
  font: 600 0.68rem var(--mono);
  color: var(--pink);
  border: 1px solid var(--pink);
  border-radius: 4px;
}
.badge.alt { color: var(--teal); border-color: var(--teal); }
.badge .ic { width: 11px; height: 11px; }

.feature-list { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.feature-list li { position: relative; padding-left: 22px; color: var(--muted); font-size: 0.94rem; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--sand);
}


/* ---------- butonlar ---------- */

.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cta.center { justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-family: var(--px);
  font-size: 1rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 0 var(--border);
  transition: transform .08s, box-shadow .08s, border-color .15s;
}
.btn:hover { border-color: var(--muted); }
.btn .ic { margin: 0; }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--border); }

.btn.primary {
  background: var(--sand);
  color: var(--ink);
  border-color: var(--sand);
  box-shadow: 0 4px 0 #b8742a;
  font-weight: 600;
}
.btn.primary:active { box-shadow: 0 0 0 #b8742a; }

.btn.brand {
  background: var(--text);
  color: var(--ink);
  border-color: var(--text);
  box-shadow: 0 4px 0 var(--pink);
  font-weight: 600;
}
.btn.brand:hover { border-color: var(--pink); }
.btn.brand:active { box-shadow: 0 0 0 var(--pink); }

/* girişteki GitHub / itch / LinkedIn butonları */
.btn.icon-btn { position: relative; width: 44px; height: 44px; padding: 0; justify-content: center; }
.btn.icon-btn:hover { color: var(--sand); border-color: var(--sand); }
.btn.icon-btn .ic.brand { width: 20px; height: 20px; }
.btn.icon-btn::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translate(-50%, 4px);
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
  pointer-events: none;
  font: 600 0.72rem var(--mono);
  color: var(--ink);
  background: var(--text);
  opacity: 0;
  transition: opacity .15s, transform .15s;
}
.btn.icon-btn:hover::after,
.btn.icon-btn:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }


/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px var(--gutter);
  border-bottom: 2px solid transparent;
  transition: background .25s, border-color .25s;
}
.nav.solid { background: rgba(20, 16, 31, 0.9); backdrop-filter: blur(8px); border-color: var(--border); }
.nav nav { display: flex; align-items: center; gap: 22px; font-size: 0.92rem; }
.nav nav a { color: var(--muted); transition: color .15s; }
.nav nav a:hover { color: var(--text); }

.logo { font-size: 1.15rem; font-weight: 700; }
.logo:hover .caret { color: var(--sand); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.lang {
  padding: 3px 10px;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}
.lang:hover { border-color: var(--sand); color: var(--sand); }


/* ---------- giriş (kum) ---------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(255, 92, 138, 0.18), transparent 60%),
    radial-gradient(ellipse at 15% 0%, rgba(63, 208, 201, 0.10), transparent 50%);
  cursor: crosshair;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
/* CRT tarama çizgileri */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
#sand { position: absolute; inset: 0; image-rendering: pixelated; }

/* --name-bottom'ı sand.js ismi çizdikten sonra ayarlıyor */
.hero-bottom {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: calc(var(--name-bottom, 52vh) + 1.4rem);
  bottom: 0;
  text-align: center;
  pointer-events: none;
}
.hero-bottom .cta { justify-content: center; pointer-events: auto; }

.role { margin: 0 0 8px; padding: 0 20px; font-size: 1.2rem; text-shadow: 0 2px 0 var(--ink); }
.tagline {
  max-width: 560px;
  margin: 0 auto 24px;
  padding: 0 20px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
  text-shadow: 0 2px 0 var(--ink);
}

.hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-5px); } }

/* masaüstünde buton girişin sağ alt köşesinde, telefonda ipucunun yanında */
.hero-tools { margin-top: 26px; }

.clear {
  position: absolute;
  right: var(--gutter);
  bottom: 18px;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}
.clear:hover { color: var(--sand); border-color: var(--sand); }


/* ---------- bölümler ---------- */

main { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.section { padding: 96px 0 40px; scroll-margin-top: 40px; }

h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 40px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}


/* ---------- hakkımda ---------- */

.about { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: start; }
.about-text p { margin: 0 0 18px; font-size: 1.12rem; color: var(--text-soft); }
.about-text p:first-child::first-letter {
  float: left;
  margin: 6px 10px 0 0;
  font-family: var(--px);
  font-size: 3.2em;
  line-height: 0.85;
  color: var(--sand);
}

.char,
.lower-box {
  padding: 20px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
}

.sheet-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 10px;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.sheet-label:first-child { margin-top: 0; }
.sheet-label .ic { width: 15px; height: 15px; color: var(--sand); }
.sheet-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0;
  opacity: 0.8;
}
.sheet-hint .ic { width: 13px; height: 13px; color: var(--muted); }

.char-top { display: flex; align-items: center; gap: 16px; }

/* pikselli avatar, üstüne gelince gerçek fotoğraf */
.portrait {
  position: relative;
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  overflow: hidden;
  background: var(--surface-2);
  border: 3px solid var(--sand);
  border-radius: 6px;
  cursor: zoom-in;
}
.portrait canvas,
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; }
.portrait canvas { image-rendering: pixelated; }
.portrait img { opacity: 0; transition: opacity .35s; }
.portrait:hover img { opacity: 1; }

.char-name { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
.char-handle { display: inline-block; margin-top: 2px; font: 0.8rem var(--mono); color: var(--teal); }
.char-handle:hover { text-decoration: underline; text-underline-offset: 3px; }
.char-class { margin: 4px 0 0; font-size: 0.9rem; }
.char-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0 0; font-size: 0.82rem; color: var(--muted); }
.char-meta span,
.char-meta a { display: inline-flex; align-items: center; gap: 5px; }
.char-meta a:hover { color: var(--text); }
.char-meta .ic { width: 14px; height: 14px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats div {
  display: flex;
  flex-direction: column;
  padding: 10px 6px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 6px;
}
.stats b { font-size: 1.7rem; line-height: 1.1; color: var(--teal); }

/* tech arsenal */
.inv { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tech {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 11px;
  font: 600 0.78rem var(--mono);
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 6px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: border-color .15s, color .15s, transform .15s, background .15s;
}
.tech:hover { border-color: var(--sand); color: var(--sand); transform: translateY(-2px); }
.tech.on { border-color: var(--sand); color: var(--sand); background: color-mix(in srgb, var(--sand) 14%, var(--bg)); }
.tech .tname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tech .dot { flex-shrink: 0; width: 8px; height: 8px; margin: 0; }
.tech small { color: var(--muted); font-weight: 400; }

.tech-panel {
  --lc: var(--sand);
  margin-top: 12px;
  padding: 14px;
  background: color-mix(in srgb, var(--lc) 8%, var(--bg));
  border: 2px solid color-mix(in srgb, var(--lc) 55%, var(--border));
  border-radius: 8px;
  animation: reveal .25s ease-out;
}
.tp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tp-head b { font: 700 1rem var(--mono); color: var(--lc); }
.tp-head .muted { font-size: 0.8rem; }
.tp-close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: auto;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}
.tp-close:hover { color: var(--text); border-color: var(--muted); }
.tp-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tp-list a,
.tp-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  text-align: left;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.tp-list a:hover,
.tp-list button:hover { border-color: var(--lc); transform: translateX(3px); }
.tp-list .ic { width: 16px; height: 16px; color: var(--lc); }
.tp-list .ic.ext { color: var(--muted); }
.tp-list span { flex: 1; font: 600 0.85rem var(--mono); }
.tp-list em { font-style: normal; font-size: 0.72rem; color: var(--muted); }
.tp-empty { margin: 0; font-size: 0.88rem; }

/* quest'ler ve achievement'lar */
.about-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.about-lower.single { grid-template-columns: 1fr; }

.quests { display: grid; gap: 12px; }
.quest-card {
  display: block;
  padding: 14px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  transition: border-color .15s;
}
a.quest-card:hover { border-color: var(--teal); }
.quest-card p { margin: 8px 0 10px; font-size: 0.9rem; color: var(--muted); }
.qc-head { display: flex; align-items: center; gap: 8px; }
.qc-head .ic { width: 17px; height: 17px; color: var(--teal); }
.qc-status {
  margin-left: auto;
  padding: 1px 6px;
  white-space: nowrap;
  font: 600 0.7rem var(--mono);
  color: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 4px;
}
.qc-bar { height: 10px; overflow: hidden; background: var(--surface-2); border-radius: 3px; }
.qc-bar span {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--teal) 0 8px, color-mix(in srgb, var(--teal) 60%, transparent) 8px 10px);
}
.qc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--teal);
}
.qc-foot .tags { margin: 0; }

.achs { display: grid; gap: 8px; }
.ach {
  --accent: var(--sand);
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.ach:hover { border-color: var(--accent); transform: translateX(3px); }
.ach.featured {
  --accent: var(--pink);
  background: color-mix(in srgb, var(--pink) 7%, var(--bg));
  border-color: color-mix(in srgb, var(--pink) 55%, var(--border));
}
.ach-ic {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 8px;
}
.ach-ic .ic { width: 18px; height: 18px; }
.ach-txt { display: flex; flex-direction: column; min-width: 0; }
.ach-txt b { font-size: 0.95rem; }
.ach-txt small { font-size: 0.8rem; line-height: 1.45; color: var(--muted); }
.ach-year { margin-left: auto; font-size: 0.8rem; color: var(--pink); }


/* ---------- oyunlar: kartuş ---------- */

.cart-shell {
  position: relative;
  display: block;
  padding: 26px 16px 14px;
  background: linear-gradient(160deg, var(--c1), var(--c2));
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
  border-radius: 8px 0 8px 8px;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.25);
  transition: transform .2s, filter .2s;
}
.cart-shell:hover { filter: brightness(1.08); }
/* üstteki tutma çizgileri */
.cart-shell::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 16px;
  right: 40px;
  height: 8px;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.25) 0 4px, transparent 4px 9px);
  border-radius: 2px;
}
.cart-label { padding: 6px; background: var(--text); border-radius: 4px; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25); }
.cart-label .shot { aspect-ratio: 315 / 250; overflow: hidden; background: var(--surface-2); border-radius: 2px; }
.cart-label img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.cart-title {
  padding: 6px 2px 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}
.cart-foot { display: flex; justify-content: space-between; margin-top: 10px; font-size: 0.75rem; color: rgba(0, 0, 0, 0.55); }
.cart-foot .ic { width: 11px; height: 11px; margin-left: 3px; vertical-align: -1px; }


/* ---------- oyunlar: kayan bant ---------- */

/* bant sayfa kenarlarına kadar taşıyor */
.gbar { position: relative; margin: 0 calc(-1 * max(22px, (100vw - var(--max)) / 2 + 22px)); }
.gtrack {
  display: flex;
  gap: 22px;
  padding: 18px 0 26px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.gtrack::-webkit-scrollbar { display: none; }
.gtrack.dragging { cursor: grabbing; }
.gtrack.dragging .gcard { pointer-events: none; }
.gset { display: flex; flex-shrink: 0; gap: 22px; }

.gcard {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 230px;
  min-width: 0;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
.gcard .cart-shell,
.gcard .cart-label,
.gcard .shot,
.gcard .cart-title { display: block; width: 100%; min-width: 0; }
.gcard img { pointer-events: none; }
.gcard:hover .cart-shell,
.gcard:focus-visible .cart-shell { transform: translateY(-6px) rotate(-1.5deg); }
.gcard:focus-visible { outline: 2px solid var(--sand); outline-offset: 6px; border-radius: 8px; }
.gcard-genre { padding-left: 4px; font: 0.8rem var(--mono); color: var(--muted); }

.gbar-nav {
  position: absolute;
  top: calc(50% - 36px);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--text);
  background: rgba(29, 23, 48, 0.9);
  border: 2px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s, border-color .15s;
}
.gbar-nav .ic { width: 22px; height: 22px; }
.gbar:hover .gbar-nav,
.gbar-nav:focus-visible { opacity: 1; }
.gbar-nav:hover { border-color: var(--sand); color: var(--sand); }
.gbar-nav.prev { left: max(14px, calc((100vw - var(--max)) / 2)); }
.gbar-nav.next { right: max(14px, calc((100vw - var(--max)) / 2)); }
@media (hover: none) {
  .gbar-nav { display: none; }
}

.gmore { display: flex; justify-content: center; margin-top: 10px; }
#gameMore .ic { width: 18px; height: 18px; }


/* ---------- oyunlar: detay vitrinleri ---------- */

.gshows { display: grid; gap: 90px; margin-top: 70px; }
.gshows[hidden] { display: none; }
.gshows.reveal { animation: reveal .5s ease-out; }
@keyframes reveal { from { opacity: 0; transform: translateY(-14px); } }

.gshow {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: center;
  scroll-margin-top: 80px;
}
.gshow.flip { grid-template-columns: 1fr 1.35fr; }
.gshow.flip .gallery { order: 2; }

.gallery { position: relative; }
.screen {
  overflow: hidden;
  background: #000;
  border: 3px solid var(--c1);
  border-radius: 10px;
  box-shadow: 10px 10px 0 var(--c2), 0 24px 50px rgba(0, 0, 0, 0.45);
}
.screen img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; image-rendering: pixelated; }

.thumbs { display: flex; gap: 10px; margin-top: 20px; padding-left: 130px; }
.gshow.flip .thumbs { justify-content: flex-end; padding-left: 0; padding-right: 130px; }
.thumbs button {
  flex: 0 1 110px;
  padding: 0;
  overflow: hidden;
  background: none;
  border: 2px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity .15s, border-color .15s, transform .15s;
}
.thumbs button img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.thumbs button:hover { opacity: 0.9; transform: translateY(-2px); }
.thumbs button.on { opacity: 1; border-color: var(--c1); }

/* ekranın köşesindeki küçük kartuş */
.cart-shell.mini {
  position: absolute;
  z-index: 2;
  left: -18px;
  bottom: -26px;
  width: 132px;
  padding: 16px 9px 9px;
  transform: rotate(-8deg);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.25), 6px 8px 0 rgba(0, 0, 0, 0.35);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.cart-shell.mini::before { top: 6px; left: 9px; right: 24px; height: 5px; }
.cart-shell.mini:hover { transform: rotate(-3deg) translateY(-4px); }
.cart-shell.mini .cart-label { padding: 4px; }
.cart-shell.mini .cart-title { padding-top: 4px; font-size: 0.68rem; }
.gshow.flip .cart-shell.mini { left: auto; right: -18px; transform: rotate(8deg); }
.gshow.flip .cart-shell.mini:hover { transform: rotate(3deg) translateY(-4px); }

.gkicker { margin: 0 0 4px; font-size: 0.9rem; color: var(--c1); }
.gtext h3 { margin: 0 0 14px; font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.05; letter-spacing: -0.02em; }
.gdesc { margin: 0 0 16px; color: var(--text-soft); }
.gtext .feature-list li::before { background: var(--c1); }
.gtext .tags { margin-bottom: 20px; }

.gmeta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin: 0 0 16px;
  padding: 14px 16px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 8px;
}
.gmeta div { min-width: 0; }
.gmeta dt { font: 600 0.7rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.gmeta dd { margin: 2px 0 0; font-size: 0.9rem; }


/* ---------- projeler: vitrin (CaughtUp, Ourline) ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) 1.4fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
  padding: 36px;
  background:
    radial-gradient(ellipse at 85% 30%, rgba(255, 180, 84, 0.14), transparent 60%),
    radial-gradient(ellipse at 60% 100%, rgba(63, 208, 201, 0.10), transparent 55%),
    var(--surface);
  border: 2px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
}
.feature.flip { grid-template-columns: 1.4fr minmax(260px, 0.9fr); }
.feature.flip .phones { order: -1; }
.feature-kicker { margin: 0 0 4px; font-size: 0.9rem; color: var(--pink); }
.feature h3 { margin: 0 0 12px; font-size: 2.6rem; line-height: 1; letter-spacing: -0.02em; }
.feature-desc { margin: 0 0 14px; color: var(--text-soft); }
.feature .tags { margin-bottom: 20px; }
.feature .cta { align-items: center; }
.feature .badge { margin-left: 4px; }

/* üç telefon yelpaze gibi duruyor, üstüne gelince açılıyor */
.phones { display: flex; justify-content: center; align-items: flex-end; }
.phone { width: 34%; max-width: 200px; margin: 0; text-align: center; transition: transform .3s; }
.phone:nth-child(1) { transform: rotate(-6deg) translate(18px, 14px); }
.phone:nth-child(2) { transform: translateY(-10px); z-index: 1; }
.phone:nth-child(3) { transform: rotate(6deg) translate(-18px, 14px); }
.phones:hover .phone:nth-child(1) { transform: rotate(-3deg) translate(-4px, 6px); }
.phones:hover .phone:nth-child(2) { transform: translateY(-18px); }
.phones:hover .phone:nth-child(3) { transform: rotate(3deg) translate(4px, 6px); }
.phone-frame {
  padding: 6px;
  overflow: hidden;
  background: #09070f;
  border: 2px solid #3a3150;
  border-radius: 26px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.phone-frame img { width: 100%; aspect-ratio: 750 / 1624; object-fit: cover; object-position: top; border-radius: 20px; }
.phone figcaption { margin-top: 12px; font: 0.78rem var(--mono); color: var(--muted); }


/* ---------- projeler: GitHub repoları ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filters button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 12px;
  font: 600 0.82rem var(--mono);
  color: var(--muted);
  background: transparent;
  border: 2px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}
.filters button.active,
.filters button:hover { color: var(--ink); background: var(--teal); border-color: var(--teal); }
.filters .dot { width: 8px; height: 8px; margin: 0; border-radius: 2px; }
.filters .n { font-size: 0.72rem; opacity: 0.65; }

.repos { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.repos > p { grid-column: 1 / -1; }
.repos > p a { color: var(--sand); }

/* --lc: reponun dil rengi */
.repo {
  --lc: var(--muted);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 178px;
  padding: 20px 20px 16px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--lc) 16%, transparent), transparent 60%),
    var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.repo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--lc) 0 8px, color-mix(in srgb, var(--lc) 55%, transparent) 8px 12px);
}
a.repo:hover {
  transform: translateY(-4px);
  border-color: var(--lc);
  box-shadow: 6px 6px 0 color-mix(in srgb, var(--lc) 35%, transparent);
}
.repo.big { grid-column: span 2; }
.repo.big .repo-name { font-size: 1.25rem; }
.repo.big .repo-desc { font-size: 1.02rem; }

.repo-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.repo-ic {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  color: var(--lc);
  background: color-mix(in srgb, var(--lc) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--lc) 35%, transparent);
  border-radius: 8px;
}
.repo-ic .ic { width: 17px; height: 17px; }
.repo-name {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font: 600 1rem var(--mono);
}
.repo-go {
  display: grid;
  place-items: center;
  color: var(--muted);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity .18s, transform .18s;
}
a.repo:hover .repo-go { opacity: 1; transform: none; color: var(--lc); }
div.repo .repo-go { display: none; }

.repo-desc {
  flex: 1;
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
  color: #cfc5dd;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.repo-desc.empty { color: var(--muted); font-style: italic; }

.repo-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 0.8rem; color: var(--muted); }
.repo-foot > span { display: inline-flex; align-items: center; gap: 5px; }
.repo-foot .ic { width: 13px; height: 13px; }
.repo-lang { color: var(--text); }
.repo-lang .dot { width: 9px; height: 9px; margin: 0; border-radius: 2px; background: var(--lc); }
.repo-stars { color: var(--sand); }
.repo-stars .ic { fill: currentColor; }
.repo-date { margin-left: auto; }


/* ---------- iletişim & footer ---------- */

.contact { text-align: center; padding-bottom: 60px; }
.contact h2 { justify-content: center; }
.contact-text { max-width: 460px; margin: -16px auto 30px; font-size: 1.05rem; }
.mailbox { display: inline-flex; gap: 8px; }
.btn.copy { padding: 9px 13px; font-family: inherit; color: var(--text); cursor: pointer; }
.btn.copy:hover { border-color: var(--pink); color: var(--pink); }
.btn.copy .ic { width: 1.1em; height: 1.1em; }

footer { margin-top: 40px; padding: 40px 20px 60px; text-align: center; border-top: 2px dashed var(--border); }


/* ---------- başarım bildirimi ---------- */

.toasts {
  position: fixed;
  z-index: 40;
  left: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 320px;
  padding: 10px 16px 10px 12px;
  background: var(--surface);
  border: 2px solid var(--sand);
  border-radius: 8px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4);
  animation: toast-in .35s cubic-bezier(.2, 1.4, .5, 1), toast-out .3s ease-in 3.6s forwards;
}
.toast .trophy { display: grid; place-items: center; color: var(--sand); }
.toast .trophy .ic { width: 28px; height: 28px; }
.toast b { display: block; font-family: var(--px); font-size: 0.95rem; color: var(--sand); }
.toast span { font-size: 0.85rem; color: var(--muted); }
@keyframes toast-in { from { transform: translateX(-120%); } }
@keyframes toast-out { to { transform: translateX(-120%); opacity: 0; } }


/* ---------- responsive ---------- */

@media (max-width: 820px) {
  .nav nav a { display: none; }
  .hero-tools { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; margin-top: 22px; padding: 0 16px; }
  .hint { font-size: 0.75rem; }
  .clear { position: static; padding: 5px 12px; }

  .about { grid-template-columns: 1fr; gap: 30px; }
  .about-lower { grid-template-columns: 1fr; }

  .gshow,
  .gshow.flip { grid-template-columns: 1fr; gap: 40px; }
  .gshow.flip .gallery { order: 0; }
  .thumbs,
  .gshow.flip .thumbs { justify-content: flex-start; padding: 0 0 0 110px; }
  .cart-shell.mini,
  .gshow.flip .cart-shell.mini { left: -6px; right: auto; width: 104px; transform: rotate(-8deg); }

  .feature,
  .feature.flip { grid-template-columns: 1fr; padding: 24px 18px; }
  .feature.flip .phones { order: 0; }
  .phone { width: 36%; }
}

@media (max-width: 700px) {
  .repo.big { grid-column: auto; }
}

@media (max-width: 420px) {
  .hero-bottom .cta { gap: 8px; padding: 0 12px; }
  .hero-bottom .btn.primary { padding: 9px 14px; }
  .hero-bottom .btn.icon-btn { width: 40px; height: 40px; }
}

@media (max-width: 340px) {
  .hero-bottom .cta { gap: 6px; padding: 0 8px; }
  .hero-bottom .btn.primary { padding: 8px 10px; font-size: 0.92rem; gap: 6px; }
}

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