:root {
  --pink: #ff6fa8;
  --pink-d: #e1306c;
  --pink-l: #ffe4f0;
  --lilac: #c084fc;
  --bg: #fff5f9;
  --card: #ffffff;
  --text: #4a2338;
  --muted: #9a6b82;
  --line: #ffd3e5;
  --shadow: 0 6px 24px rgba(225, 48, 108, .12);
  --r: 20px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--bg) radial-gradient(circle at 10% 0%, #ffe0ee 0, transparent 40%) fixed;
  color: var(--text);
  min-height: 100dvh;
}
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.2; }
h2 { font-size: 1.25rem; }
.muted { color: var(--muted); }
.brand { font-family: 'Pacifico', cursive; font-weight: 400; color: var(--pink-d); font-size: 2.2rem; }

/* ---- Butonlar & form ---- */
.btn {
  border: 0; border-radius: 999px; padding: .65em 1.2em; font-weight: 700;
  background: var(--pink-l); color: var(--pink-d); transition: transform .12s, filter .12s;
}
.btn:active { transform: scale(.96); }
.btn.primary { background: linear-gradient(135deg, var(--pink), var(--pink-d)); color: #fff; box-shadow: 0 6px 16px rgba(225, 48, 108, .3); }
.btn.ghost { background: transparent; border: 2px solid var(--line); }
.btn.big { width: 100%; padding: .9em; font-size: 1.05rem; }
.btn.small { padding: .4em .8em; font-size: .85rem; }
.btn:disabled { opacity: .5; }
.field { display: block; margin: 0 0 12px; }
.field > span { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 4px; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; border: 2px solid var(--line); border-radius: 14px; padding: .7em .9em; background: #fff; outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--pink); }
.field textarea { min-height: 110px; resize: vertical; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > .field { flex: 1 1 140px; }
.err { color: #d61f4f; font-weight: 700; min-height: 1.2em; text-align: center; }

/* ---- Giriş ---- */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 20px; }
.login-card { width: 100%; max-width: 380px; background: var(--card); border-radius: 28px; padding: 32px 24px; box-shadow: var(--shadow); text-align: center; }
.login-hearts { font-size: 3rem; animation: beat 1.2s infinite; }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.who-btn { border: 3px solid var(--line); background: #fff; border-radius: 20px; padding: 16px 8px; font-weight: 800; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.who-btn.sel { border-color: var(--pink); background: var(--pink-l); }
.who-emoji { font-size: 2.4rem; }

/* ---- Üst bar & sekmeler ---- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: rgba(255, 245, 249, .9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.partner { display: flex; gap: 10px; align-items: center; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--pink-l); display: grid; place-items: center; font-size: 1.5rem; position: relative; }
.avatar.on::after { content: ''; position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
.p-name { font-weight: 800; }
.p-status { font-size: .8rem; color: var(--muted); }
.top-actions { display: flex; gap: 6px; }
.icon-btn { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; box-shadow: var(--shadow); font-size: 1.1rem; }

main { max-width: 720px; margin: 0 auto; padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); }
.tabs {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}
.tabs button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; font-size: .75rem; font-weight: 700; color: var(--muted); padding: 4px; border-radius: 14px; position: relative; }
.tabs button span { font-size: 1.4rem; }
.tabs button.active { color: var(--pink-d); background: var(--pink-l); }
.badge { position: absolute; top: 0; right: calc(50% - 26px); background: var(--pink-d); color: #fff; font-style: normal; font-size: .7rem; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px; }

/* ---- Kartlar ---- */
.card { background: var(--card); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.hero { text-align: center; background: linear-gradient(135deg, #ff8fbd, #c084fc); color: #fff; position: relative; overflow: hidden; }
.hero .names { font-weight: 800; font-size: 1.05rem; opacity: .95; }
.hero .big-num { font-size: 4rem; font-weight: 800; line-height: 1; margin: 8px 0 2px; text-shadow: 0 4px 16px rgba(0, 0, 0, .15); }
.hero .sub { opacity: .95; font-weight: 600; }
.hero .heart-bg { position: absolute; font-size: 9rem; opacity: .12; right: -20px; bottom: -40px; animation: beat 1.6s infinite; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border-radius: 18px; padding: 14px; box-shadow: var(--shadow); text-align: center; }
.stat b { display: block; font-size: 1.6rem; color: var(--pink-d); }
.stat small { color: var(--muted); font-weight: 700; }
.ping-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ping-btn { border: 0; background: var(--pink-l); border-radius: 18px; padding: 14px 6px; font-weight: 800; color: var(--pink-d); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ping-btn span { font-size: 1.8rem; }
.ping-btn:active { transform: scale(.94); }
.call-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.call-row a { text-decoration: none; text-align: center; }

/* ---- Anılar ---- */
.chips { display: flex; gap: 8px; margin: 0 0 14px; overflow-x: auto; }
.chip { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: .35em .9em; font-weight: 700; white-space: nowrap; }
.chip.on { background: var(--pink); border-color: var(--pink); color: #fff; }
.moods { display: flex; gap: 6px; flex-wrap: wrap; }
.mood { border: 2px solid var(--line); background: #fff; border-radius: 12px; font-size: 1.4rem; width: 46px; height: 46px; }
.mood.on { border-color: var(--pink); background: var(--pink-l); }
.moment { background: #fff; border-radius: 6px; padding: 12px 12px 16px; box-shadow: 0 8px 22px rgba(74, 35, 56, .12); margin-bottom: 18px; position: relative; }
.moment:nth-child(odd) { transform: rotate(-.6deg); }
.moment:nth-child(even) { transform: rotate(.6deg); }
.moment img { width: 100%; border-radius: 4px; display: block; max-height: 460px; object-fit: cover; background: #f6eef2; }
.moment .m-head { display: flex; justify-content: space-between; align-items: center; margin: 10px 2px 4px; gap: 8px; }
.moment .m-title { font-weight: 800; font-size: 1.1rem; }
.moment .m-mood { font-size: 1.6rem; }
.moment .m-body { white-space: pre-wrap; margin: 4px 2px 10px; line-height: 1.5; }
.moment .m-meta { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--muted); font-weight: 700; }
.moment .new { position: absolute; top: -10px; left: -6px; background: var(--pink-d); color: #fff; font-weight: 800; font-size: .8rem; padding: 3px 10px; border-radius: 999px; transform: rotate(-6deg); }
.heart-btn { border: 0; background: none; font-size: 1.5rem; padding: 0 4px; }
.heart-btn.on { animation: pop .3s; }
.del-btn { border: 0; background: none; color: var(--muted); font-size: .8rem; text-decoration: underline; }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.empty div { font-size: 3rem; }
.file-pick { display: flex; align-items: center; gap: 10px; }
.file-pick img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }

/* ---- Giydirme ---- */
.dress-wrap { display: grid; gap: 14px; }
.dress-wrap > * { min-width: 0; }
@media (min-width: 680px) { .dress-wrap { grid-template-columns: 300px 1fr; align-items: start; } .stage { position: sticky; top: 80px; } }
.stage { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: #fff; max-width: 320px; margin: 0 auto; width: 100%; }
.doll-svg { display: block; width: 100%; height: auto; }
.cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; }
.cat { border: 0; background: #fff; border-radius: 14px; padding: .5em .8em; font-weight: 800; white-space: nowrap; box-shadow: 0 2px 8px rgba(225, 48, 108, .08); }
.cat.on { background: var(--pink); color: #fff; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 12px; }
.item { border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: .55em .4em; font-weight: 700; font-size: .88rem; }
.item.on { border-color: var(--pink); background: var(--pink-l); color: var(--pink-d); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sw { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); }
.sw.on { box-shadow: 0 0 0 3px var(--pink-d); }
.sub-h { font-weight: 800; font-size: .85rem; color: var(--muted); margin: 6px 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.g-item { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); border: 0; padding: 0; text-align: left; position: relative; }
.g-item .g-cap { padding: 6px 8px 8px; font-size: .8rem; }
.g-item .g-cap b { display: block; font-size: .88rem; }
.g-item .new { position: absolute; top: 6px; left: 6px; background: var(--pink-d); color: #fff; font-size: .7rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; }

/* ---- Tarihler ---- */
.date-big { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.date-box { background: linear-gradient(135deg, #fff, var(--pink-l)); border-radius: 18px; padding: 16px; border: 2px solid var(--line); }
.date-box h3 { font-size: 1rem; }
.date-box .count { font-size: 1.8rem; font-weight: 800; color: var(--pink-d); }
.date-box .count small { font-size: .9rem; }
.date-box .det { color: var(--muted); font-weight: 700; font-size: .85rem; margin-bottom: 8px; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 21px; top: 4px; bottom: 4px; width: 3px; background: var(--line); border-radius: 2px; }
.timeline li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; position: relative; }
.timeline .t-emoji { width: 45px; height: 45px; flex: none; border-radius: 50%; background: #fff; border: 3px solid var(--line); display: grid; place-items: center; font-size: 1.3rem; z-index: 1; }
.timeline .t-body { flex: 1; background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 2px 10px rgba(225, 48, 108, .08); }
.timeline .t-body b { display: block; }
.timeline .t-body small { color: var(--muted); font-weight: 700; }
.emoji-pick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }

/* ---- Arama ---- */
.call { position: fixed; inset: 0; z-index: 100; background: linear-gradient(160deg, #3b0a2a, #1e1b4b); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: calc(40px + env(safe-area-inset-top)) 20px calc(40px + env(safe-area-inset-bottom)); }
#remoteVideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
#localVideo { position: absolute; right: 16px; top: calc(16px + env(safe-area-inset-top)); width: 110px; aspect-ratio: 3/4; object-fit: cover; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .6); z-index: 2; transform: scaleX(-1); background: #222; }
.call.audio #remoteVideo, .call.audio #localVideo, .call:not(.connected) #remoteVideo, .call.ringing #localVideo { opacity: 0; pointer-events: none; }
.call.connected:not(.audio) .call-info { opacity: 0; }
.call-info { z-index: 1; text-align: center; transition: opacity .4s; margin-top: 40px; }
.call-avatar { font-size: 5rem; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; margin: 0 auto 16px; }
.call.ringing .call-avatar { animation: beat 1s infinite; }
.call-name { font-size: 1.6rem; font-weight: 800; }
.call-status { opacity: .85; margin-top: 6px; }
.call-incoming, .call-controls { z-index: 2; display: flex; gap: 22px; }
/* Küçültülmüş arama: köşede küçük pencere, uygulama arkada kullanılabilir; dokununca büyür. */
.call-min { position: absolute; left: 16px; top: calc(16px + env(safe-area-inset-top)); z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .2); color: #fff; font-size: 1.5rem; line-height: 1; backdrop-filter: blur(6px); }
.call.ringing .call-min, .mini-end { display: none; }
.call.mini { inset: auto; right: 12px; top: calc(72px + env(safe-area-inset-top)); touch-action: none; user-select: none; -webkit-user-select: none; width: 132px; height: 178px; padding: 10px; border-radius: 20px; justify-content: center; overflow: hidden; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); animation: up .2s; }
.call.mini.audio { width: 150px; height: auto; padding: 14px 10px; }
.call.mini .call-min, .call.mini .call-controls, .call.mini .call-incoming, .call.mini #localVideo { display: none !important; }
.call.mini .call-info { margin-top: 0; }
.call.mini .call-avatar { font-size: 1.8rem; width: 52px; height: 52px; margin-bottom: 6px; }
.call.mini .call-name { font-size: .9rem; }
.call.mini .call-status { font-size: .8rem; }
.call.mini .mini-end { display: grid; place-items: center; position: absolute; right: 6px; top: 6px; z-index: 3; width: 30px; height: 30px; border-radius: 50%; border: 0; background: #ef4444; color: #fff; font-size: .8rem; }
.round { width: 64px; height: 64px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .2); color: #fff; font-size: 1.5rem; backdrop-filter: blur(6px); }
.round.red { background: #ef4444; }
.round.green { background: #22c55e; animation: beat 1s infinite; }
.round.off { background: #fff; color: #111; }

/* ---- Modal, toast, kalpler ---- */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(74, 35, 56, .45); display: grid; place-items: center; padding: 16px; }
.modal-card { background: #fff; border-radius: 24px; padding: 22px; width: 100%; max-width: 440px; max-height: 90dvh; overflow: auto; animation: up .25s; }
.toast { position: fixed; left: 50%; top: calc(76px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 120; background: var(--text); color: #fff; padding: .7em 1.2em; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center; animation: up .25s; }
.hearts { position: fixed; inset: 0; pointer-events: none; z-index: 110; overflow: hidden; }
.hearts span { position: absolute; bottom: -60px; animation: fly linear forwards; }

@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.15); } 30% { transform: scale(1); } 45% { transform: scale(1.1); } }
@keyframes pop { 50% { transform: scale(1.4); } }
@keyframes up { from { transform: translateY(16px); opacity: 0; } }
.toast { animation: none; }
@keyframes fly { to { transform: translateY(-115dvh) rotate(25deg); opacity: .2; } }

/* ---- 6 sekme ---- */
.tabs { grid-template-columns: repeat(6, 1fr); }
.tabs button { font-size: .68rem; padding: 4px 0; }
.tabs button span { font-size: 1.3rem; }
.badge { right: calc(50% - 22px); }

/* ---- Bildirim kartı ---- */
.push-card { border: 2px dashed var(--pink); background: var(--pink-l); }
.push-card p { margin: 6px 0 10px; font-size: .9rem; }

/* ---- Mesajlar ---- */
main.chat-mode { padding: 0; }
.chat { display: flex; flex-direction: column; }
.chat-list { flex: 1; overflow-y: auto; padding: 12px 12px 6px; display: flex; flex-direction: column; gap: 4px; overscroll-behavior: contain; }
.day-sep { align-self: center; background: #fff; color: var(--muted); font-size: .75rem; font-weight: 800; padding: 3px 12px; border-radius: 999px; margin: 10px 0 6px; box-shadow: 0 1px 4px rgba(225, 48, 108, .1); }
.msg { max-width: 78%; align-self: flex-start; display: flex; flex-direction: column; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.bubble { background: #fff; padding: 8px 12px; border-radius: 18px 18px 18px 6px; box-shadow: 0 1px 4px rgba(74, 35, 56, .08); white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; line-height: 1.4; }
.msg.mine .bubble { background: linear-gradient(135deg, var(--pink), var(--pink-d)); color: #fff; border-radius: 18px 18px 6px 18px; }
.bubble.ph { padding: 4px; }
.bubble.ph img { display: block; max-width: 100%; max-height: 320px; border-radius: 14px; cursor: zoom-in; }
.bubble.ph .cap { padding: 6px 8px 4px; }
.m-time { font-size: .68rem; color: var(--muted); font-weight: 700; margin: 2px 6px 4px; }
.once { border: 0; font: inherit; color: inherit; text-align: left; background: none; padding: 0; font-weight: 800; cursor: pointer; }
.once small { font-weight: 600; opacity: .85; }
.once.off { cursor: default; opacity: .7; }
.chat-bar { display: flex; gap: 8px; align-items: flex-end; padding: 8px 10px; background: #fff; border-top: 1px solid var(--line); }
.chat-bar textarea { flex: 1; resize: none; border: 2px solid var(--line); border-radius: 22px; padding: .55em .9em; max-height: 120px; outline: none; background: var(--bg); }
.chat-bar textarea:focus { border-color: var(--pink); }
.chat-bar .icon-btn { flex: none; box-shadow: none; background: var(--pink-l); display: grid; place-items: center; cursor: pointer; }
.send-btn { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: linear-gradient(135deg, var(--pink), var(--pink-d)); color: #fff; font-size: 1.1rem; }
.send-preview { width: 100%; max-height: 50dvh; object-fit: contain; border-radius: 14px; background: #f6eef2; margin-bottom: 12px; }

/* ---- Galeri ---- */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 16px; overflow: hidden; }
@media (min-width: 600px) { .photo-grid { grid-template-columns: repeat(4, 1fr); } }
.photo-grid button { border: 0; padding: 0; aspect-ratio: 1; background: #f6eef2; position: relative; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-grid .src { position: absolute; right: 4px; bottom: 4px; font-size: .8rem; background: rgba(255, 255, 255, .85); border-radius: 8px; padding: 0 4px; }

/* ---- Görüntüleyici ---- */
.viewer { position: fixed; inset: 0; z-index: 95; background: rgba(20, 8, 16, .96); display: grid; place-items: center; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.viewer img { max-width: 100vw; max-height: 86dvh; object-fit: contain; pointer-events: none; }
.v-close { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px; width: 48px; height: 48px; font-size: 1.1rem; }
.v-prev, .v-next { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 1.8rem; }
.v-prev { left: 10px; } .v-next { right: 10px; }
.v-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); font-weight: 700; }
.v-cap small { display: block; opacity: .8; font-weight: 600; }
.v-cap .del-btn { color: #fff; }
.viewer.once-mode .v-cap { text-align: center; }

/* ================= Mobil iyileştirmeler ================= */
button, a, label { touch-action: manipulation; }
input, textarea, select { font-size: 16px; } /* iOS odaklanınca yakınlaştırmasın */
.tabs { grid-template-columns: repeat(5, 1fr); }
.tabs button { font-size: .72rem; padding: 4px 0; }
.tabs button span { font-size: 1.35rem; }
.badge { right: calc(50% - 24px); }
.top { padding-left: 12px; padding-right: 12px; }
.p-name { font-size: .95rem; }
@media (max-width: 380px) { .icon-btn { width: 36px; height: 36px; font-size: 1rem; } .hero .big-num { font-size: 3.2rem; } }
@media (max-width: 600px) {
  .modal { place-items: end center; padding: 0; }
  .modal-card { border-radius: 24px 24px 0 0; max-height: 88dvh; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  @keyframes up { from { transform: translateY(40px); opacity: 0; } }
  main { padding-left: 12px; padding-right: 12px; }
  .card { padding: 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
}
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.quick button { border: 0; background: #fff; border-radius: 16px; padding: 10px 4px; font-weight: 800; font-size: .78rem; color: var(--text); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.quick button span { font-size: 1.5rem; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.more-grid button { border: 0; background: var(--pink-l); border-radius: 18px; padding: 16px 6px; font-weight: 800; color: var(--pink-d); display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; }
.more-grid button span { font-size: 2rem; }
.more-grid .badge { top: 6px; right: 10px; }

/* ---- Giydirme: iki bebek ---- */
@media (min-width: 680px) { .dress-wrap { grid-template-columns: 380px 1fr; } .duo { position: sticky; top: 80px; } }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.duo-doll { border: 3px solid transparent; border-radius: 20px; overflow: hidden; padding: 0; background: #fff; box-shadow: var(--shadow); position: relative; opacity: .75; transition: opacity .2s, border-color .2s, transform .2s; }
.duo-doll.on { border-color: var(--pink); opacity: 1; }
.duo-doll span { position: absolute; left: 6px; right: 6px; bottom: 6px; background: rgba(255, 255, 255, .9); border-radius: 999px; font-weight: 800; font-size: .78rem; padding: 3px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.duo-doll.on span { background: var(--pink); color: #fff; }
.duo-doll.shake { animation: shake .45s; }
@keyframes shake { 20% { transform: translateX(-8px) rotate(-2deg); } 40% { transform: translateX(8px) rotate(2deg); } 60% { transform: translateX(-6px); } 80% { transform: translateX(6px); } }
.editing { font-size: .85rem; margin: 2px 2px 8px; }
.dress-actions { margin-top: 6px; flex-wrap: nowrap; }
.dress-actions .btn { flex: 1; padding-left: .6em; padding-right: .6em; white-space: nowrap; }
.duo-mini { display: grid; grid-template-columns: 1fr 1fr; }
.gallery .g-item.wide { grid-column: span 2; }

/* ---- Oyunlar ---- */
.game-list { display: grid; gap: 10px; }
.game-card { border: 0; background: #fff; border-radius: 20px; padding: 14px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; text-align: left; }
.game-card .g-emoji { font-size: 2.2rem; width: 56px; height: 56px; flex: none; border-radius: 16px; background: var(--pink-l); display: grid; place-items: center; }
.game-card .g-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.game-card small { color: var(--muted); font-size: .8rem; }
.game-card em { font-style: normal; font-weight: 800; font-size: .8rem; color: var(--muted); }
.game-card em.turn { color: var(--pink-d); }
.game-card .g-go { font-size: 1.6rem; color: var(--muted); }
.game-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 8px; }
.game-top b { font-size: 1.05rem; text-align: center; }
.g-score { display: flex; justify-content: space-between; background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); font-weight: 700; margin-bottom: 10px; }
.g-score b { color: var(--pink-d); font-size: 1.2rem; margin: 0 4px; }
.g-status { text-align: center; font-weight: 800; margin: 6px 0 14px; padding: 10px; border-radius: 14px; background: #fff; }
.g-status.turn { background: var(--pink); color: #fff; animation: pop .4s; }
.g-board { display: flex; flex-direction: column; align-items: center; }
.xox { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: min(100%, 330px); }
.xox button { aspect-ratio: 1; border: 0; border-radius: 18px; background: #fff; box-shadow: var(--shadow); font-size: 2.6rem; }
.xox button.win { background: #fde68a; }
.xox button.last { outline: 3px solid var(--pink-l); }
.xox button:disabled { color: inherit; opacity: 1; }
.c4 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; width: min(100%, 400px); background: #8b5cf6; padding: 8px; border-radius: 18px; }
.c4 button { aspect-ratio: 1; border: 0; border-radius: 50%; background: #ede9fe; padding: 0; display: grid; place-items: center; }
.c4 button:disabled { opacity: 1; }
.c4 button.win { box-shadow: 0 0 0 3px #fde68a; }
.c4 .dot { width: 86%; height: 86%; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; }
.dot.p1 { background: radial-gradient(circle at 35% 35%, #93c5fd, #2563eb); }
.dot.p2 { background: radial-gradient(circle at 35% 35%, #ffb3d1, #e1306c); }
.c4 .last .dot { box-shadow: 0 0 0 3px #fff inset; }
.tkm { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(100%, 360px); }
.tkm button { border: 0; background: #fff; border-radius: 20px; padding: 16px 4px; font-size: 2.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; }
.tkm button small { font-size: .8rem; font-weight: 800; color: var(--muted); }
.tkm button.on { background: var(--pink-l); outline: 3px solid var(--pink); }
.tkm-last { background: #fff; border-radius: 18px; padding: 12px; box-shadow: var(--shadow); text-align: center; width: min(100%, 360px); margin-bottom: 14px; }
.tkm-last > div { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 6px 0; }
.tkm-last span { font-size: 2.4rem; display: flex; flex-direction: column; align-items: center; }
.tkm-last span small, .tkm-last > small { font-size: .75rem; color: var(--muted); font-weight: 700; }
.memory { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: min(100%, 360px); }
.memory button { aspect-ratio: 3/4; border: 0; border-radius: 14px; font-size: 1.9rem; background: linear-gradient(135deg, #ff8fbd, #c084fc); box-shadow: var(--shadow); color: #fff; transition: transform .25s; }
.memory button:disabled { opacity: 1; }
.memory button:not(.up) { font-size: 1.2rem; }
.memory button.up { background: #fff; transform: rotateY(360deg); }
.memory button.done { background: #fef3c7; opacity: .75; }
.kim-q { background: #fff; border-radius: 20px; padding: 22px 16px; box-shadow: var(--shadow); font-size: 1.3rem; font-weight: 800; text-align: center; width: 100%; margin-bottom: 14px; }
.kim-q small { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.kim-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.kim-btns button { border: 0; background: #fff; border-radius: 20px; padding: 16px 6px; font-size: 2.4rem; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.kim-btns button span { font-size: .95rem; font-weight: 800; }
.kim-btns button.on { background: var(--pink-l); outline: 3px solid var(--pink); }
.kim-prev { font-size: .85rem; font-weight: 700; margin-bottom: 10px; text-align: center; }
.kim-prev small { color: var(--muted); }
.kim-hist { list-style: none; padding: 0; margin: 0; width: 100%; display: grid; gap: 8px; }
.kim-hist li { background: #fff; border-radius: 14px; padding: 10px 12px; display: flex; gap: 10px; box-shadow: 0 2px 8px rgba(225, 48, 108, .08); }
.kim-hist small { display: block; color: var(--muted); font-weight: 700; }

/* ---- Çizim düellosu ---- */
.ciz-word { text-align: center; background: linear-gradient(135deg, #ff8fbd, #c084fc); color: #fff; border-radius: 18px; padding: 12px; font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
.ciz-word small { display: block; font-size: .75rem; opacity: .9; font-weight: 700; }
.ciz-time { display: inline-block; background: #fff; color: var(--pink-d); border-radius: 999px; padding: 1px 10px; margin-left: 4px; }
.g-status.acil { background: #ef4444; color: #fff; animation: beat 1s infinite; }
.ciz-wrap { background: #fff; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; width: min(100%, 520px); margin: 0 auto 10px; }
#drawCanvas { display: block; width: 100%; aspect-ratio: 1; touch-action: none; cursor: crosshair; }
.ciz-tools { width: min(100%, 520px); margin: 0 auto 12px; display: grid; gap: 8px; }
.ciz-colors { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ciz-colors .sw { width: 30px; height: 30px; }
.ciz-row { display: flex; gap: 6px; justify-content: center; }
.ciz-size, .ciz-btn { width: 42px; height: 42px; border: 2px solid var(--line); background: #fff; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; padding: 0; }
.ciz-size i { display: block; background: #222; border-radius: 50%; }
.ciz-size.on, .ciz-btn.on { border-color: var(--pink); background: var(--pink-l); }
#cizDone { display: block; width: min(100%, 520px); margin: 0 auto; }
.ciz-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ciz-pair.one { grid-template-columns: minmax(0, 300px); justify-content: center; }
.ciz-pair figure { margin: 0; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.ciz-pair img, .ciz-bos { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.ciz-bos { display: grid; place-items: center; color: var(--muted); font-weight: 800; background: #f6eef2; }
.ciz-pair figcaption { padding: 8px 10px; font-weight: 800; font-size: .9rem; display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.stars { color: #f59e0b; letter-spacing: 1px; white-space: nowrap; }
.rate-box { text-align: center; margin-top: 14px; background: #fff; border-radius: 18px; padding: 14px; box-shadow: var(--shadow); }
.rate-stars { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.rate-stars button { border: 0; background: var(--pink-l); color: #f59e0b; font-size: 1.9rem; width: 54px; height: 62px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.rate-stars button small { font-size: .75rem; color: var(--text); font-weight: 800; margin-top: 2px; }
#cizNext { margin-top: 10px; }

/* ---- Konum (aramızdaki mesafe) + izinler ---- */
.konum { display: flex; align-items: center; gap: 12px; }
.konum > div:nth-child(2) { flex: 1; min-width: 0; }
.konum b { display: block; }
.konum small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.konum-ic { font-size: 1.8rem; width: 48px; height: 48px; border-radius: 50%; background: var(--pink-l); display: grid; place-items: center; flex: none; }
.konum-km { font-size: 1.6rem; color: var(--pink-d); }
.konum .btn { flex: none; }
.izin-satir { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.izin-satir input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--pink-d); flex: none; }
.izin-ok { color: #16a34a; }
.izin-yok { color: #dc2626; }

/* ---- Seri ---- */
.seri { display: flex; align-items: center; gap: 14px; }
.seri-ates { font-size: 2.2rem; filter: grayscale(.6); flex: none; }
.seri.tamam .seri-ates { filter: none; animation: beat 1.6s infinite; }
.seri-yazi b { display: block; font-size: 1.35rem; color: var(--pink-d); }
.seri-yazi small { display: block; color: var(--muted); font-size: .82rem; margin-top: 3px; }

/* ---- Konum haritası ---- */
.sayfa-baslik { font-size: 1.5rem; margin: 6px 4px 14px; }
.harita-kart { padding: 0; overflow: hidden; }
#harita { height: 58vh; min-height: 320px; background: #fde7f0; }
.harita-bilgi { padding: 12px 16px; font-size: .92rem; }
.harita-dugmeler { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.kalp-pin-k { background: none; border: 0; }
.kalp-pin { position: relative; width: 56px; height: 56px; filter: drop-shadow(0 4px 6px rgba(120, 20, 70, .35)); animation: kalpAt 1.6s infinite; transform-origin: 50% 90%; }
.kalp-pin svg { width: 56px; height: 52px; fill: var(--renk); stroke: #fff; stroke-width: 1.6; }
.kalp-pin span { position: absolute; left: 0; right: 0; top: 11px; text-align: center; font-size: 1.25rem; }
@keyframes kalpAt { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.12); } 24% { transform: scale(1); } 36% { transform: scale(1.08); } }
.mesafe-etiket { background: #fff; color: var(--pink-d); border: 0; border-radius: 999px; font-weight: 800; padding: 4px 10px; box-shadow: var(--shadow); }
.mesafe-etiket::before { display: none; }

/* ---- Yerlerimiz ---- */
.yer-baslik { display: flex; align-items: center; justify-content: space-between; margin: 18px 4px 10px; }
.yer-baslik h2 { margin: 0; }
.yer-pin-k { background: none; border: 0; }
.yer-pin { width: 40px; height: 40px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #fff; border: 3px solid var(--pink-d); display: grid; place-items: center; box-shadow: 0 3px 8px rgba(120, 20, 70, .3); }
.yer-pin span { transform: rotate(45deg); font-size: 1.15rem; }
.yer-pin.yeni { border-style: dashed; animation: kalpAt 1.2s infinite; }
#harita.seciyor { outline: 3px dashed var(--pink-d); outline-offset: -3px; cursor: crosshair; }
.yer-satir { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; margin-bottom: 10px; }
.yer-ic { font-size: 1.5rem; width: 44px; height: 44px; border-radius: 50%; background: var(--pink-l); display: grid; place-items: center; flex: none; }
.yer-yazi { flex: 1; min-width: 0; }
.yer-yazi b { display: block; }
.yer-yazi small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.yer-sil { flex: none; padding: 6px 10px; }
.yer-emojiler { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 10px; }
.yer-emojiler button { border: 2px solid transparent; background: var(--pink-l); border-radius: 12px; font-size: 1.3rem; padding: 6px 0; }
.yer-emojiler button.secili { border-color: var(--pink-d); background: #fff; }
