/*
 * Mobil öncelikli: temel kurallar telefon içindir (≈360–430 px).
 * Daha geniş ekranlar aşağıdaki min-width blokları ile genişletilir.
 */
:root {
  color-scheme: light;
  --paper: #f4ecdc;
  --card: #fffdf8;
  --ink: #2f2a26;
  --muted: #6e6259;
  --line: #dccfb8;
  --accent: #b5473a;
  --accent-soft: color-mix(in srgb, var(--accent) 14%, #fbf3e4);
  --accent-deep: color-mix(in srgb, var(--accent) 78%, #1d1410);
  --kraft: #cdb08a;
  --tape-pink: rgb(236 196 182 / .82);
  --tape-sage: rgb(196 214 190 / .85);
  --tape-mustard: rgb(240 214 140 / .82);
  --tape-blue: rgb(190 208 226 / .85);
  --shadow: 0 1px 2px rgb(60 40 20 / .10), 0 8px 22px rgb(60 40 20 / .14);
  --hand: 'Bradley Hand', 'Segoe Print', 'Noteworthy', 'Chalkboard SE', cursive;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --type: 'American Typewriter', 'Courier New', ui-monospace, monospace;
  --gutter: 18px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 16px/1.6 var(--serif); min-height: 100dvh;
  padding: 0 var(--safe-right) 0 var(--safe-left);
  background:
    radial-gradient(ellipse at 15% -10%, #fdf8ee 0, transparent 55%),
    radial-gradient(rgb(110 80 40 / .06) 1px, transparent 1.2px) 0 0 / 7px 7px,
    var(--paper);
}
button, input { font: inherit; color: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1, h2, p, figcaption { overflow-wrap: anywhere; }
.wrap { width: calc(100% - var(--gutter) * 2); max-width: 1080px; margin-inline: auto; }
.doodle { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Washi bant */
.tape {
  position: absolute; z-index: 2; width: 80px; height: 26px; pointer-events: none;
  background: repeating-linear-gradient(-45deg, rgb(255 255 255 / .28) 0 5px, transparent 5px 11px), var(--tape-pink);
  clip-path: polygon(0 8%, 4% 0, 9% 10%, 14% 0, 100% 4%, 97% 50%, 100% 96%, 92% 100%, 86% 90%, 80% 100%, 0 95%, 3% 50%);
  box-shadow: 0 1px 1px rgb(0 0 0 / .04);
}

/* Üst bilgi */
.site-header { min-height: calc(68px + var(--safe-top)); padding-top: var(--safe-top); display: flex; align-items: center; border-bottom: 1px dashed var(--line); }
.brand { display: flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; color: var(--ink); font: 21px/1 var(--hand); }
.brand em, .footer-mark em { font-style: normal; color: var(--accent); }
.brand-heart, .entry-heart { width: 24px; height: 21px; fill: var(--accent); transform: rotate(-10deg); flex-shrink: 0; }

/* Kapak */
.hero { display: grid; justify-items: center; padding: 34px 0 40px; }
h1 { font: 600 clamp(32px, 9vw, 56px)/1.1 var(--serif); letter-spacing: -.015em; margin: 0; max-width: 560px; text-wrap: balance; }
.hero-polaroid { position: relative; width: min(300px, calc(100% - 48px)); margin: 0; transform: rotate(2.5deg); }
.hero-polaroid .face.front { padding: 12px 12px 0; }
.hero-polaroid .tape-left { top: -12px; left: -16px; transform: rotate(-32deg); }
.hero-polaroid .tape-right { top: -12px; right: -16px; transform: rotate(30deg); background-color: var(--tape-sage); }
.photo-frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #e7dac2; }
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) sepia(.06); }
.photo-frame.has-photo .photo-slot { display: none; }
.photo-slot {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: #8a7457; background: linear-gradient(160deg, #eadfc9, #d9c6a5); text-align: center; padding: 0 20px;
}
.photo-slot::after { content: ''; position: absolute; inset: 12px; border: 2px dashed rgb(138 116 87 / .45); border-radius: 2px; }
.photo-slot svg { width: 52px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.photo-slot span { font: 19px var(--hand); }
.hero-polaroid figcaption { min-height: 58px; display: grid; place-items: center; padding: 8px 6px 12px; font: 21px/1.25 var(--hand); text-align: center; }

/* Düğme */
.button {
  display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 52px; padding: 12px 24px;
  background: var(--accent); color: #fffaf3; border: 0; border-radius: 6px; text-decoration: none;
  font: 600 16px var(--serif); letter-spacing: .01em; box-shadow: 0 3px 0 var(--accent-deep);
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--accent-deep); }
.button:disabled { opacity: .6; transform: none; }

/* Salla ipucu */
.shake-hint {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 24px; padding: 8px 18px 8px 14px; border: 1px dashed var(--line);
  border-radius: 999px; background: rgb(255 253 248 / .6); color: var(--muted); font: 18px/1 var(--hand);
}
.shake-hint svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; animation: jiggle 2.6s ease-in-out infinite; }
.shake-hint.armed { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }

/* Takvim */
.section-top { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.eyebrow { margin: 0 0 6px; font: 11px/1.4 var(--type); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
h2 { font: 600 28px/1.2 var(--serif); margin: 0; letter-spacing: -.01em; }
.calendar-description { color: var(--muted); font-size: 15px; margin: 8px 0 28px; }

.days-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 16px; padding: 6px 2px; }
.day-card {
  --tilt: -2deg; position: relative; display: block; padding: 8px 8px 0; text-align: left; border: 0;
  background: var(--card); box-shadow: var(--shadow); transform: rotate(var(--tilt));
  transition: transform .2s ease, box-shadow .2s ease;
}
.day-card:nth-child(4n+2) { --tilt: 1.6deg; }
.day-card:nth-child(4n+3) { --tilt: -.8deg; }
.day-card:nth-child(4n+4) { --tilt: 2.2deg; }
.day-card:not(:disabled):active { transform: rotate(0) scale(.97); }
.day-card > .tape { top: -11px; left: 50%; width: 64px; height: 22px; transform: translateX(-50%) rotate(-4deg); }
.day-card:nth-child(4n+2) > .tape { background-color: var(--tape-sage); transform: translateX(-50%) rotate(3deg); }
.day-card:nth-child(4n+3) > .tape { background-color: var(--tape-mustard); }
.day-card:nth-child(4n+4) > .tape { background-color: var(--tape-blue); transform: translateX(-50%) rotate(5deg); }
.card-frame { position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; }
.card-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) sepia(.06); }
.card-number { font: 54px/1 var(--hand); }
.doodle.pen { position: absolute; right: 10px; bottom: 10px; width: 24px; height: 24px; color: var(--accent); }
.doodle.lock { position: absolute; right: 10px; top: 10px; width: 22px; height: 22px; }
.doodle.big { width: 46%; height: 46%; fill: var(--accent); stroke: none; opacity: .85; }
.available .card-frame { background: repeating-linear-gradient(transparent 0 23px, rgb(120 150 190 / .22) 23px 24px), var(--accent-soft); }
.solved .card-frame { background: radial-gradient(circle, #fff6ef 0, #f3e2da 70%); }
.locked .card-frame { background: radial-gradient(rgb(90 60 30 / .08) 1px, transparent 1.3px) 0 0 / 5px 5px, var(--kraft); color: #6b5236; }
.locked .card-frame::before { content: ''; position: absolute; inset: 0 0 auto; height: 54%; background: #bf9e73; clip-path: polygon(0 0, 100% 0, 50% 100%); box-shadow: inset 0 -1px 0 rgb(0 0 0 / .1); }
.locked .card-number { position: relative; margin-top: 30%; opacity: .75; }
.locked { filter: saturate(.85); }
.today-sticker { position: absolute; left: 6px; top: 8px; z-index: 1; padding: 2px 10px 4px; background: var(--accent); color: #fffaf3; font: 15px/1.2 var(--hand); transform: rotate(-6deg); box-shadow: 0 2px 4px rgb(0 0 0 / .15); }
.day-card.today { box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.card-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 6px; padding: 10px 2px 12px; }
.card-day { font: 18px/1.1 var(--hand); }
.card-state { font: 10px/1.3 var(--type); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); text-align: right; margin-left: auto; }
.solved .card-state { color: var(--accent); }
.card-state.counting { color: var(--accent); font-weight: 700; }

/* Fotoğraf duvarı */
.wall { margin-top: 56px; }
.wall h2 { margin-bottom: 26px; }
.wall-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
.wall-item { --tilt: -3deg; position: relative; display: block; padding: 8px 8px 0; border: 0; background: var(--card); box-shadow: var(--shadow); transform: rotate(var(--tilt)); transition: transform .2s; }
.wall-item:nth-child(3n+2) { --tilt: 2.5deg; }
.wall-item:nth-child(3n) { --tilt: -1deg; }
.wall-item:nth-child(4n) { --tilt: 3.5deg; }
.wall-item:active { transform: rotate(0) scale(.97); }
.wall-item .photo-frame { aspect-ratio: 1; }
.wall-item > .tape { top: -10px; left: 50%; width: 54px; height: 20px; transform: translateX(-50%) rotate(-5deg); }
.wall-item:nth-child(even) > .tape { background-color: var(--tape-sage); transform: translateX(-50%) rotate(4deg); }
.wall-caption { display: block; padding: 8px 2px 10px; font: 17px/1 var(--hand); }

/* Alt bilgi */
.site-footer { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 48px; padding: 26px 0 calc(26px + var(--safe-bottom)); border-top: 1px dashed var(--line); color: var(--muted); }
.footer-mark { font: 20px var(--hand); color: var(--ink); }
.site-footer p { font: 11px var(--type); letter-spacing: .08em; text-transform: uppercase; margin: 0; }

/* Giriş durumları */
.entry-state { min-height: 70dvh; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; max-width: 520px; margin: auto; }
.entry-heart { width: 48px; height: 42px; animation: beat 1.6s ease-in-out infinite; }
.entry-state h1 { font-size: 34px; margin: 22px 0 10px; }
.entry-state p { color: var(--muted); font: 21px var(--hand); }
.page-error { font-size: 15px; background: #f8ddd3; border-left: 4px solid var(--accent); padding: 13px 16px; }

/* Gün penceresi: telefonda tam ekran bir defter sayfası */
dialog {
  position: fixed; inset: 0; width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; overflow-y: auto; overscroll-behavior: contain;
  border: 0; border-radius: 0; color: var(--ink);
  padding: calc(56px + var(--safe-top)) calc(20px + var(--safe-right)) calc(28px + var(--safe-bottom)) calc(46px + var(--safe-left));
  background: linear-gradient(90deg, transparent calc(28px + var(--safe-left)), rgb(181 71 58 / .45) calc(28px + var(--safe-left)) calc(29px + var(--safe-left)), transparent calc(29px + var(--safe-left))),
    repeating-linear-gradient(transparent 0 31px, rgb(120 150 190 / .24) 31px 32px) 0 12px, var(--card);
}
dialog[open] { animation: sheet-in .3s cubic-bezier(.2, .8, .3, 1); }
dialog::backdrop { background: rgb(47 42 38 / .55); }
dialog.is-reward { padding-left: calc(20px + var(--safe-left)); background: var(--card); }
.close-button { position: absolute; right: calc(8px + var(--safe-right)); top: calc(8px + var(--safe-top)); width: 48px; height: 48px; border: 0; background: transparent; font: 34px/1 var(--hand); color: var(--muted); }
dialog .eyebrow { color: var(--accent); margin-bottom: 8px; }
dialog h2 { font: 31px/1.15 var(--hand); }
.question { font-size: 19px; line-height: 32px; margin: 16px 0 24px; }
#answer-form label { display: block; font: 11px var(--type); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
#answer { display: block; width: 100%; min-width: 0; padding: 4px 2px 6px; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: transparent; font: 26px/1.3 var(--hand); }
#answer:focus { outline: none; border-bottom-color: var(--accent); }
#answer::placeholder { color: rgb(110 98 89 / .55); }
#answer-form .button { width: 100%; margin-top: 22px; }
.answer-message { margin: 16px 0 0; font: 20px/1.35 var(--hand); color: var(--accent); }
.answer-message:empty { display: none; }
.answer-message.tease { color: var(--ink); background: #fbeeb2; padding: 10px 14px; transform: rotate(-1deg); box-shadow: 0 4px 8px -4px rgb(60 40 20 / .25); animation: tease .5s ease-out; }
.hints p { margin: 16px 0 0; padding: 12px 16px; background: #fbeeb2; font: 19px/1.35 var(--hand); transform: rotate(-.8deg); box-shadow: 0 4px 8px -4px rgb(60 40 20 / .25); }
.hints p:nth-child(even) { transform: rotate(.7deg); background: #f5d8cf; }
.hint-button { margin-top: 10px; min-height: 44px; padding: 8px 0; border: 0; background: transparent; font: 20px var(--hand); color: var(--accent); text-decoration: underline wavy; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* Ödül */
.reward-view { text-align: center; }
.reward-view h2 { font-size: 33px; }
.reward-view .button { width: 100%; margin-top: 26px; }
.ticket {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; overflow: hidden;
  min-height: 132px; margin: 24px auto 16px; padding: 18px 20px 20px; max-width: 360px;
  background: #f4e2b8; border-radius: 6px; outline: 2px dashed rgb(120 90 40 / .35); outline-offset: -9px;
  -webkit-mask: radial-gradient(circle 12px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 12px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.ticket-label { font: 11px var(--type); letter-spacing: .16em; text-transform: uppercase; color: #6c5328; }
.gift-code { font: 700 44px/1.15 var(--type); letter-spacing: .18em; padding-left: .18em; overflow-wrap: anywhere; }
.ticket.code-hidden .gift-code { visibility: hidden; }
.ticket.just-revealed .gift-code { animation: code-pop .5s cubic-bezier(.2, .9, .3, 1.4); }
.reward-polaroid { position: relative; width: min(280px, 86%); margin: 22px auto 8px; transform: rotate(-2deg); animation: drop-in .45s cubic-bezier(.2, .9, .3, 1.2); }
.reward-polaroid .face.front { padding: 10px 10px 40px; }
.reward-polaroid .tape { top: -12px; left: 50%; transform: translateX(-50%) rotate(3deg); }
.reward-polaroid .photo-frame { aspect-ratio: 1; }

/* Kodu açma oyunları */
.reveal { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 16px; background: #f1dcab; transition: opacity .4s, transform .4s; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.reveal.gone { opacity: 0; transform: scale(1.05); pointer-events: none; }
.reveal-hint { min-height: 1.4em; margin: -4px 0 0; font: 20px/1.35 var(--hand); color: var(--accent); }
.reveal-hint:empty { display: none; }
.reveal-scratch { background: transparent; }
.scratch-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.scratch-canvas:active { cursor: grabbing; }
.reveal-shake { flex-direction: column; gap: 10px; }
.shake-box { width: 80px; height: 80px; display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--accent); }
.doodle.gift { width: 64px; height: 64px; stroke-width: 1.5; }
.shake-box.wobble { animation: wobble .45s ease-in-out; }
.shake-dots { display: flex; gap: 7px; }
.shake-dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--accent); transition: background .2s, transform .2s; }
.shake-dots i.on { background: var(--accent); transform: scale(1.15); }
.hold-button { position: relative; width: 96px; height: 96px; padding: 0; border: 0; border-radius: 50%; background: var(--card); box-shadow: 0 3px 0 var(--accent-deep); color: var(--accent); font: 17px/1.05 var(--hand); touch-action: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; transition: transform .15s; }
.hold-button svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.hold-track, .hold-fill { fill: none; stroke-width: 7; }
.hold-track { stroke: rgb(120 90 40 / .15); }
.hold-fill { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.hold-button:not(.holding) .hold-fill { transition: stroke-dashoffset .45s ease-out; }
.hold-button.holding { transform: scale(.94); box-shadow: 0 1px 0 var(--accent-deep); }
.hold-button span { position: relative; }
.reveal-seal { background: radial-gradient(rgb(90 60 30 / .08) 1px, transparent 1.3px) 0 0 / 5px 5px, var(--kraft); }
.seal-flap { position: absolute; inset: 0 0 auto; height: 58%; background: #bf9e73; clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transition: transform .45s ease-in; }
.seal { position: relative; z-index: 1; width: 72px; height: 72px; margin-top: 18px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--accent) 70%, white), var(--accent) 60%, var(--accent-deep));
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 55%, transparent), 0 4px 8px rgb(40 10 5 / .35); transition: transform .3s, opacity .3s; }
.doodle.seal-heart { width: 30px; height: 30px; fill: rgb(255 240 230 / .75); stroke: none; }
.seal-crack { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgb(45 8 2 / .8); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.seal-crack path { opacity: 0; transition: opacity .12s; }
.seal[data-cracks="1"] .seal-crack path:nth-child(-n+1), .seal[data-cracks="2"] .seal-crack path:nth-child(-n+2),
.seal[data-cracks="3"] .seal-crack path:nth-child(-n+3), .seal[data-cracks="4"] .seal-crack path { opacity: 1; }
.seal.hit { animation: seal-hit .25s ease-out; }
.reveal-seal.opened .seal { transform: scale(1.6) rotate(25deg); opacity: 0; }
.reveal-seal.opened .seal-flap { transform: rotateX(180deg); }

/* Sesli not */
.voice { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 22px auto 0; padding: 8px 16px 8px 8px; width: fit-content; max-width: 100%; border-radius: 999px; background: var(--accent-soft); }
.voice-button { width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--accent); color: #fffaf3; box-shadow: 0 2px 0 var(--accent-deep); }
.voice-button svg { width: 22px; height: 22px; fill: currentColor; }
.voice .icon-pause, .voice.playing .icon-play { display: none; }
.voice.playing .icon-pause { display: inline; }
.voice-label { font: 18px/1.2 var(--hand); text-align: left; }
.voice-wave { display: flex; align-items: center; gap: 3px; height: 22px; flex-shrink: 0; }
.voice-wave i { width: 3px; height: 30%; border-radius: 2px; background: var(--accent); opacity: .5; }
.voice.playing .voice-wave i { opacity: 1; animation: wave .9s ease-in-out infinite; }
.voice.playing .voice-wave i:nth-child(2) { animation-delay: .15s; }
.voice.playing .voice-wave i:nth-child(3) { animation-delay: .3s; }
.voice.playing .voice-wave i:nth-child(4) { animation-delay: .45s; }
.voice.playing .voice-wave i:nth-child(5) { animation-delay: .6s; }

/* Kalp yağmuru */
.hearts { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 50; }
.falling-heart {
  position: absolute; top: -60px; left: var(--x); font-size: var(--size); line-height: 1; opacity: 0;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  animation: heart-fall var(--dur) cubic-bezier(.3, .1, .6, 1) var(--delay) forwards;
}
.hearts.burst .falling-heart { top: auto; bottom: 35%; animation-name: heart-burst; }

/* Polaroid: arkasını çevir */
.polaroid .face { background: var(--card); box-shadow: var(--shadow); }
.flip { position: relative; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, .7, .25, 1); }
.polaroid.flipped .flip { transform: rotateY(180deg); }
.face { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.face.front { position: relative; }
.face.back {
  position: absolute; inset: 0; transform: rotateY(180deg); display: grid; place-items: center; padding: 26px 22px;
  background: repeating-linear-gradient(transparent 0 27px, rgb(120 150 190 / .2) 27px 28px) 0 14px, #fbf6ea;
}
.back-text { margin: 0; font: 23px/1.35 var(--hand); text-align: center; color: var(--ink); transform: rotate(-3deg); white-space: pre-line; }
.flip-hint { display: none; }
.polaroid.can-flip { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.polaroid.can-flip .flip-hint { display: grid; place-items: center; position: absolute; right: 6px; bottom: 4px; width: 28px; height: 28px; color: var(--muted); font: 18px/1 var(--serif); opacity: .7; }
.polaroid.can-flip:not(.flipped) .flip-hint { animation: nudge 3.5s ease-in-out infinite; }

/* Polaroid banyo */
#reward-frame { --dev: 1; }
#reward-frame img { filter: grayscale(calc(1 - var(--dev))) contrast(calc(.55 + .45 * var(--dev))) brightness(calc(1.55 - .55 * var(--dev))) sepia(.06) saturate(.92); }
.develop-film { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 40% 35%, #f7f2e8, #e9e2d3); opacity: calc(1 - var(--dev) * 1.2); }
.develop-hint { position: absolute; left: 0; right: 0; bottom: 10px; font: 16px/1.2 var(--hand); color: var(--muted); text-align: center; }
.develop-hint:empty { display: none; }

/* Günün şarkısı: kaset */
.song { width: min(320px, 100%); margin-top: 30px; }
.cassette {
  position: relative; display: grid; gap: 10px; padding: 14px 16px 12px; border-radius: 14px; color: #f6ead6; text-decoration: none;
  background: linear-gradient(160deg, #43372f, #2a221e); box-shadow: var(--shadow), inset 0 1px 0 rgb(255 255 255 / .08); transform: rotate(-1.5deg);
}
.cassette-label { display: grid; gap: 1px; padding: 8px 12px 10px; border-radius: 6px; border-top: 6px solid var(--accent); color: var(--ink);
  background: repeating-linear-gradient(transparent 0 19px, rgb(120 150 190 / .22) 19px 20px) 0 6px, #f6ead6; }
.cassette-eyebrow { font: 10px/1.4 var(--type); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cassette-title { font: 22px/1.2 var(--hand); }
.cassette-artist { font: 13px/1.3 var(--serif); color: var(--muted); }
.cassette-window { display: flex; align-items: center; width: 72%; height: 46px; margin: 0 auto; padding: 0 12px; border-radius: 23px; background: #1a1411; box-shadow: inset 0 2px 5px rgb(0 0 0 / .6); }
.reel { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; animation: spin 7s linear infinite;
  background: radial-gradient(circle, #1a1411 0 4px, transparent 4.5px), repeating-conic-gradient(#e9dcc5 0 20deg, #b9a587 20deg 60deg); }
.cassette-tape { flex: 1; height: 16px; margin: 0 8px; border-radius: 3px; background: linear-gradient(#5a4638, #3e3028); }
.cassette.spinning .reel { animation-duration: .5s; }
.cassette-play { justify-self: center; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--accent); color: #fffaf3; font: 19px/1 var(--hand); box-shadow: 0 2px 0 var(--accent-deep); }
.play-icon { font: 12px/1 var(--serif); }
.cassette-screw { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #75645a; box-shadow: inset 0 1px 1px rgb(0 0 0 / .5); }
.cassette-screw.s1 { left: 8px; bottom: 8px; } .cassette-screw.s2 { right: 8px; bottom: 8px; }

/* Kuponlar */
.wallet { margin-top: 56px; }
.wallet h2 { margin-bottom: 22px; }
.wallet-list { display: grid; gap: 18px; }
.reward-coupon { margin-top: 26px; }
.reward-coupon:empty { display: none; }
.coupon-intro { margin: 0 0 10px; font: 19px/1.3 var(--hand); color: var(--accent); text-align: center; }
.coupon { position: relative; display: grid; grid-template-columns: 38px 1fr; text-align: left; border-radius: 8px; background: #fbf3dc; box-shadow: var(--shadow); overflow: hidden; }
.coupon-stub { display: grid; place-items: center; writing-mode: vertical-rl; transform: rotate(180deg); background: var(--accent); color: #fffaf3; font: 11px var(--type); letter-spacing: .35em; text-transform: uppercase; border-left: 2px dashed rgb(255 255 255 / .55); }
.coupon-body { min-width: 0; padding: 14px 16px 16px; }
.coupon-title { margin: 0; font: 22px/1.2 var(--hand); padding-right: 70px; }
.coupon-note { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.coupon-use { margin-top: 12px; min-height: 44px; padding: 0 22px; border: 2px solid var(--accent); border-radius: 999px; background: transparent; color: var(--accent); font: 19px/1 var(--hand); }
.coupon-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.coupon-option { min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); font: 15px/1.2 var(--serif); }
.coupon-option[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; }
.coupon-actions { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.coupon-confirm { min-height: 46px; padding: 10px 18px; font-size: 15px; }
.coupon-cancel { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--muted); font: 18px/1 var(--hand); text-decoration: underline; }
.coupon-message { margin: 8px 0 0; font: 17px/1.3 var(--hand); color: var(--accent); }
.coupon-message:empty { display: none; }
.coupon-choice { margin: 10px 0 0; font: 19px/1.3 var(--hand); color: var(--accent-deep); }
.coupon.used { background: #f3ead6; }
.coupon-stamp { position: absolute; right: 10px; top: 12px; padding: 3px 9px; border: 2px solid var(--accent); border-radius: 4px; color: var(--accent); font: 700 11px/1.3 var(--type); letter-spacing: .18em; text-transform: uppercase; transform: rotate(-10deg); opacity: .85; mix-blend-mode: multiply; }
.coupon.just-used .coupon-stamp { animation: stamp .5s cubic-bezier(.2, .9, .3, 1.3); }

/* Yeni oyunlar */
.ticket.tall { min-height: 300px; }
.ticket:has(> .reveal-pulse) { min-height: 390px; }
.ticket:has(> .reveal-speak) { min-height: 320px; }
.reveal-hearts { background: #f7e1d6; }
.half-heart { position: absolute; width: 76px; height: 76px; padding: 0; border: 0; background: none; touch-action: none; cursor: grab; transition: transform .15s; }
.half-heart svg { width: 100%; height: 100%; fill: var(--accent); stroke: var(--accent-deep); stroke-width: .7; }
.half-heart.left svg { clip-path: inset(0 50% 0 0); }
.half-heart.right svg { clip-path: inset(0 0 0 50%); }
.half-heart.left { transform: rotate(-10deg); }
.half-heart.right { transform: rotate(10deg); }
.half-heart.grabbed { transform: scale(1.15); cursor: grabbing; z-index: 1; }
.reveal-hearts.joined .half-heart { transform: none; animation: join .5s ease-out; }
.reveal-fog { background: transparent; }
.fog-blow { position: absolute; right: 6px; bottom: 6px; z-index: 2; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / .75); font-size: 20px; box-shadow: 0 1px 3px rgb(0 0 0 / .15); }
.fog-blow.listening { animation: pulse 1.2s ease-in-out infinite; }
.reveal-tilt { background: radial-gradient(rgb(90 60 30 / .07) 1px, transparent 1.3px) 0 0 / 6px 6px, #eadcbf; }
.tilt-ball { position: absolute; width: 40px; height: 40px; padding: 0; border: 0; background: none; font: 30px/40px 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; text-align: center; touch-action: none; filter: drop-shadow(0 3px 2px rgb(60 20 10 / .3)); transition: transform .35s, opacity .35s; }
.tilt-hole { position: absolute; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); background: rgb(60 40 20 / .08); box-shadow: inset 0 3px 8px rgb(0 0 0 / .25); }
.tilt-hole .doodle.gift { width: 34px; height: 34px; }
.reveal-tilt.scored .tilt-ball { transform: scale(.3); opacity: 0; }
.reveal-puzzle { background: #f4e2b8; padding: 14px; }
.puzzle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; width: min(264px, 100%); aspect-ratio: 1; transition: gap .3s; }
.puzzle-tile { padding: 0; border: 0; border-radius: 2px; background-size: 300% 300%; background-color: #e7dac2; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .45); transition: transform .15s; }
.puzzle-tile.selected { outline: 3px solid var(--accent); outline-offset: -3px; transform: scale(.92); }
.puzzle.solved { gap: 0; }
.puzzle.solved .puzzle-tile { border-radius: 0; box-shadow: none; }

/* Canlı açılış */
.day-card.just-opened { animation: just-opened 1.4s ease-out; }
.day-card.just-opened .card-frame { animation: glow 2.4s ease-out; }

/* Gece modu (23.00–06.00): koyu masa, lamba ışığı, yıldızlar; kâğıtlar açık kalır */
html.night { color-scheme: dark; --line: rgb(243 230 208 / .16); }
html.night body {
  background: radial-gradient(ellipse at 18% -8%, rgb(255 186 104 / .32), transparent 52%), radial-gradient(ellipse at 100% 100%, rgb(70 60 110 / .35), transparent 60%), #1e1916;
}
html.night body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; animation: twinkle 5s ease-in-out infinite alternate;
  background:
    radial-gradient(circle at 8% 22%, #fff 0 1px, transparent 1.6px), radial-gradient(circle at 27% 9%, #fff 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 46% 30%, #fff 0 .8px, transparent 1.4px), radial-gradient(circle at 63% 12%, #fff 0 1.3px, transparent 2px),
    radial-gradient(circle at 81% 26%, #fff 0 1px, transparent 1.6px), radial-gradient(circle at 93% 7%, #fff 0 .9px, transparent 1.5px),
    radial-gradient(circle at 15% 58%, #fff 0 .8px, transparent 1.4px), radial-gradient(circle at 88% 62%, #fff 0 1px, transparent 1.6px),
    radial-gradient(circle at 37% 80%, #fff 0 .9px, transparent 1.5px), radial-gradient(circle at 70% 88%, #fff 0 1.1px, transparent 1.7px);
}
html.night .wrap { position: relative; z-index: 1; }
html.night.has-sky body::before { display: none; }
.night-sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.sky-caption { display: grid; gap: 2px; margin: 40px auto 0; text-align: center; color: #c4b298; }
.sky-caption-eyebrow { font: 11px var(--type); letter-spacing: .18em; text-transform: uppercase; color: #9d8fb8; }
.sky-caption-text { font: 18px/1.3 var(--hand); color: #e6d6f2; }
html.night .brand, html.night .section-top h2, html.night .wall h2, html.night .wallet h2, html.night .footer-mark, html.night .entry-state h1 { color: #f3e6d0; }
html.night main > div > section > .eyebrow, html.night .section-top .eyebrow, html.night .calendar-description, html.night .site-footer, html.night .site-footer p, html.night .entry-state p { color: #c4b298; }
html.night .shake-hint { color: #dccbb0; background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .22); }
html.night .day-card, html.night .polaroid .face, html.night .wall-item, html.night .coupon { filter: brightness(.93) sepia(.1); }
html.night dialog::backdrop { background: rgb(10 8 6 / .7); }

/* Not: oyundan sonra kalan küçük not (nabız sonucu vb.) */
.reveal-hint.note { display: inline-block; margin: 2px auto 0; padding: 8px 14px; background: #fbeeb2; color: var(--ink); transform: rotate(-1deg); box-shadow: 0 4px 8px -4px rgb(60 40 20 / .25); }

/* Oyun: sesle aç */
.reveal-speak { flex-direction: column; gap: 8px; padding: 18px 16px; background: radial-gradient(circle at 50% 40%, #fbe9df, #f1d7c8); }
.speak-label { margin: 0; font: 11px var(--type); letter-spacing: .16em; text-transform: uppercase; color: #8a5a4a; }
.speak-phrase { margin: 0; font: 30px/1.15 var(--hand); color: var(--accent-deep); text-align: center; }
.speak-mic { position: relative; width: 84px; height: 84px; margin-top: 6px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--accent); color: #fffaf3; box-shadow: 0 3px 0 var(--accent-deep), 0 8px 18px rgb(120 30 20 / .25); }
.speak-mic .doodle { width: 36px; height: 36px; stroke-width: 1.8; }
.speak-mic::before, .speak-mic::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; }
.speak-mic.listening::before { animation: ripple 1.4s ease-out infinite; }
.speak-mic.listening::after { animation: ripple 1.4s ease-out .7s infinite; }
.speak-heard { min-height: 1.3em; margin: 2px 0 0; font: 17px/1.3 var(--hand); color: var(--muted); text-align: center; }
.speak-type { min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--accent); font: 18px/1 var(--hand); text-decoration: underline; text-underline-offset: 4px; }
.speak-form { display: flex; gap: 8px; width: min(300px, 100%); }
.speak-form input { flex: 1; min-width: 0; padding: 8px 10px; border: 0; border-bottom: 2px solid var(--ink); background: rgb(255 255 255 / .55); font: 20px/1.2 var(--hand); border-radius: 4px 4px 0 0; }
.reveal .button { width: auto; margin-top: 0; }
.speak-form .button { min-height: 46px; padding: 8px 16px; }
.speak-form.nope { animation: wobble .4s ease-in-out; }
.reveal-speak.heard .speak-mic { animation: pop .6s ease-out forwards; }

/* Oyun: ritim kilidi */
.reveal-rhythm { flex-direction: column; gap: 14px; background: radial-gradient(circle at 50% 45%, #fdf1e3, #efd9b8); }
.rhythm-pad { width: 132px; height: 132px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--card); box-shadow: 0 4px 0 rgb(120 90 40 / .25), 0 10px 24px rgb(60 40 20 / .15); color: var(--accent); touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.rhythm-pad .doodle { width: 74px; height: 74px; fill: var(--accent); stroke: var(--accent-deep); stroke-width: .8; }
.rhythm-pad.beat .doodle { animation: thump .22s ease-out; }
.rhythm-pad.demo { box-shadow: 0 0 0 6px var(--accent-soft), 0 4px 0 rgb(120 90 40 / .25); }
.rhythm-listen { min-height: 44px; padding: 0 18px; border: 1.5px solid var(--accent); border-radius: 999px; background: rgb(255 255 255 / .5); color: var(--accent); font: 18px/1 var(--hand); }
.rhythm-listen:disabled { opacity: .5; }
.reveal-rhythm.missed .rhythm-pad { animation: wobble .45s ease-in-out; }
.reveal-rhythm.matched .rhythm-pad { animation: pop .8s ease-out forwards; }

/* Oyun: nabız */
.reveal-pulse { flex-direction: column; gap: 8px; padding: 16px; background: radial-gradient(circle at 50% 35%, #3a1f1c, #201312); color: #f6e5da; }
.pulse-lens { --progress: 0; position: relative; width: 112px; height: 112px; display: grid; place-items: center; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle, #6d2a22, #2a1210); box-shadow: 0 0 0 4px rgb(255 255 255 / .08), 0 0 0 4px rgb(255 255 255 / .08); }
.pulse-lens::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--progress) * 360deg), transparent 0); -webkit-mask: radial-gradient(circle, transparent 50px, #000 51px); mask: radial-gradient(circle, transparent 50px, #000 51px); }
.pulse-lens video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.pulse-lens.live video { opacity: .8; }
.pulse-heart { position: relative; z-index: 1; display: grid; place-items: center; }
.pulse-heart .doodle { width: 50px; height: 50px; fill: #ff6b5e; stroke: none; filter: drop-shadow(0 0 10px rgb(255 90 80 / .6)); }
.pulse-lens.reading .pulse-heart, .reveal-pulse.measured .pulse-heart { animation: heartbeat var(--beat, .85s) ease-in-out infinite; }
.pulse-heart.beat { animation: thump .25s ease-out; }
.pulse-lens.tap { cursor: pointer; touch-action: none; }
.pulse-bpm { min-height: 1.2em; margin: 0; font: 700 30px/1.1 var(--type); letter-spacing: .04em; }
.pulse-wave { width: min(240px, 90%); height: 36px; }
.pulse-status { margin: 0; max-width: 270px; font: 17px/1.3 var(--hand); text-align: center; color: #f0d6c8; }
.pulse-start { min-height: 46px; padding: 10px 20px; font-size: 15px; }
.reveal-pulse .speak-type { color: #f3b9ab; }

/* Hediyeyle fotoğraf */
.gift-photo { margin-top: 26px; }
.gift-photo:empty { display: none; }
.gift-card { padding: 18px 18px 20px; border: 2px dashed var(--line); border-radius: 10px; background: #fffaf0; }
.gift-card-title { margin: 0; font: 25px/1.2 var(--hand); color: var(--accent-deep); }
.gift-card-text { margin: 6px 0 14px; font-size: 15px; color: var(--muted); }
.gift-pick { width: 100%; }
.reward-view .gift-pick { margin-top: 0; }
.gift-polaroid { position: relative; width: min(250px, 80%); margin: 14px auto 6px; padding: 9px 9px 0; background: #fff; box-shadow: var(--shadow); transform: rotate(2.5deg); }
.gift-polaroid .photo-frame { aspect-ratio: 4 / 5; }
.gift-polaroid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gift-polaroid figcaption { padding: 8px 0 12px; font: 18px/1 var(--hand); }
.gift-polaroid > .tape { top: -12px; left: 50%; transform: translateX(-50%) rotate(-3deg); background-color: var(--tape-blue); }
.gift-polaroid.uploading img { filter: blur(2px) saturate(.4); opacity: .7; }
.gift-polaroid.uploading figcaption { animation: blink 1s ease-in-out infinite; }
.gift-polaroid.just-stuck { animation: drop-in .5s cubic-bezier(.2, .9, .3, 1.2); }
.gift-retake { min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--muted); font: 17px/1 var(--hand); text-decoration: underline; }
.gift-photo-message { margin: 8px 0 0; font: 17px/1.3 var(--hand); color: var(--accent); }
.gift-photo-message:empty { display: none; }
.gift-mini { position: absolute; right: 5px; bottom: 5px; z-index: 1; width: 34%; aspect-ratio: 4 / 5; padding: 3px 3px 7px; background: #fff; box-shadow: 0 2px 6px rgb(0 0 0 / .25); transform: rotate(6deg); }
.gift-mini img { position: static; width: 100%; height: 100%; object-fit: cover; display: block; }
.gift-wall .wall-item .photo-frame { aspect-ratio: 4 / 5; }

/* 2027 dilek listesi */
.wishes { margin-top: 56px; max-width: 560px; }
.wishes h2 { margin-bottom: 12px; }
.wish-lead { margin: 0 0 18px; font-size: 15px; color: var(--muted); }
.wish-paper { position: relative; padding: 14px 16px 14px 44px; background:
  linear-gradient(90deg, transparent 30px, rgb(181 71 58 / .4) 30px 31px, transparent 31px),
  repeating-linear-gradient(transparent 0 35px, rgb(120 150 190 / .25) 35px 36px) 0 12px, var(--card); box-shadow: var(--shadow); transform: rotate(-.6deg); }
.wish-list { margin: 0; padding: 0; list-style: none; counter-reset: wish; }
.wish { position: relative; display: flex; align-items: center; gap: 8px; min-height: 36px; font: 21px/1.25 var(--hand); counter-increment: wish; }
.wish::before { content: counter(wish) '.'; position: absolute; left: -30px; width: 22px; text-align: right; font-size: 16px; color: var(--accent); }
.wish.empty { color: rgb(110 98 89 / .5); }
.wish.empty::before { content: ''; }
.wish-text { flex: 1; min-width: 0; overflow-wrap: anywhere; padding: 4px 0; }
.wish-remove { flex-shrink: 0; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: var(--muted); font: 26px/1 var(--hand); }
.wish-check { flex-shrink: 0; width: 30px; height: 30px; margin: 6px 0; display: grid; place-items: center; padding: 0; border: 2px solid var(--ink); border-radius: 6px; background: transparent; color: var(--accent); font: 700 20px/1 var(--type); }
.wish-check::after { content: ''; position: absolute; inset: -8px -4px; }
.wish.done .wish-text { text-decoration: line-through wavy var(--accent); text-decoration-thickness: 1px; color: var(--muted); }
.wish-stamp { display: inline-block; margin: 2px 0 4px; padding: 1px 6px; border: 1.5px solid var(--accent); border-radius: 3px; color: var(--accent); font: 700 9px/1.4 var(--type); letter-spacing: .1em; text-transform: uppercase; transform: rotate(-6deg); background: rgb(255 253 248 / .85); }
.wish-form { display: flex; gap: 8px; margin-top: 18px; }
.wish-form input { flex: 1; min-width: 0; padding: 6px 2px; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: transparent; font: 22px/1.3 var(--hand); }
.wish-form input:focus { outline: none; border-bottom-color: var(--accent); }
.wish-add { min-width: 64px; min-height: 46px; padding: 0 16px; border: 2px solid var(--accent); border-radius: 999px; background: transparent; color: var(--accent); font: 19px/1 var(--hand); }
.wish-counter { margin: 8px 0 0; font: 11px var(--type); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: right; }
.wish-seal-button { width: 100%; margin-top: 18px; }
.wish-seal-button.armed { background: var(--accent-deep); }
.wish-message { margin: 10px 0 0; font: 18px/1.3 var(--hand); color: var(--accent); }
.wish-message:empty { display: none; }
.wish-progress { margin: 14px 0 0; font: 20px/1.2 var(--hand); color: var(--accent-deep); text-align: center; }
.wish-envelope { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 10; max-width: 420px; margin: 0 auto; padding: 0; border: 0; overflow: hidden;
  background: radial-gradient(rgb(90 60 30 / .08) 1px, transparent 1.3px) 0 0 / 5px 5px, var(--kraft); box-shadow: var(--shadow); transform: rotate(-1.2deg); }
.wish-envelope .seal-flap { height: 56%; transform: none; }
.wish-envelope .wish-seal { margin-top: 10px; pointer-events: none; }
.wish-envelope.wiggle { animation: wobble .45s ease-in-out; }
.wish-envelope.just-sealed .wish-seal { animation: stamp-seal .6s cubic-bezier(.2, .9, .3, 1.3); }
.wish-info { margin-top: 16px; text-align: center; }
.wish-count { margin: 0; font: 24px/1.2 var(--hand); }
.wish-when { margin: 4px 0 0; font: 11px/1.5 var(--type); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wishes .wish-message { text-align: center; }
html.night .wishes h2, html.night .wish-count { color: #f3e6d0; }
html.night .wish-lead, html.night .wish-when, html.night .wish-counter, html.night .wishes > .eyebrow { color: #c4b298; }
html.night .wish-form input { color: #f3e6d0; border-bottom-color: #f3e6d0; }
html.night .wish-paper, html.night .wish-envelope, html.night .gift-polaroid { filter: brightness(.93) sepia(.1); }

@keyframes flicker { from { opacity: .92; filter: drop-shadow(0 0 8px rgb(255 170 60 / .7)); } to { opacity: 1; filter: drop-shadow(0 0 14px rgb(255 170 60 / .95)); } }
@keyframes smoke { 0% { opacity: .7; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(-46px) translateX(8px) scale(3); } }
@keyframes kiss-in { from { transform: rotate(var(--turn)) scale(calc(var(--scale) * 1.8)); opacity: 0; } to { transform: rotate(var(--turn)) scale(var(--scale)); opacity: .88; } }
@keyframes ripple { from { transform: scale(1); opacity: .7; } to { transform: scale(1.9); opacity: 0; } }
@keyframes thump { 40% { transform: scale(1.22); } }
@keyframes pop { 40% { transform: scale(1.25); } 100% { transform: scale(0); opacity: 0; } }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.1); } 60% { transform: scale(1); } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes stamp-seal { from { transform: scale(2.2) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }


/* Oyun: üfle */
.ticket:has(> .reveal-blow) { min-height: 340px; }
.ticket:has(> .reveal-compass) { min-height: 400px; }
.reveal-blow { --wind: 0; flex-direction: column; gap: 10px; padding: 16px; background: radial-gradient(circle at 50% 30%, #4a3226, #1f1512); color: #f6e5da; }
.blow-cake { --wind: 0; position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 12px; flex-wrap: wrap; width: min(260px, 100%); padding: 0 18px; min-height: 120px; touch-action: none; }
.cake-top { position: absolute; left: 0; right: 0; bottom: -20px; height: 22px; border-radius: 50% / 100% 100% 0 0; background: linear-gradient(#fbe9e4, #f1c9c0); box-shadow: 0 6px 0 #c98b80; }
.candle { position: relative; width: 12px; height: 58px; margin-bottom: -4px; border-radius: 3px 3px 0 0; background: repeating-linear-gradient(-45deg, #fffaf3 0 6px, var(--accent) 6px 10px); box-shadow: inset -2px 0 0 rgb(0 0 0 / .12); }
.candle:nth-child(even) { height: 50px; }
.candle::before { content: ''; position: absolute; left: 5px; top: -8px; width: 2px; height: 9px; background: #2a1d18; border-radius: 1px; }
.flame { position: absolute; left: 50%; bottom: calc(100% + 6px); width: 16px; height: 28px; margin-left: -8px; border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%;
  background: radial-gradient(circle at 50% 75%, #fff8d6 0 22%, #ffd66b 45%, #ff8a3d 75%, transparent 78%); filter: drop-shadow(0 0 10px rgb(255 170 60 / .8));
  transform-origin: 50% 100%; transform: skewX(calc(var(--wind) * -28deg)) scaleY(calc(1 - var(--wind) * .45)) scaleX(calc(1 + var(--wind) * .2));
  animation: flicker calc(.9s + var(--i) * .13s) ease-in-out infinite alternate; transition: opacity .35s, transform .12s; }
.candle.out .flame { opacity: 0; animation: none; transform: scale(.2); }
.smoke { position: absolute; left: 50%; bottom: calc(100% + 4px); width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: rgb(220 210 200 / .55); opacity: 0; filter: blur(3px); }
.candle.out .smoke { animation: smoke 1.6s ease-out forwards; }
.blow-meter { width: 120px; height: 6px; margin-top: 20px; border-radius: 3px; background: rgb(255 255 255 / .12); overflow: hidden; }
.blow-meter i { display: block; height: 100%; width: calc(var(--level, 0) * 100%); background: #ffd66b; transition: width .08s; }
.blow-status { min-height: 1.3em; margin: 0; font: 18px/1.3 var(--hand); color: #f3dccb; text-align: center; }
.reveal-blow .speak-type { color: #ffc9a8; }
.reveal-blow.blown .blow-cake { animation: thump .5s ease-out .2s; }

/* Oyun: pusula */
.reveal-compass { --warm: 0; flex-direction: column; gap: 10px; padding: 16px; background: radial-gradient(circle at 50% 42%, color-mix(in srgb, #fbe3d8 calc(var(--warm) * 100%), #e4ddd0), #d9cdb8); }
.compass-ask { margin: 0; font: 24px/1.2 var(--hand); color: var(--accent-deep); text-align: center; }
.compass-dial { --warm: 0; --lock: 0; position: relative; width: 184px; height: 184px; flex-shrink: 0; border-radius: 50%; touch-action: none;
  background: radial-gradient(circle, #fffaf3 0 58%, #f4e8d2 59%); box-shadow: 0 0 0 6px #fffaf3, 0 0 0 7px rgb(120 90 40 / .3), 0 10px 26px rgb(60 40 20 / .22); }
.compass-dial::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--lock) * 360deg), transparent 0);
  -webkit-mask: radial-gradient(circle, transparent 95px, #000 96px); mask: radial-gradient(circle, transparent 95px, #000 96px); }
.compass-dial.draggable { cursor: grab; }
.compass-rose { position: absolute; inset: 0; border-radius: 50%; }
.compass-rose::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(rgb(120 90 40 / .35) 0 1deg, transparent 1deg 15deg); -webkit-mask: radial-gradient(circle, transparent 82px, #000 83px); mask: radial-gradient(circle, transparent 82px, #000 83px); }
.compass-mark { position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px; display: grid; place-items: center; font: 700 13px var(--type); color: #8a6a48;
  transform: rotate(var(--deg)) translateY(-70px) rotate(calc(-1 * var(--deg))); }
.compass-mark:first-child { color: var(--accent); }
.compass-heart { --rel: 0deg; position: absolute; inset: 0; opacity: 0; transform: rotate(var(--rel)); transition: opacity .25s; pointer-events: none; }
.compass-heart .doodle { position: absolute; left: 50%; top: 14px; width: 30px; height: 30px; margin-left: -15px; fill: var(--accent); stroke: var(--accent-deep); stroke-width: .8; }
.compass-needle { position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: -60px 0 0 -11px; border: 11px solid transparent; border-bottom: 56px solid var(--accent); border-top: 0; filter: drop-shadow(0 2px 2px rgb(0 0 0 / .2)); }
.compass-needle::after { content: ''; position: absolute; left: -9px; top: 50px; width: 18px; height: 18px; border-radius: 50%; background: #fffaf3; box-shadow: 0 0 0 3px var(--accent-deep); }
.compass-status { min-height: 1.3em; margin: 0; font: 19px/1.3 var(--hand); color: var(--accent-deep); text-align: center; }
.reveal-compass.found .compass-heart .doodle { animation: heartbeat .9s ease-in-out infinite; }


/* Oyun: ekranı öp */
.ticket:has(> .reveal-kiss) { min-height: 320px; }
.reveal-kiss { flex-direction: column; gap: 6px; background: radial-gradient(circle at 50% 45%, #fde3e3, #f3c9c6); touch-action: none; overflow: hidden; }
.kiss-label { margin: 0; font: 34px/1 var(--hand); color: var(--accent-deep); }
.kiss-target { width: 150px; height: 110px; display: grid; place-items: center; transition: transform .2s, opacity .3s; }
.kiss-outline { width: 140px; height: 140px; fill: none; stroke: var(--accent); stroke-width: .7; stroke-dasharray: 1.6 1.4; opacity: .75; animation: heartbeat 2.4s ease-in-out infinite; }
.kiss-target.pressed { transform: scale(.94); }
.kiss-target.gone { opacity: 0; transform: scale(1.2); }
.kiss-status { min-height: 1.3em; margin: 0; font: 19px/1.3 var(--hand); color: var(--accent-deep); text-align: center; }
.kiss-mark { position: absolute; width: 96px; height: 96px; margin: -48px 0 0 -48px; fill: color-mix(in srgb, var(--accent) 88%, #ff3060); stroke: none; opacity: .88;
  transform: rotate(var(--turn)) scale(var(--scale)); filter: drop-shadow(0 1px 0 rgb(120 0 20 / .25)); mix-blend-mode: multiply; animation: kiss-in .35s cubic-bezier(.2, .9, .3, 1.4); pointer-events: none; }
.kiss-mark path:last-child { fill: none; stroke: rgb(110 0 20 / .35); stroke-width: .8; }

/* Oyun: kar */
.reveal-snow { background: linear-gradient(rgb(120 150 190 / .14), rgb(120 150 190 / .04)); overflow: hidden; }
.snow-pile, .snow-air { position: absolute; inset: 0; width: 100%; height: 100%; }
.snow-pile { touch-action: none; cursor: grab; }
.snow-air { pointer-events: none; }
.snow-label { position: relative; z-index: 1; margin: 0; padding: 0 20px; font: 20px/1.3 var(--hand); color: #6b84a0; text-align: center; pointer-events: none; transition: opacity .4s; text-shadow: 0 1px 0 #fff; }
.snow-label.faded { opacity: 0; }
.reveal-snow.melted .snow-pile { opacity: 0; transition: opacity .6s; }

/* Çam ağacı */
.tree-section { margin-top: 56px; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.tree-section .section-top { flex-direction: row; align-items: flex-end; justify-content: space-between; }
.tree-count { font: 13px var(--type); color: var(--muted); white-space: nowrap; padding-bottom: 6px; }
.tree-stage { position: relative; width: min(100%, 340px); aspect-ratio: 300 / 380; margin: 18px auto 0; touch-action: pan-y; }
.tree-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tree-shadow { fill: rgb(60 40 20 / .14); }
.tree-pot { fill: #b5473a; fill: var(--accent); }
.tree-pot-rim { fill: var(--accent-deep); }
.tree-tier { stroke: #1a3f2a; stroke-width: 1.2; stroke-linejoin: round; }
.tree-shade { stroke: rgb(255 255 255 / .1); stroke-width: 8; stroke-linecap: round; }
.tree-lights { opacity: 0; transition: opacity .8s; }
.tree-stage.lit .tree-lights { opacity: 1; }
.garland { fill: none; stroke: #2b3a2a; stroke-width: 1.2; }
.bulb { animation: bulb 2.2s ease-in-out var(--d) infinite alternate; }
.tree-stage.dropping .tree-art { filter: drop-shadow(0 0 10px rgb(255 220 120 / .55)); }
.tree-hung { position: absolute; inset: 0; }
.ornament { position: absolute; width: 34px; height: 34px; padding: 0; border: 0; background: none; transform: translate(-50%, -28%); touch-action: none; cursor: grab; -webkit-tap-highlight-color: transparent; }
.ornament .ornament-art { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 2px 2px rgb(0 0 0 / .28)); }
.ornament .thread { stroke: #c9b48a; stroke-width: 1; }
.tree-hung .ornament.kind-star { width: 46px; height: 46px; transform: translate(-50%, -50%); }
.tree-stage.crowned .kind-star .ornament-art { filter: drop-shadow(0 0 8px rgb(255 210 90 / .9)); animation: star-glow 2.4s ease-in-out infinite alternate; }
.ornament.lifting { opacity: .25; }
.ornament.just-hung { animation: hang 1.1s ease-out; transform-origin: 50% 0; }
.ornament:focus-visible { outline: 2px dashed var(--accent); outline-offset: 2px; border-radius: 50%; }
.ornament-ghost { position: fixed; z-index: 40; width: 44px; height: 44px; transform: translate(-50%, -50%) rotate(-6deg); pointer-events: none; filter: drop-shadow(0 8px 10px rgb(0 0 0 / .3)); }
.ornament-ghost svg { width: 100%; height: 100%; overflow: visible; }
.tree-message { min-height: 1.4em; margin: 10px 0 0; text-align: center; font: 19px/1.3 var(--hand); color: var(--accent-deep); }
.tree-tray-label { margin: 14px 0 6px; text-align: center; font: 11px var(--type); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tree-tray { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 12px; border: 1.5px dashed var(--line); border-radius: 14px; background: rgb(255 253 248 / .55); }
.tree-tray .ornament { position: relative; transform: none; width: 46px; height: 46px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); padding: 6px; }
.tree-tray .ornament.beckon { animation: beckon 1s ease-in-out 4; }
.reward-ornament:empty { display: none; }
.ornament-prize { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 6px 12px; margin: 22px 0 0; padding: 14px; border-radius: 14px; background: #eef4ec; border: 1.5px dashed #9fbc9a; }
.prize-art svg { width: 52px; height: 52px; overflow: visible; filter: drop-shadow(0 2px 2px rgb(0 0 0 / .2)); }
.prize-art .thread { stroke: #b7a27a; stroke-width: 1; }
.prize-title { margin: 0; font: 11px var(--type); letter-spacing: .1em; text-transform: uppercase; color: #4f6b4b; }
.prize-name { margin: 2px 0 0; font: 22px/1.2 var(--hand); color: #2c4a2a; }
.prize-go { grid-column: 1 / -1; justify-self: center; width: auto; min-width: 0; padding-inline: 28px; margin-top: 6px; }
html.night .tree-section h2 { color: #f3e6d0; }
html.night .tree-count, html.night .tree-tray-label { color: #c4b298; }
html.night .tree-message { color: #f0d9a8; }
html.night .tree-tray { background: rgb(255 255 255 / .05); border-color: rgb(255 255 255 / .2); }
html.night .tree-shadow { fill: rgb(0 0 0 / .35); }
html.night .tree-stage.lit .tree-art { filter: drop-shadow(0 0 18px rgb(255 214 120 / .22)); }
html.night .bulb { filter: drop-shadow(0 0 3px currentColor); }

/* Gece anları: gök olayı notu, kayan yıldız, küçük kart */
.sky-event { display: none; }
html.night .sky-event:not([hidden]) { display: block; margin: 22px auto 0; max-width: 460px; padding: 12px 16px; border-radius: 12px; text-align: center;
  font: 19px/1.35 var(--hand); color: #f0e3ff; background: rgb(120 100 180 / .16); border: 1px solid rgb(200 180 255 / .22); }
.shooting-star { position: fixed; z-index: 30; width: 64px; height: 64px; margin: -32px 0 0 -32px; padding: 0; border: 0; background: none; cursor: pointer;
  animation: shoot 2.6s cubic-bezier(.3, .1, .6, 1) forwards; -webkit-tap-highlight-color: transparent; }
.star-head { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 6px 2px rgb(255 255 255 / .9), 0 0 16px 6px rgb(190 170 255 / .5); }
.star-tail { position: absolute; left: 50%; top: 50%; width: 120px; height: 2px; margin-top: -1px; transform-origin: 0 50%; transform: rotate(var(--tail));
  background: linear-gradient(90deg, rgb(255 255 255 / .85), rgb(200 190 255 / 0)); border-radius: 2px; }
.star-burst { position: fixed; z-index: 31; width: 0; height: 0; pointer-events: none; }
.star-burst i { position: absolute; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: #fff4c4; box-shadow: 0 0 6px #ffe48a;
  animation: spark .8s ease-out forwards; --a: 0deg; }
.moment-card { position: fixed; z-index: 35; left: 16px; right: 16px; bottom: calc(18px + var(--safe-bottom)); max-width: 380px; margin: 0 auto;
  display: grid; gap: 4px; padding: 14px 18px; border: 0; border-radius: 14px; text-align: center; cursor: pointer;
  background: #2a2340; color: #f3ecff; box-shadow: 0 12px 30px rgb(0 0 0 / .35); animation: sheet-in .4s ease-out; transition: opacity .5s, transform .5s; }
.moment-card.leaving { opacity: 0; transform: translateY(16px); }
.moment-title { font: 11px var(--type); letter-spacing: .14em; text-transform: uppercase; color: #b9a8ec; }
.moment-text { font: 20px/1.3 var(--hand); }

/* UV fener */
.uv-toggle { position: fixed; z-index: 34; right: calc(14px + var(--safe-right)); bottom: calc(16px + var(--safe-bottom)); display: flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 14px 8px 10px; border-radius: 999px; border: 1px solid rgb(200 170 255 / .35); background: rgb(36 28 54 / .88); color: #e6dcff;
  font: 13px var(--type); box-shadow: 0 6px 18px rgb(0 0 0 / .3); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.uv-toggle[hidden] { display: none; }
.uv-icon { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, #d9b8ff 0 30%, #7a3cff 70%); box-shadow: 0 0 0 2px rgb(255 255 255 / .15); }
.uv-toggle.on { background: #5b2bb5; border-color: #c9a6ff; color: #fff; }
.uv-toggle.on .uv-icon { box-shadow: 0 0 12px 4px rgb(170 110 255 / .9); }
html.night .moment-card { bottom: calc(76px + var(--safe-bottom)); }
.uv-layer { position: absolute; left: 0; top: 0; z-index: 26; pointer-events: none; overflow: hidden; background: rgb(24 8 52 / .72);
  -webkit-mask-image: radial-gradient(circle 90px at var(--ux, -999px) var(--uy, -999px), #000 45%, transparent 100%);
  mask-image: radial-gradient(circle 90px at var(--ux, -999px) var(--uy, -999px), #000 55%, transparent 100%); }
.uv-note { position: absolute; font: 22px/1.2 var(--hand); color: #e4c2ff; text-shadow: 0 0 6px #a55cff, 0 0 14px rgb(160 90 255 / .7); }
.uv-glow { position: fixed; z-index: 25; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgb(150 80 255 / .26), rgb(110 40 220 / .12) 45%, transparent 70%); mix-blend-mode: screen; }

/* İnternet yokken */
.offline-note { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: #fff6d8; border: 1.5px dashed #d9b85c; font-size: 15px; color: #5a4a20;
  transform: rotate(-.6deg); box-shadow: var(--shadow); }
.offline-note strong { font: 20px/1.2 var(--hand); color: var(--accent-deep); display: block; }
html.night .offline-note { filter: brightness(.9) sepia(.1); }

/* Yılbaşı */
.newyear { position: fixed; inset: 0; z-index: 60; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px;
  background: radial-gradient(ellipse at 50% 40%, #2b2147, #0d0a14 70%); color: #fff4d6; text-align: center; animation: page-in .4s ease-out; }
.fireworks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.newyear-title { position: relative; margin: 0; font: 22px/1.3 var(--hand); color: #d9c8ff; }
.newyear-count { position: relative; margin: 0; font: 700 120px/1 var(--serif); color: #fff4d6; text-shadow: 0 0 30px rgb(255 210 120 / .6); }
.newyear-count.pop { animation: thump .5s ease-out; }
.newyear-count.done { font: 56px/1.1 var(--hand); animation: code-pop .6s ease-out; }
.newyear-close { position: relative; margin-top: 18px; }
.wishes.new-year-glow { animation: ny-glow 2s ease-in-out 3; border-radius: 16px; }

/* Animasyonlar */
@keyframes bulb { from { opacity: .6; } to { opacity: 1; } }
@keyframes star-glow { from { filter: drop-shadow(0 0 4px rgb(255 210 90 / .6)); } to { filter: drop-shadow(0 0 14px rgb(255 210 90 / 1)); } }
@keyframes hang { 0% { rotate: -22deg; } 30% { rotate: 14deg; } 55% { rotate: -7deg; } 80% { rotate: 3deg; } 100% { rotate: 0deg; } }
@keyframes beckon { 50% { transform: translateY(-6px) scale(1.12); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 30%, transparent); } }
@keyframes shoot { 0% { transform: translate(0, 0); opacity: 0; } 8% { opacity: 1; } 75% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
@keyframes spark { from { transform: rotate(var(--a)) translateX(0); opacity: 1; } to { transform: rotate(var(--a)) translateX(46px); opacity: 0; } }
@keyframes ny-glow { 50% { box-shadow: 0 0 0 6px rgb(255 210 120 / .5), 0 0 40px rgb(255 210 120 / .5); } }
@keyframes nudge { 0%, 85%, 100% { transform: rotate(0); } 90% { transform: rotate(-40deg); } 95% { transform: rotate(20deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes stamp { from { transform: scale(2.4) rotate(-25deg); opacity: 0; } to { transform: scale(1) rotate(-10deg); opacity: .85; } }
@keyframes join { 50% { transform: scale(1.35); } }
@keyframes pulse { 50% { transform: scale(1.15); box-shadow: 0 0 0 6px rgb(255 255 255 / .4); } }
@keyframes just-opened { 0% { transform: rotate(var(--tilt)) scale(1); } 15% { transform: rotate(-6deg) scale(1.06); } 30% { transform: rotate(5deg) scale(1.06); } 45% { transform: rotate(-3deg) scale(1.04); } 100% { transform: rotate(var(--tilt)) scale(1); } }
@keyframes glow { 0% { box-shadow: inset 0 0 0 0 var(--accent); } 30% { box-shadow: inset 0 0 0 6px color-mix(in srgb, var(--accent) 50%, transparent); } 100% { box-shadow: inset 0 0 0 0 transparent; } }
@keyframes twinkle { from { opacity: .55; } to { opacity: 1; } }
@keyframes heart-fall {
  0% { opacity: 0; transform: translate(0, 0) rotate(0); }
  8% { opacity: .95; }
  100% { opacity: .9; transform: translate(var(--sway), 115vh) rotate(var(--spin)); }
}
@keyframes heart-burst {
  0% { opacity: 0; transform: translate(0, 0) scale(.4); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--sway), -60vh) rotate(var(--spin)) scale(1); }
}
@keyframes jiggle { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-14deg); } 80% { transform: rotate(12deg); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(5deg); } }
@keyframes tease { 0% { transform: scale(.6) rotate(-8deg); opacity: 0; } 60% { transform: scale(1.06) rotate(2deg); opacity: 1; } 100% { transform: scale(1) rotate(-1deg); } }
@keyframes code-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-16deg) translateY(-4px); } 45% { transform: rotate(13deg); } 70% { transform: rotate(-7deg); } 85% { transform: rotate(3deg); } }
@keyframes seal-hit { 0%, 100% { transform: rotate(0) scale(1); } 30% { transform: rotate(-9deg) scale(.92); } 65% { transform: rotate(7deg) scale(1.03); } }
@keyframes wave { 0%, 100% { height: 25%; } 50% { height: 100%; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes page-in { from { opacity: 0; transform: translateY(14px) rotate(-1deg); } to { opacity: 1; transform: none; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-24px) rotate(-8deg) scale(.9); } to { opacity: 1; transform: rotate(-2deg); } }
@keyframes beat { 0%, 100% { transform: rotate(-10deg) scale(1); } 15% { transform: rotate(-10deg) scale(1.12); } 30% { transform: rotate(-10deg) scale(1); } }

/* Çok dar telefonlar (≤360 px) */
@media (max-width: 360px) {
  :root { --gutter: 14px; }
  .brand { font-size: 18px; }
  .days-grid { gap: 26px 12px; }
  .card-number { font-size: 46px; }
  .card-day { font-size: 16px; }
  .gift-code { font-size: 38px; }
  dialog { padding-left: calc(40px + var(--safe-left)); }
}

/* Fare ile gezilen cihazlar: üzerine gelme efektleri */
@media (hover: hover) and (pointer: fine) {
  .button:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--accent-deep); }
  .day-card:not(:disabled):hover { transform: rotate(0) translateY(-5px) scale(1.02); box-shadow: 0 2px 3px rgb(60 40 20 / .1), 0 16px 30px rgb(60 40 20 / .2); }
  .wall-item:hover { transform: rotate(0) scale(1.05); z-index: 1; }
}

/* Tablet ve üstü (≥640 px) */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  body { font-size: 17px; }
  .site-header { min-height: calc(88px + var(--safe-top)); }
  .brand { font-size: 25px; gap: 10px; }
  .brand-heart { width: 28px; height: 24px; }
  .hero { padding: 56px 0 52px; }
  .hero-polaroid { width: 360px; }
  .hero-polaroid .face.front { padding: 16px 16px 0; }
  .hero-polaroid .tape-left { left: -18px; }
  .hero-polaroid .tape-right { right: -18px; }
  .hero-polaroid figcaption { min-height: 72px; font-size: 24px; }
  .photo-slot svg { width: 60px; }
  .photo-slot span { font-size: 22px; }
  .section-top { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .eyebrow { font-size: 12px; letter-spacing: .16em; }
  h2 { font-size: 34px; }
  .calendar-description { font-size: 16px; margin-bottom: 34px; }
  .days-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; }
  .day-card { padding: 10px 10px 0; }
  .day-card > .tape { width: 74px; height: 24px; top: -12px; }
  .card-number { font-size: 64px; }
  .card-day { font-size: 20px; }
  .card-state { font-size: 11px; letter-spacing: .08em; }
  .card-caption { padding: 12px 4px 14px; }
  .today-sticker { font-size: 17px; padding: 2px 12px 4px; }
  .wall { margin-top: 72px; }
  .wall-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 20px; }
  .wallet-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .song { width: 340px; }
  .site-footer { flex-direction: row; justify-content: space-between; align-items: center; margin-top: 64px; padding-top: 34px; }
  .footer-mark { font-size: 22px; }
  .site-footer p { font-size: 12px; }
  .entry-state h1 { font-size: 40px; }

  /* Pencere: ortada bir defter sayfası */
  dialog {
    inset: 0; width: calc(100% - 48px); max-width: 540px; height: fit-content; max-height: calc(100dvh - 48px); margin: auto;
    border-radius: 3px; padding: 44px 34px 32px 72px;
    background: linear-gradient(90deg, transparent 50px, rgb(181 71 58 / .45) 50px 51px, transparent 51px),
      repeating-linear-gradient(transparent 0 31px, rgb(120 150 190 / .24) 31px 32px) 0 12px, var(--card);
    box-shadow: 0 30px 60px rgb(40 25 10 / .35);
  }
  dialog[open] { animation-name: page-in; }
  dialog::backdrop { backdrop-filter: blur(4px); }
  dialog.is-reward { padding: 44px 32px 32px; }
  .close-button { right: 10px; top: 8px; }
  dialog h2 { font-size: 36px; }
  .question { font-size: 21px; }
  .reward-view h2 { font-size: 38px; }
  .gift-code { font-size: 52px; }
  .reward-polaroid { width: min(300px, 86%); }
  .reward-polaroid .face.front { padding: 12px 12px 44px; }
  .voice-label { font-size: 20px; }
}

/* Masaüstü (≥900 px) */
@media (min-width: 900px) {
  :root { --gutter: 48px; }
  .site-header { min-height: 96px; }
  .brand { font-size: 26px; }
  .hero { padding: 64px 0 56px; }
  .hero-polaroid { width: 380px; }
  .days-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; }
  .card-number { font-size: 68px; }
  .card-day { font-size: 21px; }
  .wall-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .wallet-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
