/* Kettleday Games. Yön: Dev Ad. Ad ekran genişliğinde, beyaz zemin (açılış kartıyla aynı),
   oyun bölümleri oyunun kendi renginde. Renkler BoxyBunch stil kartından, logo renkleri kilitli. */
:root {
  --white: #FFFFFF;
  --night: #2A1A7A;      /* logo "kettleday", başlıklar */
  --face: #1E1442;       /* metin */
  --purple: #6A4CF0;     /* Boxy Bunch zemini, logo "games" */
  --dot: #7A5EF6;
  --lilac: #D9D0FF;      /* logo dudağı, mor zeminde ikincil yazı */
  --tray: #2C1D86;
  --tray-lip: #1E1266;
  --cell: #3A2AA0;
  --gold: #FFCF34;       /* eylem */
  --gold-lip: #BA9638;
  --mist: #F3F0FF;       /* tek ton adımı */

  --f-logo: 'Titan One', 'Fredoka', system-ui, sans-serif;
  --f-disp: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --f-text: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --g: max(20px, env(safe-area-inset-left, 0px), 4vw);   /* dış kenar boşluğu */
  --gap: clamp(96px, 12vw, 200px);                         /* bölüm arası */
  --ease-pop: cubic-bezier(.3, 1.6, .5, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--face); font-family: var(--f-text); font-size: 18px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--purple); }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }
/* Mor odak halkası mor ve gece zeminde görünmez; orada altın kullanılır (3:1 üstü). */
.dots :focus-visible, .foot :focus-visible { outline-color: var(--gold); }
h1, h2, h3 { font-family: var(--f-disp); font-weight: 600; letter-spacing: -.01em; text-wrap: balance; margin: 0; color: var(--night); }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: var(--g); top: 12px; background: var(--white); padding: 8px 12px; z-index: 10; }

.dots {
  background-color: var(--purple);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='15' cy='15' r='7' fill='%237A5EF6'/%3E%3Ccircle cx='45' cy='45' r='7' fill='%237A5EF6'/%3E%3C/svg%3E");
}

/* ---------- üst çubuk ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; padding: 24px var(--g); padding-top: max(24px, env(safe-area-inset-top, 0px)); }
.bar__home img { width: 44px; height: auto; transition: transform .25s var(--ease-pop); }
.bar__home:hover img { transform: rotate(-8deg) scale(1.06); }
.bar nav { display: flex; gap: clamp(16px, 3vw, 36px); font-family: var(--f-disp); font-weight: 600; font-size: 18px; }
.bar nav a { text-decoration: none; color: var(--night); padding: 6px 0; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--purple); }
.bar--dark nav a { color: var(--white); }
.bar--dark nav a:hover, .bar--dark nav a[aria-current] { color: var(--gold); }

/* ---------- düğme ---------- */
.btn { display: inline-block; font-family: var(--f-disp); font-weight: 600; font-size: 20px; line-height: 1; padding: 18px 30px 17px; border-radius: 999px; background: var(--gold); color: var(--face); text-decoration: none; box-shadow: 0 5px 0 var(--gold-lip); transition: transform .12s, box-shadow .12s; }
.btn:hover { color: var(--face); transform: translateY(-2px); box-shadow: 0 7px 0 var(--gold-lip); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--gold-lip); }
.btn--quiet { background: var(--mist); box-shadow: 0 5px 0 var(--lilac); }
.btn--quiet:hover { box-shadow: 0 7px 0 var(--lilac); }
.btn--quiet:active { box-shadow: 0 2px 0 var(--lilac); }

