/* Popyca portal: Poki tarzı karo mozaiği, canlı mor-mavi zemin */
:root{--cell:96px;--gap:14px;--r:20px;--ink:#1b1f3b;--muted:#6b7196;--brand:#ff6b35;--brand2:#ffb627;--panel:#fff;--bg1:#5b4bff;--bg2:#2fb5ff;--bg3:#20d6c7}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{min-height:100vh;font-family:Nunito,ui-rounded,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--ink);background:var(--bg2) linear-gradient(135deg,var(--bg1) 0%,var(--bg2) 55%,var(--bg3) 100%) fixed;overflow-x:hidden}
body::before{content:"";position:fixed;inset:0;pointer-events:none;background:
  radial-gradient(circle at 12% 18%,rgba(255,255,255,.16) 0 120px,transparent 121px),
  radial-gradient(circle at 88% 8%,rgba(255,255,255,.10) 0 180px,transparent 181px),
  radial-gradient(circle at 70% 80%,rgba(255,255,255,.10) 0 220px,transparent 221px),
  linear-gradient(115deg,transparent 0 62%,rgba(255,255,255,.07) 62% 74%,transparent 74%)}
body.game-page{background:#16163a}
body.game-page::before{background:var(--gbg,none) center/cover no-repeat;filter:blur(40px) saturate(1.3);opacity:.55;transform:scale(1.15)}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer}
.wrap{position:relative;padding:16px;display:flex;justify-content:center}
.grid{display:grid;grid-template-columns:repeat(auto-fill,var(--cell));grid-auto-rows:var(--cell);grid-auto-flow:dense;gap:var(--gap);justify-content:center;width:100%;max-width:1900px}
/* Logo kutusu */
/* Popyca başlık kartı: logo + görünür arama çubuğu (kendi tasarımımız) */
.logo{grid-column:span 3;background:var(--panel);border-radius:var(--r);box-shadow:0 8px 20px rgba(20,10,80,.2);display:flex;flex-direction:column;justify-content:center;gap:10px;padding:12px 14px;position:relative;z-index:5;overflow:hidden}
.logo::after{content:"";position:absolute;right:-30px;top:-30px;width:90px;height:90px;border-radius:50%;background:radial-gradient(circle,#ffd23f55,transparent 70%);pointer-events:none}
.logo a.brand{display:flex;align-items:center;gap:9px}
.logo .mark{width:34px;height:34px;flex:none}
.logo .word{font-weight:900;font-size:34px;letter-spacing:-.03em;line-height:1;color:#2b2f6b;display:inline-flex;align-items:baseline}
.logo .ball{display:inline-block;width:.52em;height:.52em;margin:0 .015em 0 .037em;border-radius:50%;background:radial-gradient(circle at 36% 32%,#ff9cbf 0 14%,#ff3d7f 15% 62%,#e8205f 100%);box-shadow:inset -.04em -.05em .08em rgba(120,0,40,.25);transform:translateY(.015em)}
.logo .sbar{display:flex;align-items:center;gap:8px;width:100%;border:0;border-radius:999px;background:#f1f2fb;color:#7a80a3;font:inherit;font-weight:800;font-size:14px;padding:9px 14px;cursor:pointer;text-align:left}
.logo .sbar svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2.6;stroke-linecap:round;flex:none}
.logo .sbar:hover{background:#e8eafb;color:var(--brand)}
/* Oyun karoları */
.tile{position:relative;border-radius:var(--r);overflow:hidden;background:#fff;box-shadow:0 6px 16px rgba(20,10,80,.2);transition:transform .18s cubic-bezier(.3,1.6,.6,1),box-shadow .18s;display:block}
.tile img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}
.tile.s2{grid-column:span 2;grid-row:span 2}
.tile.s3{grid-column:span 3;grid-row:span 3}
.tile .name{position:absolute;left:0;right:0;bottom:0;padding:22px 10px 8px;font-weight:900;font-size:14px;line-height:1.15;color:#fff;background:linear-gradient(transparent,rgba(10,10,40,.82));transform:translateY(100%);transition:transform .2s;text-shadow:0 1px 3px rgba(0,0,0,.4)}
.tile.s2 .name,.tile.s3 .name{font-size:18px;padding:30px 14px 12px}
.tile .badge{position:absolute;top:6px;right:6px;background:var(--brand2);color:#3b2600;font-weight:900;font-size:10px;letter-spacing:.3px;padding:2px 7px;border-radius:999px;box-shadow:0 2px 6px rgba(0,0,0,.25)}
@media (hover:hover){.tile:hover{transform:scale(1.045);box-shadow:0 12px 26px rgba(20,10,80,.32);z-index:3}.tile:hover .name{transform:none}}
.tile:focus-visible{outline:4px solid #fff;outline-offset:2px}
/* Kategori karoları: renkli degrade, beyaz yazı, köşede büyük soluk simge (kendi tarzımız) */
.cat{grid-column:span 2;position:relative;overflow:hidden;border-radius:var(--r);display:flex;flex-direction:column;justify-content:flex-end;padding:12px 14px;color:#fff;font-weight:900;font-size:18px;line-height:1.1;background:linear-gradient(135deg,var(--c,#7c5cff),color-mix(in srgb,var(--c,#7c5cff) 55%,#1b1f3b));box-shadow:0 8px 20px rgba(20,10,80,.22);transition:transform .15s}
.cat svg{position:absolute;right:-10px;top:-8px;width:74px;height:74px;stroke:rgba(255,255,255,.28);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transform:rotate(-12deg)}
.cat:hover{transform:translateY(-3px) rotate(-.6deg)}
.cat small{display:block;font-size:12px;opacity:.85;font-weight:800;margin-top:3px}
/* Başlık karosu (kategori sayfaları) */
.head{grid-column:span 4;background:rgba(255,255,255,.95);border-radius:var(--r);padding:14px 18px;display:flex;flex-direction:column;justify-content:center;box-shadow:0 6px 16px rgba(20,10,80,.18)}
.head h1{font-size:24px;font-weight:900;line-height:1.1}
.head p{color:var(--muted);font-weight:700;font-size:14px;margin-top:4px}
/* Oyun sayfası */
.stage{grid-column:span 8;grid-row:span 6;background:#000;border-radius:var(--r);overflow:hidden;display:flex;flex-direction:column;box-shadow:0 10px 30px rgba(0,0,0,.4);position:relative;z-index:2}
.stage.portrait{grid-column:span 5;grid-row:span 7}
.stage .frame{flex:1;position:relative;background:#111}
.stage iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
.stage .bar{height:64px;flex:none;background:#fff;display:flex;align-items:center;gap:12px;padding:0 14px}
.stage .bar img{width:44px;height:44px;border-radius:10px;object-fit:cover}
.stage .bar h1{font-size:18px;font-weight:900;line-height:1.1}
.stage .bar small{color:var(--muted);font-weight:700;font-size:12px}
.stage .bar .sp{flex:1}
.ibtn{width:44px;height:44px;border-radius:12px;border:0;background:#f1f3fb;color:#2c3260;display:flex;align-items:center;justify-content:center}
.ibtn:hover{background:#e6e9f8;color:var(--brand)}
.ibtn svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.cover{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:#111 center/cover no-repeat;cursor:pointer}
.cover::before{content:"";position:absolute;inset:0;background:rgba(10,10,40,.45);backdrop-filter:blur(6px)}
.cover>*{position:relative}
.cover img{width:150px;height:150px;border-radius:24px;box-shadow:0 10px 30px rgba(0,0,0,.45)}
.cover .pbtn{border:0;border-radius:999px;padding:14px 46px;font-weight:900;font-size:22px;color:#fff;background:linear-gradient(180deg,#ff8a4c,#ff5a2a);box-shadow:0 6px 0 #c83f14,0 10px 24px rgba(0,0,0,.35);animation:pulse 1.6s ease-in-out infinite}
.cover .ttl{color:#fff;font-weight:900;font-size:26px;text-shadow:0 2px 8px rgba(0,0,0,.5);text-align:center;padding:0 16px}
@keyframes pulse{50%{transform:scale(1.06)}}
/* Oyun açıklaması: sayfanın en altında beyaz bölüm (Poki gibi) */
.about{position:relative;background:#fff;margin-top:24px;padding:40px 16px}
.about-in{max-width:1050px;margin:0 auto;display:flex;gap:32px;align-items:flex-start}
.about-in>img{width:200px;height:200px;border-radius:20px;object-fit:cover;flex:none;box-shadow:0 8px 22px rgba(20,10,80,.18)}
.about .crumbs{font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.6px;color:var(--muted);margin-bottom:6px}
.about .crumbs a{color:var(--muted)}.about .crumbs a:last-child{color:#2c3260}
.about h2{font-size:30px;font-weight:900;margin-bottom:10px;color:#1d2a5a}
.about h3{font-size:17px;font-weight:900;margin:14px 0 6px;color:#1d2a5a}
.about p{color:#3d4368;font-weight:600;line-height:1.6;font-size:15.5px}
.about .tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}
.about .tags a{background:#eef0fb;color:#3a4170;border-radius:999px;padding:5px 13px;font-weight:800;font-size:13px}
.about .tags a:hover{background:var(--brand);color:#fff}
.about kbd{background:#eef0fb;border-radius:6px;padding:1px 7px;font-family:inherit;font-weight:800;font-size:13px;border-bottom:2px solid #d5d9ee}
body.game-page footer{color:#fff}
@media (max-width:700px){.about-in{flex-direction:column;gap:16px}.about-in>img{width:120px;height:120px}.about h2{font-size:24px}}
/* Telefonda oyun: tam ekran katman */
.mplay{position:fixed;inset:0;z-index:100;background:#000;display:none}
.mplay.on{display:block}
.mplay iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.mplay .x{position:absolute;top:max(8px,env(safe-area-inset-top));left:max(8px,env(safe-area-inset-left));z-index:3;width:44px;height:44px;transition:opacity .4s;border-radius:12px;border:0;background:rgba(0,0,0,.45);color:#fff;font-size:22px;font-weight:900;line-height:1}
.rot{position:absolute;inset:0;z-index:2;display:none;align-items:center;justify-content:center;flex-direction:column;gap:14px;background:#14143a;color:#fff;font-weight:900;font-size:18px;text-align:center;padding:20px}
.rot svg{width:64px;height:64px;stroke:#fff;fill:none;stroke-width:2;animation:rot 1.8s ease-in-out infinite}
@keyframes rot{50%{transform:rotate(90deg)}}
@media (orientation:portrait){.mplay.land .rot{display:flex}}
@media (orientation:landscape){.mplay.port .rot{display:flex}}
.mplay.any .rot{display:none!important}
.mplay.xgone .x{opacity:0;pointer-events:none}
.rot .any{margin-top:6px;border:2px solid rgba(255,255,255,.5);background:transparent;color:#fff;font:inherit;font-size:15px;font-weight:800;border-radius:999px;padding:11px 22px;min-height:44px}
/* Arama */
.search{position:fixed;inset:0;z-index:50;background:rgba(20,16,70,.6);backdrop-filter:blur(6px);display:none;overflow:auto;padding:16px}
.search.on{display:block}
.search .box{max-width:720px;margin:0 auto 16px;display:flex;gap:10px}
.search input{flex:1;border:0;border-radius:16px;padding:16px 18px;font:inherit;font-weight:800;font-size:18px;outline:none;box-shadow:0 8px 24px rgba(0,0,0,.25)}
.search .x2{border:0;border-radius:16px;background:#fff;width:56px;font-size:24px;font-weight:900;color:var(--ink)}
.search .empty{color:#fff;text-align:center;font-weight:800;margin-top:30px}
/* Alt bilgi */
footer{position:relative;margin:24px auto 0;max-width:1100px;padding:24px 16px 40px;color:#fff;text-align:center;font-weight:700}
footer p{opacity:.9;margin-bottom:12px}
footer nav{display:flex;gap:16px;justify-content:center;flex-wrap:wrap;margin-bottom:14px}
footer nav a{opacity:.95;text-decoration:underline;text-underline-offset:3px}
footer select{font:inherit;font-weight:800;border:0;border-radius:12px;padding:8px 12px;color:var(--ink)}
.page{max-width:760px;margin:0 auto;background:#fff;border-radius:var(--r);padding:26px;line-height:1.6;box-shadow:0 6px 16px rgba(20,10,80,.18)}
.page h1{font-weight:900;margin-bottom:10px}
.page h2{font-weight:900;font-size:19px;margin:18px 0 6px}
.page p{color:#3d4368;font-weight:600;margin-bottom:10px}
/* Telefon: daha küçük hücreler (2'li sütunlar Poki gibi) */
@media (max-width:640px){
  :root{--gap:10px;--cell:calc((100vw - 32px - 3*var(--gap)) / 4)}
  .grid{grid-template-rows:56px}
  .wrap{padding:12px 16px}
  .tile.s3{grid-column:span 2;grid-row:span 2}
  .stage,.stage.portrait,.head{grid-column:span 4}
  .stage{grid-row:span 3}.stage.portrait{grid-row:span 5}
  .stage .bar{height:58px}
  .stage{grid-row:span 4}.cover{gap:10px;overflow:hidden}.cover img{width:84px;height:84px;border-radius:18px}.cover .ttl{font-size:20px}.cover .pbtn{padding:11px 36px;font-size:19px}
  .cat{grid-column:span 2;font-size:15px;padding:10px 12px}
  .cat svg{width:54px;height:54px}
  .logo{grid-column:span 4;grid-row:span 1;height:auto;flex-direction:row;align-items:center;justify-content:space-between;padding:6px 12px;gap:10px;height:56px}
  .logo .word{font-size:26px}
  .logo .sbar{width:auto;flex:1;max-width:56%;padding:7px 12px;font-size:13px}
  .tile .name{display:none}
}
@media (min-width:641px) and (max-width:1000px){
  .stage{grid-column:span 6;grid-row:span 5}.stage.portrait{grid-column:span 4;grid-row:span 6}
}

/* Oyun alanı ekran yüksekliğini aşmasın */
@media (min-width:641px){.stage{max-height:calc(100vh - 120px)}}
@media (max-height:520px){.stage,.stage.portrait{max-height:calc(100vh - 16px)}.cover img{display:none}}
/* Telefonda dokunma hedefleri */
@media (max-width:640px){.logo .sbar{min-height:40px}footer a{display:inline-block;padding:10px 6px}.crumbs a{display:inline-block;padding:10px 2px}}

/* Çerez onayı */
.consent{position:fixed;left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));z-index:60;max-width:560px;margin:0 auto;background:#fff;color:var(--ink);border-radius:16px;box-shadow:0 10px 30px rgba(20,10,80,.35);padding:12px 12px 12px 16px;display:flex;align-items:center;gap:10px;font-weight:700;font-size:14px}
.consent span{flex:1}
.consent button{border:0;border-radius:999px;padding:10px 16px;min-height:44px;font:inherit;font-weight:900;cursor:pointer}
.consent .ok{background:#5b4bff;color:#fff}.consent .no{background:#eef1fb;color:#2b2f6b}
