/* The look of the site's own pages (/ and /games/), 2026-10-21.
   Deniz: "not like AI". So: no glows, no gradient text, no star fields, no
   emoji on every line. Flat colours, real screenshots of the games, hard
   shadows, short sentences. Games keep their own look. */

:root {
  --bg: #15161e;
  --panel: #20222e;
  --panel-2: #2a2d3b;
  --ink: #f4f3ef;
  --dim: #b4b3c0;
  --faint: #7d7c8c;
  --line: #34374a;
  --yellow: #ffd23f;
  --red: #ff5a5f;
  --green: #3ddc84;
  --blue: #4da3ff;
  --shadow: #07080c;
  --r: 14px;
  --font: "Avenir Next", "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}

body { overflow-x: hidden; }

a { color: inherit; }

/* ---- top bar ---- */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 2px solid var(--line);
  padding-top: env(safe-area-inset-top);
}

.top-in {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 72rem;
  margin: 0 auto;
  min-height: 64px;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--bg);
  font-size: 1.3rem;
  font-weight: 900;
  transform: rotate(-6deg);
  box-shadow: 3px 3px 0 var(--shadow);
}

.nav { display: flex; gap: 4px; }

.nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--dim);
  font-weight: 800;
  text-decoration: none;
}
.nav a:hover { color: var(--ink); background: var(--panel); }
.nav a.on { color: var(--ink); }

.spacer { flex: 1; }

.btn.duel-link { gap: 6px; padding: 0 14px; color: var(--yellow); }
@media (max-width: 520px) { .btn.duel-link { padding: 0 10px; } .btn.duel-link .duel-tx { display: none; } }

.btn.shop-link { gap: 8px; text-decoration: none; padding: 0 14px; }
.btn.shop-link.on { background: var(--ink); color: var(--bg); }
@media (max-width: 520px) { .btn.shop-link { padding: 0 10px; } .btn.shop-link span { display: none; } }

/* ---- buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--ink);
  font: 800 1rem var(--font);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--shadow);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--shadow); }
.btn.yellow { background: var(--yellow); color: #17140a; }
.btn.big { min-height: 56px; padding: 0 28px; font-size: 1.15rem; }
.btn.plain { background: transparent; box-shadow: none; color: var(--dim); }
.btn.plain:hover { color: var(--ink); }
.btn:disabled { opacity: 0.5; cursor: default; }

.me {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 44vw;
}
.me .who {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.me .dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
}
.me .dot.safe { background: var(--green); }

/* ---- page ---- */

.page {
  max-width: 72rem;
  margin: 0 auto;
  padding: 28px max(16px, env(safe-area-inset-right)) calc(56px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.hi {
  margin: 8px 0 28px;
}
.hi h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.hi h1 .mark {
  background: var(--yellow);
  color: #17140a;
  padding: 0 0.18em;
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hi p {
  margin: 12px 0 0;
  max-width: 36rem;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--dim);
}
.hi .facts {
  margin-top: 14px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--faint);
}

h1.sec, h2.sec {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 36px 0 14px;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}
h1.sec small, h2.sec small { font-size: 0.9rem; font-weight: 700; color: var(--faint); }

/* ---- the newest game, big ---- */

.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(260px, 1fr);
  gap: 18px;
  align-items: stretch;
}
.hero-row .feature {
  height: 100%;
  grid-template-columns: 1.35fr 1fr;
}
.hero-row .feature .shot {
  width: 100%;
  height: 100%;
  min-width: 0;
  aspect-ratio: auto;
}
.hero-row .feature .shot .strip {
  height: calc(var(--frames, 8) * 100%);
  object-fit: cover;
}

@keyframes dcAppGlow {
  0%, 100% {
    background-position: 0 0, 0% 50%;
    box-shadow: 0 0 18px rgba(255, 210, 63, 0.28), 0 0 8px rgba(255, 90, 95, 0.2);
  }
  50% {
    background-position: 0 0, 100% 50%;
    box-shadow: 0 0 22px rgba(77, 163, 255, 0.34), 0 0 10px rgba(177, 140, 255, 0.25);
  }
}

.app-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border-radius: 18px;
  border: 2px solid transparent;
  background: linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(120deg, #ffd23f, #ff5a5f, #b18cff, #4da3ff, #3ddc84, #ffd23f) border-box;
  background-size: 100% 100%, 300% 300%;
  animation: dcAppGlow 5s ease infinite;
}
.app-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  border: 2px solid var(--line);
  box-shadow: 3px 3px 0 var(--shadow);
  flex: none;
}
.app-badge {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--blue);
  color: #081320;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  transform: rotate(-3deg);
}
.app-copy h3 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.app-copy p {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 0.95rem;
  line-height: 1.5;
}
.app-cta { width: 100%; }