/* ---------- ana sayfa: dev ad ---------- */
.hero { padding: clamp(40px, 7vw, 96px) var(--g) clamp(64px, 8vw, 120px); }
.mono { margin: 0; text-align: center; color: var(--night); font-family: var(--f-logo); font-weight: 400; letter-spacing: -.01em; }
.mono__name { display: block; white-space: nowrap; line-height: .9; font-size: min(calc((100vw - 2 * var(--g)) / 5.3), 300px); text-shadow: 0 .045em 0 var(--lilac); padding-top: .32em; }
.mono__games { display: block; color: var(--purple); line-height: 1; font-size: min(calc((100vw - 2 * var(--g)) / 12.5), 126px); text-shadow: 0 .06em 0 var(--lilac); margin-top: .12em; }
.l { position: relative; display: inline-block; }
.perch { font: inherit; position: absolute; left: 50%; bottom: 100%; width: .26em; margin: 0 0 -.06em -.13em; padding: 0; border: 0; background: none; cursor: pointer; text-shadow: none; }
.perch .block { width: 100%; height: auto; display: block; transition: transform .2s var(--ease-pop); transform-origin: 50% 100%; }
.perch:hover .block { transform: translateY(-6%) rotate(-4deg); }
.perch.is-happy .block { animation: hop .45s var(--ease-pop); }
.perch--phone { display: none; }
@media (max-width: 640px) {
  .perch--desk { display: none; }
  .perch--phone { display: block; width: .3em; margin-left: -.15em; }
}
.eyes { transition: transform .12s ease-out; }
@keyframes hop { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-22%) scale(1.06, .94); } 70% { transform: translateY(0) scale(1.08, .9); } 100% { transform: none; } }

/* ---------- Boxy Bunch şeridi ---------- */
.band { color: var(--white); overflow: hidden; }
.band__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(72px, 9vw, 140px) var(--g); max-width: 1440px; margin: 0 auto; }
.band__logo img { width: clamp(220px, 26vw, 380px); }
.band__lead { font-size: clamp(20px, 1.7vw, 24px); color: var(--white); max-width: 34ch; margin-top: 28px; }
.band__status { font-family: var(--f-disp); font-weight: 600; font-size: 20px; color: var(--gold); margin: 20px 0 36px; }
.band__shots { display: flex; gap: clamp(16px, 2vw, 28px); justify-content: center; align-items: flex-start; }
.shot { width: min(300px, 46%); border-radius: clamp(18px, 2.4vw, 34px); }
/* Oyun görüntüleri telefon çerçevesinde: görüntülerin mor zemini sayfanın mor zeminine karışmasın.
   Çerçeve tamamen CSS'tedir; görüntü değiştirmek için yalnız img adresi değişir. */
