@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@600;700&family=Gochi+Hand&family=Roboto+Condensed:wght@100..900&family=Roboto:wght@400&display=swap');

/* Oyun Arası landing — every block is placed on the 1672 × 941 reference canvas
   and the whole canvas scales with the viewport width. */
:root {
  --paper: #f8f4ec;
  --ink: #0d1b4c;
  --blue: #0a2fb5;
  --orange: #f25a1d;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-width: 320px; background: var(--paper); color: var(--ink); font-family: 'Roboto Condensed', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { display: block; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.stage { position: relative; width: 100%; aspect-ratio: 1672 / 941; container-type: inline-size; --u: calc(100cqw / 1672); }
.at { position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u)); }
.at > img, .thumb > img { width: 100%; height: 100%; }

/* header */
.stage::before { content: ''; position: absolute; left: 0; right: 0; top: calc(62 * var(--u)); height: 1px; background: #e7e2d6; }
.search { display: flex; align-items: center; gap: calc(12 * var(--u)); padding: 0 calc(17 * var(--u)); border-radius: 999px; background: #ebe9e3; cursor: text; }
.search svg { width: calc(20 * var(--u)); height: calc(20 * var(--u)); flex: none; fill: none; stroke: #1b1d2a; stroke-width: 2.2; stroke-linecap: round; }
.search input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 0; background: transparent; color: var(--ink); font: 400 calc(14.5 * var(--u)) 'Roboto', sans-serif; }
.search input::placeholder { color: #97979b; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.nav-link { display: flex; align-items: center; gap: calc(11 * var(--u)); color: #1c2130; font: 400 calc(14.3 * var(--u)) 'Roboto Condensed', sans-serif; white-space: nowrap; transition: color .15s; }
.nav-link svg { width: calc(24 * var(--u)); height: calc(24 * var(--u)); flex: none; color: #0d1b4c; }
.nav-link .nav-pad { --hole: var(--paper); width: calc(26 * var(--u)); height: calc(26 * var(--u)); }
.nav-link:hover { color: var(--blue); }
.account-slot .account-button { display: flex; align-items: center; gap: calc(10 * var(--u)); height: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #1a1d38; font: 700 calc(17 * var(--u)) 'Roboto Condensed', sans-serif; white-space: nowrap; }
.account-slot .account-button::before { content: ''; width: calc(39 * var(--u)); height: calc(39 * var(--u)); flex: none; border-radius: 50%; background: #0d2272 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Ccircle cx='12' cy='8.6' r='3.6'/%3E%3Cpath d='M5.6 17.6c0-2.7 2.2-4.5 4.9-4.5h3c2.7 0 4.9 1.8 4.9 4.5v.8H5.6z'/%3E%3C/svg%3E") center / 62% no-repeat; }
.account-slot .account-button:hover { color: var(--blue); }

.logo { display: flex; align-items: center; }
.logo-word { font: 700 calc(47 * var(--u)) / 1 'Fredoka', sans-serif; letter-spacing: -.02em; background: linear-gradient(90deg, #061a6e, #0a36b5); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.logo-word span { background: none; -webkit-text-fill-color: #f25a1a; }
.hero-copy { margin: 0; color: #1b1e3a; font: 400 calc(19.2 * var(--u)) / calc(21.2 * var(--u)) 'Roboto Condensed', sans-serif; }

/* sidebar */
.side-cat { display: flex; align-items: center; gap: calc(20 * var(--u)); padding: 0 0 0 calc(18 * var(--u)); border: 0; border-radius: calc(12 * var(--u)); color: #0f1636; text-align: left; cursor: pointer; transition: transform .16s, box-shadow .16s; }
.side-cat svg { width: calc(47 * var(--u)); height: calc(47 * var(--u)); flex: none; }
.side-cat span { display: grid; gap: calc(6 * var(--u)); }
.side-cat strong { font: 700 calc(23 * var(--u)) / 1 'Roboto Condensed', sans-serif; letter-spacing: -.01em; }
.side-cat small { font: 400 calc(14.8 * var(--u)) / 1.1 'Roboto Condensed', sans-serif; }
.side-cat:hover { transform: translateX(calc(3 * var(--u))); }
.side-cat.active:not([data-filter='all']) { box-shadow: 0 0 0 calc(3 * var(--u)) var(--ink); }
.cat-kesfet { background: #0131ca; color: #fff; }
.cat-kelime { background: #fecf40; }
.cat-mantik { background: #fcaac8; }
.cat-klasik { background: #77d096; --hole: #77d096; color: #030b2d; }
.side-panel { display: grid; align-content: start; gap: calc(6 * var(--u)); padding: calc(16 * var(--u)) calc(8 * var(--u)); border-radius: calc(12 * var(--u)); background: #faf7f0; box-shadow: 0 calc(1 * var(--u)) calc(8 * var(--u)) rgb(40 30 10 / .07); }
.side-panel a { display: flex; align-items: center; gap: calc(18 * var(--u)); height: calc(40.5 * var(--u)); padding-left: calc(15 * var(--u)); border-radius: calc(10 * var(--u)); color: #1f2440; font: 400 calc(15.3 * var(--u)) 'Roboto Condensed', sans-serif; white-space: nowrap; transition: background .15s; }
.side-panel svg { width: calc(24 * var(--u)); height: calc(24 * var(--u)); flex: none; color: #5f6873; }
.side-panel a:hover { background: rgb(13 27 76 / .06); }

/* feature blocks */
.hotspot { font-size: 0; color: transparent; }
.pill { border-radius: 999px; transition: box-shadow .15s; }
.pill:hover { box-shadow: 0 calc(6 * var(--u)) calc(16 * var(--u)) rgb(242 90 29 / .35); }
.lift { transition: transform .18s, filter .18s; }
.lift:hover { transform: translateY(calc(-3 * var(--u))); filter: drop-shadow(0 calc(8 * var(--u)) calc(14 * var(--u)) rgb(13 27 76 / .16)); }

/* 2048 card */
.card-2048 { overflow: hidden; border-radius: calc(15 * var(--u)); background: #002aaf; color: #fff; }
.card-2048 > * { position: absolute; }

/* shelf */
.shelf-title { display: flex; align-items: center; gap: calc(6 * var(--u)); margin: 0; color: #121a3f; font: 700 calc(22.8 * var(--u)) / 1 'Roboto Condensed', sans-serif; letter-spacing: -.01em; white-space: nowrap; }
.shelf-title svg { width: calc(22 * var(--u)); height: calc(28 * var(--u)); fill: none; stroke: #f5641f; stroke-width: 2.4; stroke-linecap: round; }
.shelf-all { display: flex; align-items: center; gap: calc(9 * var(--u)); color: #121a3a; font: 500 calc(14.4 * var(--u)) 'Roboto Condensed', sans-serif; white-space: nowrap; transition: opacity .15s; }
.shelf-all svg { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
.shelf-all:hover { opacity: .7; }
.track { display: flex; gap: calc(6 * var(--u)); overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x proximity; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.thumb { position: relative; flex: none; width: calc(var(--w) * var(--u)); height: 100%; scroll-snap-align: start; border-radius: calc(8 * var(--u)); overflow: hidden; transition: filter .15s; }
.thumb:hover { filter: brightness(1.06); }
.thumb.soon::after { content: 'YAKINDA'; position: absolute; left: 50%; bottom: calc(10 * var(--u)); padding: calc(4 * var(--u)) calc(10 * var(--u)); border-radius: 999px; background: var(--ink); color: #fff; font: 700 calc(12 * var(--u)) 'Roboto Condensed', sans-serif; letter-spacing: .08em; opacity: 0; transform: translate(-50%, calc(6 * var(--u))); transition: .18s; }
.thumb.soon:hover::after, .thumb.soon:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.cover { display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: calc(16 * var(--u)) calc(12 * var(--u)) calc(18 * var(--u)); color: var(--ink); }
.cover b { font: 900 calc(27 * var(--u)) / .95 'Roboto Condensed', sans-serif; text-align: center; letter-spacing: -.01em; transform: rotate(-4deg); }
.cover i { display: grid; grid-template-columns: repeat(3, calc(27 * var(--u))); gap: calc(4 * var(--u)); font-style: normal; }
.cover i span { display: grid; place-items: center; height: calc(27 * var(--u)); border-radius: calc(5 * var(--u)); background: #fff; font: 900 calc(16 * var(--u)) 'Roboto Condensed', sans-serif; box-shadow: 0 calc(2 * var(--u)) 0 rgb(0 0 0 / .15); }
.cover-mines { background: #8fd3f4; }
.cover-mines i span:nth-child(5) { background: var(--orange); color: #fff; }
.cover-memory { background: #c9a4f2; }
.cover-memory i span { height: calc(34 * var(--u)); background: #ff7fa8; color: #fff; }
.cover-memory i span:nth-child(even) { background: #ffcf40; }
.cover-xox { background: var(--blue); color: #fff; }
.cover-xox i span { color: var(--ink); }
.cover-2048 { background: #ffcd3c; }
.cover-2048 i { grid-template-columns: repeat(2, calc(34 * var(--u))); }
.cover-2048 i span { height: calc(34 * var(--u)); background: #f3e6cf; }
.cover-2048 i span:nth-child(3) { background: #f7b27a; color: #fff; }
.cover-2048 i span:nth-child(4) { background: #f58c52; color: #fff; }
.arrow { display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #fbf9f4; box-shadow: 0 calc(2 * var(--u)) calc(8 * var(--u)) rgb(0 0 0 / .14); cursor: pointer; transition: transform .15s; }
.arrow:hover { transform: scale(1.08); }
.arrow svg { width: 55%; height: 55%; fill: none; stroke: #141a33; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.empty-search { margin: 0; display: grid; place-items: center; font-size: calc(18 * var(--u)); font-weight: 700; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* phones and narrow tablets: same pieces, stacked */
@media (max-width: 760px) {
  .stage { aspect-ratio: auto; container-type: normal; --u: .5px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px 12px 24px; }
  .stage::before { display: none; }
  .topbar, .sidebar, main, .shelf { display: contents; }
  .at { position: relative; left: auto; top: auto; width: auto; height: auto; }
  .at > img { height: auto; }
  .logo { --u: .62px; }
  .hero .hero-copy { position: absolute; left: calc(300 / 590 * 100%); top: calc(312 / 648 * 100%); width: calc(250 / 590 * 100%); --u: calc((100vw - 24px) / 590); }
  .logo, .account-slot { align-self: center; }
  .account-slot { justify-self: end; --u: .9px; }
  .nav-link { display: none; }
  .side-cat { --u: .8px; height: 72px; }
  .card-2048 { --u: calc((100vw - 24px) / 408); height: calc(625 * var(--u)); }
  .search { grid-column: 1 / -1; order: 1; height: 42px; --u: 1px; }
  .side-cat { order: 2; }
  .side-panel { display: none; }
  .hero, .card, .card-2048, .shelf-title, .track, .empty-search { grid-column: 1 / -1; order: 3; }
  .hero .hotspot { position: absolute; left: calc(300 / 590 * 100%); top: calc(410 / 648 * 100%); width: calc(209 / 590 * 100%); height: calc(52 / 648 * 100%); }
  .shelf-title { --u: .85px; margin-top: 6px; }
  .shelf-all, .arrow { display: none; }
  .track { --u: .82px; height: calc(171 * var(--u)); margin-right: -12px; }
  .empty-search { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .track { scroll-behavior: auto; }
  .lift, .side-cat, .arrow, .thumb.soon::after, .toast { transition: none; }
  .lift:hover, .side-cat:hover, .arrow:hover { transform: none; }
}
