:root {
  --red: #E3262F; --red-deep: #B5121D; --paper: #F6F3EE; --ink: #161413;
  --ease: cubic-bezier(.8, 0, .2, 1); --spring: cubic-bezier(.3, 1.7, .45, 1);
  --display: "Freckle Face", "Noto Sans SC", system-ui, sans-serif;
  --text: Nunito, "Noto Sans SC", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; overflow: hidden; background: var(--paper); color: var(--red); }
body { font-family: var(--text); font-weight: 700; -webkit-font-smoothing: antialiased; touch-action: none; overscroll-behavior: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-transform: inherit; letter-spacing: inherit; }
@media (pointer: fine) { #gl { cursor: none; } }

#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- buttons ----------
   Dolgun, basılabilir tuşlar: alttaki "taban" gölgesi derinlik verir; üstüne gelince yükselir
   ve renk değiştirir, basınca çöker ve jöle gibi esner. */
.btn {
  position: relative; border-radius: 999px; background: #fff; color: var(--red);
  border: 2px solid var(--red); box-shadow: 0 4px 0 var(--red), 0 10px 18px -10px rgba(22, 20, 19, .35);
  transition: transform .35s var(--spring), background .18s, color .18s, border-color .18s, box-shadow .18s;
}
.btn:hover { background: var(--red); color: var(--paper); transform: translateY(-2px); box-shadow: 0 6px 0 var(--red-deep), 0 14px 22px -10px rgba(22, 20, 19, .4); border-color: var(--red-deep); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--red-deep), 0 4px 8px -6px rgba(22, 20, 19, .4); transition-duration: .08s; }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.primary { background: var(--red); color: var(--paper); border-color: var(--red-deep); box-shadow: 0 5px 0 var(--red-deep), 0 14px 26px -12px rgba(227, 38, 47, .7); }
.btn.primary:hover { background: var(--ink); border-color: #000; box-shadow: 0 7px 0 #000, 0 18px 28px -12px rgba(22, 20, 19, .55); }
.btn.primary:active { box-shadow: 0 1px 0 #000, 0 4px 8px -6px rgba(22, 20, 19, .5); }
.btn.jelly { animation: jelly .6s var(--ease); }
@keyframes jelly {
  0% { scale: 1 1; } 25% { scale: 1.1 .88; } 42% { scale: .94 1.08; } 60% { scale: 1.03 .97; } 80% { scale: .99 1.01; } 100% { scale: 1 1; }
}

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: 14px; text-decoration: none; white-space: nowrap; }
.round { width: 40px; height: 40px; display: grid; place-items: center; font: 800 22px/1 var(--text); padding: 0 0 2px; }
.pill-text { padding: 9px 10px; font-size: 14px; white-space: nowrap; border-radius: 999px; transition: background .18s; }
.pill-text:hover { background: rgba(227, 38, 47, .1); }

/* ---------- logo + intro ---------- */
.logo {
  /* Tam genişlik + text-align ile ortalanır: genişlik hesabı fonta/yakınlaştırmaya bağlı değil (Safari'de font geç yüklenince kayıyordu). */
  position: fixed; left: 0; right: 0; top: 50%; z-index: 5; pointer-events: none; white-space: nowrap; text-align: center;
  font: 400 clamp(46px, 7.6vw, 132px)/.9 var(--display); letter-spacing: -.09em; padding-top: .12em;
  transform: translateY(-50%) scale(.8); opacity: 0; filter: blur(10px);
  text-shadow: 0 2px 0 rgba(255, 255, 255, .6), 0 10px 30px rgba(227, 38, 47, .18);
}
.logo.spread {
  opacity: 1; filter: blur(0); letter-spacing: .12em; transform: translateY(-50%) scale(1.25);
  transition: opacity 1.4s, filter 1.4s, letter-spacing 2.8s cubic-bezier(.16, .8, .2, 1), transform 2.8s cubic-bezier(.16, .8, .2, 1);
}
.logo.docked {
  top: 0; letter-spacing: 0; transform: translateY(0) scale(1);
  transition: top 1.3s var(--ease), transform 1.3s var(--ease), letter-spacing 1.3s var(--ease);
}
.logo .amp { display: inline-block; transform-origin: 50% 85%; animation: squish 2.6s var(--ease) infinite; margin: 0 .06em; }
@keyframes squish {
  0%, 100% { transform: scale(1, 1); }
  30% { transform: scale(1.35, .72); }
  55% { transform: scale(.82, 1.18) rotate(-6deg); }
  75% { transform: scale(1.06, .95); }
}

/* ---------- chrome ---------- */
.corner, .hint { position: fixed; z-index: 6; opacity: 0; transition: opacity .8s .4s; }
.corner.left { top: 20px; left: 20px; display: grid; gap: 10px; justify-items: start; }
.corner.right { top: 18px; right: 20px; }
.count { font-size: 14px; letter-spacing: .02em; padding-left: 4px; }
.hint { left: 22px; bottom: 26px; font-size: 13px; }
.ready .corner, .ready .hint, .ready .upload { opacity: 1; }
.actions { display: flex; gap: 8px; }
.grid-only { display: none; }
.gridmode .grid-only { display: flex; }
.gridmode .sphere-only { display: none; }

.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: #fff; border: 2px solid var(--red); box-shadow: 0 4px 0 var(--red); }
.seg button { position: relative; padding: 7px 16px; font-size: 14px; z-index: 1; transition: color .3s; white-space: nowrap; }
.seg button[aria-checked="true"] { color: var(--paper); }
.seg-blob {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px;
  background: var(--red);
  transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .7s var(--spring);
}
.seg-blob.moving { animation: stretch .7s var(--ease); }
@keyframes stretch { 0% { scale: 1 1; } 35% { scale: 1.45 .78; } 65% { scale: .92 1.08; } 100% { scale: 1 1; } }

.flag-btn { width: 50px; height: 50px; padding: 6px; display: grid; place-items: center; }
.flag-btn img, .lang-menu img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 2px 4px rgba(22, 20, 19, .15); }
.lang-menu { position: absolute; right: 0; top: 62px; display: flex; gap: 6px; padding: 6px; border-radius: 999px; transform-origin: 85% 0;
  background: #fff; border: 2px solid var(--red); box-shadow: 0 4px 0 var(--red), 0 14px 26px -12px rgba(22, 20, 19, .35); }
.lang-menu[hidden] { display: none; }
.lang-menu:not([hidden]) { animation: pop .55s var(--spring); }
@keyframes pop { from { scale: .4; opacity: 0; } }
.lang-menu button { width: 40px; height: 40px; border-radius: 50%; padding: 3px; transition: transform .4s var(--spring), box-shadow .2s; }
.lang-menu button:hover { transform: translateY(-3px) scale(1.12); }
.lang-menu button[aria-current="true"] { box-shadow: 0 0 0 2.5px var(--red); }
.lang-menu:not([hidden]) button { animation: pop .5s var(--spring) backwards; }
.lang-menu button:nth-child(2) { animation-delay: .05s !important; }
.lang-menu button:nth-child(3) { animation-delay: .1s !important; }
.lang-menu button:nth-child(4) { animation-delay: .15s !important; }

.upload {
  position: fixed; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); z-index: 6;
  display: flex; align-items: center; gap: 14px; padding: 16px 24px 16px 30px; white-space: nowrap;
  font: 400 24px/1 var(--display); letter-spacing: .02em; text-transform: uppercase;
  translate: -50% 0; opacity: 0; transition: opacity .8s .6s, translate .6s var(--spring), transform .6s var(--spring), box-shadow .3s;
}
.upload .plus { font: 800 26px/.7 var(--text); transition: rotate .5s var(--spring); }
.upload:hover .plus { rotate: 90deg; }
.focusing .upload, .gridmode .upload { translate: -50% 220%; }
.focusing .hint, .focusing .corner { opacity: 0; transition-delay: 0s; pointer-events: none; }
.gridmode .hint { opacity: 0; }