.feature {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  overflow: hidden;
  border-radius: 18px;
  background: var(--panel);
  border: 2px solid var(--line);
  text-decoration: none;
  box-shadow: 6px 6px 0 var(--shadow);
}
.feature .shot { aspect-ratio: 16 / 10; }
.feature .txt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 24px;
}
.feature .tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  transform: rotate(-3deg);
}
.feature h3 { margin: 0; font-size: 1.9rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.feature p { margin: 0; color: var(--dim); line-height: 1.5; }
.feature .btn { align-self: flex-start; margin-top: 4px; }

@media (max-width: 920px) {
  .hero-row { grid-template-columns: 1fr; }
  .hero-row .feature { grid-template-columns: 1.4fr 1fr; }
  .hero-row .feature .shot { aspect-ratio: 16 / 10; height: auto; }
  .hero-row .feature .shot .strip { height: auto; object-fit: fill; }
}

@media (max-width: 720px) {
  .feature, .hero-row .feature { grid-template-columns: 1fr; }
  .hero-row .feature .shot { height: auto; }
  .feature .txt { padding: 18px; }
  .feature h3 { font-size: 1.5rem; }
  .app-card { padding: 18px; gap: 12px; }
  .app-icon { width: 52px; height: 52px; border-radius: 12px; }
}

/* ---- game tiles ---- */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  grid-auto-flow: dense;
  gap: 18px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.shot {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--r);
  background: var(--c, var(--panel-2));
}
.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
/* a game without a screenshot yet: its colour and its emoji */
.shot .ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 3.4rem;
}

.tile .shot {
  border: 2px solid var(--line);
  box-shadow: 0 0 0 var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.tile:hover .shot, .tile:focus-visible .shot {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--shadow);
  border-color: var(--yellow);
}
.tile:focus-visible { outline: none; }
.tile:hover .shot img { transform: scale(1.04); }
.tile:active .shot { transform: none; box-shadow: none; }

.tile .name {
  margin-top: 10px;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.2;
}
.tile .what {
  margin-top: 3px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--dim);
}
.tile .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--faint);
}
.tile .meta:empty { display: none; }
.tile .meta .best { color: var(--yellow); }

