/* ============================================================
   MORLUP — yeni görünüm (style.css, game.css ve oyun CSS'lerinden SONRA yüklenir)
   Gece (varsayılan) ve gündüz temasıyla çalışır.
   ============================================================ */
:root {
  --card: #14102b;
  --card-2: #1b1538;
  --soft: rgba(139, 92, 246, 0.16);
  --gold: #ffd966;
  --gold-ink: #2b1700;
  --gold-sh: #b8760c;
  --vio-ink: #160f33;
  --ok: #4abf8c;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}
:root[data-theme="light"] {
  --card: #ffffff;
  --card-2: #f3ecdc;
  --soft: rgba(109, 63, 216, 0.09);
  --gold: #ffcc33;
  --gold-sh: #c98a0e;
  --vio-ink: #ffffff;
  --ink-dim: #4c4670;
  --ink-faint: #6b6590;
  --shadow: 0 12px 28px rgba(60, 40, 110, 0.12);
}
body { font-family: "Manrope", -apple-system, "Segoe UI", sans-serif; }

/* ---------------- Üst menü ---------------- */
.nav .wrap { max-width: 1240px; height: 72px; gap: 20px; }
.nav-links { gap: 4px; }
.nav-links a { padding: 9px 15px; border-radius: 999px; font: 600 15px/1 "Fredoka", sans-serif; color: var(--ink-dim); transition: background 0.2s, color 0.2s; }
.nav-links a:hover { background: var(--soft); color: var(--ink); }
.nav-links a.current { background: var(--soft); color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(166, 123, 251, 0.35); }
.nav-tools a.icon-btn[href="/"] { display: none; }   /* logo zaten ana sayfaya gider */
.nav-tools .icon-btn { width: 44px; height: 44px; border: 1.5px solid var(--line); background: var(--card); }
/* tema düğmesi: emoji yerine çizim (gece: güneş → aç, gündüz: ay) */
#theme-toggle { font-size: 0; position: relative; }
#theme-toggle::before { content: ""; width: 21px; height: 21px; background: var(--gold); -webkit-mask: var(--ti) center / contain no-repeat; mask: var(--ti) center / contain no-repeat;
  --ti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4.5'/%3E%3Cpath d='M12 2v2.5M12 19.5V22M2 12h2.5M19.5 12H22M4.9 4.9l1.8 1.8M17.3 17.3l1.8 1.8M4.9 19.1l1.8-1.8M17.3 6.7l1.8-1.8'/%3E%3C/svg%3E"); }
:root[data-theme="light"] #theme-toggle::before { background: #b8760c;
  --ti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M20 14.5A8 8 0 0 1 9.5 4a8 8 0 1 0 10.5 10.5z'/%3E%3C/svg%3E"); }
/* dil düğmesi: bayrak + kısa kod */
.lang-switch #lang-toggle { width: auto; padding: 0 12px 0 7px; gap: 7px; border-radius: 999px; }
.lang-switch #lang-toggle .flag-ic { width: 26px; height: 26px; box-shadow: 0 0 0 2px var(--line); }
.ms-lcode { font: 800 13.5px "Manrope", sans-serif; color: var(--ink); letter-spacing: 0.02em; }
.lang-menu { background: var(--card); }

/* ---------------- Ortak parçalar ---------------- */
.btn { font-weight: 600; }
.btn-primary { color: var(--vio-ink); }
.ms-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; background: var(--c, #c4a6ff); color: #1a1033; font: 800 12.5px/1.2 "Manrope", sans-serif; white-space: nowrap; }
.ms-tag.ms-online { background: #4abf8c; color: #0b2a1d; }
.ms-tag.ms-online i { width: 7px; height: 7px; border-radius: 50%; background: #0b2a1d; animation: ms-blink 1.6s ease-in-out infinite; }
@keyframes ms-blink { 50% { opacity: 0.35; } }
.ms-emo { font-size: 46px; }
.ms-btn-gold { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 28px; border-radius: 18px; background: #ffd966; color: #2b1700; font: 600 21px "Fredoka", sans-serif; box-shadow: 0 6px 0 #b8760c; transition: transform 0.2s cubic-bezier(.34,1.56,.64,1); }
.ms-btn-gold svg { width: 20px; height: 20px; }

/* ---------------- Ana sayfa ---------------- */
.ms-home { padding: 34px 0 70px; }
.ms-home .wrap, footer .wrap { max-width: 1240px; }
.ms-home > .wrap { display: flex; flex-direction: column; gap: 60px; }

.ms-hero { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.ms-today { flex: 999 1 560px; min-width: 0; position: relative; display: flex; min-height: 480px; border-radius: 32px; overflow: hidden; border: 2px solid var(--gold); text-decoration: none; color: #fff; background: #160f33; box-shadow: var(--shadow); }
.ms-today-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.ms-today:hover .ms-today-img { transform: scale(1.04); }
.ms-today:hover .ms-btn-gold { transform: translateY(-3px); }
.ms-today-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,8,24,.95) 0%, rgba(11,8,24,.74) 42%, rgba(11,8,24,0) 78%); }
.ms-today-in { position: relative; align-self: flex-end; display: flex; flex-direction: column; gap: 14px; max-width: 470px; padding: 40px; }
.ms-pill-gold { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #ffd966; color: #2b1700; font: 800 13px "Manrope", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }
.ms-pill-gold svg { width: 16px; height: 16px; }
.ms-today h1 { margin: 0; font: 700 62px/1 "Fredoka", sans-serif; color: #fff; }
.ms-today-desc { font-size: 18px; line-height: 1.5; color: #ece7fd; }
.ms-today-act { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.ms-today-act small { font-size: 14px; color: #dcd5f7; }

.ms-side { flex: 1 1 390px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.ms-friends { flex: 1 1 auto; display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: 32px; background: var(--card); border: 2px solid var(--line); box-shadow: var(--shadow); }
.ms-fr-head { display: flex; align-items: center; gap: 12px; }
.ms-fr-ic { width: 48px; height: 48px; flex: none; border-radius: 16px; display: grid; place-items: center; background: #4abf8c; color: #0b2a1d; }
.ms-fr-ic svg { width: 26px; height: 26px; }
.ms-fr-head h2 { font-size: 25px; color: var(--ink); }
.ms-fr-head p { margin: 2px 0 0; font-size: 14px; color: var(--ink-dim); }
.ms-fr-games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ms-fr-game { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 190px; padding: 12px; border-radius: 22px; overflow: hidden; text-decoration: none; color: #fff; border: 2px solid transparent; transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), border-color 0.2s, box-shadow 0.25s; }
.ms-fr-game img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.ms-fr-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,8,24,.92) 10%, rgba(11,8,24,.25) 60%, rgba(11,8,24,0)); }
.ms-fr-game b { position: relative; font: 600 17px/1.15 "Fredoka", sans-serif; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.ms-fr-btn { position: relative; margin-top: 10px; display: flex; align-items: center; justify-content: center; height: 42px; border-radius: 13px; background: #8b5cf6; color: #fff; font: 600 16px "Fredoka", sans-serif; box-shadow: 0 4px 0 #5b2fc4; }
.ms-fr-game:hover { transform: translateY(-4px); border-color: #a67bfb; box-shadow: 0 14px 30px rgba(139, 92, 246, 0.35); }
.ms-fr-game:hover img { transform: scale(1.07); }
.ms-join { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 20px; background: var(--soft); }
.ms-join label { font: 600 15px "Fredoka", sans-serif; color: var(--ink); }
.ms-join-row { display: flex; gap: 8px; }
.ms-join input { flex: 1 1 auto; min-width: 0; height: 52px; box-sizing: border-box; padding: 0 12px; border-radius: 15px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: 600 22px "Fredoka", sans-serif; letter-spacing: 0.32em; text-align: center; text-transform: uppercase; outline: none; transition: border-color 0.2s; }
.ms-join input::placeholder { color: var(--ink-faint); letter-spacing: 0.2em; }
.ms-join input:focus { border-color: var(--gold); }
.ms-join button { height: 52px; padding: 0 22px; border: 0; border-radius: 15px; background: var(--gold); color: var(--gold-ink); font: 600 18px "Fredoka", sans-serif; cursor: pointer; box-shadow: 0 4px 0 var(--gold-sh); opacity: 0.6; transition: opacity 0.2s, transform 0.15s; }
.ms-join.ready button { opacity: 1; }
.ms-join button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--gold-sh); }
.ms-join.busy button { opacity: 0.5; pointer-events: none; }
.ms-join-msg { min-height: 18px; font-size: 13px; color: var(--ink-dim); }
.ms-join-msg:empty { min-height: 0; }

.ms-dice { display: flex; align-items: center; gap: 16px; width: 100%; padding: 12px 18px 12px 12px; border-radius: 26px; border: 2px dashed var(--gold); background: var(--card); color: var(--ink); cursor: pointer; text-align: left; font: inherit; transition: transform 0.2s cubic-bezier(.34,1.56,.64,1); }
.ms-dice:hover { transform: translateY(-3px); }
.ms-dice img { width: 62px; height: 62px; object-fit: contain; animation: ms-bob 3.2s ease-in-out infinite; }
@keyframes ms-bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-7px) rotate(3deg); } }
.ms-dice > span { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.ms-dice b { font: 600 20px "Fredoka", sans-serif; }
.ms-dice small { font-size: 14px; color: var(--ink-dim); }
.ms-dice > i { width: 50px; height: 50px; flex: none; border-radius: 15px; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); box-shadow: 0 4px 0 var(--gold-sh); }
.ms-dice > i svg { width: 26px; height: 26px; }
.ms-dice:hover > i { animation: ms-roll 0.6s ease; }
@keyframes ms-roll { 50% { transform: rotate(180deg) scale(1.1); } }

.ms-sec { display: flex; flex-direction: column; gap: 16px; }
.ms-sec[hidden] { display: none; }
.ms-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ms-sec-head h2 { font: 700 36px/1.1 "Fredoka", sans-serif; color: var(--ink); }
.ms-sec-head h2 em { font-style: normal; color: var(--violet-bright); }
.ms-sec-head > span { font-size: 14px; color: var(--ink-faint); }
.ms-sec-lead { margin: -6px 0 0; font-size: 16px; color: var(--ink-dim); }
.ms-more { font: 600 16px "Fredoka", sans-serif; color: var(--violet-bright); text-decoration: none; }
.ms-more:hover { text-decoration: underline; }

.ms-recents { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.ms-recent { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 22px; background: var(--card); border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), border-color 0.2s; }
.ms-recent:hover { transform: translateY(-4px); border-color: var(--violet); }
.ms-recent-cover { width: 96px; height: 62px; flex: none; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: var(--card-2); }
.ms-recent-cover img { width: 100%; height: 100%; object-fit: cover; }
.ms-recent-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ms-recent-t b { font: 600 17px "Fredoka", sans-serif; }
.ms-recent-t small { font-size: 13px; color: var(--ink-dim); }
.ms-recent-go { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: var(--vio-ink); }
.ms-recent-go svg { width: 16px; height: 16px; }

.ms-swipe { display: none; align-items: center; gap: 6px; font: 600 13px "Manrope", sans-serif; color: var(--ink-faint); }
.ms-swipe svg { width: 18px; height: 18px; animation: ms-nudge 1.6s ease-in-out infinite; }
@keyframes ms-nudge { 50% { transform: translateX(5px); } }
.ms-chips-wrap { position: relative; }
.ms-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.ms-chip { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 600 15px "Fredoka", sans-serif; cursor: pointer; white-space: nowrap; transition: background 0.2s, border-color 0.2s, transform 0.15s, color 0.2s; }
.ms-chip:hover { transform: translateY(-2px); border-color: var(--violet); }
.ms-chip i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.ms-chip em { font-style: normal; min-width: 22px; padding: 2px 7px; border-radius: 999px; background: rgba(0, 0, 0, 0.18); font-size: 12px; text-align: center; }
.ms-chip.on { background: var(--violet); border-color: var(--violet); color: var(--vio-ink); }
.ms-chip.on i { box-shadow: 0 0 0 2px #fff; }
.ms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.ms-card { display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; background: var(--card); border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s, border-color 0.2s; animation: ms-in 0.4s ease both; }
@keyframes ms-in { from { opacity: 0; transform: translateY(10px); } }
.ms-card:hover { transform: translateY(-6px); border-color: var(--violet); box-shadow: 0 18px 40px rgba(109, 63, 216, 0.28); }
.ms-card-cover { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #2a1a5c, #4c2f8c); }
.ms-card-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ms-card:hover .ms-card-cover img { transform: scale(1.06); }
.ms-card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 18px 18px; }
.ms-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ms-card-body b { font: 600 21px/1.15 "Fredoka", sans-serif; }
.ms-card-desc { font-size: 14.5px; line-height: 1.45; color: var(--ink-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ms-allbtn { display: none; }

.ms-our { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.ms-our-main { flex: 999 1 560px; min-width: 0; }
.ms-our .game-card { height: 100%; box-sizing: border-box; }
.ms-soon { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 26px; background: var(--card); border: 2px dashed var(--line); text-decoration: none; color: var(--ink); transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), border-color 0.2s; }
.ms-soon:hover { transform: translateY(-4px); border-color: #ffb347; }
.ms-soon img { width: 84px; height: 84px; border-radius: 22px; box-shadow: var(--shadow); }
.ms-soon .ms-tag { align-self: flex-start; }
.ms-soon b { font: 700 26px "Fredoka", sans-serif; }
.ms-soon > span:not(.ms-tag) { font-size: 15px; line-height: 1.5; color: var(--ink-dim); }
.ms-soon em { margin-top: auto; font: 600 16px "Fredoka", sans-serif; font-style: normal; color: var(--violet-bright); }

/* haberler: kart görünümü (ana sayfa + /news) */
.news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.news-item { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; border: 1.5px solid var(--line) !important; border-radius: 24px; background: var(--card); transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), border-color 0.2s; }
.news-item:first-child { padding-top: 22px; }
.news-item:hover { transform: translateY(-4px); border-color: var(--violet) !important; }
.news-date { align-self: flex-start; padding: 4px 11px; border-radius: 999px; background: var(--soft); color: var(--violet-bright); font: 800 12.5px "Manrope", sans-serif; }
.news-item h3 { font: 600 20px/1.2 "Fredoka", sans-serif; margin: 0 0 6px; }
.news-item p { font-size: 15px; line-height: 1.55; color: var(--ink-dim); }
.news-item a { color: var(--violet-bright); font-weight: 600; }

/* ---------------- Diğer sayfalar: aynı kart dili ---------------- */
.section { border-top: 0; }
.section-head h2 { font: 700 40px/1.1 "Fredoka", sans-serif; }
.game-card { background: var(--card); border: 1.5px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.game-card:hover { border-color: var(--violet); }
.play-card { background: var(--card); border: 1.5px solid var(--line); border-radius: 26px; }
.play-card:hover { border-color: var(--violet); }
.play-tags .play-tag { background: #4abf8c; color: #0b2a1d; font-weight: 800; }
.play-tags .badge { background: #ffd966; color: #2b1700; border-color: transparent; font-weight: 800; }
.play-cat { border-radius: 999px; }
.play-cat.active { background: var(--violet); border-color: var(--violet); color: var(--vio-ink); }
.mystery-card { background: var(--card); border-radius: 22px; }
.legal { max-width: 760px; }
.legal h1 { font: 700 44px/1.1 "Fredoka", sans-serif; }
.legal h2 { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal p, .legal li { font-size: 16px; line-height: 1.7; }
.legal .ms-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 30px; }
.legal .ms-toc a { padding: 7px 13px; border-radius: 999px; background: var(--soft); color: var(--ink); text-decoration: none; font: 600 14px "Fredoka", sans-serif; }
.legal .ms-toc a:hover { background: var(--violet); color: var(--vio-ink); }
.ms-contact { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding: 18px 20px; border-radius: 20px; background: var(--card); border: 1.5px solid var(--line); }
.ms-contact a { color: var(--ink) !important; font: 600 17px "Fredoka", sans-serif; text-decoration: none; }

/* ---------------- Alt bilgi ---------------- */
footer.ms-foot { padding: 0; background: var(--card); border-top: 1px solid var(--line); }
.ms-foot-in { display: flex !important; flex-wrap: wrap; gap: 36px; justify-content: space-between !important; align-items: flex-start !important; padding-top: 40px; padding-bottom: 24px; }
.ms-foot-brand { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; }
.ms-foot-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.ms-foot-logo img { width: 42px; height: 42px; border-radius: 12px; }
.ms-foot-logo b { font: 600 21px "Fredoka", sans-serif; }
.ms-foot-brand p { margin: 0; max-width: 320px; font-size: 14.5px; line-height: 1.55; color: var(--ink-dim); }
.ms-mail { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px; background: var(--soft); color: var(--ink); text-decoration: none; font: 600 15px "Fredoka", sans-serif; }
.ms-mail svg { width: 18px; height: 18px; }
.ms-mail:hover { background: var(--violet); color: var(--vio-ink); }
.ms-foot-col { display: flex; flex-direction: column; gap: 10px; min-width: 150px; }
.ms-foot-col b { font: 600 16px "Fredoka", sans-serif; color: var(--ink); }
.ms-foot-col a { color: var(--ink-dim); text-decoration: none; font-size: 15px; }
.ms-foot-col a:hover { color: var(--ink); }
.ms-foot-copy { display: block !important; padding-bottom: 26px; font-size: 13px; color: var(--ink-faint); }

/* ---------------- Rastgele oyun penceresi ---------------- */
.ms-pop-wrap { position: fixed; inset: 0; z-index: 3500; }
.ms-pop-bg { position: absolute; inset: 0; border: 0; background: rgba(6, 4, 16, 0.5); cursor: default; animation: ms-fade 0.2s ease; }
@keyframes ms-fade { from { opacity: 0; } }
.ms-pop { position: absolute; left: 50%; top: 50%; width: min(420px, calc(100vw - 28px)); transform: translate(-50%, -50%); border-radius: 26px; overflow: hidden; background: var(--card); border: 2px solid var(--gold); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5); animation: ms-pop 0.4s cubic-bezier(.34,1.56,.64,1); }
@keyframes ms-pop { from { opacity: 0; transform: translate(-50%, -42%) scale(0.95); } }
.ms-pop-wrap.at-tabs .ms-pop { top: auto; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); animation-name: ms-pop2; }
@keyframes ms-pop2 { from { opacity: 0; transform: translate(-50%, 16px) scale(0.96); } }
.ms-pop-cover { display: grid; place-items: center; height: 180px; background: #2a1a5c; }
.ms-pop-cover img { width: 100%; height: 100%; object-fit: cover; }
.ms-pop-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.ms-pop-wolf { width: 46px; height: 46px; object-fit: contain; }
.ms-pop-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ms-pop-t small { font-size: 12.5px; color: var(--ink-dim); }
.ms-pop-t b { font: 600 19px/1.15 "Fredoka", sans-serif; color: var(--ink); }
.ms-pop-again { width: 46px; height: 46px; flex: none; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card-2); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.ms-pop-again svg { width: 20px; height: 20px; }
.ms-pop-again:hover svg { animation: ms-roll 0.5s ease; }
.ms-pop-go { display: inline-flex; align-items: center; height: 46px; padding: 0 18px; border-radius: 14px; background: var(--gold); color: var(--gold-ink); text-decoration: none; font: 600 16px "Fredoka", sans-serif; box-shadow: 0 4px 0 var(--gold-sh); }

/* ---------------- Telefon: alt sekmeler + menü paneli ---------------- */
.ms-tabbar { display: none; }
.ms-sheet-wrap { position: fixed; inset: 0; z-index: 3600; }
.ms-sheet { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 14px; padding: 12px 16px calc(22px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: var(--card); border-top: 1.5px solid var(--line); box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.35); animation: ms-sheet 0.35s cubic-bezier(.2,.9,.3,1); }
@keyframes ms-sheet { from { transform: translateY(100%); } }
.ms-grab { align-self: center; width: 44px; height: 5px; border-radius: 99px; background: var(--line); }
.ms-sheet-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ms-sheet-links a, .ms-sheet-links button { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border: 0; border-radius: 16px; background: var(--soft); color: var(--ink); text-decoration: none; text-align: left; font: 600 15px "Fredoka", sans-serif; cursor: pointer; }
.ms-sheet-links svg { width: 22px; height: 22px; flex: none; color: var(--violet-bright); }
.ms-moon, .ms-lock, .ms-themeic { width: 22px; height: 22px; flex: none; background: var(--violet-bright); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ms-moon { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M20 14.5A8 8 0 0 1 9.5 4a8 8 0 1 0 10.5 10.5z'/%3E%3C/svg%3E"); }
.ms-lock { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='3'/%3E%3Cpath d='M8 10.5V8a4 4 0 0 1 8 0v2.5'/%3E%3C/svg%3E"); }
.ms-themeic { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4.5'/%3E%3Cpath d='M12 2v2.5M12 19.5V22M2 12h2.5M19.5 12H22M4.9 4.9l1.8 1.8M17.3 17.3l1.8 1.8M4.9 19.1l1.8-1.8M17.3 6.7l1.8-1.8'/%3E%3C/svg%3E"); }
.ms-sheet-h { font: 600 15px "Fredoka", sans-serif; color: var(--ink); }
.ms-sheet-langs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ms-sl { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 9px 2px; border: 0; border-radius: 14px; background: transparent; color: var(--ink); font: 800 12px "Manrope", sans-serif; cursor: pointer; }
.ms-sl .flag-ic { width: 34px; height: 34px; box-shadow: 0 0 0 2px var(--line); }
.ms-sl.on { background: var(--soft); box-shadow: inset 0 0 0 2px var(--violet); }

@media (max-width: 760px) {
  body.ms-has-tabs { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  body.ms-has-tabs .nav-toggle, body.ms-has-tabs .nav-links { display: none !important; }
  .ms-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3000; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; height: calc(80px + env(safe-area-inset-bottom)); box-sizing: border-box; padding: 6px 6px calc(10px + env(safe-area-inset-bottom)); background: var(--nav-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .ms-tab { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; color: var(--ink-dim); text-decoration: none; font: 600 12px "Fredoka", sans-serif; cursor: pointer; }
  .ms-tab svg { width: 25px; height: 25px; }
  .ms-tab.on { color: var(--violet-bright); }
  .ms-tab-dice { color: var(--ink); }
  .ms-tab-dice i { width: 58px; height: 58px; margin-top: -24px; border-radius: 19px; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); box-shadow: 0 5px 0 var(--gold-sh), 0 8px 20px rgba(0, 0, 0, 0.3); }
  .ms-tab-dice i svg { width: 30px; height: 30px; }
  .ms-tab-dice:active i { transform: translateY(3px); box-shadow: 0 2px 0 var(--gold-sh); }
  /* telefonda menüyü alttaki sekmeler taşır; çerez bandı sekmelerin üstünde dursun */
  body.ms-has-tabs .cookie-banner, body.ms-has-tabs .update-banner { bottom: calc(96px + env(safe-area-inset-bottom)); }
  body.ms-has-tabs .egg-moon { bottom: calc(100px + env(safe-area-inset-bottom)) !important; }

  .nav .wrap { height: 64px; }
  .ms-home { padding-top: 16px; }
  .ms-home > .wrap { gap: 40px; padding: 0 16px; }
  .ms-today { min-height: 340px; border-radius: 26px; }
  .ms-today-img { object-position: 72% center; }
  .ms-today-shade { background: linear-gradient(0deg, rgba(11,8,24,.96) 10%, rgba(11,8,24,.35) 60%, rgba(11,8,24,0)); }
  .ms-today-in { padding: 20px; gap: 10px; }
  .ms-today h1 { font-size: 36px; }
  .ms-today-desc { font-size: 15px; }
  .ms-btn-gold { height: 50px; padding: 0 22px; font-size: 18px; }
  .ms-friends { padding: 16px; border-radius: 26px; }
  .ms-fr-game { min-height: 150px; padding: 10px; border-radius: 18px; }
  .ms-fr-game b { font-size: 15px; }
  .ms-fr-btn { height: 38px; font-size: 14.5px; }
  .ms-dice { display: none; }   /* telefonda zar alttaki sekmede */
  .ms-sec-head h2 { font-size: 27px; }
  .ms-sec-head .ms-more { display: none; }
  .ms-swipe { display: flex; margin-top: -4px; }
  /* kategoriler ve oyunlar: yana kayan şerit (sayfa kısa kalsın, aşağıdakiler görünsün) */
  .ms-chips-wrap { margin: 0 -16px; }
  .ms-chips-wrap::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 46px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--bg)); }
  .ms-chips { flex-wrap: nowrap; overflow-x: auto; padding: 2px 46px 4px 16px; scrollbar-width: none; }
  .ms-chips::-webkit-scrollbar, .ms-grid::-webkit-scrollbar { display: none; }
  .ms-chip { height: 42px; font-size: 14px; }
  .ms-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; grid-template-columns: none; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
  .ms-card { scroll-snap-align: start; border-radius: 22px; }
  .ms-card-body { padding: 12px 14px 14px; }
  .ms-card-body b { font-size: 18px; }
  .ms-allbtn { display: flex; align-items: center; justify-content: center; height: 50px; border-radius: 16px; background: var(--soft); color: var(--ink); text-decoration: none; font: 600 16px "Fredoka", sans-serif; }
  .ms-our .game-card { padding: 22px; }
  .news-list { grid-template-columns: 1fr; }
  .ms-recents { grid-template-columns: 1fr; }
  .ms-foot-in { gap: 26px; padding-top: 30px; }
  .ms-foot-col { min-width: 130px; }
  .section-head h2 { font-size: 30px; }
  .legal h1 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .ms-dice img, .ms-swipe svg, .ms-tag.ms-online i, .ms-card { animation: none !important; }
}

/* Arkadaşlarla oyna: kapak üstte, ad ve "Oda kur" altta (okunaklı) */
.ms-fr-game { justify-content: flex-start; min-height: 0; padding: 0; background: var(--card-2); color: var(--ink); border: 1.5px solid var(--line); border-radius: 20px; }
.ms-fr-game img { position: static; display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; }
.ms-fr-shade { display: none; }
.ms-fr-game b { padding: 10px 12px 0; font-size: 16.5px; text-shadow: none; color: var(--ink); }
.ms-fr-btn { margin: 8px 12px 12px; }
@media (max-width: 760px) { .ms-fr-game { min-height: 0; padding: 0; } .ms-fr-game b { font-size: 14.5px; padding: 8px 10px 0; } .ms-fr-btn { margin: 6px 10px 10px; } }
/* /play kartlarındaki kategori etiketi: nötr ama okunaklı */
.play-tags .play-tag { background: var(--soft); color: var(--ink); font-weight: 800; }

/* ======================= 2026-10 ikinci tur ======================= */
/* "Yeni sürüm yayınlandı" bandı kapalı */
.update-banner { display: none !important; }

/* ---- Ana sayfa: öne çıkanlar + "hepsine göz at" kartı ---- */
.ms-feat { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1020px) and (min-width: 761px) { .ms-feat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ms-more-card { position: relative; align-items: center; justify-content: center; gap: 6px; padding: 26px 18px; text-align: center; background: linear-gradient(150deg, var(--violet), #3b2390); border-color: transparent; color: #fff; min-height: 240px; }
.ms-more-card b { font: 600 26px/1.1 "Fredoka", sans-serif; }
.ms-more-card > span:last-child { font: 600 15px "Fredoka", sans-serif; opacity: 0.85; }
.ms-stack { position: relative; display: block; width: 190px; height: 104px; margin-bottom: 10px; }
.ms-stack span { position: absolute; top: 8px; left: calc(var(--i) * 38px); width: 74px; height: 74px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; font-size: 34px; background: #2a1a5c; border: 3px solid #fff; box-shadow: 0 8px 18px rgba(0,0,0,0.35); transform: rotate(calc((var(--i) - 1.5) * 8deg)); transition: transform 0.35s cubic-bezier(.34,1.56,.64,1); }
.ms-stack span img { width: 100%; height: 100%; object-fit: cover; }
.ms-more-card:hover .ms-stack span { transform: rotate(calc((var(--i) - 1.5) * 14deg)) translateY(-8px); }
.ms-more-card:hover { box-shadow: 0 18px 40px rgba(109, 63, 216, 0.45); }
.ms-card-play { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); box-shadow: 0 4px 0 var(--gold-sh); transform: scale(0.6); opacity: 0; transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), opacity 0.2s; }
.ms-card-play svg { width: 20px; height: 20px; margin-left: 2px; }
.ms-card:hover .ms-card-play { transform: scale(1); opacity: 1; }
@media (max-width: 760px) {
  .ms-feat { grid-auto-columns: 70%; }
  .ms-more-card { min-height: 0; }
  .ms-card-play { opacity: 1; transform: scale(0.85); }
}

/* ---- /play: arama, tür, sıralama ---- */
.ms-pl-bar { display: flex !important; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 6px 0 18px; padding: 14px; border-radius: 24px; background: var(--card); border: 1.5px solid var(--line); position: sticky; top: 78px; z-index: 20; box-shadow: var(--shadow); }
.ms-pl-search { flex: 1 1 280px; position: relative; display: flex; align-items: center; }
.ms-pl-search svg { position: absolute; left: 16px; width: 22px; height: 22px; color: var(--ink-dim); pointer-events: none; }
.ms-pl-search input { width: 100%; height: 54px; box-sizing: border-box; padding: 0 16px 0 50px; border-radius: 18px; border: 2px solid var(--line); background: var(--card-2); color: var(--ink); font: 600 17px "Fredoka", sans-serif; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.ms-pl-search input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(155, 109, 255, 0.2); }
.ms-pl-search input::placeholder { color: var(--ink-faint); }
.ms-pl-sel { flex: 0 1 200px; display: flex; flex-direction: column; gap: 5px; }
.ms-pl-sel span { font: 800 12px "Manrope", sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-dim); padding-left: 6px; }
.ms-pl-sel select { height: 54px; padding: 0 40px 0 14px; border-radius: 18px; border: 2px solid var(--line); color: var(--ink); font: 600 16px "Fredoka", sans-serif; cursor: pointer; outline: none; appearance: none; -webkit-appearance: none;
  background: var(--card-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b6dff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; }
.ms-pl-sel select:focus { border-color: var(--violet); }
.ms-pl-sel select option { background: var(--card); color: var(--ink); }
.ms-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ms-pl { display: block !important; }
.ms-pl-count { margin: 0 0 12px 4px; font: 600 15px "Fredoka", sans-serif; color: var(--ink-dim); }
.ms-grid-all { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ms-pl-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 20px; text-align: center; border-radius: 26px; background: var(--card); border: 1.5px dashed var(--line); }
.ms-pl-empty img { width: 130px; height: 130px; object-fit: contain; animation: ms-wobble 2.4s ease-in-out infinite; }
@keyframes ms-wobble { 50% { transform: rotate(-6deg) translateY(-4px); } }
.ms-pl-empty b { font: 600 21px "Fredoka", sans-serif; color: var(--ink); }
.ms-pl-empty span { color: var(--ink-dim); }
.ms-pl-empty button { margin-top: 8px; height: 46px; padding: 0 22px; border: 0; border-radius: 14px; background: var(--gold); color: var(--gold-ink); font: 600 16px "Fredoka", sans-serif; box-shadow: 0 4px 0 var(--gold-sh); cursor: pointer; }
@media (max-width: 760px) {
  .ms-pl-bar { top: 64px; padding: 10px; gap: 8px; border-radius: 20px; }
  .ms-pl-search { flex-basis: 100%; }
  .ms-pl-search input, .ms-pl-sel select { height: 48px; font-size: 15.5px; }
  .ms-pl-sel { flex: 1 1 0; min-width: 0; }
  .ms-pl-sel span { display: none; }
  .ms-grid-all { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; gap: 10px; }
  .ms-grid-all .ms-card-desc { display: none; }
  .ms-grid-all .ms-card-body { padding: 10px 11px 12px; gap: 6px; }
  .ms-grid-all .ms-card-body b { font-size: 15.5px; }
  .ms-grid-all .ms-tag { font-size: 11px; }
}

/* ---- Haberler: fotoğraflı kartlar ---- */
.news-list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.ms-news-card { padding: 0 !important; overflow: hidden; gap: 0; position: relative; }
.ms-news-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(circle at 30% 20%, #6d3fd8, #241552 70%); }
.ms-news-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.ms-news-card.contain .ms-news-img img { object-fit: contain; padding: 16px; box-sizing: border-box; filter: drop-shadow(0 10px 18px rgba(0,0,0,0.35)); }
.ms-news-card:hover .ms-news-img img { transform: scale(1.06) rotate(-1deg); }
.ms-news-emo { position: absolute; z-index: 2; left: 14px; bottom: -22px; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: var(--card); border: 2px solid var(--line); box-shadow: 0 8px 18px rgba(0,0,0,0.25); transform: rotate(-8deg); transition: transform 0.3s cubic-bezier(.34,1.56,.64,1); }
.ms-news-card:hover .ms-news-emo { transform: rotate(8deg) scale(1.1); }
.ms-news-img:has(.ms-news-emo) { overflow: visible; }
.ms-news-img:has(.ms-news-emo) img { border-radius: 22px 22px 0 0; }
.ms-news-body { display: flex; flex-direction: column; gap: 8px; padding: 32px 22px 22px; }
.ms-news-body .news-date { align-self: flex-end; margin-top: -22px; background: var(--gold); color: var(--gold-ink); }
.ms-news-body h3 { margin: 2px 0 0; }
.ms-news-body p { margin: 0; }
/* Haberler sayfasında ilk haber geniş ve büyük */
@media (min-width: 900px) {
  #news-full .ms-news-card:first-child { grid-column: 1 / -1; flex-direction: row; }
  #news-full .ms-news-card:first-child .ms-news-img { flex: 0 0 52%; aspect-ratio: auto; min-height: 300px; }
  #news-full .ms-news-card:first-child .ms-news-img img { border-radius: 22px 0 0 22px; }
  #news-full .ms-news-card:first-child .ms-news-emo { left: auto; right: -24px; bottom: 24px; }
  #news-full .ms-news-card:first-child .ms-news-body { justify-content: center; padding: 30px 34px 30px 44px; }
  #news-full .ms-news-card:first-child .news-date { align-self: flex-start; margin-top: 0; }
  #news-full .ms-news-card:first-child h3 { font-size: 30px; }
  #news-full .ms-news-card:first-child p { font-size: 16.5px; }
}

/* ---- Gizlilik ---- */
.legal.ms-priv { max-width: 1120px; }
.ms-priv-hero { display: flex; gap: 22px; align-items: center; padding: 26px 28px; margin: 10px 0 26px; border-radius: 28px; background: linear-gradient(135deg, rgba(155,109,255,0.22), rgba(155,109,255,0.06)); border: 1.5px solid var(--line); }
.ms-priv-hero img { width: 120px; height: 120px; object-fit: contain; flex: none; }
.ms-priv-hero h1 { margin: 0 0 4px; }
.ms-priv-hero .updated { display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px; background: var(--soft); font: 700 13px "Manrope", sans-serif; color: var(--violet-bright); }
.ms-priv-hero p:last-child { margin: 0; color: var(--ink-dim); }
.ms-priv-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 30px; align-items: start; }
.ms-toc-wrap { position: sticky; top: 92px; }
.legal .ms-toc { display: block; margin: 0; padding: 10px; border-radius: 24px; background: var(--card); border: 1.5px solid var(--line); }
.ms-toc-h { list-style: none; cursor: pointer; padding: 8px 10px 10px; font: 800 12.5px "Manrope", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); }
.ms-toc-h::-webkit-details-marker { display: none; }
.legal .ms-toc nav { display: flex; flex-direction: column; gap: 2px; }
.legal .ms-toc a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; background: none; color: var(--ink-dim); text-decoration: none; font: 600 15px/1.25 "Fredoka", sans-serif; transition: background 0.2s, color 0.2s, transform 0.2s; }
.legal .ms-toc a i { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--soft); font-style: normal; font-size: 16px; }
.legal .ms-toc a:hover { background: var(--soft); color: var(--ink); transform: translateX(3px); }
.legal .ms-toc a.on { background: var(--violet); color: var(--vio-ink); }
.legal .ms-toc a.on i { background: rgba(255,255,255,0.22); }
.ms-priv-body { display: flex; flex-direction: column; gap: 16px; }
.ms-psec { scroll-margin-top: 96px; padding: 24px 26px; border-radius: 24px; background: var(--card); border: 1.5px solid var(--line); }
.legal .ms-psec h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; padding: 0; border: 0; font: 600 23px/1.2 "Fredoka", sans-serif; }
.ms-psec-ic { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--soft); font-size: 22px; }
.ms-psec p:last-child, .ms-psec ul:last-child { margin-bottom: 0; }
.ms-psec a { color: var(--violet-bright); }
a.ms-contact { display: inline-flex; width: auto; text-decoration: none; color: var(--ink); font: 600 18px "Fredoka", sans-serif; background: var(--soft); border-color: transparent; transition: transform 0.2s, background 0.2s; }
a.ms-contact:hover { transform: translateY(-2px); background: var(--violet); color: var(--vio-ink); }
@media (max-width: 900px) {
  .ms-priv-grid { grid-template-columns: 1fr; gap: 16px; }
  .ms-toc-wrap { position: static; }
  .ms-toc-h { display: flex; align-items: center; justify-content: space-between; font-size: 14px; padding: 8px 10px; }
  .ms-toc-h::after { content: "▾"; font-size: 18px; transition: transform 0.2s; }
  details.ms-toc[open] .ms-toc-h::after { transform: rotate(180deg); }
  .ms-priv-hero { flex-direction: column; text-align: center; padding: 22px 18px; }
  .ms-priv-hero img { width: 96px; height: 96px; }
  .ms-psec { padding: 18px 18px; }
  .legal .ms-psec h2 { font-size: 20px; }
  .ms-psec-ic { width: 38px; height: 38px; font-size: 19px; }
}

/* ---- Rastgele oyun penceresi ---- */
.ms-pop { border: 0; background: var(--card); box-shadow: 0 0 0 2px var(--gold), 0 30px 60px rgba(0, 0, 0, 0.55); }
.ms-pop.again { animation: ms-shake 0.5s cubic-bezier(.34,1.56,.64,1); }
@keyframes ms-shake { 0% { transform: translate(-50%, -50%) rotate(0); } 25% { transform: translate(-50%, -50%) rotate(-3deg) scale(0.97); } 60% { transform: translate(-50%, -50%) rotate(2deg) scale(1.02); } 100% { transform: translate(-50%, -50%) rotate(0); } }
.ms-pop-wrap.at-tabs .ms-pop.again { animation-name: ms-shake2; }
@keyframes ms-shake2 { 25% { transform: translateX(-50%) rotate(-3deg) scale(0.97); } 60% { transform: translateX(-50%) rotate(2deg) scale(1.02); } }
.ms-pop-head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; background: var(--gold); color: var(--gold-ink); }
.ms-pop-head img { width: 44px; height: 44px; object-fit: contain; margin: -10px 0 -6px; filter: drop-shadow(0 3px 4px rgba(0,0,0,0.25)); animation: ms-wobble 2s ease-in-out infinite; }
.ms-pop-head span { flex: 1 1 auto; font: 700 21px "Fredoka", sans-serif; }
.ms-pop-x { flex: none; width: 40px; height: 40px; border: 0; border-radius: 12px; display: grid; place-items: center; background: rgba(0,0,0,0.12); color: var(--gold-ink); cursor: pointer; transition: background 0.2s, transform 0.2s; }
.ms-pop-x svg { width: 20px; height: 20px; }
.ms-pop-x:hover { background: rgba(0,0,0,0.22); transform: rotate(90deg); }
.ms-pop-cover { position: relative; height: auto; aspect-ratio: 16 / 9; overflow: hidden; }
.ms-pop-cover img { animation: ms-zoom 0.6s ease both; }
@keyframes ms-zoom { from { transform: scale(1.15); filter: saturate(0.4); } }
.ms-pop-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px 16px; }
.ms-pop-body b { font: 600 26px/1.1 "Fredoka", sans-serif; color: var(--ink); }
.ms-pop-body p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ms-pop-acts { display: flex; gap: 10px; width: 100%; margin-top: 10px; }
.ms-pop-acts .ms-pop-again, .ms-pop-acts .ms-pop-go { flex: 1 1 0; height: 52px; width: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; border-radius: 16px; font: 600 16.5px "Fredoka", sans-serif; white-space: nowrap; }
.ms-pop-acts .ms-pop-again { border: 2px solid var(--line); background: var(--card-2); color: var(--ink); box-shadow: 0 4px 0 var(--line); }
.ms-pop-acts .ms-pop-again svg { width: 22px; height: 22px; }
.ms-pop-acts .ms-pop-again:hover svg { animation: ms-roll 0.5s ease; }
.ms-pop-acts .ms-pop-again:active, .ms-pop-acts .ms-pop-go:active { transform: translateY(3px); box-shadow: none; }
.ms-pop-acts .ms-pop-go svg { width: 18px; height: 18px; }
@media (max-width: 380px) { .ms-pop-acts .ms-pop-again, .ms-pop-acts .ms-pop-go { font-size: 15px; } .ms-pop-body b { font-size: 22px; } }

/* ---- Alt bilgi ---- */
.ms-foot-in { align-items: stretch !important; gap: 28px; }
.ms-foot-brand { flex: 1 1 380px; gap: 14px; }
.ms-foot-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ms-foot-pills a { padding: 8px 14px; border-radius: 999px; background: var(--soft); color: var(--ink); text-decoration: none; font: 600 15px "Fredoka", sans-serif; transition: background 0.2s, color 0.2s, transform 0.2s; }
.ms-foot-pills a:hover { background: var(--violet); color: var(--vio-ink); transform: translateY(-2px); }
.ms-foot-mail { flex: 1 1 360px; max-width: 480px; display: flex; gap: 16px; align-items: center; padding: 20px 22px; border-radius: 26px; background: linear-gradient(135deg, rgba(155,109,255,0.24), rgba(155,109,255,0.08)); border: 1.5px solid var(--line); }
.ms-foot-mail > img { width: 86px; height: 86px; object-fit: contain; flex: none; transition: transform 0.3s cubic-bezier(.34,1.56,.64,1); }
.ms-foot-mail:hover > img { transform: rotate(-8deg) scale(1.08); }
.ms-foot-mail b { display: block; font: 600 22px "Fredoka", sans-serif; color: var(--ink); }
.ms-foot-mail p { margin: 4px 0 12px; font-size: 14px; line-height: 1.45; color: var(--ink-dim); }
.ms-foot-mail .ms-mail { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 14px; background: var(--gold); color: var(--gold-ink) !important; text-decoration: none; font: 600 16.5px "Fredoka", sans-serif; box-shadow: 0 4px 0 var(--gold-sh); }
.ms-foot-mail .ms-mail svg { width: 20px; height: 20px; }
.ms-foot-mail .ms-mail:active { transform: translateY(3px); box-shadow: none; }
.ms-foot-copy { display: flex !important; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .ms-foot-mail { max-width: none; padding: 16px; }
  .ms-foot-mail > img { width: 64px; height: 64px; }
  .ms-foot-mail b { font-size: 19px; }
  .ms-foot-copy { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .ms-pop.again, .ms-pop-head img, .ms-pl-empty img, .ms-pop-cover img { animation: none !important; }
}
.news-list { align-items: start; }
.ms-news-img img { position: absolute; inset: 0; }
.ms-news-card.contain .ms-news-img img { padding: 14px 14px 18px; }
@media (min-width: 900px) { #news-full .ms-news-card:first-child .ms-news-img img { position: absolute; } }
@media (max-width: 760px) { .game-card > * { min-width: 0; max-width: 100%; } .game-card { overflow-wrap: anywhere; } }

/* ======================= 2026-10 üçüncü tur ======================= */
/* ---- Ana sayfa: Arkadaşlarla oyna kutuları eşit ---- */
.ms-fr-games { flex: 1 1 auto; align-items: stretch; }
.ms-fr-game { height: 100%; box-sizing: border-box; }
.ms-fr-game img { flex: 1 1 auto; min-height: 120px; height: 0; aspect-ratio: auto; }
.ms-fr-game b { flex: none; display: flex; align-items: center; justify-content: center; min-height: 2.4em; padding: 10px 10px 0 !important; text-align: center; font: 600 17px/1.15 "Fredoka", sans-serif; }
.ms-fr-btn { flex: none; margin: 10px 12px 12px !important; }
@media (max-width: 760px) {
  .ms-fr-game img { flex: none; height: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .ms-fr-game b { font-size: 15px; padding: 8px 8px 0 !important; }
  .ms-fr-btn { margin: 8px 10px 10px !important; }
}

/* ---- Haber kutuları: aynı sıradakiler aynı boyda ---- */
.news-list { align-items: stretch !important; }
.ms-news-card { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; }
.ms-news-body { flex: 1 1 auto; }
#news-preview .ms-news-body p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
#news-preview .ms-news-body h3 { min-height: 2.4em; }
@media (min-width: 900px) { #news-full .ms-news-card:first-child { height: auto; } }

/* ---- /play: eğlenceli arama ve açılır menüler ---- */
.ms-pl-bar { position: relative !important; top: auto !important; z-index: 3; display: flex !important; flex-wrap: wrap; gap: 12px; align-items: stretch; padding: 14px; border-radius: 28px;
  background: linear-gradient(135deg, rgba(155,109,255,0.22), rgba(255,217,102,0.08)); border: 1.5px solid var(--line); box-shadow: var(--shadow); }
.ms-pl-bar.dd-on { z-index: 60; }
.ms-pl-search { flex: 1 1 340px; position: relative; display: flex; align-items: center; min-width: 0; }
.ms-pl-search > svg { position: absolute; left: 18px; width: 24px; height: 24px; color: var(--violet-bright); pointer-events: none; z-index: 1; transition: transform 0.3s cubic-bezier(.34,1.56,.64,1); }
.ms-pl-search:focus-within > svg { transform: scale(1.15) rotate(-10deg); }
.ms-pl-search input { width: 100%; height: 62px; box-sizing: border-box; padding: 0 106px 0 54px; border-radius: 22px; border: 2.5px solid transparent; color: var(--ink); font: 600 18px "Fredoka", sans-serif; outline: none; -webkit-appearance: none; appearance: none;
  background: linear-gradient(var(--card-2), var(--card-2)) padding-box, linear-gradient(90deg, var(--line), var(--line)) border-box; transition: background 0.3s, box-shadow 0.3s; }
.ms-pl-search input::-webkit-search-cancel-button { display: none; }
.ms-pl-search input:focus { background: linear-gradient(var(--card-2), var(--card-2)) padding-box, linear-gradient(90deg, #9b6dff, #ff8fc4, #ffd966) border-box; box-shadow: 0 0 0 5px rgba(155,109,255,0.18), 0 10px 26px rgba(109,63,216,0.3); }
.ms-pl-search input::placeholder { color: var(--ink-faint); }
.ms-pl-wolf { position: absolute; right: 10px; bottom: 4px; width: 62px; height: 62px; object-fit: contain; pointer-events: none; transform-origin: 50% 100%; transition: transform 0.35s cubic-bezier(.34,1.56,.64,1); filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3)); }
.ms-pl-search:focus-within .ms-pl-wolf { transform: translateY(-6px) rotate(-8deg) scale(1.08); }
.ms-pl-x { position: absolute; right: 72px; width: 32px; height: 32px; border: 0; border-radius: 50%; display: none; place-items: center; background: var(--soft); color: var(--ink); cursor: pointer; z-index: 1; }
.ms-pl-x svg { width: 15px; height: 15px; }
.ms-pl-bar.has-q .ms-pl-x { display: grid; }
.ms-pl-dds { display: flex; gap: 12px; flex: 0 1 auto; }
.ms-dd { position: relative; flex: 1 1 0; min-width: 190px; }
.ms-dd-btn { width: 100%; height: 62px; display: flex; align-items: center; gap: 10px; padding: 0 14px 0 10px; border-radius: 22px; border: 2.5px solid var(--line); background: var(--card-2); color: var(--ink); cursor: pointer; text-align: left; transition: border-color 0.2s, transform 0.2s cubic-bezier(.34,1.56,.64,1); }
.ms-dd-btn:hover { border-color: var(--violet); transform: translateY(-2px); }
.ms-dd.open .ms-dd-btn { border-color: var(--violet); box-shadow: 0 0 0 5px rgba(155,109,255,0.18); }
.ms-dd-emo { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; font-size: 20px; background: color-mix(in srgb, var(--c, #ffd966) 26%, transparent); }
.ms-dd-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.1; }
.ms-dd-t small { font: 800 11px "Manrope", sans-serif; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-dim); }
.ms-dd-t b { font: 600 17px "Fredoka", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-dd-chev { flex: none; width: 20px; height: 20px; color: var(--violet-bright); transition: transform 0.25s; }
.ms-dd.open .ms-dd-chev { transform: rotate(180deg); }
.ms-dd-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 70; min-width: 100%; width: max-content; max-width: min(460px, calc(100vw - 32px)); box-sizing: border-box; padding: 8px; border-radius: 22px; background: var(--card); border: 1.5px solid var(--line); box-shadow: 0 22px 50px rgba(0,0,0,0.45);
  display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; transform-origin: top right; }
.ms-dd-o .ms-dd-menu { grid-template-columns: 1fr; }
.ms-dd.open .ms-dd-menu { display: grid; animation: ms-ddin 0.25s cubic-bezier(.34,1.56,.64,1); }
@keyframes ms-ddin { from { opacity: 0; transform: translateY(-8px) scale(0.95); } }
.ms-dd-menu button { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 12px 8px 8px; border: 0; border-radius: 15px; background: none; color: var(--ink); cursor: pointer; text-align: left; transition: background 0.15s, transform 0.15s; }
.ms-dd-menu button .ms-dd-emo { width: 36px; height: 36px; font-size: 18px; border-radius: 11px; }
.ms-dd-menu button b { flex: 1 1 auto; font: 600 15.5px "Fredoka", sans-serif; white-space: nowrap; }
.ms-dd-menu button em { flex: none; font: 800 12px "Manrope", sans-serif; font-style: normal; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--ink-dim); }
.ms-dd-menu button:hover { background: var(--soft); transform: translateX(2px); }
.ms-dd-menu button.on { background: color-mix(in srgb, var(--c) 30%, transparent); box-shadow: inset 0 0 0 2px var(--c); }
.ms-dd-menu button.on em { background: var(--c); color: #1a1030; }
.ms-pl-count span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--soft); font: 600 14px "Fredoka", sans-serif; color: var(--ink); }
.ms-pl-count span::before { content: "🐺"; }
@media (max-width: 760px) {
  .ms-pl-bar { padding: 10px; gap: 8px; border-radius: 22px; }
  .ms-pl-search { flex-basis: 100%; }
  .ms-pl-search input { height: 54px; font-size: 16px; padding-right: 90px; border-radius: 18px; }
  .ms-pl-wolf { width: 52px; height: 52px; right: 6px; }
  .ms-pl-x { right: 60px; }
  .ms-pl-dds { flex: 1 1 100%; gap: 8px; }
  .ms-dd { min-width: 0; }
  .ms-dd-btn { height: 54px; padding: 0 10px 0 7px; gap: 7px; border-radius: 18px; }
  .ms-dd-emo { width: 34px; height: 34px; font-size: 17px; border-radius: 11px; }
  .ms-dd-t b { font-size: 15px; }
  .ms-dd-menu { position: absolute; width: calc(200% + 8px); max-width: none; grid-template-columns: 1fr 1fr; }
  .ms-dd-c .ms-dd-menu { left: 0; right: auto; transform-origin: top left; }
  .ms-dd-o .ms-dd-menu { right: 0; grid-template-columns: 1fr; width: 100%; }
  .ms-dd-menu button b { font-size: 14.5px; white-space: normal; line-height: 1.1; }
}
:root[data-theme="light"] .ms-dd-menu { box-shadow: 0 22px 50px rgba(60,30,120,0.18); }

/* ---- Telefonda menü/dil listesi her şeyin üstünde ---- */
body > nav.nav { z-index: 1000; }
#ms-sheet { z-index: 4000; }

/* ---- Yüzen süre (klavye açıkken) ---- */
.ms-ftimer { position: fixed; left: 50%; top: 10px; z-index: 10050; display: flex; align-items: center; gap: 7px; padding: 7px 14px 9px 10px; border-radius: 999px; background: #241a3f; color: #fff; border: 2px solid #ffd966;
  box-shadow: 0 10px 24px rgba(0,0,0,0.45); font: 700 18px "Fredoka", sans-serif; pointer-events: none; opacity: 0; transform: translate(-50%, -14px) scale(0.9); transition: opacity 0.2s, transform 0.25s cubic-bezier(.34,1.56,.64,1); overflow: hidden; }
.ms-ftimer.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.ms-ft-ic { font-size: 18px; }
.ms-ftimer i { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,0.12); }
.ms-ftimer s { display: block; height: 100%; background: #ffd966; transition: width 0.2s linear; }
.ms-ftimer.low { border-color: #ff5d6c; background: #4a1626; animation: ms-ftlow 0.8s ease-in-out infinite; }
.ms-ftimer.low s { background: #ff5d6c; }
@keyframes ms-ftlow { 50% { box-shadow: 0 0 0 6px rgba(255,93,108,0.25), 0 10px 24px rgba(0,0,0,0.45); } }
@media (prefers-reduced-motion: reduce) { .ms-ftimer.low { animation: none; } }
@media (min-width: 761px) { .ms-dd { min-width: 230px; } }
@media (max-width: 760px) { .ms-dd-menu button em { display: none; } .ms-dd-menu button { padding: 7px 8px 7px 7px; gap: 8px; } }