.select-bar {
  position: fixed; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); z-index: 6;
  display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 20px; white-space: nowrap; border-radius: 999px;
  background: #fff; border: 2px solid var(--red); box-shadow: 0 5px 0 var(--red), 0 16px 30px -12px rgba(22, 20, 19, .35);
  translate: -50% 220%; transition: translate .7s var(--spring), transform .6s var(--spring), box-shadow .3s;
}
.gridmode .select-bar { translate: -50% 0; }
.sel-count { font-size: 14px; margin-right: 6px; color: var(--ink); }
.select-bar button:disabled { opacity: .45; }

/* ---------- TechLiberty imzası ---------- */
.credit {
  position: fixed; right: 20px; bottom: max(22px, env(safe-area-inset-bottom)); z-index: 6;
  display: flex; align-items: center; gap: 11px; padding: 7px 18px 7px 9px; text-decoration: none; color: var(--ink);
  background: #fff; border: 2px solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink), 0 14px 24px -12px rgba(22, 20, 19, .35);
  opacity: 0; transition: opacity .8s 1s, transform .35s var(--spring), box-shadow .18s, translate .6s var(--spring);
}
.credit img { height: 40px; width: auto; display: block; transition: rotate .5s var(--spring); }
.credit span { display: grid; line-height: 1.05; }
.credit small { font: 800 9.5px/1.2 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.credit b { font: 400 21px/1 var(--display); letter-spacing: .02em; }
.credit:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink), 0 18px 28px -12px rgba(22, 20, 19, .4); }
.credit:hover img { rotate: -8deg; }
.credit:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); transition-duration: .08s; }
.ready .credit { opacity: 1; }
.focusing .credit, .gridmode .credit { translate: 0 220%; }

