/* ============ Tokenlar ============ */
:root {
  --milk: #ffe6ee;       /* çilekli süt */
  --milk-2: #ffd6e3;
  --paper: #fffaf3;      /* polaroid kağıdı */
  --plum: #3d1f45;       /* mürekkep */
  --plum-2: #6b3f72;
  --berry: #ec3a6f;      /* kalp */
  --berry-2: #ff7aa2;
  --calico: #f29a3b;     /* Gofrik turuncusu */
  --lilac: #b9a7f5;
  --lilac-2: #ddd3ff;
  --lcd: #fbe3ea;
  --lcd-ink: #5a2450;
  --px: 4px;
  /* Fredoka yalnızca rakamları içerir; harfler Pixelify'dan gelir. */
  --pixel: 'Fredoka', 'Pixelify Sans', ui-rounded, system-ui, sans-serif;
  --hand: 'Caveat', 'Segoe Print', cursive;
  --dock-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--plum);
  font-family: var(--pixel);
  font-size: 18px;
  line-height: 1.5;
  background-color: var(--milk);
  /* piknik örtüsü: çok hafif kareli */
  background-image:
    linear-gradient(90deg, rgb(255 255 255 / .35) 50%, transparent 50%),
    linear-gradient(rgb(255 255 255 / .35) 50%, transparent 50%);
  background-size: 48px 48px;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.1; }
h2 { font-size: clamp(30px, 5.2vw, 52px); letter-spacing: -0.01em; }
p { margin: 0; }
.hand { font-family: var(--hand); font-size: 1.45em; line-height: 1.15; color: var(--plum-2); }
img[src*="gofrik/"] { image-rendering: auto; user-select: none; -webkit-user-drag: none; }
:focus-visible { outline: 3px dashed var(--berry); outline-offset: 4px; }
[hidden] { display: none !important; }

/* Piksel kutu: köşeleri basamaklı çerçeve + sert gölge */
.px-box, .btn, .polaroid, .treaty, .letter, .console, .bubble, .note-card, .milestones li, .fact {
  --edge: var(--plum);
  box-shadow:
    0 calc(var(--px) * -1) 0 0 var(--edge),
    0 var(--px) 0 0 var(--edge),
    calc(var(--px) * -1) 0 0 0 var(--edge),
    var(--px) 0 0 0 var(--edge),
    calc(var(--px) * 2) calc(var(--px) * 2) 0 0 rgb(61 31 69 / .18);
}

.btn {
  border: 0;
  background: var(--berry);
  color: #fff;
  padding: 12px 22px;
  font-size: 20px;
  font-weight: 600;
  transition: transform .12s steps(2), background .2s;
  touch-action: manipulation;
}
.btn:hover { background: #ff4f80; }
.btn:active { transform: translate(var(--px), var(--px)); }
.btn--big { font-size: 22px; padding: 16px 28px; }
.btn--small { font-size: 15px; padding: 6px 12px; background: var(--plum); }

.pix { display: block; width: 100%; height: 100%; shape-rendering: crispEdges; }

/* ============ Açılış ============ */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; align-content: center; gap: 28px;
  background: var(--milk);
  background-image: radial-gradient(circle at 50% 45%, #fff 0, transparent 60%);
  transition: opacity .6s ease, visibility .6s;
}
.intro.gone { opacity: 0; visibility: hidden; }
.intro__hint { font-size: 20px; text-align: center; padding: 0 16px; }
.intro__cat { position: absolute; bottom: -10px; right: 6vw; width: min(200px, 34vw); animation: peekUp 1.2s 1s both cubic-bezier(.2,1.6,.4,1); }

.envelope {
  position: relative; width: min(340px, 80vw); aspect-ratio: 3 / 2;
  border: 0; padding: 0; background: none;
  animation: wobble 2.4s ease-in-out infinite;
}
.envelope__back, .envelope__front, .envelope__flap { position: absolute; inset: 0; }
.envelope__back { background: var(--berry-2); box-shadow: 0 0 0 var(--px) var(--plum); }
.envelope__front {
  background: var(--berry);
  clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%);
  z-index: 2;
}
.envelope__flap {
  background: #ff5a8a;
  clip-path: polygon(0 0, 100% 0, 50% 58%);
  transform-origin: top; z-index: 3;
  transition: transform .5s ease-in, z-index 0s .25s;
}
.envelope__seal { --berry: #fffaf3; position: absolute; left: 50%; top: 52%; width: 44px; height: 40px; translate: -50% -50%; z-index: 4; transition: opacity .2s; }
.envelope__letter {
  position: absolute; left: 7%; right: 7%; top: 8%; height: 84%;
  background: var(--paper); z-index: 1; padding: 18px 20px;
  font-family: var(--hand); font-size: 22px; line-height: 1.2; text-align: left;
  box-shadow: 0 0 0 var(--px) var(--plum);
  transition: transform .8s cubic-bezier(.3,1.4,.5,1) .35s, height .6s .9s;
  overflow: hidden;
}
.envelope__letter p + p { margin-top: 8px; }
.envelope.open { animation: none; }
.envelope.open .envelope__flap { transform: rotateX(180deg); z-index: 0; }
.envelope.open .envelope__seal { opacity: 0; }
.envelope.open .envelope__letter { transform: translateY(-62%); height: 150%; z-index: 5; }

@keyframes wobble { 0%,100% { rotate: -2deg; } 50% { rotate: 2deg; } }
@keyframes peekUp { from { translate: 0 100%; } }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: center;
  padding: 72px 16px calc(var(--dock-h) + 40px);
  text-align: center; overflow: hidden;
}
.hero__sky { position: absolute; inset: 0; pointer-events: none; }
.hero__sky i { position: absolute; width: 18px; height: 16px; opacity: .55; animation: drift linear infinite; }
@keyframes drift { from { translate: 0 0; } to { translate: 0 -120vh; } }

.hero__title {
  position: relative;
  font-size: clamp(56px, 13vw, 168px);
  line-height: .9;
  letter-spacing: -0.02em;
  color: var(--plum);
  text-shadow: 5px 5px 0 var(--berry-2), 10px 10px 0 rgb(61 31 69 / .12);
}
.hero__line { display: block; }
.hero__and { display: block; font-family: var(--hand); font-size: .38em; color: var(--berry); text-shadow: none; line-height: 1; margin: 2px 0 6px; }
.hero__title .ch { display: inline-block; }
.hero.play .hero__title .ch { animation: drop .7s both cubic-bezier(.25,1.7,.5,1); }
@keyframes drop { from { transform: translateY(-120px) rotate(-12deg); opacity: 0; } }
.hero__sub { max-width: 100%; text-wrap: balance; margin-top: 18px; font-family: var(--hand); font-size: clamp(24px, 3.5vw, 34px); color: var(--plum-2); }