/* stickers on the screenshot */
.sticker {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--yellow);
  color: #17140a;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  transform: rotate(-4deg);
  box-shadow: 2px 2px 0 var(--shadow);
}
.sticker.red { background: var(--red); color: #fff; }
.sticker.grey { background: #55586b; color: #fff; }

.tile.off .shot img { filter: grayscale(1) brightness(0.6); }

.note {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
}

.loading, .empty { color: var(--faint); }

@media (max-width: 520px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 14px 10px; }
  .tile .name { font-size: 0.95rem; margin-top: 8px; }
  .tile .what { font-size: 0.8rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .nav { display: none; }
  .logo .long { display: none; }
}

/* above the full list: "Kaldığın yerden" and "Son 1 haftada popüler" (site.js shelves) */
.shelf:empty { display: none; }
.recent {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 0 0 10px;
  scrollbar-width: none;
}
.recent::-webkit-scrollbar { display: none; }
.tile.mini { flex: 0 0 9.5rem; }
.tile.mini .name { font-size: 0.92rem; margin-top: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* two rows to a column, columns scroll sideways; wide screens show several */
.rows {
  list-style: none;
  margin: 0;
  padding: 0 0 10px;
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: min(calc(100% - 2.5rem), 27.5rem);
  gap: 10px 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.rows::-webkit-scrollbar { display: none; }
.rows li {
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r);
  background: var(--panel);
  border: 2px solid var(--line);
  min-width: 0;
}
.rows li:hover { border-color: var(--yellow); }
.rows .btn { flex: none; min-height: 40px; padding: 0 16px; font-size: 0.92rem; }
.pop-row { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.pop-row .rank { width: 1.6rem; text-align: center; font-size: 1.5rem; font-weight: 900; color: var(--faint); }
.rows li:first-child .rank { color: var(--yellow); }
.pop-row .shot { flex: 0 0 5.5rem; border: 2px solid var(--line); }
.pop-row .shot .sticker { font-size: 0.6rem; padding: 2px 5px; top: 4px; left: 4px; }
.pop-row .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pop-row .tags { margin-top: 0; gap: 4px; flex-wrap: wrap; }
.pop-row .tg { padding: 1px 6px; border-width: 1.5px; font-size: 0.68rem; }
.pop-row .name { font-size: 1.05rem; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) {
  .tile.mini { flex-basis: 8rem; }
  .pop-row { gap: 10px; }
  .pop-row .shot { flex-basis: 4.6rem; }
  .pop-row .tags { display: none; }
  .pop-row .name { white-space: normal; font-size: 0.95rem; line-height: 1.2; }
  .rows li { padding: 8px 10px; gap: 8px; }
  .rows .btn { padding: 0 14px; }
}

/* Pamuk Shop among the games: a 2x2 card with the shop front */
.tiles .shop-tile { grid-column: span 2; grid-row: span 2; }
.shop-tile .shot { flex: 1; aspect-ratio: auto; min-height: 280px; background: #2a2d3b; display: flex; flex-direction: column; }
.ss-awning { display: block; height: 30px; flex: none; position: relative;
  background: repeating-linear-gradient(90deg, #ff5a5f 0 32px, #f4f3ef 32px 64px); }
.ss-awning::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px;
  background: radial-gradient(circle at 16px 0, #ff5a5f 0 15px, transparent 16px) 0 0/64px 12px,
              radial-gradient(circle at 48px 0, #f4f3ef 0 15px, transparent 16px) 0 0/64px 12px; }
.ss-sign { position: absolute; top: 42px; left: 50%; transform: translateX(-50%) rotate(-2deg); background: #15161e; color: #ffd23f;
  border: 3px solid #ffd23f; border-radius: 9px; padding: 3px 14px; font-weight: 900; font-size: 1.3rem; letter-spacing: .04em;
  white-space: nowrap; box-shadow: 3px 3px 0 #07080c; z-index: 1; }
.ss-stage { flex: 1; display: flex; align-items: flex-end; gap: 10px; padding: 70px 14px 0; }
.ss-keeper { flex: none; width: 140px; margin-bottom: -4px; }
.ss-bubble { align-self: center; flex: 1; background: #fff; color: #15161e; border: 3px solid #15161e; border-radius: 14px;
  padding: 8px 12px; font-weight: 800; font-size: 1rem; line-height: 1.3; box-shadow: 3px 3px 0 #15161e; margin-bottom: 30px; }
.ss-counter { display: flex; justify-content: center; gap: 6px; height: 40px; flex: none; background: #b08968; border-top: 4px solid #15161e;
  background-image: repeating-linear-gradient(90deg, transparent 0 58px, rgba(0,0,0,.18) 58px 61px); position: relative; }
.ss-pets { position: absolute; bottom: 26px; right: 12px; display: flex; gap: 4px; }
.ss-pet { display: block; animation: ss-bob 1.4s ease-in-out infinite; }
@keyframes ss-bob { 50% { transform: translateY(-6px); } }
.shop-tile:hover .shot { border-color: var(--yellow); }
@media (max-width: 520px) {
  .shop-tile .shot { min-height: 230px; }
  .ss-sign { font-size: 1rem; }
  .ss-stage { padding: 64px 8px 0; gap: 4px; }
  .ss-keeper { width: 96px; }
  .ss-bubble { font-size: .85rem; padding: 6px 8px; margin-bottom: 20px; }
  .ss-pets { right: 6px; bottom: 30px; }
  .ss-pet svg { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) { .ss-pet { animation: none; } }

/* the limited-time card (games.js dcEventCard) reuses .tile; keep it a tile */
.tile.dc-event {
  padding: 0 !important;
  min-height: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  animation: none !important;
}
.tile.dc-event::after { content: none !important; }
.tile.dc-event .name { color: inherit !important; text-shadow: none !important; font-size: 1.05rem !important; }
.tile.dc-event .dc-ev-left {
  align-self: flex-start;
  margin-top: 6px;
  padding: 3px 9px;
  border-radius: 8px;
  background: #ff7a00;
  color: #1a0b00;
  font: 800 0.8rem var(--font);
}

footer.foot {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 2px solid var(--line);
  color: var(--faint);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---- the sign-in sheet ---- */

.sheet-back {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 9, 13, 0.78);
}
.sheet {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 26px 22px 22px;
  border-radius: 20px;
  background: var(--panel);
  border: 2px solid var(--line);
  box-shadow: 8px 8px 0 var(--shadow);
  animation: sheetIn 0.18s ease-out;
}
@keyframes sheetIn { from { transform: translateY(14px); opacity: 0; } }
.sheet h2 { margin: 0 0 6px; font-size: 1.6rem; font-weight: 900; letter-spacing: -0.02em; }
.sheet p { margin: 0 0 18px; color: var(--dim); line-height: 1.5; }
.sheet .x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--dim);
  font: 900 1.3rem var(--font);
  cursor: pointer;
}
.sheet .x:hover { background: var(--panel-2); color: var(--ink); }
.sheet label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--dim);
}
.field {
  position: relative;
  margin-bottom: 14px;
}
.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font: 700 1.1rem var(--font);
  outline: none;
}
.field input:focus { border-color: var(--yellow); }
.field.pw input { padding-right: 60px; }
.field .eye {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 48px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--dim);
  font: 800 0.8rem var(--font);
  cursor: pointer;
}
.field .eye:hover { color: var(--ink); background: var(--panel-2); }
.sheet .msg {
  min-height: 1.4em;
  margin: -4px 0 12px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--red);
}
.sheet .msg.ok { color: var(--green); }
.sheet .row { display: flex; gap: 10px; flex-wrap: wrap; }
.sheet .row .btn { flex: 1; }
.sheet .small {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--faint);
  line-height: 1.5;
}
.strength {
  height: 6px;
  margin: -6px 0 14px;
  border-radius: 3px;
  background: var(--bg);
  overflow: hidden;
}
.strength i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--red);
  transition: width 0.2s ease, background 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .sheet { animation: none; }
  .tile .shot, .shot img, .btn { transition: none; }
}

.tiles .tile.dc-event { grid-column: span 2; }
.tiles .tile.dc-event .shot { aspect-ratio: 32 / 10; }
.sheet .row .btn.plain { flex: none; white-space: nowrap; }

/* ---- moving preview: a strip of frames, one frame tall, stepped through ---- */
.shot .strip {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  pointer-events: none;
}
.shot.has-strip.playing .strip {
  opacity: 1;
  animation: flip 3.6s steps(var(--frames, 8)) infinite;
}
.shot.has-strip.playing .cover { visibility: hidden; }
@keyframes flip { to { transform: translateY(-100%); } }

/* ---- genre tags ---- */
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 6px; }
.tg {
  flex: none;
  padding: 2px 8px;
  border-radius: 6px;
  border: 2px solid var(--t);
  color: var(--t);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.3;
  white-space: nowrap;
}
.feature .tags { margin-top: 0; }

/* ---- a game's page (the sheet, wide) ---- */
.sheet.wide {
  max-width: 640px;
  padding: 0;
  overflow-x: hidden;
}
.sheet.wide .x {
  z-index: 2;
  background: rgba(8, 9, 13, 0.7);
  color: #fff;
}
.g-top .shot { border-radius: 0; aspect-ratio: 16 / 10; }
.g-body { padding: 18px 22px 22px; }
.g-body h2 { margin: 0; }
.g-body .g-what { margin: 10px 0 0; color: var(--ink); font-size: 1.05rem; }
.g-body h3 {
  margin: 18px 0 8px;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.g-how { margin: 0; padding-left: 1.2em; color: var(--dim); line-height: 1.55; }
.g-how li + li { margin-top: 3px; }
.g-top3 { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.g-top3 li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--bg);
  counter-increment: r;
  font-weight: 800;
}
.g-top3 li + li { margin-top: 5px; }
.g-top3 li::before { content: counter(r) "."; width: 1.4em; color: var(--yellow); }
.g-top3 .n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-top3 .s { color: var(--dim); }
.g-play { display: flex; width: 100%; margin-top: 20px; }
@media (max-width: 520px) {
  .sheet-back:has(.sheet.wide) { padding: 0; align-items: flex-end; }
  .sheet.wide { max-height: 92dvh; border-radius: 20px 20px 0 0; border-bottom: 0; }
  .g-body { padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .shot.has-strip.playing .strip { animation-duration: 8s; }
  .app-card, .g-app { animation: none; }
}
/* "Oyna" stays in reach while the page scrolls */
.g-play { position: sticky; bottom: 12px; z-index: 1; box-shadow: 0 4px 0 var(--shadow), 0 -14px 24px 6px var(--panel); }

.g-app {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 2px solid transparent;
  text-decoration: none;
  color: var(--dim);
  background: linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(120deg, #ffd23f, #ff5a5f, #b18cff, #4da3ff, #3ddc84, #ffd23f) border-box;
  background-size: 100% 100%, 300% 300%;
  animation: dcAppGlow 4.5s ease infinite;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.g-app:hover { filter: brightness(1.08); transform: translateY(-1px); }
.g-app img { width: 42px; height: 42px; border-radius: 10px; flex: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.g-app-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.g-app-txt b { color: var(--ink); font-size: 0.96rem; font-weight: 900; line-height: 1.2; }
.g-app-txt span { color: var(--dim); font-size: 0.82rem; line-height: 1.3; }
.g-app .g-app-go {
  margin-left: auto;
  flex: none;
  padding: 7px 12px;
  border-radius: 9px;
  background: var(--yellow);
  color: #17140a;
  font-size: 0.84rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 3px 0 var(--shadow);
}

html.in-app .app-card, html.in-app .g-app, html.in-app .lang-link, html.in-app .lang-hint { display: none; }
html.in-app .hero-row { grid-template-columns: 1fr; }
@media (min-width: 721px) {
  html.in-app .hero-row .feature { grid-template-columns: 1.5fr 1fr; }
}
html.in-app .hero-row .feature .shot { aspect-ratio: 16 / 10; height: auto; }
html.in-app .hero-row .feature .shot .strip { height: auto; object-fit: fill; }

.btn.lang-link {
  min-width: 44px;
  padding: 0 12px;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--yellow);
}

.lang-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--panel);
  border: 2px solid var(--line);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dim);
}
.lang-hint[hidden] { display: none; }
.lang-hint a { color: var(--yellow); font-weight: 900; text-decoration: none; }
.lang-hint a:hover { text-decoration: underline; }
.lang-hint .lh-x {
  min-width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--dim);
  font: 800 1rem var(--font);
  cursor: pointer;
}
.lang-hint .lh-x:hover { background: var(--panel-2); color: var(--ink); }