.sheet-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: none; padding-bottom: 12px; border-bottom: 1.5px dashed rgba(227, 38, 47, .3); }
.credit-mini { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 800; min-width: 0; }
.credit-mini img { height: 26px; width: auto; flex: none; }
.credit-mini span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.credit-mini small { font-size: inherit; font-weight: 700; color: var(--red); }
.credit-mini:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- caption + focus ---------- */
.caption {
  position: fixed; left: 0; right: 0; bottom: 10vh; z-index: 4; pointer-events: none; text-align: center; white-space: nowrap;
  font: 400 9vw/1 var(--display); overflow: hidden; padding-top: .12em; text-transform: uppercase;
  text-shadow: 0 3px 0 rgba(255, 255, 255, .55);
}
.gridmode .caption { font-size: 4.6vw; bottom: 96px; }
.caption .line { display: inline-block; }
.caption .ch { display: inline-block; transform: translateY(140%) rotate(8deg); transition: transform .6s var(--spring); transition-delay: calc(var(--i) * 18ms); }
.caption.on .ch { transform: none; }

.focus-ui { position: fixed; z-index: 7; top: 20px; right: 20px; display: flex; gap: 8px; opacity: 0; pointer-events: none; transition: opacity .4s; }
.focusing .focus-ui { opacity: 1; pointer-events: auto; }
.focus-count { align-self: center; font: 400 18px/1 var(--display); color: var(--ink); min-width: 3ch; text-align: center; }
.nav { position: fixed; top: 50%; z-index: 7; width: 52px; height: 52px; font: 400 34px/1 var(--text); padding-bottom: 4px;
  translate: 0 -50%; opacity: 0; pointer-events: none; transition: opacity .3s, transform .35s var(--spring), background .18s, color .18s, box-shadow .18s; }
.nav.prev { left: 18px; } .nav.next { right: 18px; }
.focusing .nav { opacity: 1; pointer-events: auto; }
.focusing.single .nav { opacity: 0; pointer-events: none; }
.focus-info { position: fixed; z-index: 7; left: 22px; top: 22px; max-width: 300px; font-size: 15px; line-height: 1.35; opacity: 0; transition: opacity .4s; pointer-events: none; }
.focus-info a { color: inherit; pointer-events: auto; }
.focus-info q { display: block; margin-bottom: 6px; font-size: 18px; color: var(--ink); }
.focusing .focus-info { opacity: 1; }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 20; pointer-events: none; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--red);
  transform: scale(.14); background: var(--red); border: 2px solid var(--red); transition: transform .5s var(--spring), background .3s, opacity .2s; }
