
:root{--bg:#f7f8ff;--card:#fff;--ink:#25233a;--muted:#74748a;--purple:#6557e8;--purple2:#8b5cf6;--line:#e9e7f7;--green:#16a34a;--red:#dc2626;--gold:#f59e0b}
*{box-sizing:border-box}html,body{margin:0;padding:0}body{font-family:Inter,ui-rounded,"Segoe UI",Arial,sans-serif;background:linear-gradient(180deg,#fafaff,#f5f6ff);color:var(--ink)}a{color:inherit}.mg-shell{max-width:1180px;margin:auto;padding:18px 16px 46px}.mg-top{display:flex;align-items:center;gap:14px;justify-content:space-between;margin-bottom:18px}.mg-brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:1000;font-size:22px}.mg-brand img{height:42px;width:auto}.mg-nav{display:flex;gap:9px;flex-wrap:wrap}.mg-nav a,.mg-btn{border:0;text-decoration:none;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 14px;font-weight:900;cursor:pointer;box-shadow:0 4px 14px rgba(52,45,112,.05)}.mg-btn.primary{background:linear-gradient(135deg,var(--purple),var(--purple2));color:white;border-color:transparent}.mg-btn.warn{background:#fff7ed;color:#9a3412}.mg-hero{display:grid;grid-template-columns:1.2fr .8fr;gap:18px;align-items:stretch;margin:10px 0 18px}.mg-hero-card,.mg-panel{background:var(--card);border:1px solid var(--line);border-radius:24px;box-shadow:0 10px 30px rgba(52,45,112,.07)}.mg-hero-card{padding:24px}.mg-kicker{font-size:12px;letter-spacing:.11em;text-transform:uppercase;color:#6d5dd3;font-weight:1000}.mg-hero h1{font-size:34px;line-height:1.1;margin:8px 0 10px}.mg-hero p{color:var(--muted);line-height:1.65;margin:0}.mg-progress-card{padding:20px;display:flex;flex-direction:column;justify-content:center;gap:10px}.mg-progress-row{display:flex;justify-content:space-between;gap:8px}.mg-progress-track{height:12px;background:#eeedf7;border-radius:999px;overflow:hidden}.mg-progress-fill{height:100%;background:linear-gradient(90deg,#6d5dfc,#a855f7);width:0}.mg-game-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:18px}.mg-panel{padding:16px}.mg-canvas-wrap{position:relative;overflow:hidden;border-radius:20px;background:#111827;min-height:520px}.mg-canvas-wrap canvas{display:block;width:100%;height:auto;max-height:640px;touch-action:none}.mg-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:22px;background:rgba(20,18,45,.72);backdrop-filter:blur(5px);z-index:5}.mg-overlay[hidden]{display:none}.mg-overlay-card{max-width:460px;width:100%;background:#fff;border-radius:24px;padding:24px;text-align:center;box-shadow:0 20px 50px rgba(0,0,0,.18)}.mg-overlay-card h2{margin:0 0 8px;font-size:28px}.mg-overlay-card p{color:var(--muted);line-height:1.55}.mg-side h3{margin:0 0 12px}.mg-stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.mg-stat{background:#f8f7ff;border:1px solid var(--line);padding:12px;border-radius:15px}.mg-stat small{display:block;color:var(--muted);font-weight:700}.mg-stat b{font-size:22px}.mg-tip{margin-top:12px;padding:13px;border-radius:15px;background:#fff9eb;border:1px solid #fde6a7;color:#765c0b;font-size:13px;line-height:1.55}.mg-member{margin-top:12px;padding:13px;border-radius:15px;background:#eefcf2;border:1px solid #cdeed6;font-size:13px;line-height:1.5}.mg-member.guest{background:#f8f7ff;border-color:#e1ddfb}.mg-controls{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.mg-touch{display:none;grid-template-columns:repeat(3,58px);justify-content:center;gap:7px;margin-top:12px}.mg-touch button{height:52px;border:0;border-radius:14px;background:#fff;border:1px solid var(--line);font-size:22px;font-weight:1000}.mg-list-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:24px 0 12px}.mg-list-head h1,.mg-list-head h2{margin:0}.mg-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.mg-game-card{display:block;text-decoration:none;background:#fff;border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:0 10px 26px rgba(52,45,112,.07);transition:.18s transform,.18s box-shadow}.mg-game-card:hover{transform:translateY(-3px);box-shadow:0 16px 34px rgba(52,45,112,.12)}.mg-thumb{height:170px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}.mg-thumb .emoji{font-size:72px;filter:drop-shadow(0 10px 9px rgba(0,0,0,.18));z-index:2}.mg-thumb:before,.mg-thumb:after{content:"";position:absolute;border-radius:999px;background:rgba(255,255,255,.23)}.mg-thumb:before{width:140px;height:140px;left:-30px;top:-25px}.mg-thumb:after{width:90px;height:90px;right:-18px;bottom:-22px}.t-target{background:linear-gradient(135deg,#2563eb,#7c3aed)}.t-breaker{background:linear-gradient(135deg,#7c3aed,#ec4899)}.t-memory{background:linear-gradient(135deg,#f59e0b,#fb7185)}.t-space{background:linear-gradient(135deg,#111827,#4338ca)}.t-frog{background:linear-gradient(135deg,#84cc16,#16a34a)}.mg-card-body{padding:15px}.mg-card-body h3{margin:0 0 6px;font-size:19px}.mg-card-body p{margin:0;color:var(--muted);font-size:13.5px;line-height:1.5}.mg-card-meta{display:flex;justify-content:space-between;margin-top:12px;font-size:12px;font-weight:900;color:#6256c5}.mg-badge{display:inline-flex;padding:5px 8px;background:#f0efff;border-radius:999px}.mg-footer{text-align:center;color:var(--muted);font-size:13px;margin-top:30px}.memory-board{display:grid;gap:10px;padding:14px;min-height:500px;align-content:center}.memory-card{aspect-ratio:1;border:0;border-radius:16px;font-size:34px;background:linear-gradient(135deg,#6557e8,#8b5cf6);color:white;cursor:pointer;transform-style:preserve-3d;transition:.18s}.memory-card.open,.memory-card.done{background:#fff;border:2px solid #e9e7f7;color:#25233a}.memory-card.done{opacity:.58}.memory-card:disabled{cursor:default}.no-select{user-select:none;-webkit-user-select:none}
@media(max-width:860px){.mg-hero{grid-template-columns:1fr}.mg-game-layout{grid-template-columns:1fr}.mg-side{order:-1}.mg-canvas-wrap{min-height:420px}.mg-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mg-touch{display:grid}.mg-hero h1{font-size:29px}}
@media(max-width:560px){.mg-shell{padding:12px 10px 34px}.mg-top{align-items:flex-start}.mg-brand span{display:none}.mg-nav{justify-content:flex-end}.mg-nav a{padding:8px 10px;font-size:12px}.mg-hero-card,.mg-progress-card,.mg-panel{border-radius:18px}.mg-hero-card{padding:18px}.mg-hero h1{font-size:25px}.mg-grid{grid-template-columns:1fr}.mg-thumb{height:145px}.mg-canvas-wrap{min-height:360px}.mg-stat b{font-size:18px}}

/* v2 portal/footer */
.mg-brand span{display:none!important}.mg-site-footer{margin-top:34px;background:#fff;border:1px solid var(--line);border-radius:24px;overflow:hidden}.mg-footer-inner{padding:24px}.mg-footer-top{display:flex;justify-content:space-between;gap:24px;align-items:center}.mg-footer-logo{font-size:25px;font-weight:1000}.mg-footer-logo span{color:#6557e8}.mg-footer-logo b{color:#16a34a}.mg-footer-logo em{font-style:normal;color:#f59e0b;font-size:15px}.mg-footer-brand p{margin:7px 0 0;color:var(--muted);font-size:13px}.mg-footer-menu{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.mg-footer-menu a{padding:10px 12px;border:1px solid var(--line);border-radius:12px;text-decoration:none;font-size:12px}.mg-footer-line{height:1px;background:var(--line);margin:18px 0}.mg-footer-bottom{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;color:var(--muted);font-size:12px}.mg-footer-bottom nav{display:flex;gap:8px;flex-wrap:wrap}.mg-footer-bottom a{text-decoration:none}.mg-level-strip{display:flex;gap:7px;overflow:auto;padding:2px 0 10px;margin-top:12px}.mg-level-chip{flex:0 0 auto;padding:6px 9px;border-radius:999px;background:#f1f0ff;color:#5b50bd;font-size:11px;font-weight:900}.mg-level-chip.active{background:#6557e8;color:#fff}.mg-pro-badges{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.mg-pro-badges span{font-size:11px;font-weight:900;background:#f8f7ff;border:1px solid var(--line);padding:6px 9px;border-radius:999px}.t-balloon{background:linear-gradient(135deg,#fb7185,#f97316)}.t-maze{background:linear-gradient(135deg,#06b6d4,#2563eb)}.t-treasure{background:linear-gradient(135deg,#f59e0b,#a16207)}.t-reflex{background:linear-gradient(135deg,#ec4899,#7c3aed)}
@media(max-width:700px){.mg-footer-top{align-items:flex-start;flex-direction:column}.mg-footer-menu{width:100%;grid-template-columns:repeat(2,1fr)}.mg-footer-bottom{flex-direction:column}}


/* === EXACT MAIN FOOTER START === */
.premium-footer{
  width:min(1180px,calc(100% - 28px));
  margin:34px auto 18px;
  padding:0;
  border-radius:26px;
  overflow:hidden;
  background:
    radial-gradient(circle at 8% 0%,rgba(124,92,255,.20),transparent 28%),
    radial-gradient(circle at 92% 5%,rgba(56,189,248,.13),transparent 27%),
    linear-gradient(135deg,#101a3b 0%,#111c42 48%,#172554 100%);
  color:#fff;
  box-shadow:0 18px 45px rgba(15,23,42,.18);
  border:1px solid rgba(255,255,255,.08);
}
.premium-footer-inner{padding:30px 34px 19px}
.premium-footer-top{display:flex;align-items:center;justify-content:space-between;gap:34px}
.premium-footer-brand{min-width:245px}
.premium-footer-logo{font-size:29px;font-weight:1000;letter-spacing:-1.2px;line-height:1}
.premium-footer-logo span{color:#fbbf24}
.premium-footer-logo b{color:#60a5fa}
.premium-footer-logo em{font-style:normal;color:#fff;font-size:19px;letter-spacing:-.5px}
.premium-footer-brand p{margin:9px 0 0;color:#cbd5e1;font-size:13px;font-weight:800}
.premium-footer-menu{display:grid;grid-template-columns:repeat(6,minmax(82px,1fr));gap:8px;flex:1;max-width:820px}
.premium-footer-menu a{
  text-decoration:none;color:#fff;min-height:74px;padding:10px 8px;border-radius:17px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
  border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.055);
  transition:transform .18s ease,background .18s ease,border-color .18s ease;
}
.premium-footer-menu a:hover{transform:translateY(-3px);background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.20)}
.premium-footer-menu a span{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;font-size:18px}
.premium-footer-menu a b{font-size:11px;font-weight:900;white-space:nowrap}
.pf-purple span{background:rgba(168,85,247,.20)}
.pf-green span{background:rgba(34,197,94,.20)}
.pf-blue span{background:rgba(59,130,246,.20)}
.pf-orange span{background:rgba(249,115,22,.20)}
.pf-pink span{background:rgba(236,72,153,.20)}
.premium-footer-line{height:1px;margin:23px 0 15px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.19),transparent)}
.premium-footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:18px}
.premium-footer-legal{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.premium-footer-legal a{color:#cbd5e1;text-decoration:none;font-size:11px;font-weight:800;transition:color .15s ease}
.premium-footer-legal a:hover{color:#fff}
.premium-footer-legal>span{color:#475569;font-size:10px}
.premium-footer-copy{color:#94a3b8;font-size:10px;font-weight:700;white-space:nowrap}
.premium-footer-copy strong{color:#60a5fa}
@media(max-width:820px){
  .site-footer.premium-footer{width:calc(100% - 18px);border-radius:22px;margin-top:26px}
  .premium-footer-inner{padding:24px 16px 17px}
  .premium-footer-top{display:block}
  .premium-footer-brand{text-align:center;min-width:0;margin-bottom:19px}
  .premium-footer-logo{font-size:27px}
  .premium-footer-menu{grid-template-columns:repeat(5,1fr);gap:6px;max-width:none}
  .premium-footer-menu a{min-width:0;min-height:68px;padding:8px 3px;border-radius:14px}
  .premium-footer-menu a span{width:31px;height:31px;font-size:16px}
  .premium-footer-menu a b{font-size:9px}
  .premium-footer-line{margin:19px 0 14px}
  .premium-footer-bottom{display:block;text-align:center}
  .premium-footer-legal{justify-content:center;gap:7px}
  .premium-footer-legal a{font-size:10px}
  .premium-footer-copy{white-space:normal;margin-top:12px}
}
@media(max-width:430px){
  .premium-footer-menu{grid-template-columns:repeat(3,1fr)}
  .premium-footer-menu a:nth-child(4),.premium-footer-menu a:nth-child(5){min-height:62px}
  .premium-footer-legal>span{display:none}
  .premium-footer-legal{column-gap:12px;row-gap:8px}
}


/* === TEMA ÖDÜLLERİ: AÇIK / YENİ DURUMU === */
.theme-card{position:relative;overflow:hidden}
.theme-card.unlocked:not(.locked){border-color:#86efac;background:linear-gradient(180deg,#fff,#f0fdf4)}
.theme-card.unlocked:not(.locked)::after{
  content:"✓";position:absolute;right:9px;top:8px;width:25px;height:25px;border-radius:50%;
  display:grid;place-items:center;background:#22c55e;color:#fff;font-size:16px;font-weight:1000;
  box-shadow:0 4px 12px rgba(34,197,94,.28);z-index:3
}
.theme-card.selected{border-color:#16a34a!important;box-shadow:0 0 0 4px rgba(34,197,94,.14)!important}
.theme-card.selected::after{content:"✓"}
.theme-card.theme-new{border-color:#facc15!important;box-shadow:0 0 0 3px rgba(250,204,21,.18),0 8px 24px rgba(250,204,21,.15)}
.theme-card.theme-new::before{
  content:"";position:absolute;z-index:2;top:-45%;left:-55%;width:35%;height:190%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.92),transparent);
  transform:rotate(18deg);animation:themeShine 2.2s ease-in-out infinite;pointer-events:none
}
.theme-new-badge{
  position:absolute;left:8px;top:8px;z-index:4;background:#f59e0b;color:#fff;
  border-radius:999px;padding:4px 7px;font-size:9px;font-weight:1000;
  box-shadow:0 4px 12px rgba(245,158,11,.25);letter-spacing:.2px
}
@keyframes themeShine{
  0%,20%{left:-55%}65%,100%{left:125%}
}
@media(prefers-reduced-motion:reduce){.theme-card.theme-new::before{animation:none}}


/* Tema kartı durum önceliği */
.theme-card.unlocked{filter:none!important;opacity:1!important;cursor:pointer!important}
.theme-card.unlocked small{color:#15803d!important;font-weight:1000}
.theme-card.locked small{color:#374151}

/* Akıllı Tekrar durum bilgisi */
.spaced-review-wrap{margin:0}
.spaced-review-status{
  margin:-2px 4px 12px;text-align:center;font-size:12px;font-weight:900;
  min-height:18px;transition:.2s ease
}
.spaced-review-status.empty{color:#64748b}
.spaced-review-status.ready{color:#0f766e}
.spaced-review-btn.has-review{
  box-shadow:0 8px 22px rgba(13,148,136,.16);
}

/* === PERFORMANS: ekran altındaki ağır modülleri gerektiğinde çiz === */
.theme-panel,
.site-footer{
  content-visibility:auto;
  contain-intrinsic-size:auto 420px;
}

/* SEO bilgi alanı - çarpım tablosu sayfalarında footer üstünde */
.seo-game-bubble{width:min(1180px,calc(100% - 28px));margin:18px auto 10px;padding:20px 23px;background:#fff;border:1px solid #e6e8f2;border-radius:20px;box-shadow:0 8px 24px rgba(15,23,42,.06);display:none}
.seo-game-bubble.show{display:block}
.seo-game-bubble h2{margin:0 0 5px;font-size:20px;color:#312e81}
.seo-game-bubble h3{margin:0 0 10px;font-size:14px;color:#6d28d9;font-weight:900}
.seo-game-bubble p{margin:0;color:#556174;line-height:1.68;font-size:14.5px}
@media(max-width:650px){.seo-game-bubble{width:calc(100% - 18px);padding:17px 18px;border-radius:17px}.seo-game-bubble h2{font-size:18px}.seo-game-bubble h3{font-size:13px}.seo-game-bubble p{font-size:14px}}

.seo-game-bubble .seo-mini-section+.seo-mini-section{margin-top:14px;padding-top:14px;border-top:1px solid #eef0f6}
.seo-game-bubble .seo-mini-section h2,.seo-game-bubble .seo-mini-section h3,.seo-game-bubble .seo-dynamic-heading{margin:0 0 6px;color:#312e81;font-weight:900}
.seo-game-bubble .seo-mini-section h2,.seo-game-bubble .seo-dynamic-heading-h2{font-size:19px}.seo-game-bubble .seo-mini-section h3,.seo-game-bubble .seo-dynamic-heading-h3{font-size:16px}
.seo-game-bubble .seo-mini-section p{margin:0;color:#556174;font-size:14.5px;line-height:1.62}
@media(max-width:650px){.seo-game-bubble .seo-mini-section h2,.seo-game-bubble .seo-dynamic-heading-h2{font-size:17px}.seo-game-bubble .seo-mini-section h3,.seo-game-bubble .seo-dynamic-heading-h3{font-size:15px}.seo-game-bubble .seo-mini-section p{font-size:14px}}

/* Oturum etiketi: yenilemede Giriş -> kullanıcı adı titremesini önler */
#memberAccountChip.session-pending{visibility:hidden}

/* === OYUN MODU BUTONLARI EŞİT VE İNCE === */
.mix-btn,.wrong-btn,.hard-mode-btn,.blank-mode-btn,.pro-btn,.spaced-review-btn{
  width:100%;
  height:68px;
  min-height:68px;
  padding:7px 14px!important;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  line-height:1.12;
}
.mode-note{margin-top:3px}
@media(max-width:650px){
 .mix-btn,.wrong-btn,.hard-mode-btn,.blank-mode-btn,.pro-btn,.spaced-review-btn{
   height:68px;
   min-height:68px;
 }
}

/* === MINI BLOG ANA SAYFA === */
.home-mini-blog{width:100%;max-width:1200px;box-sizing:border-box;margin:6px auto 4px;padding:10px 18px;background:transparent;border:0;border-radius:0;box-shadow:none}
.home-mini-blog-head{display:flex;align-items:center;justify-content:space-between;margin:0 2px 14px;padding-bottom:11px;border-bottom:1px solid #ececf4}
.home-mini-blog-head h2{font-size:19px;margin:0;color:#312e81}
.home-mini-blog-head a{display:inline-flex;align-items:center;gap:7px;color:#312e81;text-decoration:none;font-weight:1000}
.home-mini-blog-head a:hover{color:#6d28d9}
.home-mini-blog-head
/* === EXACT MAIN FOOTER END === */


/* === v3 professional game polish === */
.mg-canvas-wrap{border:1px solid rgba(255,255,255,.08);box-shadow:inset 0 0 0 1px rgba(255,255,255,.025),0 18px 40px rgba(22,20,55,.13)}
.mg-canvas-wrap:after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:20px;background:linear-gradient(125deg,rgba(255,255,255,.08),transparent 24%,transparent 72%,rgba(124,58,237,.08));mix-blend-mode:screen}
.mg-overlay-card{border:1px solid rgba(101,87,232,.13);box-shadow:0 24px 70px rgba(18,16,45,.27)}
.mg-overlay-card .mg-btn.primary{min-width:180px;font-size:16px;padding:13px 18px}
.mg-stat{position:relative;overflow:hidden;background:linear-gradient(145deg,#fbfbff,#f4f2ff)}
.mg-stat:after{content:"";position:absolute;width:48px;height:48px;border-radius:50%;right:-18px;top:-20px;background:rgba(101,87,232,.07)}
.mg-controls .mg-btn{transition:transform .15s ease,box-shadow .15s ease,background .15s ease}.mg-controls .mg-btn:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(52,45,112,.10)}
.mg-pro-badges{display:flex;gap:7px;flex-wrap:wrap;margin-top:15px}.mg-pro-badges span{background:linear-gradient(135deg,#f4f2ff,#fbf7ff);border:1px solid #e5e0ff;color:#5b4bc2;padding:7px 10px;border-radius:999px;font-size:12px;font-weight:900}
.mg-game-card{isolation:isolate}.mg-thumb{transition:transform .25s ease}.mg-game-card:hover .mg-thumb{transform:scale(1.025)}
.mg-thumb .emoji{transition:transform .25s ease}.mg-game-card:hover .emoji{transform:scale(1.09) rotate(-3deg)}
.mg-card-meta{align-items:center}.mg-badge{border:1px solid #ded9ff;background:linear-gradient(135deg,#f5f3ff,#eef2ff)}
@keyframes mgPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.04)}}
.mg-overlay:not([hidden]) .mg-overlay-card>div:first-child{animation:mgPulse 1.6s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){.mg-game-card,.mg-thumb,.mg-thumb .emoji,.mg-controls .mg-btn,.mg-overlay:not([hidden]) .mg-overlay-card>div:first-child{transition:none!important;animation:none!important}}


/* === v4 fullscreen game mode === */
.mg-fullscreen-btn{margin-left:auto;background:linear-gradient(135deg,#111827,#334155)!important;color:#fff!important;border-color:transparent!important}
.mg-game-layout:fullscreen,.mg-game-layout:-webkit-full-screen,.mg-game-layout.mg-faux-fullscreen{background:linear-gradient(145deg,#0b1022,#151b36);padding:18px;gap:16px;width:100%;height:100%;max-width:none;overflow:auto;align-content:center}
.mg-game-layout:fullscreen .mg-panel,.mg-game-layout:-webkit-full-screen .mg-panel,.mg-game-layout.mg-faux-fullscreen .mg-panel{box-shadow:0 20px 60px rgba(0,0,0,.32);border-color:rgba(255,255,255,.12)}
.mg-game-layout:fullscreen>.mg-panel:first-child,.mg-game-layout:-webkit-full-screen>.mg-panel:first-child,.mg-game-layout.mg-faux-fullscreen>.mg-panel:first-child{display:flex;flex-direction:column;justify-content:center;min-height:0}
.mg-game-layout:fullscreen .mg-canvas-wrap,.mg-game-layout:-webkit-full-screen .mg-canvas-wrap,.mg-game-layout.mg-faux-fullscreen .mg-canvas-wrap{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;background:#0b1020}
.mg-game-layout:fullscreen .mg-canvas-wrap canvas,.mg-game-layout:-webkit-full-screen .mg-canvas-wrap canvas,.mg-game-layout.mg-faux-fullscreen .mg-canvas-wrap canvas{width:auto;max-width:100%;height:auto;max-height:calc(100vh - 145px)}
.mg-game-layout:fullscreen .memory-board,.mg-game-layout:-webkit-full-screen .memory-board,.mg-game-layout.mg-faux-fullscreen .memory-board{min-height:0;height:100%;max-height:calc(100vh - 145px)}
.mg-game-layout.mg-faux-fullscreen{position:fixed;inset:0;z-index:999999;border-radius:0;grid-template-columns:minmax(0,1fr) 300px}
html.mg-faux-lock,html.mg-faux-lock body{overflow:hidden!important}
@media(max-width:860px){.mg-game-layout:fullscreen,.mg-game-layout:-webkit-full-screen,.mg-game-layout.mg-faux-fullscreen{grid-template-columns:1fr;padding:10px;align-content:start}.mg-game-layout:fullscreen .mg-side,.mg-game-layout:-webkit-full-screen .mg-side,.mg-game-layout.mg-faux-fullscreen .mg-side{order:0}.mg-game-layout:fullscreen .mg-canvas-wrap canvas,.mg-game-layout:-webkit-full-screen .mg-canvas-wrap canvas,.mg-game-layout.mg-faux-fullscreen .mg-canvas-wrap canvas{max-height:calc(100vh - 235px)}.mg-fullscreen-btn{margin-left:0}}

/* === mobile/tablet game mode v5 === */
.mg-mobile-pad{display:none;touch-action:none;user-select:none;-webkit-user-select:none;margin:10px auto 0;position:relative;z-index:8}
.mg-mobile-pad button{border:1px solid #d9d6f5;background:linear-gradient(145deg,#fff,#eeecff);color:#332d69;box-shadow:0 6px 14px rgba(36,31,83,.14);font-weight:1000;font-size:25px;min-width:62px;min-height:56px;border-radius:17px;touch-action:none;-webkit-tap-highlight-color:transparent}
.mg-mobile-pad button.pressed{transform:translateY(2px) scale(.97);background:#ddd8ff}
.mg-pad-four{width:204px;height:126px;grid-template-columns:repeat(3,62px);grid-template-rows:repeat(2,56px);gap:7px}.mg-pad-four button[data-dir="up"]{grid-column:2}.mg-pad-four button[data-dir="left"]{grid-column:1;grid-row:2}.mg-pad-four button[data-dir="down"]{grid-column:2;grid-row:2}.mg-pad-four button[data-dir="right"]{grid-column:3;grid-row:2}
.mg-pad-lr{grid-template-columns:repeat(2,minmax(86px,120px));gap:12px;justify-content:center}
@media (hover:none),(pointer:coarse){.mg-mobile-pad{display:grid}.mg-canvas-wrap{touch-action:none}.mg-canvas-wrap canvas{touch-action:none;-webkit-user-select:none;user-select:none}.mg-mobile-pad button{min-height:62px}}
@media(max-width:860px){
  .mg-game-layout.mg-is-fullscreen,.mg-game-layout:fullscreen,.mg-game-layout:-webkit-full-screen,.mg-game-layout.mg-faux-fullscreen{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;gap:6px!important;padding:6px!important;overflow:hidden!important;background:#080d1d!important}
  .mg-game-layout.mg-is-fullscreen>.mg-panel:first-child,.mg-game-layout:fullscreen>.mg-panel:first-child,.mg-game-layout:-webkit-full-screen>.mg-panel:first-child,.mg-game-layout.mg-faux-fullscreen>.mg-panel:first-child{order:1!important;flex:1 1 auto!important;width:100%!important;min-height:0!important;padding:4px!important;background:transparent!important;border:0!important;box-shadow:none!important}
  .mg-game-layout.mg-is-fullscreen .mg-canvas-wrap,.mg-game-layout:fullscreen .mg-canvas-wrap,.mg-game-layout:-webkit-full-screen .mg-canvas-wrap,.mg-game-layout.mg-faux-fullscreen .mg-canvas-wrap{width:100%!important;flex:1 1 auto!important;min-height:0!important;height:auto!important;border-radius:12px!important}
  .mg-game-layout.mg-is-fullscreen .mg-canvas-wrap canvas,.mg-game-layout:fullscreen .mg-canvas-wrap canvas,.mg-game-layout:-webkit-full-screen .mg-canvas-wrap canvas,.mg-game-layout.mg-faux-fullscreen .mg-canvas-wrap canvas{width:100%!important;height:100%!important;max-width:100%!important;max-height:none!important;object-fit:contain!important}
  .mg-game-layout.mg-is-fullscreen .memory-board,.mg-game-layout:fullscreen .memory-board,.mg-game-layout:-webkit-full-screen .memory-board,.mg-game-layout.mg-faux-fullscreen .memory-board{width:100%!important;height:100%!important;max-height:none!important;min-height:0!important;padding:6px!important}
  .mg-game-layout.mg-is-fullscreen .mg-mobile-pad,.mg-game-layout:fullscreen .mg-mobile-pad,.mg-game-layout:-webkit-full-screen .mg-mobile-pad,.mg-game-layout.mg-faux-fullscreen .mg-mobile-pad{order:2!important;flex:0 0 auto!important;margin:4px auto 2px!important}
  .mg-game-layout.mg-is-fullscreen>.mg-side,.mg-game-layout:fullscreen>.mg-side,.mg-game-layout:-webkit-full-screen>.mg-side,.mg-game-layout.mg-faux-fullscreen>.mg-side{order:3!important;flex:0 0 auto!important;width:100%!important;padding:4px 7px!important;border-radius:10px!important;display:flex!important;align-items:center!important;gap:7px!important;overflow-x:auto!important;background:rgba(255,255,255,.96)!important}
  .mg-game-layout.mg-is-fullscreen>.mg-side h3,.mg-game-layout:fullscreen>.mg-side h3,.mg-game-layout:-webkit-full-screen>.mg-side h3,.mg-game-layout.mg-faux-fullscreen>.mg-side h3,.mg-game-layout.mg-is-fullscreen .mg-tip,.mg-game-layout:fullscreen .mg-tip,.mg-game-layout:-webkit-full-screen .mg-tip,.mg-game-layout.mg-faux-fullscreen .mg-tip,.mg-game-layout.mg-is-fullscreen .mg-member,.mg-game-layout:fullscreen .mg-member,.mg-game-layout:-webkit-full-screen .mg-member,.mg-game-layout.mg-faux-fullscreen .mg-member{display:none!important}
  .mg-game-layout.mg-is-fullscreen .mg-stat-grid,.mg-game-layout:fullscreen .mg-stat-grid,.mg-game-layout:-webkit-full-screen .mg-stat-grid,.mg-game-layout.mg-faux-fullscreen .mg-stat-grid{display:flex!important;gap:5px!important;flex:1!important}.mg-game-layout.mg-is-fullscreen .mg-stat,.mg-game-layout:fullscreen .mg-stat,.mg-game-layout:-webkit-full-screen .mg-stat,.mg-game-layout.mg-faux-fullscreen .mg-stat{padding:5px 7px!important;min-width:70px!important}.mg-game-layout.mg-is-fullscreen .mg-stat small,.mg-game-layout:fullscreen .mg-stat small,.mg-game-layout:-webkit-full-screen .mg-stat small,.mg-game-layout.mg-faux-fullscreen .mg-stat small{font-size:9px!important}.mg-game-layout.mg-is-fullscreen .mg-stat b,.mg-game-layout:fullscreen .mg-stat b,.mg-game-layout:-webkit-full-screen .mg-stat b,.mg-game-layout.mg-faux-fullscreen .mg-stat b{font-size:14px!important}
  .mg-game-layout.mg-is-fullscreen .mg-controls,.mg-game-layout:fullscreen .mg-controls,.mg-game-layout:-webkit-full-screen .mg-controls,.mg-game-layout.mg-faux-fullscreen .mg-controls{margin:0!important;gap:4px!important;flex-wrap:nowrap!important}.mg-game-layout.mg-is-fullscreen .mg-controls .mg-btn,.mg-game-layout:fullscreen .mg-controls .mg-btn,.mg-game-layout:-webkit-full-screen .mg-controls .mg-btn,.mg-game-layout.mg-faux-fullscreen .mg-controls .mg-btn{padding:7px 8px!important;font-size:0!important;min-width:42px!important}.mg-game-layout.mg-is-fullscreen .mg-controls .mg-btn::first-letter,.mg-game-layout:fullscreen .mg-controls .mg-btn::first-letter{font-size:17px!important}
}
@media (orientation:landscape) and (max-width:1100px) and (hover:none),(orientation:landscape) and (max-width:1100px) and (pointer:coarse){
  .mg-game-layout.mg-is-fullscreen>.mg-panel:first-child,.mg-game-layout:fullscreen>.mg-panel:first-child,.mg-game-layout:-webkit-full-screen>.mg-panel:first-child,.mg-game-layout.mg-faux-fullscreen>.mg-panel:first-child{min-height:calc(100% - 68px)!important}
  .mg-game-layout.mg-is-fullscreen .mg-mobile-pad,.mg-game-layout:fullscreen .mg-mobile-pad,.mg-game-layout:-webkit-full-screen .mg-mobile-pad,.mg-game-layout.mg-faux-fullscreen .mg-mobile-pad{position:absolute!important;bottom:10px!important;left:50%!important;transform:translateX(-50%);opacity:.88}
  .mg-game-layout.mg-is-fullscreen>.mg-side,.mg-game-layout:fullscreen>.mg-side,.mg-game-layout:-webkit-full-screen>.mg-side,.mg-game-layout.mg-faux-fullscreen>.mg-side{position:absolute!important;top:6px!important;right:6px!important;width:auto!important;max-width:55%!important;z-index:9!important;opacity:.94}
}

/* === v8 gerçek mobil/tablet tam ekran === */
.mg-fs-hud{display:none}
html.mg-game-fullscreen-lock,html.mg-game-fullscreen-lock body{overflow:hidden!important;overscroll-behavior:none!important}
@media (hover:none),(pointer:coarse){
  .mg-game-layout.mg-is-fullscreen,.mg-game-layout:fullscreen,.mg-game-layout:-webkit-full-screen,.mg-game-layout.mg-faux-fullscreen{
    position:relative!important;display:block!important;width:100%!important;height:100vh!important;height:100dvh!important;
    min-height:100%!important;padding:0!important;margin:0!important;overflow:hidden!important;background:#070b18!important;border-radius:0!important
  }
  .mg-game-layout.mg-is-fullscreen>.mg-panel:first-child,.mg-game-layout:fullscreen>.mg-panel:first-child,.mg-game-layout:-webkit-full-screen>.mg-panel:first-child,.mg-game-layout.mg-faux-fullscreen>.mg-panel:first-child{
    position:absolute!important;inset:0!important;width:100%!important;height:100%!important;padding:0!important;margin:0!important;
    background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden!important
  }
  .mg-game-layout.mg-is-fullscreen .mg-canvas-wrap,.mg-game-layout:fullscreen .mg-canvas-wrap,.mg-game-layout:-webkit-full-screen .mg-canvas-wrap,.mg-game-layout.mg-faux-fullscreen .mg-canvas-wrap{
    position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;border-radius:0!important;
    display:flex!important;align-items:center!important;justify-content:center!important;background:#090d1f!important;overflow:hidden!important
  }
  .mg-game-layout.mg-is-fullscreen .mg-canvas-wrap canvas,.mg-game-layout:fullscreen .mg-canvas-wrap canvas,.mg-game-layout:-webkit-full-screen .mg-canvas-wrap canvas,.mg-game-layout.mg-faux-fullscreen .mg-canvas-wrap canvas{
    display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;object-fit:fill!important;border-radius:0!important
  }
  .mg-game-layout.mg-is-fullscreen .memory-board,.mg-game-layout:fullscreen .memory-board,.mg-game-layout:-webkit-full-screen .memory-board,.mg-game-layout.mg-faux-fullscreen .memory-board{
    position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;margin:0!important;padding:52px 8px 92px!important;
    align-content:center!important;background:linear-gradient(145deg,#0b1022,#17162f)!important
  }
  .mg-game-layout.mg-is-fullscreen>.mg-side,.mg-game-layout:fullscreen>.mg-side,.mg-game-layout:-webkit-full-screen>.mg-side,.mg-game-layout.mg-faux-fullscreen>.mg-side{display:none!important}
  .mg-game-layout.mg-is-fullscreen .mg-controls,.mg-game-layout:fullscreen .mg-controls,.mg-game-layout:-webkit-full-screen .mg-controls,.mg-game-layout.mg-faux-fullscreen .mg-controls{
    position:absolute!important;top:max(8px,env(safe-area-inset-top))!important;right:max(8px,env(safe-area-inset-right))!important;z-index:30!important;
    display:flex!important;gap:6px!important;margin:0!important;padding:0!important;flex-wrap:nowrap!important
  }
  .mg-game-layout.mg-is-fullscreen .mg-controls .mg-btn,.mg-game-layout:fullscreen .mg-controls .mg-btn,.mg-game-layout:-webkit-full-screen .mg-controls .mg-btn,.mg-game-layout.mg-faux-fullscreen .mg-controls .mg-btn{
    min-width:46px!important;width:46px!important;height:46px!important;padding:0!important;border-radius:14px!important;font-size:21px!important;line-height:1!important;
    display:grid!important;place-items:center!important;background:rgba(255,255,255,.92)!important;color:#191a2b!important;box-shadow:0 5px 18px rgba(0,0,0,.25)!important;backdrop-filter:blur(7px)
  }
  .mg-game-layout.mg-is-fullscreen .mg-fullscreen-btn,.mg-game-layout:fullscreen .mg-fullscreen-btn,.mg-game-layout:-webkit-full-screen .mg-fullscreen-btn,.mg-game-layout.mg-faux-fullscreen .mg-fullscreen-btn{background:rgba(17,24,39,.92)!important;color:#fff!important}
  .mg-game-layout.mg-is-fullscreen .mg-fs-hud,.mg-game-layout:fullscreen .mg-fs-hud,.mg-game-layout:-webkit-full-screen .mg-fs-hud,.mg-game-layout.mg-faux-fullscreen .mg-fs-hud{
    display:flex!important;position:absolute!important;top:max(8px,env(safe-area-inset-top))!important;left:max(8px,env(safe-area-inset-left))!important;z-index:29!important;
    gap:5px!important;max-width:calc(100% - 220px)!important;overflow:hidden!important
  }
  .mg-fs-hud-item{min-width:54px;padding:5px 8px;border-radius:12px;background:rgba(8,12,28,.76);color:#fff;border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(7px);text-align:center;box-shadow:0 4px 14px rgba(0,0,0,.18)}
  .mg-fs-hud-item span{display:block;font-size:9px;font-weight:800;opacity:.74;white-space:nowrap}.mg-fs-hud-item b{display:block;font-size:15px;line-height:1.1;white-space:nowrap}
  .mg-game-layout.mg-is-fullscreen .mg-mobile-pad,.mg-game-layout:fullscreen .mg-mobile-pad,.mg-game-layout:-webkit-full-screen .mg-mobile-pad,.mg-game-layout.mg-faux-fullscreen .mg-mobile-pad{
    display:grid!important;position:absolute!important;z-index:31!important;bottom:max(12px,env(safe-area-inset-bottom))!important;left:50%!important;transform:translateX(-50%)!important;
    margin:0!important;padding:0!important;opacity:.88!important
  }
  .mg-game-layout.mg-is-fullscreen .mg-mobile-pad button,.mg-game-layout:fullscreen .mg-mobile-pad button,.mg-game-layout:-webkit-full-screen .mg-mobile-pad button,.mg-game-layout.mg-faux-fullscreen .mg-mobile-pad button{
    min-width:72px!important;min-height:62px!important;border-radius:20px!important;font-size:28px!important;background:rgba(255,255,255,.88)!important;box-shadow:0 8px 22px rgba(0,0,0,.25)!important;backdrop-filter:blur(7px)
  }
  .mg-game-layout.mg-is-fullscreen .mg-overlay,.mg-game-layout:fullscreen .mg-overlay,.mg-game-layout:-webkit-full-screen .mg-overlay,.mg-game-layout.mg-faux-fullscreen .mg-overlay{padding:70px 16px 90px!important}
  .mg-game-layout.mg-is-fullscreen .mg-overlay-card,.mg-game-layout:fullscreen .mg-overlay-card,.mg-game-layout:-webkit-full-screen .mg-overlay-card,.mg-game-layout.mg-faux-fullscreen .mg-overlay-card{max-width:420px!important;padding:18px!important}
}
/* Yatay telefonda/tablette oranı koru; ekranın tamamına yakınını oyun doldursun. */
@media (orientation:landscape) and (hover:none),(orientation:landscape) and (pointer:coarse){
  .mg-game-layout.mg-is-fullscreen .mg-canvas-wrap canvas,.mg-game-layout:fullscreen .mg-canvas-wrap canvas,.mg-game-layout:-webkit-full-screen .mg-canvas-wrap canvas,.mg-game-layout.mg-faux-fullscreen .mg-canvas-wrap canvas{object-fit:contain!important;width:100%!important;height:100%!important}
  .mg-game-layout.mg-is-fullscreen .mg-mobile-pad,.mg-game-layout:fullscreen .mg-mobile-pad,.mg-game-layout:-webkit-full-screen .mg-mobile-pad,.mg-game-layout.mg-faux-fullscreen .mg-mobile-pad{left:auto!important;right:max(16px,env(safe-area-inset-right))!important;transform:none!important;bottom:max(14px,env(safe-area-inset-bottom))!important}
  .mg-game-layout.mg-is-fullscreen .mg-pad-four,.mg-game-layout:fullscreen .mg-pad-four,.mg-game-layout:-webkit-full-screen .mg-pad-four,.mg-game-layout.mg-faux-fullscreen .mg-pad-four{width:198px!important;height:120px!important}
}

/* === v9 mobil/tablet kontrol ve tam ekran güvenilirlik düzeltmesi === */
@media (max-width:1180px), (pointer:coarse), (hover:none){
  .mg-fullscreen-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;visibility:visible!important;opacity:1!important}
  .mg-mobile-pad{display:grid!important;z-index:40!important}
  .mg-mobile-pad button{display:grid!important;place-items:center!important;min-width:68px!important;min-height:64px!important;font-size:28px!important;cursor:pointer!important;touch-action:none!important}
  .mg-canvas-wrap,.mg-canvas-wrap canvas{touch-action:none!important;-webkit-user-select:none!important;user-select:none!important}
}
html.mg-game-fullscreen-lock body{position:fixed!important;inset:0!important;width:100%!important;height:100%!important;overflow:hidden!important}
.mg-game-layout.mg-faux-fullscreen{position:fixed!important;inset:0!important;z-index:2147483000!important;width:100%!important;height:100%!important;max-width:none!important;margin:0!important;background:#070b18!important}

/* === v10 native-feel mobile controls / clean fullscreen === */
.mg-touch-hint{display:none}
@media (pointer:coarse),(hover:none){
  .mg-mobile-pad{display:none!important}
  .mg-canvas-wrap,.mg-canvas-wrap canvas{touch-action:none!important;-webkit-user-select:none!important;user-select:none!important}
  .mg-touch-hint{display:block;position:absolute;left:50%;bottom:14px;transform:translateX(-50%);z-index:8;padding:8px 12px;border-radius:999px;background:rgba(15,23,42,.72);color:#fff;font-size:12px;font-weight:800;pointer-events:none;backdrop-filter:blur(6px);transition:opacity .25s ease;white-space:nowrap}
  .mg-touch-hint.is-hidden{opacity:0}
}

@media (pointer:coarse),(hover:none){
  .mg-game-layout.mg-is-fullscreen,.mg-game-layout:fullscreen,.mg-game-layout:-webkit-full-screen,.mg-game-layout.mg-faux-fullscreen{
    position:fixed!important;inset:0!important;z-index:2147483000!important;width:100%!important;height:100%!important;display:block!important;background:#070b18!important;overflow:hidden!important;margin:0!important;padding:0!important;border-radius:0!important
  }
  .mg-game-layout.mg-is-fullscreen>.mg-panel:first-child,.mg-game-layout:fullscreen>.mg-panel:first-child,.mg-game-layout:-webkit-full-screen>.mg-panel:first-child,.mg-game-layout.mg-faux-fullscreen>.mg-panel:first-child{
    position:absolute!important;inset:0!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important
  }
  .mg-game-layout.mg-is-fullscreen .mg-canvas-wrap,.mg-game-layout:fullscreen .mg-canvas-wrap,.mg-game-layout:-webkit-full-screen .mg-canvas-wrap,.mg-game-layout.mg-faux-fullscreen .mg-canvas-wrap{
    position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;border-radius:0!important;background:#090d1f!important;overflow:hidden!important
  }
  .mg-game-layout.mg-is-fullscreen .mg-canvas-wrap canvas,.mg-game-layout:fullscreen .mg-canvas-wrap canvas,.mg-game-layout:-webkit-full-screen .mg-canvas-wrap canvas,.mg-game-layout.mg-faux-fullscreen .mg-canvas-wrap canvas{
    width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:fill!important;border-radius:0!important
  }
  .mg-game-layout.mg-is-fullscreen>.mg-side,.mg-game-layout:fullscreen>.mg-side,.mg-game-layout:-webkit-full-screen>.mg-side,.mg-game-layout.mg-faux-fullscreen>.mg-side{display:none!important}
  .mg-game-layout.mg-is-fullscreen .mg-controls,.mg-game-layout:fullscreen .mg-controls,.mg-game-layout:-webkit-full-screen .mg-controls,.mg-game-layout.mg-faux-fullscreen .mg-controls{
    position:absolute!important;top:max(8px,env(safe-area-inset-top))!important;right:max(8px,env(safe-area-inset-right))!important;z-index:50!important;display:flex!important;gap:6px!important;margin:0!important;padding:0!important;flex-wrap:nowrap!important;width:auto!important
  }
  .mg-game-layout.mg-is-fullscreen .mg-controls .mg-btn,.mg-game-layout:fullscreen .mg-controls .mg-btn,.mg-game-layout:-webkit-full-screen .mg-controls .mg-btn,.mg-game-layout.mg-faux-fullscreen .mg-controls .mg-btn{
    width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;margin:0!important;border-radius:12px!important;font-size:18px!important;line-height:1!important;display:grid!important;place-items:center!important;overflow:hidden!important;white-space:nowrap!important;background:rgba(255,255,255,.9)!important;color:#111827!important;box-shadow:0 4px 14px rgba(0,0,0,.25)!important
  }
  .mg-game-layout.mg-is-fullscreen .mg-controls .mg-fullscreen-btn,.mg-game-layout:fullscreen .mg-controls .mg-fullscreen-btn,.mg-game-layout:-webkit-full-screen .mg-controls .mg-fullscreen-btn,.mg-game-layout.mg-faux-fullscreen .mg-controls .mg-fullscreen-btn{background:rgba(15,23,42,.9)!important;color:#fff!important}
  .mg-game-layout.mg-is-fullscreen .mg-fs-hud,.mg-game-layout:fullscreen .mg-fs-hud,.mg-game-layout:-webkit-full-screen .mg-fs-hud,.mg-game-layout.mg-faux-fullscreen .mg-fs-hud{
    display:flex!important;position:absolute!important;top:max(8px,env(safe-area-inset-top))!important;left:max(8px,env(safe-area-inset-left))!important;z-index:49!important;gap:5px!important;max-width:calc(100% - 210px)!important
  }
  .mg-fs-hud-item{min-width:48px!important;padding:4px 7px!important;border-radius:10px!important;background:rgba(8,12,28,.76)!important;color:#fff!important;border:1px solid rgba(255,255,255,.14)!important;text-align:center!important}
  .mg-fs-hud-item span{display:block!important;font-size:8px!important;line-height:1!important;opacity:.75!important}.mg-fs-hud-item b{display:block!important;font-size:14px!important;line-height:1.15!important}
  .mg-game-layout.mg-is-fullscreen .mg-touch-hint,.mg-game-layout:fullscreen .mg-touch-hint,.mg-game-layout:-webkit-full-screen .mg-touch-hint,.mg-game-layout.mg-faux-fullscreen .mg-touch-hint{bottom:max(10px,env(safe-area-inset-bottom))!important;z-index:40!important}
  .mg-game-layout.mg-is-fullscreen .mg-overlay,.mg-game-layout:fullscreen .mg-overlay,.mg-game-layout:-webkit-full-screen .mg-overlay,.mg-game-layout.mg-faux-fullscreen .mg-overlay{padding:64px 14px 28px!important}
  .mg-game-layout.mg-is-fullscreen .memory-board,.mg-game-layout:fullscreen .memory-board,.mg-game-layout:-webkit-full-screen .memory-board,.mg-game-layout.mg-faux-fullscreen .memory-board{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;padding:58px 8px 12px!important;align-content:center!important}
}

@media (orientation:landscape) and (pointer:coarse),(orientation:landscape) and (hover:none){
  .mg-game-layout.mg-is-fullscreen .mg-canvas-wrap canvas,.mg-game-layout:fullscreen .mg-canvas-wrap canvas,.mg-game-layout:-webkit-full-screen .mg-canvas-wrap canvas,.mg-game-layout.mg-faux-fullscreen .mg-canvas-wrap canvas{object-fit:contain!important}
}

/* === v11 mobile/tablet game viewport: preserve game geometry, no stretching === */
@media (hover:none), (pointer:coarse){
  .mg-canvas-wrap{touch-action:none!important;overscroll-behavior:contain!important}
  .mg-canvas-wrap canvas{
    display:block!important;
    width:100%!important;
    height:auto!important;
    aspect-ratio:720/520!important;
    object-fit:contain!important;
    max-width:100%!important;
    max-height:none!important;
    margin:auto!important;
    image-rendering:auto!important;
  }
  .mg-touch-hint{font-size:11px!important;padding:6px 10px!important;bottom:8px!important}

  .mg-game-layout.mg-is-fullscreen,
  .mg-game-layout:fullscreen,
  .mg-game-layout:-webkit-full-screen,
  .mg-game-layout.mg-faux-fullscreen{
    position:fixed!important;inset:0!important;width:100%!important;height:100%!important;
    margin:0!important;padding:0!important;display:block!important;overflow:hidden!important;
    background:#050816!important;border-radius:0!important;z-index:2147483000!important
  }
  .mg-game-layout.mg-is-fullscreen>.mg-panel:first-child,
  .mg-game-layout:fullscreen>.mg-panel:first-child,
  .mg-game-layout:-webkit-full-screen>.mg-panel:first-child,
  .mg-game-layout.mg-faux-fullscreen>.mg-panel:first-child{
    position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
    margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
    background:#050816!important;box-shadow:none!important;overflow:hidden!important
  }
  .mg-game-layout.mg-is-fullscreen .mg-canvas-wrap,
  .mg-game-layout:fullscreen .mg-canvas-wrap,
  .mg-game-layout:-webkit-full-screen .mg-canvas-wrap,
  .mg-game-layout.mg-faux-fullscreen .mg-canvas-wrap{
    position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
    min-height:0!important;border-radius:0!important;background:#050816!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    padding:max(48px,env(safe-area-inset-top)) max(4px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left))!important
  }
  .mg-game-layout.mg-is-fullscreen .mg-canvas-wrap canvas,
  .mg-game-layout:fullscreen .mg-canvas-wrap canvas,
  .mg-game-layout:-webkit-full-screen .mg-canvas-wrap canvas,
  .mg-game-layout.mg-faux-fullscreen .mg-canvas-wrap canvas{
    position:relative!important;inset:auto!important;
    width:min(calc(100vw - 8px),calc((100dvh - 54px) * 1.384615))!important;
    height:auto!important;max-width:none!important;max-height:calc(100dvh - 54px)!important;
    aspect-ratio:720/520!important;object-fit:contain!important;border-radius:12px!important;
    box-shadow:0 12px 36px rgba(0,0,0,.26)!important
  }
  .mg-game-layout.mg-is-fullscreen>.mg-side,
  .mg-game-layout:fullscreen>.mg-side,
  .mg-game-layout:-webkit-full-screen>.mg-side,
  .mg-game-layout.mg-faux-fullscreen>.mg-side{display:none!important}

  /* One compact native-game top bar. */
  .mg-game-layout.mg-is-fullscreen .mg-fs-hud,
  .mg-game-layout:fullscreen .mg-fs-hud,
  .mg-game-layout:-webkit-full-screen .mg-fs-hud,
  .mg-game-layout.mg-faux-fullscreen .mg-fs-hud{
    position:absolute!important;top:max(5px,env(safe-area-inset-top))!important;left:max(6px,env(safe-area-inset-left))!important;
    z-index:80!important;display:flex!important;gap:4px!important;max-width:42vw!important;height:38px!important;overflow:hidden!important
  }
  .mg-game-layout.mg-is-fullscreen .mg-fs-hud-item,
  .mg-game-layout:fullscreen .mg-fs-hud-item,
  .mg-game-layout:-webkit-full-screen .mg-fs-hud-item,
  .mg-game-layout.mg-faux-fullscreen .mg-fs-hud-item{
    min-width:46px!important;height:36px!important;padding:3px 6px!important;border-radius:11px!important;
    background:rgba(8,13,30,.82)!important;border:1px solid rgba(255,255,255,.13)!important;backdrop-filter:blur(8px)!important
  }
  .mg-fs-hud-item:nth-child(n+4){display:none!important}
  .mg-fs-hud-item span{font-size:7px!important;line-height:1!important;white-space:nowrap!important}.mg-fs-hud-item b{font-size:13px!important;line-height:1.15!important;white-space:nowrap!important}

  .mg-game-layout.mg-is-fullscreen .mg-controls,
  .mg-game-layout:fullscreen .mg-controls,
  .mg-game-layout:-webkit-full-screen .mg-controls,
  .mg-game-layout.mg-faux-fullscreen .mg-controls{
    position:absolute!important;top:max(5px,env(safe-area-inset-top))!important;right:max(6px,env(safe-area-inset-right))!important;
    z-index:81!important;display:flex!important;gap:4px!important;margin:0!important;padding:0!important;flex-wrap:nowrap!important;width:auto!important
  }
  .mg-game-layout.mg-is-fullscreen .mg-controls .mg-btn,
  .mg-game-layout:fullscreen .mg-controls .mg-btn,
  .mg-game-layout:-webkit-full-screen .mg-controls .mg-btn,
  .mg-game-layout.mg-faux-fullscreen .mg-controls .mg-btn{
    width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;margin:0!important;
    border-radius:11px!important;font-size:16px!important;line-height:1!important;display:grid!important;place-items:center!important;
    overflow:hidden!important;white-space:nowrap!important;background:rgba(255,255,255,.92)!important;color:#111827!important;
    border:1px solid rgba(255,255,255,.35)!important;box-shadow:0 4px 12px rgba(0,0,0,.24)!important
  }
  .mg-game-layout.mg-is-fullscreen .mg-fullscreen-btn,
  .mg-game-layout:fullscreen .mg-fullscreen-btn,
  .mg-game-layout:-webkit-full-screen .mg-fullscreen-btn,
  .mg-game-layout.mg-faux-fullscreen .mg-fullscreen-btn{background:rgba(12,18,38,.92)!important;color:#fff!important}
  .mg-game-layout.mg-is-fullscreen .mg-overlay,
  .mg-game-layout:fullscreen .mg-overlay,
  .mg-game-layout:-webkit-full-screen .mg-overlay,
  .mg-game-layout.mg-faux-fullscreen .mg-overlay{padding:52px 12px 12px!important}
  .mg-game-layout.mg-is-fullscreen .mg-touch-hint,
  .mg-game-layout:fullscreen .mg-touch-hint,
  .mg-game-layout:-webkit-full-screen .mg-touch-hint,
  .mg-game-layout.mg-faux-fullscreen .mg-touch-hint{bottom:max(8px,env(safe-area-inset-bottom))!important}
}

@media (hover:none) and (orientation:landscape), (pointer:coarse) and (orientation:landscape){
  .mg-game-layout.mg-is-fullscreen .mg-canvas-wrap canvas,
  .mg-game-layout:fullscreen .mg-canvas-wrap canvas,
  .mg-game-layout:-webkit-full-screen .mg-canvas-wrap canvas,
  .mg-game-layout.mg-faux-fullscreen .mg-canvas-wrap canvas{
    width:min(calc(100vw - 8px),calc((100dvh - 48px) * 1.384615))!important;
    max-height:calc(100dvh - 48px)!important
  }
}

/* v12: Mobil mini oyun üst menüsü */
@media (max-width: 700px){
  .mg-top{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:12px;
    margin-bottom:16px;
  }
  .mg-brand{
    align-self:center;
    justify-content:center;
    width:100%;
  }
  .mg-brand img{
    height:auto;
    width:min(62vw,240px);
    max-width:240px;
    max-height:76px;
    object-fit:contain;
  }
  .mg-nav{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    width:100%;
    max-width:360px;
    margin:0 auto;
  }
  .mg-nav a{
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:0;
    min-height:44px;
    padding:9px 7px;
    border-radius:13px;
    font-size:12px;
    line-height:1.15;
    text-align:center;
    white-space:nowrap;
    box-shadow:0 3px 10px rgba(52,45,112,.05);
  }
}

@media (max-width: 380px){
  .mg-nav{gap:6px}
  .mg-nav a{font-size:11px;padding:8px 5px}
}

/* SEO bilgi alanı: oyun motorundan bağımsız, yalnızca içerik sunumu */
.mg-seo-info{margin-top:24px}
.mg-seo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.mg-seo-grid article{min-width:0}
.mg-seo-grid h2,.mg-seo-grid h3{margin:0 0 10px;color:var(--text)}
.mg-seo-grid h2{font-size:21px}.mg-seo-grid h3{font-size:18px}
.mg-seo-grid p{margin:0;color:var(--muted);line-height:1.7;font-size:14px}
@media(max-width:800px){.mg-seo-grid{grid-template-columns:1fr}.mg-seo-grid h2{font-size:20px}.mg-seo-grid h3{font-size:17px}}


/* === MINI OYUNLAR TAM GENISLIK BEYAZ HEADER === */
.mg-top{
  position:relative;
  z-index:2;
}
.mg-top::before{
  content:"";
  position:absolute;
  z-index:-1;
  top:-18px;
  bottom:-18px;
  left:50%;
  width:100vw;
  transform:translateX(-50%);
  background:#fff;
  border-bottom:1px solid #ececf4;
  box-shadow:0 5px 20px rgba(31,41,55,.05);
}
@media(max-width:560px){
  .mg-top::before{
    top:-12px;
    bottom:-12px;
  }
}






/* === HEADER ALT GERCEK BOSLUK === */
.mg-top{
  margin-bottom:36px!important; /* 18px beyaz uzanti + 18px gorunur bosluk */
}
@media(max-width:560px){
  .mg-top{
    margin-bottom:26px!important; /* 12px beyaz uzanti + 14px gorunur bosluk */
  }
}


/* === 10 MINI OYUN YENI KAPAK GORSELLERI === */
.mg-game-cover{
  display:block;
  width:100%;
  height:230px;
  object-fit:cover;
  object-position:center;
  border-radius:0;
}
.mg-feature-cover{
  display:block;
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  object-position:center;
  border-radius:18px;
  margin:0 0 18px;
}
@media(max-width:700px){
  .mg-game-cover{height:180px}
  .mg-feature-cover{border-radius:14px}
}