.shot, .run__shot img { box-sizing: border-box; border: clamp(6px, .8vw, 10px) solid var(--face); background: var(--face); box-shadow: 0 0 0 2px #3B2A8F, 0 22px 44px -12px rgba(18, 10, 50, .55); }
.shot--low { margin-top: clamp(40px, 6vw, 96px); }

.soon { list-style: none; margin: 28px 0 36px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.soon__badge { display: flex; align-items: center; gap: 9px; height: 54px; min-width: 176px; padding: 0 18px 0 11px; border-radius: 10px; background: #000; box-shadow: inset 0 0 0 1px #A6A6A6; color: #fff; font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', Roboto, Arial, sans-serif; font-weight: 600; font-size: 23px; line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.soon__badge svg { width: 32px; height: 32px; flex: none; }
.soon__badge small { display: block; font-family: inherit; font-weight: 500; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: #fff; margin-bottom: 3px; }
.gh .soon { margin-bottom: 0; }

/* ---------- hakkında ---------- */
.about { padding: var(--gap) var(--g); }
.about__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(32px, 6vw, 96px); max-width: 1440px; margin: 0 auto; }
.about h2 { font-size: clamp(44px, 6vw, 88px); line-height: 1.08; }
.about__text { display: grid; gap: 18px; font-size: clamp(19px, 1.5vw, 22px); max-width: 40ch; }
.row-of-blocks { grid-column: 1 / -1; display: flex; gap: clamp(8px, 1.4vw, 20px); margin-top: clamp(40px, 5vw, 72px); }
.row-of-blocks span { width: clamp(44px, 8vw, 116px); }
.row-of-blocks .block { width: 100%; height: auto; display: block; }

/* ---------- alt bilgi ---------- */
.foot { background: var(--night); color: var(--white); padding: clamp(64px, 8vw, 120px) var(--g) max(48px, env(safe-area-inset-bottom, 0px)); }
.foot__in { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px clamp(32px, 6vw, 96px); align-items: start; }
.foot__logo { width: min(560px, 100%); }
/* Stüdyo sloganı logonun altında; giriş bölümü olduğu gibi kalır (kullanıcı kararı, 2026-11-03). */
.foot__slogan { margin: 18px 0 0; font-family: var(--f-disp); font-weight: 600; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; color: var(--gold); }
.foot__cols { display: grid; grid-template-columns: repeat(3, auto); justify-content: end; gap: 32px clamp(32px, 4vw, 64px); }
.foot__cols div { display: grid; gap: 12px; align-content: start; }
.foot__h { margin: 0 0 4px; font-family: var(--f-text); font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--lilac); }
.foot__cols a { color: var(--white); text-decoration: none; font-family: var(--f-disp); font-weight: 600; font-size: 19px; }
.foot__cols a:hover { color: var(--gold); }
.foot__small { grid-column: 1 / -1; margin: 0; padding-top: 28px; border-top: 1px solid rgba(217, 208, 255, .2); color: var(--lilac); font-size: 16px; }
@media (max-width: 860px) {
  .foot__in { grid-template-columns: minmax(0, 1fr); }
  .foot__cols { grid-template-columns: repeat(auto-fit, minmax(140px, auto)); justify-content: start; }
}

/* ---------- oyun sayfası ---------- */
.game__top { color: var(--white); }
.gh { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding: clamp(24px, 4vw, 56px) var(--g) clamp(72px, 9vw, 128px); max-width: 1440px; margin: 0 auto; }
.gh__logo img { width: clamp(260px, 32vw, 460px); }
.gh__lead { font-size: clamp(20px, 1.8vw, 25px); max-width: 32ch; margin-top: 28px; }
.gh__status { font-family: var(--f-disp); font-weight: 600; font-size: 21px; color: var(--gold); margin-top: 24px; }
.gh__play { display: grid; justify-items: center; gap: 14px; }
.gh__hint { color: var(--white); font-size: 17px; }

.play { position: relative; width: min(100%, 520px); display: grid; justify-items: center; gap: 18px; }
.tray { width: 100%; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(3px, .8vw, 5px); padding: clamp(8px, 2.2vw, 14px); background: var(--tray); border-radius: 7%/7%; box-shadow: 0 8px 0 var(--tray-lip); }
.cell { aspect-ratio: 1; background: var(--cell); border-radius: 20%; position: relative; border: 0; padding: 0; }
.cell .block { position: absolute; inset: 0; width: 100%; height: 100%; }
.cell--gap { cursor: pointer; outline: 3px dashed rgba(255, 255, 255, .6); outline-offset: -5px; }
.cell--gap.is-target { outline-color: var(--gold); background: var(--tray-lip); }
.hand { height: 64px; display: grid; place-items: center; }
.piece { width: 56px; border: 0; padding: 0; background: none; cursor: grab; touch-action: none; transition: transform .15s var(--ease-pop); }
.piece:active { cursor: grabbing; }
.piece .block { width: 100%; height: auto; display: block; }
.piece.is-dragging { transition: none; z-index: 5; position: relative; }
.piece[hidden] { display: none; }
.praise { position: absolute; top: 58%; left: 0; right: 0; text-align: center; font-family: var(--f-logo); font-size: clamp(36px, 5vw, 60px); color: var(--gold); text-shadow: 0 5px 0 var(--face); pointer-events: none; opacity: 0; }
.praise.is-on { animation: praise 1.3s var(--ease-pop) both; }
@keyframes praise { 0% { opacity: 0; transform: scale(.4); } 20% { opacity: 1; transform: scale(1.1); } 30% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-12px); } }
.cell .block.is-pop { animation: pop .29s var(--ease-pop) both; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.18, .86); } 100% { transform: scale(0); opacity: 0; } }