.app-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.app-more {
  min-height: 36px;
  font-size: 0.88rem;
  color: var(--yellow);
}
.app-more:hover { color: var(--ink); }

.cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 6px;
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--panel);
  border: 2px solid var(--line);
  color: var(--dim);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 2px 0 var(--shadow);
  transition: transform 0.08s ease, border-color 0.12s ease, color 0.12s ease;
}
.cat-pill:hover { color: var(--ink); border-color: var(--yellow); transform: translateY(-1px); }
.cat-pill.on { background: var(--yellow); color: #17140a; border-color: var(--yellow); }

.tile-go {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 10px;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: 0 2px 0 var(--shadow);
}
.tile:hover .tile-go { background: var(--yellow); color: #17140a; }

.seo-foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.foot-note { margin: 0; color: var(--dim); }
.foot-links, .foot-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.foot-links a { color: var(--yellow); font-weight: 800; text-decoration: none; }
.foot-cats a { color: var(--dim); font-size: 0.86rem; font-weight: 700; text-decoration: none; }
.foot-links a:hover, .foot-cats a:hover { text-decoration: underline; color: var(--ink); }

.cat-app-banner { margin-top: 38px; }
.cat-app-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.pamuk-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 26px;
  border-radius: 20px;
  background: var(--panel);
  border: 2px solid var(--line);
  box-shadow: 6px 6px 0 var(--shadow);
  margin: 8px 0 32px;
}
.pamuk-hero .app-icon { width: 96px; height: 96px; border-radius: 22px; }
.pamuk-hero h1 {
  margin: 10px 0 0;
  font-size: clamp(1.8rem, 4.5vw, 2.7rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.pamuk-hero p {
  margin: 12px 0 0;
  max-width: 40rem;
  color: var(--dim);
  font-size: 1.04rem;
  line-height: 1.55;
}
.pamuk-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
@media (max-width: 640px) {
  .pamuk-hero { grid-template-columns: 1fr; padding: 20px; gap: 16px; }
  .pamuk-hero .app-icon { width: 76px; height: 76px; border-radius: 18px; }
}

.pamuk-shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.pamuk-shot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
}
.pamuk-shot .shot { border: 2px solid var(--line); }
.pamuk-shot:hover .shot { border-color: var(--yellow); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--shadow); }
.pamuk-shot span.cap { font-size: 0.92rem; font-weight: 800; color: var(--ink); }

.pamuk-feats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.pamuk-feat {
  padding: 18px;
  border-radius: 16px;
  background: var(--panel);
  border: 2px solid var(--line);
}
.pamuk-feat h2 { margin: 0 0 6px; font-size: 1.08rem; font-weight: 900; color: var(--yellow); }
.pamuk-feat p { margin: 0; color: var(--dim); font-size: 0.92rem; line-height: 1.5; }