.hero__stage { position: relative; margin-top: 18px; width: min(320px, 70vw); }
.gofrik-pet { border: 0; background: none; padding: 0; width: 100%; touch-action: manipulation; }
.gofrik-pet img { width: 100%; height: auto; aspect-ratio: 260 / 301; object-fit: contain; transform-origin: 50% 100%; user-select: none; -webkit-user-drag: none; }
.gofrik-pet.petted img { animation: squish .45s; }
.gofrik-pet.wiggle img { animation: wiggle .7s cubic-bezier(.3,1.5,.5,1); }
.gofrik-pet.roll img { animation: roll 1.1s cubic-bezier(.3,1.3,.5,1); }
.gofrik-pet.stroke img { animation: stroke .3s ease-in-out infinite; }
@keyframes wiggle { 15% { transform: translateY(-14%) rotate(-8deg); } 35% { transform: translateY(0) scale(1.06, .92); } 55% { transform: rotate(6deg); } 75% { transform: rotate(-4deg); } }
@keyframes roll { 0% { transform: rotate(0); } 30% { transform: translateY(-10%) rotate(-25deg) scale(.95); } 55% { transform: rotate(12deg) scale(1.04, .95); } 75% { transform: rotate(-5deg); } }
@keyframes stroke { 50% { transform: scale(1.03, .97) rotate(1.5deg); } }
.purr-word {
  position: fixed; z-index: 96; pointer-events: none; translate: -50% -50%;
  font-family: var(--hand); font-size: 28px; font-weight: 700; color: var(--berry);
  text-shadow: 2px 2px 0 var(--paper);
  animation: purrUp 1.2s ease-out forwards;
}
@keyframes purrUp { from { opacity: 0; transform: translate(0, 10px) scale(.6); } 20% { opacity: 1; transform: translate(calc(var(--dx) * .3), -10px) scale(1.1); } to { opacity: 0; transform: translate(var(--dx), -80px) scale(1); } }
.hero.play .gofrik-pet img { animation: hop .9s 1.1s both cubic-bezier(.3,1.6,.5,1); }
@keyframes squish { 30% { transform: scale(1.08, .9); } 60% { transform: scale(.96, 1.05); } }
@keyframes hop { from { transform: translateY(60%) scale(.6); opacity: 0; } }
.hero__heart {
  position: absolute; left: -12%; top: 18%; width: 54px; height: 48px;
  border: 0; padding: 0; background: none;
  animation: beat 1.1s infinite;
}
@keyframes beat { 0%, 40%, 100% { scale: 1; } 15% { scale: 1.18; } 25% { scale: .96; } }
.hero__scroll { position: absolute; bottom: calc(var(--dock-h) + 24px); font-size: 14px; opacity: .55; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 6px; } }

.bubble {
  position: absolute; right: -14%; top: -4%;
  background: var(--paper); padding: 10px 14px; max-width: 200px;
  font-size: 16px; line-height: 1.25; text-align: left;
  transform-origin: 0 100%;
}
.bubble::after {
  content: ''; position: absolute; left: 14px; bottom: -14px; width: 12px; height: 10px;
  background: var(--plum); clip-path: polygon(0 0, 100% 0, 0 100%);
}
.bubble.pop { animation: popIn .35s cubic-bezier(.3,1.8,.5,1); }
@keyframes popIn { from { scale: .4; opacity: 0; } }

/* ============ Ortak bölüm ============ */
.sec { padding: 96px 16px; max-width: 1120px; margin: 0 auto; }
.sec__head { text-align: center; margin-bottom: 44px; }
.sec__head .hand { margin-top: 10px; }

/* ============ Sayaç / Tamagotchi ============ */
.counter__wrap { display: grid; grid-template-columns: auto minmax(0, 360px); gap: 56px; justify-content: center; align-items: center; }
.tama {
  position: relative; width: 300px; height: 340px;
  background: var(--lilac);
  border-radius: 50% 50% 46% 46% / 56% 56% 44% 44%;
  box-shadow: inset -14px -16px 0 rgb(61 31 69 / .14), inset 10px 12px 0 rgb(255 255 255 / .45), 0 0 0 var(--px) var(--plum), 10px 12px 0 rgb(61 31 69 / .15);
  display: grid; justify-items: center; align-content: center; gap: 18px;
  padding-top: 18px;
}
.tama__chain { position: absolute; top: -34px; width: 30px; height: 40px; border: var(--px) solid var(--plum); border-radius: 50%; z-index: -1; }
.tama__screen {
  width: 186px; height: 168px; background: var(--lcd); color: var(--lcd-ink);
  box-shadow: 0 0 0 var(--px) var(--plum), inset 0 0 0 8px #f6d0dc;
  display: grid; justify-items: center; align-content: center; text-align: center;
  background-image: linear-gradient(rgb(90 36 80 / .06) 1px, transparent 1px), linear-gradient(90deg, rgb(90 36 80 / .06) 1px, transparent 1px);
  background-size: 4px 4px;
  overflow: hidden; position: relative;
}
.tama__pet { width: 54px; height: 54px; object-fit: contain; animation: tamaBob 1s steps(2) infinite; }
@keyframes tamaBob { 50% { translate: 0 -3px; } }
.tama__big { font-size: 40px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.tama__big.small { font-size: 26px; }
.tama__unit { font-size: 15px; }
.tama__clock { font-size: 18px; font-variant-numeric: tabular-nums; margin-top: 2px; letter-spacing: .04em; }
.tama__btns { display: flex; gap: 22px; }
.tama__btns button {
  width: 44px; height: 44px; border-radius: 50%; border: 0; position: relative;
  background: var(--berry); box-shadow: 0 0 0 var(--px) var(--plum), inset -4px -5px 0 rgb(0 0 0 / .18);
  transition: transform .08s;
}
.tama__btns button:nth-child(2) { translate: 0 10px; background: var(--calico); }
.tama__btns button:active { transform: scale(.9); }
.tama__btns span { position: absolute; top: 100%; left: 50%; translate: -50% 8px; font-size: 13px; white-space: nowrap; }

.milestones { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.milestones li { background: var(--paper); padding: 12px 16px; display: grid; grid-template-columns: 30px 1fr; gap: 2px 12px; align-items: center; }
.milestones li.done { background: #fff1f5; }
.milestones .mk { grid-row: span 2; width: 26px; height: 24px; }
.milestones li:not(.done) .mk { opacity: .3; }
.milestones b { font-size: 19px; }
.milestones small { font-size: 15px; color: var(--plum-2); }
.milestones li.next { --edge: var(--berry); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
.fact { background: var(--paper); padding: 16px 18px; }
.fact b { display: block; font-size: 30px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.fact span { font-size: 15px; color: var(--plum-2); }

/* ============ Anı tüneli ============ */
.memories { position: relative; height: 600vh; }
.memories__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); padding-bottom: calc(var(--dock-h) + 8px); }
.memories__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 28px max(16px, 4vw) 0; }
.memories__head .hand { font-size: clamp(26px, 3vw, 36px); color: var(--berry); }
.memories__track {
  display: flex; align-items: center; gap: clamp(28px, 4vw, 56px);
  padding: 0 max(16px, 6vw); will-change: transform; width: max-content; height: 100%; justify-self: start;
}
.month-card {
  flex: none; width: clamp(210px, 26vw, 300px); align-self: center;
  display: grid; gap: 8px;
}
.month-card b { font-size: clamp(64px, 10vw, 120px); line-height: .85; color: var(--berry); text-shadow: 4px 4px 0 var(--plum); }
.month-card span { font-size: clamp(28px, 3.4vw, 40px); line-height: 1; }
.month-card em { font-family: var(--hand); font-style: normal; font-size: 26px; color: var(--plum-2); }

.polaroid {
  flex: none; margin: 0; background: var(--paper); padding: 10px 10px 0;
  width: clamp(200px, 24vw, 290px);
  rotate: var(--r, 0deg); translate: 0 var(--y, 0);
  transition: rotate .25s, scale .25s;
  border: 0; cursor: zoom-in; text-align: left; position: relative;
}
.polaroid:hover { rotate: 0deg; scale: 1.04; z-index: 2; }
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--milk-2); }
.polaroid figcaption, .polaroid .cap { display: grid; gap: 2px; padding: 8px 4px 12px; min-height: 64px; }
.polaroid .hand { font-size: 22px; color: var(--plum); }
.polaroid time { font-size: 13px; color: var(--plum-2); }
.polaroid::before { /* bant */
  content: ''; position: absolute; top: -12px; left: 50%; width: 84px; height: 24px; translate: -50% 0; rotate: var(--tr, -3deg);
  background: rgb(185 167 245 / .7);
}
.polaroid .hand, #lb-cap { white-space: pre-line; }
.polaroid.lyrics .hand { font-size: 19px; line-height: 1.1; }
.censor {
  background: var(--plum); color: transparent; padding: 0 4px; cursor: pointer;
  border-radius: 2px; transition: background .35s, color .35s;
}
.censor:hover { background: var(--plum-2); }
.censor.open { background: var(--berry-2); color: var(--plum); cursor: text; }
.song-btn {
  justify-self: start; margin-top: 6px; padding: 4px 10px; font-size: 14px;
  background: var(--berry); color: #fff; cursor: pointer;
  box-shadow: 0 0 0 3px var(--plum);
}
.song-btn:hover { background: var(--plum); }
.polaroid.wide img { aspect-ratio: 5 / 4; }
.polaroid.wide { width: clamp(260px, 32vw, 380px); }