.run { padding: var(--gap) var(--g) 0; max-width: 1440px; margin: 0 auto; }
.run h2, .facts h2 { font-size: clamp(40px, 5vw, 72px); line-height: 1.08; }
.run__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 6vw, 112px); margin-top: clamp(40px, 5vw, 72px); align-items: start; }
.run__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(28px, 3vw, 44px); }
.run__steps h3 { font-size: clamp(26px, 2.4vw, 34px); }
.run__steps p { margin-top: 8px; font-size: clamp(18px, 1.4vw, 20px); max-width: 46ch; }
.run__shot { margin: 0; }
.run__shot img { border-radius: clamp(20px, 2.6vw, 36px); width: min(100%, 360px); }
.run__shot figcaption { margin-top: 12px; font-size: 16px; color: var(--face); }

.facts { padding: var(--gap) var(--g); max-width: 1440px; margin: 0 auto; }
.facts__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: clamp(32px, 4vw, 56px) 0 0; }
.facts__list div { background: var(--mist); border-radius: 24px; padding: 28px; }
.facts__list dt { font-size: 17px; }
.facts__list dd { margin: 6px 0 0; font-family: var(--f-disp); font-weight: 600; font-size: clamp(24px, 2.2vw, 32px); color: var(--night); line-height: 1.15; }
.facts__links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 48px; }

/* ---------- belge sayfaları ---------- */
.doc__main { padding: clamp(32px, 5vw, 72px) var(--g) var(--gap); max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.doc__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 40px; align-items: end; }
/* Fredoka'nın alt uzantıları (y, p, g) 1 satır yüksekliğinde alttaki satıra değiyordu. */
.doc__head h1, .doc__main--policy h1 { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.08; }
.doc__main--policy h1 { margin-bottom: .3em; }
.doc__lead { grid-column: 1; font-size: clamp(19px, 1.6vw, 23px); max-width: 44ch; margin-top: 18px; }
.doc__block { grid-column: 2; grid-row: 1 / span 2; width: clamp(72px, 10vw, 140px); }
.doc__body, .doc__main--policy { max-width: 70ch; }
.doc__body h2, .doc__main--policy h2 { font-size: clamp(26px, 2.4vw, 34px); margin: 40px 0 12px; }
.doc__body h3 { font-size: 22px; margin: 28px 0 6px; }
.doc__body p, .doc__main--policy p, .doc__main--policy li { font-size: 18px; }
.doc__main--policy { display: block; }
.doc__main--policy p, .doc__main--policy ul { margin: 0 0 14px; }
.doc__main--policy ul { padding-left: 24px; }
.doc__main--policy li { margin-bottom: 6px; }
.doc__main--policy a { word-break: break-word; }

.lost { padding: clamp(64px, 10vw, 160px) var(--g); text-align: center; display: grid; justify-items: center; gap: 20px; }
.lost__block { width: 120px; }
.lost h1 { font-size: clamp(40px, 6vw, 80px); }

/* ---------- telefon ---------- */
@media (max-width: 900px) {
  .band__in, .gh, .about__in, .run__grid { grid-template-columns: minmax(0, 1fr); }
  .facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band__shots { justify-content: flex-start; }
  .run__shot img { width: min(100%, 300px); }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .bar nav { font-size: 16px; gap: 16px; }
  .facts__list { gap: 12px; }
  .facts__list div { padding: 20px; border-radius: 18px; }
  .doc__head { grid-template-columns: minmax(0, 1fr); }
  .doc__block { display: none; }
}

/* ---------- giriş hareketi (betik varsa) ---------- */
.js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease-out, transform .6s cubic-bezier(.2, .8, .2, 1); }
.js [data-rise].is-in { opacity: 1; transform: none; }
.js .mono__name .l { animation: drop .7s var(--ease-pop) both; animation-delay: calc(var(--i) * 45ms); }
.js .mono__games { animation: rise .6s .5s ease-out both; }
.js .perch .block { animation: perch .5s var(--ease-pop) both; animation-delay: calc(.6s + var(--i) * 45ms); }
@keyframes drop { from { opacity: 0; transform: translateY(-.25em); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes perch { from { opacity: 0; transform: translateY(-60%) scale(.6); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0s !important; transition-duration: 1ms !important; }
  .js [data-rise] { opacity: 1; transform: none; }
}
