/* Yamegu: Island Mahjong sitesi. Renkler oyunun logosundan: turkuaz deniz, koyu teal, altın, turuncu, kum. */
:root {
  --sea: #2fb7b0;
  --sea-mid: #127e7f;
  --deep: #0a4f55;
  --ink: #0b2e33;
  --gold: #ffd24a;
  --orange: #ff8a14;
  --orange-dark: #cc6200;
  --sand: #fff6e0;
  --paper: #fffdf7;
  --text: #21393c;
  --muted: #4d6568;
  --radius: 22px;
  --head: 'Fredoka', 'Segoe UI', system-ui, sans-serif;
  --body: 'Nunito', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 18px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--sea-mid); }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0; color: var(--ink); }
h2 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; margin-bottom: 40px; }
h3 { font-size: 26px; font-weight: 600; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.kicker { font: 600 15px var(--head); letter-spacing: 3px; text-transform: uppercase; color: var(--sea-mid); margin: 0 0 10px; }

/* Düğmeler */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 28px; border-radius: 999px; font: 600 20px var(--head); text-decoration: none; transition: transform .15s, box-shadow .15s, filter .15s; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, .sound:focus-visible, .yt button:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-play { background: linear-gradient(180deg, #ffa646, var(--orange)); color: #fff; border: 4px solid #fff; box-shadow: 0 6px 0 var(--orange-dark), 0 14px 30px rgba(0,0,0,.25); }
.btn-play span { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.btn-play small { font: 600 13px var(--body); letter-spacing: .5px; opacity: .95; }
.btn-play b { font-weight: 700; font-size: 22px; }
.btn-play.btn-sm { padding: 8px 18px; font-size: 16px; border-width: 3px; box-shadow: 0 4px 0 var(--orange-dark); }
.as-badge { display: inline-flex; transition: transform .15s; }
.as-badge:hover { transform: translateY(-2px); }
.as-badge img { display: block; height: 56px; width: auto; }
.store-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; }
.btn-play[aria-disabled="true"] { filter: saturate(.55); cursor: default; }
.btn-play[aria-disabled="true"]:hover { transform: none; }
.btn-ghost { color: #fff; border: 3px solid rgba(255,255,255,.75); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* Üst çubuk */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(10,79,85,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font: 700 26px var(--head); }
.brand img { border-radius: 10px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: #e6fbf9; text-decoration: none; font: 500 17px var(--head); }
.nav-links a:hover { color: var(--gold); }

/* Giriş */
.hero { position: relative; overflow: hidden; background: radial-gradient(circle at 70% 40%, var(--sea) 0%, var(--sea-mid) 45%, var(--deep) 100%); color: #fff; padding: 60px 0 140px; }
.rays { position: absolute; inset: -50%; opacity: .1; background: repeating-conic-gradient(from 0deg at 50% 50%, #fff 0deg 7deg, transparent 7deg 22.5deg); animation: spin 120s linear infinite; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-logo { width: min(440px, 100%); height: auto; filter: drop-shadow(0 12px 24px rgba(0,0,0,.3)); margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: clamp(42px, 6.4vw, 72px); font-weight: 700; text-shadow: 0 4px 0 rgba(0,0,0,.18); }
.hero h1 span { color: var(--gold); }
.lead { font-size: 20px; max-width: 540px; color: #ecfffd; margin: 20px 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 30px 0 0; }
.chips li { padding: 6px 16px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); font: 600 15px var(--body); }
.hero-phone { position: relative; display: flex; justify-content: center; }
.float { position: absolute; width: 190px; border-radius: 20px; border: 5px solid #fff; box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.f1 { left: 0; top: 10px; transform: rotate(-8deg); }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; background: var(--paper); clip-path: ellipse(75% 100% at 50% 100%); }

/* Telefon çerçevesi */
.phone { position: relative; width: 300px; aspect-ratio: 9 / 16; border-radius: 42px; overflow: hidden; border: 11px solid #111; background: #14352b; box-shadow: 0 30px 60px rgba(0,0,0,.35), 0 0 0 2px rgba(255,255,255,.15); flex: none; }
.phone video { width: 100%; height: 100% !important; object-fit: cover; }
.phone.small { width: 260px; }
.sound { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; display: grid; place-items: center; }
.sound::before { content: ''; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9H4zm12.5 3l2.8-2.8-1.4-1.4L15 10.6l-2.8-2.8-1.4 1.4L13.6 12l-2.8 2.8 1.4 1.4 2.8-2.8 2.8 2.8 1.4-1.4z' transform='translate(1 0)'/%3E%3C/svg%3E"); }
.sound[aria-pressed="true"]::before { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 4V5L7 9H3zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.5 4.5 0 0 0 2.5-4zM14 3.2v2.1a7 7 0 0 1 0 13.4v2.1a9 9 0 0 0 0-17.6z'/%3E%3C/svg%3E"); }

/* Bölümler */
.section { padding: 90px 0; }
.section.sand { background: var(--sand); }
.section.dark { background: linear-gradient(180deg, var(--deep), var(--ink)); }
.section.dark h2 { color: #fff; }
.section.dark .kicker { color: var(--gold); }

/* Adımlar */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.steps li { position: relative; background: #fff; border-radius: var(--radius); padding: 22px 22px 26px; box-shadow: 0 10px 30px rgba(11,46,51,.08); }
.steps .shot { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; background: #14352b; margin-bottom: 18px; }
.steps .shot img, .steps .shot video { width: 100%; height: 100% !important; object-fit: cover; object-position: 50% 40%; }
.steps .num { position: absolute; top: 10px; left: 10px; width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: #4a2c00; font: 700 28px var(--head); display: grid; place-items: center; box-shadow: 0 5px 0 #b9770e; }
.steps p { margin: 8px 0 0; color: var(--muted); }

/* Video satırları */
.row { display: flex; align-items: center; gap: 60px; margin-bottom: 80px; }
.row:last-child { margin-bottom: 0; }
.row.rev { flex-direction: row-reverse; }
.row-text { flex: 1; }
.row-text p { color: var(--muted); font-size: 19px; }
.houses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.houses figure { margin: 0; border-radius: 14px; overflow: hidden; background: #0b84b4; position: relative; }
.houses img { aspect-ratio: 560 / 635; object-fit: cover; }
.houses figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 6px 6px; text-align: center; color: #fff; font: 600 14px var(--head); background: linear-gradient(transparent, rgba(0,0,0,.75)); }

/* Özellikler */
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.features li { background: var(--sand); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.features .ico { font-size: 34px; line-height: 1; margin-bottom: 6px; }
.features b { font: 600 20px var(--head); color: var(--ink); }
.features li > span:last-child { color: var(--muted); font-size: 16px; }

/* Fragman (tıklanınca YouTube yüklenir) */
.yt { max-width: 900px; }
.yt button, .yt iframe, .yt video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); overflow: hidden; padding: 0; cursor: pointer; position: relative; background: #000; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.yt button img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .3s; }
.yt button:hover img { transform: scale(1.03); }
.yt-play { position: absolute; inset: 0; margin: auto; width: 92px; height: 92px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; border: 5px solid #fff; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.yt-note { color: #a9cfd1; font-size: 14px; margin: 14px 0 0; }

/* Ekran görüntüleri */
.gallery { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(20px, calc((100vw - 1100px) / 2)) 20px; scrollbar-width: thin; }
.gallery img { flex: none; width: 250px; aspect-ratio: 1 / 2; object-fit: cover; border-radius: 26px; scroll-snap-align: center; box-shadow: 0 14px 30px rgba(11,46,51,.18); }

/* SSS */
details { background: #fff; border-radius: 16px; margin-bottom: 12px; box-shadow: 0 4px 16px rgba(11,46,51,.06); }
summary { cursor: pointer; padding: 20px 56px 20px 24px; font: 600 20px var(--head); color: var(--ink); list-style: none; position: relative; border-radius: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 28px; color: var(--sea-mid); transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

/* Son çağrı */
.cta { position: relative; overflow: hidden; background: radial-gradient(circle at 50% 30%, var(--sea), var(--deep)); color: #fff; padding: 90px 0; text-align: center; }
.cta-in { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta img { border-radius: 28px; box-shadow: 0 16px 36px rgba(0,0,0,.35); margin-bottom: 24px; }
.cta h2 { color: #fff; margin-bottom: 12px; }
.cta p { color: #e6fbf9; margin: 0 0 28px; font-size: 19px; }

/* Alt bilgi */
.foot { background: var(--ink); color: #b8d4d6; padding: 50px 0 30px; font-size: 16px; }
.foot a { color: #e6fbf9; }
.foot-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 26px; flex-wrap: wrap; }
.foot p { margin: 10px 0 0; }
.credits { margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; color: #8fb0b3; }

/* Metin sayfaları (gizlilik, 404) */
.page { padding: 70px 0 90px; }
.page h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 10px; }
.page h2 { font-size: 26px; margin: 36px 0 10px; }
.page p, .page li { color: var(--muted); }
.page small { color: var(--muted); }

@media (max-width: 960px) {
  .hero { padding: 40px 0 120px; }
  .hero-in { grid-template-columns: 1fr; text-align: center; }
  .float { display: none; }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .chips { justify-content: center; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .row, .row.rev { flex-direction: column; gap: 30px; text-align: center; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .nav-links { display: none; }
  .btn-play.btn-sm { margin-left: auto; }
  .section { padding: 64px 0; }
  .steps { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .features { grid-template-columns: 1fr; }
  .houses { grid-template-columns: repeat(2, 1fr); }
  .phone { width: 260px; }
  .float { display: none; }
  .gallery img { width: 200px; }
  .foot-in { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rays { animation: none; }
  .btn, .yt button img { transition: none; }
}