.milestone-pin {
  flex: none; display: grid; justify-items: center; gap: 6px; text-align: center; width: 150px;
}
.milestone-pin .h { width: 64px; height: 58px; animation: beat 1.4s infinite; }
.milestone-pin b { font-size: 22px; line-height: 1.1; }
.milestone-pin small { font-family: var(--hand); font-size: 22px; color: var(--plum-2); }

.sticker { flex: none; width: clamp(110px, 12vw, 160px); display: grid; justify-items: center; gap: 4px; rotate: var(--r, 0deg); translate: 0 var(--y, 0); border: 0; background: none; padding: 0; }
.sticker img { width: 100%; filter: drop-shadow(0 0 0 #fff) drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(4px 5px 0 rgb(61 31 69 / .2)); transition: scale .2s; }
.sticker:hover img, .sticker.petted img { scale: 1.08; }
.sticker span { font-family: var(--hand); font-size: 20px; }

.today-card {
  flex: none; width: clamp(220px, 24vw, 280px); aspect-ratio: 4 / 5.6; background: var(--paper);
  display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; padding: 20px;
  outline: var(--px) dashed var(--plum-2); outline-offset: -14px;
}
.today-card b { font-size: 44px; color: var(--berry); line-height: 1; }
.today-card span { font-family: var(--hand); font-size: 24px; }

.memories__path { position: relative; height: 120px; margin: 0 max(16px, 4vw); }
.memories__path::before { content: ''; position: absolute; left: 0; right: 0; bottom: 10px; height: var(--px); background: repeating-linear-gradient(90deg, var(--plum) 0 12px, transparent 12px 22px); opacity: .5; }
.memories__walker { position: absolute; bottom: 6px; left: 0; width: 120px; translate: -50% 0; }
.memories__walker img { width: 120px; height: 120px; object-fit: contain; transform-origin: 50% 100%; }
.memories__walker.walking img { animation: waddle .32s steps(2) infinite; }
@keyframes waddle { 50% { transform: translateY(-4px) rotate(4deg); } }

/* ============ Sevgi ölçer ============ */
.love__lab { display: grid; grid-template-columns: auto minmax(0, 460px); gap: 64px; justify-content: center; align-items: center; }
.tube { position: relative; width: 96px; height: 400px; display: grid; justify-items: center; }
.tube.shake { animation: shake .08s linear infinite; }
.tube.broken .tube__glass { animation: crack .5s forwards; }
@keyframes shake { 25% { translate: -3px 1px; } 75% { translate: 3px -1px; } }
@keyframes crack { to { rotate: 8deg; translate: 4px 10px; } }
.tube__glass { position: relative; width: 52px; height: 330px; background: var(--paper); box-shadow: 0 0 0 var(--px) var(--plum); overflow: hidden; }
.tube__fill { position: absolute; bottom: 0; left: 0; right: 0; height: 0%; background: var(--berry); background-image: linear-gradient(90deg, transparent 60%, rgb(255 255 255 / .35) 60% 76%, transparent 76%); }
.tube__bulb { width: 92px; height: 84px; margin-top: -10px; border-radius: 50%; background: var(--berry); box-shadow: 0 0 0 var(--px) var(--plum), inset -10px -10px 0 rgb(0 0 0 / .14), inset 10px 10px 0 rgb(255 255 255 / .25); position: relative; z-index: 1; }
.tube__ticks { position: absolute; top: 0; left: calc(50% + 34px); height: 330px; display: grid; align-content: space-between; }
.tube__ticks span { width: 14px; height: var(--px); background: var(--plum); }
.love__panel { position: relative; display: grid; justify-items: start; gap: 16px; min-height: 360px; align-content: center; }
.love__read { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; min-height: 2.4em; font-weight: 600; }
.love__pct { font-size: 64px; font-weight: 700; line-height: 1; color: var(--berry); font-variant-numeric: tabular-nums; }
.love__tip { font-size: 15px; color: var(--plum-2); }
.love__cat { position: absolute; right: -40px; bottom: -20px; width: 170px; transition: translate .6s cubic-bezier(.3,1.5,.5,1), rotate .6s; }
.love__cat.blown { translate: 120vw -60vh; rotate: 720deg; transition: translate 1.4s cubic-bezier(.5,0,.8,.4), rotate 1.4s; }
#love-btn { user-select: none; -webkit-user-select: none; touch-action: none; }
#love-btn.holding { background: var(--plum); }

/* ============ Barış kapısı ============ */
.peace-cta { display: grid; place-items: center; }
.note-card {
  position: relative; border: 0; background: #fff7c9; padding: 44px 40px 32px; max-width: 560px; rotate: -2deg;
  display: grid; gap: 12px; text-align: center; transition: rotate .25s, scale .25s;
}
.note-card:hover { rotate: 0deg; scale: 1.03; }
.note-card h2 { font-size: clamp(28px, 4.6vw, 44px); }
.note-card__pin { position: absolute; top: -10px; left: 50%; width: 22px; height: 22px; translate: -50% 0; border-radius: 50%; background: var(--berry); box-shadow: 0 0 0 var(--px) var(--plum); }
.note-card__cat { position: absolute; width: 130px; right: -46px; bottom: -40px; rotate: 6deg; }

/* ============ Barışalım overlay ============ */
.peace {
  position: fixed; inset: 0; z-index: 60; background: var(--milk);
  background-image: radial-gradient(circle at 50% 40%, #fff 0, transparent 65%);
  display: grid; place-items: center; overflow: hidden; padding: 24px 16px;
}
.peace__ask { display: grid; justify-items: center; gap: 14px; text-align: center; }
.peace__ask h2 { font-size: clamp(44px, 9vw, 88px); }
.peace__cat { width: min(260px, 56vw); transition: scale .3s; }
.peace__cloud { position: relative; width: 150px; height: 80px; margin-bottom: -26px; z-index: 1; animation: bob 2s ease-in-out infinite; }
.peace__cloud > span { position: absolute; inset: 0 0 auto; height: 76px; }
.peace__cloud i { position: absolute; top: 62px; width: 4px; height: 10px; background: #7fb3ff; animation: drip 0.9s linear infinite; }
@keyframes drip { from { translate: 0 0; opacity: 1; } to { translate: 0 60px; opacity: 0; } }
.peace__btns { display: flex; gap: 28px; margin-top: 18px; align-items: center; min-height: 90px; }
.btn--yes { background: var(--berry); font-size: min(calc(22px * var(--grow, 1)), 13vw); padding: min(calc(12px * var(--grow, 1)), 6vw) min(calc(24px * var(--grow, 1)), 9vw); transition: font-size .25s, padding .25s; }
.btn--yes.beg { animation: beg .4s cubic-bezier(.3,1.8,.5,1); }
@keyframes beg { 40% { scale: 1.12; rotate: -3deg; } 70% { rotate: 2deg; } }
.btn--yes.takeover {
  position: fixed; inset: 0; z-index: 75; width: 100%; height: 100%;
  font-size: clamp(64px, 18vw, 220px); padding: 0; box-shadow: none;
  animation: takeover .7s cubic-bezier(.3,1.4,.5,1), beat 1.1s .7s infinite;
}
@keyframes takeover { from { clip-path: circle(4% at 50% 60%); } to { clip-path: circle(75% at 50% 50%); } }
.btn--no { background: var(--plum-2); transition: left .22s cubic-bezier(.3,1.4,.5,1), top .22s cubic-bezier(.3,1.4,.5,1), scale .2s; }
.btn--no.fleeing { position: fixed; z-index: 70; }
.peace__done { display: grid; justify-items: center; gap: 20px; position: relative; }
.peace__happy { position: absolute; width: 170px; left: -190px; bottom: -70px; }
.treaty { background: var(--paper); padding: 34px 34px 28px; max-width: 520px; position: relative; animation: popIn .5s cubic-bezier(.3,1.6,.5,1); }
.treaty h2 { font-size: clamp(30px, 5vw, 42px); text-align: center; }
.treaty__date { text-align: center; font-family: var(--hand); font-size: 22px; color: var(--plum-2); margin-top: 4px; }
.treaty ol { margin: 20px 0; padding-left: 22px; display: grid; gap: 8px; font-size: 17px; }
.treaty__sign { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 10px 0 22px; }
.treaty__sign > div { display: grid; justify-items: center; gap: 4px; border-top: var(--px) dotted var(--plum-2); padding-top: 8px; }
.treaty__sign i { width: 44px; height: 44px; opacity: 0; scale: 2; transition: opacity .2s, scale .35s cubic-bezier(.3,1.6,.5,1); }
.treaty__sign i.on { opacity: 1; scale: 1; }
.treaty .btn { display: block; margin: 0 auto; }
.stamp {
  position: absolute; right: 18px; top: 72px; padding: 6px 14px; font-size: 26px; font-weight: 700; color: var(--berry);
  border: var(--px) solid var(--berry); rotate: -14deg; opacity: 0; scale: 3; pointer-events: none;
}
.stamp.on { opacity: .9; scale: 1; transition: opacity .15s, scale .3s cubic-bezier(.3,1.5,.5,1); }

/* ============ Oyunlar ============ */
.console { background: var(--lilac); padding: 18px; max-width: 760px; margin: 0 auto; }
.console__tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.console__tabs button { border: 0; background: var(--lilac-2); padding: 8px 16px; font-size: 17px; box-shadow: 0 0 0 var(--px) var(--plum); }
.console__tabs button[aria-selected="true"] { background: var(--plum); color: #fff; }
.console__screen { background: var(--paper); box-shadow: 0 0 0 var(--px) var(--plum); min-height: 420px; position: relative; }
.game { position: relative; }
#catch-canvas, #furkan-canvas { display: block; width: 100%; height: auto; aspect-ratio: 640 / 420; touch-action: none; background: linear-gradient(#fff4f8, #ffe3ec); }
.game__overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 20px; background: rgb(255 250 243 / .92); }
.game__overlay p { max-width: 420px; }
.game__title { font-size: 30px; font-weight: 700; }
.game__best { font-size: 16px; color: var(--plum-2); }
.game__hud { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-top: var(--px) solid var(--plum); font-size: 17px; gap: 12px; }
.game__hud b { font-variant-numeric: tabular-nums; }

.memory { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px; max-width: 540px; margin: 0 auto; }
.mcard { aspect-ratio: 1; border: 0; padding: 0; background: none; perspective: 600px; }
.mcard__in { display: block; position: relative; width: 100%; height: 100%; transition: transform .4s; transform-style: preserve-3d; }
.mcard.flip .mcard__in, .mcard.won .mcard__in { transform: rotateY(180deg); }
.mcard__f, .mcard__b { position: absolute; inset: 0; backface-visibility: hidden; display: grid; place-items: center; box-shadow: 0 0 0 var(--px) var(--plum); }
.mcard__b { background: var(--berry-2); background-image: radial-gradient(circle, rgb(255 255 255 / .55) 3px, transparent 4px); background-size: 18px 18px; }
.mcard__b span { display: block; width: 40%; height: 40%; }
.mcard__f { background: #fff; transform: rotateY(180deg); padding: 6px; }
.mcard__f img { width: 100%; height: 100%; object-fit: contain; }
.mcard.won .mcard__f { background: #fff1f5; }

.scratch__intro { padding: 16px 18px 0; font-size: 17px; }
.scratch { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 18px; }
.coupon { position: relative; aspect-ratio: 16 / 9; background: #fff7c9; box-shadow: 0 0 0 var(--px) var(--plum); display: grid; place-content: center; text-align: center; padding: 10px; gap: 4px; overflow: hidden; }
.coupon b { font-size: 22px; line-height: 1.1; }
.coupon span { font-family: var(--hand); font-size: 21px; line-height: 1.1; }
.coupon canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; transition: opacity .5s; }
.coupon.clear canvas { opacity: 0; pointer-events: none; }

/* ============ Footer ============ */
.foot { text-align: center; padding: 80px 16px calc(var(--dock-h) + 60px); display: grid; justify-items: center; gap: 6px; }
.foot__cat { width: min(320px, 80vw); margin-bottom: 10px; }
.foot__love { font-size: clamp(40px, 7vw, 72px); font-weight: 700; color: var(--berry); text-shadow: 4px 4px 0 var(--plum); }
.foot__visits { font-size: 14px; color: var(--plum-2); margin-top: 18px; }

/* ============ Alt menü ============ */
.dock {
  position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); translate: -50% 0; z-index: 40;
  display: flex; gap: 2px; padding: 6px; background: var(--paper);
  box-shadow: 0 -4px 0 var(--plum), 0 4px 0 var(--plum), -4px 0 0 var(--plum), 4px 0 0 var(--plum), 6px 8px 0 rgb(61 31 69 / .2);
  transition: translate .4s cubic-bezier(.3,1.4,.5,1);
}
.dock.hide { translate: -50% 140%; }
.dock a, .dock button { display: grid; justify-items: center; gap: 2px; padding: 6px 10px; text-decoration: none; color: var(--plum); border: 0; background: none; min-width: 54px; }
.dock span { width: 24px; height: 22px; }
.dock em { font-style: normal; font-size: 12px; line-height: 1; }
.dock a:hover, .dock button:hover, .dock a.active { background: var(--milk); }
.dock button[aria-pressed="true"] { background: var(--plum); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.vol { display: grid; align-items: center; padding: 0 10px 0 6px; }
.vol input {
  --v: 70%;
  -webkit-appearance: none; appearance: none; width: 84px; height: 10px; margin: 0; cursor: pointer;
  background: linear-gradient(90deg, var(--berry) var(--v), var(--milk-2) var(--v));
  box-shadow: 0 0 0 3px var(--plum);
}
.vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 20px; background: var(--paper); box-shadow: 0 0 0 3px var(--plum); }
.vol input::-moz-range-thumb { width: 14px; height: 20px; border: 0; border-radius: 0; background: var(--paper); box-shadow: 0 0 0 3px var(--plum); }
.vol input:focus-visible { outline: 3px solid var(--calico); outline-offset: 4px; }

/* ============ Şarkı çalar (sağ üst) ============ */
.song { position: fixed; top: 14px; right: 14px; z-index: 46; display: flex; align-items: flex-start; gap: 10px; flex-direction: row-reverse; }
.song__fab {
  flex: none; width: 54px; height: 54px; padding: 10px; border: 0; background: var(--paper);
  box-shadow: 0 0 0 var(--px) var(--plum), 4px 5px 0 rgb(61 31 69 / .2);
}
.song__fab span, .song__fab .pix { display: block; width: 100%; height: 100%; }
.song.playing .song__fab span { animation: bob 1s ease-in-out infinite; }
.song.playing .song__fab::after { content: '♪'; position: absolute; top: -10px; left: -6px; font-size: 18px; color: var(--berry); animation: bob 1.2s ease-in-out infinite; }
.song__fab { position: relative; }
.song__panel {
  width: min(300px, calc(100vw - 96px)); padding: 10px; display: grid; gap: 8px; background: var(--paper);
  box-shadow: 0 0 0 var(--px) var(--plum), 6px 8px 0 rgb(61 31 69 / .2);
  transform-origin: right top; transition: transform .35s cubic-bezier(.3,1.4,.5,1), opacity .2s, visibility 0s .35s;
  transform: translateX(30px) scale(.6); opacity: 0; visibility: hidden; pointer-events: none;
}
.song.open .song__panel { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: transform .35s cubic-bezier(.3,1.4,.5,1), opacity .2s; }
.song__title { margin: 0; font-size: 15px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song__btns { display: flex; gap: 8px; }
.song__btns button { flex: 1; height: 40px; border: 0; background: var(--lilac-2); color: var(--plum); font-size: 14px; font-weight: 700; box-shadow: 0 0 0 3px var(--plum); }
.song__btns .song__play { background: var(--berry); color: #fff; }
.song__btns #song-close { flex: none; width: 40px; background: var(--milk); }
.song__frame iframe { display: block; width: 100%; height: 80px; border: 0; border-radius: 12px; }

.btn--alt { background: var(--plum-2); }

/* ============ Kasetler ============ */
.tapes { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 40px 48px; align-items: start; max-width: 1180px; }
.tapes .sec__head { grid-column: 1 / -1; margin-bottom: 4px; }
.deck {
  position: sticky; top: 24px; margin-top: 26px;
  background: var(--plum); padding: 22px 20px 20px; display: grid; gap: 18px; justify-items: center;
  box-shadow: inset 0 -10px 0 rgb(0 0 0 / .25), 10px 12px 0 rgb(61 31 69 / .18);
}
.deck__top { position: absolute; top: -26px; left: 50%; translate: -50% 0; width: 60%; height: 26px; border: 6px solid var(--plum); border-bottom: 0; }
.deck__top i { display: none; }
.deck__window { width: 100%; padding: 14px; background: #2a1530; box-shadow: inset 0 0 0 4px #000a; }
.deck__btns { display: flex; gap: 10px; }
.deck__btns button {
  width: 52px; height: 44px; border: 0; background: var(--lilac-2); color: var(--plum); font-size: 15px; font-weight: 700;
  box-shadow: inset 0 -5px 0 rgb(61 31 69 / .25), 0 0 0 3px #000a;
}
.deck__btns button:active { translate: 0 3px; box-shadow: inset 0 -2px 0 rgb(61 31 69 / .25), 0 0 0 3px #000a; }
.deck__btns .deck__play { background: var(--berry); color: #fff; width: 64px; }
.deck.playing { animation: thump .5s steps(2) infinite; }
@keyframes thump { 50% { translate: 0 -2px; } }

.cassette {
  --c: var(--berry);
  position: relative; display: grid; grid-template-rows: 1fr auto; gap: 6px;
  min-height: 104px; padding: 9px 9px 8px; border: 0; text-align: left;
  background: var(--c); color: var(--plum);
  box-shadow: 0 0 0 var(--px) var(--plum), 5px 6px 0 rgb(61 31 69 / .18);
  rotate: var(--r, 0deg); transition: rotate .2s, translate .2s;
}
.cassette:hover, .cassette:focus-visible { rotate: 0deg; translate: 0 -4px; }
.cassette__label { display: grid; align-content: start; background: var(--paper); padding: 5px 8px; overflow: hidden; min-height: 0; }
.cassette__label b { font-size: 15px; line-height: 1.15; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cassette__label em { font-family: var(--hand); font-style: normal; font-size: 17px; line-height: 1; color: var(--plum-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cassette__label small { font-size: 12px; color: var(--berry); }
.cassette__reels { display: flex; justify-content: center; gap: 34%; height: 22px; background: #2a1530; align-items: center; margin-inline: 14%; }
.cassette__reels i { width: 16px; height: 16px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 4px #7a6a86; }
.cassette__reels i::after { content: ''; display: block; width: 4px; height: 16px; margin: 0 auto; background: #2a1530; }
.cassette.on { box-shadow: 0 0 0 var(--px) var(--plum), 0 0 0 10px var(--paper), 0 0 0 14px var(--plum); rotate: 0deg; }
.cassette.on .cassette__reels i, .deck.playing .cassette__reels i { animation: spin 1.2s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.cassette--big { width: 100%; rotate: 0deg; box-shadow: 0 0 0 var(--px) #000a; }
.cassette--big .cassette__label b { font-size: 20px; }
.cassette--big .cassette__label em { font-size: 22px; }
.cassette--big .cassette__reels { height: 34px; }
.cassette--big .cassette__reels i { width: 26px; height: 26px; box-shadow: inset 0 0 0 6px #7a6a86; }
.cassette--big .cassette__reels i::after { height: 26px; width: 5px; }
.cassette--big.insert { animation: insert .45s cubic-bezier(.3,1.5,.5,1); }
@keyframes insert { from { translate: 0 -40%; opacity: 0; } }
.shelf-toggle { display: none; }
.shelf {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 18px;
  max-height: 640px; overflow-y: auto; padding: 22px 18px 26px; scrollbar-color: var(--plum) var(--lilac-2);
  background: repeating-linear-gradient(var(--lilac-2) 0 128px, var(--plum) 128px 134px);
  box-shadow: 0 0 0 var(--px) var(--plum);
}

/* ============ Şu durumda aç ============ */
.envelopes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 40px 28px; max-width: 980px; margin: 0 auto; }
.env { position: relative; border: 0; background: none; padding: 0; display: grid; gap: 12px; justify-items: center; rotate: var(--r); transition: rotate .2s, translate .2s; }
.env:hover, .env:focus-visible { rotate: 0deg; translate: 0 -6px; }
.env__body {
  position: relative; width: 100%; aspect-ratio: 3 / 2; background: var(--paper); perspective: 600px;
  box-shadow: 0 0 0 var(--px) var(--plum), 7px 8px 0 rgb(61 31 69 / .16);
  background-image: linear-gradient(to top right, transparent 49.4%, var(--plum) 49.6% 50.4%, transparent 50.6%), linear-gradient(to top left, transparent 49.4%, var(--plum) 49.6% 50.4%, transparent 50.6%);
  background-size: 50% 58%; background-repeat: no-repeat; background-position: left bottom, right bottom;
}
.env__flap {
  position: absolute; inset: 0 0 auto; height: 60%; background: var(--milk-2); transform-origin: top;
  clip-path: polygon(0 0, 100% 0, 50% 100%); transition: transform .5s ease-in;
}
.env__flap::after { content: ''; position: absolute; inset: 0; background: var(--plum); clip-path: polygon(0 0, 100% 0, 50% 100%, 50% calc(100% - 6px), calc(100% - 7px) 3px, 7px 3px, 50% calc(100% - 6px), 50% 100%); }
.env__heart { position: absolute; left: 50%; top: 52%; translate: -50% -50%; width: 34px; height: 30px; background: var(--berry); clip-path: polygon(50% 100%, 0 40%, 0 15%, 15% 0, 35% 0, 50% 15%, 65% 0, 85% 0, 100% 15%, 100% 40%); transition: opacity .2s; }
.env__when { font-size: 26px; color: var(--plum); text-align: center; }
.env.opening .env__flap { transform: rotateX(180deg); }
.env.is-open .env__flap { transform: rotateX(180deg) scaleY(.3); }
.env.opening .env__heart, .env.is-open .env__heart { opacity: 0; }
.env.opening .env__body { animation: shake .15s 3; }
.env.is-open .env__body { background-color: #fff1f5; }
.env__stamp {
  position: absolute; top: 20%; right: -8px; rotate: 10deg; padding: 4px 8px; font-size: 13px;
  color: var(--berry); border: 3px solid var(--berry); background: rgb(255 250 243 / .9);
}

/* ============ Gofrik'in odası ============ */
.room__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; }
.pet-card, .booth { background: var(--paper); padding: 22px; display: grid; gap: 16px; justify-items: center; box-shadow: 0 0 0 var(--px) var(--plum), 8px 10px 0 rgb(61 31 69 / .15); }
.pet-card__stage { position: relative; width: 100%; height: 330px; background: linear-gradient(transparent 80%, var(--plum) 80% calc(80% + 4px), var(--milk-2) 0); display: grid; place-items: end center; }
.pet-card__cat { position: relative; width: 220px; margin-bottom: 26px; cursor: pointer; transform-origin: 50% 100%; }
.pet-card__cat img { display: block; width: 100%; height: auto; aspect-ratio: 449 / 520; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.pet-card__cat.munch { animation: wiggle .6s cubic-bezier(.3,1.5,.5,1); }
.acc { position: absolute; inset: 0; pointer-events: none; }
.acc__item { position: absolute; translate: -50% -50%; display: block; animation: popIn .3s cubic-bezier(.3,1.8,.5,1); }
.acc__item .pix { display: block; width: 100%; height: auto; }
.acc--crown { left: 30%; top: 12%; width: 32%; }
.acc--hat { left: 31%; top: 4%; width: 22%; rotate: -8deg; }
.acc--bow { left: 47%; top: 11%; width: 20%; rotate: 18deg; }
.acc--glasses { left: 28%; top: 33%; width: 38%; }
.acc--tie { left: 27%; top: 50%; width: 22%; }
.bubble--room { right: 4%; top: 6%; left: auto; max-width: 180px; }
.bowl { position: absolute; right: 9%; bottom: 12px; width: 84px; z-index: 2; }
.bowl > .pix { display: block; width: 100%; height: auto; }
.room__window { position: absolute; left: 8%; top: 10%; width: 96px; opacity: .9; }
.room__window .pix { display: block; width: 100%; height: auto; }
.room__window::after { content: ''; position: absolute; left: -10px; right: -10px; top: -8px; height: 10px; background: var(--berry-2); box-shadow: 0 0 0 3px var(--plum); }
.room__rug { position: absolute; left: 50%; bottom: 8px; translate: -50% 0; width: 66%; height: 30px; background: repeating-linear-gradient(90deg, var(--lilac) 0 12px, var(--lilac-2) 12px 24px); box-shadow: 0 0 0 3px var(--plum); clip-path: polygon(4% 0, 96% 0, 100% 100%, 0 100%); }
.pet-card__cat { z-index: 1; }
.pet-card__cat.eat { animation: eat 1s ease-in-out; }
@keyframes eat { 20%, 60% { transform: translateX(8%) rotate(7deg) translateY(4%); } 40%, 80% { transform: translateX(8%) rotate(3deg); } }
.treats__title { margin: 0; font-size: 18px; font-weight: 600; }
.treats { display: flex; gap: 12px; justify-content: center; margin-top: -6px; }
.treats button { display: grid; justify-items: center; gap: 4px; width: 78px; padding: 10px 6px 8px; border: 0; background: #fff7c9; box-shadow: 0 0 0 3px var(--plum), 0 5px 0 3px var(--plum); transition: translate .1s; }
.treats button:hover { background: #fff1a8; }
.treats button:active { translate: 0 4px; box-shadow: 0 0 0 3px var(--plum), 0 1px 0 3px var(--plum); }
.treats button span { width: 36px; height: 40px; display: grid; place-items: center; }
.treats button .pix { width: 100%; height: 100%; }
.treats em { font-style: normal; font-size: 15px; }
.falling-food { position: absolute; left: 50%; bottom: 60%; width: 30px; translate: -50% 0; animation: fall .65s cubic-bezier(.5,0,1,1) forwards; }
.falling-food .pix { display: block; width: 100%; height: auto; }
@keyframes fall { from { transform: translateY(-180px) rotate(-30deg); } to { transform: translateY(18px) rotate(10deg); opacity: .4; } }
.meter-row { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 340px; font-size: 16px; }
.meter { flex: 1; height: 18px; background: var(--milk-2); box-shadow: 0 0 0 3px var(--plum); }
.meter i { display: block; height: 100%; background: var(--calico); transition: width .4s; }
.meter i.low { background: var(--berry); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .55; } }
.wardrobe { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.wardrobe button { width: 56px; height: 50px; padding: 8px; border: 0; background: var(--milk); box-shadow: 0 0 0 3px var(--plum); }
.wardrobe button .pix { width: 100%; height: 100%; }
.wardrobe button[aria-pressed="true"] { background: var(--lilac); box-shadow: 0 0 0 3px var(--plum), 0 0 0 7px var(--berry-2); }

.booth__frame { width: 100%; max-width: 380px; background: #fff; padding: 14px 14px 6px; box-shadow: 0 0 0 3px var(--plum); rotate: -1.5deg; }
.booth__view { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--milk-2); touch-action: none; }
.booth__view video, .booth__view > img:not(.booth__sticker) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.booth__view video { scale: -1 1; }
.booth__view [hidden] { display: none; }
.booth__sticker { position: absolute; translate: -50% -50%; height: auto; cursor: grab; z-index: 2; user-select: none; filter: drop-shadow(3px 4px 0 rgb(61 31 69 / .25)); }
.booth__sticker.drag { cursor: grabbing; scale: 1.05; }
.booth__view:not(.live) .booth__sticker { opacity: .85; }
#booth-result { z-index: 3; object-fit: contain !important; background: var(--paper); }
.booth__empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 20px; z-index: 1; }
.booth__empty [data-pix] { width: 64px; height: 48px; }
.booth__view.flash::after { content: ''; position: absolute; inset: 0; z-index: 4; background: #fff; animation: flash .5s forwards; }
@keyframes flash { to { opacity: 0; } }
.booth__cap { text-align: center; margin: 6px 0 4px; font-size: 26px; }
.booth__stickers { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.booth__stickers button { width: 54px; height: 54px; padding: 4px; border: 0; background: var(--milk); box-shadow: 0 0 0 3px var(--plum); }
.booth__stickers img { width: 100%; height: 100%; object-fit: contain; }
.booth__stickers button[aria-pressed="true"] { background: var(--lilac); }
.booth__size { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.booth__size input { accent-color: var(--berry); }
.booth__btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.booth__btns .btn { font-size: 17px; padding: 10px 18px; text-decoration: none; cursor: pointer; }
.booth__btns [hidden] { display: none; }

/* ============ Nah sayacı ============ */
#furkan-canvas { cursor: pointer; background: linear-gradient(#fff8e6, #ffe9d1); }
.nah { display: flex; align-items: center; gap: 22px; max-width: 760px; margin: 36px auto 0; padding: 16px 22px; background: #fff7c9; box-shadow: 0 0 0 var(--px) var(--plum), 8px 10px 0 rgb(61 31 69 / .15); }
.nah__btn { flex: none; width: 104px; height: 104px; padding: 12px; border: 0; background: var(--paper); box-shadow: 0 0 0 var(--px) var(--plum), inset 0 -8px 0 var(--milk-2); }
.nah__btn .pix, .nah__btn span { display: block; width: 100%; height: 100%; }
.nah__btn.jab span { animation: jab .35s cubic-bezier(.3,1.8,.5,1); }
@keyframes jab { 40% { transform: translateY(-14%) scale(1.15) rotate(-8deg); } }
.nah__info p { margin: 0; }
.nah__title { font-size: 15px; color: var(--plum-2); }
.nah__count { font-size: 22px; }
.nah__count b { font-size: 40px; color: var(--berry); }
.nah-word { font-family: var(--pixel); font-size: 26px; }

/* ============ Lightbox / modal ============ */
.lightbox, .modal { position: fixed; inset: 0; z-index: 80; background: rgb(61 31 69 / .78); display: grid; place-items: center; padding: 20px 56px; }
.polaroid--big { width: auto; max-width: min(520px, 100%); rotate: 0deg; cursor: default; animation: popIn .3s cubic-bezier(.3,1.5,.5,1); }
.polaroid--big:hover { scale: 1; }
.polaroid--big img { aspect-ratio: auto; max-height: 68svh; object-fit: contain; }
.polaroid--big .hand { font-size: 26px; }
.x { position: absolute; top: 12px; right: 14px; width: 48px; height: 48px; border: 0; background: var(--paper); font-size: 30px; line-height: 1; box-shadow: 0 0 0 var(--px) var(--plum); z-index: 3; }
.lb-nav { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 64px; border: 0; background: var(--paper); font-size: 36px; box-shadow: 0 0 0 var(--px) var(--plum); z-index: 2; }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.letter { position: relative; background: var(--paper); padding: 36px 32px 24px; max-width: 460px; display: grid; gap: 12px; animation: popIn .4s cubic-bezier(.3,1.5,.5,1); }
.letter p { font-family: var(--hand); font-size: 26px; line-height: 1.2; }
.letter p:first-child { font-family: var(--pixel); font-size: 24px; font-weight: 700; color: var(--berry); }
.letter img { width: 170px; justify-self: end; margin: -10px -10px -40px 0; }
.letter .x { top: -18px; right: -18px; }

/* ============ Sürprizler ============ */
.peek { position: fixed; z-index: 30; bottom: -200px; left: 8vw; border: 0; background: none; padding: 0; width: 130px; transition: bottom .6s cubic-bezier(.3,1.5,.5,1); }
.peek.show { bottom: calc(var(--dock-h) - 30px); }
.toast {
  position: fixed; left: 50%; top: 18px; translate: -50% calc(-100% - 40px); z-index: 90; visibility: hidden;
  background: var(--paper); padding: 10px 18px; max-width: calc(100vw - 32px); text-align: center;
  box-shadow: 0 -4px 0 var(--plum), 0 4px 0 var(--plum), -4px 0 0 var(--plum), 4px 0 0 var(--plum);
  transition: translate .4s cubic-bezier(.3,1.5,.5,1), visibility .4s;
}
.toast.show { translate: -50% 0; visibility: visible; }
.fx { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 95; }
.parade { position: fixed; bottom: 80px; z-index: 35; width: 110px; pointer-events: none; animation: parade 5s linear both; }
.parade img { animation: waddle .3s steps(2) infinite; }
@keyframes parade { from { left: -140px; } to { left: calc(100vw + 40px); } }
body.night { --milk: #2b2140; --milk-2: #3a2c55; --plum: #fbe9f3; --plum-2: #d8c4ea; --paper: #3d2f5c; --lcd: #f7d9e6; }
body.night .tama__screen { color: #5a2450; }
body.night .btn, body.night .dock button[aria-pressed="true"] { color: #fff; }
body.night .btn--small { background: var(--berry); }
body.night .milestones li.done { background: #4b3b6e; }
body.night .note-card { background: #4b3b6e; }

/* ============ Mobil ============ */
@media (max-width: 860px) {
  .sec { padding-block: 64px; }
  .counter__wrap, .love__lab { grid-template-columns: 1fr; justify-items: center; gap: 48px; }
  .milestones { width: 100%; max-width: 420px; }
  .facts { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .bubble { right: -6%; top: 2%; max-width: 150px; font-size: 14px; }
  .hero__heart { left: -6%; width: 42px; height: 38px; }
  .love__panel { justify-items: center; text-align: center; min-height: 0; }
  .love__cat { position: static; }
  /* Telefonda tüp solda, buton sağda: ikisi birlikte ekrana sığar. */
  .love__lab { grid-template-columns: auto minmax(0, 1fr); gap: 14px; justify-items: stretch; align-items: center; }
  .tube { width: 74px; height: 250px; } .tube__glass, .tube__ticks { height: 190px; }
  .tube__glass { width: 40px; } .tube__bulb { width: 70px; height: 64px; } .tube__ticks { left: calc(50% + 26px); }
  .love__panel { gap: 10px; }
  .love__read { font-size: 20px; min-height: 2.4em; }
  .love__pct { font-size: 48px; }
  #love-btn { font-size: 17px; padding: 12px 14px; }
  .love__tip { font-size: 13px; }
  .love__cat { width: 96px; }
  .love .sec__head { margin-bottom: 24px; }
  .game__overlay { gap: 6px; padding: 10px 14px; }
  .game__overlay p { font-size: 14px; line-height: 1.35; margin: 0; }
  .game__overlay .game__title { font-size: 21px; line-height: 1.1; }
  .game__overlay .btn { font-size: 16px; padding: 8px 18px; }
  .console { padding: 12px; }
  .console__screen { min-height: 0; }
  .console__tabs { gap: 8px; }
  .console__tabs button { font-size: 14px; padding: 6px 10px; }
  .memory { grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px; }
  .scratch { grid-template-columns: 1fr; }
  .note-card { padding: 40px 22px 70px; }
  .note-card__cat { right: -8px; bottom: -36px; width: 110px; }
  .peace__happy { position: static; }
  .lightbox { padding: 16px; }
  .lb-nav { top: auto; bottom: 16px; translate: 0; }
  .dock { gap: 0; padding: 4px; }
  .dock a, .dock button { min-width: 0; padding: 6px 8px; }
  .memories__head { flex-direction: column; gap: 4px; }
  .polaroid { width: 66vw; }
  .polaroid.wide { width: 80vw; }
  .polaroid .hand { font-size: 21px; }
  .month-card { width: 56vw; }
  .sticker { width: 40vw; }
  .today-card { width: 64vw; }
}
@media (max-width: 860px) {
  .song { top: 10px; right: 10px; }
  .song__fab { width: 46px; height: 46px; padding: 8px; }
  .dock { max-width: calc(100vw - 16px); overflow-x: auto; scrollbar-width: none; }
  .tapes { grid-template-columns: minmax(0, 1fr); }
  .deck { position: relative; top: 0; width: min(360px, 100%); justify-self: center; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; padding: 18px 12px; max-height: none; overflow: visible; }
  .shelf:not(.open) { display: none; }
  .shelf-toggle { display: block; justify-self: center; font-size: 17px; }
  .room__grid { grid-template-columns: minmax(0, 1fr); }
  .pet-card, .booth { padding: 16px; }
  .envelopes { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 32px 18px; }
  .env__when { font-size: 22px; }
  .nah { gap: 14px; padding: 14px; }
  .nah__btn { width: 84px; height: 84px; }
  .vol { padding: 0 6px 0 4px; }
  .vol input { width: 64px; }
}
@media (max-width: 400px) {
  .dock em { display: none; }
  .tama { scale: .9; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .memories { height: auto; }
  .memories__pin { position: relative; height: auto; overflow-x: auto; }
  .memories__track { padding-block: 40px; }
}