.cursor span { opacity: 0; transition: opacity .2s; }
.cursor.big { transform: scale(1); background: rgba(246, 243, 238, .82); }
.cursor.big span { opacity: 1; transition-delay: .15s; }
.cursor.hidden { opacity: 0; }
@media (pointer: coarse) {
  .cursor { display: none; }
  /* Telefonda: "+" solda, yazı sağda; kutu içeriğine göre boylanır. */
  .dropzone { grid-auto-flow: column; justify-content: center; gap: 12px; padding: 14px 16px; }
  .dropzone small { display: none; }
  .dropzone strong { font-size: 18px; line-height: 1.05; text-align: left; }
  .drop-plus { font-size: 32px; }
}

/* ---------- upload sheet ---------- */
.sheet {
  border: 0; padding: 0; margin: 14px 14px 14px auto; height: calc(100% - 28px); max-height: none; width: min(500px, calc(100% - 28px)); max-width: none;
  border-radius: 34px; color: var(--red); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y;
  background: var(--paper); border: 2px solid var(--red);
  box-shadow: 0 6px 0 var(--red), 0 30px 80px -20px rgba(22, 20, 19, .45);
}
.sheet[open] { animation: sheet-in .8s var(--spring); }
.sheet::backdrop { background: rgba(22, 20, 19, .28); }
@keyframes sheet-in { from { transform: translateX(110%) scale(.9); } }
/* Form tek ekrana sığar: bırakma alanı esner, kısa ekranlarda yardımcı metinler gizlenir. */
.sheet-inner { height: 100%; display: flex; flex-direction: column; gap: clamp(12px, 2vh, 18px); padding: clamp(14px, 2.4vh, 24px) 26px clamp(18px, 3vh, 28px); }
.sheet-close { align-self: flex-end; flex: none; }
.sheet h2:focus { outline: none; }
.sheet h2 { font: 400 clamp(30px, min(5.4vh, 6vw), 58px)/.95 var(--display); text-transform: uppercase; margin-top: 2px; }
.sheet-sub { font-size: 15px; line-height: 1.4; color: var(--ink); font-weight: 500; max-width: 40ch; }
.dropzone {
  flex: 1 1 auto; min-height: min-content; display: grid; place-content: center; justify-items: center; gap: 4px; padding: 12px 16px; text-align: center; border-radius: 26px;
  background: #fff; border: 2px dashed var(--red); cursor: pointer;
  transition: background .3s, color .3s, scale .5s var(--spring);
}
.dropzone:hover, .dropzone.over { background: var(--red); color: var(--paper); scale: 1.02; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.drop-plus { font: 800 clamp(30px, 5vh, 48px)/.8 var(--text); }
.dropzone strong { font: 400 24px/1 var(--display); text-transform: uppercase; }
.dropzone small { font-size: 13px; font-weight: 500; }
/* Dosya seçildikten sonra seçim alanı tek satıra iner; yer önizlemelere ve aralıklara kalır. */
.sheet-inner:has(.thumb) .dropzone { flex: none; min-height: 0; padding: 10px 14px; grid-auto-flow: column; gap: 10px; }
.sheet-inner:has(.thumb) .drop-plus { font-size: 26px; }
.sheet-inner:has(.thumb) .dropzone strong { font-size: 17px; }
.sheet-inner:has(.thumb) .dropzone small { display: none; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; flex: none; padding: 2px 2px 8px; scrollbar-width: thin; }
.thumbs:empty { display: none; }
.thumb { position: relative; flex: none; width: clamp(48px, 7vh, 64px); aspect-ratio: 1; overflow: hidden; border-radius: 18px; background: #e8e2d9; animation: pop .5s var(--spring); box-shadow: 0 6px 14px -6px rgba(22, 20, 19, .35); }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.prep { display: grid; place-items: center; }
.thumb .spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(227, 38, 47, .25); border-top-color: var(--red); animation: spin .8s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.thumb.bad { outline: 2px dashed var(--red); outline-offset: -2px; background: #f1ebe4; }
.thumb.bad img { filter: grayscale(1); opacity: .4; }
.thumb .flag, .thumb .play { position: absolute; left: 6px; bottom: 5px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  font: 800 12px/1 var(--text); color: #fff; background: var(--red); pointer-events: none; }
.thumb .play { background: rgba(22, 20, 19, .7); font-size: 9px; padding-left: 2px; }
.thumb.bad .flag { left: 50%; top: 50%; bottom: auto; translate: -50% -50%; width: 26px; height: 26px; font-size: 15px; }
.thumb button { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: var(--paper); font-size: 14px; line-height: 22px; }
.field { display: grid; gap: 5px; flex: none; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.counter { font-size: 12px; font-weight: 700; color: rgba(22, 20, 19, .45); font-variant-numeric: tabular-nums; padding-right: 6px; transition: color .2s; }
.counter.near { color: var(--red); }
.ig-wrap { position: relative; }
.ig-wrap span { position: absolute; left: 16px; top: 50%; translate: 0 -50%; font: 700 17px/1 var(--text); color: var(--red); pointer-events: none; }
.ig-wrap input { width: 100%; padding-left: 34px !important; }
.field label { font-size: 13px; letter-spacing: .03em; text-transform: uppercase; padding-left: 6px; }
.field em { font-style: normal; opacity: .55; text-transform: none; }
.field input, .field textarea {
  font: 600 17px/1.3 var(--text); color: var(--ink); border: 2px solid rgba(227, 38, 47, .35); border-radius: 20px; padding: clamp(8px, 1.3vh, 12px) 16px;
  background: #fff; resize: none; outline: none;
  transition: box-shadow .3s, background .3s;
}
.field textarea { font-size: 16px; line-height: 1.3; height: calc(3 * 1.3em + 2 * clamp(8px, 1.3vh, 12px) + 4px); }
.field input::placeholder, .field textarea::placeholder { color: rgba(22, 20, 19, .35); }
.field input:focus, .field textarea:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(227, 38, 47, .15); }
.field small { font-size: 12px; font-weight: 500; color: rgba(22, 20, 19, .6); padding-left: 6px; }
.sheet-error { font-size: 12.5px; font-weight: 700; line-height: 1.35; padding-left: 4px; margin-top: -4px; }
.sheet-error:empty { display: none; }
.submit { flex: none; display: flex; justify-content: space-between; align-items: center; padding: clamp(13px, 2vh, 18px) 26px; font: 400 26px/1 var(--display); text-transform: uppercase; border-radius: 26px; }
.countdown { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: none; margin: 2px 0;
  padding: 6px 6px 6px 12px; border-radius: 16px; background: var(--ink); color: var(--paper); }
.countdown[hidden] { display: none; }
.cd-label { font-size: 11.5px; font-weight: 700; line-height: 1.2; opacity: .85; }
.cd-units { display: flex; gap: 4px; flex: none; }
.cd-units span { display: grid; justify-items: center; min-width: 36px; padding: 4px 4px 3px; border-radius: 10px; background: rgba(246, 243, 238, .1); }
.cd-units b { font: 400 18px/1 var(--display); color: #FF8A8F; font-variant-numeric: tabular-nums; }
.cd-units i { font: 700 8.5px/1.2 var(--text); font-style: normal; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.closed .countdown { background: var(--red); }
.upload:disabled { background: #8A8580; border-color: #6E6964; box-shadow: 0 5px 0 #5E5954; opacity: 1; pointer-events: none; }
.upload:disabled .plus { display: none; }
.meter { display: flex; align-items: center; gap: 12px; flex: none; }
.meter[hidden] { display: none; }
.pips { flex: 1; display: flex; gap: 5px; }
.pip { flex: 1; height: 12px; border-radius: 999px; background: #fff; border: 2px solid rgba(227, 38, 47, .45); transition: background .25s, border-color .25s, scale .4s var(--spring); }
.pip.used { background: rgba(22, 20, 19, .18); border-color: transparent; }
.pip.sel { background: var(--red); border-color: var(--red); scale: 1 1.25; }
.pip.vid { background: repeating-linear-gradient(-45deg, var(--red) 0 4px, #FF8A8F 4px 8px); }
.meter-count { font: 400 18px/1 var(--display); white-space: nowrap; }
.quota { font-size: 12.5px; font-weight: 700; color: rgba(22, 20, 19, .7); margin-top: -6px; }
.quota:empty { display: none; }
.submit { overflow: hidden; }
.submit > span { position: relative; }
.progress { position: absolute !important; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: rgba(255, 255, 255, .22); transition: transform .3s; pointer-events: none; }
.busy .dropzone, .busy .thumbs button, .busy .sheet-close { opacity: .45; pointer-events: none; }
.focus-info small { display: block; margin-top: 6px; font-size: 13px; color: rgba(22, 20, 19, .6); }
.empty-hint { position: fixed; left: 0; right: 0; bottom: calc(max(22px, env(safe-area-inset-bottom)) + 80px); z-index: 5; text-align: center;
  font: 400 clamp(26px, 3.2vw, 44px)/1 var(--display); text-transform: uppercase; pointer-events: none; opacity: 0; transition: opacity .8s 1.5s; }
.ready .empty-hint { opacity: 1; }
.gridmode .empty-hint, .focusing .empty-hint { opacity: 0; transition-delay: 0s; }
.sheet-demo { flex: none; font-size: 12px; font-weight: 500; color: rgba(22, 20, 19, .5); text-align: center; }

/* ---------- misc ---------- */
.loader { position: fixed; right: 22px; bottom: 22px; z-index: 8; font-size: 14px; text-transform: uppercase; transition: opacity .5s; }
.ready .loader { opacity: 0; }
.toast { position: fixed; right: 20px; bottom: 96px; z-index: 8; padding: 12px 18px; font-size: 14px; border-radius: 999px; background: #fff; border: 2px solid var(--red); box-shadow: 0 4px 0 var(--red); translate: 0 calc(100% + 140px); transition: translate .7s var(--spring); }
.toast.on { translate: 0 0; }
body.dragging::after { content: ""; position: fixed; inset: 12px; z-index: 30; border: 3px dashed var(--red); border-radius: 30px; pointer-events: none; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

@media (max-width: 720px) {
  .logo.spread:not(.docked) { letter-spacing: .06em; transform: translateY(-50%) scale(1.06); }
  .logo.docked { top: max(2px, env(safe-area-inset-top)); }
  .corner.left { top: auto; bottom: 118px; left: 14px; gap: 8px; }
  .corner.right { top: auto; bottom: 118px; right: 14px; }
  .count { font-size: 12px; }
  .pill { padding: 8px 13px; font-size: 13px; }
  .seg button { padding: 7px 12px; font-size: 13px; }
  .flag-btn { width: 44px; height: 44px; }
  .lang-menu { top: auto; bottom: 54px; transform-origin: 85% 100%; }
  .hint { display: none; }
  .credit { right: 14px; left: 14px; justify-content: center; bottom: max(6px, env(safe-area-inset-bottom)); padding: 3px 12px 3px 6px; gap: 7px;
    border-width: 1.5px; border-radius: 12px; box-shadow: 0 2px 0 var(--ink); }
  .credit img { height: 22px; }
  .credit span { display: flex; align-items: baseline; gap: 6px; }
  .credit small { font-size: 8.5px; white-space: nowrap; }
  .credit b { white-space: nowrap; }
  .credit b { font-size: 14px; }
  .focusing .credit, .gridmode .credit { translate: 0 220%; }
  .upload { bottom: max(44px, calc(env(safe-area-inset-bottom) + 38px)); }
  .select-bar { bottom: max(22px, env(safe-area-inset-bottom)); }
  /* Butonların (alt köşeler) üstünde dur; fotoğraf açıkken butonlar gizlenir, isim aşağı iner. */
  .empty-hint { bottom: 258px; font-size: 7vw; }
  .caption { bottom: 194px; font-size: 11vw; transition: bottom .5s var(--ease); }
  .focusing .caption { bottom: 84px; }
  .gridmode .caption { display: none; }
  .gridmode .corner.left { bottom: auto; top: calc(14vw + 18px); }
  .gridmode .corner.right { bottom: auto; top: calc(14vw + 14px); }
  .gridmode .corner.right .lang-menu { top: 54px; bottom: auto; }
  .select-bar { padding-left: 14px; gap: 2px; max-width: calc(100% - 20px); }
  .pill-text { padding: 8px 7px; font-size: 13px; }
  .focus-ui { top: auto; bottom: 22px; left: 14px; right: 14px; justify-content: space-between; }
  .nav { width: 40px; height: 40px; font-size: 26px; }
  .nav.prev { left: 8px; } .nav.next { right: 8px; }
  .focus-info { top: auto; bottom: calc(96px + 13vw); max-width: none; right: 22px; font-size: 14px; }
  .toast { left: 14px; right: 14px; bottom: auto; top: calc(14vw + 10px); text-align: center; translate: 0 -400%; }
  .toast.on { translate: 0 0; }
  .sheet { margin: auto 0 0; width: 100%; height: calc(100dvh - 24px); border-radius: 30px 30px 0 0; }
  .sheet-inner { padding-left: 18px; padding-right: 18px; }
  @keyframes sheet-in { from { transform: translateY(100%); } }
}

@media (max-height: 940px) { .sheet .help { display: none; } }
@media (max-width: 380px) { .field textarea { font-size: 14px; } }
@media (max-height: 920px) { .sheet-sub { display: none; } }
@media (max-height: 680px) { .sheet-sub, .sheet-demo { display: none; } .dropzone small { display: none; } }
@media (max-height: 800px) {
  .sheet-inner { gap: 11px; padding-top: 14px; padding-bottom: 18px; }
  .sheet-top { padding-bottom: 9px; }
  .sheet h2 { font-size: min(30px, 8vw); }
  .countdown { margin: 0; padding-top: 5px; padding-bottom: 5px; }
  .submit { padding-top: 14px; padding-bottom: 14px; }
  .field input { padding-top: 10px; padding-bottom: 10px; }
}
@media (max-height: 700px) {
  .sheet-inner { gap: 9px; padding-top: 12px; padding-bottom: 14px; }
  .sheet-top { padding-bottom: 7px; }
  .cd-label { font-size: 10.5px; }
  .countdown { padding: 4px 4px 4px 10px; }
  .cd-units span { min-width: 30px; padding: 2px 3px; }
  .cd-units b { font-size: 15px; }
  .sheet h2 { font-size: 27px; margin-top: 0; }
  .dropzone { min-height: 52px; padding: 6px 12px; grid-auto-flow: column; gap: 10px; }
  .drop-plus { font-size: 26px; }
  .dropzone strong { font-size: 17px; }
  .thumb { width: 44px; border-radius: 12px; }
  .thumbs { padding-bottom: 4px; }
  .field { gap: 4px; }
  .field label, .counter { font-size: 11.5px; }
  .field input, .field textarea { padding-top: 7px; padding-bottom: 7px; font-size: 15px; }
  .field textarea { height: calc(3 * 1.3em + 18px); }
  .quota { font-size: 11.5px; margin-top: -4px; }
  .submit { padding-top: 11px; padding-bottom: 11px; font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .logo .amp { animation: none; }
  .logo, .logo.spread, .logo.docked { transition-duration: .01s !important; }
  .btn.jelly, .seg-blob.moving { animation: none; }
}
